Compare commits

...

1162 Commits

Author SHA1 Message Date
Faruk AYDIN
067ec2eb9c Release v0.8.0 2023-08-02 15:07:27 +02:00
Faruk AYDIN
2d332b32d9 chore: Update version to 0.8.0 in Dockerfiles 2023-08-02 15:06:49 +02:00
Ömer Faruk Aydın
1d9ad2ba86 Merge pull request #1184 from automatisch/notion-find-database-item
feat(notion): add find database item action
2023-08-01 13:54:09 +02:00
Ömer Faruk Aydın
a28e2177f7 Merge pull request #1183 from automatisch/notion-create-page
feat(notion): add create page action
2023-08-01 13:44:47 +02:00
Ömer Faruk Aydın
18fe0df691 Merge pull request #1185 from automatisch/email-case-insensitive-login
fix(auth): allow login with case insensitive email
2023-07-31 17:05:01 +03:00
Ömer Faruk Aydın
8e21a06d99 Merge pull request #1186 from automatisch/gitlab-use-user-projects
fix(gitlab/list-projects): list projects the user has membership
2023-07-31 17:03:25 +03:00
Ali BARIN
2daf5473bb fix(gitlab/list-projects): list projects the user has membership 2023-07-31 16:00:27 +02:00
Ömer Faruk Aydın
928ff53adf Merge pull request #1187 from automatisch/fix-gitlab-github-names
fix: GitHub and GitLab app names
2023-07-31 16:54:20 +03:00
Faruk AYDIN
a71e95e6e5 fix: GitHub and GitLab app names 2023-07-31 15:47:06 +02:00
Ali BARIN
cb4a54b5cc fix(auth): allow login with case insensitive email 2023-07-30 14:59:16 +00:00
Rıdvan Akca
37e4524156 feat(notion): add find database item action 2023-07-27 14:39:57 +03:00
dependabot[bot]
9ac24ee051 chore(deps): bump word-wrap from 1.2.3 to 1.2.4
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 22:51:23 +02:00
Ömer Faruk Aydın
f28ccd559a Merge pull request #1177 from automatisch/notion-create-database-item
feat(notion): add create database item action
2023-07-25 14:04:08 +03:00
Ömer Faruk Aydın
8e84a93d8e Merge pull request #1166 from automatisch/create-worksheet
feat(google-sheets): add create worksheet action
2023-07-25 13:58:41 +03:00
Ömer Faruk Aydın
d871dec1b7 Merge pull request #1179 from automatisch/add-http-proxy-agent
fix(axios): incorporate http(s)-proxy-agents
2023-07-24 15:40:22 +03:00
Ömer Faruk Aydın
b133e1a197 Merge pull request #1176 from automatisch/compute-params
fix: allow colon while computing step parameters
2023-07-24 15:33:16 +03:00
Rıdvan Akca
9346a037b9 feat(notion): add create page action 2023-07-24 14:50:53 +03:00
Ali BARIN
89facbcddd fix(axios): incorporate http(s)-proxy-agents 2023-07-17 22:23:48 +00:00
Faruk AYDIN
53fef35638 fix: Allow colon while computing step parameters 2023-07-17 18:19:54 +02:00
Rıdvan Akca
bfe496a09b feat(notion): add create database item action 2023-07-17 16:23:00 +03:00
dependabot[bot]
ff774c2e8e chore(deps): bump semver from 5.7.1 to 5.7.2
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-14 14:31:07 +02:00
Ömer Faruk Aydın
08a6d1078c Merge pull request #1132 from automatisch/show-webhook-url-by-flag
feat: introduce singleton webhook URL
2023-07-13 12:02:49 +02:00
Ömer Faruk Aydın
e9bcc919bf Merge branch 'main' into show-webhook-url-by-flag 2023-07-13 11:58:19 +02:00
Faruk AYDIN
04f4693c85 fix: Fetch webhooks by flow id 2023-07-12 14:05:46 +02:00
Ömer Faruk Aydın
2a58a0a4c4 Merge pull request #1174 from automatisch/twilio-receive-sms-fix
fix(twilio): Receive SMS webhook payload
2023-07-12 11:24:14 +02:00
Faruk AYDIN
d911843648 fix(twilio): Receive SMS webhook payload 2023-07-11 17:50:31 +02:00
Ömer Faruk Aydın
c80d178410 Merge pull request #1170 from automatisch/mattermost-docs
docs(mattermost): Fix links of mattermost app
2023-07-05 14:33:19 +02:00
Faruk AYDIN
9fb4dca39b docs(mattermost): Fix links of mattermost app 2023-07-05 14:29:19 +02:00
Rıdvan Akca
0dd444d50b feat(google-sheets): add create worksheet action 2023-06-30 19:03:54 +03:00
dependabot[bot]
f3bf418997 chore(deps): bump fast-xml-parser from 4.2.4 to 4.2.5 (#1164)
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.2.4 to 4.2.5.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v4.2.4...v4.2.5)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-29 17:51:47 +02:00
KrzysztofDK
676027245f feat(mattermost): add auth and send message to channel action
* feat: mattermost integration

