@wix/auto_sdk_automations_activations 1.0.135 → 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.
- package/build/cjs/index.d.ts +55 -27
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +86 -58
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +23 -23
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +30 -20
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +55 -27
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +86 -58
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +23 -23
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +30 -20
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +55 -27
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +86 -58
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +23 -23
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +30 -20
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +55 -27
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +86 -58
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +23 -23
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +30 -20
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -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 [
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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 [
|
|
57
|
-
* When you call
|
|
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
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
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
|
|
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
|
-
*
|
|
103
|
-
* @param -
|
|
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
|
-
*
|
|
111
|
-
*
|
|
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
|
}
|