@wix/auto_sdk_automations_activations 1.0.134 → 1.0.136

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.
Files changed (45) hide show
  1. package/build/cjs/index.d.ts +55 -27
  2. package/build/cjs/index.js +8 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +86 -58
  5. package/build/cjs/index.typings.js +8 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +23 -23
  8. package/build/cjs/meta.js +8 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.js +30 -20
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.d.mts +55 -27
  13. package/build/es/index.mjs +8 -0
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +86 -58
  16. package/build/es/index.typings.mjs +8 -0
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +23 -23
  19. package/build/es/meta.mjs +8 -0
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/es/schemas.mjs +30 -20
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.d.ts +55 -27
  24. package/build/internal/cjs/index.js +8 -0
  25. package/build/internal/cjs/index.js.map +1 -1
  26. package/build/internal/cjs/index.typings.d.ts +86 -58
  27. package/build/internal/cjs/index.typings.js +8 -0
  28. package/build/internal/cjs/index.typings.js.map +1 -1
  29. package/build/internal/cjs/meta.d.ts +23 -23
  30. package/build/internal/cjs/meta.js +8 -0
  31. package/build/internal/cjs/meta.js.map +1 -1
  32. package/build/internal/cjs/schemas.js +30 -20
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.d.mts +55 -27
  35. package/build/internal/es/index.mjs +8 -0
  36. package/build/internal/es/index.mjs.map +1 -1
  37. package/build/internal/es/index.typings.d.mts +86 -58
  38. package/build/internal/es/index.typings.mjs +8 -0
  39. package/build/internal/es/index.typings.mjs.map +1 -1
  40. package/build/internal/es/meta.d.mts +23 -23
  41. package/build/internal/es/meta.mjs +8 -0
  42. package/build/internal/es/meta.mjs.map +1 -1
  43. package/build/internal/es/schemas.mjs +30 -20
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +2 -2
@@ -14,7 +14,15 @@ interface ReportEventSignature {
14
14
  *
15
15
  * If your app supports canceling events,
16
16
  * `externalEntityId` must be provided.
17
- * `externalEntityId` is required when calling [cancelEvent()](#cancel-event).
17
+ * `externalEntityId` is required when calling [Cancel Event](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/cancel-event).
18
+ *
19
+ * The event is processed asynchronously. A successful response means the event was accepted for processing, not that the automations have finished running.
20
+ *
21
+ * To report multiple events in a single call, call [Bulk Report Event](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/bulk-report-event).
22
+ *
23
+ * > You cannot try out this endpoint because
24
+ * > it can be called only by the app that created the specified `triggerKey`.
25
+ * > So please ignore the **Try It Out** button.
18
26
  * @param - Trigger key as defined in your app's trigger configuration
19
27
  * in the app dashboard.
20
28
  * For example, `form_submitted` or `invoice_due`.
@@ -26,7 +34,12 @@ interface ReportEventSignature {
26
34
  declare function bulkReportEvent$1(httpClient: HttpClient): BulkReportEventSignature;
27
35
  interface BulkReportEventSignature {
28
36
  /**
29
- * Bulk reports events and activates site automations with the specified trigger key.
37
+ * Reports multiple events at once, activating site automations configured with the specified trigger key.
38
+ *
39
+ *
40
+ * Each event in `eventsInfo` is processed independently and asynchronously, so some events can succeed while others fail. Check `bulkActionMetadata` for the success and failure totals.
41
+ *
42
+ * To report a single event, call [Report Event](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/report-event).
30
43
  * @param - Trigger key as defined in your app's trigger configuration
31
44
  * in the app dashboard.
32
45
  * For example, `form_submitted` or `invoice_due`.
@@ -37,7 +50,12 @@ interface BulkReportEventSignature {
37
50
  declare function bulkCancelEvent$1(httpClient: HttpClient): BulkCancelEventSignature;
38
51
  interface BulkCancelEventSignature {
39
52
  /**
40
- * Bulk cancels any remaining actions for a trigger and external entities.
53
+ * Cancels any remaining actions for multiple events at once, given a trigger key and the events' external entity IDs.
54
+ *
55
+ *
56
+ * Each external entity ID is processed independently, so some cancellations can succeed while others fail. Check `bulkActionMetadata` for the success and failure totals.
57
+ *
58
+ * To cancel a single event, call [Cancel Event](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/cancel-event).
41
59
  * @param - Trigger key whose events you want to cancel.
42
60
  * For example, `form_submitted` or `invoice_due`.
43
61
  * @param - Repeated list of external_entity_id, representing the related resources' IDs.
@@ -53,10 +71,19 @@ interface CancelEventSignature {
53
71
  * Events are not cancelable by default.
54
72
  * To make an event cancelable,
55
73
  * you must first pass an `externalEntityId`
56
- * and the applicable `triggerKey` to [reportEvent()](#report-event).
57
- * When you call cancelEvent() with the same `externalEntityId` and `triggerKey`,
74
+ * and the applicable `triggerKey` to [Report Event](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/report-event).
75
+ * When you call Cancel Event with the same `externalEntityId` and `triggerKey`,
58
76
  * the event is canceled,
59
77
  * as are all other events that share the `externalEntityId` and `triggerKey`.
78
+ * See
79
+ * [Reporting and Canceling Events](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/reporting-and-canceling-events)
80
+ * for more information.
81
+ *
82
+ * To cancel events for multiple external entities in a single call, call [Bulk Cancel Event](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/bulk-cancel-event).
83
+ *
84
+ * > You cannot try out this endpoint because
85
+ * > it can be called only by the app that created the specified `triggerKey`.
86
+ * > So please ignore the **Try It Out** button.
60
87
  * @param - Trigger key whose event you want to cancel.
61
88
  * For example, `form_submitted` or `invoice_due`.
62
89
  * @param - ID of the related resource in GUID format.
@@ -74,41 +101,42 @@ interface CancelEventSignature {
74
101
  declare function esbConfigResolverRunAutomation$1(httpClient: HttpClient): EsbConfigResolverRunAutomationSignature;
75
102
  interface EsbConfigResolverRunAutomationSignature {
76
103
  /**
77
- * Runs an automation manually.
78
- *
79
- * This gives a user the ability to trigger the automation manually,
80
- * without requiring an event to be reported to start the automation.
81
- * As an example,
82
- * consider an automation that sends a confirmation for a hotel booking when a user submits a reservation online.
83
- * However, if the user calls the hotel directly to make the reservation, the automation isn't triggered.
84
- * The site owner needs a way to send the automated confirmation without the user making an online booking.
85
- * Run Automation provides this functionality.
86
- *
87
- *
88
- * <blockquote class="important">
89
- * __Permissions__
90
- * This endpoint requires the Manage Your App
91
- * [permission scope](https://devforum.wix.com/en/article/available-permissions).
92
- * </blockquote>
93
- * @param - identifier MUST be either AUTOMATION or PREINSTALLED
104
+ * Runs an automation directly, without reporting an event.
105
+ *
106
+ *
107
+ * Use this to activate an automation manually when no triggering event occurs in your system. For example, an automation that sends a confirmation when a customer books online won't run if the customer books by phone instead. Run Automation lets the site owner send that confirmation anyway.
108
+ *
109
+ * Identify the automation to run in one of these ways:
110
+ *
111
+ * - `automationIdentifier`: The ID of an existing automation. Retrieve it from the [Automations API](https://dev.wix.com/docs/rest/business-management/automations/introduction).
112
+ * - `preinstalledIdentifier`: The app ID and component ID of a preinstalled automation.
113
+ *
114
+ * To run an automation in test mode, including unpublished draft automations, call [Test Automation](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/test-automation).
115
+ * @param - How the automation to run is identified. Set to `AUTOMATION` to use `automationIdentifier`, or `PREINSTALLED` to use `preinstalledIdentifier`.
94
116
  */
95
117
  (identifierType: IdentifierTypeWithLiterals, options?: NonNullablePaths<EsbConfigResolverRunAutomationOptions, `payload`, 2>): Promise<V1RunAutomationResponse>;
96
118
  }
97
119
  declare function testAutomation$1(httpClient: HttpClient): TestAutomationSignature;
98
120
  interface TestAutomationSignature {
99
121
  /**
100
- * Runs an automation manually in test mode.
122
+ * Runs an automation in test mode, without reporting an event.
123
+ *
124
+ *
125
+ * Test mode runs the automation and its actions for real, but it can also run unpublished draft automations and skips any configured delays so you see the results immediately. Use it to verify an automation's behavior before publishing it.
101
126
  *
102
- * Similar to RunAutomation but always executed as TEST to allow running draft automations safely.
103
- * @param - identifier MUST be either AUTOMATION or PREINSTALLED
127
+ * Identify the automation to run the same way as in [Run Automation](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/run-automation).
128
+ * @param - How the automation to run is identified. Set to `AUTOMATION` to use `automationIdentifier`, or `PREINSTALLED` to use `preinstalledIdentifier`.
104
129
  */
105
130
  (identifierType: IdentifierTypeWithLiterals, options: NonNullablePaths<TestAutomationOptions, `payload`, 2>): Promise<TestAutomationResponse>;
106
131
  }
107
132
  declare function rerunActivation$1(httpClient: HttpClient): RerunActivationSignature;
108
133
  interface RerunActivationSignature {
109
134
  /**
110
- * Rerun an automation using a previous activation's payload.
111
- * @param - The activation ID whose payload will be used for the rerun.
135
+ * Reruns a previous activation, reusing its original payload and external entity ID.
136
+ *
137
+ *
138
+ * Use this to retry an activation that failed, after you've resolved the underlying issue. A rerun creates a new activation. You can find the original `activationId` in the automation's run log on the automations page.
139
+ * @param - ID of the activation to rerun. Its original payload and external entity ID are reused.
112
140
  */
113
141
  (activationId: string, options?: RerunActivationOptions): Promise<RerunActivationResponse>;
114
142
  }
@@ -174,6 +174,10 @@ function resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl(opts) {
174
174
  {
175
175
  srcPath: "/automations/v1/events/test-automation",
176
176
  destPath: "/v1/events/test-automation"
177
+ },
178
+ {
179
+ srcPath: "/automations/esbConfigResolver/v1/events/run-automation",
180
+ destPath: "/v1/events/run-automation"
177
181
  }
178
182
  ],
179
183
  _: [
@@ -200,6 +204,10 @@ function resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl(opts) {
200
204
  {
201
205
  srcPath: "/automations/v1/events/test-automation",
202
206
  destPath: "/v1/events/test-automation"
207
+ },
208
+ {
209
+ srcPath: "/automations/esbConfigResolver/v1/events/run-automation",
210
+ destPath: "/v1/events/run-automation"
203
211
  }
204
212
  ]
205
213
  };