* post review adjustments
2023-06-29 16:45:57 +02:00
Ali BARIN
6c5039f1ba fix(odoo): add missing empty type file (#1165) 2023-06-29 16:03:44 +02:00
Jack Dane
807be59f25 feat(odoo): add auth and create lead action (#1143)
* Add Odoo App and Icon

* Add Auth for Odoo

* Authorise with API key, the password would also work, but we should encourage an API key.

* Odoo Verify Credentials method

* Add the xmlrpc dependency so the backend can communicate with Odoo's API.
* Add a port to the auth fields to establish a connection that might not be over HTTPS.

* Add still verified method

* Currently no need to keep uid, so remove it from the auth data.
* Await the callback from the xmlrpc method call to ensure we don't verify credentials before the callback has been executed.

* Add Odoo create-lead action

* Provide basic functionality to create a lead.

* Add Odoo type option

* Let the user decide if the lead should be a "lead" or "opportunity" in the create-lead action.

* Add documentation for Odoo app

* Follow project standards

* Change indents to 2 spaces
* Use single quotes instead of double

* Commonise the authentication method (DRY)

* Use latest for API doc link

* refactor(odoo): abstract and organize implementation

---------

Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
2023-06-29 15:56:20 +02:00
AnimatedSwine37
8e9896ec2e fix(postgresql): close connections when done 2023-06-27 18:57:18 +02:00
Rıdvan Akca
110c2dbac8 docs: add missing dots in action/trigger descriptions 2023-06-26 12:05:42 +02:00
Rıdvan Akca
f55ec4bd8a fix(google-sheets): sort actions 2023-06-25 15:50:03 +02:00
AnimatedSwine37
06c9bf420e fix(discord): show announcement channels in selection 2023-06-25 13:31:47 +02:00
Rıdvan Akca
3c9bc53a79 feat(google-sheets): add create spreadsheet action 2023-06-23 20:29:12 +02:00
Ali BARIN
de7a35dfe9 feat: introduce singleton webhook URL 2023-06-22 08:51:43 +00:00
Ömer Faruk Aydın
92638c2e97 Merge pull request #1142 from automatisch/fix-twilio-receive-sms-test-run
fix(twilio/receive-sms): use phone number via phone number sid
2023-06-14 13:42:11 +02:00
Ali BARIN
63251e6a9a fix(twilio/receive-sms): use phone number via phone number sid 2023-06-14 13:27:49 +02:00
Ömer Faruk Aydın
59844c33fd Merge pull request #1140 from automatisch/notion-app
feat(notion): add auth and new DB items trigger
2023-06-14 13:24:59 +02:00
Faruk AYDIN
d36dd2ece1 docs: Use triggers link of Notion for available apps 2023-06-14 13:21:34 +02:00
Ömer Faruk Aydın
1fdb94739b Merge pull request #1141 from automatisch/fix-dynamic-data
fix: skip prior execution steps if no prior execution
2023-06-14 12:54:34 +02:00
Ali BARIN
8a18f4c44f fix: skip prior execution steps if no prior execution 2023-06-13 20:56:39 +00:00
Ali BARIN
c9c47c5519 docs(notion): add auth and new DB items trigger 2023-06-13 05:56:33 +00:00
Ali BARIN
6be8b55daa feat(notion): add auth and new DB items trigger 2023-06-13 05:56:33 +00:00
Ali BARIN
f2dc2f5530 feat: introduce CustomAutocomplete with variables 2023-06-12 14:06:13 +02:00
Ömer Faruk Aydın
42842e7aec Merge pull request #1130 from gh-kdk/feature/gitlab-integration-documentation
docs(gitlab): add connection and triggers
2023-06-12 12:31:43 +02:00
Faruk AYDIN
49d9f77d1b docs: Add GitLab to available apps 2023-06-12 12:31:07 +02:00
Faruk AYDIN
d06a89564f docs: Add GitLab favicon 2023-06-12 12:31:07 +02:00
Krzysztof Dukszta-Kwiatkowski
58a8510d49 feat: gitlab integration documentation 2023-06-12 12:31:07 +02:00
Ömer Faruk Aydın
8055d6555e Merge pull request #1139 from automatisch/update-flow-status-accordingly
fix: update flow.active when remote calls succeed
2023-06-12 11:48:25 +02:00
Ömer Faruk Aydın
39620d3510 Merge pull request #1135 from shehabghazy/postgres-docs
docs(postgres): add connection and actions
2023-06-12 11:15:11 +02:00
Faruk AYDIN
6d19711926 docs: Add PostgreSQL to available apps 2023-06-12 11:13:09 +02:00
Faruk AYDIN
0b362dd435 docs: Use postgresql key name instead of postgres 2023-06-12 11:11:39 +02:00
Shehab Ghazy
9485731e7d docs: Add PostgreSQL documentation 2023-06-12 11:08:17 +02:00
Ali BARIN
1449fb0f84 fix: update flow.active when remote calls succeed 2023-06-11 20:05:00 +00:00
Faruk AYDIN
e548dd49ca chore: Use paddle sandbox for all non-prod cloud envs 2023-06-08 19:38:00 +02:00
dependabot[bot]
35863ee6e9 chore(deps): bump fast-xml-parser from 4.0.11 to 4.2.4
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.0.11 to 4.2.4.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/commits)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-06 21:15:17 +02:00
Faruk AYDIN
0784a2d4d0 refactor: Use limit to prevent fetching all records 2023-06-06 12:59:33 +02:00
Ali BARIN
75d5c0e356 feat: prevent from being used in iframe 2023-06-06 12:59:21 +02:00
Ali BARIN
a2dd6d76a8 fix(webhook/handler): log whole computed payload 2023-06-06 12:59:12 +02:00
dependabot[bot]
bdc6b59857 chore(deps): bump vite from 3.1.8 to 3.2.7
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.1.8 to 3.2.7.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v3.2.7/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v3.2.7/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-06 09:33:26 +02:00
Ömer Faruk Aydın
34e95f1e89 Merge pull request #1126 from automatisch/optimize-last-execution
refactor: Optimize fetching last execution step
2023-06-05 23:11:16 +02:00
Faruk AYDIN
6a92cfc573 refactor: Optimize fetching last execution step 2023-06-05 23:00:35 +02:00
Rıdvan Akca
9f759d70b6 feat(google-sheets): add new spreadsheet rows trigger 2023-06-02 15:51:36 +02:00
Ali BARIN
43e957e8d3 feat(gitlab): add instance URL in screen name 2023-06-02 15:20:23 +02:00
Ali BARIN
ae316f60e4 fix: stop checking auth urls 2023-06-02 15:20:09 +02:00
Rıdvan Akca
1ac423ba56 chore: update action and trigger names 2023-06-01 15:01:12 +02:00
Ali BARIN
b43490dd76 fix(get-dynamic-fields): fetch variables field 2023-06-01 13:28:36 +02:00
Ali BARIN
f586e81dd1 fix(FlowSubstep): count 0 as value towards required check 2023-06-01 13:28:36 +02:00
Ali BARIN
8a6d8a7d8c fix(google-sheets/list-sheet-headers): early exit upon not existing worksheet 2023-06-01 13:28:36 +02:00
Ali BARIN
45d607f1a0 fix(google-sheets/list-sheet-headers): cover worksheetId 0 2023-06-01 13:28:36 +02:00
Ali BARIN
d84abaa229 chore(google-sheets/create-spreedsheet-row): update metadata 2023-06-01 13:28:36 +02:00
Rıdvan Akca
3fd1d4d9b3 feat(google-sheets): create spreadsheet row 2023-06-01 13:28:36 +02:00
Ali BARIN
078b8efb56 feat(rss/new-items-in-feed): incorporate attributes 2023-05-30 16:26:48 +02:00
Ömer Faruk Aydın
5066995f72 Merge pull request #1117 from automatisch/barinali-patch-1
chore(gitlab): add empty d.ts file
2023-05-30 15:37:13 +02:00
Ali BARIN
577fe3dba8 chore(gitlab): add empty d.ts file 2023-05-30 15:33:14 +02:00
Krzysztof Dukszta-Kwiatkowski
d96f4999bc post review fixes 2023-05-30 15:21:13 +02:00
Krzysztof Dukszta-Kwiatkowski
6e80ff4eb6 post review fixes 2023-05-30 15:21:13 +02:00
Krzysztof Dukszta-Kwiatkowski
3f8f022d48 feat: gitlab triggers integration 2023-05-30 15:21:13 +02:00
Ali BARIN
93a2e2151e fix: early exit upon failed actions 2023-05-27 21:16:24 +02:00
Ömer Faruk Aydın
663a1ed9d4 Merge pull request #1108 from automatisch/docs/filter
docs: Add filter connection and actions
2023-05-24 15:42:04 +02:00
Ali BARIN
4f46c55c85 feat: add LOG_LEVEL env. var. 2023-05-24 15:35:38 +02:00
Ali BARIN
9701c98af9 feat: error log errors in action and triggers 2023-05-24 15:35:38 +02:00
Ali BARIN
aabf2a1c79 feat: debug log incoming webhook requests 2023-05-24 15:35:38 +02:00
Ali BARIN
29539b090e feat: cover arrays in error handling 2023-05-24 15:35:38 +02:00
Faruk AYDIN
1c80677ac3 docs: Add filter connection and actions 2023-05-24 15:23:38 +02:00
Ali BARIN
ad419855e9 feat(webhook/handler): use UUID for internal ids 2023-05-24 12:59:48 +02:00
Ömer Faruk Aydın
30b75943f3 Merge pull request #1103 from automatisch/release/0.7.1
Release v0.7.1
2023-05-19 20:31:09 +02:00
Faruk AYDIN
41a67b402d Release v0.7.1 2023-05-19 19:56:51 +02:00
Faruk AYDIN
caa104b1cc chore: Update version to 0.7.1 in Dockerfiles 2023-05-19 19:56:01 +02:00
Rıdvan Akca
94085f2bc8 fix(shared-drive): add missing field to payload 2023-05-19 17:55:52 +02:00
Faruk AYDIN
d39c962314 docs: Add Google Sheets to available apps 2023-05-19 16:15:46 +02:00
Ömer Faruk Aydın
706fb0f063 Merge pull request #1100 from automatisch/release/0.7.0
Release v0.7.0
2023-05-19 13:16:42 +02:00
Faruk AYDIN
b9d89b040f Release v0.7.0 2023-05-19 12:29:29 +02:00
Faruk AYDIN
41421b849a chore: Update version to 0.7.0 in Dockerfiles 2023-05-19 12:28:59 +02:00
Rıdvan Akca
324375da93 fix(shared-drive): show shared drive items 2023-05-19 07:35:49 +02:00
Ali BARIN
536446faf6 fix(twilio/receive-sms): use phonenumber sid in removing webhook 2023-05-17 12:57:02 +02:00
Rıdvan Akca
d026ac09f3 feat(google-sheets): add new worksheets trigger 2023-05-16 23:42:23 +02:00
Ali BARIN
88c93ac992 fix(dynamic-data): correct parameters 2023-05-16 17:59:04 +02:00
Ali BARIN
d540322d8b refactor(webhook): respond with 204 instead of 200 2023-05-16 16:40:12 +02:00
Ali BARIN
ad4db5e936 feat(twilio/send-sms): use dynamic phone numbers 2023-05-16 16:40:12 +02:00
Ali BARIN
25cb4d90f3 refactor(twilio/receive-sms): convert to webhook 2023-05-16 16:40:12 +02:00
Ömer Faruk Aydın
6c14a353ef Merge pull request #1093 from automatisch/openai-chat-prompt
feat(openai): add chat prompt
2023-05-16 12:46:41 +02:00
Ali BARIN
74d7d1aa98 feat(openai): add chat prompt 2023-05-15 20:41:25 +00:00
Ali BARIN
43b0d9ed29 fix: refetch step executions upon deleting and testing steps 2023-05-15 16:24:26 +02:00
Ali BARIN
3572e6f65a fix: send parameters to dynamic data query 2023-05-15 16:24:17 +02:00
Ali BARIN
d23d5d2da0 feat(slack): send direct message 2023-05-15 16:24:17 +02:00
Faruk AYDIN
183b9b0d88 feat: Add enable ssl field to PostgreSQL connection 2023-05-15 16:23:43 +02:00
Faruk AYDIN
7a1af268ae chore: Remove empty line from PostgreSQL index file 2023-05-15 16:23:43 +02:00
Ali BARIN
f879b3c5b0 refactor(postgresql): rename pgClient with client 2023-05-15 16:23:43 +02:00
Ali BARIN
40be72cf65 feat(postgresql/delete): add interactive where clause entries 2023-05-15 16:23:43 +02:00
Ali BARIN
a8886571d1 feat(postgresql/update): add interactive where clause 2023-05-15 16:23:43 +02:00
Ali BARIN
1fcd51ea26 refactor(postgresql/insert): use withSchema 2023-05-15 16:23:43 +02:00
Ali BARIN
89752138be refactor(postgresql): use bindings to set run-time params 2023-05-15 16:23:43 +02:00
Ali BARIN
f29ccace2a chore(postgresql): rename app folder and add icon 2023-05-15 16:23:43 +02:00
Shehab Ghazy
0c8343e76f feat(postgresql): add auth and primitive actions 2023-05-15 16:23:43 +02:00
Ali BARIN
9776c9f5a4 feat: add duplicate flow functionality 2023-05-13 14:44:21 +02:00
Ali BARIN
a5dbac9817 feat(ExecutionStep): show execution date 2023-05-13 13:20:05 +02:00
Ali BARIN
bad5e0b855 fix(queries/get-execution): serve soft deleteds 2023-05-13 13:19:53 +02:00
Ali BARIN
8e4ca55560 feat(ControlledAutocomplete): filter by value too 2023-05-13 13:19:42 +02:00
Ali BARIN
f52afc1fe0 chore: serve graphql explorer only on development 2023-05-13 13:19:35 +02:00
Ali BARIN
815e64302e fix(Editor): don't unregister step parameters 2023-05-13 13:19:28 +02:00
Faruk AYDIN
07b2b18a4e fix: Run remove cancelled subscriptions only in the cloud 2023-05-12 13:30:06 +02:00
Ömer Faruk Aydın
69eca33de7 Merge pull request #1080 from automatisch/docs-postgres-ssl
docs: Add POSTGRES_ENABLE_SSL env variable to configuration
2023-05-11 14:50:32 +02:00
Faruk AYDIN
ec76a480d0 docs: Add POSTGRES_ENABLE_SSL env variable to configuration 2023-05-11 13:58:02 +02:00
Ali BARIN
a8823c3ed0 fix(filters/continue): cover multiple conditions 2023-05-09 18:28:51 +02:00
Ali BARIN
1f1b3a341c refactor: make sentry cloud agnostic 2023-05-09 13:17:33 +02:00
Ali BARIN
8c164a3852 fix(http-request): suppress failure upon size check 2023-05-08 14:45:41 +02:00
Ali BARIN
dcf526d810 feat(http-request): convert non-text data to base64 2023-05-08 12:52:09 +02:00
Ali BARIN
2fc6d680a0 fix: incorporate spaces in variables 2023-05-08 12:52:09 +02:00
Ali BARIN
f414972f33 Merge pull request #1074 from automatisch/executions-updated-at
feat: sort executions by updated at
2023-05-08 12:49:15 +02:00
Ali BARIN
69d192d989 feat: sort executions by updated at 2023-05-02 09:30:41 +00:00
Ömer Faruk Aydın
6c8769e598 Merge pull request #1071 from automatisch/paddle-plans
feat: Introduce new plans for the cloud
2023-04-26 13:21:18 +02:00
Faruk AYDIN
c12703422c feat: Introduce new plans for the cloud 2023-04-26 12:13:39 +02:00
Ömer Faruk Aydın
c0171e1cd1 Merge pull request #1070 from automatisch/dockerfile.cloud
chore: add dockerfile for cloud
2023-04-26 11:20:00 +02:00
Ali BARIN
920a983146 chore: add dockerfile for cloud 2023-04-25 20:43:48 +00:00
Ömer Faruk Aydın
7ec86bfef1 Merge pull request #1069 from automatisch/release/0.6.1
Release v0.6.1
2023-04-25 18:17:04 +02:00
Faruk AYDIN
d8bc318688 Release v0.6.1 2023-04-25 17:15:20 +02:00
Faruk AYDIN
600ea1848f chore: Update version to 0.6.1 in Dockerfiles 2023-04-25 17:14:43 +02:00
Ömer Faruk Aydın
a3ce9c7662 Merge pull request #1068 from automatisch/copy-hbs
fix: Include email templates for the build
2023-04-25 17:10:50 +02:00
Faruk AYDIN
44ce7577c6 fix: Include email templates for the build 2023-04-25 17:07:46 +02:00
Ömer Faruk Aydın
8c3e42f7eb Merge pull request #1067 from automatisch/company-name
chore: Use company name for the enterprise license
2023-04-24 18:20:34 +02:00
Faruk AYDIN
b8887c506c chore: Use company name for the enterprise license 2023-04-24 16:38:54 +02:00
Ömer Faruk Aydın
6c4228b7b8 Merge pull request #1063 from automatisch/docs/encryption-key-generation
docs: Explain how to create random keys for encryption and webhook secret keys
2023-04-20 17:07:38 +02:00
Faruk AYDIN
9b1da98386 docs: Explain how to create random keys for encryption and webhook secret keys 2023-04-19 18:44:19 +02:00
Ömer Faruk Aydın
1615169a3d Merge pull request #1060 from automatisch/release/0.6.0
Release v0.6.0
2023-04-17 19:05:25 +02:00
Faruk AYDIN
df83aa4d15 chore: Update version with 0.6.0 2023-04-17 18:37:24 +02:00
Faruk AYDIN
142b96beb0 Release v0.6.0 2023-04-17 18:35:16 +02:00
Shehab Ghazy
18d07dd3b9 feat: Add postgres schema environment variable (#1047)
feat: Add postgres schema environment variable

---------

Co-authored-by: Faruk AYDIN <omerfaruk26@gmail.com>
2023-04-17 14:56:12 +02:00
Ali BARIN
270039d211 Merge pull request #1058 from automatisch/remove-payment-plans
chore: remove payment plan model and related functionality
2023-04-16 20:32:01 +02:00
Ali BARIN
fcf3a480be chore: remove UsageAlert 2023-04-16 14:22:30 +00:00
Ali BARIN
80ee974973 chore: remove PaymentPlan model 2023-04-16 14:05:07 +00:00
Ömer Faruk Aydın
48c6a38205 Merge pull request #1057 from automatisch/AUT-98
feat: add subscription cancelled alert
2023-04-13 18:30:52 +02:00
Faruk AYDIN
c9536e58cb feat: Cover active but cancelled subscriptions 2023-04-13 18:27:57 +02:00
Ali BARIN
a16d783302 Merge pull request #1056 from automatisch/fix-within-limits-method
fix(user): correct withinLimits instance method
2023-04-12 22:17:11 +02:00
Ali BARIN
b837aecb27 feat: add subscription cancelled alert 2023-04-12 20:08:45 +00:00
Ali BARIN
532405048f fix(user): correct withinLimits instance method 2023-04-12 19:40:00 +00:00
Ali BARIN
6cd0427ff8 Merge pull request #1055 from automatisch/subscription-cancelled
feat: add subscription cancelled flow
2023-04-12 21:33:22 +02:00
Faruk AYDIN
d2163f180e feat: Add getSubscriptionStatus graphQL query 2023-04-12 21:29:36 +02:00
Faruk AYDIN
d1344457dd feat: Auto remove cancelled subscriptions 2023-04-11 23:32:34 +02:00
Faruk AYDIN
596be24d92 feat: Add cancellation effective date to subscriptions 2023-04-11 22:45:12 +02:00
Ömer Faruk Aydın
4e182b49f9 Merge pull request #1053 from automatisch/is-paused
fix: Return isPaused according to isAllowedToRunFlows method
2023-04-11 17:43:26 +02:00
Faruk AYDIN
51ac37f1de fix: Return isPaused according to isAllowedToRunFlows method 2023-04-11 17:11:38 +02:00
Ömer Faruk Aydın
b578e88d46 Merge pull request #1050 from automatisch/add-virtual-flow-status
feat(flow): add virtual paused/published/draft status
2023-04-11 17:04:32 +02:00
Faruk AYDIN
9cb4607f69 refactor: User permission and limits to run flows 2023-04-11 16:59:59 +02:00
Ömer Faruk Aydın
2c4d602028 Merge pull request #1051 from automatisch/aut-97
feat: show completed checkout alert
2023-04-10 13:13:23 +02:00
Ali BARIN
a0feb7f309 feat: show completed checkout alert 2023-04-09 20:31:51 +00:00
Ali BARIN
77e29050c8 feat(flow): add virtual paused/published/draft status 2023-04-09 16:45:41 +00:00
Ömer Faruk Aydın
df55f746ca Merge pull request #1048 from automatisch/aut-92
feat: add trial status badge in appbar
2023-04-09 15:30:04 +02:00
Ali BARIN
2739d2297f feat: finalize TrialOverAlert on billing page 2023-04-09 14:11:22 +02:00
Faruk AYDIN
dc734b04d8 feat: Implement draft version of free trial over info box 2023-04-09 14:11:22 +02:00
Ali BARIN
d4c542168c feat: add trial status badge in appbar 2023-04-09 09:57:50 +00:00
Ömer Faruk Aydın
94a3b66130 Merge pull request #1040 from automatisch/usage-data
feat: add subscription update and cancel logics
2023-04-08 00:34:28 +03:00
Faruk AYDIN
c8baf9b0d7 feat: Check if user has active subscription or not for execution 2023-04-07 23:09:24 +02:00
Faruk AYDIN
c4dc0509c2 feat: Implement getTrialStatus graphQL query 2023-04-07 22:55:18 +02:00
Faruk AYDIN
3bfc428dfe feat: Add inTrial getter method to User model 2023-04-07 22:35:56 +02:00
Ömer Faruk Aydın
026b7da6f8 Merge pull request #1046 from automatisch/move-paddle-provider-deeper-in-app-tree
refactor(paddle): move script injection closer to checkout
2023-04-07 23:07:02 +03:00
Ali BARIN
58352b9f33 refactor(paddle): move script injection closer to checkout 2023-04-07 17:09:10 +00:00
Ömer Faruk Aydın
59faf593be Merge pull request #1045 from automatisch/expose-worker-errors
fix: Expose worker errors with stack trace
2023-04-07 19:23:56 +03:00
Faruk AYDIN
4aa41773c4 fix: Expose worker errors with stack trace 2023-04-07 18:16:08 +02:00
Ömer Faruk Aydın
20c5d6aee1 Merge pull request #1044 from automatisch/strava
feat(strava): add action to create totals and stats report
2023-04-07 16:24:21 +03:00
Ali BARIN
d503dbc103 docs(strava): describe connection and actions 2023-04-07 14:16:30 +02:00
Ali BARIN
53624a6379 feat(strava): add action to create totals and stats report 2023-04-07 14:16:30 +02:00
Ali BARIN
5b881db19f feat(strava): refresh token when expired 2023-04-07 14:16:30 +02:00
Ali BARIN
dece070d28 feat(strava): add connection verified check 2023-04-07 14:16:30 +02:00
Ali BARIN
8be2ed0034 feat(strava): add current user utility function 2023-04-07 14:16:30 +02:00
Ali BARIN
37c6b57a48 feat(strava): add authentication support 2023-04-07 14:16:30 +02:00
Ali BARIN
8a0b5c24a5 feat(strava): add app definition 2023-04-07 14:16:30 +02:00
Ali BARIN
20431da757 Merge pull request #1037 from automatisch/dropbox-new-folders
feat(dropbox): add create folder and rename file actions
2023-04-07 14:16:10 +02:00
Ali BARIN
f219c87a9e feat(dropbox): elaborate on argument label 2023-04-07 12:12:30 +00:00
Ali BARIN
5d2134db56 fix(dropbox): don't add old token in refresh token logic 2023-04-07 11:58:06 +00:00
Ali BARIN
1dc46dd31c docs(dropbox): add connection and actions 2023-04-06 18:59:55 +00:00
Ali BARIN
96250ce9a0 refactor(spotify): import node:buffer 2023-04-06 18:59:55 +00:00
Ali BARIN
691682e09c feat(dropbox): add rename file action 2023-04-06 18:59:55 +00:00
Ali BARIN
814c504951 feat(dropbox): add create folder action 2023-04-06 18:59:55 +00:00
Ali BARIN
5c2b96a812 feat(dropbox): support connections 2023-04-06 18:59:55 +00:00
Ali BARIN
3dc1ca8adb Merge pull request #1041 from automatisch/list-shared-drives-for-new-files-in-folder
feat(google-drive): list shared drives for new files in folder trigger
2023-04-06 17:45:33 +02:00
Ali BARIN
a6850f1bc0 Merge pull request #1042 from automatisch/list-shared-drives-for-new-folders
feat(google-drive): list shared drives for new folders trigger
2023-04-06 17:44:25 +02:00
Ali BARIN
5ba6cb9135 Merge pull request #1043 from automatisch/list-shared-drives-for-updated-files
feat(google-drive): list shared drives for updated files trigger
2023-04-06 17:43:53 +02:00
Rıdvan Akca
500283af6f feat(google-drive): list shared drives for new files in folder trigger 2023-04-06 18:42:07 +03:00
Rıdvan Akca
43184dccda feat(google-drive): list shared drives for new folders trigger 2023-04-06 18:41:12 +03:00
Rıdvan Akca
4296a3b5df feat(google-drive): list shared drives for updated files trigger 2023-04-06 18:39:22 +03:00
Ali BARIN
14ba50f061 Merge pull request #1039 from automatisch/list-shared-drives-for-new-files
feat(google-drive): list shared drives for new files trigger
2023-04-06 16:35:59 +02:00
Rıdvan Akca
9ad7de56a3 feat(google-drive): list shared drives for new files trigger 2023-04-06 16:31:30 +02:00
Ali BARIN
5570687957 Merge pull request #1038 from automatisch/gsheet-new-spreadsheet
feat(google-sheets): add google sheets integration
2023-04-06 16:31:18 +02:00
Rıdvan Akca
1406bf3e10 docs(google-sheets): add trigger for new spreadsheets 2023-04-06 17:12:48 +03:00
Rıdvan Akca
287f299b94 feat(google-sheets): add new spreadsheets trigger 2023-04-06 17:12:48 +03:00
Rıdvan Akca
f88f05cd46 feat(google-sheets): add google sheets integration 2023-04-06 17:12:41 +03:00
Ali BARIN
c6fb42e2f3 Merge pull request #1036 from automatisch/update-full-name-in-profile-page
feat(ProfileSettings): add capability to update user full name
2023-04-06 15:37:51 +02:00
Ali BARIN
c64ca9d9b7 fix(ProfileSettings): don't submit password unless changed 2023-04-06 13:34:43 +00:00
Ali BARIN
7d47793afb feat: add subscription update and cancel logics 2023-04-06 13:08:49 +00:00
Rıdvan Akca
2840fce856 feat(profile): combine forms 2023-04-05 15:07:28 +03:00
Rıdvan Akca
2791dca412 feat(profile): add capability to update user's full name 2023-03-31 12:38:02 +03:00
Ali BARIN
3e268bf66b Merge pull request #1035 from automatisch/gdrive-updated-files-trigger
feat(google-drive): add updated files trigger
2023-03-30 16:26:27 +02:00
Rıdvan Akca
f44422a77e docs(google-drive): add trigger for updated files 2023-03-30 17:02:52 +03:00
Rıdvan Akca
4931cbcc34 feat(google-drive): add updated files trigger 2023-03-30 17:00:56 +03:00
Ali BARIN
59e495f7d3 Merge pull request #1034 from automatisch/gdrive-add-new-folders-trigger
docs(google-drive): add trigger for new folders
2023-03-30 13:26:31 +02:00
Rıdvan Akca
93866d7bc2 docs(google-drive): add trigger for new folders 2023-03-30 12:15:15 +03:00
Ali BARIN
ba1cdeaeeb Merge pull request #1016 from automatisch/add-docs-for-google-drive
docs: add google drive connection and triggers
2023-03-29 18:29:43 +02:00
Ali BARIN
234b27e555 Merge pull request #1015 from automatisch/add-docs-for-google-forms
docs: add google forms connection and triggers
2023-03-29 18:28:28 +02:00
Ali BARIN
5acfd09819 Merge pull request #1033 from automatisch/update-new-files-in-folder-trigger
fix(google-drive): show root files if no particular folder is selected
2023-03-29 18:25:39 +02:00
Rıdvan Akca
9923b15ecd fix(google-drive): show root files if no particular folder is selected 2023-03-29 19:01:04 +03:00
Ali BARIN
def5a6d9d0 Merge pull request #1032 from automatisch/gdrive-new-folder-trigger
feat(google-drive): add new folders trigger
2023-03-29 17:40:03 +02:00
Rıdvan Akca
17c8a405f5 feat(google-drive): add new folders trigger 2023-03-29 18:35:26 +03:00
Rıdvan Akca
ff874bfb48 docs(google-drive): add trigger for new files in folder 2023-03-29 15:11:39 +02:00
Ali BARIN
4cbb37b996 Merge pull request #1030 from automatisch/gdrive-update-new-files-in-folder-trigger
fix(google-drive): show only files in trigger for  new files in folder
2023-03-29 14:38:22 +02:00
Rıdvan Akca
f57e35c6b8 fix(google-drive): show only files in trigger for new files in folder 2023-03-29 15:33:21 +03:00
Ali BARIN
312e786e33 Merge pull request #1028 from automatisch/gdrive-new-file-in-folder-trigger
feat(google-drive): add new files in folder trigger
2023-03-29 13:01:45 +02:00
Rıdvan Akca
e2c75a2daf feat(google-drive): add new files in folder trigger 2023-03-29 13:16:39 +03:00
Ali BARIN
fce20263ea Merge pull request #1027 from automatisch/hide-invoices-when-empty
fix: hide empty invoices section
2023-03-27 23:39:27 +02:00
Faruk AYDIN
d841f9cb62 fix: Do not return invoices if there is no subscription 2023-03-28 00:27:43 +03:00
Ali BARIN
4945240ec2 fix: hide empty invoices section 2023-03-27 20:14:39 +00:00
Ali BARIN
f1cdc7e422 Merge pull request #1026 from automatisch/invoices-section
feat: add invoices on billing and usage page
2023-03-27 10:25:18 +02:00
Ali BARIN
372cdb10d6 feat: make invoices dynamic 2023-03-27 08:22:24 +00:00
Ali BARIN
fd24dbee21 fix(useBillingAndUsageData): fix invalid date 2023-03-27 08:22:14 +00:00
Faruk AYDIN
7066f7ea76 feat: Add draft design for invoices section 2023-03-27 01:02:28 +03:00
Ömer Faruk Aydın
5ae53c79b6 Merge pull request #1025 from automatisch/make-billing-and-usage-dynamic
feat: use actual data in billing and usage
2023-03-27 00:13:35 +03:00
Ali BARIN
f3a8ab289f feat: use actual data in billing and usage 2023-03-26 19:28:15 +00:00
Ali BARIN
a99609e3da feat(devcontainer): expose psql and redis 2023-03-26 19:26:35 +00:00
Ali BARIN
a271189448 refactor(devcontainer): configure urls using localhost 2023-03-26 19:26:13 +00:00
Ömer Faruk Aydın
251bc28526 Merge pull request #1024 from automatisch/billing-query
chore: Adjust billing query to be more dynamic
2023-03-26 18:55:07 +03:00
Faruk AYDIN
05505704e4 chore: Adjust billing query to be more dynamic 2023-03-26 18:22:49 +03:00
Ali BARIN
4aadcb021e Merge pull request #1023 from automatisch/refactor-billing-and-usage
refactor: getBillingAndUsage graphQL query
2023-03-26 16:06:16 +02:00
Faruk AYDIN
ae9da1b354 refactor: getBillingAndUsage graphQL query 2023-03-26 14:56:44 +03:00
Rıdvan Akca
a594029541 docs: add google drive connection and triggers 2023-03-26 14:32:31 +03:00
Rıdvan Akca
ddcb894932 docs: add google forms connection and triggers 2023-03-26 14:31:16 +03:00
Ömer Faruk Aydın
708cdbe545 Merge pull request #1022 from automatisch/get-invoices
feat: Implement getInvoices graphQL query
2023-03-26 14:16:56 +03:00
Faruk AYDIN
1cbf96dff1 feat: Implement getInvoices graphQL query 2023-03-26 02:02:36 +03:00
Ömer Faruk Aydın
bd55b37d5f Merge pull request #1021 from automatisch/paddle-client
Paddle client
2023-03-26 00:38:19 +03:00
Faruk AYDIN
7c3a0effee chore: Remove paddle-sdk dependency 2023-03-25 18:35:21 +03:00
Faruk AYDIN
fe3048aab0 feat: Implement getSubscription for paddle without sdk 2023-03-25 18:32:16 +03:00
Faruk AYDIN
9a5a3e879d fix: Use paddle_subscription_id as field name for findOne query 2023-03-25 17:40:45 +03:00
Faruk AYDIN
269902db94 chore: Use verify webhook logic without paddle sdk 2023-03-25 17:40:02 +03:00
Ömer Faruk Aydın
4ba67ea863 Merge pull request #1020 from automatisch/subscription-payment-succeeded
feat: Handle subscription payment succeeded event
2023-03-25 16:38:10 +03:00
Faruk AYDIN
3534712478 feat: Handle subscription payment succeeded event 2023-03-25 16:34:24 +03:00
Ömer Faruk Aydın
62b9a8071a Merge pull request #1019 from automatisch/expose-error-stack
fix: Expose error stack together with error message
2023-03-25 16:32:42 +03:00
Faruk AYDIN
cf83c27ca0 fix: Expose error stack together with error message 2023-03-25 14:01:04 +03:00
Ömer Faruk Aydın
8035f81f97 Merge pull request #1018 from automatisch/billing-and-usage-v2
feat: Add usage data to getBillingAndUsage graphQL query
2023-03-25 13:23:36 +03:00
Ömer Faruk Aydın
d2375fdc54 Merge pull request #1017 from automatisch/billing-and-usage
Billing and usage graphQL query
2023-03-25 13:23:21 +03:00
Faruk AYDIN
f07d9dd813 feat: Add usage data to getBillingAndUsage graphQL query 2023-03-25 02:16:17 +03:00
Faruk AYDIN
b5524b18cf feat: Implement draft version of getBillingAndUsage query 2023-03-25 00:39:49 +03:00
Faruk AYDIN
310497a5bf chore: Add deleted_at column to subscriptions 2023-03-25 00:07:43 +03:00
Faruk AYDIN
47a738d5e6 fix: Next bill amount for paddle 2023-03-25 00:07:28 +03:00
Ömer Faruk Aydın
6ad13c1da0 Merge pull request #1014 from automatisch/handle-subscription-created
feat: Handle subscription created webhook event
2023-03-24 13:58:36 +03:00
Faruk AYDIN
99454fdc4b feat: Handle subscription created webhook event 2023-03-24 13:48:15 +03:00
Ali BARIN
799f0ead6c Merge pull request #1013 from automatisch/google-drive-integration
feat(google-drive): add new files trigger
2023-03-23 17:56:07 +01:00
Rıdvan Akca
d16d709b72 feat(google-drive): add new files trigger 2023-03-23 19:10:43 +03:00
Ömer Faruk Aydın
8e1087b818 Merge pull request #1002 from automatisch/dynamic-field-schema
feat(http-request): add headers support
2023-03-23 18:32:17 +03:00
Ömer Faruk Aydın
139dcb521e Merge pull request #1012 from automatisch/create-subscription
feat: Create subscription model
2023-03-23 18:22:09 +03:00
Faruk AYDIN
b17e431473 feat: Create subscription model 2023-03-23 18:15:36 +03:00
Ali BARIN
b1ee3ef8ba feat(http-request): add headers support 2023-03-23 14:53:27 +00:00
Ali BARIN
75bbd16b0c feat: support interactive fields 2023-03-23 13:45:46 +00:00
Ömer Faruk Aydın
71a7943d01 Merge pull request #1004 from zntemel/spotify-app
feat: implement Spotify app
2023-03-23 16:01:51 +03:00
Ömer Faruk Aydın
d34785b5b0 Merge branch 'main' into spotify-app 2023-03-23 15:58:50 +03:00
Ali BARIN
af58ef7244 fix(spotify): correct create playlist action key 2023-03-22 20:39:26 +00:00
Ali BARIN
6d3bec8518 fix(spotify): do not override auth header on refresh token 2023-03-22 20:38:27 +00:00
Ömer Faruk Aydın
0346b157c5 Merge pull request #1010 from automatisch/remove-stripe-remainings
feat(UsageAlert): use new plan upgrade page
2023-03-22 22:47:19 +03:00
Ali BARIN
e25aab742b feat(UsageAlert): use new plan upgrade page 2023-03-21 20:25:46 +00:00
Ömer Faruk Aydın
6f2ca00263 Merge pull request #1008 from automatisch/paddle-webhook-verify
feat: Verify paddle webhooks
2023-03-21 22:20:28 +03:00
Faruk AYDIN
e1d26325f3 feat: Verify paddle webhooks 2023-03-21 22:17:45 +03:00
Ömer Faruk Aydın
4202f963c3 Merge pull request #1007 from automatisch/remove-stripe
chore: Remove stripe-related functionality
2023-03-21 11:58:38 +03:00
Faruk AYDIN
d3ef45db1b chore: Remove stripe-related functionality 2023-03-21 11:55:45 +03:00
Ömer Faruk Aydın
dec55709a3 Merge pull request #1006 from automatisch/aut-73
feat: add checkout process
2023-03-21 11:34:16 +03:00
Ali BARIN
b5ed984f05 feat: add checkout process 2023-03-20 23:24:04 +00:00
Ali BARIN
66d7baa126 fix: make Paddle vendor id number 2023-03-20 23:23:44 +00:00
Ömer Faruk Aydın
a2809a14c5 Merge pull request #1005 from automatisch/paddle-info
feat: Implement getPaddleInfo graphQL query
2023-03-21 01:05:25 +03:00
Faruk AYDIN
040ad9edb0 feat: Implement getPaddleInfo graphQL query 2023-03-21 00:55:27 +03:00
Ömer Faruk Aydın
46dbe009f2 Merge pull request #1003 from automatisch/billing-page
feat: redesign billing page
2023-03-21 00:53:15 +03:00
Ali BARIN
3598d43938 feat: make payment plans dynamic 2023-03-21 00:50:33 +03:00
Faruk AYDIN
f1358c7ad1 feat: add GetPaymentPlans graphQL query 2023-03-21 00:50:33 +03:00
Ali BARIN
40862fcd01 feat: move plan upgrade to its page 2023-03-21 00:50:31 +03:00
Faruk AYDIN
189432c228 feat: Implement draft version of UpgradeFreeTrial component 2023-03-21 00:49:28 +03:00
Faruk AYDIN
280d16f3d9 chore: Use luxon instead moment as date utility 2023-03-21 00:49:28 +03:00
Faruk AYDIN
722c39590f feat: Start trial period on cloud 2023-03-21 00:49:28 +03:00
Ali BARIN
b1138dbf05 feat: make billings page responsive 2023-03-21 00:49:28 +03:00
Faruk AYDIN
08918282a7 feat: redesign billing page 2023-03-21 00:49:28 +03:00
Ömer Faruk Aydın
5007b0bf1a Merge pull request #993 from automatisch/searchable-json
feat: add searchable json viewer component
2023-03-20 13:29:40 +03:00
Rıdvan Akca
0a5912eb8e refactor(SearchableJSONViewer): rewrite collecting keys and values of data 2023-03-20 11:31:01 +03:00
Zeynep Nur Temel
8acd7b03ed docs: add spotify connection and actions 2023-03-19 23:48:45 +03:00
Zeynep Nur Temel
ed87df212f feat: add refresh token for spotify 2023-03-19 23:04:55 +03:00
Zeynep Nur Temel
56243aa076 feat: implement create playlist action for spotify 2023-03-18 19:18:16 +03:00
Zeynep Nur Temel
41e9f32e1b feat: implement Spotify connection 2023-03-18 13:41:18 +03:00
Rıdvan Akca
f7753aa1b4 fix(SearchableJSONViewer): remove undefined values from filtered arrays 2023-03-17 19:38:10 +03:00
Rıdvan Akca
aebfcc38dd feat(SearchableJSONViewer): cover no result case 2023-03-17 19:38:10 +03:00
Rıdvan Akca
3e0149c058 feat: add searchable json viewer component 2023-03-17 19:38:10 +03:00
Ali BARIN
1e62e09825 Merge pull request #999 from automatisch/dependabot/npm_and_yarn/webpack-5.76.1
chore(deps): bump webpack from 5.67.0 to 5.76.1
2023-03-14 23:20:07 +01:00
dependabot[bot]
956b15a2eb chore(deps): bump webpack from 5.67.0 to 5.76.1
Bumps [webpack](https://github.com/webpack/webpack) from 5.67.0 to 5.76.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.67.0...v5.76.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 20:08:01 +00:00
Ali BARIN
572b457b43 Merge pull request #955 from s-schumann/feature/signalwire-integration
feat: add Signalwire integration
2023-03-14 09:26:30 +01:00
Ali BARIN
7d40ae009f fix(signalwire): use incoming phone number instead of its sid 2023-03-13 22:32:25 +00:00
Ali BARIN
aec9595dea fix: stop checking empty app input in createFlow 2023-03-13 22:11:55 +00:00
Ali BARIN
cc90f19a46 fix: stop checking empty action/trigger input in updateStep 2023-03-13 22:11:42 +00:00
Ali BARIN
ab486c8ed1 Merge branch 'main' into feature/signalwire-integration 2023-03-13 21:14:14 +01:00
Ali BARIN
bfb1e817ec feat(signalwire): introduce dynamic incoming phone numbers 2023-03-13 20:13:45 +00:00
Ömer Faruk Aydın
ebc7c22388 Merge pull request #998 from automatisch/corporate-signup-in-loading-in-signup
fix: show progress as of sign-up in SignUpForm
2023-03-13 22:39:48 +03:00
Ali BARIN
10b4066c82 refactor(signalwire): add dynamic api base url 2023-03-13 19:10:20 +00:00
Ali BARIN
42dd67954d refactor(signalwire): utilize axios post params 2023-03-13 19:06:20 +00:00
Ali BARIN
d45fdf605f fix(signalwire): localize icon 2023-03-13 19:05:32 +00:00
Ali BARIN
caef9bb8b5 chore: reword Signalwire as SignalWire 2023-03-13 19:05:02 +00:00
Ali BARIN
c888934601 fix: show progress as of sign-up in SignUpForm 2023-03-13 16:28:04 +00:00
Ömer Faruk Aydın
95613b595e Merge pull request #997 from automatisch/change-redirect-url
chore: Change redirect url for payment portal
2023-03-12 19:28:57 +01:00
Ömer Faruk Aydın
9247bd9d9e Merge pull request #996 from automatisch/subscription-creation
chore: Make subscription creation synchronous
2023-03-12 19:27:56 +01:00
Faruk AYDIN
ee3d2489e6 chore: Change redirect url for payment portal 2023-03-12 21:26:10 +03:00
Faruk AYDIN
7764c4fbcb chore: Make subscription creation synchronous 2023-03-12 21:23:32 +03:00
Ömer Faruk Aydın
a18b524859 Merge pull request #995 from automatisch/backend-mutation-validations
feat: add validation checks in mutations
2023-03-12 18:53:32 +01:00
Ali BARIN
9b8ec9b85e feat: validate step input in executeFlow 2023-03-12 11:28:33 +00:00
Ali BARIN
7b3f070973 feat: validate app and action input in createStep 2023-03-12 11:26:50 +00:00
Ali BARIN
ba27fc12e8 feat: validate app input in createFlow 2023-03-12 11:26:28 +00:00
Ali BARIN
db55912f78 feat: validate trigger input in updateStep 2023-03-12 11:18:04 +00:00
Ali BARIN
4c4bd267d4 feat: validate action input in updateStep 2023-03-12 11:17:55 +00:00
Ali BARIN
dc1002659b feat: validate connection input in updateStep 2023-03-12 11:16:51 +00:00
Ali BARIN
97da370301 feat: provide clear message when app is not found 2023-03-12 09:59:27 +00:00
Ali BARIN
571901f333 Merge pull request #994 from automatisch/introduce-sentry
feat: introduce Sentry
2023-03-10 20:06:56 +01:00
Ali BARIN
4d90df9d9a feat: introduce Sentry 2023-03-10 18:53:10 +00:00
Ali BARIN
2c18667ffd Merge pull request #992 from automatisch/open-stripe-in-same-window
feat: open payment portal in same window
2023-03-09 16:53:43 +01:00
Ömer Faruk Aydın
89157cd606 Merge pull request #991 from automatisch/let-extra-executions-go-through-over-quota
feat: don't interrupt execution due to quota
2023-03-09 16:18:14 +01:00
Ali BARIN
37e0091ef0 feat: open payment portal in same window 2023-03-09 15:17:05 +00:00
Ali BARIN
ae3512fecf feat: don't interrupt execution due to quota 2023-03-09 15:13:50 +00:00
Ömer Faruk Aydın
8b81391e2f Merge pull request #989 from automatisch/skip-processing-steps-over-quota
feat: skip processing tasks over task quota
2023-03-09 13:51:11 +01:00
Ali BARIN
54e68f6252 feat: skip processing tasks over task quota 2023-03-09 12:48:16 +00:00
Ali BARIN
92d1ed65ff feat: expose errors from webhooks 2023-03-09 12:46:32 +00:00
Ali BARIN
8098a7ee5d feat: add checkIfLimitExceeded in UsageData model 2023-03-09 12:46:32 +00:00
Ömer Faruk Aydın
c24297630c Merge pull request #988 from automatisch/show-alert-for-task-usage
feat: show usage alert as of threshold
2023-03-09 13:45:55 +01:00
Ömer Faruk Aydın
a9d5212602 Merge pull request #990 from automatisch/disable-conditional-features
feat: disable non-cloud features
2023-03-09 13:45:27 +01:00
Ali BARIN
c81db8ae19 feat: disable non-cloud features 2023-03-09 11:23:29 +00:00
Sebastian Schumann
ecd356d42b Merge branch 'automatisch:main' into feature/signalwire-integration 2023-03-09 01:51:13 +01:00
Ali BARIN
e67adf87b2 fix: hide chatwoot in small screens 2023-03-08 18:43:45 +00:00
Ali BARIN
1669708041 feat: show usage alert as of threshold 2023-03-08 18:43:42 +00:00
Ali BARIN
12e34013f8 refactor: default noSsr to true in useMediaQuery 2023-03-08 18:35:51 +00:00
Ömer Faruk Aydın
bd2ad1d7a1 Merge pull request #986 from automatisch/increase-consumed-task-count
feat: increase consumed task count upon tasks
2023-03-08 10:07:28 +01:00
Ali BARIN
934cdb8237 refactor: increment consumed task count atomically 2023-03-08 01:45:22 +00:00
Ömer Faruk Aydın
2f6ea8830e Merge pull request #984 from automatisch/add-chatwoot
feat: add chatwoot
2023-03-07 23:21:47 +01:00
Ömer Faruk Aydın
b77d08ebbf Merge pull request #985 from automatisch/show-payment-plan-name
feat: show current plan name in usage information
2023-03-07 23:03:44 +01:00
Ömer Faruk Aydın
b735d32cbc Merge pull request #983 from automatisch/payment-webhooks
feat: Implement stripe webhooks
2023-03-07 23:03:14 +01:00
Ali BARIN
472ffd5b5c feat: increase consumed task count upon tasks 2023-03-07 21:26:12 +00:00
Ali BARIN
4567ca8fce feat: show current plan name in usage information 2023-03-07 20:48:57 +00:00
Ali BARIN
07ed24ca7a feat: add chatwoot 2023-03-07 20:36:54 +00:00
Ali BARIN
52575be2a7 chore: add fullName in User interface 2023-03-07 20:36:54 +00:00
Ali BARIN
c8187e52bb fix: stop redirecting to login on /login 2023-03-07 20:36:54 +00:00
Faruk AYDIN
b0b6b72b4c feat: Implement stripe webhooks 2023-03-07 17:22:40 +01:00
Ali BARIN
7676bc5836 Merge pull request #982 from automatisch/add-space-between-buttons
refactor: adjust spacing in FlowRow
2023-03-07 16:10:27 +01:00
Rıdvan Akca
f98c1725be refactor: adjust spacing between button and chip in FlowRow component 2023-03-07 18:06:36 +03:00
Ali BARIN
c6bd599b63 Merge pull request #981 from automatisch/fix-signup-email
fix: add custom email error message for signup
2023-03-07 13:30:06 +01:00
Rıdvan Akca
7908779c89 fix: add custom email error message for signup 2023-03-07 15:25:40 +03:00
Ali BARIN
29ad68afab Merge pull request #980 from automatisch/make-automatisch-info-public
fix: make getAutomatischInfo public
2023-03-06 22:46:13 +01:00
Ali BARIN
9aaeac6a08 fix: make getAutomatischInfo public 2023-03-06 21:41:53 +00:00
Ömer Faruk Aydın
8f074c2131 Merge pull request #979 from automatisch/show-usage-data
feat: show usage data
2023-03-06 22:27:34 +01:00
Ali BARIN
930653c86d feat: show usage data 2023-03-06 20:28:09 +00:00
Ömer Faruk Aydın
cc31b7c210 Merge pull request #977 from automatisch/check-cloud
feat: add empty billing and usage page
2023-03-06 20:49:44 +01:00
Ömer Faruk Aydın
bb19e9308c Merge pull request #978 from automatisch/expose-payment-portal
feat: show payment portal information
2023-03-06 20:46:58 +01:00
Ali BARIN
5e7b4bfe45 feat: show payment portal information 2023-03-06 19:42:41 +00:00
Ali BARIN
dbeeb61cc5 feat: add empty billing and usage page 2023-03-06 18:06:00 +00:00
Ali BARIN
26d8e5856a feat: make automatisch info available 2023-03-06 18:04:47 +00:00
Ali BARIN
66be6d1e89 fix: return isCloud boolean in getAutomatischInfo 2023-03-06 18:01:47 +00:00
Ömer Faruk Aydın
677aa232e7 Merge pull request #976 from automatisch/get-payment-portal-url
feat: Add getPaymentPortalUrl graphQL query
2023-03-06 13:22:09 +01:00
Faruk AYDIN
cabbb45031 feat: Add getPaymentPortalUrl graphQL query 2023-03-06 12:45:29 +01:00
Ömer Faruk Aydın
ba99df645b Merge pull request #975 from automatisch/get-usage-data
feat: Implement getUsageData graphQL query
2023-03-06 12:44:35 +01:00
Faruk AYDIN
282e5ba2d8 feat: Implement getUsageData graphQL query 2023-03-06 12:37:28 +01:00
Ömer Faruk Aydın
42d418da58 Merge pull request #974 from automatisch/change-consumer-task-count
fix: Alter consumed task count column to integer
2023-03-06 12:09:34 +01:00
Faruk AYDIN
cbf270fdba fix: Alter consumed task count column to integer 2023-03-06 11:35:39 +01:00
Ömer Faruk Aydın
bb9abe104f Merge pull request #973 from automatisch/get-automatisch-info-query
feat: Introduce getAutomatischInfo graphQL query
2023-03-05 20:17:59 +01:00
Faruk AYDIN
18f0d6dea3 feat: Introduce getAutomatischInfo graphQL query 2023-03-05 20:12:59 +01:00
Ali BARIN
23dc9a1139 Merge pull request #972 from automatisch/payment-draft
feat: Initial payment implementation
2023-03-05 18:14:03 +01:00
Faruk AYDIN
5e18ef5830 feat: Initial payment implementation 2023-03-05 17:14:01 +01:00
Ömer Faruk Aydın
63f8fc266d Merge pull request #968 from automatisch/forgot-password
feat: add forgot password featureset
2023-03-05 10:28:07 +01:00
Ali BARIN
4e46b16f7b feat: use full name instead of email address in emails 2023-03-05 09:18:07 +00:00
Ömer Faruk Aydın
ba19b50005 Merge pull request #971 from automatisch/reset-password-page
feat: reset password page
2023-03-04 19:33:10 +01:00
Ali BARIN
fa867387d4 feat: add reset password page 2023-03-03 20:13:31 +00:00
Ali BARIN
5762cf5dc5 fix: make resetMutation public 2023-03-03 20:09:37 +00:00
Ali BARIN
7d9f624805 feat: add translations for sign up CTA in login 2023-03-03 18:15:49 +00:00
Ali BARIN
5b335ccd59 feat: add translations in login form 2023-03-03 18:11:44 +00:00
Ali BARIN
4792853eb6 feat: add forgot password page 2023-03-03 18:10:52 +00:00
Ali BARIN
cc05bc7db8 feat: expose email address in email templates 2023-03-03 18:07:35 +00:00
Ali BARIN
d198eaa988 fix: correct template name in email worker 2023-03-03 18:07:35 +00:00
Ali BARIN
f094da6a4b feat: add spacing in reset password email template 2023-03-03 18:07:35 +00:00
Ali BARIN
a53961b235 fix: correct reset password link in email 2023-03-03 18:07:35 +00:00
Ali BARIN
f644113af8 Merge pull request #970 from automatisch/add-signup
feat: add signup page
2023-03-03 19:06:43 +01:00
Rıdvan Akca
e4a903ec07 refactor: add translation for texts in sign up page 2023-03-03 20:42:12 +03:00
Rıdvan Akca
9408fe2a07 feat: remove helperText from profile setting page if there is no error 2023-03-03 18:43:18 +03:00
Rıdvan Akca
394e747a88 feat: remove helperText if there is no error 2023-03-03 18:40:55 +03:00
Ömer Faruk Aydın
e91f12729b Merge pull request #967 from automatisch/automatisch-cloud
feat: Introduce automatisch cloud env variable
2023-03-03 12:28:37 +01:00
Faruk AYDIN
134e588b14 feat: Introduce automatisch cloud env variable 2023-03-03 12:15:58 +01:00
Rıdvan Akca
d061eb7b58 feat: update migration logic and remove consolelog 2023-03-03 14:10:54 +03:00
Rıdvan Akca
18089a8076 feat: add signup logic 2023-03-03 14:05:35 +03:00
Ömer Faruk Aydın
02236e01d9 Merge pull request #966 from automatisch/delete-account-in-web
feat: show delete user functionality
2023-03-03 10:11:48 +01:00
Rıdvan Akca
c1150d50b1 feat: create signup form 2023-03-03 11:34:53 +03:00
Ali BARIN
387a849269 fix: delete current user in deleteUser mutation 2023-03-02 23:46:20 +00:00
Ali BARIN
399cebda70 feat: show delete user functionality 2023-03-02 23:37:05 +00:00
Ali BARIN
72720b3dfe Merge pull request #965 from automatisch/add-deleteUser-mutation
Add deleteUser mutation
2023-03-02 22:08:44 +01:00
Ali BARIN
64f7560b3b feat: add delete user worker 2023-03-02 15:28:51 +00:00
Ali BARIN
e06b646f49 feat: add deleteUser mutation 2023-03-02 15:26:06 +00:00
Ali BARIN
b51d9bb17b feat: add delete user queue 2023-03-02 15:25:24 +00:00
Rıdvan Akca
4e967c5720 feat: add signup link to login and create signup dummy page 2023-03-02 16:42:50 +03:00
Ali BARIN
179db38fd1 feat: show email queue jobs in bull-board 2023-03-02 11:11:42 +00:00
Ömer Faruk Aydın
e51930d7e1 Merge pull request #964 from automatisch/add-full-name-to-users
feat: introduce full name column to user model
2023-03-01 23:33:03 +01:00
Ali BARIN
74a299dbe6 feat: introduce full name column to user model 2023-03-01 21:40:39 +00:00
Ali BARIN
282863c526 Merge pull request #889 from automatisch/feature/dynamic-fields
feat: add dynamic fields support
2023-03-01 19:31:23 +01:00
Ali BARIN
63d794ed3e refactor(dynamicFields): use thrown error instead of returning it 2023-03-01 18:00:27 +00:00
Ali BARIN
c6b8f12f9a feat(Editor): implement dynamic fields 2023-03-01 17:52:52 +00:00
Faruk AYDIN
d16e292231 feat: Add dynamic fields structure to step arguments 2023-02-28 22:22:48 +00:00
Ali BARIN
29a319a850 Merge pull request #962 from automatisch/fix-unreachable-server-errors
fix: correct errors for unreachable servers
2023-02-27 21:00:43 +01:00
Ali BARIN
c11e0db077 Merge pull request #961 from automatisch/use-custom-server-in-ntfy
fix(ntfy): use given server URL instead of default
2023-02-27 21:00:31 +01:00
Ali BARIN
b2dafb5dfa Merge pull request #960 from automatisch/remove-original-error-in-gql-responses
fix: stop using originalError in GQL responses
2023-02-27 21:00:18 +01:00
Ali BARIN
e7ccd01427 fix: stop using originalError in GQL responses 2023-02-27 20:29:22 +01:00
Ali BARIN
447f26458a fix(ntfy): use given server URL instead of default 2023-02-27 20:28:58 +01:00
Ali BARIN
61fb71a080 fix: correct errors for unreachable servers 2023-02-27 20:28:15 +01:00
Ömer Faruk Aydın
329fcdf8f4 Merge pull request #959 from automatisch/do-not-suppress-native-gql-errors
fix: do not suppress native GQL errors
2023-02-26 23:16:03 +01:00
Ali BARIN
37cdb34014 fix: do not suppress native GQL errors 2023-02-26 22:13:07 +00:00
Ali BARIN
5ee7b85cc4 feat(filter): add filter app 2023-02-26 17:02:30 +01:00
Ömer Faruk Aydın
1f7228f95a Merge pull request #958 from automatisch/fix-seed-user
fix: Create seed user with admin role
2023-02-26 16:03:38 +01:00
Faruk AYDIN
fa8418adcd fix: Create seed user with admin role 2023-02-26 15:40:47 +01:00
Ömer Faruk Aydın
d3b1765ffe Merge branch 'main' into feature/signalwire-integration 2023-02-26 13:23:27 +01:00
Ömer Faruk Aydın
0a274ebadb Merge pull request #957 from automatisch/oauth-docs
docs: Explain OAuth preference for app connections
2023-02-25 11:02:50 +01:00
Faruk AYDIN
0d1b35edc5 docs: Explain OAuth preference for app connections 2023-02-25 10:53:54 +01:00
Sebastian Schumann
d7e4ae53ce feat: add Signalwire integration 2023-02-24 12:45:58 +01:00
Ömer Faruk Aydın
61ceffc6f9 Merge pull request #956 from automatisch/frontend-app-start
docs: Add how to start frontend app for dev setup
2023-02-24 12:27:02 +01:00
Faruk AYDIN
0c422bfd21 docs: Add how to start frontend app for dev setup 2023-02-24 12:23:25 +01:00
Ömer Faruk Aydın
a0815b06a6 feat: Implement draft version of reset password email (#949) 2023-02-24 00:25:10 +01:00
कारतोफ्फेलस्क्रिप्ट™
bd02b7574a chore: Reduce the docker image size by half (#890) 2023-02-21 13:02:32 +01:00
Ömer Faruk Aydın
1048d923d0 Merge pull request #947 from automatisch/reset-password
feat: Add resetPassword mutation
2023-02-19 11:49:58 +01:00
Faruk AYDIN
9dbfcf4262 feat: Add resetPassword mutation 2023-02-19 11:04:56 +01:00
Ömer Faruk Aydın
8ea176b5f0 Merge pull request #946 from automatisch/forgot-password-mutation
feat: Implement forgotPassword mutation
2023-02-18 17:23:16 +01:00
Faruk AYDIN
90dcbadc52 feat: Implement forgotPassword mutation 2023-02-18 16:54:01 +01:00
Ömer Faruk Aydın
e4021bf830 Merge pull request #945 from automatisch/create-user
feat: Implement createUser mutation
2023-02-18 15:53:07 +01:00
Faruk AYDIN
b8b453aba0 feat: Implement createUser mutation 2023-02-18 14:49:12 +01:00
Ömer Faruk Aydın
aeec2377c1 Merge pull request #944 from automatisch/user-role
feat: Introduce role column to user model
2023-02-18 14:29:11 +01:00
Faruk AYDIN
f8b0ffd39b feat: Introduce role column to user model 2023-02-18 14:26:10 +01:00
Ömer Faruk Aydın
9953c3c823 Merge pull request #943 from automatisch/check-license
fix: Use kebab-case for check license file
2023-02-17 22:46:40 +01:00
Faruk AYDIN
d227a07fe9 fix: Use kebab-case for check license file 2023-02-17 22:42:56 +01:00
Ömer Faruk Aydın
7c394414d8 Merge pull request #939 from automatisch/verify-license
feat: Introduce getLicense graphQL query
2023-02-14 22:19:17 +01:00
Faruk AYDIN
1dfb22d02e feat: Introduce getLicense graphQL query 2023-02-14 22:15:59 +01:00
Faruk AYDIN
1847ad5622 chore: Use GitHub issues instead of discussions for requests 2023-02-13 21:48:35 +01:00
Ömer Faruk Aydın
beb701ceb4 Merge pull request #894 from automatisch/docs/license
chore: Explain license changes in docs and package.json files
2023-02-12 16:02:23 +01:00
Faruk AYDIN
2fbadea821 chore: Explain license changes in docs and package.json files 2023-02-12 15:46:31 +01:00
Ömer Faruk Aydın
bac561d8c7 Merge pull request #893 from automatisch/license-adjustment
chore: Adjust licenses
2023-02-12 14:39:07 +01:00
Faruk AYDIN
7bd261a02e chore: Adjust licenses 2023-02-12 13:41:24 +01:00
Ömer Faruk Aydın
df99a889f0 Merge pull request #892 from automatisch/cla-text
chore: Add contributor license agreement
2023-02-12 12:09:21 +01:00
Ömer Faruk Aydın
16c5892a1d Merge pull request #891 from automatisch/ee-license
chore: Introduce EE license
2023-02-12 12:09:08 +01:00
Faruk AYDIN
0236bbaf68 chore: Add contributor license agreement 2023-02-10 15:56:43 +01:00
Faruk AYDIN
2ca5a290c3 chore: Adjust licenses as CE and EE editions 2023-02-10 15:46:51 +01:00
Faruk AYDIN
66c388a644 chore: Introduce enterprise license 2023-02-10 15:31:54 +01:00
Ali BARIN
74a77ed271 fix(worker): compute parameters for delaying job 2023-02-08 23:22:57 +01:00
Ali BARIN
3d98e6cdc0 feat(slack/list-channels): add im channels and increase limit 2023-02-08 23:22:43 +01:00
Faruk AYDIN
831ae96e0f Release v.0.5.0 2023-02-08 13:32:25 +01:00
Faruk AYDIN
113a91a73f chore: Update versioning in dockerfiles 2023-02-08 13:32:25 +01:00
Faruk AYDIN
2be8e14f66 feat(http-request): cover file downloads 2023-02-07 21:48:52 +01:00
Faruk AYDIN
9cfaa9e603 feat(salesforce): Implement create attachment integration 2023-02-07 21:15:44 +01:00
Ali BARIN
48653c7590 feat(slack/list-channels): add private and exclude archived channels 2023-02-06 00:47:41 +01:00
Ömer Faruk Aydın
72450b6305 Merge pull request #872 from automatisch/primitive-custom-http-request
feat(http-request): introduce custom request action
2023-02-06 00:21:37 +01:00
dependabot[bot]
7d22a1c105 chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-04 12:58:23 +01:00
Ali BARIN
08ac3fb984 docs(http-request): add custom request action 2023-02-02 22:34:42 +00:00
Ali BARIN
2f64a074c6 feat(http-request): introduce custom request action 2023-02-02 22:30:07 +00:00
Donghoon Song
f98c797311 fix: readme git clone commannd
Current command needs public key so access is denied.
2023-02-01 22:12:45 +01:00
Ömer Faruk Aydın
d81fb14b04 Merge pull request #870 from automatisch/slack-search-user-by-email
feat(slack): add find user by email action
2023-01-31 15:15:37 +01:00
Ali BARIN
01bb1259eb feat(slack): add find user by email action 2023-01-30 23:39:00 +00:00
Ali BARIN
1118d025bf chore: add hostRequirements in devcontainer 2023-01-31 00:23:50 +01:00
Ali BARIN
146f0604c3 docs(salesforce): add find record action 2023-01-31 00:19:51 +01:00
Ali BARIN
f90afe8b37 feat(salesforce): add find record action 2023-01-31 00:19:51 +01:00
Ali BARIN
fff5306fa6 chore: introduce .devcontainer 2023-01-30 13:47:30 +01:00
Ali BARIN
078ea24cd2 feat: request increase body size limit to 1mb 2023-01-29 13:53:32 +01:00
Ali BARIN
85a3558074 docs(ntfy): use actions page for app listing 2023-01-25 11:58:52 +01:00
Ali BARIN
73a9ae1c9c docs(twitter): remove duplicate items 2023-01-25 11:26:19 +01:00
dependabot[bot]
2222ede420 chore(deps): bump knex from 0.95.15 to 2.4.0
Bumps [knex](https://github.com/knex/knex) from 0.95.15 to 2.4.0.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits/2.4.0)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-20 18:01:10 +01:00
Ömer Faruk Aydın
c6d80a9b0e Merge pull request #856 from automatisch/search-user-in-twitter
feat(twitter): add search user action
2023-01-20 15:38:26 +03:00
Ömer Faruk Aydın
23c4414398 Merge pull request #852 from automatisch/openai-send-prompt
feat(openai): add send prompt action
2023-01-20 15:14:05 +03:00
Ömer Faruk Aydın
8b9320bbf9 Merge pull request #851 from automatisch/openai-check-moderation
feat(openai): add moderation action
2023-01-20 15:07:45 +03:00
Katriel Tsepelevish
a8ac288f17 fix(todoist): Add missing OAuth redirect URL field 2023-01-19 18:42:44 +01:00
Ali BARIN
ffe7de6774 docs(twitter): add search user action 2023-01-19 17:56:58 +01:00
Ali BARIN
d87a826493 feat(twitter): sign querystring in requests 2023-01-19 17:56:39 +01:00
Ali BARIN
645fe29060 feat(twitter): add search user action 2023-01-19 17:55:59 +01:00
Ali BARIN
4db738a7f6 docs(openai): add send prompt action 2023-01-18 22:41:53 +01:00
Ali BARIN
253c2c4317 feat(openai): add send prompt action 2023-01-18 22:41:53 +01:00
Ali BARIN
49755303f7 feat(openai): add list models dynamic data 2023-01-18 22:41:53 +01:00
Ali BARIN
1e137f0bd8 docs(openai): describe auth and check moderation action 2023-01-18 22:41:35 +01:00
Ali BARIN
c2579b1850 feat(openai): add moderation action 2023-01-18 22:41:34 +01:00
Ali BARIN
577d5215cd feat(openai): add app with auth 2023-01-18 22:41:34 +01:00
Ali BARIN
0870fa7e8f fix(typeform): add HTTP 403 to refresh token 2023-01-18 22:41:10 +01:00
Katriel Tsepelevish
ddb3795985 chore(backend): Provide HTTP url on server launch up 2023-01-15 17:24:22 +01:00
Ali BARIN
45e98cd5b7 fix(Editor): fetch webhookUrl upon updating step 2023-01-14 19:15:55 +01:00
Faruk AYDIN
4a99b7a3f2 chore: Update version in Dockerfiles with 0.4.0 2023-01-13 17:09:49 +01:00
Faruk AYDIN
985132da78 Release v0.4.0 2023-01-13 17:09:49 +01:00
Ali BARIN
315edea5ca docs(twitter): add missing space after comma 2023-01-11 22:05:39 +01:00
Ali BARIN
27e0ef4e38 docs(todoist): describe auth with oauth 2.0 2023-01-11 22:05:39 +01:00
Ali BARIN
8090d8be5a feat(todoist): enhance auth with oauth 2.0 2023-01-11 22:05:39 +01:00
Ali BARIN
8c8fd98bd5 feat(rss): cover atom feeds 2023-01-11 20:04:02 +01:00
dependabot[bot]
6f724b5bec chore(deps): bump luxon from 2.5.0 to 2.5.2
Bumps [luxon](https://github.com/moment/luxon) from 2.5.0 to 2.5.2.
- [Release notes](https://github.com/moment/luxon/releases)
- [Changelog](https://github.com/moment/luxon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moment/luxon/compare/2.5.0...2.5.2)

---
updated-dependencies:
- dependency-name: luxon
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 15:47:28 +01:00
Ali BARIN
909cbd1f0c fix(google-forms): platform name in OAuth field description 2023-01-09 14:09:33 +01:00
Ali BARIN
094de0ca21 fix(google-forms): remove unused and wrong docUrl in auth 2023-01-09 14:09:33 +01:00
dependabot[bot]
af8ca4af9e chore(deps): bump json5 from 1.0.1 to 1.0.2
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-07 16:23:57 +01:00
Ali BARIN
709e788f5f docs(todoist): restructure trigger and add in nav 2023-01-07 16:12:47 +01:00
Ian Levesque
1a4a1f7f8b feat(todoist): add app, authentication, docs (#826) 2023-01-07 15:09:39 +01:00
Ömer Faruk Aydın
ff0bde059a Merge pull request #825 from automatisch/google-forms-integration
Add google forms
2023-01-05 19:50:33 +03:00
Ali BARIN
ac671110a3 fix: wrap lines when showing error details 2023-01-03 21:24:29 +01:00
Ali BARIN
30c95da90e feat(google-forms): add new form responses trigger 2023-01-03 21:24:27 +01:00
Ali BARIN
0b52a1bd01 feat(google-forms): add list forms dynamic data 2023-01-03 21:23:35 +01:00
Ali BARIN
3fc7fce9ca feat(google-forms): add authentication 2023-01-03 19:06:04 +01:00
Ali BARIN
f8df7987b8 feat(google-forms): add primitive app 2023-01-03 19:02:56 +01:00
Ali BARIN
697594b63e Merge pull request #815 from automatisch/dependabot/npm_and_yarn/jsonwebtoken-9.0.0
chore(deps): bump jsonwebtoken from 8.5.1 to 9.0.0
2022-12-28 11:52:51 +01:00
dependabot[bot]
7be3923224 chore(deps): bump jsonwebtoken from 8.5.1 to 9.0.0
Bumps [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) from 8.5.1 to 9.0.0.
- [Release notes](https://github.com/auth0/node-jsonwebtoken/releases)
- [Changelog](https://github.com/auth0/node-jsonwebtoken/blob/master/CHANGELOG.md)
- [Commits](https://github.com/auth0/node-jsonwebtoken/compare/v8.5.1...v9.0.0)

---
updated-dependencies:
- dependency-name: jsonwebtoken
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-28 10:35:59 +00:00
Ömer Faruk Aydın
5b913aa30a Merge pull request #818 from automatisch/handle-different-content-types-in-webhook
feat(webhooks): handle form-data and text/plain reqs
2022-12-28 13:35:02 +03:00
Ali BARIN
da9cb7d6eb feat(webhooks): handle form-data and text/plain reqs 2022-12-25 16:28:58 +01:00
Ali BARIN
aca19f7f73 Merge pull request #814 from automatisch/docs/create-flow
docs: Add the guide for how to create flows
2022-12-22 23:21:07 +01:00
Faruk AYDIN
faf151cd62 docs: Add the guide for how to create flows 2022-12-23 01:02:35 +03:00
Ömer Faruk Aydın
675cd4de2a Merge pull request #813 from automatisch/docs/ngrok-usage
docs: Add usage of ngrok for webhook-based trigger development
2022-12-21 23:10:03 +03:00
Faruk AYDIN
74ebe492c5 docs: Add usage of ngrok for webhook-based trigger development 2022-12-21 23:07:40 +03:00
Ali BARIN
254fcecf33 Merge pull request #811 from automatisch/chore/dockerfile
chore: Cover different architectures in Dockerfile
2022-12-17 18:45:51 +01:00
Faruk AYDIN
a334864980 chore: Cover different architectures in Dockerfile 2022-12-17 20:40:44 +03:00
Ömer Faruk Aydın
b6b377c209 Merge pull request #809 from automatisch/docs/change-advantages-copy
docs: Update advantages section of Automatisch
2022-12-17 16:46:56 +03:00
Faruk AYDIN
5f76aa02dd docs: Adjust advantages text of Automatisch 2022-12-17 16:29:41 +03:00
Ömer Faruk Aydın
0ba0c998e9 Merge pull request #810 from automatisch/readme/installation
chore: Update readme to refer installation guide
2022-12-17 03:12:36 +03:00
Faruk AYDIN
2e54216469 chore: Update readme to refer installation guide 2022-12-17 02:05:09 +03:00
Faruk AYDIN
56dbe62cad docs: Update advantages section of Automatisch 2022-12-17 01:37:59 +03:00
Ömer Faruk Aydın
048db60a10 Merge pull request #808 from automatisch/docs/delay-app
docs: Add connection and actions pages for delay app
2022-12-17 01:09:35 +03:00
Faruk AYDIN
f3b1b2254f docs: Add connection and actions pages for delay app 2022-12-17 01:04:50 +03:00
Ali BARIN
e705aaa2f6 Merge pull request #807 from automatisch/docs/configuration
docs: Add WEB_APP_URL and WEBHOOK_URL to configuration
2022-12-16 23:02:17 +01:00
Faruk AYDIN
1f80f843ba docs: Add WEB_APP_URL and WEBHOOK_URL to configuration 2022-12-17 00:54:49 +03:00
Ömer Faruk Aydın
02a76418fc Merge pull request #806 from automatisch/add-flowers-software
Add flowers software
2022-12-17 00:33:06 +03:00
Ömer Faruk Aydın
d1245705de Merge pull request #805 from automatisch/revise-web-app-url
feat: prioritize WEB_APP_URL
2022-12-16 23:12:09 +03:00
Ali BARIN
6d74f7c64d feat(flowers-software): add new activity trigger 2022-12-16 21:06:54 +01:00
Ali BARIN
bf1076b7d2 fix(AddAppConnection): don't render empty error details 2022-12-16 21:06:53 +01:00
Ali BARIN
7175d92eaf feat(flowers-software): add app with authentication 2022-12-16 21:06:53 +01:00
Ali BARIN
f30ac46672 feat($): add flow.setRemoteWebhookId 2022-12-16 21:06:52 +01:00
Ali BARIN
0970db3295 feat: add remoteWebhookId in Flow 2022-12-16 21:06:52 +01:00
Ali BARIN
5d24216124 feat: prioritize WEB_APP_URL 2022-12-16 21:06:40 +01:00
Ali BARIN
9a55333ce8 Merge pull request #804 from automatisch/delay-until-action
feat: Add delay until action for delay app
2022-12-16 20:16:10 +01:00
Faruk AYDIN
cb58ab5fb7 feat: Add delay until action for delay app 2022-12-16 20:13:39 +01:00
Ali BARIN
5d9ed13003 Merge pull request #801 from automatisch/delay-app
feat: Add delay application along with delay for action
2022-12-16 20:12:06 +01:00
Ali BARIN
5b51cb30f5 refactor: use step.appKey to recognize delay 2022-12-16 19:54:55 +01:00
Ali BARIN
d8c5850eaa Merge pull request #793 from automatisch/issue-788
feat: take search bar out of scroll in add app connection
2022-12-16 16:36:26 +01:00
Rıdvan Akca
4839b100cb feat: take search bar out of scroll in add app connection 2022-12-16 16:33:46 +01:00
Faruk AYDIN
469050914b feat: Add delay application along with delay for action 2022-12-16 02:32:57 +03:00
Ali BARIN
8036d20bf9 Merge pull request #794 from automatisch/fix-broken-flow-editor
fix: make type optional for webhook check
2022-12-12 15:57:30 +01:00
Ali BARIN
f04597335f fix: make type optional for webhook check 2022-12-12 15:54:36 +01:00
Ali BARIN
3d26ca6cc2 Merge pull request #792 from automatisch/available-apps
docs: Add webhooks to available apps
2022-12-12 14:15:05 +01:00
Faruk AYDIN
ec3454291b docs: Add webhooks to available apps 2022-12-12 16:08:04 +03:00
Ali BARIN
21e2f394a9 Merge pull request #791 from automatisch/docs/render-deployment
docs: render deployment
2022-12-12 12:00:41 +01:00
Faruk AYDIN
dd9f69e4cd docs: Add installation type for render 2022-12-12 13:43:04 +03:00
Faruk AYDIN
f7e8cb24ee feat: Add render.yaml for easy deployment to Render 2022-12-12 12:29:36 +03:00
Ömer Faruk Aydın
3b5a77ec22 Merge pull request #790 from automatisch/docs/github-stars
docs: Add cta for github stars
2022-12-12 11:56:43 +03:00
Ali BARIN
16715129d1 docs: fix mobile nav for GH stars announcement 2022-12-11 18:14:21 +01:00
Faruk AYDIN
3aafaabda6 docs: Add cta for github stars 2022-12-11 15:55:16 +03:00
Ali BARIN
279abfedfd Merge pull request #789 from automatisch/issue-760
feat: show "instant" chip for webhook triggers
2022-12-10 16:46:55 +01:00
Ali BARIN
e77580dd35 feat: show "instant" chip for webhook triggers 2022-12-10 16:39:25 +01:00
Ali BARIN
9cde662092 feat(grapql-schema): add type property in Trigger 2022-12-10 16:39:24 +01:00
Ali BARIN
862734c572 Merge pull request #784 from automatisch/dependabot/npm_and_yarn/express-4.17.3
chore(deps): bump express from 4.16.4 to 4.17.3
2022-12-08 23:09:25 +01:00
Ali BARIN
61dc611588 Merge pull request #787 from automatisch/fix-generic-webhook-internal-id-for-get-reqs
fix(webhook): correct internal ID for GET requests
2022-12-08 23:09:06 +01:00
Ali BARIN
03368e2cca fix(webhook): correct internal ID for GET requests 2022-12-08 22:19:45 +01:00
Ali BARIN
6382325280 feat(TestSubstep): put some space between info and test output 2022-12-08 22:19:00 +01:00
dependabot[bot]
a5b0910b60 chore(deps): bump express from 4.16.4 to 4.17.3
Bumps [express](https://github.com/expressjs/express) from 4.16.4 to 4.17.3.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.16.4...4.17.3)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 19:19:13 +00:00
Ali BARIN
ba1e1ef20c Merge pull request #786 from automatisch/release/0.3.0
Release v0.3.0
2022-12-08 20:18:27 +01:00
Ali BARIN
dd8bab299d chore: update cli version in dockerfiles 2022-12-08 20:15:06 +01:00
Ali BARIN
1125f31810 Release v0.3.0 2022-12-08 20:12:28 +01:00
Ali BARIN
ef3c93a907 Merge pull request #785 from automatisch/docs/webhooks
Docs: webhooks app
2022-12-08 20:02:53 +01:00
Faruk AYDIN
89bcaa96ed docs: Add trigger and connection pages of webhooks app 2022-12-08 22:00:17 +03:00
Ali BARIN
ce1eecf82e Merge pull request #782 from automatisch/docs/docker-installation
docs: Docker installation
2022-12-08 19:45:52 +01:00
Ali BARIN
3164663b4f Merge pull request #783 from automatisch/ntfy-field-descs
feat(ntfy): describe user & psswd in auth dialog
2022-12-08 19:45:11 +01:00
Ali BARIN
4f99bc36d0 Merge pull request #781 from automatisch/dependabot/npm_and_yarn/decode-uri-component-0.2.2
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2
2022-12-08 19:45:00 +01:00
Ali BARIN
179c0a39d4 feat(ntfy): describe user & psswd in auth dialog 2022-12-08 19:36:41 +01:00
Faruk AYDIN
0fefa4e43a chore: Make telegram and ntfy apps collapsed for docs sidebar 2022-12-08 21:31:23 +03:00
Ömer Faruk Aydın
d4e8eb276d Merge pull request #780 from automatisch/generic-webhook
Add webhook integration
2022-12-08 19:20:52 +01:00
Ömer Faruk Aydın
fd3c26ad73 Merge pull request #777 from automatisch/feature/ntfy
Add ntfy support with sending message
2022-12-08 19:13:57 +01:00
Ali BARIN
d9f9056515 refactor(webhook): remove auth placeholder 2022-12-08 11:57:36 +01:00
Faruk AYDIN
d326b5a36a chore: Add migration for webhook secret key 2022-12-08 13:27:08 +03:00
Faruk AYDIN
8c4970b550 chore: Use webhook secret key for new entry trigger 2022-12-08 13:00:17 +03:00
Ali BARIN
51ccdf3577 feat(webhook): do not process actions in test run 2022-12-08 10:42:35 +01:00
Ali BARIN
f79245d24a fix(webhook): remove registrations logic 2022-12-08 10:26:07 +01:00
Ali BARIN
e8d8a5e89d feat(webhook): mark test run in executions 2022-12-08 10:22:39 +01:00
Faruk AYDIN
b1dddcb511 docs: Add installation types info box 2022-12-08 10:33:15 +03:00
Faruk AYDIN
af45b8a1e4 docs: Adjust docker setup to use one .env file 2022-12-08 10:33:15 +03:00
Faruk AYDIN
2c8b60ab9b chore: Remove project flag from docker compose command 2022-12-08 10:33:15 +03:00
Faruk AYDIN
75196cbf84 feat: Introduce webhook secret key to verify webhook requests 2022-12-08 10:33:15 +03:00
Faruk AYDIN
5d80fd523c docs: Remind to change password after installation 2022-12-08 10:33:15 +03:00
Faruk AYDIN
22dc61f39b docs: Add docker installation section 2022-12-08 10:33:15 +03:00
dependabot[bot]
f4611d88cd chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 01:56:18 +00:00
Ali BARIN
346a706e41 feat(Editor): show webhook info in test substep 2022-12-08 00:34:28 +01:00
Ali BARIN
3c62f182ab feat(webhook): add webhook application 2022-12-08 00:34:26 +01:00
Ömer Faruk Aydın
67964192de Merge pull request #778 from automatisch/worker-readiness-log
feat(worker): log when workers are ready
2022-12-06 18:37:51 +01:00
Ömer Faruk Aydın
c6f62fd078 Merge pull request #779 from automatisch/barinali-patch-1
docs(available-apps): fix telegram link
2022-12-06 18:17:50 +01:00
Ali BARIN
8ea547c1d7 docs(available-apps): fix telegram link 2022-12-06 18:14:21 +01:00
Ali BARIN
c5fedda195 feat(worker): log when workers are ready 2022-12-05 23:53:57 +01:00
Ali BARIN
8300a4b6df docs: add ntfy in available apps 2022-12-05 09:57:42 +01:00
Ali BARIN
32e77de8bb docs(ntfy): describe actions and auth 2022-12-05 00:52:13 +01:00
Ali BARIN
e1c080f237 feat(ntfy): add send message action 2022-12-05 00:45:30 +01:00
Ali BARIN
6995323a45 feat(ntfy): add auth support 2022-12-05 00:45:02 +01:00
Ali BARIN
46bfc597ec feat(ntfy): add application 2022-12-05 00:44:25 +01:00
Ömer Faruk Aydın
0abc614a78 Merge pull request #775 from automatisch/fix-autocomplete-search
fix(ControlledAutocomplete): use option value as option key
2022-12-04 22:51:56 +01:00
Ömer Faruk Aydın
7518456fe8 Merge pull request #776 from automatisch/add-option-value-in-autocomplete
feat(FlowSubstep): show autocomplete option value
2022-12-04 22:46:25 +01:00
Ali BARIN
4ab76e7507 feat(FlowSubstep): show autocomplete option value 2022-12-04 22:33:28 +01:00
Ömer Faruk Aydın
1cf5a88582 Merge pull request #770 from automatisch/feature/telegram-send-message
Add telegram bot support with sending message
2022-12-04 22:28:37 +01:00
Ali BARIN
14a8551e82 docs: add typeform and telegram in available apps 2022-12-04 21:26:11 +01:00
Ali BARIN
4b0916a214 fix(AppRow): use app key for links instead of name 2022-12-04 21:24:19 +01:00
Ali BARIN
e451dd2262 fix(ControlledAutocomplete): use option value as option key 2022-12-04 21:16:16 +01:00
Ali BARIN
2e4ecfab16 docs(telegram-bot): describe actions and auth 2022-12-04 17:27:59 +01:00
Ali BARIN
8c343abac5 feat(telegram-bot): add send message action 2022-12-04 17:27:59 +01:00
Ali BARIN
39ac3ff4c2 feat(telegram-bot): add authentication support 2022-12-04 17:27:58 +01:00
Ali BARIN
677880c633 feat(telegram-bot): add application 2022-12-04 17:27:58 +01:00
Ali BARIN
bd2f2cbf64 Merge pull request #761 from automatisch/docs/typeform-app
docs(typeform): Add connection and trigger pages
2022-12-01 18:22:45 +01:00
Ömer Faruk Aydın
4129264d1d Merge pull request #762 from automatisch/docs/webhook-examples
docs: Add the webhook-based trigger to integration examples
2022-12-01 18:00:49 +01:00
Faruk AYDIN
f9133a6e96 docs: Add the webhook-based trigger to integration examples 2022-12-01 17:57:38 +01:00
Faruk AYDIN
57a23946cc docs(typeform): Add connection and trigger pages 2022-12-01 17:57:07 +01:00
Ömer Faruk Aydın
6faa45ac16 Merge pull request #759 from automatisch/feature/typeform-integration
Add new entry trigger for typeform with webhook support
2022-11-30 22:06:07 +01:00
Ali BARIN
bf62ebd20a chore(typeform): add empty type definition file 2022-11-30 19:38:57 +01:00
Ali BARIN
687c6a09bc feat(webhook): register in mutation calls 2022-11-30 19:33:57 +01:00
Ali BARIN
77a7df1cff feat(webhook): process trigger in controller 2022-11-30 19:33:30 +01:00
Ali BARIN
05ce3edb80 fix(webhook): respond with 404 for non-webhook flows 2022-11-30 19:32:58 +01:00
Ali BARIN
2564d7d976 fix(typeform/new-entry): early exit when no response 2022-11-30 19:31:38 +01:00
Ali BARIN
2f06cda82b fix: remove circular serialization in GQL errors 2022-11-30 16:57:35 +01:00
Ali BARIN
945b777c3c fix(typeform): correct app color 2022-11-30 02:13:00 +01:00
Ali BARIN
d2a6c45fd6 refactor: simplify computed webhook event 2022-11-30 02:13:00 +01:00
Ali BARIN
b5436fe7fa chore: add comments in update flow status 2022-11-30 02:13:00 +01:00
Ali BARIN
82e3b40e7c refactor: remove redundant function signature 2022-11-30 02:12:59 +01:00
Ali BARIN
0f4f36c654 refactor: name webhook controller handler 2022-11-30 02:12:59 +01:00
Faruk AYDIN
d83e8dabf8 feat: Implement webhook logic along with new entry typeform trigger 2022-11-30 02:12:56 +01:00
Faruk AYDIN
397926f994 feat: Add listForms dynamic data to Typeform app 2022-11-30 02:12:26 +01:00
Faruk AYDIN
8d8a9f7c78 feat: Implement Typeform authentication 2022-11-30 02:12:25 +01:00
Ömer Faruk Aydın
40b8860e7c Merge pull request #751 from automatisch/fix/stripe-types
chore: Add type file for the stripe app
2022-11-29 22:23:08 +01:00
Faruk AYDIN
9978241329 chore: Add type file for the stripe app 2022-11-29 22:10:25 +01:00
Ömer Faruk Aydın
666a1ab81e Merge pull request #749 from PierreSchwang/feat/stripe
Feature: Stripe integration (triggers)
2022-11-29 22:06:58 +01:00
Pierre Maurice Schwang
1d6ed8d9d0 chore: align trigger key with trigger name 2022-11-29 21:32:20 +01:00
Pierre Maurice Schwang
34e2c77934 chore: address review comments 2022-11-29 20:06:17 +01:00
Pierre Maurice Schwang
f47d912074 Merge branch 'main' into feat/stripe 2022-11-28 19:28:33 +01:00
Pierre Maurice Schwang
f25b67c81c docs: add documentation for stripe connection / triggers 2022-11-28 19:24:51 +01:00
Ali BARIN
08e60e6961 Merge pull request #747 from automatisch/issue-728
feat(queue): auto clean up complete and fail jobs
2022-11-28 17:55:25 +01:00
Ali BARIN
c393a80185 Merge branch 'main' into issue-728 2022-11-28 17:06:44 +01:00
Ali BARIN
8e28ec491c Merge pull request #748 from automatisch/issue-745
feat: accept username, password, tls for redis configuration
2022-11-28 17:06:20 +01:00
Ali BARIN
2e391cc651 feat(queue): auto clean up complete and fail jobs 2022-11-28 02:01:12 +01:00
Ali BARIN
2e0b2191c0 feat: accept username, password, tls for redis configuration 2022-11-28 01:57:43 +01:00
Ömer Faruk Aydın
4240849a2a Merge pull request #746 from automatisch/separate-dockerfile-for-release
Separate dockerfile for release
2022-11-27 23:08:38 +01:00
Ali BARIN
a0f0db1dd4 refactor(docker-compose): incorporate standalone build 2022-11-27 01:39:08 +01:00
Ali BARIN
e455497596 refactor(docker): rework for release 2022-11-27 01:39:08 +01:00
Ali BARIN
bb99dd82ba chore: remove unused wait for postgres scripts 2022-11-27 01:39:07 +01:00
Ömer Faruk Aydın
48ccddb555 Merge pull request #744 from automatisch/extend-http-error
feat(http-error): add response
2022-11-25 20:01:25 +01:00
Ali BARIN
23f56e4deb feat(http-error): add response 2022-11-25 00:49:40 +01:00
Pierre Maurice Schwang
ef27c9348b feat: stripe triggers (payout + transaction) 2022-11-24 23:23:22 +01:00
Ali BARIN
cb664b563d Merge pull request #739 from ksurl/docker-alpine
chore: switch to alpine based image
2022-11-23 00:14:20 +01:00
ksurl
53f38c583a add openssl package 2022-11-22 14:31:21 -08:00
ksurl
12622e2045 add dos2unix prestage 2022-11-22 10:56:04 -08:00
ksurl
36dfedbaab Merge remote-tracking branch 'upstream/main' into docker-alpine 2022-11-22 10:48:28 -08:00
Ali BARIN
d3a059d759 fix(docker-compose): add dos2unix 2022-11-22 17:36:55 +01:00
ksurl
9ba1351a3b refactor: use healthcheck for db, remove psql client from image (#737)
* refactor: use healthcheck for db, remove postgresql client from main image

* fix: redis dependency condition

* cleanup entrypoint.sh

* fix healthcheck command
2022-11-22 01:18:05 +01:00
ksurl
399f8ed1db switch to alpine based image 2022-11-21 16:14:06 -08:00
ksurl
d36b5e8091 fix(docker-compose): add compose image tag (#734)
* fix: update compose image tag

* fix: update image org name
2022-11-22 00:01:46 +01:00
Ömer Faruk Aydın
fc616e818a Merge pull request #736 from automatisch/docs/refresh-token
docs: Add OAuth with refresh token to example integrations
2022-11-21 23:23:35 +01:00
Faruk AYDIN
edd438c37f docs: Add OAuth with refresh token to example integrations 2022-11-21 23:15:49 +01:00
ksurl
92e5ae0ebd refactor(docker-compose): combine dockerfiles with entrypoint (#727)
* combine worker and main image, support encryption key, app secret key env, and postgres pw

* Update docker/entrypoint.sh

fix env file path

Co-authored-by: Ali BARIN <ali.barin53@gmail.com>

* add build tag, move compose to root

* add volumes

* style: remove trailing indent

* refactor(docker-compose): empty encryption env. vars

* docs(docker-compose): update compose folder

* refactor(docker-compose): remove host network

* fix(docker-compose): add environment variable keys

Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
2022-11-21 20:26:44 +01:00
Faruk AYDIN
d3e13c30a6 chore: Make isRefreshTokenRequested optional for IAuth 2022-11-21 09:43:04 +01:00
Faruk AYDIN
6bf0e799a1 feat: Add isRefreshTokenRequested condition to auth in global variable 2022-11-21 09:43:04 +01:00
Ali BARIN
166dda4a4b feat(salesforce): implement refresh token logic 2022-11-21 09:43:04 +01:00
Ali BARIN
901605fd9c feat: add refresh token capability 2022-11-21 09:43:04 +01:00
dependabot[bot]
e3e8f570f8 chore(deps): bump loader-utils from 1.4.1 to 1.4.2
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-19 15:59:50 +01:00
Ali BARIN
6fdfdefe5c fix: use actual DB name in wait for postgres script 2022-11-19 13:37:36 +01:00
Faruk AYDIN
5cc1afa6de docs: Add explanation of automatic error handling for http client 2022-11-19 13:37:23 +01:00
Ali BARIN
4398570583 feat: show doc info in auth dialog in editor 2022-11-14 18:23:59 +01:00
Ömer Faruk Aydın
2e5b354f49 Merge pull request #716 from automatisch/plausible-docs
feat(docs): add plausible
2022-11-13 22:55:50 +01:00
Ali BARIN
11f96e8039 feat(docs): add plausible 2022-11-13 22:15:19 +01:00
Ömer Faruk Aydın
7ae1a079ea Merge pull request #715 from automatisch/chore/docker-compose-project-name
chore: Pass project name option to docker compose
2022-11-13 21:00:02 +01:00
Faruk AYDIN
b6d2624c4a chore: Pass project name option to docker compose 2022-11-13 20:54:31 +01:00
Ömer Faruk Aydın
51d6362863 Merge pull request #714 from automatisch/docker-compose-project-name
chore: add project name in docker compose
2022-11-13 16:30:13 +01:00
Ali BARIN
e30bfe67ed chore: add project name in docker compose 2022-11-13 16:19:11 +01:00
Faruk AYDIN
c5bcebad9a docs: Explain postgres user for db creation 2022-11-13 00:50:08 +01:00
Ömer Faruk Aydın
5deead7f94 Merge pull request #712 from automatisch/release/0.2.0
Release v0.2.0
2022-11-12 16:34:22 +01:00
Faruk AYDIN
2cff284122 chore: Update cli version in dockerfiles 2022-11-12 16:26:54 +01:00
Ali BARIN
5c78e6e7bf Release v0.2.0 2022-11-12 16:21:42 +01:00
Ömer Faruk Aydın
e8b06e9b78 Merge pull request #711 from automatisch/fix/wait-for-postgres-worker
fix: Wait for postgres in worker service
2022-11-12 16:17:33 +01:00
Faruk AYDIN
d67db9c63e fix: Wait for postgres in worker service 2022-11-12 16:15:06 +01:00
Faruk AYDIN
0dfdbc809c docs: Adjust the functionality of build integration 2022-11-11 09:54:05 +01:00
Faruk AYDIN
adddf23ae3 refactor: Check http error for actions 2022-11-11 09:53:53 +01:00
Ömer Faruk Aydın
eac3fd24a1 Merge pull request #708 from automatisch/docs/dynamic-data-explanation
docs: Change data to dynamic data for folder structure
2022-11-10 21:13:24 +01:00
Faruk AYDIN
599c0f8cfc docs: Change data to dynamic data for folder structure 2022-11-10 20:53:44 +01:00
Ömer Faruk Aydın
b1ec8467a6 Merge pull request #707 from automatisch/refactor/dynamic-data
refactor: Use getDynamicData instead of getData
2022-11-10 19:48:30 +01:00
Faruk AYDIN
d2b8d2beff refactor: Use getDynamicData instead of getData 2022-11-10 19:46:04 +01:00
Ömer Faruk Aydın
a415c7ef4e Merge pull request #706 from automatisch/docs/auth-fields
docs: Add $.app.auth.fields to global variable
2022-11-10 19:28:28 +01:00
Faruk AYDIN
1faf86a9cb docs: Add $.app.auth.fields to global variable 2022-11-10 19:22:18 +01:00
Ömer Faruk Aydın
3b7d2e9238 Merge pull request #705 from automatisch/docs/generate-auth-url
docs: Add tip info for generateAuthUrl method
2022-11-10 19:18:50 +01:00
Faruk AYDIN
829d0cafe9 docs: Add tip info for generateAuthUrl method 2022-11-10 19:16:06 +01:00
Ömer Faruk Aydın
a103ca9747 Merge pull request #704 from automatisch/expand-auth-arguments
feat: add .all support in auth arguments
2022-11-10 18:56:40 +01:00
Faruk AYDIN
81c41ef5ee refactor: Use generateAuthUrl method instead of createAuthData 2022-11-10 18:50:36 +01:00
Faruk AYDIN
10e2794ff9 refactor: Generate authentication steps from auth properties 2022-11-10 18:49:49 +01:00
Ali BARIN
6d3606abf0 refactor(twitter): use .all in auth args 2022-11-10 00:12:26 +01:00
Ali BARIN
bbace2b2c1 feat: add .all support in auth arguments 2022-11-10 00:12:09 +01:00
Ömer Faruk Aydın
5aa937f56a Merge pull request #703 from automatisch/docs/build-integrations
Docs/build integrations
2022-11-09 23:39:01 +01:00
Faruk AYDIN
44159af83e docs: Expands the explanation of already procesed control 2022-11-09 23:36:36 +01:00
Faruk AYDIN
98041b7af2 docs: Explain $.auth.set expands the value rather than overriding 2022-11-09 23:32:57 +01:00
Faruk AYDIN
72e1fe3c21 docs: Explain that trigger array order will be reflected on UI 2022-11-09 23:29:21 +01:00
Ömer Faruk Aydın
af8d1190c5 docs: Fix wording for the global variable page
Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
2022-11-09 23:10:56 +01:00
Ömer Faruk Aydın
b07e564a23 Merge pull request #702 from automatisch/issue-663
feat: add circular progress in flow step
2022-11-09 22:45:31 +01:00
Faruk AYDIN
4b8ac0ff9c docs: Add explanation to include screenName in verify credentials 2022-11-09 22:42:51 +01:00
Faruk AYDIN
0d479426ed docs: Add $.step.parameters property to global variable 2022-11-09 22:42:51 +01:00
Faruk AYDIN
e956b2d959 docs: Separate the tips of pushTriggerItem method 2022-11-09 22:42:51 +01:00
Faruk AYDIN
580e97ffe3 docs: Adjust wording for building triggers and actions 2022-11-09 22:42:51 +01:00
Faruk AYDIN
1cb951056a docs: Fix grammar mistakes for build integrations 2022-11-09 22:42:51 +01:00
Faruk AYDIN
a973887db2 docs: Add explanation for not supporting webhook based triggers atm 2022-11-09 22:42:51 +01:00
Faruk AYDIN
86ae81526a docs: Fix the wording for actions of build integrations 2022-11-09 22:42:51 +01:00
Faruk AYDIN
9d62a552fe docs: Add explanation of setActionItem usage 2022-11-09 22:42:51 +01:00
Faruk AYDIN
5497084b57 docs: Add missing properties of global variable 2022-11-09 22:42:51 +01:00
Faruk AYDIN
39b7effc26 docs: Use tip box for the integration and app explanation 2022-11-09 22:42:51 +01:00
Faruk AYDIN
2c847f62af fix: Cat svg path problem for docs 2022-11-09 22:42:51 +01:00
Faruk AYDIN
01ac26de8c docs: Add warning to visit development setup page for integrations 2022-11-09 22:42:51 +01:00
Faruk AYDIN
c579eebd16 docs: Add content table for build integration pages 2022-11-09 22:42:51 +01:00
Faruk AYDIN
47afd60ddf docs: Add warning to say integration and app used interchangeably 2022-11-09 22:42:51 +01:00
Faruk AYDIN
f432e72253 docs: Add actions page to build integration section 2022-11-09 22:42:51 +01:00
Faruk AYDIN
d572623552 docs: Add examples page for build integrations 2022-11-09 22:42:51 +01:00
Faruk AYDIN
3a129557e0 docs: Add triggers page to build integrations guide 2022-11-09 22:42:51 +01:00
Faruk AYDIN
49fac8f147 docs: Add how to test authentication part to auth 2022-11-09 22:42:51 +01:00
Faruk AYDIN
3140fb2435 docs: Add auth page to build integration guide 2022-11-09 22:42:51 +01:00
Faruk AYDIN
22cea145f8 docs: Add global variable page 2022-11-09 22:42:51 +01:00
Ali BARIN
6c93d46ec1 feat: add circular progress in flow step 2022-11-09 00:47:04 +01:00
Ömer Faruk Aydın
3c73064b19 Merge pull request #700 from automatisch/dependabot/npm_and_yarn/loader-utils-1.4.1
chore(deps): bump loader-utils from 1.4.0 to 1.4.1
2022-11-08 23:57:17 +01:00
Ömer Faruk Aydın
247ac1f96f Merge branch 'main' into dependabot/npm_and_yarn/loader-utils-1.4.1 2022-11-08 23:34:46 +01:00
Ömer Faruk Aydın
642f32ab4e Merge pull request #701 from automatisch/fix-e2e-tests
test: replace Slack with DeepL
2022-11-08 23:34:22 +01:00
Ömer Faruk Aydın
41cb1c71c7 Merge pull request #699 from automatisch/issue-694
feat(web): add status in execution row
2022-11-08 23:33:58 +01:00
Ömer Faruk Aydın
41de2aa769 Merge pull request #698 from automatisch/issue-695
feat(web): hide empty error tab in execution step
2022-11-08 23:30:48 +01:00
Ömer Faruk Aydın
e9e7b679f4 Merge pull request #697 from automatisch/refactor-is-still-verified
refactor: abstract exception capture out of is-still-verified
2022-11-08 23:09:43 +01:00
Ali BARIN
c9022f4208 test: do not display empty error in execution step 2022-11-08 21:58:27 +01:00
Ali BARIN
0a4877993d test: replace Slack with DeepL 2022-11-08 21:58:02 +01:00
dependabot[bot]
ca74fa626a chore(deps): bump loader-utils from 1.4.0 to 1.4.1
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 20:36:16 +00:00
Ali BARIN
608038cbcc feat(web): add status in execution row 2022-11-08 21:04:56 +01:00
Ali BARIN
bf009ae13b chore(types): add status in Execution 2022-11-08 21:04:23 +01:00
Ali BARIN
bdb7a1b840 feat(web): hide empty error tab in execution step 2022-11-08 20:02:14 +01:00
Ali BARIN
d2b0a57064 refactor: abstract exception capture out of is-still-verified 2022-11-08 19:48:54 +01:00
Ali BARIN
dbceed563a feat: eager load apps 2022-11-08 00:49:55 +01:00
Ömer Faruk Aydın
cbf1d86c26 Merge pull request #688 from automatisch/revise-custom-errors
Revise custom errors
2022-11-07 22:56:31 +01:00
Faruk AYDIN
06a2014bc1 feat: Enrich error responses 2022-11-07 22:51:30 +01:00
Ali BARIN
ad46b3eea3 refactor: adapt errors in apps 2022-11-07 20:31:52 +01:00
Ali BARIN
5df7867b6d refactor(BaseError): leverage error.message 2022-11-07 20:31:52 +01:00
Ali BARIN
ceea962464 fix(AddAppConnection): word break error messages 2022-11-07 20:31:52 +01:00
Ömer Faruk Aydın
72386bc589 Merge pull request #693 from automatisch/chore/deepl-auth-field-typo
fix: Typo of DeepL authentication key field
2022-11-07 19:13:23 +01:00
Faruk AYDIN
34068a8188 fix: Typo of DeepL authentication key field 2022-11-07 19:03:17 +01:00
Ömer Faruk Aydın
414d521588 Merge pull request #692 from automatisch/docs/deepl-integration
docs: Add actions and connection pages for DeepL
2022-11-07 19:01:28 +01:00
Faruk AYDIN
d15e3d4c36 docs: Add actions and connection pages for DeepL 2022-11-07 18:58:45 +01:00
Ömer Faruk Aydın
81b850c1f7 Merge pull request #691 from automatisch/feature/deepl-integration
feat: Add DeepL integration with translate text action
2022-11-07 18:55:53 +01:00
Faruk AYDIN
527dfe6971 feat: Add DeepL integration with translate text action 2022-11-07 18:46:51 +01:00
Faruk AYDIN
d681d06de1 docs: Add salesforce to available apps 2022-11-07 09:55:33 +01:00
Ömer Faruk Aydın
9fe8ef0238 Merge pull request #689 from automatisch/describe-sf-auth
docs(salesforce): describe auth and triggers
2022-11-06 22:27:25 +01:00
Ali BARIN
99640b3d73 docs(salesforce): describe auth and triggers 2022-11-06 21:30:05 +01:00
Ömer Faruk Aydın
c9925ba8fe Merge pull request #687 from automatisch/docs/app-definition
docs: Add app definition page for build integrations
2022-11-06 11:26:09 +01:00
Faruk AYDIN
3b829af43d docs: Add app definition page for build integrations 2022-11-06 02:03:37 +01:00
Ömer Faruk Aydın
2abe23f918 Merge pull request #686 from automatisch/lint
Auto format whole project
2022-11-06 00:06:05 +01:00
Ali BARIN
475f24f661 style: auto format whole project 2022-11-05 23:57:33 +01:00
Ali BARIN
e338770e57 chore: add prettier as default formatter 2022-11-05 22:44:43 +01:00
Ömer Faruk Aydın
6bb2a583de Merge pull request #685 from automatisch/refactor/use-app-key
refactor: Use app key instead of name for new connection url
2022-11-05 22:33:37 +01:00
Faruk AYDIN
74bbbf55f8 refactor: Use app key instead of name for new connection url 2022-11-05 21:34:58 +01:00
Ömer Faruk Aydın
20b87cb000 Merge pull request #684 from automatisch/chore/before-request
chore: Make beforeRequest field optional for IApp
2022-11-05 21:31:43 +01:00
Faruk AYDIN
a3d82c5d70 chore: Make beforeRequest field optional for IApp 2022-11-05 21:29:07 +01:00
Ömer Faruk Aydın
c778c0c111 Merge pull request #683 from automatisch/docs/folder-structure
docs: Add folder structure page to build integrations section
2022-11-05 20:42:06 +01:00
Faruk AYDIN
bb7ef994f7 docs: Add folder structure page to build integrations section 2022-11-05 20:12:40 +01:00
Ömer Faruk Aydın
278b1ed7c0 Merge pull request #682 from automatisch/salesforce/replace-object-with-record
refactor(salesforce): replace object with record
2022-11-05 16:13:17 +01:00
Ali BARIN
08bfb953de refactor(salesforce): replace object with record 2022-11-05 15:33:08 +01:00
Ömer Faruk Aydın
276b1ef4cd Merge pull request #681 from automatisch/salesforce/updated-field-in-object
feat(salesforce): add updated field in objects trigger
2022-11-05 15:02:14 +01:00
Faruk AYDIN
cbd408ae89 fix(salesforce): Implement guard for list objects 2022-11-05 14:53:38 +01:00
Ali BARIN
fc6822a298 feat(salesforce): add updated field in objects trigger 2022-11-05 02:43:14 +01:00
Ali BARIN
43b7e506a7 fix(web): add missing options in GetApps query 2022-11-05 02:42:46 +01:00
Ali BARIN
f11a4b8472 fix(TestSubstep): don't show length of empty errors 2022-11-05 02:41:55 +01:00
Ali BARIN
927ceb6768 feat(salesforce): add list fields data 2022-11-05 02:41:12 +01:00
Ali BARIN
3d9249192c feat(salesforce): add list objects data 2022-11-05 02:40:46 +01:00
Ömer Faruk Aydın
243e50465f Merge pull request #680 from automatisch/chore/use-definitive-article
chore: Use definitive article for the license
2022-11-05 00:53:32 +01:00
Faruk AYDIN
d539bc6fc8 chore: Use definitive article for the license 2022-11-05 00:41:38 +01:00
Ömer Faruk Aydın
6fc52c8b4c Merge pull request #679 from automatisch/docs/contributing-section
docs: Add contributing sections to homepage
2022-11-04 23:52:38 +01:00
Ömer Faruk Aydın
df3bf4ce11 Merge pull request #678 from automatisch/fix/overflow-docs
fix: Add overflow-y scroll to root css of docs
2022-11-04 23:52:25 +01:00
Faruk AYDIN
c35753c63e docs: Add contributing sections to homepage 2022-11-04 23:47:51 +01:00
Faruk AYDIN
8d2cac5018 fix: Add overflow-y scroll to root css of docs 2022-11-04 23:46:59 +01:00
Ömer Faruk Aydın
a8c8efb4bd Merge pull request #676 from automatisch/salesforce/auth
feat(salesforce): add authentication
2022-11-04 01:24:21 +01:00
Ömer Faruk Aydın
c94b52aa61 Merge pull request #677 from automatisch/chore/change-auth-doc-url-of-apps
chore: Adjust auth doc url of apps to new links
2022-11-04 00:38:04 +01:00
Faruk AYDIN
f1d319601e chore: Adjust auth doc url of apps to new links 2022-11-04 00:19:41 +01:00
Ömer Faruk Aydın
00a0efc945 Merge branch 'main' into salesforce/auth 2022-11-03 23:34:20 +01:00
Ömer Faruk Aydın
f175ada782 Merge pull request #674 from automatisch/remove-reconnection-steps
Remove reconnection steps
2022-11-03 23:33:49 +01:00
Ali BARIN
ede55a70aa feat(salesforce): add authentication 2022-11-03 23:12:33 +01:00
Ali BARIN
7d82ca5d3c fix(InputCreator): show default value in dropdown 2022-11-03 23:12:33 +01:00
Ali BARIN
6a33636d9d refactor: compute reconnectionSteps out of auth steps 2022-11-03 23:12:09 +01:00
Ali BARIN
a03c60bd90 refactor: remove step property out of app auth 2022-11-03 23:12:09 +01:00
Ömer Faruk Aydın
4b122bd19e Merge pull request #675 from automatisch/remove-github-token-info-func
refactor(github): remove getTokenInfo function
2022-11-03 23:11:17 +01:00
Ali BARIN
c386b001ba refactor(github): remove getTokenInfo function 2022-11-03 20:16:57 +01:00
Ömer Faruk Aydın
9d5e54c2d9 Merge pull request #673 from automatisch/issue-495
feat(slack): add bot capability in send message action
2022-11-03 18:04:25 +01:00
Ali BARIN
2ffce75056 refactor(slack): move scopes out of function definition 2022-11-03 18:01:35 +01:00
Ali BARIN
ff76e37efc docs(slack): add bot token scope for bot functionality 2022-11-03 01:08:27 +01:00
Ali BARIN
ae3d547c3f fix(slack): uncomment users.profile:read user scope 2022-11-03 00:56:42 +01:00
Ali BARIN
a52e365b88 docs(slack): describe oauth2 connection 2022-11-02 21:01:55 +01:00
Ali BARIN
fa7b7d8781 feat(slack): add bot capability in send message action 2022-11-02 20:29:59 +01:00
Ali BARIN
f057501611 feat(slack): use oauth2 authentication flow 2022-11-02 20:28:07 +01:00
Ali BARIN
e740d4fe25 feat(slack): use current user to validate connection 2022-11-02 20:28:07 +01:00
Ali BARIN
dbcf8fde7f feat(types): add additionalProperties in requestConfig 2022-11-02 20:28:07 +01:00
Ali BARIN
b4a4f47f78 feat(slack): add get-current-user helper 2022-11-02 20:28:07 +01:00
Ali BARIN
362c8dc25d fix: keep parameters not needing computation 2022-11-02 20:28:07 +01:00
Ömer Faruk Aydın
18b0a41a40 Merge pull request #672 from automatisch/fix/docs-app-images
fix: Use withBase method for app images on documentation
2022-11-02 19:08:09 +01:00
Faruk AYDIN
d43f77a894 fix: Use withBase method for app images on documentation 2022-11-02 18:48:34 +01:00
Ömer Faruk Aydın
aeeb058ebb Merge pull request #670 from automatisch/docs/restructure-apps
Restructure apps on docs
2022-11-01 22:55:38 +01:00
Faruk AYDIN
e57122c4ff refactor: Restructure names, keys and descs of triggers and actions 2022-11-01 22:48:22 +01:00
Faruk AYDIN
802a9bd2e2 docs: Restructure apps documentation, add triggers and actions 2022-11-01 22:40:12 +01:00
Ömer Faruk Aydın
b63603afb6 Merge pull request #668 from automatisch/refactor/action-arguments
refactor: Use only arguments for action definitions
2022-11-01 00:50:45 +01:00
Faruk AYDIN
d6c0690324 refactor: Differentiate trigger and action for get app helper 2022-10-31 23:31:28 +01:00
Faruk AYDIN
1cfe84fc3d refactor: Use only arguments for action definitions 2022-10-31 23:25:55 +01:00
Ömer Faruk Aydın
bcfc9beb99 Merge pull request #669 from automatisch/docs/remove-typeform-connection
docs: Remove typeform connection guide
2022-10-31 22:55:19 +01:00
Faruk AYDIN
cb839637ab docs: Remove typeform connection guide 2022-10-31 22:09:03 +01:00
Ömer Faruk Aydın
6dc795fe45 Merge pull request #667 from automatisch/refactor/user-args-for-actions
refactor: Specify only the arguments for trigger definitions
2022-10-31 22:04:31 +01:00
Faruk AYDIN
b3f216209a refactor: Specify only the arguments for trigger definitions 2022-10-31 18:12:12 +01:00
Ömer Faruk Aydın
571bf6bfa7 Merge pull request #666 from automatisch/discord/send-message-to-channel
feat(discord): add send message to channel action
2022-10-30 23:16:26 +01:00
Ali BARIN
f272e5c4a8 docs: add discord in connections 2022-10-30 23:12:04 +01:00
Ali BARIN
d8a91ac62d docs(discord): describe discord setup 2022-10-30 22:52:56 +01:00
Ömer Faruk Aydın
92b0c5e409 Merge pull request #665 from automatisch/chore/remove-sorting
chore: Remove sorting logic from flow service
2022-10-30 22:29:08 +01:00
Ali BARIN
dfa076ba89 feat(discord): add send message to channel action 2022-10-30 22:28:50 +01:00
Ali BARIN
79e609e682 feat(discord): add list channels data 2022-10-30 22:28:16 +01:00
Ali BARIN
9c40bc5863 fix(web): discard failed auth process 2022-10-30 22:27:27 +01:00
Faruk AYDIN
7b18937530 chore: Remove sorting logic from flow service 2022-10-30 22:25:32 +01:00
Ali BARIN
c2b020fc94 feat(discord): use bot auth instead of user 2022-10-30 22:25:11 +01:00
Ömer Faruk Aydın
798769d5ae Merge pull request #664 from automatisch/chore/update-bullmq
chore: Update BullMQ version to 3.0.0
2022-10-30 21:14:19 +01:00
Faruk AYDIN
9546d76dc9 fix: Use pattern instead of cron for repeatable job options 2022-10-30 18:57:35 +01:00
Faruk AYDIN
6964f7ebec chore: Update BullMQ version to 3.0.0 2022-10-30 18:52:53 +01:00
Ömer Faruk Aydın
e58b7166ad Merge pull request #662 from automatisch/chore/remove-redundant-libraries
chore: Remove redundant libraries of backend
2022-10-30 16:58:26 +01:00
Faruk AYDIN
d881cfeeb0 chore: Add type file to twilio app 2022-10-30 16:55:49 +01:00
Faruk AYDIN
854dc6f61a chore: Remove redundant libraries of backend 2022-10-30 16:50:33 +01:00
Ali BARIN
1a3345e521 chore(backend): remove excluding apps in tsconfig 2022-10-30 15:49:19 +01:00
Ömer Faruk Aydın
8632b29719 Merge pull request #659 from automatisch/feat/http-basic-auth-for-bullmq
feat: Add http basic auth for BullMQ dashboard
2022-10-30 15:20:02 +01:00
Ömer Faruk Aydın
24a3c3fd1c Merge pull request #660 from automatisch/chore/use-string-for-app-keys
chore: Remove available apps enum type and use string instead
2022-10-30 15:19:51 +01:00
Faruk AYDIN
115a46d2e7 chore: Remove available apps enum type and use string instead 2022-10-30 15:17:10 +01:00
Faruk AYDIN
cd5502fdde feat: Add http basic auth for BullMQ dashboard 2022-10-30 15:11:22 +01:00
Ömer Faruk Aydın
53bbde4314 Merge pull request #652 from automatisch/feature/new-sms-trigger
feat: Implement twilio new sms trigger
2022-10-30 14:39:23 +01:00
Faruk AYDIN
9506c22016 feat: Implement twilio receive sms trigger 2022-10-30 14:06:35 +01:00
Ömer Faruk Aydın
f3f9af9fdf Merge pull request #658 from automatisch/discord/auth
feat(discord): add auth
2022-10-30 13:37:14 +01:00
Ali BARIN
2f9e40fc0e feat(discord): add auth 2022-10-30 12:47:35 +01:00
Ömer Faruk Aydın
c46fbef03c Merge pull request #657 from automatisch/embed-actions-triggers-data-auth-in-app
refactor: inline auth, data, triggers and actions in apps
2022-10-28 23:33:22 +02:00
Ali BARIN
9a973c8257 refactor: inline auth, data, triggers and actions in apps 2022-10-28 22:38:52 +02:00
Ömer Faruk Aydın
c2c8973dd5 Merge pull request #656 from automatisch/feature/docs-search
feat: Add search functionality to docs
2022-10-28 20:51:42 +02:00
Faruk AYDIN
b178807a39 feat: Add search functionality to docs 2022-10-28 20:45:22 +02:00
Ömer Faruk Aydın
179fe512af Merge pull request #655 from automatisch/refactor/integration-structure
Refactor integration structure
2022-10-28 20:14:18 +02:00
Ömer Faruk Aydın
964a38db2c chore: Add explanations to early exit conditions of global variable
Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
2022-10-28 20:07:31 +02:00
Faruk AYDIN
2b38e5a0dd chore: Use last 2000 records as deduplication list 2022-10-28 13:46:08 +02:00
Faruk AYDIN
d8e1f6df81 refactor: Remove test run and completion check for flick triggers 2022-10-28 13:43:01 +02:00
Faruk AYDIN
c3a54e0c69 feat: Introduce http error class 2022-10-28 13:36:28 +02:00
Faruk AYDIN
2b6ff7de41 refactor: Remove dedupeStrategy field from triggers 2022-10-28 13:23:51 +02:00
Faruk AYDIN
ae58e629ea fix: Do not push recent trigger item in case of already processed 2022-10-28 13:22:15 +02:00
Faruk AYDIN
18ccb25b29 refactor: Remove is already processed from new feed items 2022-10-28 01:16:32 +02:00
Faruk AYDIN
74d7e472af refactor: Remove test run and completion check from new photos 2022-10-28 01:12:20 +02:00
Faruk AYDIN
232ba230eb refactor: Remove test run and completion check from new pull requests 2022-10-28 01:12:20 +02:00
Faruk AYDIN
031e175e9f refactor: Remove test run and completion check from new issues 2022-10-28 01:12:20 +02:00
Faruk AYDIN
87fdc02224 refactor: Remove test run and completion logic from new watchers 2022-10-28 01:12:20 +02:00
Faruk AYDIN
3308a44c2b refactor: Remove testRun and completion check from new stargazers 2022-10-28 01:12:20 +02:00
Faruk AYDIN
796121acfc chore: Remove redundant IActionOutput type import 2022-10-28 01:12:20 +02:00
Faruk AYDIN
8e0553147b refactor: Remove testRun logic from get user followers 2022-10-28 01:12:20 +02:00
Faruk AYDIN
96007a1f48 refactor: Remove pagination and test run checks from user tweets 2022-10-28 01:12:20 +02:00
Faruk AYDIN
5189e5b131 refactor: Adjust pagination and test run for search tweets 2022-10-28 01:12:20 +02:00
Faruk AYDIN
11dc650e0e refactor: Remove dedupe strategies, use only dedupe list 2022-10-28 01:12:20 +02:00
Faruk AYDIN
baebec2270 feat: Add base and early exit error classes 2022-10-28 01:12:20 +02:00
Ali BARIN
419d84da97 feat(rss): add new items in feed trigger 2022-10-28 00:57:48 +02:00
Faruk AYDIN
7d7c96274d feat: Implement send sms action of twilio 2022-10-26 18:35:41 +02:00
Ömer Faruk Aydın
4553084503 Merge pull request #649 from automatisch/flickr/new-album
feat(flickr): add new albums trigger
2022-10-26 18:21:10 +02:00
Ömer Faruk Aydın
30bd56b984 Merge pull request #650 from automatisch/fix/e2e-tests-more-than-one-app
test(list-apps): assert apps length to be at least 1
2022-10-26 18:20:21 +02:00
Ali BARIN
4292517a86 test(list-apps): assert apps length to be at least 1 2022-10-26 01:26:44 +02:00
Ali BARIN
f8c7e601a5 feat(flickr): add new albums trigger 2022-10-26 00:54:29 +02:00
Ali BARIN
fbc867b4fa fix: cover _ in variable regex 2022-10-26 00:11:59 +02:00
Ali BARIN
1644bfeb43 feat(flickr): add new photos in an album trigger 2022-10-26 00:11:49 +02:00
Ali BARIN
7cc82eb143 feat(flickr): add list albums dynamic data 2022-10-26 00:11:49 +02:00
Ömer Faruk Aydın
5c13c81de9 Merge pull request #646 from automatisch/docs/twilio-connection
docs: Add connection setup guide for Twilio
2022-10-25 22:38:27 +02:00
Faruk AYDIN
1b80db1eba docs: Add connection setup guide for Twilio 2022-10-25 22:02:47 +02:00
Faruk AYDIN
30d2740368 feat: Implement twilio connection 2022-10-25 20:08:11 +02:00
Ömer Faruk Aydın
8fb58cf662 Merge pull request #644 from automatisch/docs/available-apps
Docs/available apps
2022-10-25 20:01:06 +02:00
Ömer Faruk Aydın
3b4ad0d9c7 Merge pull request #643 from automatisch/feature/smtp-send-email
feat: Implement send email action
2022-10-25 19:59:22 +02:00
Ömer Faruk Aydın
abe4ebe66a Merge pull request #642 from automatisch/refactor/use-set-action-item
refactor: Use setActionItem method to push action data item
2022-10-25 19:59:13 +02:00
Ömer Faruk Aydın
ad1514c60b Merge pull request #641 from automatisch/fix/stargazer-data-order
fix: Iterate stargazer data reverse-chronologically
2022-10-25 19:59:03 +02:00
Faruk AYDIN
81ff07ec28 docs: Add generic explanation to github connection guide 2022-10-25 19:57:36 +02:00
Faruk AYDIN
7cd45a5ca3 docs: Sort connections alphabetically on the sidebar 2022-10-25 19:57:36 +02:00
Faruk AYDIN
e27a941425 docs: Use limited word for explaining available apps 2022-10-25 19:57:36 +02:00
Faruk AYDIN
f2c9adf2ef docs: Add recently implemented apps to available apps 2022-10-25 19:57:36 +02:00
Faruk AYDIN
8dfb919aa0 feat: Implement send email action 2022-10-25 19:50:36 +02:00
Faruk AYDIN
4cfae2d9c6 refactor: Use setActionItem method to push action data item 2022-10-25 19:49:33 +02:00
Ali BARIN
6b8e44a952 fix(flickr): name new photo trigger as plural 2022-10-25 19:49:02 +02:00
Ali BARIN
6b40d206f8 feat(flickr): add new fav photos trigger 2022-10-25 19:49:02 +02:00
Ali BARIN
524c3c22dc refactor(flickr): add isAlreadyProcessed for greatest dedupe strategy 2022-10-25 19:49:02 +02:00
Faruk AYDIN
d39cf2f051 fix: Iterate stargazer data reverse-chronologically 2022-10-25 19:48:37 +02:00
Faruk AYDIN
b2caea9b9b chore: Remove temporary app list from app model 2022-10-24 18:36:07 +02:00
Faruk AYDIN
ea76b5b762 refactor: Use pushTriggerItem utility function for triggers 2022-10-24 18:24:08 +02:00
Ömer Faruk Aydın
bda7ad9f2f Merge pull request #637 from automatisch/flickr/new-photos
feat(flickr): add new photos trigger
2022-10-23 23:43:23 +02:00
Ali BARIN
aa8d1d984c fix(github): iterate over next pages in actual run 2022-10-23 21:29:00 +02:00
Ali BARIN
4d54a608a6 feat(flickr): add new photos trigger 2022-10-23 21:28:53 +02:00
Ömer Faruk Aydın
6466606f49 Merge pull request #636 from automatisch/docs/smtp-guide
Add connection guide for SMTP
2022-10-23 20:29:17 +02:00
Faruk AYDIN
ca52bee808 docs: Remove redundant sentence from flick connection guide 2022-10-23 20:25:13 +02:00
Faruk AYDIN
8e3ef4873f docs: Add connection guide for SMTP 2022-10-23 20:24:29 +02:00
Faruk AYDIN
274d0eb2fd chore: Use argument option also for action substep argument 2022-10-23 20:12:48 +02:00
Faruk AYDIN
61cf45697c fix: Use arguments and formattedData for smtp auth 2022-10-23 20:12:48 +02:00
Faruk AYDIN
cb8f6f7b75 feat: Add argument option to connections of get app query 2022-10-23 20:12:48 +02:00
Faruk AYDIN
3978e8cd0d feat: Implement smtp connection 2022-10-23 20:12:48 +02:00
Faruk AYDIN
d816446c5e docs: Explain how to disable telemetry 2022-10-23 17:55:41 +02:00
Ömer Faruk Aydın
70f1aaab15 Merge pull request #631 from automatisch/add-flickr-auth
feat(flickr): add authentication
2022-10-23 00:12:51 +02:00
Ali BARIN
cccdb49075 docs(flickr): describe authentication 2022-10-23 00:02:59 +02:00
Ali BARIN
71d6a57cdc feat(flickr): add authentication 2022-10-22 23:55:06 +02:00
Ömer Faruk Aydın
05075fc1c4 Merge pull request #632 from automatisch/feature/extended-error-handler
Extend error handling logic to capture errors
2022-10-22 23:11:02 +02:00
Faruk AYDIN
a1692c3c37 fix: Adjust sorting for new stargazers trigger 2022-10-22 21:47:39 +02:00
Faruk AYDIN
d5cecde0e1 fix: Adjust sorting for new pull requests 2022-10-22 21:47:21 +02:00
Faruk AYDIN
b0dc0adf0e chore: Remove postgresql app with the old architecture 2022-10-22 21:09:38 +02:00
Faruk AYDIN
2bb058da36 fix: Adjust action item of slack post message 2022-10-22 19:50:25 +02:00
Faruk AYDIN
a56135ca57 refactor: Restructure apps with new data pushing logic 2022-10-22 19:29:02 +02:00
Faruk AYDIN
bcff9f5a9e refactor: Remove dedundant httpError assignment 2022-10-22 13:49:35 +02:00
Faruk AYDIN
59b9c66a91 refactor: Use global output with github stargazers 2022-10-22 13:49:32 +02:00
Faruk AYDIN
0f63f6d453 refactor: Use global output with scheduler triggers 2022-10-22 13:48:56 +02:00
Faruk AYDIN
585adb14e6 refactor: Use global output with slack actions 2022-10-22 13:48:56 +02:00
Faruk AYDIN
00be50d2fd refactor: Restructure create tweet with new global variable 2022-10-22 13:48:56 +02:00
Faruk AYDIN
7e2dd95134 chore: Differentiate trigger and action output types 2022-10-22 13:48:55 +02:00
Faruk AYDIN
64807fbc11 refactor: Add sort logic into my tweets trigger 2022-10-22 13:48:55 +02:00
Faruk AYDIN
204a8ffb7f refactor: No need to return from run methods for twitter triggers 2022-10-22 13:48:55 +02:00
Faruk AYDIN
aef097becb refactor: Use new error handling structure for user tweets 2022-10-22 13:48:55 +02:00
Faruk AYDIN
9a743fb4a8 feat: Capture unhandled errors by restructuring apps 2022-10-22 13:48:49 +02:00
Ali BARIN
525472d3e0 feat(github): add create issue action 2022-10-21 21:25:05 +02:00
Ali BARIN
d2e4f0d143 feat(github): add new watcher trigger 2022-10-21 21:24:55 +02:00
Ali BARIN
120a4c2b07 fix: mark step completed only when successful 2022-10-21 21:24:47 +02:00
Ali BARIN
97f88d6c4a feat(github): add new pull requests trigger 2022-10-21 21:24:47 +02:00
Ali BARIN
1613ab503c refactor(github): replace generateRequest with $.http 2022-10-20 20:45:52 +02:00
Faruk AYDIN
45bf274dc0 fix: Trigger sorting for tweets 2022-10-20 00:38:25 +02:00
Ömer Faruk Aydın
858737c25c Merge pull request #625 from automatisch/github-new-stargazers
feat(github): add new stargazer trigger
2022-10-20 00:28:48 +02:00
Ömer Faruk Aydın
ee31cfd390 Merge branch 'main' into github-new-stargazers 2022-10-20 00:05:01 +02:00
Ömer Faruk Aydın
5dae0edcf3 Merge pull request #624 from automatisch/github-new-issues
feat(github): add new issues trigger
2022-10-20 00:04:49 +02:00
Ali BARIN
e4dd7e454a feat(github): add new stargazer trigger 2022-10-19 22:57:10 +02:00
Ali BARIN
486e817a40 fix(github): return empty without repo in getRepoOwnerAndRepo helper 2022-10-19 22:56:52 +02:00
Ali BARIN
91ec19c7df fix(useDynamicData): throw error when dependency is undefined 2022-10-19 22:56:52 +02:00
Ali BARIN
f3f4ea5b60 fix(action): create empty execution step if needed 2022-10-19 22:56:52 +02:00
Ali BARIN
859b3e2db8 fix(trigger): create empty execution step if needed 2022-10-19 22:56:52 +02:00
Ali BARIN
3d836b45bf fix(github): return empty in list labels without repo 2022-10-19 22:56:52 +02:00
Ali BARIN
4670e2fe0c fix: reset field when its deps are not satisfied 2022-10-19 22:56:52 +02:00
Ali BARIN
3440b89b04 fix: use runtime parameters in get-data query 2022-10-19 22:56:52 +02:00
Ali BARIN
1458003536 feat(github): add new-issues trigger 2022-10-19 22:56:47 +02:00
Ali BARIN
eaf3c1ecfd feat(github): add list-labels dynamic data 2022-10-19 20:37:19 +02:00
Ali BARIN
12e73d59d5 feat(github): add list-repos dynamic data 2022-10-19 20:37:19 +02:00
Ali BARIN
51059b0f39 refactor(github): export default in get-repo-owner-and-repo 2022-10-19 20:37:19 +02:00
Ali BARIN
0b8b5aeebd feat(github): add paginate-all utility 2022-10-19 20:37:19 +02:00
Ali BARIN
cd795a55d3 feat: add parse-header-link helper 2022-10-19 20:37:19 +02:00
Ömer Faruk Aydın
922f86f20c Merge pull request #623 from automatisch/chore/remove-default-column-values
chore: Remove default values from fields of database models
2022-10-19 19:58:33 +02:00
Ömer Faruk Aydın
b8b2e3e3d2 Merge pull request #622 from automatisch/feature/add-status-to-get-executions
feat: Add dynamic status field to get executions graphQL query
2022-10-19 19:58:21 +02:00
Faruk AYDIN
74aed833bf chore: Remove default values from fields of database models 2022-10-19 19:22:11 +02:00
Faruk AYDIN
04a5378e1b feat: Add dynamic status field to get executions graphQL query 2022-10-19 18:48:02 +02:00
Ömer Faruk Aydın
dc0f374110 Merge pull request #620 from automatisch/refactor/restructure-slack
refactor: Use beforeRequest hook with slack app
2022-10-18 23:11:13 +02:00
Faruk AYDIN
7422f63c62 refactor: Use beforeRequest hook with slack app 2022-10-18 23:01:56 +02:00
Faruk AYDIN
3004cf1115 feat: Implement create tweet action 2022-10-18 19:57:53 +02:00
Faruk AYDIN
a5e114ac68 refactor: Restructure twitter app with beforeRequest hook 2022-10-18 19:45:00 +02:00
Faruk AYDIN
bc402883b3 feat: Add sitemap for the docs website 2022-10-18 18:50:26 +02:00
Ömer Faruk Aydın
72599c6683 Merge pull request #616 from automatisch/add-define-app-and-before-request
feat: add defineApp and beforeRequest
2022-10-18 00:34:56 +02:00
Ali BARIN
1760c6e454 feat: add defineApp and beforeRequest 2022-10-17 23:52:48 +02:00
Faruk AYDIN
3e05d7b5e9 fix: Use apiBaseUrl for twitter generate request method 2022-10-17 23:29:28 +02:00
Ömer Faruk Aydın
e9f7dcf030 Merge pull request #614 from automatisch/github-auth
refactor: clean up github and rewrite its auth
2022-10-17 00:20:32 +02:00
Ali BARIN
314787f39c refactor: clean up github and rewrite its auth 2022-10-16 23:34:21 +02:00
Ömer Faruk Aydın
a69cd51dda Merge pull request #613 from automatisch/feat/show-soft-deleted-executions
feat: Query soft-deleted executions and execution steps
2022-10-16 15:20:22 +02:00
Faruk AYDIN
d1932a107b feat: Query soft-deleted executions and execution steps 2022-10-16 15:00:08 +02:00
Ömer Faruk Aydın
670ebe5d37 Merge pull request #554 from automatisch/issue-553
feat: soft delete database entities
2022-10-16 13:43:15 +02:00
Ömer Faruk Aydın
b92e0b9660 Merge branch 'main' into issue-553 2022-10-16 13:23:07 +02:00
Ömer Faruk Aydın
664cd1d0cd Merge pull request #612 from ThuH2305/patch-4
docs(readme): remove trailing slash in docs link
2022-10-16 13:22:01 +02:00
Thu Huynh
efc4588a00 docs(readme): remove trailing slash in docs link 2022-10-16 13:20:15 +02:00
Ali BARIN
92a2d68a81 feat: add defineTrigger and defineAction 2022-10-16 11:15:05 +02:00
Ömer Faruk Aydın
ee9d095454 Merge pull request #610 from automatisch/chore/add-canonical-urls-to-docs
chore: Add canonical URLs to doc pages
2022-10-16 11:04:18 +02:00
Ömer Faruk Aydın
b9450e3c55 Merge pull request #609 from automatisch/fix/use-dev-dependecy-for-vitepress
fix: Use dev dependencies for vitepress
2022-10-16 11:04:06 +02:00
Faruk AYDIN
fe40e16e33 chore: Add canonical URLs to doc pages 2022-10-16 01:23:34 +02:00
Faruk AYDIN
8f5901753e fix: Use dev dependencies for vitepress 2022-10-16 00:50:21 +02:00
Thu Huynh
9005256cd3 chore(docs): update copyright date 2022-10-15 23:55:42 +02:00
Ali BARIN
ace2436e43 feat(FlowEditor): allow adding new connection in step 2022-10-15 23:52:37 +02:00
Ömer Faruk Aydın
d83db08b81 Merge pull request #606 from automatisch/feat/use-clean-doc-urls
feat: Use clean URLs for docs
2022-10-15 22:05:51 +02:00
Faruk AYDIN
fd0d4dceca feat: Use clean URLs for docs 2022-10-15 21:58:24 +02:00
Ali BARIN
6f0a763589 fix(scheduler): return TriggerDataItem 2022-10-15 20:43:11 +02:00
Ömer Faruk Aydın
0849801ae9 Merge pull request #603 from automatisch/issue-598
fix: only show apps with actions in action step
2022-10-15 13:41:09 +02:00
Ali BARIN
c0dfc101b2 fix: only show apps with actions in action step 2022-10-15 13:35:14 +02:00
Faruk AYDIN
b5e5ae7321 fix: Do not sort user tweets since it's in reverse-chronological order 2022-10-15 11:51:28 +02:00
Thu Huynh
39792d25d8 docs(readme): remove github community link 2022-10-14 23:57:15 +02:00
Ömer Faruk Aydın
20c0451c86 Merge pull request #600 from automatisch/refactor/remove-search-term
refactor: Do not expose search term separately for search tweets
2022-10-14 23:53:52 +02:00
Faruk AYDIN
8a883765d4 refactor: Do not expose search term separately for search tweets 2022-10-14 23:51:00 +02:00
Faruk AYDIN
cad42eed54 refactor: Remove test run methods from triggers 2022-10-14 23:47:50 +02:00
Ömer Faruk Aydın
a7f68f80d1 Merge branch 'main' into issue-553 2022-10-14 22:36:45 +02:00
Ömer Faruk Aydın
c422ca530d Merge pull request #596 from automatisch/refactor/background-jobs
refactor: Extract processor job into separate background jobs
2022-10-14 22:36:06 +02:00
Faruk AYDIN
237ab48d33 refactor: Restructure workers to work with services 2022-10-14 22:33:26 +02:00
Faruk AYDIN
628f872180 refactor: Implement test run helper to work with services 2022-10-14 20:18:58 +02:00
Faruk AYDIN
56a9aeece7 refactor: Extract processor job into separate background jobs 2022-10-13 18:45:30 +02:00
Faruk AYDIN
3c3bb82e97 refactor: Remove early exit strategy for twitter triggers 2022-10-12 23:23:08 +02:00
Faruk AYDIN
d9192f6e6b refactor: Introduce IActionOutput and ITriggerOutput types 2022-10-12 22:50:42 +02:00
Ali BARIN
2e31e821b3 Merge branch 'main' into issue-553 2022-10-12 18:02:53 +02:00
Zeynep Nur Temel
6895378d33 docs: fix description of Slack connection 2022-10-12 17:52:42 +02:00
Thu Huynh
f2f99fda31 docs: fix documentation link in README 2022-10-12 17:50:15 +02:00
Ali BARIN
56b7763488 chore: remove unused twilio app 2022-10-09 16:55:08 +02:00
Ali BARIN
12bbcd7887 chore: remove unused twitch app 2022-10-09 16:54:58 +02:00
Ali BARIN
b42c27b02f chore: remove unused typeform app 2022-10-09 16:54:52 +02:00
Ali BARIN
e34ac3c485 chore: remove unused smtp app 2022-10-09 16:54:46 +02:00
Ali BARIN
54bbc0d79c chore: remove unused gitlab app 2022-10-09 16:54:39 +02:00
Ali BARIN
3a186ebb1a chore: remove unused firebase app 2022-10-09 14:57:56 +02:00
Ali BARIN
119650048e chore: delete unused discord app 2022-10-09 14:57:23 +02:00
Ali BARIN
ec8e57972a Release v0.1.5 2022-10-09 10:21:05 +02:00
Ali BARIN
0d04e1534d chore: update cli version with 0.1.5 in Dockerfiles 2022-10-09 10:21:05 +02:00
Ömer Faruk Aydın
7b3352ba03 Merge pull request #581 from automatisch/docs/broken-links
docs: Fix broken links
2022-10-09 11:00:12 +03:00
Faruk AYDIN
0cfb51dfb1 docs: Add TBD to create flow page 2022-10-09 10:54:58 +03:00
Faruk AYDIN
84558af121 docs: Fix github issues link for the installation page 2022-10-09 10:52:43 +03:00
Ali BARIN
48fd4a0dbe feat: remove execution step data 2022-10-09 09:49:53 +02:00
Ömer Faruk Aydın
21c16d7272 Merge pull request #579 from automatisch/docs/hide-contribution-guide
docs: Hide contribution section from readme until it's finalised
2022-10-09 10:46:44 +03:00
Faruk AYDIN
f604e28ba4 docs: Hide contribution section from readme until it's finalised 2022-10-09 10:43:50 +03:00
dependabot[bot]
332a4a31f4 chore(deps): bump async from 2.6.3 to 2.6.4 in /packages/web
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-09 00:54:23 +02:00
Ömer Faruk Aydın
8869802d4f Merge pull request #577 from automatisch/e2e-tests
Introduce e2e tests
2022-10-09 01:48:17 +03:00
Ali BARIN
b0034de0a5 chore(e2e-tests): remove redundant configuration 2022-10-09 00:18:01 +02:00
Ali BARIN
c76491a8b0 chore: ignore cypress screenshots 2022-10-09 00:00:35 +02:00
Ali BARIN
ff2edeea17 chore(e2e-tests): rename cypress:open with open 2022-10-09 00:00:35 +02:00
Ali BARIN
284738ae7d test: list executions 2022-10-09 00:00:35 +02:00
Ali BARIN
b1459cbf3b test: display execution 2022-10-09 00:00:35 +02:00
Ali BARIN
5838216b72 test: create slack connection 2022-10-09 00:00:35 +02:00
Ali BARIN
ce40f7d474 test: list apps 2022-10-09 00:00:35 +02:00
Ali BARIN
f0d3db6f9a test: create flow 2022-10-09 00:00:35 +02:00
Ali BARIN
e47c54b336 chore: add major data-test attributes 2022-10-09 00:00:35 +02:00
Ali BARIN
38bcf6ada0 chore: add e2e-tests package 2022-10-09 00:00:35 +02:00
Ömer Faruk Aydın
8d92ba6083 Merge pull request #576 from automatisch/fix/use-cloned-step
fix: Do not use mutated step for global variables of actions
2022-10-08 21:24:54 +03:00
Faruk AYDIN
c0aa2e4f6c fix: Do not use mutated step for global variables of actions 2022-10-08 21:04:08 +03:00
dependabot[bot]
3705391ecc chore(deps): bump ejs from 3.1.6 to 3.1.8 in /packages/web
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.8.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.8)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-08 15:04:12 +02:00
Ali BARIN
a2602cd2c8 Merge branch 'main' into issue-553 2022-10-08 15:03:51 +02:00
dependabot[bot]
f5f8632678 chore(deps): bump ejs from 3.1.6 to 3.1.7 in /packages/cli
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.7)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-08 15:03:05 +02:00
Ömer Faruk Aydın
a36b805b7c Merge pull request #575 from automatisch/release/0.1.4
Release v.1.4
2022-10-08 15:42:56 +03:00
Ali BARIN
43cd8859bc Release v0.1.4 2022-10-08 14:38:27 +02:00
Ali BARIN
37548e6c39 chore: upgrade cli version with 0.1.4 in Dockerfiles 2022-10-08 14:37:55 +02:00
Ali BARIN
47930eca10 fix(backend): make getInterval optional 2022-10-08 14:36:38 +02:00
Ali BARIN
1b405728c4 Release v0.1.3 2022-10-08 13:03:31 +02:00
Ali BARIN
5d7bf38d13 chore: upgrade vers in Dockerfiles 2022-10-08 13:03:31 +02:00
Ali BARIN
2c2c1e8d89 chore: add 0.1.2 version in Dockerfiles 2022-10-08 12:57:27 +02:00
Ali BARIN
7f7ec6c115 docs: remove unnecessary text in READMEs 2022-10-08 12:56:29 +02:00
Ali BARIN
c9061b24a0 chore(backend): remove dist folder before building 2022-10-08 12:38:41 +02:00
Ali BARIN
a3dc7d2cde Release v0.1.1 2022-10-08 12:34:50 +02:00
Ömer Faruk Aydın
cf90e7cfd6 Merge pull request #568 from automatisch/revise-scheduler-outputs
fix: correct scheduler outputs
2022-10-08 12:21:17 +03:00
Ali BARIN
bbc9ea9571 fix: correct scheduler outputs 2022-10-08 10:37:26 +02:00
Ali BARIN
577abde2e9 fix: make auth in global variable optional 2022-10-08 10:36:48 +02:00
Ömer Faruk Aydın
8e972fd875 Merge pull request #566 from automatisch/fix/dynamic-import-fix
fix: dynamic import statements for get app
2022-10-07 19:21:41 +03:00
Faruk AYDIN
c7b290a380 fix: dynamic import statements for get app 2022-10-07 19:18:56 +03:00
Faruk AYDIN
3d14208175 chore: Remove local registry from docker files 2022-10-07 17:51:30 +02:00
Ömer Faruk Aydın
04ad03cfd9 Merge pull request #562 from automatisch/release/0.1.0
Release v0.1.0
2022-10-07 18:44:48 +03:00
Ali BARIN
48e9053124 chore: mark root package.json as private 2022-10-07 17:39:44 +02:00
Ali BARIN
bd5aae3469 Release v0.1.0 2022-10-07 17:32:56 +02:00
Ali BARIN
2d3e307189 chore: mark packages as public 2022-10-07 17:32:43 +02:00
Ali BARIN
c79c82cac7 docs: add description in packages 2022-10-07 17:22:55 +02:00
Ali BARIN
a80cd106bf chore: remove package local registry 2022-10-07 17:20:42 +02:00
Ali BARIN
e1d953c855 chore: reset versions to 0.0.0 2022-10-07 17:04:22 +02:00
Ömer Faruk Aydın
096837bf22 Merge pull request #561 from automatisch/chore/add-license-to-package-json-files
chore: Add AGPL-3.0 license to package.json files
2022-10-07 17:27:21 +03:00
Faruk AYDIN
ac4be28a03 chore: Add AGPL-3.0 license to package.json files 2022-10-07 17:10:14 +03:00
Ömer Faruk Aydın
42ffd907ae Merge pull request #557 from automatisch/refactor/redesign-app-architecture
refactor: Use functional design for the apps
2022-10-07 16:09:52 +03:00
Faruk AYDIN
11ef2ac4bc fix: Integration and auth problems wrt slack and twitter 2022-10-07 16:06:10 +03:00
Faruk AYDIN
2862953136 refactor: Redesign list channels for the slack actions 2022-10-07 16:06:10 +03:00
Ali BARIN
c958abdfcf fix(web): correct types 2022-10-07 16:06:10 +03:00
Faruk AYDIN
050f392dd1 feat: Add error management for new follower of me trigger 2022-10-07 16:06:10 +03:00
Faruk AYDIN
80b25694b5 feat: Implement error management for get user tweets 2022-10-07 16:06:10 +03:00
Faruk AYDIN
e462d1f7ea fix: Make generate request method generic for all requests of twitter 2022-10-07 16:06:10 +03:00
Ali BARIN
e7b47f5c98 refactor: use functional app implementation 2022-10-07 16:06:10 +03:00
Ali BARIN
89d7359060 fix(IAuth): add missing func signatures 2022-10-07 16:06:10 +03:00
Ali BARIN
8a09408cf5 chore: exclude disabled apps from typecheck 2022-10-07 16:06:10 +03:00
Ali BARIN
45c0995d9d refactor: rewrite scheduler as functional 2022-10-07 16:06:10 +03:00
Ali BARIN
0f3d1f0173 fix: add empty type definitions in slack and twitter 2022-10-07 16:06:10 +03:00
Ali BARIN
a83983fe06 fix: add BASE_URL in icons of slack and twitter 2022-10-07 16:06:10 +03:00
Ali BARIN
b3937af636 refactor: rewrite getApp helper with smaller funcs 2022-10-07 16:06:10 +03:00
Ali BARIN
5037e67857 fix: serve assets synchronously 2022-10-07 16:06:10 +03:00
Ali BARIN
ae76f7100c refactor(web): fix types 2022-10-07 16:06:10 +03:00
Faruk AYDIN
0825eb36e4 chore: Use get app helper to get application data 2022-10-07 16:06:10 +03:00
Faruk AYDIN
a58a59788d refactor: Redesign slack actions 2022-10-07 16:06:10 +03:00
Faruk AYDIN
77624acc01 refactor: Redesign twitter trigger and actions 2022-10-07 16:06:10 +03:00
Faruk AYDIN
63ffd1f720 fix: Type problems regarding global variable 2022-10-07 16:06:10 +03:00
Faruk AYDIN
8308265a62 wip: Restructure twitter integration 2022-10-07 16:06:10 +03:00
Faruk AYDIN
dc0e03245f fix: Type errors related with global variable of connection 2022-10-07 16:06:10 +03:00
Faruk AYDIN
67cb57e7ac chore: Add the type for global variable of connection 2022-10-07 16:06:10 +03:00
Faruk AYDIN
4d5be952ce refactor: Use functional design for the authentication of apps 2022-10-07 16:06:10 +03:00
Ömer Faruk Aydın
0abab06124 Merge pull request #558 from automatisch/fix/typo
fix: Typo for the http client creation method
2022-10-06 00:30:01 +03:00
Faruk AYDIN
048689d28f fix: Typo for the http client creation method 2022-10-04 04:07:12 +03:00
Ömer Faruk Aydın
0be4b74d0e Merge pull request #555 from automatisch/refactor-http-client
refactor: rewrite http-client as functional
2022-10-04 01:43:22 +03:00
Ömer Faruk Aydın
26ed5cc794 Merge pull request #556 from automatisch/translations-in-app-event-substep
feat(ChooseAppAndEventSubstep): add translations
2022-10-03 20:49:27 +03:00
Ali BARIN
d236494c0b feat(ChooseAppAndEventSubstep): add translations 2022-10-03 19:45:08 +02:00
Ali BARIN
52e4e09e85 refactor: rewrite http-client as functional 2022-10-03 17:10:16 +02:00
Ali BARIN
56c8666f02 fix: associate executions in User model for types 2022-09-29 19:54:41 +02:00
Ali BARIN
1404650566 chore: update querybuilder type in flow model 2022-09-29 19:54:08 +02:00
Ali BARIN
6a438a34f0 chore: update query param type in pagination helper 2022-09-29 19:53:45 +02:00
Ali BARIN
816d63676d feat: add withSoftDeleted functionality in base model 2022-09-29 11:18:03 +02:00
Ali BARIN
8be352765e feat: soft delete database entities 2022-09-29 10:18:52 +02:00
Ali BARIN
038b38879f chore(backend): add soft delete migration 2022-09-28 21:38:33 +02:00
Ömer Faruk Aydın
3b8a12810c Merge pull request #552 from automatisch/fix/expose-errors-as-execute-flow
fix: Expose errors within execute flow mutation
2022-09-28 10:42:41 +03:00
Ali BARIN
e5bd4228b2 feat(TestSubstep): prettify error body 2022-09-28 09:38:18 +02:00
Faruk AYDIN
8e60f3dfd7 fix: Expose errors within execute flow mutation 2022-09-27 23:33:58 +03:00
Ömer Faruk Aydın
18f315d26c Merge pull request #551 from automatisch/issue-536
Show continue upon successful test and toggle next step upon continuing
2022-09-27 23:33:18 +03:00
Ali BARIN
fca140e3c9 feat(Editor): toggle next step upon continuing 2022-09-27 21:52:49 +02:00
Ali BARIN
330902ccb3 feat(TestSubstep): show continue upon successful test 2022-09-27 21:52:23 +02:00
Ömer Faruk Aydın
932994622e Merge pull request #549 from automatisch/issue-547
fix(Processor): correct variable matching regex
2022-09-27 20:07:47 +03:00
Ömer Faruk Aydın
37a60e3105 Merge pull request #550 from automatisch/issue-494
docs: describe user token for Slack connection
2022-09-27 20:02:33 +03:00
Ali BARIN
bce11819ff docs: describe user token for Slack connection 2022-09-27 18:48:28 +02:00
Ali BARIN
d97fab28e3 fix(Processor): correct variable matching regex 2022-09-27 17:22:31 +02:00
Ömer Faruk Aydın
620629ff8b Merge pull request #548 from automatisch/feature/action-errors
feat: Implement exposing errors from actions within processor
2022-09-27 13:24:53 +03:00
Faruk AYDIN
e149d47135 feat: Implement exposing errors from actions within processor 2022-09-27 12:20:16 +03:00
Ömer Faruk Aydın
45cce9956b Merge pull request #546 from automatisch/issue-541
feat(PowerInput): show variable suggestions when focused
2022-09-27 03:03:12 +03:00
Ali BARIN
dd003845af fix: shutdown server on SIGTERM 2022-09-26 22:36:12 +02:00
Ali BARIN
93b31c10ae feat(PowerInput): show variable suggestions when focused 2022-09-26 21:53:48 +02:00
Ömer Faruk Aydın
c9056516a1 Merge pull request #545 from automatisch/errors
Store and expose integration errors
2022-09-26 19:59:30 +03:00
Faruk AYDIN
953a031ba6 chore: Use integrationError instead of automatischError 2022-09-26 19:12:07 +03:00
Faruk AYDIN
e2f04441c5 feat: Remove associated execution steps while deleting the step 2022-09-26 18:02:52 +02:00
Faruk AYDIN
8826125845 feat: Draft implementation to store and expose integration errors 2022-09-26 17:05:56 +03:00
Ali BARIN
d0bcf997fb feat: show error in execution step 2022-09-26 17:01:04 +03:00
Ömer Faruk Aydın
9429031a61 Merge pull request #543 from automatisch/fix/step-with-test-executions
fix: Adjust variables with successful step executions
2022-09-26 11:22:28 +03:00
Faruk AYDIN
556cdc17bd fix: Adjust variables with successful step executions 2022-09-26 03:02:38 +03:00
Ömer Faruk Aydın
db052baea3 Merge pull request #542 from automatisch/docs/contributing
docs: Remove contributing section for the time being
2022-09-26 03:01:06 +03:00
Faruk AYDIN
e858fc2df8 docs: Remove contributing section for the time being 2022-09-26 01:34:00 +03:00
Ömer Faruk Aydın
d5d239937a Merge pull request #540 from automatisch/issue-539
feat(PowerInput/Suggestions): hide steps without execution steps
2022-09-25 22:48:19 +03:00
Ömer Faruk Aydın
68fb34491c Merge pull request #538 from automatisch/issue-537
fix: refetch GetFlow upon altering steps for integrity
2022-09-25 22:47:56 +03:00
Ali BARIN
6ab7265a04 feat(PowerInput/Suggestions): hide steps without execution steps 2022-09-25 20:42:39 +02:00
Ali BARIN
c13248fb44 fix: refetch GetFlow upon altering steps for integrity 2022-09-25 20:35:06 +02:00
Ömer Faruk Aydın
2bc5da885e Merge pull request #535 from automatisch/issue-534
fix(Editor): open new step upon step creation
2022-09-25 20:13:15 +03:00
Ömer Faruk Aydın
1bd7f7a1c5 Merge pull request #523 from automatisch/issue-500
feat(PowerInput): show humanized variable label
2022-09-25 15:32:37 +03:00
Ömer Faruk Aydın
5e8884c3f4 Merge branch 'main' into issue-500 2022-09-25 15:29:43 +03:00
Ali BARIN
ed0d22dcd7 fix(Editor): open new step upon step creation 2022-09-23 18:10:26 +02:00
Faruk AYDIN
7e960024dd fix: Adjust get step with test executions SQL query 2022-09-23 17:55:48 +02:00
Ali BARIN
90f4c873bb feat(PowerInput): show humanized variable label 2022-09-23 17:55:42 +02:00
Ömer Faruk Aydın
1e34ab1ec6 Merge pull request #533 from automatisch/feat/code-of-conduct
chore: Add code of conduct file
2022-09-23 15:40:24 +03:00
Faruk AYDIN
4cf25a8781 chore: Add code of conduct file 2022-09-23 15:30:03 +03:00
Faruk AYDIN
53264e0637 docs: Specify encryption key as environment variable 2022-09-23 00:46:11 +02:00
Ömer Faruk Aydın
7cb3c00709 Merge pull request #531 from automatisch/docs/credentials
docs: Add credentials page
2022-09-22 22:27:46 +03:00
Faruk AYDIN
ef1619fafb docs: Add credentials page 2022-09-22 21:00:54 +03:00
Ömer Faruk Aydın
10b9d69ac8 Merge pull request #530 from automatisch/docs/remove-database
docs: Remove database page
2022-09-22 19:24:31 +03:00
Faruk AYDIN
2223cd7491 docs: Remove database page 2022-09-22 19:05:24 +03:00
Ömer Faruk Aydın
927a0983ee Merge pull request #529 from automatisch/docs/configuration-encryption-key
docs: Add danger tip to encryption key for env variables
2022-09-22 17:52:55 +03:00
Faruk AYDIN
bb752e2bce docs: Add danger tip to encryption key for env variables 2022-09-22 17:50:07 +03:00
Ömer Faruk Aydın
121b99a526 Merge pull request #528 from automatisch/docs/configuration
docs: Add configuration page
2022-09-22 11:43:40 +03:00
Ömer Faruk Aydın
7d325f06f6 Merge pull request #527 from automatisch/docs/connection-page-description
docs: Add description part to the connection pages
2022-09-22 11:43:31 +03:00
Faruk AYDIN
a2d83f5f21 docs: Add configuration page 2022-09-22 02:19:42 +03:00
Faruk AYDIN
85473f6dcf docs: Add description part to the connection pages 2022-09-22 01:48:52 +03:00
Ömer Faruk Aydın
bfb685047e Merge pull request #526 from automatisch/issue-520
feat: show snackbar on flow removal
2022-09-22 01:34:01 +03:00
Ömer Faruk Aydın
416649c8cd Merge pull request #525 from automatisch/feature/add-readme
feat: Add readme file
2022-09-22 01:32:20 +03:00
Ali BARIN
aef77dde59 feat: show snackbar on flow removal 2022-09-22 00:27:43 +02:00
Faruk AYDIN
e1354c15fc docs: Fix wording for advantages of Automatisch 2022-09-22 00:57:50 +03:00
Faruk AYDIN
b41fca7e6c feat: Add readme file 2022-09-22 00:57:50 +03:00
Ömer Faruk Aydın
dc89da2420 Merge pull request #524 from automatisch/fix/license-wording
docs: Fix wording for license page
2022-09-22 00:49:52 +03:00
Faruk AYDIN
1a1e7e57fb docs: Fix wording for license page 2022-09-22 00:44:39 +03:00
Ömer Faruk Aydın
cc0c73f226 Merge pull request #522 from automatisch/chore/docker-service-name
chore: Use main instead of automatisch service in docker compose file
2022-09-21 19:16:48 +03:00
Faruk AYDIN
3c46f747b5 chore: Use main instead of automatisch service in docker compose file 2022-09-21 19:08:08 +03:00
Ömer Faruk Aydın
0f8e4613da Merge pull request #521 from automatisch/chore/replace-initial-letter
chore: Use upper case letter for the initial of Automatisch
2022-09-21 17:56:10 +03:00
Faruk AYDIN
801052adcd chore: Use upper case letter for the initial of Automatisch 2022-09-21 17:50:09 +03:00
Faruk AYDIN
70af9981e7 feat: Implement flow removal with associated records 2022-09-21 09:11:03 +02:00
Faruk AYDIN
715c900d88 docs: Specify user can change also email from settings page 2022-09-21 09:09:05 +02:00
Faruk AYDIN
8162ab4299 docs: Add service type to telemetry page 2022-09-21 09:08:51 +02:00
Faruk AYDIN
a2eae0da6d docs: Remind to set telemetry enabled env var in docker-compose file 2022-09-21 09:08:51 +02:00
Faruk AYDIN
832876d711 feat: Add service type to telemetry data 2022-09-21 09:08:51 +02:00
Faruk AYDIN
4d7ee3dcca feat: Toggle telemetry with telemetry enabled env variable 2022-09-21 09:08:51 +02:00
Faruk AYDIN
6a8c642b72 docs: Add warning for limited available apps 2022-09-21 09:08:17 +02:00
Ömer Faruk Aydın
fe200fb790 Merge pull request #515 from automatisch/issue-510
fix: disable adding new step in published flow
2022-09-21 01:23:27 +03:00
Ali BARIN
601582002a fix: disable adding new step in published flow 2022-09-20 20:52:28 +02:00
Faruk AYDIN
81349bfdb3 docs: Add telemetry page 2022-09-20 15:51:28 +02:00
Ömer Faruk Aydın
ab71dd2974 Merge pull request #512 from automatisch/docs/homepage-image-radius
docs: Add border-radius to screenshot image of homepage
2022-09-20 12:23:34 +03:00
Ömer Faruk Aydın
40dfbae70c Merge pull request #513 from automatisch/docs/reword-automatisch
docs: Use available apps to define what is Automatisch
2022-09-20 12:23:22 +03:00
Faruk AYDIN
31613225af docs: Use available apps to define what is Automatisch 2022-09-20 11:57:51 +03:00
Faruk AYDIN
09b3f96189 docs: Add border-radius to screenshot image of homepage 2022-09-20 11:42:16 +03:00
Ömer Faruk Aydın
cfef769604 Merge pull request #511 from automatisch/docs/flow-ss
docs: Add flows screenshot to homepage of docs
2022-09-20 02:39:51 +03:00
Faruk AYDIN
364e69600c docs: Add flows screenshot to homepage of docs 2022-09-20 02:12:42 +03:00
Ömer Faruk Aydın
b57f0735c9 Merge pull request #509 from automatisch/fix-scheduler
fix: provide step.parameters to Scheduler triggers
2022-09-18 17:06:09 +03:00
Ali BARIN
58565fddae fix: provide step.parameters to Scheduler triggers 2022-09-18 14:58:22 +02:00
Ali BARIN
4183884537 feat: show active flows first 2022-09-18 14:35:42 +02:00
1124 changed files with 44554 additions and 23468 deletions

1
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1 @@
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04

45
.devcontainer/boot.sh Normal file
View File

@@ -0,0 +1,45 @@
#!/bin/bash
CURRENT_DIR="$(pwd)"
BACKEND_PORT=3000
WEB_PORT=3001
echo "Configuring backend environment variables..."
cd packages/backend
rm -rf .env
echo "
PORT=$BACKEND_PORT
WEB_APP_URL=http://localhost:$WEB_PORT
APP_ENV=development
POSTGRES_DATABASE=automatisch
POSTGRES_PORT=5432
POSTGRES_HOST=postgres
POSTGRES_USERNAME=automatisch_user
POSTGRES_PASSWORD=automatisch_password
ENCRYPTION_KEY=sample_encryption_key
WEBHOOK_SECRET_KEY=sample_webhook_secret_key
APP_SECRET_KEY=sample_app_secret_key
REDIS_HOST=redis
SERVE_WEB_APP_SEPARATELY=true" >> .env
cd $CURRENT_DIR
echo "Configuring web environment variables..."
cd packages/web
rm -rf .env
echo "
PORT=$WEB_PORT
REACT_APP_GRAPHQL_URL=http://localhost:$BACKEND_PORT/graphql
REACT_APP_NOTIFICATIONS_URL=https://notifications.automatisch.io
" >> .env
cd $CURRENT_DIR
echo "Installing and linking dependencies..."
yarn
yarn lerna bootstrap
echo "Migrating database..."
cd packages/backend
yarn db:migrate
yarn db:seed:user
echo "Done!"

View File

@@ -0,0 +1,53 @@
{
"name": "Automatisch",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspace",
"features": {
"ghcr.io/devcontainers/features/git:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/node:1": {
"version": 16
},
"ghcr.io/devcontainers/features/common-utils:1": {
"username": "vscode",
"uid": 1000,
"gid": 1000,
"installZsh": true,
"installOhMyZsh": true,
"configureZshAsDefaultShell": true,
"upgradePackages": true
}
},
"hostRequirements": {
"cpus": 4,
"memory": "8gb",
"storage": "32gb"
},
"portsAttributes": {
"3000": {
"label": "Backend",
"onAutoForward": "silent",
"protocol": "http"
},
"3001": {
"label": "Frontend",
"onAutoForward": "silent",
"protocol": "http"
}
},
"forwardPorts": [3000, 3001],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": ["bash", ".devcontainer/boot.sh"]
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

View File

@@ -0,0 +1,39 @@
version: '3.9'
services:
app:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
volumes:
- ..:/workspace:cached
command: sleep infinity
postgres:
image: 'postgres:14.5-alpine'
environment:
- POSTGRES_DB=automatisch
- POSTGRES_USER=automatisch_user
- POSTGRES_PASSWORD=automatisch_password
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
interval: 10s
timeout: 5s
retries: 5
ports:
- '5432:5432'
expose:
- 5432
redis:
image: 'redis:7.0.4-alpine'
volumes:
- redis_data:/data
ports:
- '6379:6379'
expose:
- 6379
volumes:
postgres_data:
redis_data:

8
.dockerignore Normal file
View File

@@ -0,0 +1,8 @@
**/node_modules/
**/dist/
**/logs/
**/.devcontainer
**/.github
**/.vscode
packages/docs
packages/e2e-test

View File

@@ -3,6 +3,7 @@ dist
build
coverage
packages/docs/*
packages/e2e-tests
.eslintrc.js
husky.config.js

12
.gitignore vendored
View File

@@ -74,6 +74,15 @@ web_modules/
.env.test
.env.production
# cypress environment variables file
cypress.env.json
# cypress screenshots
packages/e2e-tests/cypress/screenshots
# cypress videos
packages/e2e-tests/cypress/videos/
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
@@ -116,3 +125,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
# MacOS finder preferences
.DS_store

2
.vscode/launch.json vendored
View File

@@ -9,4 +9,4 @@
"command": "yarn dev"
}
]
}
}

View File

@@ -1,3 +1,4 @@
{
"editor.formatOnSave": true
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}

1
.yarnrc Normal file
View File

@@ -0,0 +1 @@
network-timeout 400000

76
CODE_OF_CONDUCT.md Normal file
View File

@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our community include:
Demonstrating empathy and kindness toward other people
Being respectful of differing opinions, viewpoints, and experiences
Giving and gracefully accepting constructive feedback
Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
Focusing on what is best not just for us as individuals, but for the overall community
Examples of unacceptable behavior include:
The use of sexualized language or imagery, and sexual attention or advances of any kind
Trolling, insulting or derogatory comments, and personal or political attacks
Public or private harassment
Publishing others private information, such as a physical or email address, without their explicit permission
Other conduct which could reasonably be considered inappropriate in a professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ali@automatisch.io. All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
### 2. Warning
Community Impact: A violation through a single incident or series of actions.
Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
### 3. Temporary Ban
Community Impact: A serious violation of community standards, including sustained inappropriate behavior.
Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
Consequence: A permanent ban from any sort of public interaction within the community.
## Attribution
This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
Community Impact Guidelines were inspired by Mozillas code of conduct enforcement ladder.
For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

View File

@@ -0,0 +1,5 @@
# Automatisch Contributor License Agreement
I give Automatisch permission to license my contributions on any terms they like. I am giving them this license in order to make it possible for them to accept my contributions into their project.
**_As far as the law allows, my contributions come as is, without any warranty or condition, and I will not be liable to anyone for any damages related to this software or this license, under any kind of legal claim._**

3
LICENSE Normal file
View File

@@ -0,0 +1,3 @@
LICENSE.agpl (AGPL-3.0) applies to all files in this
repository, except for files that contain ".ee." in their name
which are covered by LICENSE.enterprise.

View File

@@ -1,178 +1,178 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
2. Basic Permissions.
All rights granted under this License are granted for the term of
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
@@ -180,9 +180,9 @@ modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
@@ -190,12 +190,12 @@ non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
@@ -220,19 +220,19 @@ terms of section 4, provided that you also meet all of these conditions:
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
@@ -278,75 +278,75 @@ in one of these ways:
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
@@ -373,74 +373,74 @@ that material) supplement the terms of this License with terms:
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
@@ -448,43 +448,43 @@ give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
@@ -492,13 +492,13 @@ then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
@@ -506,10 +506,10 @@ or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
@@ -521,83 +521,83 @@ for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
@@ -607,9 +607,9 @@ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
@@ -620,11 +620,11 @@ copy of the Program in return for a fee.
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
@@ -647,15 +647,15 @@ the "copyright" line and a pointer to where the full notice is found.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

35
LICENSE.enterprise Normal file
View File

@@ -0,0 +1,35 @@
The Automatisch Enterprise license (the “Enterprise License”)
Copyright (c) 2023-present AB Software GmbH.
With regard to the Automatisch Software:
This software and associated documentation files (the "Software") may only be
used in production, if you (and any entity that you represent) have a valid
Automatisch Enterprise license for the correct number of user seats. Subject
to the foregoing sentence, you are free to modify this Software and publish
patches to the Software. You agree that Automatisch and/or its licensors
(as applicable) retain all right, title and interest in and to all such
modifications and/or patches, and all such modifications and/or patches may
only be used, copied, modified, displayed, distributed, or otherwise exploited
with a valid Automatisch Enterprise license for the correct number of user seats.
Notwithstanding the foregoing, you may copy and modify the Software for
development and testing purposes, without requiring a subscription. You agree
that Automatisch and/or its licensors (as applicable) retain all right, title
and interest in and to all such modifications. You are not granted any other
rights beyond what is expressly stated herein. Subject to the foregoing, it is
forbidden to copy, merge, publish, distribute, sublicense, and/or sell the Software.
The full text of this Enterprise License shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
For all third party components incorporated into the Automatisch Software, those
components are licensed under the original license provided by the owner of the
applicable component.

61
README.md Normal file
View File

@@ -0,0 +1,61 @@
# Automatisch - Open Source Zapier Alternative
![Automatisch - Screenshot](https://user-images.githubusercontent.com/2501931/191562539-e42f6c34-03c7-4dc4-bcf9-7f9473a9c64f.png)
🧐 Automatisch is a business automation tool that lets you connect different services like Twitter, Slack, and more to automate your business processes.
💸 Automating your workflows doesn't have to be a difficult or expensive process. You also don't need any programming knowledge to use Automatisch.
## Advantages
There are other existing solutions in the market, like Zapier and Integromat, so you might be wondering why you should use Automatisch.
✅ One of the main benefits of using Automatisch is that it allows you to store your data on your own servers, which is essential for businesses that handle sensitive user information and cannot risk sharing it with external cloud services. This is especially relevant for industries such as healthcare and finance, as well as for European companies that must adhere to the General Data Protection Regulation (GDPR).
🤓 Your contributions are vital to the development of Automatisch. As an open-source software, anyone can have an impact on how it is being developed.
💙 No vendor lock-in. If you ever decide that Automatisch is no longer helpful for your business, you can switch to any other provider, which will be easier than switching from the one cloud provider to another since you have all data and flexibility.
## Documentation
The official documentation can be found here: [https://automatisch.io/docs](https://automatisch.io/docs)
## Installation
```bash
# Clone the repository
git clone https://github.com/automatisch/automatisch.git
# Go to the repository folder
cd automatisch
# Start
docker compose up
```
You can use `user@automatisch.io` email address and `sample` password to login to Automatisch. Please do not forget to change your email and password from the settings page.
For other installation types, you can check the [installation](https://automatisch.io/docs/guide/installation) guide.
## Community Links
- [Discord](https://discord.gg/dJSah9CVrC)
- [Twitter](https://twitter.com/automatischio)
## Support
If you have any questions or problems, please visit our GitHub issues page, and we'll try to help you as soon as possible.
[https://github.com/automatisch/automatisch/issues](https://github.com/automatisch/automatisch/issues)
## License
Automatisch Community Edition (Automatisch CE) is an open-source software with the [AGPL-3.0 license](LICENSE.agpl).
Automatisch Enterprise Edition (Automatisch EE) is a commercial offering with the [Enterprise license](LICENSE.enterprise).
The Automatisch repository contains both AGPL-licensed and Enterprise-licensed files. We maintain a single repository to make development easier.
All files that contain ".ee." in their name fall under the [Enterprise license](LICENSE.enterprise). All other files fall under the [AGPL-3.0 license](LICENSE.agpl).
See the [LICENSE](LICENSE) file for more information.

70
docker-compose.yml Normal file
View File

@@ -0,0 +1,70 @@
version: '3.9'
services:
main:
build:
context: ./docker
dockerfile: Dockerfile.compose
entrypoint: /compose-entrypoint.sh
ports:
- '3000:3000'
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
environment:
- HOST=localhost
- PROTOCOL=http
- PORT=3000
- APP_ENV=production
- REDIS_HOST=redis
- POSTGRES_HOST=postgres
- POSTGRES_DATABASE=automatisch
- POSTGRES_USERNAME=automatisch_user
- POSTGRES_PASSWORD=automatisch_password
- ENCRYPTION_KEY
- WEBHOOK_SECRET_KEY
- APP_SECRET_KEY
volumes:
- automatisch_storage:/automatisch/storage
worker:
build:
context: ./docker
dockerfile: Dockerfile.compose
entrypoint: /compose-entrypoint.sh
depends_on:
- main
environment:
- APP_ENV=production
- REDIS_HOST=redis
- POSTGRES_HOST=postgres
- POSTGRES_DATABASE=automatisch
- POSTGRES_USERNAME=automatisch_user
- POSTGRES_PASSWORD=automatisch_password
- ENCRYPTION_KEY
- WEBHOOK_SECRET_KEY
- APP_SECRET_KEY
- WORKER=true
volumes:
- automatisch_storage:/automatisch/storage
postgres:
image: 'postgres:14.5'
environment:
- POSTGRES_DB=automatisch
- POSTGRES_USER=automatisch_user
- POSTGRES_PASSWORD=automatisch_password
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
interval: 10s
timeout: 5s
retries: 5
redis:
image: 'redis:7.0.4'
volumes:
- redis_data:/data
volumes:
automatisch_storage:
postgres_data:
redis_data:

14
docker/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
# syntax=docker/dockerfile:1
FROM node:16-alpine
WORKDIR /automatisch
RUN \
apk --no-cache add --virtual build-dependencies python3 build-base && \
yarn global add @automatisch/cli@0.8.0 --network-timeout 1000000 && \
rm -rf /usr/local/share/.cache/ && \
apk del build-dependencies
COPY ./entrypoint.sh /entrypoint.sh
EXPOSE 3000
ENTRYPOINT ["sh", "/entrypoint.sh"]

19
docker/Dockerfile.cloud Normal file
View File

@@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1
FROM node:16-alpine
WORKDIR /automatisch
ENV PORT 3000
RUN ls -lna
# copy the app, note .dockerignore
COPY . ./
RUN yarn
RUN yarn lerna bootstrap
RUN yarn lerna run --scope=@*/{web,backend,cli} build
COPY ./docker/entrypoint-cloud.sh /entrypoint-cloud.sh
EXPOSE 3000
ENTRYPOINT ["sh", "/entrypoint-cloud.sh"]

11
docker/Dockerfile.compose Normal file
View File

@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1
FROM automatischio/automatisch:0.8.0
WORKDIR /automatisch
RUN apk add --no-cache openssl dos2unix
COPY ./compose-entrypoint.sh /compose-entrypoint.sh
RUN dos2unix /compose-entrypoint.sh
EXPOSE 3000
ENTRYPOINT ["sh", "/compose-entrypoint.sh"]

26
docker/compose-entrypoint.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
set -e
if [ ! -f /automatisch/storage/.env ]; then
>&2 echo "Saving environment variables"
ENCRYPTION_KEY="${ENCRYPTION_KEY:-$(openssl rand -base64 36)}"
WEBHOOK_SECRET_KEY="${WEBHOOK_SECRET_KEY:-$(openssl rand -base64 36)}"
APP_SECRET_KEY="${APP_SECRET_KEY:-$(openssl rand -base64 36)}"
echo "ENCRYPTION_KEY=$ENCRYPTION_KEY" >> /automatisch/storage/.env
echo "WEBHOOK_SECRET_KEY=$WEBHOOK_SECRET_KEY" >> /automatisch/storage/.env
echo "APP_SECRET_KEY=$APP_SECRET_KEY" >> /automatisch/storage/.env
fi
# initiate env. vars. from /automatisch/storage/.env file
export $(grep -v '^#' /automatisch/storage/.env | xargs)
# migration for webhook secret key, will be removed in the future.
if [[ -z "${WEBHOOK_SECRET_KEY}" ]]; then
WEBHOOK_SECRET_KEY="$(openssl rand -base64 36)"
echo "WEBHOOK_SECRET_KEY=$WEBHOOK_SECRET_KEY" >> /automatisch/storage/.env
fi
echo "Environment variables have been set!"
sh /entrypoint.sh

View File

@@ -1,47 +0,0 @@
version: "3.9"
services:
automatisch:
build:
context: ../images/wait-for-postgres
network: host
ports:
- "3000:3000"
depends_on:
- postgres
- redis
environment:
- HOST=localhost
- PROTOCOL=http
- PORT=3000
- APP_ENV=production
- REDIS_HOST=redis
- POSTGRES_HOST=postgres
- POSTGRES_DATABASE=automatisch
- POSTGRES_USERNAME=automatisch_user
volumes:
- automatisch_storage:/automatisch/storage
worker:
build:
context: ../images/plain
network: host
depends_on:
- automatisch
environment:
- APP_ENV=production
- REDIS_HOST=redis
- POSTGRES_HOST=postgres
- POSTGRES_DATABASE=automatisch
- POSTGRES_USERNAME=automatisch_user
command: automatisch start-worker --env-file /automatisch/storage/.env
volumes:
- automatisch_storage:/automatisch/storage
postgres:
image: "postgres:14.5"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: automatisch
POSTGRES_USER: automatisch_user
redis:
image: "redis:7.0.4"
volumes:
automatisch_storage:

9
docker/entrypoint-cloud.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
if [ -n "$WORKER" ]; then
yarn automatisch start-worker
else
yarn automatisch start
fi

9
docker/entrypoint.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
if [ -n "$WORKER" ]; then
automatisch start-worker
else
automatisch start
fi

View File

@@ -1,11 +0,0 @@
# syntax=docker/dockerfile:1
FROM node:16
WORKDIR /automatisch
# npm registry for dev purposes
RUN npm config set fetch-retry-maxtimeout 5000
RUN npm config set fetch-retry-mintimeout 3000
RUN npm set registry http://localhost:5000
# npm registry for dev purposes
RUN yarn global add @automatisch/cli

View File

@@ -1,21 +0,0 @@
# syntax=docker/dockerfile:1
FROM node:16
WORKDIR /automatisch
RUN apt-get update && apt-get install -y postgresql-client
COPY ./wait-for-postgres.sh /automatisch/wait-for-postgres.sh
# npm registry for dev purposes
RUN npm config set fetch-retry-maxtimeout 5000
RUN npm config set fetch-retry-mintimeout 3000
RUN npm set registry http://localhost:5000
# npm registry for dev purposes
RUN mkdir -p /automatisch/storage
RUN touch /automatisch/storage/.env
RUN echo "ENCRYPTION_KEY=$(openssl rand -base64 36)" >> /automatisch/storage/.env
RUN echo "APP_SECRET_KEY=$(openssl rand -base64 36)" >> /automatisch/storage/.env
RUN yarn global add @automatisch/cli
EXPOSE 3000
CMD sh /automatisch/wait-for-postgres.sh automatisch start --env-file=/automatisch/storage/.env

View File

@@ -1,11 +0,0 @@
#!/bin/sh
set -e
until psql -h "$POSTGRES_HOST" -U "$POSTGRES_USERNAME" -d "$POSTGRES_HOST" -c '\q'; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done
>&2 echo "Postgres is up - executing command"
exec "$@"

View File

@@ -2,14 +2,10 @@
"packages": [
"packages/*"
],
"private": true,
"version": "independent",
"version": "0.8.0",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
"publish": {
"registry": "http://localhost:5000"
},
"add": {
"exact": true
}

View File

@@ -1,5 +1,6 @@
{
"name": "@automatisch/root",
"license": "See LICENSE file",
"private": true,
"scripts": {
"start": "lerna run --stream --parallel --scope=@*/{web,backend} dev",
@@ -31,6 +32,6 @@
"prettier": "^2.5.1"
},
"publishConfig": {
"registry": "http://localhost:5000"
"access": "public"
}
}

View File

@@ -1,7 +1,8 @@
HOST=localhost
PROTOCOL=http
PORT=3000
WEB_APP_URL=https://localhost:3001
WEB_APP_URL=http://localhost:3001
WEBHOOK_URL=http://localhost:3000
APP_ENV=development
POSTGRES_DATABASE=automatisch_development
POSTGRES_PORT=5432
@@ -10,7 +11,12 @@ POSTGRES_USERNAME=automatish_development_user
POSTGRES_PASSWORD=
POSTGRES_ENABLE_SSL=false
ENCRYPTION_KEY=sample-encryption-key
WEBHOOK_SECRET_KEY=sample-webhook-key
APP_SECRET_KEY=sample-app-secret-key
REDIS_PORT=6379
REDIS_HOST=127.0.0.1
REDIS_USERNAME=redis_username
REDIS_PASSWORD=redis_password
REDIS_TLS=true
ENABLE_BULLMQ_DASHBOARD=false
SERVE_WEB_APP_SEPARATELY=true

View File

@@ -1,11 +1,4 @@
# `backend`
> TODO: description
## Usage
```
const backend = require('backend');
// TODO: DEMONSTRATE API
```
The open source Zapier alternative. Build workflow automation without spending
time and money.

View File

@@ -4,6 +4,6 @@ const client = new Client({
host: 'localhost',
user: 'postgres',
port: 5432,
})
});
export default client;

View File

@@ -4,11 +4,16 @@ import client from './client';
import User from '../../src/models/user';
import '../../src/config/orm';
export async function createUser(email = 'user@automatisch.io', password = 'sample') {
export async function createUser(
email = 'user@automatisch.io',
password = 'sample'
) {
const UNIQUE_VIOLATION_CODE = '23505';
const userParams = {
email,
password,
fullName: 'Initial admin',
role: 'admin',
};
try {
@@ -29,14 +34,17 @@ export async function createUser(email = 'user@automatisch.io', password = 'samp
}
}
export const createDatabaseAndUser = async (database = appConfig.postgresDatabase, user = appConfig.postgresUsername) => {
export const createDatabaseAndUser = async (
database = appConfig.postgresDatabase,
user = appConfig.postgresUsername
) => {
await client.connect();
await createDatabase(database);
await createDatabaseUser(user);
await grantPrivileges(database, user);
await client.end();
}
};
export const createDatabase = async (database = appConfig.postgresDatabase) => {
const DUPLICATE_DB_CODE = '42P04';
@@ -51,7 +59,7 @@ export const createDatabase = async (database = appConfig.postgresDatabase) => {
logger.info(`Database: ${database} already exists!`);
}
}
};
export const createDatabaseUser = async (user = appConfig.postgresUsername) => {
const DUPLICATE_OBJECT_CODE = '42710';
@@ -68,25 +76,25 @@ export const createDatabaseUser = async (user = appConfig.postgresUsername) => {
logger.info(`Database User: ${user} already exists!`);
}
}
};
export const grantPrivileges = async (
database = appConfig.postgresDatabase, user = appConfig.postgresUsername
database = appConfig.postgresDatabase,
user = appConfig.postgresUsername
) => {
await client.query(
`GRANT ALL PRIVILEGES ON DATABASE ${database} TO ${user};`
);
logger.info(
`${user} has granted all privileges on ${database}!`
);
}
logger.info(`${user} has granted all privileges on ${database}!`);
};
export const dropDatabase = async () => {
if (appConfig.appEnv != 'development' && appConfig.appEnv != 'test') {
const errorMessage = 'Drop database command can be used only with development or test environments!'
const errorMessage =
'Drop database command can be used only with development or test environments!';
logger.error(errorMessage)
logger.error(errorMessage);
return;
}
@@ -94,13 +102,15 @@ export const dropDatabase = async () => {
await dropDatabaseAndUser();
await client.end();
}
};
export const dropDatabaseAndUser = async(database = appConfig.postgresDatabase, user = appConfig.postgresUsername) => {
export const dropDatabaseAndUser = async (
database = appConfig.postgresDatabase,
user = appConfig.postgresUsername
) => {
await client.query(`DROP DATABASE IF EXISTS ${database}`);
logger.info(`Database: ${database} removed!`);
await client.query(`DROP USER IF EXISTS ${user}`);
logger.info(`Database User: ${user} removed!`);
}
};

View File

@@ -10,8 +10,9 @@ const knexConfig = {
user: appConfig.postgresUsername,
password: appConfig.postgresPassword,
database: appConfig.postgresDatabase,
ssl: appConfig.postgresEnableSsl
ssl: appConfig.postgresEnableSsl,
},
searchPath: [appConfig.postgresSchema],
pool: { min: 0, max: 20 },
migrations: {
directory: __dirname + '/src/db/migrations',
@@ -20,7 +21,7 @@ const knexConfig = {
},
seeds: {
directory: __dirname + '/src/db/seeds',
}
}
},
};
export default knexConfig;

View File

@@ -1,9 +1,10 @@
{
"name": "@automatisch/backend",
"version": "0.1.0",
"description": "> TODO: description",
"version": "0.8.0",
"license": "See LICENSE file",
"description": "The open source Zapier alternative. Build workflow automation without spending time and money.",
"scripts": {
"dev": "ts-node-dev src/server.ts",
"dev": "ts-node-dev --exit-child src/server.ts",
"worker": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/worker.ts",
"build": "tsc && yarn copy-statics",
"build:watch": "nodemon --watch 'src/**/*.ts' --watch 'bin/**/*.ts' --exec yarn build --ext ts",
@@ -16,51 +17,56 @@
"db:migration:create": "knex migrate:make",
"db:rollback": "knex migrate:rollback",
"db:migrate": "knex migrate:latest",
"copy-statics": "copyfiles src/**/*.{graphql,json,svg} dist",
"prepack": "yarn build"
"copy-statics": "copyfiles src/**/*.{graphql,json,svg,hbs} dist",
"prepack": "yarn build",
"prebuild": "rm -rf ./dist"
},
"dependencies": {
"@automatisch/web": "0.1.0",
"@automatisch/web": "^0.8.0",
"@bull-board/express": "^3.10.1",
"@gitbeaker/node": "^35.6.0",
"@graphql-tools/graphql-file-loader": "^7.3.4",
"@graphql-tools/load": "^7.5.2",
"@rudderstack/rudder-sdk-node": "^1.1.2",
"@slack/bolt": "3.10.0",
"@sentry/node": "^7.42.0",
"@sentry/tracing": "^7.42.0",
"@types/luxon": "^2.3.1",
"@types/xmlrpc": "^1.3.7",
"ajv-formats": "^2.1.1",
"axios": "0.24.0",
"bcrypt": "^5.0.1",
"bullmq": "^1.76.1",
"bullmq": "^3.0.0",
"copyfiles": "^2.4.1",
"cors": "^2.8.5",
"crypto-js": "^4.1.1",
"debug": "~2.6.9",
"discord.js": "13.2.0",
"dotenv": "^10.0.0",
"express": "~4.16.1",
"express": "~4.18.2",
"express-basic-auth": "^1.2.1",
"express-graphql": "^0.12.0",
"flickr-sdk": "3.10.0",
"googleapis": "89.0.0",
"fast-xml-parser": "^4.0.11",
"graphql-middleware": "^6.1.15",
"graphql-shield": "^7.5.0",
"graphql-tools": "^8.2.0",
"graphql-type-json": "^0.3.2",
"handlebars": "^4.7.7",
"http-errors": "~1.6.3",
"jsonwebtoken": "^8.5.1",
"knex": "^0.95.11",
"http-proxy-agent": "^7.0.0",
"https-proxy-agent": "^7.0.1",
"jsonwebtoken": "^9.0.0",
"knex": "^2.4.0",
"lodash.get": "^4.4.2",
"luxon": "2.3.1",
"luxon": "2.5.2",
"memory-cache": "^0.2.0",
"morgan": "^1.10.0",
"multer": "1.4.5-lts.1",
"nodemailer": "6.7.0",
"oauth-1.0a": "^2.2.6",
"objection": "^3.0.0",
"octokit": "^1.7.1",
"pg": "^8.7.1",
"twilio": "3.70.0",
"twitch-js": "2.0.0-beta.42",
"twitter-api-v2": "1.6.0",
"winston": "^3.7.1"
"php-serialize": "^4.0.2",
"stripe": "^11.13.0",
"winston": "^3.7.1",
"xmlrpc": "^1.3.2"
},
"contributors": [
{
@@ -98,16 +104,18 @@
"url": "https://github.com/automatisch/automatisch/issues"
},
"devDependencies": {
"@automatisch/types": "0.1.0",
"@automatisch/types": "^0.8.0",
"@types/bcrypt": "^5.0.0",
"@types/bull": "^3.15.8",
"@types/cors": "^2.8.12",
"@types/crypto-js": "^4.0.2",
"@types/express": "^4.17.13",
"@types/express": "^4.17.15",
"@types/http-errors": "^1.8.1",
"@types/jsonwebtoken": "^8.5.8",
"@types/lodash.get": "^4.4.6",
"@types/memory-cache": "^0.2.2",
"@types/morgan": "^1.9.3",
"@types/multer": "1.4.7",
"@types/node": "^16.10.2",
"@types/nodemailer": "^6.4.4",
"@types/pg": "^8.6.1",
@@ -128,5 +136,8 @@
"require": [
"ts-node/register"
]
},
"publishConfig": {
"access": "public"
}
}

View File

@@ -1,10 +1,12 @@
import appConfig from './config/app';
import createError from 'http-errors';
import express, { Request, Response, NextFunction } from 'express';
import express from 'express';
import cors from 'cors';
import { IRequest } from '@automatisch/types';
import appConfig from './config/app';
import corsOptions from './config/cors-options';
import graphQLInstance from './helpers/graphql-instance';
import morgan from './helpers/morgan';
import * as Sentry from './helpers/sentry.ee';
import appAssetsHandler from './helpers/app-assets-handler';
import webUIHandler from './helpers/web-ui-handler';
import errorHandler from './helpers/error-handler';
@@ -14,32 +16,51 @@ import {
serverAdapter,
} from './helpers/create-bull-board-handler';
import injectBullBoardHandler from './helpers/inject-bull-board-handler';
import router from './routes';
if (appConfig.enableBullMQDashboard) {
createBullBoardHandler(serverAdapter);
}
createBullBoardHandler(serverAdapter);
const app = express();
if (appConfig.enableBullMQDashboard) {
injectBullBoardHandler(app, serverAdapter);
}
Sentry.init(app);
Sentry.attachRequestHandler(app);
Sentry.attachTracingHandler(app);
injectBullBoardHandler(app, serverAdapter);
appAssetsHandler(app);
app.use(morgan);
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(
express.json({
limit: appConfig.requestBodySizeLimit,
verify(req, res, buf) {
(req as IRequest).rawBody = buf;
},
})
);
app.use(
express.urlencoded({
extended: true,
limit: appConfig.requestBodySizeLimit,
verify(req, res, buf) {
(req as IRequest).rawBody = buf;
},
})
);
app.use(cors(corsOptions));
app.use('/graphql', graphQLInstance);
app.use('/', router);
webUIHandler(app);
// catch 404 and forward to error handler
app.use(function (req: Request, res: Response, next: NextFunction) {
app.use(function (req, res, next) {
next(createError(404));
});
Sentry.attachErrorHandler(app);
app.use(errorHandler);
export default app;

View File

@@ -0,0 +1,3 @@
import translateText from './translate-text';
export default [translateText];

View File

@@ -0,0 +1,77 @@
import qs from 'qs';
import defineAction from '../../../../helpers/define-action';
export default defineAction({
name: 'Translate text',
key: 'translateText',
description: 'Translates text from one language to another.',
arguments: [
{
label: 'Text',
key: 'text',
type: 'string' as const,
required: true,
description: 'Text to be translated.',
variables: true,
},
{
label: 'Target Language',
key: 'targetLanguage',
type: 'dropdown' as const,
required: true,
description: 'Language to translate the text to.',
variables: true,
value: '',
options: [
{ label: 'Bulgarian', value: 'BG' },
{ label: 'Chinese (simplified)', value: 'ZH' },
{ label: 'Czech', value: 'CS' },
{ label: 'Danish', value: 'DA' },
{ label: 'Dutch', value: 'NL' },
{ label: 'English', value: 'EN' },
{ label: 'English (American)', value: 'EN-US' },
{ label: 'English (British)', value: 'EN-GB' },
{ label: 'Estonian', value: 'ET' },
{ label: 'Finnish', value: 'FI' },
{ label: 'French', value: 'FR' },
{ label: 'German', value: 'DE' },
{ label: 'Greek', value: 'EL' },
{ label: 'Hungarian', value: 'HU' },
{ label: 'Indonesian', value: 'ID' },
{ label: 'Italian', value: 'IT' },
{ label: 'Japanese', value: 'JA' },
{ label: 'Latvian', value: 'LV' },
{ label: 'Lithuanian', value: 'LT' },
{ label: 'Polish', value: 'PL' },
{ label: 'Portuguese', value: 'PT' },
{ label: 'Portuguese (Brazilian)', value: 'PT-BR' },
{
label:
'Portuguese (all Portuguese varieties excluding Brazilian Portuguese)',
value: 'PT-PT',
},
{ label: 'Romanian', value: 'RO' },
{ label: 'Russian', value: 'RU' },
{ label: 'Slovak', value: 'SK' },
{ label: 'Slovenian', value: 'SL' },
{ label: 'Spanish', value: 'ES' },
{ label: 'Swedish', value: 'SV' },
{ label: 'Turkish', value: 'TR' },
{ label: 'Ukrainian', value: 'UK' },
],
},
],
async run($) {
const stringifiedBody = qs.stringify({
text: $.step.parameters.text,
target_lang: $.step.parameters.targetLanguage,
});
const response = await $.http.post('/v2/translate', stringifiedBody);
$.setActionItem({
raw: response.data,
});
},
});

View File

@@ -0,0 +1,39 @@
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg">
<metadata id="metadata4177">image/svg+xml</metadata>
<defs>
<clipPath id="clipPath4187" clipPathUnits="userSpaceOnUse">
<path id="path4189" d="m70.850157,393.069981l708.661,0l0,-425.197l-708.661,0l0,425.197z"/>
</clipPath>
</defs>
<g>
<title>background</title>
<rect fill="#ffffff" id="canvas_background" height="130" width="130" y="-1" x="-1"/>
</g>
<g>
<title>Layer 1</title>
<g fill="#FFF" transform="matrix(1.36265596065192,0,0,-1.3395561298863794,-403.63320244005325,311.0674198374575) " id="g4179">
<g fill="#FFF" id="g4183">
<g fill="#FFF" clip-path="url(#clipPath4187)" id="g4185">
<g fill="#FFF" id="g4191">
<path fill="#000000" fill-rule="nonzero" id="path4193" d="m411.83557,185.452083c0,-2.425 -0.463,-4.637 -1.3,-6.226c-1.009,-1.905 -2.173,-3.234 -3.366,-3.843c-1.641,-0.835 -3.707,-1.69 -6.586,-1.69l-4.044,0l0,22.753l3.221,0c4.28,0 7.213,-0.841 8.971,-2.572c2.09,-2.059 3.104,-4.814 3.104,-8.422m-1.89,15.206c-2.434,1.24 -6.053,1.24 -10.633,1.24l-7.069,0c-1.158,0 -2.097,-0.939 -2.097,-2.097l0,-29.463c0,-1.157 0.939,-2.096 2.097,-2.096l6.662,0c3.78,0 7.209,0.393 9.411,1.079c1.585,0.491 3.181,1.529 5.022,3.27c1.559,1.472 2.785,3.317 3.642,5.484c0.886,2.243 1.318,4.609 1.318,7.232c0,3.66 -0.771,6.809 -2.359,9.622c-1.441,2.558 -3.344,4.377 -5.994,5.729"/>
</g>
<g fill="#FFF" id="g4195">
<path fill="#000000" fill-rule="nonzero" id="path4197" d="m533.882353,173.693278l-10.436,0l0,27.36c0,0.467 -0.38,0.845 -0.845,0.845l-4.702,0c-0.466,0 -0.845,-0.378 -0.845,-0.845l0,-31.966c0,-0.467 0.379,-0.846 0.845,-0.846l15.983,0c0.465,0 0.848,0.379 0.848,0.846l0,3.759c0,0.469 -0.383,0.847 -0.848,0.847"/>
</g>
<g fill="#FFF" id="g4199">
<path fill="#000000" fill-rule="nonzero" id="path4201" d="m506.182158,181.465785c0,-2.225 -0.685,-4.08 -2.034,-5.516c-1.35,-1.437 -3.039,-2.167 -5.017,-2.167c-2.038,0 -3.751,0.718 -5.096,2.13c-1.34,1.415 -2.022,3.291 -2.022,5.576c0,2.242 0.682,4.081 2.024,5.471c1.343,1.391 3.056,2.096 5.094,2.096c2.026,0 3.724,-0.716 5.05,-2.132c1.326,-1.412 2.001,-3.249 2.001,-5.458m-5.813,13.324c-1.536,0 -3.091,-0.305 -4.385,-0.862c-1.508,-0.646 -2.894,-1.553 -3.903,-2.554l-0.601,-0.48l-2.708,2.543l-2.843,0c-0.465,0 -0.842,-0.377 -0.842,-0.842l0,-32.911c0,-0.467 0.378,-0.845 0.845,-0.845l4.701,0c0.467,0 0.847,0.379 0.847,0.847l0,12.166l0.598,-0.455c1.287,-1.204 2.95,-2.034 4.125,-2.52c1.249,-0.516 2.621,-0.78 4.076,-0.78c3.306,0 6.085,1.248 8.499,3.812c2.408,2.557 3.581,5.661 3.581,9.488c0,3.886 -1.176,7.13 -3.505,9.64c-2.302,2.491 -5.157,3.753 -8.485,3.753"/>
</g>
<g fill="#FFF" id="g4203">
<path fill="#000000" fill-rule="nonzero" id="path4205" d="m460.078642,184.036586l0.149,0.387c0.847,1.866 1.627,3.045 2.381,3.604c1.364,1.009 2.965,1.522 4.765,1.522c1.543,0 3.024,-0.499 4.396,-1.485c1.209,-0.865 2.09,-2.13 2.533,-3.616l0.101,-0.412l-14.325,0zm6.978,10.753c-3.801,0 -6.871,-1.255 -9.39,-3.836c-2.52,-2.584 -3.745,-5.741 -3.745,-9.651c0,-3.815 1.228,-6.902 3.757,-9.439c2.526,-2.535 5.709,-3.766 9.73,-3.766c2.584,0 4.824,0.454 6.656,1.348c1.543,0.752 2.915,1.843 4.079,3.243c0.167,0.203 0.233,0.472 0.172,0.728c-0.056,0.257 -0.23,0.472 -0.469,0.583l-3.782,1.739c-0.3,0.138 -0.656,0.089 -0.907,-0.128c-1.691,-1.459 -3.641,-2.2 -5.797,-2.2c-2.156,0 -3.793,0.489 -5.008,1.493c-1.29,1.072 -2.003,2.191 -2.332,3.679l19.696,0c0.466,0 0.842,0.375 0.844,0.841l0.007,0.835c0,4.359 -1.369,8.256 -3.757,10.695c-2.529,2.581 -5.718,3.836 -9.754,3.836"/>
</g>
<g fill="#FFF" id="g4207">
<path fill="#000000" fill-rule="nonzero" id="path4209" d="m428.942961,184.036586l0.148,0.386c0.854,1.871 1.635,3.05 2.387,3.605c1.36,1.009 2.963,1.522 4.763,1.522c1.542,0 3.022,-0.5 4.396,-1.485c1.208,-0.865 2.088,-2.13 2.533,-3.615l0.099,-0.413l-14.326,0zm6.979,10.753c-3.798,0 -6.871,-1.255 -9.39,-3.836c-2.521,-2.584 -3.745,-5.741 -3.745,-9.651c0,-3.816 1.227,-6.904 3.757,-9.439c2.526,-2.535 5.709,-3.766 9.73,-3.766c2.584,0 4.824,0.454 6.656,1.348c1.544,0.752 2.915,1.843 4.079,3.244c0.168,0.202 0.231,0.471 0.172,0.728c-0.056,0.256 -0.231,0.471 -0.469,0.582l-3.782,1.739c-0.298,0.138 -0.655,0.089 -0.907,-0.128c-1.688,-1.459 -3.639,-2.2 -5.797,-2.2c-2.156,0 -3.793,0.489 -5.005,1.494c-1.29,1.071 -2.006,2.189 -2.335,3.678l19.696,0c0.465,0 0.844,0.375 0.847,0.841l0.004,0.835c0,4.358 -1.369,8.254 -3.757,10.695c-2.526,2.581 -5.715,3.836 -9.754,3.836"/>
</g>
<g fill="#FFF" id="g4211">
<path fill="#000000" fill-rule="nonzero" id="path4213" d="m355.595244,180.065883c-2.797,0 -5.063,2.266 -5.063,5.063c0,0.295 0.025,0.584 0.075,0.865l-12.108,6.972c-0.881,-0.744 -2.02,-1.193 -3.263,-1.193c-2.797,0 -5.064,2.267 -5.064,5.063c0,2.796 2.267,5.063 5.064,5.063c2.797,0 5.064,-2.267 5.064,-5.063c0,-0.322 -0.033,-0.637 -0.091,-0.943l12.064,-6.946c0.889,0.775 2.051,1.245 3.322,1.245c2.795,0 5.062,-2.267 5.062,-5.063c0,-2.797 -2.267,-5.063 -5.062,-5.063m-15.357,-6.724c0,-2.796 -2.266,-5.063 -5.063,-5.063c-2.795,0 -5.062,2.267 -5.062,5.063c0,2.797 2.267,5.064 5.062,5.064c1.257,0 2.405,-0.459 3.29,-1.217l8.827,5.073c0.377,-1.089 0.963,-2.081 1.708,-2.929l-8.843,-5.083c0.052,-0.295 0.081,-0.598 0.081,-0.908m30.444,30.899l-24.042,13.738c-1.637,0.935 -3.647,0.935 -5.284,0l-24.04,-13.738c-1.66,-0.948 -2.684,-2.714 -2.684,-4.624l0,-27.946c0,-1.902 1.015,-3.661 2.663,-4.612l41.387,-23.889l0.007,16.968l12.01,6.921c1.65,0.951 2.666,2.71 2.666,4.614l0,27.944c0,1.91 -1.024,3.676 -2.683,4.624"/>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -0,0 +1,33 @@
import verifyCredentials from './verify-credentials';
import isStillVerified from './is-still-verified';
export default {
fields: [
{
key: 'screenName',
label: 'Screen Name',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description:
'Screen name of your connection to be used on Automatisch UI.',
clickToCopy: false,
},
{
key: 'authenticationKey',
label: 'Authentication Key',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: 'DeepL authentication key of your account.',
clickToCopy: false,
},
],
verifyCredentials,
isStillVerified,
};

View File

@@ -0,0 +1,9 @@
import { IGlobalVariable } from '@automatisch/types';
import verifyCredentials from './verify-credentials';
const isStillVerified = async ($: IGlobalVariable) => {
await verifyCredentials($);
return true;
};
export default isStillVerified;

View File

@@ -0,0 +1,11 @@
import { IGlobalVariable } from '@automatisch/types';
const verifyCredentials = async ($: IGlobalVariable) => {
await $.http.get('/v2/usage');
await $.auth.set({
screenName: $.auth.data.screenName,
});
};
export default verifyCredentials;

View File

@@ -0,0 +1,12 @@
import { TBeforeRequest } from '@automatisch/types';
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
if ($.auth.data?.authenticationKey) {
const authorizationHeader = `DeepL-Auth-Key ${$.auth.data.authenticationKey}`;
requestConfig.headers.Authorization = authorizationHeader;
}
return requestConfig;
};
export default addAuthHeader;

View File

@@ -0,0 +1,18 @@
import defineApp from '../../helpers/define-app';
import addAuthHeader from './common/add-auth-header';
import auth from './auth';
import actions from './actions';
export default defineApp({
name: 'DeepL',
key: 'deepl',
iconUrl: '{BASE_URL}/apps/deepl/assets/favicon.svg',
authDocUrl: 'https://automatisch.io/docs/apps/deepl/connection',
supportsConnections: true,
baseUrl: 'https://deepl.com',
apiBaseUrl: 'https://api.deepl.com',
primaryColor: '0d2d45',
beforeRequest: [addAuthHeader],
auth,
actions,
});

View File

@@ -0,0 +1,56 @@
import defineAction from '../../../../helpers/define-action';
export default defineAction({
name: 'Delay for',
key: 'delayFor',
description:
'Delays the execution of the next action by a specified amount of time.',
arguments: [
{
label: 'Delay for unit',
key: 'delayForUnit',
type: 'dropdown' as const,
required: true,
value: null,
description: 'Delay for unit, e.g. minutes, hours, days, weeks.',
variables: true,
options: [
{
label: 'Minutes',
value: 'minutes',
},
{
label: 'Hours',
value: 'hours',
},
{
label: 'Days',
value: 'days',
},
{
label: 'Weeks',
value: 'weeks',
},
],
},
{
label: 'Delay for value',
key: 'delayForValue',
type: 'string' as const,
required: true,
description: 'Delay for value, use a number, e.g. 1, 2, 3.',
variables: true,
},
],
async run($) {
const { delayForUnit, delayForValue } = $.step.parameters;
const dataItem = {
delayForUnit,
delayForValue,
};
$.setActionItem({ raw: dataItem });
},
});

View File

@@ -0,0 +1,28 @@
import defineAction from '../../../../helpers/define-action';
export default defineAction({
name: 'Delay until',
key: 'delayUntil',
description:
'Delays the execution of the next action until a specified date.',
arguments: [
{
label: 'Delay until (Date)',
key: 'delayUntil',
type: 'string' as const,
required: true,
description: 'Delay until the date. E.g. 2022-12-18',
variables: true,
},
],
async run($) {
const { delayUntil } = $.step.parameters;
const dataItem = {
delayUntil,
};
$.setActionItem({ raw: dataItem });
},
});

View File

@@ -0,0 +1,4 @@
import delayFor from './delay-for';
import delayUntil from './delay-until';
export default [delayFor, delayUntil];

View File

@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 122.88 100.6" style="enable-background:new 0 0 122.88 100.6" xml:space="preserve">
<style type="text/css">.st0{fill:#272727;} .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#000000;}</style>
<g>
<path class="st0" d="M72.58,0c6.8,0,13.3,1.36,19.23,3.81c6.16,2.55,11.7,6.29,16.33,10.92l0,0c4.63,4.63,8.37,10.17,10.92,16.34 c2.46,5.93,3.81,12.43,3.81,19.23c0,6.8-1.36,13.3-3.81,19.23c-2.55,6.16-6.29,11.7-10.92,16.33l0,0 c-4.63,4.63-10.17,8.37-16.34,10.92c-5.93,2.46-12.43,3.81-19.23,3.81c-6.8,0-13.3-1.36-19.23-3.81 c-6.15-2.55-11.69-6.28-16.33-10.92l-0.01-0.01c-4.64-4.64-8.37-10.17-10.92-16.33c-0.79-1.91-1.47-3.87-2.02-5.89 c1.05,0.1,2.12,0.15,3.2,0.15c2.05,0,4.05-0.19,6-0.54c0.32,0.97,0.67,1.93,1.06,2.87c2.09,5.05,5.17,9.6,8.99,13.43 c3.82,3.82,8.38,6.9,13.43,8.99c4.87,2.02,10.21,3.13,15.83,3.13c5.62,0,10.96-1.11,15.83-3.13c5.05-2.09,9.6-5.17,13.43-8.99 c3.82-3.82,6.9-8.38,8.99-13.43c2.02-4.87,3.13-10.21,3.13-15.83c0-5.62-1.11-10.96-3.13-15.83c-2.09-5.05-5.17-9.6-8.99-13.43 c-3.82-3.82-8.38-6.9-13.43-8.99c-4.87-2.02-10.21-3.13-15.83-3.13c-5.62,0-10.96,1.11-15.83,3.13c-0.44,0.18-0.87,0.37-1.3,0.56 c-1.65-2.61-3.66-4.97-5.95-7.02c1.25-0.65,2.53-1.24,3.84-1.79C59.28,1.36,65.78,0,72.58,0L72.58,0z M66.8,26.39 c0-1.23,0.5-2.35,1.31-3.16c0.81-0.81,1.93-1.31,3.16-1.31c1.23,0,2.35,0.5,3.16,1.31c0.81,0.81,1.31,1.93,1.31,3.16v23.47 l17.54,10.4c1.05,0.62,1.76,1.62,2.05,2.73c0.28,1.1,0.15,2.31-0.47,3.37l0,0.01l0,0c-0.62,1.05-1.62,1.76-2.73,2.05 c-1.1,0.28-2.31,0.15-3.37-0.47l-0.01,0l0,0L69.1,56.29c-0.67-0.38-1.24-0.92-1.64-1.57c-0.42-0.68-0.66-1.48-0.66-2.32V26.39 L66.8,26.39z"/>
<path class="st1" d="M27.27,3.18c15.06,0,27.27,12.21,27.27,27.27c0,15.06-12.21,27.27-27.27,27.27C12.21,57.73,0,45.52,0,30.45 C0,15.39,12.21,3.18,27.27,3.18L27.27,3.18z M24.35,41.34h5.82v5.16h-5.82V41.34L24.35,41.34L24.35,41.34z M30.17,37.77h-5.82 c-0.58-7.07-1.8-11.56-1.8-18.63c0-2.61,2.12-4.72,4.72-4.72c2.61,0,4.72,2.12,4.72,4.72C32,26.2,30.76,30.7,30.17,37.77 L30.17,37.77L30.17,37.77L30.17,37.77z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1,14 @@
import defineApp from '../../helpers/define-app';
import actions from './actions';
export default defineApp({
name: 'Delay',
key: 'delay',
iconUrl: '{BASE_URL}/apps/delay/assets/favicon.svg',
authDocUrl: 'https://automatisch.io/docs/apps/delay/connection',
supportsConnections: false,
baseUrl: '',
apiBaseUrl: '',
primaryColor: '001F52',
actions,
});

View File

@@ -0,0 +1,3 @@
import sendMessageToChannel from './send-message-to-channel';
export default [sendMessageToChannel];

View File

@@ -0,0 +1,47 @@
import defineAction from '../../../../helpers/define-action';
export default defineAction({
name: 'Send a message to channel',
key: 'sendMessageToChannel',
description: 'Sends a message to a specific channel you specify.',
arguments: [
{
label: 'Channel',
key: 'channel',
type: 'dropdown' as const,
required: true,
description: 'Pick a channel to send the message to.',
variables: true,
source: {
type: 'query',
name: 'getDynamicData',
arguments: [
{
name: 'key',
value: 'listChannels',
},
],
},
},
{
label: 'Message text',
key: 'message',
type: 'string' as const,
required: true,
description: 'The content of your new message.',
variables: true,
},
],
async run($) {
const data = {
content: $.step.parameters.message as string,
};
const response = await $.http?.post(
`/channels/${$.step.parameters.channel}/messages`,
data
);
$.setActionItem({ raw: response.data });
},
});

View File

@@ -0,0 +1,22 @@
import { IField, IGlobalVariable } from '@automatisch/types';
import { URLSearchParams } from 'url';
import scopes from '../common/scopes';
export default async function generateAuthUrl($: IGlobalVariable) {
const oauthRedirectUrlField = $.app.auth.fields.find(
(field: IField) => field.key == 'oAuthRedirectUrl'
);
const callbackUrl = oauthRedirectUrlField.value as string;
const searchParams = new URLSearchParams({
client_id: $.auth.data.consumerKey as string,
redirect_uri: callbackUrl,
response_type: 'code',
permissions: '2146958591',
scope: scopes.join(' '),
});
const url = `${$.app.apiBaseUrl}/oauth2/authorize?${searchParams.toString()}`;
await $.auth.set({ url });
}

View File

@@ -0,0 +1,61 @@
import generateAuthUrl from './generate-auth-url';
import verifyCredentials from './verify-credentials';
import isStillVerified from './is-still-verified';
export default {
fields: [
{
key: 'oAuthRedirectUrl',
label: 'OAuth Redirect URL',
type: 'string' as const,
required: true,
readOnly: true,
value: '{WEB_APP_URL}/app/discord/connections/add',
placeholder: null,
description:
'When asked to input an OAuth callback or redirect URL in Discord OAuth, enter the URL above.',
docUrl: 'https://automatisch.io/docs/discord#oauth-redirect-url',
clickToCopy: true,
},
{
key: 'consumerKey',
label: 'Consumer Key',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: null,
docUrl: 'https://automatisch.io/docs/discord#consumer-key',
clickToCopy: false,
},
{
key: 'consumerSecret',
label: 'Consumer Secret',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: null,
docUrl: 'https://automatisch.io/docs/discord#consumer-secret',
clickToCopy: false,
},
{
key: 'botToken',
label: 'Bot token',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: null,
docUrl: 'https://automatisch.io/docs/discord#bot-token',
clickToCopy: false,
},
],
generateAuthUrl,
verifyCredentials,
isStillVerified,
};

View File

@@ -0,0 +1,10 @@
import { IGlobalVariable } from '@automatisch/types';
import getCurrentUser from '../common/get-current-user';
const isStillVerified = async ($: IGlobalVariable) => {
await getCurrentUser($);
return true;
};
export default isStillVerified;

View File

@@ -0,0 +1,53 @@
import { IGlobalVariable, IField } from '@automatisch/types';
import { URLSearchParams } from 'url';
import scopes from '../common/scopes';
import getCurrentUser from '../common/get-current-user';
const verifyCredentials = async ($: IGlobalVariable) => {
const oauthRedirectUrlField = $.app.auth.fields.find(
(field: IField) => field.key == 'oAuthRedirectUrl'
);
const callbackUrl = oauthRedirectUrlField.value as string;
const params = new URLSearchParams({
client_id: $.auth.data.consumerKey as string,
redirect_uri: callbackUrl,
response_type: 'code',
scope: scopes.join(' '),
client_secret: $.auth.data.consumerSecret as string,
code: $.auth.data.code as string,
grant_type: 'authorization_code',
});
const { data: verifiedCredentials } = await $.http.post(
'/oauth2/token',
params.toString()
);
const {
access_token: accessToken,
refresh_token: refreshToken,
expires_in: expiresIn,
scope: scope,
token_type: tokenType,
guild: { id: guildId, name: guildName },
} = verifiedCredentials;
await $.auth.set({
accessToken,
refreshToken,
expiresIn,
scope,
tokenType,
});
const user = await getCurrentUser($);
await $.auth.set({
userId: user.id,
screenName: user.username,
email: user.email,
guildId,
guildName,
});
};
export default verifyCredentials;

View File

@@ -1,99 +0,0 @@
import type {
IAuthentication,
IApp,
IField,
IJSONObject,
} from '@automatisch/types';
import { URLSearchParams } from 'url';
import axios, { AxiosInstance } from 'axios';
export default class Authentication implements IAuthentication {
appData: IApp;
connectionData: IJSONObject;
client: AxiosInstance = axios.create({
baseURL: 'https://discord.com/api/',
});
scope: string[] = ['identify', 'email'];
constructor(appData: IApp, connectionData: IJSONObject) {
this.appData = appData;
this.connectionData = connectionData;
}
get oauthRedirectUrl() {
return this.appData.fields.find(
(field: IField) => field.key == 'oAuthRedirectUrl'
).value;
}
async createAuthData() {
const searchParams = new URLSearchParams({
client_id: this.connectionData.consumerKey as string,
redirect_uri: this.oauthRedirectUrl,
response_type: 'code',
scope: this.scope.join(' '),
});
const url = `https://discord.com/api/oauth2/authorize?${searchParams.toString()}`;
return { url };
}
async verifyCredentials() {
const params = new URLSearchParams({
client_id: this.connectionData.consumerKey as string,
redirect_uri: this.oauthRedirectUrl,
response_type: 'code',
scope: this.scope.join(' '),
client_secret: this.connectionData.consumerSecret as string,
code: this.connectionData.oauthVerifier as string,
grant_type: 'authorization_code',
});
const { data: verifiedCredentials } = await this.client.post(
'/oauth2/token',
params.toString()
);
const {
access_token: accessToken,
refresh_token: refreshToken,
expires_in: expiresIn,
scope: scope,
token_type: tokenType,
} = verifiedCredentials;
const { data: user } = await this.client.get('/users/@me', {
headers: {
Authorization: `${tokenType} ${accessToken}`,
},
});
return {
consumerKey: this.connectionData.consumerKey,
consumerSecret: this.connectionData.consumerSecret,
accessToken,
refreshToken,
expiresIn,
scope,
tokenType,
userId: user.id,
screenName: user.username,
email: user.email,
};
}
async isStillVerified() {
try {
await this.client.get('/users/@me', {
headers: {
Authorization: `${this.connectionData.tokenType} ${this.connectionData.accessToken}`,
},
});
return true;
} catch {
return false;
}
}
}

View File

@@ -0,0 +1,12 @@
import { TBeforeRequest } from '@automatisch/types';
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
const { tokenType, botToken } = $.auth.data;
if (tokenType && botToken) {
requestConfig.headers.Authorization = `Bot ${botToken}`;
}
return requestConfig;
};
export default addAuthHeader;

View File

@@ -0,0 +1,10 @@
import { IGlobalVariable, IJSONObject } from '@automatisch/types';
const getCurrentUser = async ($: IGlobalVariable): Promise<IJSONObject> => {
const response = await $.http.get('/users/@me');
const currentUser = response.data;
return currentUser;
};
export default getCurrentUser;

View File

@@ -0,0 +1,3 @@
const scopes = ['bot', 'identify'];
export default scopes;

View File

@@ -0,0 +1,3 @@
import listChannels from './list-channels';
export default [listChannels];

View File

@@ -0,0 +1,34 @@
import { IGlobalVariable, IJSONObject } from '@automatisch/types';
export default {
name: 'List channels',
key: 'listChannels',
async run($: IGlobalVariable) {
const channels: {
data: IJSONObject[];
error: IJSONObject | null;
} = {
data: [],
error: null,
};
const response = await $.http.get(
`/guilds/${$.auth.data.guildId}/channels`
);
channels.data = response.data
.filter((channel: IJSONObject) => {
// filter in text channels and announcement channels only
return channel.type === 0 || channel.type === 5;
})
.map((channel: IJSONObject) => {
return {
value: channel.id,
name: channel.name,
};
});
return channels;
},
};

View File

@@ -1,15 +1,22 @@
import Authentication from './authentication';
import {
IService,
IAuthentication,
IApp,
IJSONObject,
} from '@automatisch/types';
import defineApp from '../../helpers/define-app';
import addAuthHeader from './common/add-auth-header';
import auth from './auth';
import dynamicData from './dynamic-data';
import actions from './actions';
import triggers from './triggers';
export default class Discord implements IService {
authenticationClient: IAuthentication;
constructor(appData: IApp, connectionData: IJSONObject) {
this.authenticationClient = new Authentication(appData, connectionData);
}
}
export default defineApp({
name: 'Discord',
key: 'discord',
iconUrl: '{BASE_URL}/apps/discord/assets/favicon.svg',
authDocUrl: 'https://automatisch.io/docs/apps/discord/connection',
supportsConnections: true,
baseUrl: 'https://discord.com',
apiBaseUrl: 'https://discord.com/api',
primaryColor: '5865f2',
beforeRequest: [addAuthHeader],
auth,
dynamicData,
triggers,
actions,
});

View File

@@ -1,219 +0,0 @@
{
"name": "Discord",
"key": "discord",
"iconUrl": "{BASE_URL}/apps/discord/assets/favicon.svg",
"docUrl": "https://automatisch.io/docs/discord",
"primaryColor": "5865f2",
"supportsConnections": true,
"fields": [
{
"key": "oAuthRedirectUrl",
"label": "OAuth Redirect URL",
"type": "string",
"required": true,
"readOnly": true,
"value": "{WEB_APP_URL}/app/discord/connections/add",
"placeholder": null,
"description": "When asked to input an OAuth callback or redirect URL in Discord OAuth, enter the URL above.",
"docUrl": "https://automatisch.io/docs/discord#oauth-redirect-url",
"clickToCopy": true
},
{
"key": "consumerKey",
"label": "Consumer Key",
"type": "string",
"required": true,
"readOnly": false,
"value": null,
"placeholder": null,
"description": null,
"docUrl": "https://automatisch.io/docs/discord#consumer-key",
"clickToCopy": false
},
{
"key": "consumerSecret",
"label": "Consumer Secret",
"type": "string",
"required": true,
"readOnly": false,
"value": null,
"placeholder": null,
"description": null,
"docUrl": "https://automatisch.io/docs/discord#consumer-secret",
"clickToCopy": false
}
],
"authenticationSteps": [
{
"step": 1,
"type": "mutation",
"name": "createConnection",
"arguments": [
{
"name": "key",
"value": "{key}"
},
{
"name": "formattedData",
"value": null,
"properties": [
{
"name": "consumerKey",
"value": "{fields.consumerKey}"
},
{
"name": "consumerSecret",
"value": "{fields.consumerSecret}"
}
]
}
]
},
{
"step": 2,
"type": "mutation",
"name": "createAuthData",
"arguments": [
{
"name": "id",
"value": "{createConnection.id}"
}
]
},
{
"step": 3,
"type": "openWithPopup",
"name": "openAuthPopup",
"arguments": [
{
"name": "url",
"value": "{createAuthData.url}"
}
]
},
{
"step": 4,
"type": "mutation",
"name": "updateConnection",
"arguments": [
{
"name": "id",
"value": "{createConnection.id}"
},
{
"name": "formattedData",
"value": null,
"properties": [
{
"name": "oauthVerifier",
"value": "{openAuthPopup.code}"
}
]
}
]
},
{
"step": 5,
"type": "mutation",
"name": "verifyConnection",
"arguments": [
{
"name": "id",
"value": "{createConnection.id}"
}
]
}
],
"reconnectionSteps": [
{
"step": 1,
"type": "mutation",
"name": "resetConnection",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
}
]
},
{
"step": 2,
"type": "mutation",
"name": "updateConnection",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
},
{
"name": "formattedData",
"value": null,
"properties": [
{
"name": "consumerKey",
"value": "{fields.consumerKey}"
},
{
"name": "consumerSecret",
"value": "{fields.consumerSecret}"
}
]
}
]
},
{
"step": 3,
"type": "mutation",
"name": "createAuthData",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
}
]
},
{
"step": 4,
"type": "openWithPopup",
"name": "openAuthPopup",
"arguments": [
{
"name": "url",
"value": "{createAuthData.url}"
}
]
},
{
"step": 5,
"type": "mutation",
"name": "updateConnection",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
},
{
"name": "formattedData",
"value": null,
"properties": [
{
"name": "oauthVerifier",
"value": "{openAuthPopup.code}"
}
]
}
]
},
{
"step": 6,
"type": "mutation",
"name": "verifyConnection",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
}
]
}
]
}

View File

@@ -0,0 +1 @@
export default [];

View File

@@ -0,0 +1,36 @@
import path from 'node:path';
import defineAction from '../../../../helpers/define-action';
export default defineAction({
name: 'Create folder',
key: 'createFolder',
description: 'Create a new folder with the given parent folder and folder name',
arguments: [
{
label: 'Folder',
key: 'parentFolder',
type: 'string' as const,
required: true,
description: 'Enter the parent folder path, like /TextFiles/ or /Documents/Taxes/',
variables: true,
},
{
label: 'Folder Name',
key: 'folderName',
type: 'string' as const,
required: true,
description: 'Enter the name for the new folder',
variables: true,
},
],
async run($) {
const parentFolder = $.step.parameters.parentFolder as string;
const folderName = $.step.parameters.folderName as string;
const folderPath = path.join(parentFolder, folderName);
const response = await $.http.post('/2/files/create_folder_v2', { path: folderPath });
$.setActionItem({ raw: response.data });
},
});

View File

@@ -0,0 +1,4 @@
import createFolder from "./create-folder";
import renameFile from "./rename-file";
export default [createFolder, renameFile];

View File

@@ -0,0 +1,45 @@
import path from 'node:path';
import defineAction from '../../../../helpers/define-action';
export default defineAction({
name: 'Rename file',
key: 'renameFile',
description: 'Rename a file with the given file path and new name',
arguments: [
{
label: 'File Path',
key: 'filePath',
type: 'string' as const,
required: true,
description:
'Write the full path to the file such as /Folder1/File.pdf',
variables: true,
},
{
label: 'New Name',
key: 'newName',
type: 'string' as const,
required: true,
description: "Enter the new name for the file (without the extension, e.g., '.pdf')",
variables: true,
},
],
async run($) {
const filePath = $.step.parameters.filePath as string;
const newName = $.step.parameters.newName as string;
const fileObject = path.parse(filePath);
const newPath = path.format({
dir: fileObject.dir,
ext: fileObject.ext,
name: newName,
});
const response = await $.http.post('/2/files/move_v2', {
from_path: filePath,
to_path: newPath,
});
$.setActionItem({ raw: response.data.metadata });
},
});

View File

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" aria-label="Dropbox" role="img" viewBox="0 0 512 512" fill="#0061ff">
<path d="M158 101l-99 63 295 188 99-63m-99-188l99 63-295 188-99-63m99 83l98 63 98-63-98-62z"/>
</svg>

After

Width:  |  Height:  |  Size: 213 B

View File

@@ -0,0 +1,22 @@
import { URLSearchParams } from 'url';
import { IField, IGlobalVariable } from '@automatisch/types';
import scopes from '../common/scopes';
export default async function generateAuthUrl($: IGlobalVariable) {
const oauthRedirectUrlField = $.app.auth.fields.find(
(field: IField) => field.key == 'oAuthRedirectUrl'
);
const callbackUrl = oauthRedirectUrlField.value as string;
const searchParams = new URLSearchParams({
client_id: $.auth.data.clientId as string,
redirect_uri: callbackUrl,
response_type: 'code',
scope: scopes.join(' '),
token_access_type: 'offline',
});
const url = `${$.app.baseUrl}/oauth2/authorize?${searchParams.toString()}`;
await $.auth.set({ url });
}

View File

@@ -0,0 +1,48 @@
import generateAuthUrl from './generate-auth-url';
import verifyCredentials from './verify-credentials';
import isStillVerified from './is-still-verified';
import refreshToken from './refresh-token';
export default {
fields: [
{
key: 'oAuthRedirectUrl',
label: 'OAuth Redirect URL',
type: 'string' as const,
required: true,
readOnly: true,
value: '{WEB_APP_URL}/app/dropbox/connections/add',
placeholder: null,
description:
'When asked to input an OAuth callback or redirect URL in Dropbox OAuth, enter the URL above.',
clickToCopy: true,
},
{
key: 'clientId',
label: 'App Key',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: null,
clickToCopy: false,
},
{
key: 'clientSecret',
label: 'App Secret',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: null,
clickToCopy: false,
},
],
generateAuthUrl,
verifyCredentials,
isStillVerified,
refreshToken,
};

View File

@@ -0,0 +1,9 @@
import { IGlobalVariable } from '@automatisch/types';
import getCurrentAccount from '../common/get-current-account';
const isStillVerified = async ($: IGlobalVariable) => {
const account = await getCurrentAccount($);
return !!account;
};
export default isStillVerified;

View File

@@ -0,0 +1,41 @@
import { Buffer } from 'node:buffer';
import { IGlobalVariable } from '@automatisch/types';
const refreshToken = async ($: IGlobalVariable) => {
const params = {
grant_type: 'refresh_token',
refresh_token: $.auth.data.refreshToken as string,
};
const basicAuthToken = Buffer
.from(`${$.auth.data.clientId}:${$.auth.data.clientSecret}`)
.toString('base64');
const { data } = await $.http.post(
'oauth2/token',
null,
{
params,
headers: {
Authorization: `Basic ${basicAuthToken}`
},
additionalProperties: {
skipAddingAuthHeader: true
}
}
);
const {
access_token: accessToken,
expires_in: expiresIn,
token_type: tokenType,
} = data;
await $.auth.set({
accessToken,
expiresIn,
tokenType,
});
};
export default refreshToken;

View File

@@ -0,0 +1,102 @@
import { IGlobalVariable, IField } from '@automatisch/types';
import getCurrentAccount from '../common/get-current-account';
type TAccount = {
account_id: string,
name: {
given_name: string,
surname: string,
familiar_name: string,
display_name: string,
abbreviated_name: string,
},
email: string,
email_verified: boolean,
disabled: boolean,
country: string,
locale: string,
referral_link: string,
is_paired: boolean,
account_type: {
".tag": string,
},
root_info: {
".tag": string,
root_namespace_id: string,
home_namespace_id: string,
},
}
const verifyCredentials = async ($: IGlobalVariable) => {
const oauthRedirectUrlField = $.app.auth.fields.find(
(field: IField) => field.key == 'oAuthRedirectUrl'
);
const redirectUrl = oauthRedirectUrlField.value as string;
const params = {
client_id: $.auth.data.clientId as string,
redirect_uri: redirectUrl,
client_secret: $.auth.data.clientSecret as string,
code: $.auth.data.code as string,
grant_type: 'authorization_code',
}
const { data: verifiedCredentials } = await $.http.post(
'/oauth2/token',
null,
{ params }
);
const {
access_token: accessToken,
refresh_token: refreshToken,
expires_in: expiresIn,
scope: scope,
token_type: tokenType,
account_id: accountId,
team_id: teamId,
id_token: idToken,
uid,
} = verifiedCredentials;
await $.auth.set({
accessToken,
refreshToken,
expiresIn,
scope,
tokenType,
accountId,
teamId,
idToken,
uid
});
const account = await getCurrentAccount($) as TAccount;
await $.auth.set({
accountId: account.account_id,
name: {
givenName: account.name.given_name,
surname: account.name.surname,
familiarName: account.name.familiar_name,
displayName: account.name.display_name,
abbreviatedName: account.name.abbreviated_name,
},
email: account.email,
emailVerified: account.email_verified,
disabled: account.disabled,
country: account.country,
locale: account.locale,
referralLink: account.referral_link,
isPaired: account.is_paired,
accountType: {
".tag": account.account_type['.tag'],
},
rootInfo: {
".tag": account.root_info['.tag'],
rootNamespaceId: account.root_info.root_namespace_id,
homeNamespaceId: account.root_info.home_namespace_id,
},
screenName: `${account.name.display_name} - ${account.email}`,
});
};
export default verifyCredentials;

View File

@@ -0,0 +1,13 @@
import { TBeforeRequest } from '@automatisch/types';
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
requestConfig.headers['Content-Type'] = 'application/json';
if (!requestConfig.additionalProperties?.skipAddingAuthHeader && $.auth.data?.accessToken) {
requestConfig.headers.Authorization = `Bearer ${$.auth.data.accessToken}`;
}
return requestConfig;
};
export default addAuthHeader;

View File

@@ -0,0 +1,8 @@
import { IGlobalVariable, IJSONObject } from '@automatisch/types';
const getCurrentAccount = async ($: IGlobalVariable): Promise<IJSONObject> => {
const response = await $.http.post('/2/users/get_current_account', null);
return response.data;
};
export default getCurrentAccount;

View File

@@ -0,0 +1,8 @@
const scopes = [
'account_info.read',
'files.metadata.read',
'files.content.write',
'files.content.read',
];
export default scopes;

View File

View File

@@ -0,0 +1,18 @@
import defineApp from '../../helpers/define-app';
import addAuthHeader from './common/add-auth-header';
import auth from './auth';
import actions from './actions';
export default defineApp({
name: 'Dropbox',
key: 'dropbox',
iconUrl: '{BASE_URL}/apps/dropbox/assets/favicon.svg',
authDocUrl: 'https://automatisch.io/docs/apps/dropbox/connection',
supportsConnections: true,
baseUrl: 'https://dropbox.com',
apiBaseUrl: 'https://api.dropboxapi.com',
primaryColor: '0061ff',
beforeRequest: [addAuthHeader],
auth,
actions,
});

View File

@@ -0,0 +1,109 @@
import defineAction from '../../../../helpers/define-action';
type TGroupItem = {
key: string;
operator: keyof TOperators;
value: string;
id: string;
}
type TGroup = Record<'and', TGroupItem[]>;
const isEqual = (a: string, b: string) => a === b;
const isNotEqual = (a: string, b: string) => !isEqual(a, b);
const isGreaterThan = (a: string, b: string) => Number(a) > Number(b);
const isLessThan = (a: string, b: string) => Number(a) < Number(b);
const isGreaterThanOrEqual = (a: string, b: string) => Number(a) >= Number(b);
const isLessThanOrEqual = (a: string, b: string) => Number(a) <= Number(b);
const contains = (a: string, b: string) => a.includes(b);
const doesNotContain = (a: string, b: string) => !contains(a, b);
const shouldContinue = (orGroups: TGroup[]) => {
let atLeastOneGroupMatches = false;
for (const group of orGroups) {
let groupMatches = true;
for (const condition of group.and) {
const conditionMatches = operate(
condition.operator,
condition.key,
condition.value
);
if (!conditionMatches) {
groupMatches = false;
break;
}
}
if (groupMatches) {
atLeastOneGroupMatches = true;
break;
}
}
return atLeastOneGroupMatches;
}
type TOperatorFunc = (a: string, b: string) => boolean;
type TOperators = {
equal: TOperatorFunc;
not_equal: TOperatorFunc;
greater_than: TOperatorFunc;
less_than: TOperatorFunc;
greater_than_or_equal: TOperatorFunc;
less_than_or_equal: TOperatorFunc;
contains: TOperatorFunc;
not_contains: TOperatorFunc;
};
const operators: TOperators = {
'equal': isEqual,
'not_equal': isNotEqual,
'greater_than': isGreaterThan,
'less_than': isLessThan,
'greater_than_or_equal': isGreaterThanOrEqual,
'less_than_or_equal': isLessThanOrEqual,
'contains': contains,
'not_contains': doesNotContain,
};
const operate = (operation: keyof TOperators, a: string, b: string) => {
return operators[operation](a, b);
};
export default defineAction({
name: 'Continue if conditions match',
key: 'continueIfMatches',
description: 'Let the execution continue if the conditions match',
arguments: [],
async run($) {
const orGroups = $.step.parameters.or as TGroup[];
const matchingGroups = orGroups.reduce((groups, group) => {
const matchingConditions = group.and
.filter((condition) => operate(condition.operator, condition.key, condition.value));
if (matchingConditions.length) {
return groups.concat([{ and: matchingConditions }]);
}
return groups;
}, []);
if (!shouldContinue(orGroups)) {
$.execution.exit();
}
$.setActionItem({
raw: {
or: matchingGroups,
}
});
},
});

View File

@@ -0,0 +1,3 @@
import continueIfMatches from './continue';
export default [continueIfMatches];

View File

@@ -0,0 +1,8 @@
<svg width="800px" height="800px" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Shape" fill="#000000" transform="translate(42.666667, 85.333333)">
<path d="M3.55271368e-14,1.42108547e-14 L191.565013,234.666667 L192,234.666667 L192,384 L234.666667,384 L234.666667,234.666667 L426.666667,1.42108547e-14 L3.55271368e-14,1.42108547e-14 Z M214.448,192 L211.81248,192 L89.9076267,42.6666667 L336.630187,42.6666667 L214.448,192 Z">
</path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 628 B

View File

View File

@@ -0,0 +1,14 @@
import defineApp from '../../helpers/define-app';
import actions from './actions';
export default defineApp({
name: 'Filter',
key: 'filter',
iconUrl: '{BASE_URL}/apps/filter/assets/favicon.svg',
authDocUrl: 'https://automatisch.io/docs/apps/filter/connection',
supportsConnections: false,
baseUrl: '',
apiBaseUrl: '',
primaryColor: '001F52',
actions,
});

View File

@@ -1,35 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="256px" height="351px" viewBox="0 0 256 351" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
<defs>
<path d="M1.25273437,280.731641 L2.85834533,277.600858 L102.211177,89.0833546 L58.0613266,5.6082033 C54.3920011,-1.28304578 45.0741245,0.473674398 43.8699203,8.18789086 L1.25273437,280.731641 Z" id="path-1"></path>
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-2">
<feGaussianBlur stdDeviation="17.5" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
</filter>
<path d="M134.417103,148.974235 L166.455722,116.161738 L134.417104,55.1546874 C131.374828,49.3635911 123.983911,48.7568362 120.973828,54.5646483 L103.26875,88.6738296 L102.739423,90.4175473 L134.417103,148.974235 Z" id="path-3"></path>
<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-4">
<feGaussianBlur stdDeviation="3.5" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
<feOffset dx="1" dy="-9" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
</filter>
</defs>
<g>
<path d="M0,282.99762 L2.12250746,280.0256 L102.527363,89.5119284 L102.739423,87.4951323 L58.478806,4.35817711 C54.7706269,-2.60604179 44.3313035,-0.845245771 43.1143483,6.95065473 L0,282.99762 Z" fill="#FFC24A"></path>
<g>
<use fill="#FFA712" fill-rule="evenodd" xlink:href="#path-1"></use>
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
</g>
<path d="M135.004975,150.380704 L167.960199,116.629461 L134.995423,53.6993114 C131.866109,47.7425353 123.128817,47.7253411 120.032618,53.6993112 L102.421015,87.2880848 L102.421015,90.1487443 L135.004975,150.380704 Z" fill="#F4BD62"></path>
<g>
<use fill="#FFA50E" fill-rule="evenodd" xlink:href="#path-3"></use>
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
</g>
<polygon fill="#F6820C" points="0 282.99762 0.962097168 282.030396 4.45771144 280.60956 132.935323 152.60956 134.563025 148.178595 102.513123 87.1048584"></polygon>
<path d="M139.120971,347.551268 L255.395916,282.703666 L222.191698,78.2093373 C221.153051,71.8112478 213.303658,69.2818149 208.724314,73.8694368 L0.000254726368,282.997875 L115.608454,347.545536 C122.914643,351.624979 131.812872,351.62689 139.120971,347.551268" fill="#FDE068"></path>
<path d="M254.354084,282.159837 L221.401937,79.2179369 C220.371175,72.8684188 213.843792,70.2409553 209.299213,74.79375 L1.28945312,282.600785 L115.627825,346.509458 C122.878548,350.557931 131.709226,350.559827 138.961846,346.515146 L254.354084,282.159837 Z" fill="#FCCA3F"></path>
<path d="M139.120907,345.64082 C131.812808,349.716442 122.914579,349.714531 115.60839,345.635089 L0.93134768,282.014551 L0.000191044776,282.997875 L115.60839,347.545536 C122.914579,351.624979 131.812808,351.62689 139.120907,347.551268 L255.395853,282.703666 L255.111196,280.951785 L139.120907,345.64082 Z" fill="#EEAB37"></path>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -1,89 +0,0 @@
import type {
IAuthentication,
IApp,
IField,
IJSONObject,
} from '@automatisch/types';
import { google as GoogleApi } from 'googleapis';
import { OAuth2Client } from 'google-auth-library';
export default class Authentication implements IAuthentication {
appData: IApp;
connectionData: IJSONObject;
client: OAuth2Client;
scopes: string[] = [
'https://www.googleapis.com/auth/datastore',
'https://www.googleapis.com/auth/firebase',
'https://www.googleapis.com/auth/user.emails.read',
'profile',
];
constructor(appData: IApp, connectionData: IJSONObject) {
this.appData = appData;
this.connectionData = connectionData;
this.client = new GoogleApi.auth.OAuth2(
connectionData.consumerKey as string,
connectionData.consumerSecret as string,
this.oauthRedirectUrl
);
GoogleApi.options({ auth: this.client });
}
get oauthRedirectUrl() {
return this.appData.fields.find(
(field: IField) => field.key == 'oAuthRedirectUrl'
).value;
}
async createAuthData() {
const url = this.client.generateAuthUrl({
access_type: 'offline',
scope: this.scopes,
});
return { url };
}
async verifyCredentials() {
const { tokens } = await this.client.getToken(
this.connectionData.oauthVerifier as string
);
this.client.setCredentials(tokens);
const people = GoogleApi.people('v1');
const { data } = await people.people.get({
resourceName: 'people/me',
personFields: 'emailAddresses',
});
const { emailAddresses, resourceName: userId } = data;
const primaryEmailAddress = emailAddresses.find(
(emailAddress) => emailAddress.metadata.primary
);
return {
consumerKey: this.connectionData.consumerKey,
consumerSecret: this.connectionData.consumerSecret,
accessToken: tokens.access_token,
refreshToken: tokens.refresh_token,
tokenType: tokens.token_type,
expiryDate: tokens.expiry_date,
scope: tokens.scope,
screenName: primaryEmailAddress.value,
userId,
};
}
async isStillVerified() {
try {
await this.client.getTokenInfo(this.connectionData.accessToken as string);
return true;
} catch {
return false;
}
}
}

View File

@@ -1,15 +0,0 @@
import Authentication from './authentication';
import {
IService,
IAuthentication,
IApp,
IJSONObject,
} from '@automatisch/types';
export default class Firebase implements IService {
authenticationClient: IAuthentication;
constructor(appData: IApp, connectionData: IJSONObject) {
this.authenticationClient = new Authentication(appData, connectionData);
}
}

View File

@@ -1,219 +0,0 @@
{
"name": "Firebase",
"key": "firebase",
"iconUrl": "{BASE_URL}/apps/firebase/assets/favicon.svg",
"docUrl": "https://automatisch.io/docs/firebase",
"primaryColor": "ffca28",
"supportsConnections": true,
"fields": [
{
"key": "oAuthRedirectUrl",
"label": "OAuth Redirect URL",
"type": "string",
"required": true,
"readOnly": true,
"value": "{WEB_APP_URL}/app/firebase/connections/add",
"placeholder": null,
"description": "When asked to input an OAuth callback or redirect URL in Firebase OAuth, enter the URL above.",
"docUrl": "https://automatisch.io/docs/firebase#oauth-redirect-url",
"clickToCopy": true
},
{
"key": "consumerKey",
"label": "Consumer Key",
"type": "string",
"required": true,
"readOnly": false,
"value": null,
"placeholder": null,
"description": null,
"docUrl": "https://automatisch.io/docs/firebase#consumer-key",
"clickToCopy": false
},
{
"key": "consumerSecret",
"label": "Consumer Secret",
"type": "string",
"required": true,
"readOnly": false,
"value": null,
"placeholder": null,
"description": null,
"docUrl": "https://automatisch.io/docs/firebase#consumer-secret",
"clickToCopy": false
}
],
"authenticationSteps": [
{
"step": 1,
"type": "mutation",
"name": "createConnection",
"arguments": [
{
"name": "key",
"value": "{key}"
},
{
"name": "formattedData",
"value": null,
"properties": [
{
"name": "consumerKey",
"value": "{fields.consumerKey}"
},
{
"name": "consumerSecret",
"value": "{fields.consumerSecret}"
}
]
}
]
},
{
"step": 2,
"type": "mutation",
"name": "createAuthData",
"arguments": [
{
"name": "id",
"value": "{createConnection.id}"
}
]
},
{
"step": 3,
"type": "openWithPopup",
"name": "openAuthPopup",
"arguments": [
{
"name": "url",
"value": "{createAuthData.url}"
}
]
},
{
"step": 4,
"type": "mutation",
"name": "updateConnection",
"arguments": [
{
"name": "id",
"value": "{createConnection.id}"
},
{
"name": "formattedData",
"value": null,
"properties": [
{
"name": "oauthVerifier",
"value": "{openAuthPopup.code}"
}
]
}
]
},
{
"step": 5,
"type": "mutation",
"name": "verifyConnection",
"arguments": [
{
"name": "id",
"value": "{createConnection.id}"
}
]
}
],
"reconnectionSteps": [
{
"step": 1,
"type": "mutation",
"name": "resetConnection",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
}
]
},
{
"step": 2,
"type": "mutation",
"name": "updateConnection",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
},
{
"name": "formattedData",
"value": null,
"properties": [
{
"name": "consumerKey",
"value": "{fields.consumerKey}"
},
{
"name": "consumerSecret",
"value": "{fields.consumerSecret}"
}
]
}
]
},
{
"step": 3,
"type": "mutation",
"name": "createAuthData",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
}
]
},
{
"step": 4,
"type": "openWithPopup",
"name": "openAuthPopup",
"arguments": [
{
"name": "url",
"value": "{createAuthData.url}"
}
]
},
{
"step": 5,
"type": "mutation",
"name": "updateConnection",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
},
{
"name": "formattedData",
"value": null,
"properties": [
{
"name": "oauthVerifier",
"value": "{openAuthPopup.code}"
}
]
}
]
},
{
"step": 6,
"type": "mutation",
"name": "verifyConnection",
"arguments": [
{
"name": "id",
"value": "{connection.id}"
}
]
}
]
}

