@etohq/core-flows 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-key/steps/create-api-keys.d.ts +17 -0
- package/dist/api-key/steps/create-api-keys.d.ts.map +1 -1
- package/dist/api-key/steps/create-api-keys.js +11 -0
- package/dist/api-key/steps/create-api-keys.js.map +1 -1
- package/dist/api-key/steps/delete-api-keys.d.ts +5 -1
- package/dist/api-key/steps/delete-api-keys.d.ts.map +1 -1
- package/dist/api-key/steps/delete-api-keys.js.map +1 -1
- package/dist/api-key/steps/revoke-api-keys.d.ts +19 -0
- package/dist/api-key/steps/revoke-api-keys.d.ts.map +1 -1
- package/dist/api-key/steps/revoke-api-keys.js +10 -0
- package/dist/api-key/steps/revoke-api-keys.js.map +1 -1
- package/dist/api-key/steps/update-api-keys.d.ts +19 -0
- package/dist/api-key/steps/update-api-keys.d.ts.map +1 -1
- package/dist/api-key/steps/update-api-keys.js +10 -0
- package/dist/api-key/steps/update-api-keys.js.map +1 -1
- package/dist/api-key/workflows/create-api-keys.d.ts +41 -2
- package/dist/api-key/workflows/create-api-keys.d.ts.map +1 -1
- package/dist/api-key/workflows/create-api-keys.js +30 -2
- package/dist/api-key/workflows/create-api-keys.js.map +1 -1
- package/dist/api-key/workflows/delete-api-keys.d.ts +23 -1
- package/dist/api-key/workflows/delete-api-keys.d.ts.map +1 -1
- package/dist/api-key/workflows/delete-api-keys.js +17 -1
- package/dist/api-key/workflows/delete-api-keys.js.map +1 -1
- package/dist/api-key/workflows/link-sales-channels-to-publishable-key.d.ts +32 -0
- package/dist/api-key/workflows/link-sales-channels-to-publishable-key.d.ts.map +1 -0
- package/dist/api-key/workflows/link-sales-channels-to-publishable-key.js +33 -0
- package/dist/api-key/workflows/link-sales-channels-to-publishable-key.js.map +1 -0
- package/dist/api-key/workflows/revoke-api-keys.d.ts +38 -2
- package/dist/api-key/workflows/revoke-api-keys.d.ts.map +1 -1
- package/dist/api-key/workflows/revoke-api-keys.js +24 -1
- package/dist/api-key/workflows/revoke-api-keys.js.map +1 -1
- package/dist/api-key/workflows/update-api-keys.d.ts +36 -2
- package/dist/api-key/workflows/update-api-keys.d.ts.map +1 -1
- package/dist/api-key/workflows/update-api-keys.js +22 -1
- package/dist/api-key/workflows/update-api-keys.js.map +1 -1
- package/dist/auth/steps/set-auth-app-metadata.d.ts +30 -1
- package/dist/auth/steps/set-auth-app-metadata.d.ts.map +1 -1
- package/dist/auth/steps/set-auth-app-metadata.js +30 -1
- package/dist/auth/steps/set-auth-app-metadata.js.map +1 -1
- package/dist/auth/workflows/generate-reset-password-token.d.ts +32 -1
- package/dist/auth/workflows/generate-reset-password-token.d.ts.map +1 -1
- package/dist/auth/workflows/generate-reset-password-token.js +30 -5
- package/dist/auth/workflows/generate-reset-password-token.js.map +1 -1
- package/dist/common/index.d.ts +1 -2
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -2
- package/dist/common/index.js.map +1 -1
- package/dist/common/steps/create-entities.d.ts +33 -1
- package/dist/common/steps/create-entities.d.ts.map +1 -1
- package/dist/common/steps/create-entities.js +17 -1
- package/dist/common/steps/create-entities.js.map +1 -1
- package/dist/common/steps/create-remote-links.d.ts +8 -23
- package/dist/common/steps/create-remote-links.d.ts.map +1 -1
- package/dist/common/steps/create-remote-links.js +8 -23
- package/dist/common/steps/create-remote-links.js.map +1 -1
- package/dist/common/steps/delete-entities.d.ts +26 -1
- package/dist/common/steps/delete-entities.d.ts.map +1 -1
- package/dist/common/steps/delete-entities.js +9 -1
- package/dist/common/steps/delete-entities.js.map +1 -1
- package/dist/common/steps/dismiss-remote-links.d.ts +8 -23
- package/dist/common/steps/dismiss-remote-links.d.ts.map +1 -1
- package/dist/common/steps/dismiss-remote-links.js +8 -23
- package/dist/common/steps/dismiss-remote-links.js.map +1 -1
- package/dist/common/steps/emit-event.d.ts +5 -17
- package/dist/common/steps/emit-event.d.ts.map +1 -1
- package/dist/common/steps/emit-event.js +5 -17
- package/dist/common/steps/emit-event.js.map +1 -1
- package/dist/common/steps/remove-remote-links.d.ts +5 -20
- package/dist/common/steps/remove-remote-links.d.ts.map +1 -1
- package/dist/common/steps/remove-remote-links.js +5 -20
- package/dist/common/steps/remove-remote-links.js.map +1 -1
- package/dist/common/steps/update-remote-links.d.ts +22 -0
- package/dist/common/steps/update-remote-links.d.ts.map +1 -1
- package/dist/common/steps/update-remote-links.js +22 -0
- package/dist/common/steps/update-remote-links.js.map +1 -1
- package/dist/common/steps/use-query-graph.d.ts +8 -20
- package/dist/common/steps/use-query-graph.d.ts.map +1 -1
- package/dist/common/steps/use-query-graph.js +7 -19
- package/dist/common/steps/use-query-graph.js.map +1 -1
- package/dist/common/steps/use-remote-query.d.ts +34 -70
- package/dist/common/steps/use-remote-query.d.ts.map +1 -1
- package/dist/common/steps/use-remote-query.js +34 -70
- package/dist/common/steps/use-remote-query.js.map +1 -1
- package/dist/common/workflows/batch-links.d.ts +51 -0
- package/dist/common/workflows/batch-links.d.ts.map +1 -1
- package/dist/common/workflows/batch-links.js +51 -0
- package/dist/common/workflows/batch-links.js.map +1 -1
- package/dist/common/workflows/create-links.d.ts +25 -0
- package/dist/common/workflows/create-links.d.ts.map +1 -1
- package/dist/common/workflows/create-links.js +25 -0
- package/dist/common/workflows/create-links.js.map +1 -1
- package/dist/common/workflows/dismiss-links.d.ts +25 -0
- package/dist/common/workflows/dismiss-links.d.ts.map +1 -1
- package/dist/common/workflows/dismiss-links.js +25 -0
- package/dist/common/workflows/dismiss-links.js.map +1 -1
- package/dist/common/workflows/update-links.d.ts +30 -0
- package/dist/common/workflows/update-links.d.ts.map +1 -1
- package/dist/common/workflows/update-links.js +30 -0
- package/dist/common/workflows/update-links.js.map +1 -1
- package/dist/file/steps/delete-files.d.ts +13 -2
- package/dist/file/steps/delete-files.d.ts.map +1 -1
- package/dist/file/steps/delete-files.js +8 -1
- package/dist/file/steps/delete-files.js.map +1 -1
- package/dist/file/steps/upload-files.d.ts +40 -1
- package/dist/file/steps/upload-files.d.ts.map +1 -1
- package/dist/file/steps/upload-files.js +14 -1
- package/dist/file/steps/upload-files.js.map +1 -1
- package/dist/file/workflows/delete-files.d.ts +20 -1
- package/dist/file/workflows/delete-files.d.ts.map +1 -1
- package/dist/file/workflows/delete-files.js +20 -1
- package/dist/file/workflows/delete-files.js.map +1 -1
- package/dist/file/workflows/upload-files.d.ts +51 -1
- package/dist/file/workflows/upload-files.d.ts.map +1 -1
- package/dist/file/workflows/upload-files.js +25 -1
- package/dist/file/workflows/upload-files.js.map +1 -1
- package/dist/invite/index.d.ts +3 -0
- package/dist/invite/index.d.ts.map +1 -0
- package/dist/invite/index.js +19 -0
- package/dist/invite/index.js.map +1 -0
- package/dist/invite/steps/create-invites.d.ts +14 -0
- package/dist/invite/steps/create-invites.d.ts.map +1 -0
- package/dist/invite/steps/create-invites.js +28 -0
- package/dist/invite/steps/create-invites.js.map +1 -0
- package/dist/invite/steps/delete-invites.d.ts +10 -0
- package/dist/invite/steps/delete-invites.d.ts.map +1 -0
- package/dist/invite/steps/delete-invites.js +21 -0
- package/dist/invite/steps/delete-invites.js.map +1 -0
- package/dist/invite/steps/index.d.ts +5 -0
- package/dist/invite/steps/index.d.ts.map +1 -0
- package/dist/invite/steps/index.js +21 -0
- package/dist/invite/steps/index.js.map +1 -0
- package/dist/invite/steps/refresh-invite-tokens.d.ts +10 -0
- package/dist/invite/steps/refresh-invite-tokens.d.ts.map +1 -0
- package/dist/invite/steps/refresh-invite-tokens.js +15 -0
- package/dist/invite/steps/refresh-invite-tokens.js.map +1 -0
- package/dist/invite/steps/validate-token.d.ts +11 -0
- package/dist/invite/steps/validate-token.d.ts.map +1 -0
- package/dist/invite/steps/validate-token.js +16 -0
- package/dist/invite/steps/validate-token.js.map +1 -0
- package/dist/invite/workflows/accept-invite.d.ts +33 -0
- package/dist/invite/workflows/accept-invite.d.ts.map +1 -0
- package/dist/invite/workflows/accept-invite.js +70 -0
- package/dist/invite/workflows/accept-invite.js.map +1 -0
- package/dist/invite/workflows/create-invites.d.ts +27 -0
- package/dist/invite/workflows/create-invites.d.ts.map +1 -0
- package/dist/invite/workflows/create-invites.js +45 -0
- package/dist/invite/workflows/create-invites.js.map +1 -0
- package/dist/invite/workflows/delete-invites.d.ts +23 -0
- package/dist/invite/workflows/delete-invites.d.ts.map +1 -0
- package/dist/invite/workflows/delete-invites.js +40 -0
- package/dist/invite/workflows/delete-invites.js.map +1 -0
- package/dist/invite/workflows/index.d.ts +5 -0
- package/dist/invite/workflows/index.d.ts.map +1 -0
- package/dist/invite/workflows/index.js +21 -0
- package/dist/invite/workflows/index.js.map +1 -0
- package/dist/invite/workflows/refresh-invite-tokens.d.ts +27 -0
- package/dist/invite/workflows/refresh-invite-tokens.d.ts.map +1 -0
- package/dist/invite/workflows/refresh-invite-tokens.js +45 -0
- package/dist/invite/workflows/refresh-invite-tokens.js.map +1 -0
- package/dist/locking/acquire-lock.d.ts +23 -0
- package/dist/locking/acquire-lock.d.ts.map +1 -0
- package/dist/locking/acquire-lock.js +61 -0
- package/dist/locking/acquire-lock.js.map +1 -0
- package/dist/locking/index.d.ts +3 -0
- package/dist/locking/index.d.ts.map +1 -0
- package/dist/locking/index.js +19 -0
- package/dist/locking/index.js.map +1 -0
- package/dist/locking/release-lock.d.ts +19 -0
- package/dist/locking/release-lock.d.ts.map +1 -0
- package/dist/locking/release-lock.js +31 -0
- package/dist/locking/release-lock.js.map +1 -0
- package/dist/notification/steps/notify-on-failure.d.ts +52 -2
- package/dist/notification/steps/notify-on-failure.d.ts.map +1 -1
- package/dist/notification/steps/notify-on-failure.js +12 -2
- package/dist/notification/steps/notify-on-failure.js.map +1 -1
- package/dist/notification/steps/send-notifications.d.ts +38 -0
- package/dist/notification/steps/send-notifications.d.ts.map +1 -1
- package/dist/notification/steps/send-notifications.js.map +1 -1
- package/dist/payment/steps/authorize-payment-session.d.ts +19 -3
- package/dist/payment/steps/authorize-payment-session.d.ts.map +1 -1
- package/dist/payment/steps/authorize-payment-session.js +10 -1
- package/dist/payment/steps/authorize-payment-session.js.map +1 -1
- package/dist/payment/steps/cancel-payment.d.ts +6 -0
- package/dist/payment/steps/cancel-payment.d.ts.map +1 -1
- package/dist/payment/steps/cancel-payment.js.map +1 -1
- package/dist/payment/steps/capture-payment.d.ts +14 -2
- package/dist/payment/steps/capture-payment.d.ts.map +1 -1
- package/dist/payment/steps/capture-payment.js +4 -1
- package/dist/payment/steps/capture-payment.js.map +1 -1
- package/dist/payment/steps/complete-cart-after-payment.d.ts +15 -0
- package/dist/payment/steps/complete-cart-after-payment.d.ts.map +1 -0
- package/dist/payment/steps/complete-cart-after-payment.js +20 -0
- package/dist/payment/steps/complete-cart-after-payment.js.map +1 -0
- package/dist/payment/steps/refund-payment.d.ts +14 -2
- package/dist/payment/steps/refund-payment.d.ts.map +1 -1
- package/dist/payment/steps/refund-payment.js +4 -1
- package/dist/payment/steps/refund-payment.js.map +1 -1
- package/dist/payment/steps/refund-payments.d.ts +22 -5
- package/dist/payment/steps/refund-payments.d.ts.map +1 -1
- package/dist/payment/steps/refund-payments.js.map +1 -1
- package/dist/payment-collection/steps/cancel-payment.d.ts +15 -0
- package/dist/payment-collection/steps/cancel-payment.d.ts.map +1 -0
- package/dist/payment-collection/steps/cancel-payment.js +33 -0
- package/dist/payment-collection/steps/cancel-payment.js.map +1 -0
- package/dist/payment-collection/steps/create-payment-account-holder.d.ts +18 -0
- package/dist/payment-collection/steps/create-payment-account-holder.d.ts.map +1 -0
- package/dist/payment-collection/steps/create-payment-account-holder.js +37 -0
- package/dist/payment-collection/steps/create-payment-account-holder.js.map +1 -0
- package/dist/payment-collection/steps/create-payment-session.d.ts +31 -2
- package/dist/payment-collection/steps/create-payment-session.d.ts.map +1 -1
- package/dist/payment-collection/steps/create-payment-session.js +1 -0
- package/dist/payment-collection/steps/create-payment-session.js.map +1 -1
- package/dist/payment-collection/steps/create-refund-reasons.d.ts +6 -2
- package/dist/payment-collection/steps/create-refund-reasons.d.ts.map +1 -1
- package/dist/payment-collection/steps/create-refund-reasons.js.map +1 -1
- package/dist/payment-collection/steps/delete-payment-sessions.d.ts +7 -1
- package/dist/payment-collection/steps/delete-payment-sessions.d.ts.map +1 -1
- package/dist/payment-collection/steps/delete-payment-sessions.js +1 -1
- package/dist/payment-collection/steps/delete-payment-sessions.js.map +1 -1
- package/dist/payment-collection/steps/delete-refund-reasons.d.ts +5 -1
- package/dist/payment-collection/steps/delete-refund-reasons.d.ts.map +1 -1
- package/dist/payment-collection/steps/delete-refund-reasons.js.map +1 -1
- package/dist/payment-collection/steps/index.d.ts +1 -0
- package/dist/payment-collection/steps/index.d.ts.map +1 -1
- package/dist/payment-collection/steps/index.js +1 -0
- package/dist/payment-collection/steps/index.js.map +1 -1
- package/dist/payment-collection/steps/update-payment-collection.d.ts +21 -2
- package/dist/payment-collection/steps/update-payment-collection.d.ts.map +1 -1
- package/dist/payment-collection/steps/update-payment-collection.js +10 -0
- package/dist/payment-collection/steps/update-payment-collection.js.map +1 -1
- package/dist/payment-collection/steps/update-refund-reasons.d.ts +6 -2
- package/dist/payment-collection/steps/update-refund-reasons.d.ts.map +1 -1
- package/dist/payment-collection/steps/update-refund-reasons.js.map +1 -1
- package/dist/payment-collection/steps/validate-deleted-payment-sessions.d.ts +16 -0
- package/dist/payment-collection/steps/validate-deleted-payment-sessions.d.ts.map +1 -1
- package/dist/payment-collection/steps/validate-deleted-payment-sessions.js +7 -0
- package/dist/payment-collection/steps/validate-deleted-payment-sessions.js.map +1 -1
- package/dist/payment-collection/workflows/cancel-payment-collection.d.ts +23 -0
- package/dist/payment-collection/workflows/cancel-payment-collection.d.ts.map +1 -0
- package/dist/payment-collection/workflows/cancel-payment-collection.js +66 -0
- package/dist/payment-collection/workflows/cancel-payment-collection.js.map +1 -0
- package/dist/payment-collection/workflows/create-payment-session.d.ts +42 -3
- package/dist/payment-collection/workflows/create-payment-session.d.ts.map +1 -1
- package/dist/payment-collection/workflows/create-payment-session.js +81 -3
- package/dist/payment-collection/workflows/create-payment-session.js.map +1 -1
- package/dist/payment-collection/workflows/create-refund-reasons.d.ts +32 -5
- package/dist/payment-collection/workflows/create-refund-reasons.d.ts.map +1 -1
- package/dist/payment-collection/workflows/create-refund-reasons.js +21 -1
- package/dist/payment-collection/workflows/create-refund-reasons.js.map +1 -1
- package/dist/payment-collection/workflows/delete-payment-sessions.d.ts +23 -1
- package/dist/payment-collection/workflows/delete-payment-sessions.d.ts.map +1 -1
- package/dist/payment-collection/workflows/delete-payment-sessions.js +17 -1
- package/dist/payment-collection/workflows/delete-payment-sessions.js.map +1 -1
- package/dist/payment-collection/workflows/delete-refund-reasons.d.ts +27 -4
- package/dist/payment-collection/workflows/delete-refund-reasons.d.ts.map +1 -1
- package/dist/payment-collection/workflows/delete-refund-reasons.js +17 -1
- package/dist/payment-collection/workflows/delete-refund-reasons.js.map +1 -1
- package/dist/payment-collection/workflows/index.d.ts +1 -0
- package/dist/payment-collection/workflows/index.d.ts.map +1 -1
- package/dist/payment-collection/workflows/index.js +1 -0
- package/dist/payment-collection/workflows/index.js.map +1 -1
- package/dist/payment-collection/workflows/update-refund-reasons.d.ts +30 -3
- package/dist/payment-collection/workflows/update-refund-reasons.d.ts.map +1 -1
- package/dist/payment-collection/workflows/update-refund-reasons.js +20 -1
- package/dist/payment-collection/workflows/update-refund-reasons.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/user/steps/create-users.d.ts +11 -1
- package/dist/user/steps/create-users.d.ts.map +1 -1
- package/dist/user/steps/create-users.js +11 -1
- package/dist/user/steps/create-users.js.map +1 -1
- package/dist/user/steps/delete-users.d.ts +6 -2
- package/dist/user/steps/delete-users.d.ts.map +1 -1
- package/dist/user/steps/delete-users.js +1 -1
- package/dist/user/steps/delete-users.js.map +1 -1
- package/dist/user/steps/update-users.d.ts +9 -1
- package/dist/user/steps/update-users.d.ts.map +1 -1
- package/dist/user/steps/update-users.js +9 -1
- package/dist/user/steps/update-users.js.map +1 -1
- package/dist/user/workflows/create-user-account.d.ts +33 -1
- package/dist/user/workflows/create-user-account.d.ts.map +1 -1
- package/dist/user/workflows/create-user-account.js +24 -1
- package/dist/user/workflows/create-user-account.js.map +1 -1
- package/dist/user/workflows/create-users.d.ts +25 -1
- package/dist/user/workflows/create-users.d.ts.map +1 -1
- package/dist/user/workflows/create-users.js +25 -1
- package/dist/user/workflows/create-users.js.map +1 -1
- package/dist/user/workflows/delete-users.d.ts +20 -1
- package/dist/user/workflows/delete-users.d.ts.map +1 -1
- package/dist/user/workflows/delete-users.js +26 -3
- package/dist/user/workflows/delete-users.js.map +1 -1
- package/dist/user/workflows/remove-user-account.d.ts +23 -1
- package/dist/user/workflows/remove-user-account.d.ts.map +1 -1
- package/dist/user/workflows/remove-user-account.js +17 -1
- package/dist/user/workflows/remove-user-account.js.map +1 -1
- package/dist/user/workflows/update-users.d.ts +22 -1
- package/dist/user/workflows/update-users.d.ts.map +1 -1
- package/dist/user/workflows/update-users.js +22 -1
- package/dist/user/workflows/update-users.js.map +1 -1
- package/package.json +10 -10
|
@@ -8,6 +8,57 @@ const update_remote_links_1 = require("../steps/update-remote-links");
|
|
|
8
8
|
exports.batchLinksWorkflowId = "batch-links";
|
|
9
9
|
/**
|
|
10
10
|
* This workflow manages one or more links to create, update, or dismiss them.
|
|
11
|
+
*
|
|
12
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
13
|
+
* manage links within your custom flows.
|
|
14
|
+
*
|
|
15
|
+
* Learn more about links in [this documentation](https://docs.etohq.com/learn/fundamentals/module-links/link).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const { result } = await batchLinksWorkflow(container)
|
|
19
|
+
* .run({
|
|
20
|
+
* input: {
|
|
21
|
+
* create: [
|
|
22
|
+
* {
|
|
23
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
24
|
+
* [Modules.PRODUCT]: {
|
|
25
|
+
* product_id: "prod_123",
|
|
26
|
+
* },
|
|
27
|
+
* "helloModuleService": {
|
|
28
|
+
* my_custom_id: "mc_123",
|
|
29
|
+
* },
|
|
30
|
+
* }
|
|
31
|
+
* ],
|
|
32
|
+
* update: [
|
|
33
|
+
* {
|
|
34
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
35
|
+
* [Modules.PRODUCT]: {
|
|
36
|
+
* product_id: "prod_321",
|
|
37
|
+
* },
|
|
38
|
+
* "helloModuleService": {
|
|
39
|
+
* my_custom_id: "mc_321",
|
|
40
|
+
* },
|
|
41
|
+
* data: {
|
|
42
|
+
* metadata: {
|
|
43
|
+
* test: false
|
|
44
|
+
* }
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
47
|
+
* ],
|
|
48
|
+
* delete: [
|
|
49
|
+
* {
|
|
50
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
51
|
+
* [Modules.PRODUCT]: {
|
|
52
|
+
* product_id: "prod_321",
|
|
53
|
+
* },
|
|
54
|
+
* }
|
|
55
|
+
* ]
|
|
56
|
+
* }
|
|
57
|
+
* })
|
|
58
|
+
*
|
|
59
|
+
* @summary
|
|
60
|
+
*
|
|
61
|
+
* Manage links between two records of linked data models.
|
|
11
62
|
*/
|
|
12
63
|
exports.batchLinksWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.batchLinksWorkflowId, (input) => {
|
|
13
64
|
const [created, updated, deleted] = (0, workflows_sdk_1.parallelize)((0, create_remote_links_1.createRemoteLinkStep)(input.create || []), (0, update_remote_links_1.updateRemoteLinksStep)(input.update || []), (0, dismiss_remote_links_1.dismissRemoteLinkStep)(input.delete || []));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-links.js","sourceRoot":"","sources":["../../../src/common/workflows/batch-links.ts"],"names":[],"mappings":";;;AACA,kEAKuC;AACvC,sEAAmE;AACnE,wEAAqE;AACrE,sEAAoE;AAEvD,QAAA,oBAAoB,GAAG,aAAa,CAAA;AACjD
|
|
1
|
+
{"version":3,"file":"batch-links.js","sourceRoot":"","sources":["../../../src/common/workflows/batch-links.ts"],"names":[],"mappings":";;;AACA,kEAKuC;AACvC,sEAAmE;AACnE,wEAAqE;AACrE,sEAAoE;AAEvD,QAAA,oBAAoB,GAAG,aAAa,CAAA;AACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACU,QAAA,kBAAkB,GAAG,IAAA,8BAAc,EAC9C,4BAAoB,EACpB,CACE,KAEC,EACD,EAAE;IACF,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,2BAAW,EAC7C,IAAA,0CAAoB,EAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,EACxC,IAAA,2CAAqB,EAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,EACzC,IAAA,4CAAqB,EAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,CAC1C,CAAA;IAED,OAAO,IAAI,gCAAgB,CAAC;QAC1B,OAAO;QACP,OAAO;QACP,OAAO;KACR,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
|
|
@@ -2,6 +2,31 @@ import { LinkDefinition } from "@etohq/framework/types";
|
|
|
2
2
|
export declare const createLinksWorkflowId = "create-link";
|
|
3
3
|
/**
|
|
4
4
|
* This workflow creates one or more links between records.
|
|
5
|
+
*
|
|
6
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
7
|
+
* create links within your custom flows.
|
|
8
|
+
*
|
|
9
|
+
* Learn more about links in [this documentation](https://docs.etohq.com/learn/fundamentals/module-links/link).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const { result } = await createLinksWorkflow(container)
|
|
13
|
+
* .run({
|
|
14
|
+
* input: [
|
|
15
|
+
* {
|
|
16
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
17
|
+
* [Modules.PRODUCT]: {
|
|
18
|
+
* product_id: "prod_123",
|
|
19
|
+
* },
|
|
20
|
+
* "helloModuleService": {
|
|
21
|
+
* my_custom_id: "mc_123",
|
|
22
|
+
* },
|
|
23
|
+
* }
|
|
24
|
+
* ]
|
|
25
|
+
* })
|
|
26
|
+
*
|
|
27
|
+
* @summary
|
|
28
|
+
*
|
|
29
|
+
* Create links between two records of linked data models.
|
|
5
30
|
*/
|
|
6
31
|
export declare const createLinksWorkflow: import("@etohq/framework/workflows-sdk").ReturnWorkflow<LinkDefinition[], LinkDefinition[], []>;
|
|
7
32
|
//# sourceMappingURL=create-links.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-links.d.ts","sourceRoot":"","sources":["../../../src/common/workflows/create-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAQvD,eAAO,MAAM,qBAAqB,gBAAgB,CAAA;AAClD
|
|
1
|
+
{"version":3,"file":"create-links.d.ts","sourceRoot":"","sources":["../../../src/common/workflows/create-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAQvD,eAAO,MAAM,qBAAqB,gBAAgB,CAAA;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,mBAAmB,iGAK/B,CAAA"}
|
|
@@ -6,6 +6,31 @@ const create_remote_links_1 = require("../steps/create-remote-links");
|
|
|
6
6
|
exports.createLinksWorkflowId = "create-link";
|
|
7
7
|
/**
|
|
8
8
|
* This workflow creates one or more links between records.
|
|
9
|
+
*
|
|
10
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
11
|
+
* create links within your custom flows.
|
|
12
|
+
*
|
|
13
|
+
* Learn more about links in [this documentation](https://docs.etohq.com/learn/fundamentals/module-links/link).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const { result } = await createLinksWorkflow(container)
|
|
17
|
+
* .run({
|
|
18
|
+
* input: [
|
|
19
|
+
* {
|
|
20
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
21
|
+
* [Modules.PRODUCT]: {
|
|
22
|
+
* product_id: "prod_123",
|
|
23
|
+
* },
|
|
24
|
+
* "helloModuleService": {
|
|
25
|
+
* my_custom_id: "mc_123",
|
|
26
|
+
* },
|
|
27
|
+
* }
|
|
28
|
+
* ]
|
|
29
|
+
* })
|
|
30
|
+
*
|
|
31
|
+
* @summary
|
|
32
|
+
*
|
|
33
|
+
* Create links between two records of linked data models.
|
|
9
34
|
*/
|
|
10
35
|
exports.createLinksWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.createLinksWorkflowId, (input) => {
|
|
11
36
|
return new workflows_sdk_1.WorkflowResponse((0, create_remote_links_1.createRemoteLinkStep)(input));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-links.js","sourceRoot":"","sources":["../../../src/common/workflows/create-links.ts"],"names":[],"mappings":";;;AACA,kEAIuC;AACvC,sEAAmE;AAEtD,QAAA,qBAAqB,GAAG,aAAa,CAAA;AAClD
|
|
1
|
+
{"version":3,"file":"create-links.js","sourceRoot":"","sources":["../../../src/common/workflows/create-links.ts"],"names":[],"mappings":";;;AACA,kEAIuC;AACvC,sEAAmE;AAEtD,QAAA,qBAAqB,GAAG,aAAa,CAAA;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACU,QAAA,mBAAmB,GAAG,IAAA,8BAAc,EAC/C,6BAAqB,EACrB,CAAC,KAAqC,EAAE,EAAE;IACxC,OAAO,IAAI,gCAAgB,CAAC,IAAA,0CAAoB,EAAC,KAAK,CAAC,CAAC,CAAA;AAC1D,CAAC,CACF,CAAA"}
|
|
@@ -2,6 +2,31 @@ import { LinkDefinition } from "@etohq/framework/types";
|
|
|
2
2
|
export declare const dismissLinksWorkflowId = "dismiss-link";
|
|
3
3
|
/**
|
|
4
4
|
* This workflow dismisses one or more links between records.
|
|
5
|
+
*
|
|
6
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
7
|
+
* dismiss links within your custom flows.
|
|
8
|
+
*
|
|
9
|
+
* Learn more about links in [this documentation](https://docs.etohq.com/learn/fundamentals/module-links/link).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const { result } = await dismissLinksWorkflow(container)
|
|
13
|
+
* .run({
|
|
14
|
+
* input: [
|
|
15
|
+
* {
|
|
16
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
17
|
+
* [Modules.PRODUCT]: {
|
|
18
|
+
* product_id: "prod_123",
|
|
19
|
+
* },
|
|
20
|
+
* "helloModuleService": {
|
|
21
|
+
* my_custom_id: "mc_123",
|
|
22
|
+
* },
|
|
23
|
+
* }
|
|
24
|
+
* ]
|
|
25
|
+
* })
|
|
26
|
+
*
|
|
27
|
+
* @summary
|
|
28
|
+
*
|
|
29
|
+
* Dismiss links between two records of linked data models.
|
|
5
30
|
*/
|
|
6
31
|
export declare const dismissLinksWorkflow: import("@etohq/framework/workflows-sdk").ReturnWorkflow<LinkDefinition[], LinkDefinition[], []>;
|
|
7
32
|
//# sourceMappingURL=dismiss-links.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dismiss-links.d.ts","sourceRoot":"","sources":["../../../src/common/workflows/dismiss-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAQvD,eAAO,MAAM,sBAAsB,iBAAiB,CAAA;AACpD
|
|
1
|
+
{"version":3,"file":"dismiss-links.d.ts","sourceRoot":"","sources":["../../../src/common/workflows/dismiss-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAQvD,eAAO,MAAM,sBAAsB,iBAAiB,CAAA;AACpD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,oBAAoB,iGAKhC,CAAA"}
|
|
@@ -6,6 +6,31 @@ const dismiss_remote_links_1 = require("../steps/dismiss-remote-links");
|
|
|
6
6
|
exports.dismissLinksWorkflowId = "dismiss-link";
|
|
7
7
|
/**
|
|
8
8
|
* This workflow dismisses one or more links between records.
|
|
9
|
+
*
|
|
10
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
11
|
+
* dismiss links within your custom flows.
|
|
12
|
+
*
|
|
13
|
+
* Learn more about links in [this documentation](https://docs.etohq.com/learn/fundamentals/module-links/link).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const { result } = await dismissLinksWorkflow(container)
|
|
17
|
+
* .run({
|
|
18
|
+
* input: [
|
|
19
|
+
* {
|
|
20
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
21
|
+
* [Modules.PRODUCT]: {
|
|
22
|
+
* product_id: "prod_123",
|
|
23
|
+
* },
|
|
24
|
+
* "helloModuleService": {
|
|
25
|
+
* my_custom_id: "mc_123",
|
|
26
|
+
* },
|
|
27
|
+
* }
|
|
28
|
+
* ]
|
|
29
|
+
* })
|
|
30
|
+
*
|
|
31
|
+
* @summary
|
|
32
|
+
*
|
|
33
|
+
* Dismiss links between two records of linked data models.
|
|
9
34
|
*/
|
|
10
35
|
exports.dismissLinksWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.dismissLinksWorkflowId, (input) => {
|
|
11
36
|
return new workflows_sdk_1.WorkflowResponse((0, dismiss_remote_links_1.dismissRemoteLinkStep)(input));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dismiss-links.js","sourceRoot":"","sources":["../../../src/common/workflows/dismiss-links.ts"],"names":[],"mappings":";;;AACA,kEAIuC;AACvC,wEAAqE;AAExD,QAAA,sBAAsB,GAAG,cAAc,CAAA;AACpD
|
|
1
|
+
{"version":3,"file":"dismiss-links.js","sourceRoot":"","sources":["../../../src/common/workflows/dismiss-links.ts"],"names":[],"mappings":";;;AACA,kEAIuC;AACvC,wEAAqE;AAExD,QAAA,sBAAsB,GAAG,cAAc,CAAA;AACpD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACU,QAAA,oBAAoB,GAAG,IAAA,8BAAc,EAChD,8BAAsB,EACtB,CAAC,KAAqC,EAAE,EAAE;IACxC,OAAO,IAAI,gCAAgB,CAAC,IAAA,4CAAqB,EAAC,KAAK,CAAC,CAAC,CAAA;AAC3D,CAAC,CACF,CAAA"}
|
|
@@ -2,6 +2,36 @@ import { LinkDefinition } from "@etohq/framework/types";
|
|
|
2
2
|
export declare const updateLinksWorkflowId = "update-link";
|
|
3
3
|
/**
|
|
4
4
|
* This workflow updates one or more links between records.
|
|
5
|
+
*
|
|
6
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
7
|
+
* update links within your custom flows.
|
|
8
|
+
*
|
|
9
|
+
* Learn more about links in [this documentation](https://docs.etohq.com/learn/fundamentals/module-links/link).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const { result } = await updateLinksWorkflow(container)
|
|
13
|
+
* .run({
|
|
14
|
+
* input: [
|
|
15
|
+
* {
|
|
16
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
17
|
+
* [Modules.PRODUCT]: {
|
|
18
|
+
* product_id: "prod_123",
|
|
19
|
+
* },
|
|
20
|
+
* "helloModuleService": {
|
|
21
|
+
* my_custom_id: "mc_123",
|
|
22
|
+
* },
|
|
23
|
+
* data: {
|
|
24
|
+
* metadata: {
|
|
25
|
+
* test: false,
|
|
26
|
+
* },
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ]
|
|
30
|
+
* })
|
|
31
|
+
*
|
|
32
|
+
* @summary
|
|
33
|
+
*
|
|
34
|
+
* Update links between two records of linked data models.
|
|
5
35
|
*/
|
|
6
36
|
export declare const updateLinksWorkflow: import("@etohq/framework/workflows-sdk").ReturnWorkflow<LinkDefinition[], LinkDefinition[], []>;
|
|
7
37
|
//# sourceMappingURL=update-links.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-links.d.ts","sourceRoot":"","sources":["../../../src/common/workflows/update-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAQvD,eAAO,MAAM,qBAAqB,gBAAgB,CAAA;AAClD
|
|
1
|
+
{"version":3,"file":"update-links.d.ts","sourceRoot":"","sources":["../../../src/common/workflows/update-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAQvD,eAAO,MAAM,qBAAqB,gBAAgB,CAAA;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,mBAAmB,iGAK/B,CAAA"}
|
|
@@ -6,6 +6,36 @@ const update_remote_links_1 = require("../steps/update-remote-links");
|
|
|
6
6
|
exports.updateLinksWorkflowId = "update-link";
|
|
7
7
|
/**
|
|
8
8
|
* This workflow updates one or more links between records.
|
|
9
|
+
*
|
|
10
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
11
|
+
* update links within your custom flows.
|
|
12
|
+
*
|
|
13
|
+
* Learn more about links in [this documentation](https://docs.etohq.com/learn/fundamentals/module-links/link).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const { result } = await updateLinksWorkflow(container)
|
|
17
|
+
* .run({
|
|
18
|
+
* input: [
|
|
19
|
+
* {
|
|
20
|
+
* // import { Modules } from "@etohq/framework/utils"
|
|
21
|
+
* [Modules.PRODUCT]: {
|
|
22
|
+
* product_id: "prod_123",
|
|
23
|
+
* },
|
|
24
|
+
* "helloModuleService": {
|
|
25
|
+
* my_custom_id: "mc_123",
|
|
26
|
+
* },
|
|
27
|
+
* data: {
|
|
28
|
+
* metadata: {
|
|
29
|
+
* test: false,
|
|
30
|
+
* },
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
* ]
|
|
34
|
+
* })
|
|
35
|
+
*
|
|
36
|
+
* @summary
|
|
37
|
+
*
|
|
38
|
+
* Update links between two records of linked data models.
|
|
9
39
|
*/
|
|
10
40
|
exports.updateLinksWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.updateLinksWorkflowId, (input) => {
|
|
11
41
|
return new workflows_sdk_1.WorkflowResponse((0, update_remote_links_1.updateRemoteLinksStep)(input));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-links.js","sourceRoot":"","sources":["../../../src/common/workflows/update-links.ts"],"names":[],"mappings":";;;AACA,kEAIuC;AACvC,sEAAoE;AAEvD,QAAA,qBAAqB,GAAG,aAAa,CAAA;AAClD
|
|
1
|
+
{"version":3,"file":"update-links.js","sourceRoot":"","sources":["../../../src/common/workflows/update-links.ts"],"names":[],"mappings":";;;AACA,kEAIuC;AACvC,sEAAoE;AAEvD,QAAA,qBAAqB,GAAG,aAAa,CAAA;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACU,QAAA,mBAAmB,GAAG,IAAA,8BAAc,EAC/C,6BAAqB,EACrB,CAAC,KAAqC,EAAE,EAAE;IACxC,OAAO,IAAI,gCAAgB,CAAC,IAAA,2CAAqB,EAAC,KAAK,CAAC,CAAC,CAAA;AAC3D,CAAC,CACF,CAAA"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The IDs of the files to delete.
|
|
3
|
+
*/
|
|
4
|
+
export type DeleteFilesStepInput = string[];
|
|
1
5
|
export declare const deleteFilesStepId = "delete-files";
|
|
2
6
|
/**
|
|
3
|
-
* This step deletes one or more files
|
|
7
|
+
* This step deletes one or more files using the installed
|
|
8
|
+
* [File Module Provider](https://docs.etohq.com/resources/infrastructure-modules/file). The files
|
|
9
|
+
* will be removed from the database and the storage.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const data = deleteFilesStep([
|
|
13
|
+
* "id_123"
|
|
14
|
+
* ])
|
|
4
15
|
*/
|
|
5
|
-
export declare const deleteFilesStep: import("@etohq/framework/workflows-sdk").StepFunction<
|
|
16
|
+
export declare const deleteFilesStep: import("@etohq/framework/workflows-sdk").StepFunction<DeleteFilesStepInput, undefined>;
|
|
6
17
|
//# sourceMappingURL=delete-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-files.d.ts","sourceRoot":"","sources":["../../../src/file/steps/delete-files.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,iBAAiB,CAAA;AAC/C
|
|
1
|
+
{"version":3,"file":"delete-files.d.ts","sourceRoot":"","sources":["../../../src/file/steps/delete-files.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,EAAE,CAAA;AAE3C,eAAO,MAAM,iBAAiB,iBAAiB,CAAA;AAC/C;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,wFAS3B,CAAA"}
|
|
@@ -5,7 +5,14 @@ const utils_1 = require("@etohq/framework/utils");
|
|
|
5
5
|
const workflows_sdk_1 = require("@etohq/framework/workflows-sdk");
|
|
6
6
|
exports.deleteFilesStepId = "delete-files";
|
|
7
7
|
/**
|
|
8
|
-
* This step deletes one or more files
|
|
8
|
+
* This step deletes one or more files using the installed
|
|
9
|
+
* [File Module Provider](https://docs.etohq.com/resources/infrastructure-modules/file). The files
|
|
10
|
+
* will be removed from the database and the storage.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const data = deleteFilesStep([
|
|
14
|
+
* "id_123"
|
|
15
|
+
* ])
|
|
9
16
|
*/
|
|
10
17
|
exports.deleteFilesStep = (0, workflows_sdk_1.createStep)({ name: exports.deleteFilesStepId, noCompensation: true }, async (ids, { container }) => {
|
|
11
18
|
const service = container.resolve(utils_1.Modules.FILE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-files.js","sourceRoot":"","sources":["../../../src/file/steps/delete-files.ts"],"names":[],"mappings":";;;AACA,kDAAgD;AAChD,kEAAyE;
|
|
1
|
+
{"version":3,"file":"delete-files.js","sourceRoot":"","sources":["../../../src/file/steps/delete-files.ts"],"names":[],"mappings":";;;AACA,kDAAgD;AAChD,kEAAyE;AAO5D,QAAA,iBAAiB,GAAG,cAAc,CAAA;AAC/C;;;;;;;;;GASG;AACU,QAAA,eAAe,GAAG,IAAA,0BAAU,EACvC,EAAE,IAAI,EAAE,yBAAiB,EAAE,cAAc,EAAE,IAAI,EAAE,EACjD,KAAK,EAAE,GAAyB,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACjD,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAqB,eAAO,CAAC,IAAI,CAAC,CAAA;IAEnE,MAAM,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IAC9B,OAAO,IAAI,4BAAY,CAAC,KAAK,CAAC,CAAC,CAAA;AACjC,CAAC,EACD,KAAK,IAAI,EAAE,GAAE,CAAC,CACf,CAAA"}
|
|
@@ -1,14 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The data to upload files.
|
|
3
|
+
*/
|
|
1
4
|
export type UploadFilesStepInput = {
|
|
5
|
+
/**
|
|
6
|
+
* The files to upload.
|
|
7
|
+
*/
|
|
2
8
|
files: {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the file.
|
|
11
|
+
*/
|
|
3
12
|
filename: string;
|
|
13
|
+
/**
|
|
14
|
+
* The MIME type of the file.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* img/jpg
|
|
18
|
+
*/
|
|
4
19
|
mimeType: string;
|
|
20
|
+
/**
|
|
21
|
+
* The content of the file. For images, for example,
|
|
22
|
+
* use binary string. For CSV files, use the CSV content.
|
|
23
|
+
*/
|
|
5
24
|
content: string;
|
|
25
|
+
/**
|
|
26
|
+
* The access level of the file. Use `public` for the file that
|
|
27
|
+
* can be accessed by anyone. For example, for images that are displayed
|
|
28
|
+
* on the storefront. Use `private` for files that are only accessible
|
|
29
|
+
* by authenticated users. For example, for CSV files used to
|
|
30
|
+
* import data.
|
|
31
|
+
*/
|
|
6
32
|
access: "public" | "private";
|
|
7
33
|
}[];
|
|
8
34
|
};
|
|
9
35
|
export declare const uploadFilesStepId = "upload-files";
|
|
10
36
|
/**
|
|
11
|
-
* This step uploads one or more files
|
|
37
|
+
* This step uploads one or more files using the installed
|
|
38
|
+
* [File Module Provider](https://docs.etohq.com/resources/infrastructure-modules/file).
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* const data = uploadFilesStep({
|
|
42
|
+
* files: [
|
|
43
|
+
* {
|
|
44
|
+
* filename: "test.jpg",
|
|
45
|
+
* mimeType: "img/jpg",
|
|
46
|
+
* content: "binary-string",
|
|
47
|
+
* access: "public"
|
|
48
|
+
* }
|
|
49
|
+
* ]
|
|
50
|
+
* })
|
|
12
51
|
*/
|
|
13
52
|
export declare const uploadFilesStep: import("@etohq/framework/workflows-sdk").StepFunction<UploadFilesStepInput, import("@etohq/framework/types").FileDTO[]>;
|
|
14
53
|
//# sourceMappingURL=upload-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../src/file/steps/upload-files.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE;QACL,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAA;KAC7B,EAAE,CAAA;CACJ,CAAA;AAED,eAAO,MAAM,iBAAiB,iBAAiB,CAAA;AAC/C
|
|
1
|
+
{"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../src/file/steps/upload-files.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,KAAK,EAAE;QACL;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB;;;;;WAKG;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAA;QACf;;;;;;WAMG;QACH,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAA;KAC7B,EAAE,CAAA;CACJ,CAAA;AAED,eAAO,MAAM,iBAAiB,iBAAiB,CAAA;AAC/C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,yHAmB3B,CAAA"}
|
|
@@ -5,7 +5,20 @@ const utils_1 = require("@etohq/framework/utils");
|
|
|
5
5
|
const workflows_sdk_1 = require("@etohq/framework/workflows-sdk");
|
|
6
6
|
exports.uploadFilesStepId = "upload-files";
|
|
7
7
|
/**
|
|
8
|
-
* This step uploads one or more files
|
|
8
|
+
* This step uploads one or more files using the installed
|
|
9
|
+
* [File Module Provider](https://docs.etohq.com/resources/infrastructure-modules/file).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const data = uploadFilesStep({
|
|
13
|
+
* files: [
|
|
14
|
+
* {
|
|
15
|
+
* filename: "test.jpg",
|
|
16
|
+
* mimeType: "img/jpg",
|
|
17
|
+
* content: "binary-string",
|
|
18
|
+
* access: "public"
|
|
19
|
+
* }
|
|
20
|
+
* ]
|
|
21
|
+
* })
|
|
9
22
|
*/
|
|
10
23
|
exports.uploadFilesStep = (0, workflows_sdk_1.createStep)(exports.uploadFilesStepId, async (data, { container }) => {
|
|
11
24
|
const service = container.resolve(utils_1.Modules.FILE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-files.js","sourceRoot":"","sources":["../../../src/file/steps/upload-files.ts"],"names":[],"mappings":";;;AACA,kDAAgD;AAChD,kEAAyE;
|
|
1
|
+
{"version":3,"file":"upload-files.js","sourceRoot":"","sources":["../../../src/file/steps/upload-files.ts"],"names":[],"mappings":";;;AACA,kDAAgD;AAChD,kEAAyE;AAqC5D,QAAA,iBAAiB,GAAG,cAAc,CAAA;AAC/C;;;;;;;;;;;;;;;GAeG;AACU,QAAA,eAAe,GAAG,IAAA,0BAAU,EACvC,yBAAiB,EACjB,KAAK,EAAE,IAA0B,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAClD,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAqB,eAAO,CAAC,IAAI,CAAC,CAAA;IACnE,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACrD,OAAO,IAAI,4BAAY,CACrB,OAAO,EACP,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAC/B,CAAA;AACH,CAAC,EACD,KAAK,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAClC,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QACxB,OAAM;IACR,CAAC;IAED,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAqB,eAAO,CAAC,IAAI,CAAC,CAAA;IAEnE,MAAM,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;AACvC,CAAC,CACF,CAAA"}
|
|
@@ -3,7 +3,26 @@ export type DeleteFilesWorkflowInput = {
|
|
|
3
3
|
};
|
|
4
4
|
export declare const deleteFilesWorkflowId = "delete-files";
|
|
5
5
|
/**
|
|
6
|
-
* This workflow deletes one or more files.
|
|
6
|
+
* This workflow deletes one or more files. It's used by the
|
|
7
|
+
* [Delete File Upload Admin API Route](https://docs.etohq.com/api/admin#uploads_deleteuploadsid).
|
|
8
|
+
*
|
|
9
|
+
* The [File Module Provider](https://docs.etohq.com/resources/infrastructure-modules/file) installed
|
|
10
|
+
* in your application will be used to delete the file from storage.
|
|
11
|
+
*
|
|
12
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
13
|
+
* delete files within your custom flows.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const { result } = await deleteFilesWorkflow(container)
|
|
17
|
+
* .run({
|
|
18
|
+
* input: {
|
|
19
|
+
* ids: ["123"]
|
|
20
|
+
* }
|
|
21
|
+
* })
|
|
22
|
+
*
|
|
23
|
+
* @summary
|
|
24
|
+
*
|
|
25
|
+
* Delete files from the database and storage.
|
|
7
26
|
*/
|
|
8
27
|
export declare const deleteFilesWorkflow: import("@etohq/framework/workflows-sdk").ReturnWorkflow<DeleteFilesWorkflowInput, unknown, any[]>;
|
|
9
28
|
//# sourceMappingURL=delete-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-files.d.ts","sourceRoot":"","sources":["../../../src/file/workflows/delete-files.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,wBAAwB,GAAG;IAAE,GAAG,EAAE,MAAM,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,qBAAqB,iBAAiB,CAAA;AACnD
|
|
1
|
+
{"version":3,"file":"delete-files.d.ts","sourceRoot":"","sources":["../../../src/file/workflows/delete-files.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,wBAAwB,GAAG;IAAE,GAAG,EAAE,MAAM,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,qBAAqB,iBAAiB,CAAA;AACnD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,mBAAmB,mGAK/B,CAAA"}
|
|
@@ -5,7 +5,26 @@ const workflows_sdk_1 = require("@etohq/framework/workflows-sdk");
|
|
|
5
5
|
const steps_1 = require("../steps");
|
|
6
6
|
exports.deleteFilesWorkflowId = "delete-files";
|
|
7
7
|
/**
|
|
8
|
-
* This workflow deletes one or more files.
|
|
8
|
+
* This workflow deletes one or more files. It's used by the
|
|
9
|
+
* [Delete File Upload Admin API Route](https://docs.etohq.com/api/admin#uploads_deleteuploadsid).
|
|
10
|
+
*
|
|
11
|
+
* The [File Module Provider](https://docs.etohq.com/resources/infrastructure-modules/file) installed
|
|
12
|
+
* in your application will be used to delete the file from storage.
|
|
13
|
+
*
|
|
14
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
15
|
+
* delete files within your custom flows.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const { result } = await deleteFilesWorkflow(container)
|
|
19
|
+
* .run({
|
|
20
|
+
* input: {
|
|
21
|
+
* ids: ["123"]
|
|
22
|
+
* }
|
|
23
|
+
* })
|
|
24
|
+
*
|
|
25
|
+
* @summary
|
|
26
|
+
*
|
|
27
|
+
* Delete files from the database and storage.
|
|
9
28
|
*/
|
|
10
29
|
exports.deleteFilesWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.deleteFilesWorkflowId, (input) => {
|
|
11
30
|
(0, steps_1.deleteFilesStep)(input.ids);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-files.js","sourceRoot":"","sources":["../../../src/file/workflows/delete-files.ts"],"names":[],"mappings":";;;AAAA,kEAA6E;AAC7E,oCAA0C;AAI7B,QAAA,qBAAqB,GAAG,cAAc,CAAA;AACnD
|
|
1
|
+
{"version":3,"file":"delete-files.js","sourceRoot":"","sources":["../../../src/file/workflows/delete-files.ts"],"names":[],"mappings":";;;AAAA,kEAA6E;AAC7E,oCAA0C;AAI7B,QAAA,qBAAqB,GAAG,cAAc,CAAA;AACnD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACU,QAAA,mBAAmB,GAAG,IAAA,8BAAc,EAC/C,6BAAqB,EACrB,CAAC,KAA6C,EAAsB,EAAE;IACpE,IAAA,uBAAe,EAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AAC5B,CAAC,CACF,CAAA"}
|
|
@@ -1,15 +1,65 @@
|
|
|
1
1
|
import { FileDTO } from "@etohq/framework/types";
|
|
2
|
+
/**
|
|
3
|
+
* The data to upload files.
|
|
4
|
+
*/
|
|
2
5
|
export type UploadFilesWorkflowInput = {
|
|
6
|
+
/**
|
|
7
|
+
* The files to upload.
|
|
8
|
+
*/
|
|
3
9
|
files: {
|
|
10
|
+
/**
|
|
11
|
+
* The name of the file.
|
|
12
|
+
*/
|
|
4
13
|
filename: string;
|
|
14
|
+
/**
|
|
15
|
+
* The MIME type of the file.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* img/jpg
|
|
19
|
+
*/
|
|
5
20
|
mimeType: string;
|
|
21
|
+
/**
|
|
22
|
+
* The content of the file. For images, for example,
|
|
23
|
+
* use binary string. For CSV files, use the CSV content.
|
|
24
|
+
*/
|
|
6
25
|
content: string;
|
|
26
|
+
/**
|
|
27
|
+
* The access level of the file. Use `public` for the file that
|
|
28
|
+
* can be accessed by anyone. For example, for images that are displayed
|
|
29
|
+
* on the storefront. Use `private` for files that are only accessible
|
|
30
|
+
* by authenticated users. For example, for CSV files used to
|
|
31
|
+
* import data.
|
|
32
|
+
*/
|
|
7
33
|
access: "public" | "private";
|
|
8
34
|
}[];
|
|
9
35
|
};
|
|
10
36
|
export declare const uploadFilesWorkflowId = "upload-files";
|
|
11
37
|
/**
|
|
12
|
-
* This workflow uploads one or more files
|
|
38
|
+
* This workflow uploads one or more files using the installed
|
|
39
|
+
* [File Module Provider](https://docs.etohq.com/resources/infrastructure-modules/file). The workflow is used by the
|
|
40
|
+
* [Upload Files Admin API Route](https://docs.etohq.com/api/admin#uploads_postuploads).
|
|
41
|
+
*
|
|
42
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
43
|
+
* upload files within your custom flows.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* const { result } = await uploadFilesWorkflow(container)
|
|
47
|
+
* .run({
|
|
48
|
+
* input: {
|
|
49
|
+
* files: [
|
|
50
|
+
* {
|
|
51
|
+
* filename: "test.jpg",
|
|
52
|
+
* mimeType: "img/jpg",
|
|
53
|
+
* content: "binary-string",
|
|
54
|
+
* access: "public"
|
|
55
|
+
* }
|
|
56
|
+
* ]
|
|
57
|
+
* }
|
|
58
|
+
* })
|
|
59
|
+
*
|
|
60
|
+
* @summary
|
|
61
|
+
*
|
|
62
|
+
* Upload files using the installed File Module Provider.
|
|
13
63
|
*/
|
|
14
64
|
export declare const uploadFilesWorkflow: import("@etohq/framework/workflows-sdk").ReturnWorkflow<UploadFilesWorkflowInput, FileDTO[], []>;
|
|
15
65
|
//# sourceMappingURL=upload-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../src/file/workflows/upload-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAQhD,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE;QACL,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAA;KAC7B,EAAE,CAAA;CACJ,CAAA;AAED,eAAO,MAAM,qBAAqB,iBAAiB,CAAA;AACnD
|
|
1
|
+
{"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../src/file/workflows/upload-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAQhD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,EAAE;QACL;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB;;;;;WAKG;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAA;QACf;;;;;;WAMG;QACH,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAA;KAC7B,EAAE,CAAA;CACJ,CAAA;AAED,eAAO,MAAM,qBAAqB,iBAAiB,CAAA;AACnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,mBAAmB,kGAO/B,CAAA"}
|
|
@@ -5,7 +5,31 @@ const workflows_sdk_1 = require("@etohq/framework/workflows-sdk");
|
|
|
5
5
|
const steps_1 = require("../steps");
|
|
6
6
|
exports.uploadFilesWorkflowId = "upload-files";
|
|
7
7
|
/**
|
|
8
|
-
* This workflow uploads one or more files
|
|
8
|
+
* This workflow uploads one or more files using the installed
|
|
9
|
+
* [File Module Provider](https://docs.etohq.com/resources/infrastructure-modules/file). The workflow is used by the
|
|
10
|
+
* [Upload Files Admin API Route](https://docs.etohq.com/api/admin#uploads_postuploads).
|
|
11
|
+
*
|
|
12
|
+
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
13
|
+
* upload files within your custom flows.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const { result } = await uploadFilesWorkflow(container)
|
|
17
|
+
* .run({
|
|
18
|
+
* input: {
|
|
19
|
+
* files: [
|
|
20
|
+
* {
|
|
21
|
+
* filename: "test.jpg",
|
|
22
|
+
* mimeType: "img/jpg",
|
|
23
|
+
* content: "binary-string",
|
|
24
|
+
* access: "public"
|
|
25
|
+
* }
|
|
26
|
+
* ]
|
|
27
|
+
* }
|
|
28
|
+
* })
|
|
29
|
+
*
|
|
30
|
+
* @summary
|
|
31
|
+
*
|
|
32
|
+
* Upload files using the installed File Module Provider.
|
|
9
33
|
*/
|
|
10
34
|
exports.uploadFilesWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.uploadFilesWorkflowId, (input) => {
|
|
11
35
|
return new workflows_sdk_1.WorkflowResponse((0, steps_1.uploadFilesStep)(input));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-files.js","sourceRoot":"","sources":["../../../src/file/workflows/upload-files.ts"],"names":[],"mappings":";;;AACA,kEAIuC;AACvC,oCAA0C;
|
|
1
|
+
{"version":3,"file":"upload-files.js","sourceRoot":"","sources":["../../../src/file/workflows/upload-files.ts"],"names":[],"mappings":";;;AACA,kEAIuC;AACvC,oCAA0C;AAqC7B,QAAA,qBAAqB,GAAG,cAAc,CAAA;AACnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACU,QAAA,mBAAmB,GAAG,IAAA,8BAAc,EAC/C,6BAAqB,EACrB,CACE,KAA6C,EAChB,EAAE;IAC/B,OAAO,IAAI,gCAAgB,CAAC,IAAA,uBAAe,EAAC,KAAK,CAAC,CAAC,CAAA;AACrD,CAAC,CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invite/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
|