View File

@@ -0,0 +1,21 @@
import { IField, IGlobalVariable } from '@automatisch/types';
import { URLSearchParams } from 'url';
export default async function generateAuthUrl($: IGlobalVariable) {
const oauthRedirectUrlField = $.app.auth.fields.find(
(field: IField) => field.key == 'oAuthRedirectUrl'
);
const callbackUrl = oauthRedirectUrlField.value;
const requestPath = '/oauth/request_token';
const data = { oauth_callback: callbackUrl };
const response = await $.http.post(requestPath, data);
const responseData = Object.fromEntries(new URLSearchParams(response.data));
await $.auth.set({
url: `${$.app.apiBaseUrl}/oauth/authorize?oauth_token=${responseData.oauth_token}&perms=delete`,
accessToken: responseData.oauth_token,
accessSecret: responseData.oauth_token_secret,
});
}

View File

@@ -0,0 +1,48 @@
import generateAuthUrl from './generate-auth-url';
import verifyCredentials from './verify-credentials';
import isStillVerified from './is-still-verified';
export default {
fields: [
{
key: 'oAuthRedirectUrl',
label: 'OAuth Redirect URL',
type: 'string' as const,
required: true,
readOnly: true,
value: '{WEB_APP_URL}/app/flickr/connections/add',
placeholder: null,
description:
'When asked to input an OAuth callback or redirect URL in Flickr OAuth, enter the URL above.',
docUrl: 'https://automatisch.io/docs/flickr#oauth-redirect-url',
clickToCopy: true,
},
{
key: 'consumerKey',
label: 'Consumer Key',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: null,
docUrl: 'https://automatisch.io/docs/flickr#consumer-key',
clickToCopy: false,
},
{
key: 'consumerSecret',
label: 'Consumer Secret',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: null,
docUrl: 'https://automatisch.io/docs/flickr#consumer-secret',
clickToCopy: false,
},
],
generateAuthUrl,
verifyCredentials,
isStillVerified,
};

View File

@@ -0,0 +1,13 @@
import { IGlobalVariable } from '@automatisch/types';
const isStillVerified = async ($: IGlobalVariable) => {
const params = {
method: 'flickr.test.login',
format: 'json',
nojsoncallback: 1,
};
const response = await $.http.get('/rest', { params });
return !!response.data.user.id;
};
export default isStillVerified;

View File

@@ -0,0 +1,22 @@
import { IGlobalVariable } from '@automatisch/types';
import { URLSearchParams } from 'url';
const verifyCredentials = async ($: IGlobalVariable) => {
const response = await $.http.post(
`/oauth/access_token?oauth_verifier=${$.auth.data.oauth_verifier}&oauth_token=${$.auth.data.accessToken}`,
null
);
const responseData = Object.fromEntries(new URLSearchParams(response.data));
await $.auth.set({
consumerKey: $.auth.data.consumerKey,
consumerSecret: $.auth.data.consumerSecret,
accessToken: responseData.oauth_token,
accessSecret: responseData.oauth_token_secret,
userId: responseData.user_nsid,
screenName: responseData.fullname,
});
};
export default verifyCredentials;

View File

@@ -1,82 +0,0 @@
import type {
IAuthentication,
IApp,
IField,
IJSONObject,
} from '@automatisch/types';
import FlickrApi from 'flickr-sdk';
export default class Authentication implements IAuthentication {
appData: IApp;
connectionData: IJSONObject;
client: typeof FlickrApi;
oauthClient: typeof FlickrApi;
constructor(appData: IApp, connectionData: IJSONObject) {
this.oauthClient = new FlickrApi.OAuth(
connectionData.consumerKey,
connectionData.consumerSecret
);
if (connectionData.accessToken && connectionData.accessSecret) {
this.client = new FlickrApi(
FlickrApi.OAuth.createPlugin(
connectionData.consumerKey,
connectionData.consumerSecret,
connectionData.accessToken,
connectionData.accessSecret
)
);
}
this.connectionData = connectionData;
this.appData = appData;
}
async createAuthData() {
const appFields = this.appData.fields.find(
(field: IField) => field.key == 'oAuthRedirectUrl'
);
const callbackUrl = appFields.value;
const oauthData = (await this.oauthClient.request(callbackUrl)).body;
const url = await this.oauthClient.authorizeUrl(
oauthData.oauth_token,
'delete'
);
return {
accessToken: oauthData.oauth_token,
accessSecret: oauthData.oauth_token_secret,
url: url,
};
}
async verifyCredentials() {
const verifiedCredentials = (
await this.oauthClient.verify(
this.connectionData.accessToken,
this.connectionData.oauthVerifier,
this.connectionData.accessSecret
)
).body;
return {
consumerKey: this.connectionData.consumerKey,
consumerSecret: this.connectionData.consumerSecret,
accessToken: verifiedCredentials.oauth_token,
accessSecret: verifiedCredentials.oauth_token_secret,
userId: verifiedCredentials.user_nsid,
screenName: verifiedCredentials.fullname,
};
}
async isStillVerified() {
try {
await this.client.test.login();
return true;
} catch {
return false;
}
}
}

View File

@@ -0,0 +1,41 @@
import { Token } from 'oauth-1.0a';
import { IJSONObject, TBeforeRequest } from '@automatisch/types';
import oauthClient from './oauth-client';
type RequestDataType = {
url: string;
method: string;
data?: IJSONObject;
};
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
const { url, method, data, params } = requestConfig;
const token: Token = {
key: $.auth.data?.accessToken as string,
secret: $.auth.data?.accessSecret as string,
};
const requestData: RequestDataType = {
url: `${requestConfig.baseURL}${url}`,
method,
};
if (url === '/oauth/request_token') {
requestData.data = data;
}
if (method === 'get') {
requestData.data = params;
}
const authHeader = oauthClient($).toHeader(
oauthClient($).authorize(requestData, token)
);
requestConfig.headers.Authorization = authHeader.Authorization;
return requestConfig;
};
export default addAuthHeader;

View File

@@ -0,0 +1,23 @@
import { IGlobalVariable } from '@automatisch/types';
import crypto from 'crypto';
import OAuth from 'oauth-1.0a';
const oauthClient = ($: IGlobalVariable) => {
const consumerData = {
key: $.auth.data.consumerKey as string,
secret: $.auth.data.consumerSecret as string,
};
return new OAuth({
consumer: consumerData,
signature_method: 'HMAC-SHA1',
hash_function(base_string, key) {
return crypto
.createHmac('sha1', key)
.update(base_string)
.digest('base64');
},
});
};
export default oauthClient;

View File

@@ -1,10 +0,0 @@
import { IJSONObject } from '@automatisch/types';
import ListAlbums from './data/list-albums';
export default class Data {
listAlbums: ListAlbums;
constructor(connectionData: IJSONObject) {
this.listAlbums = new ListAlbums(connectionData);
}
}

View File

@@ -1,39 +0,0 @@
import FlickrApi from 'flickr-sdk';
import type { IJSONObject } from '@automatisch/types';
export default class ListAlbums {
client?: typeof FlickrApi;
constructor(connectionData: IJSONObject) {
if (
connectionData.consumerKey &&
connectionData.consumerSecret &&
connectionData.accessToken &&
connectionData.accessSecret
) {
this.client = new FlickrApi(
FlickrApi.OAuth.createPlugin(
connectionData.consumerKey,
connectionData.consumerSecret,
connectionData.accessToken,
connectionData.accessSecret
)
);
}
}
async run() {
const { photosets } = (await this.client.photosets.getList()).body;
const allPhotosets = [...photosets.photoset];
for (let page = photosets.page + 1; page <= photosets.pages; page++) {
const { photosets } = (await this.client.photosets.getList({ page, })).body;
allPhotosets.push(...photosets.photoset);
}
return allPhotosets.map((photoset) => ({
value: photoset.id,
name: photoset.title._content,
}));
}
}

View File

@@ -0,0 +1,3 @@
import listAlbums from './list-albums';
export default [listAlbums];

View File

@@ -0,0 +1,56 @@
import { IGlobalVariable, IJSONObject } from '@automatisch/types';
type TResponse = {
data: IJSONObject[];
error?: IJSONObject;
};
type TPhotoset = {
id: string;
title: {
_content: string;
};
};
export default {
name: 'List albums',
key: 'listAlbums',
async run($: IGlobalVariable) {
const params = {
page: 1,
per_page: 500,
user_id: $.auth.data.userId,
method: 'flickr.photosets.getList',
format: 'json',
nojsoncallback: 1,
};
let response = await $.http.get('/rest', { params });
const aggregatedResponse: TResponse = {
data: [...response.data.photosets.photoset],
};
while (response.data.photosets.page < response.data.photosets.pages) {
response = await $.http.get('/rest', {
params: {
...params,
page: response.data.photosets.page,
},
});
aggregatedResponse.data.push(...response.data.photosets.photoset);
}
aggregatedResponse.data = aggregatedResponse.data.map(
(photoset: TPhotoset) => {
return {
value: photoset.id,
name: photoset.title._content,
} as IJSONObject;
}
);
return aggregatedResponse;
},
};

Some files were not shown because too many files have changed in this diff Show More