@wix/auto_sdk_automations_activations 1.0.19 → 1.0.21
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/src/automations-v2-activation-activations.context.d.ts +2 -2
- package/build/cjs/src/automations-v2-activation-activations.context.js +4 -1
- package/build/cjs/src/automations-v2-activation-activations.context.js.map +1 -1
- package/build/cjs/src/automations-v2-activation-activations.meta.d.ts +3 -3
- package/build/cjs/src/automations-v2-activation-activations.meta.js.map +1 -1
- package/build/cjs/src/automations-v2-activation-activations.public.d.ts +5 -5
- package/build/cjs/src/automations-v2-activation-activations.public.js +4 -1
- package/build/cjs/src/automations-v2-activation-activations.public.js.map +1 -1
- package/build/cjs/src/automations-v2-activation-activations.types.d.ts +351 -209
- package/build/cjs/src/automations-v2-activation-activations.types.js +50 -19
- package/build/cjs/src/automations-v2-activation-activations.types.js.map +1 -1
- package/build/cjs/src/automations-v2-activation-activations.universal.d.ts +359 -212
- package/build/cjs/src/automations-v2-activation-activations.universal.js +54 -19
- package/build/cjs/src/automations-v2-activation-activations.universal.js.map +1 -1
- package/build/es/src/automations-v2-activation-activations.context.d.ts +2 -2
- package/build/es/src/automations-v2-activation-activations.context.js +1 -1
- package/build/es/src/automations-v2-activation-activations.context.js.map +1 -1
- package/build/es/src/automations-v2-activation-activations.meta.d.ts +3 -3
- package/build/es/src/automations-v2-activation-activations.meta.js.map +1 -1
- package/build/es/src/automations-v2-activation-activations.public.d.ts +5 -5
- package/build/es/src/automations-v2-activation-activations.public.js +1 -1
- package/build/es/src/automations-v2-activation-activations.public.js.map +1 -1
- package/build/es/src/automations-v2-activation-activations.types.d.ts +351 -209
- package/build/es/src/automations-v2-activation-activations.types.js +49 -18
- package/build/es/src/automations-v2-activation-activations.types.js.map +1 -1
- package/build/es/src/automations-v2-activation-activations.universal.d.ts +359 -212
- package/build/es/src/automations-v2-activation-activations.universal.js +53 -18
- package/build/es/src/automations-v2-activation-activations.universal.js.map +1 -1
- package/build/internal/cjs/src/automations-v2-activation-activations.context.d.ts +2 -2
- package/build/internal/cjs/src/automations-v2-activation-activations.context.js +4 -1
- package/build/internal/cjs/src/automations-v2-activation-activations.context.js.map +1 -1
- package/build/internal/cjs/src/automations-v2-activation-activations.meta.d.ts +3 -3
- package/build/internal/cjs/src/automations-v2-activation-activations.meta.js.map +1 -1
- package/build/internal/cjs/src/automations-v2-activation-activations.public.d.ts +5 -5
- package/build/internal/cjs/src/automations-v2-activation-activations.public.js +4 -1
- package/build/internal/cjs/src/automations-v2-activation-activations.public.js.map +1 -1
- package/build/internal/cjs/src/automations-v2-activation-activations.types.d.ts +351 -209
- package/build/internal/cjs/src/automations-v2-activation-activations.types.js +50 -19
- package/build/internal/cjs/src/automations-v2-activation-activations.types.js.map +1 -1
- package/build/internal/cjs/src/automations-v2-activation-activations.universal.d.ts +359 -212
- package/build/internal/cjs/src/automations-v2-activation-activations.universal.js +54 -19
- package/build/internal/cjs/src/automations-v2-activation-activations.universal.js.map +1 -1
- package/build/internal/es/src/automations-v2-activation-activations.context.d.ts +2 -2
- package/build/internal/es/src/automations-v2-activation-activations.context.js +1 -1
- package/build/internal/es/src/automations-v2-activation-activations.context.js.map +1 -1
- package/build/internal/es/src/automations-v2-activation-activations.meta.d.ts +3 -3
- package/build/internal/es/src/automations-v2-activation-activations.meta.js.map +1 -1
- package/build/internal/es/src/automations-v2-activation-activations.public.d.ts +5 -5
- package/build/internal/es/src/automations-v2-activation-activations.public.js +1 -1
- package/build/internal/es/src/automations-v2-activation-activations.public.js.map +1 -1
- package/build/internal/es/src/automations-v2-activation-activations.types.d.ts +351 -209
- package/build/internal/es/src/automations-v2-activation-activations.types.js +49 -18
- package/build/internal/es/src/automations-v2-activation-activations.types.js.map +1 -1
- package/build/internal/es/src/automations-v2-activation-activations.universal.d.ts +359 -212
- package/build/internal/es/src/automations-v2-activation-activations.universal.js +53 -18
- package/build/internal/es/src/automations-v2-activation-activations.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -8,9 +8,9 @@ export interface Activation {
|
|
|
8
8
|
automation?: Automation;
|
|
9
9
|
}
|
|
10
10
|
export interface Automation extends AutomationOriginInfoOneOf {
|
|
11
|
-
/**
|
|
11
|
+
/** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
|
|
12
12
|
applicationInfo?: ApplicationOrigin;
|
|
13
|
-
/**
|
|
13
|
+
/** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
|
|
14
14
|
preinstalledInfo?: PreinstalledOrigin;
|
|
15
15
|
/**
|
|
16
16
|
* Automation ID.
|
|
@@ -19,37 +19,33 @@ export interface Automation extends AutomationOriginInfoOneOf {
|
|
|
19
19
|
*/
|
|
20
20
|
id?: string | null;
|
|
21
21
|
/**
|
|
22
|
-
* Revision number
|
|
23
|
-
* To prevent conflicting changes,
|
|
24
|
-
* the current revision must be passed when updating the automation.
|
|
25
|
-
*
|
|
26
|
-
* Ignored when creating an automation.
|
|
22
|
+
* Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.
|
|
27
23
|
* @readonly
|
|
28
24
|
*/
|
|
29
25
|
revision?: string | null;
|
|
30
26
|
/**
|
|
31
|
-
*
|
|
27
|
+
* Who created the automation.
|
|
32
28
|
* @immutable
|
|
33
29
|
* @readonly
|
|
34
30
|
*/
|
|
35
31
|
createdBy?: AuditInfo;
|
|
36
32
|
/**
|
|
37
|
-
*
|
|
33
|
+
* When the automation was created.
|
|
38
34
|
* @readonly
|
|
39
35
|
*/
|
|
40
36
|
createdDate?: Date | null;
|
|
41
37
|
/**
|
|
42
|
-
*
|
|
38
|
+
* Who last updated the automation.
|
|
43
39
|
* @readonly
|
|
44
40
|
*/
|
|
45
41
|
updatedBy?: AuditInfo;
|
|
46
42
|
/**
|
|
47
|
-
*
|
|
43
|
+
* When the automation was last updated.
|
|
48
44
|
* @readonly
|
|
49
45
|
*/
|
|
50
46
|
updatedDate?: Date | null;
|
|
51
47
|
/**
|
|
52
|
-
* Automation name
|
|
48
|
+
* Automation name as displayed on the user's site.
|
|
53
49
|
* @minLength 1
|
|
54
50
|
* @maxLength 500
|
|
55
51
|
*/
|
|
@@ -59,60 +55,71 @@ export interface Automation extends AutomationOriginInfoOneOf {
|
|
|
59
55
|
* @maxLength 2000
|
|
60
56
|
*/
|
|
61
57
|
description?: string | null;
|
|
62
|
-
/**
|
|
58
|
+
/** Automation configuration. */
|
|
63
59
|
configuration?: AutomationConfiguration;
|
|
64
60
|
/**
|
|
65
|
-
*
|
|
61
|
+
* How the automation was added to the user's site.
|
|
66
62
|
* @immutable
|
|
67
63
|
*/
|
|
68
64
|
origin?: Origin;
|
|
69
65
|
/** Automation settings. */
|
|
70
66
|
settings?: AutomationSettings;
|
|
71
67
|
/**
|
|
72
|
-
*
|
|
68
|
+
* When the automation is a draft, the draft details.
|
|
73
69
|
* @readonly
|
|
74
70
|
*/
|
|
75
71
|
draftInfo?: DraftInfo;
|
|
76
72
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
73
|
+
* Whether the automation is archived.
|
|
74
|
+
*
|
|
75
|
+
* To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
|
|
79
76
|
*/
|
|
80
|
-
|
|
81
|
-
/** Extended Fields */
|
|
82
|
-
extendedFields?: ExtendedFields;
|
|
77
|
+
archived?: boolean;
|
|
83
78
|
}
|
|
84
79
|
/** @oneof */
|
|
85
80
|
export interface AutomationOriginInfoOneOf {
|
|
86
|
-
/**
|
|
81
|
+
/** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
|
|
87
82
|
applicationInfo?: ApplicationOrigin;
|
|
88
|
-
/**
|
|
83
|
+
/** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
|
|
89
84
|
preinstalledInfo?: PreinstalledOrigin;
|
|
90
85
|
}
|
|
91
86
|
export interface ActionSettings {
|
|
92
87
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
88
|
+
* Permanent actions. Permanent actions cannot be deleted.
|
|
89
|
+
*
|
|
90
|
+
* When empty, all actions can be deleted by the user.
|
|
95
91
|
* @maxSize 30
|
|
96
92
|
* @format GUID
|
|
97
93
|
*/
|
|
98
94
|
permanentActionIds?: string[];
|
|
99
95
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
96
|
+
* Read-only actions. Read-only actions cannot be edited.
|
|
97
|
+
*
|
|
98
|
+
* When empty, all actions are editable.
|
|
102
99
|
* @maxSize 30
|
|
103
100
|
* @format GUID
|
|
104
101
|
*/
|
|
105
102
|
readonlyActionIds?: string[];
|
|
106
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Whether to disable the ability to add a delay to the automation.
|
|
105
|
+
*
|
|
106
|
+
* Default: `false`.
|
|
107
|
+
*/
|
|
107
108
|
disableDelayAddition?: boolean;
|
|
108
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Whether to disable the ability to add a condition to the automation.
|
|
111
|
+
*
|
|
112
|
+
* Default: `false`.
|
|
113
|
+
*/
|
|
109
114
|
disableConditionAddition?: boolean;
|
|
110
115
|
}
|
|
111
116
|
export declare enum Domain {
|
|
112
117
|
/** User domain (default). */
|
|
113
118
|
USER = "USER",
|
|
114
119
|
/** Wix domain. */
|
|
115
|
-
WIX = "WIX"
|
|
120
|
+
WIX = "WIX",
|
|
121
|
+
/** Wix account-level domain. */
|
|
122
|
+
WIX_ACCOUNT = "WIX_ACCOUNT"
|
|
116
123
|
}
|
|
117
124
|
export interface Enrichment {
|
|
118
125
|
/**
|
|
@@ -123,12 +130,14 @@ export interface Enrichment {
|
|
|
123
130
|
}
|
|
124
131
|
export interface AuditInfo extends AuditInfoIdOneOf {
|
|
125
132
|
/**
|
|
126
|
-
* User ID.
|
|
133
|
+
* [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
|
|
127
134
|
* @format GUID
|
|
128
135
|
*/
|
|
129
136
|
userId?: string;
|
|
130
137
|
/**
|
|
131
|
-
*
|
|
138
|
+
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
139
|
+
*
|
|
140
|
+
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
132
141
|
* @format GUID
|
|
133
142
|
*/
|
|
134
143
|
appId?: string;
|
|
@@ -136,40 +145,45 @@ export interface AuditInfo extends AuditInfoIdOneOf {
|
|
|
136
145
|
/** @oneof */
|
|
137
146
|
export interface AuditInfoIdOneOf {
|
|
138
147
|
/**
|
|
139
|
-
* User ID.
|
|
148
|
+
* [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
|
|
140
149
|
* @format GUID
|
|
141
150
|
*/
|
|
142
151
|
userId?: string;
|
|
143
152
|
/**
|
|
144
|
-
*
|
|
153
|
+
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
154
|
+
*
|
|
155
|
+
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
145
156
|
* @format GUID
|
|
146
157
|
*/
|
|
147
158
|
appId?: string;
|
|
148
159
|
}
|
|
149
|
-
/** Automation runtime configuration */
|
|
150
160
|
export interface AutomationConfiguration {
|
|
151
161
|
/** Status of the automation on the site. */
|
|
152
162
|
status?: AutomationConfigurationStatus;
|
|
153
|
-
/**
|
|
163
|
+
/** Trigger configuration. */
|
|
154
164
|
trigger?: Trigger;
|
|
155
165
|
/**
|
|
156
|
-
*
|
|
166
|
+
* Root action IDs. A root action is the first action that runs after the trigger occurs. Root actions run in parallel.
|
|
167
|
+
*
|
|
168
|
+
* > **Note**: You can currently only specify 1 root action.
|
|
157
169
|
* @maxSize 20
|
|
158
170
|
* @format GUID
|
|
159
171
|
*/
|
|
160
172
|
rootActionIds?: string[];
|
|
161
|
-
/**
|
|
162
|
-
* Map of all actions that the automation may execute.
|
|
163
|
-
* The key is the action ID, and the value is the action configuration.
|
|
164
|
-
*/
|
|
173
|
+
/** Actions the automation can execute, as key:value pairs. For the key, specify the action ID. The value must be an object structured as described below. */
|
|
165
174
|
actions?: Record<string, AutomationConfigurationAction>;
|
|
166
175
|
}
|
|
167
176
|
export declare enum TimeUnit {
|
|
168
177
|
UNKNOWN_TIME_UNIT = "UNKNOWN_TIME_UNIT",
|
|
178
|
+
/** Minutes. */
|
|
169
179
|
MINUTES = "MINUTES",
|
|
180
|
+
/** Hours. */
|
|
170
181
|
HOURS = "HOURS",
|
|
182
|
+
/** Days. */
|
|
171
183
|
DAYS = "DAYS",
|
|
184
|
+
/** Weeks. */
|
|
172
185
|
WEEKS = "WEEKS",
|
|
186
|
+
/** Months. */
|
|
173
187
|
MONTHS = "MONTHS"
|
|
174
188
|
}
|
|
175
189
|
export interface Filter {
|
|
@@ -179,42 +193,49 @@ export interface Filter {
|
|
|
179
193
|
*/
|
|
180
194
|
id?: string;
|
|
181
195
|
/**
|
|
182
|
-
* Field key
|
|
196
|
+
* Field key.
|
|
197
|
+
*
|
|
198
|
+
* You can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).
|
|
183
199
|
* @minLength 1
|
|
184
200
|
* @maxLength 110
|
|
185
201
|
*/
|
|
186
202
|
fieldKey?: string;
|
|
187
203
|
/**
|
|
188
|
-
* Filter expression
|
|
204
|
+
* Filter expression.
|
|
205
|
+
*
|
|
206
|
+
* For the automation to run, the expression must evaluate to `true`.
|
|
189
207
|
* @maxLength 2500
|
|
190
208
|
*/
|
|
191
209
|
filterExpression?: string;
|
|
192
210
|
}
|
|
193
211
|
export interface FutureDateActivationOffset {
|
|
194
212
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
213
|
+
* Amount of time before the trigger to run the automation.
|
|
214
|
+
*
|
|
215
|
+
* > **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#delay-action).
|
|
197
216
|
* @maxLength 1000
|
|
198
217
|
*/
|
|
199
218
|
preScheduledEventOffsetExpression?: string;
|
|
200
|
-
/**
|
|
219
|
+
/** Unit in which to set the action offset. */
|
|
201
220
|
scheduledEventOffsetTimeUnit?: TimeUnit;
|
|
202
221
|
}
|
|
203
222
|
export interface RateLimit {
|
|
204
223
|
/**
|
|
205
|
-
*
|
|
224
|
+
* Maximum number of times the trigger can be activated.
|
|
206
225
|
* @maxLength 1000
|
|
207
226
|
*/
|
|
208
227
|
maxActivationsExpression?: string;
|
|
209
228
|
/**
|
|
210
|
-
* Duration of the rate
|
|
229
|
+
* Duration of the rate limit. The rate limit applies for the specified duration and then expires.
|
|
230
|
+
*
|
|
231
|
+
* When empty, the rate limit does not expire.
|
|
211
232
|
* @maxLength 1000
|
|
212
233
|
*/
|
|
213
234
|
durationExpression?: string | null;
|
|
214
|
-
/**
|
|
235
|
+
/** Unit in which to set the duration of the rate limit. */
|
|
215
236
|
durationTimeUnit?: TimeUnit;
|
|
216
237
|
/**
|
|
217
|
-
*
|
|
238
|
+
* Activation identifier used to count the number of activations.
|
|
218
239
|
* @minLength 1
|
|
219
240
|
* @maxLength 400
|
|
220
241
|
*/
|
|
@@ -222,17 +243,17 @@ export interface RateLimit {
|
|
|
222
243
|
}
|
|
223
244
|
export interface FilterValueSelection {
|
|
224
245
|
/**
|
|
225
|
-
* Values that can help the user filter certain automations
|
|
246
|
+
* Values that can help the user filter certain automations. Specify values in the following format: `<filter_id>__<selected_value>`.
|
|
226
247
|
* @maxLength 80
|
|
227
248
|
* @maxSize 50
|
|
228
249
|
*/
|
|
229
250
|
selectedFilterValues?: string[];
|
|
230
251
|
}
|
|
231
252
|
export interface ConditionExpressionGroup {
|
|
232
|
-
/**
|
|
253
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
233
254
|
operator?: Operator;
|
|
234
255
|
/**
|
|
235
|
-
*
|
|
256
|
+
* Expressions evaluated using the selected operator.
|
|
236
257
|
* @minSize 1
|
|
237
258
|
* @maxSize 20
|
|
238
259
|
* @maxLength 2500
|
|
@@ -240,25 +261,58 @@ export interface ConditionExpressionGroup {
|
|
|
240
261
|
booleanExpressions?: string[];
|
|
241
262
|
}
|
|
242
263
|
export declare enum Operator {
|
|
264
|
+
/** Unknown. */
|
|
243
265
|
UNKNOWN_OPERATOR = "UNKNOWN_OPERATOR",
|
|
266
|
+
/** `OR` operator. */
|
|
244
267
|
OR = "OR",
|
|
268
|
+
/** `AND` operator. */
|
|
245
269
|
AND = "AND"
|
|
246
270
|
}
|
|
271
|
+
export interface ActionCodeSnippet {
|
|
272
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
273
|
+
language?: CodeSnippetLanguage;
|
|
274
|
+
/**
|
|
275
|
+
* Expressions evaluated using the selected operator. this code should comply the language syntax. and format
|
|
276
|
+
* @maxLength 1000
|
|
277
|
+
*/
|
|
278
|
+
code?: string;
|
|
279
|
+
}
|
|
280
|
+
export declare enum CodeSnippetLanguage {
|
|
281
|
+
/** Unknown. */
|
|
282
|
+
UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
|
|
283
|
+
/** `JAVASCRIPT` language. */
|
|
284
|
+
JAVASCRIPT = "JAVASCRIPT"
|
|
285
|
+
}
|
|
286
|
+
/** Path definition */
|
|
287
|
+
export interface Path {
|
|
288
|
+
/**
|
|
289
|
+
* Unique path ID.
|
|
290
|
+
* @format GUID
|
|
291
|
+
*/
|
|
292
|
+
id?: string;
|
|
293
|
+
/**
|
|
294
|
+
* Path display name.
|
|
295
|
+
* @minLength 1
|
|
296
|
+
* @maxLength 100
|
|
297
|
+
*/
|
|
298
|
+
name?: string;
|
|
299
|
+
/**
|
|
300
|
+
* ID of the action to run when this path is taken.
|
|
301
|
+
* @format GUID
|
|
302
|
+
*/
|
|
303
|
+
postActionId?: string | null;
|
|
304
|
+
}
|
|
247
305
|
export declare enum Type {
|
|
248
|
-
/**
|
|
306
|
+
/** Based on the trigger. */
|
|
249
307
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
250
|
-
/**
|
|
308
|
+
/** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#app-defined-actions). This action type is available in the site dashboard. */
|
|
251
309
|
APP_DEFINED = "APP_DEFINED",
|
|
252
|
-
/** Condition
|
|
310
|
+
/** Condition. This determines which action runs next. */
|
|
253
311
|
CONDITION = "CONDITION",
|
|
254
|
-
/** Delay
|
|
312
|
+
/** Delay. The automation must wait before executing the next step. */
|
|
255
313
|
DELAY = "DELAY",
|
|
256
|
-
/**
|
|
257
|
-
RATE_LIMIT = "RATE_LIMIT"
|
|
258
|
-
/** Set Variables Action. */
|
|
259
|
-
SET_VARIABLES = "SET_VARIABLES",
|
|
260
|
-
/** Output Action. */
|
|
261
|
-
OUTPUT = "OUTPUT"
|
|
314
|
+
/** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
|
|
315
|
+
RATE_LIMIT = "RATE_LIMIT"
|
|
262
316
|
}
|
|
263
317
|
export interface AppDefinedAction {
|
|
264
318
|
/**
|
|
@@ -272,39 +326,55 @@ export interface AppDefinedAction {
|
|
|
272
326
|
* @maxLength 100
|
|
273
327
|
*/
|
|
274
328
|
actionKey?: string;
|
|
275
|
-
/** Action input mapping. */
|
|
329
|
+
/** Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema). */
|
|
276
330
|
inputMapping?: Record<string, any> | null;
|
|
277
331
|
/**
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
* Actions
|
|
332
|
+
* Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
|
|
333
|
+
*
|
|
334
|
+
* > **Note**: Actions that follow a skipped action still run.
|
|
281
335
|
* @maxSize 10
|
|
282
336
|
*/
|
|
283
337
|
skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
|
|
284
338
|
/**
|
|
285
|
-
*
|
|
339
|
+
* IDs of actions that run in parallel after the action completes.
|
|
286
340
|
* @maxSize 20
|
|
287
341
|
* @format GUID
|
|
288
342
|
*/
|
|
289
343
|
postActionIds?: string[];
|
|
290
|
-
/**
|
|
344
|
+
/** Action output schema. When specified, this replaces the action schema. */
|
|
291
345
|
overrideOutputSchema?: Record<string, any> | null;
|
|
292
346
|
}
|
|
293
347
|
export interface ConditionAction {
|
|
294
348
|
/**
|
|
295
|
-
*
|
|
349
|
+
* Condition is `true` if one or more of the expression groups evaluates to `true`.
|
|
296
350
|
* @minSize 1
|
|
297
351
|
* @maxSize 10
|
|
298
352
|
*/
|
|
299
353
|
orExpressionGroups?: ConditionExpressionGroup[];
|
|
300
354
|
/**
|
|
301
|
-
*
|
|
355
|
+
* IDs of actions to run when the condition evaluates to `true`.
|
|
302
356
|
* @maxSize 20
|
|
303
357
|
* @format GUID
|
|
304
358
|
*/
|
|
305
359
|
truePostActionIds?: string[];
|
|
306
360
|
/**
|
|
307
|
-
*
|
|
361
|
+
* IDs of actions to run when the condition evaluates to `false`.
|
|
362
|
+
* @maxSize 20
|
|
363
|
+
* @format GUID
|
|
364
|
+
*/
|
|
365
|
+
falsePostActionIds?: string[];
|
|
366
|
+
}
|
|
367
|
+
export interface CodeConditionAction {
|
|
368
|
+
/** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */
|
|
369
|
+
snippet?: ActionCodeSnippet;
|
|
370
|
+
/**
|
|
371
|
+
* IDs of actions to run when the condition evaluates to `true`.
|
|
372
|
+
* @maxSize 20
|
|
373
|
+
* @format GUID
|
|
374
|
+
*/
|
|
375
|
+
truePostActionIds?: string[];
|
|
376
|
+
/**
|
|
377
|
+
* IDs of actions to run when the condition evaluates to `false`.
|
|
308
378
|
* @maxSize 20
|
|
309
379
|
* @format GUID
|
|
310
380
|
*/
|
|
@@ -312,21 +382,23 @@ export interface ConditionAction {
|
|
|
312
382
|
}
|
|
313
383
|
export interface DelayAction {
|
|
314
384
|
/**
|
|
315
|
-
*
|
|
385
|
+
* Time to wait before running the action. The wait time starts from when the current action completes.
|
|
386
|
+
*
|
|
387
|
+
* > **Note**: To define the wait time from a specific moment in time, use `dueDateEpochExpression`.
|
|
316
388
|
* @maxLength 1000
|
|
317
389
|
*/
|
|
318
390
|
offsetExpression?: string | null;
|
|
319
|
-
/**
|
|
391
|
+
/** Unit in which to set the wait time to wait before the action runs. */
|
|
320
392
|
offsetTimeUnit?: TimeUnit;
|
|
321
393
|
/**
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
394
|
+
* Action run date in milliseconds elapsed since January 1, 1970 UTC.
|
|
395
|
+
*
|
|
396
|
+
* > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
|
|
325
397
|
* @maxLength 1000
|
|
326
398
|
*/
|
|
327
399
|
dueDateEpochExpression?: string | null;
|
|
328
400
|
/**
|
|
329
|
-
*
|
|
401
|
+
* IDs of actions to run in parallel after the time delay.
|
|
330
402
|
* @maxSize 20
|
|
331
403
|
* @format GUID
|
|
332
404
|
*/
|
|
@@ -334,17 +406,18 @@ export interface DelayAction {
|
|
|
334
406
|
}
|
|
335
407
|
export interface RateLimitAction {
|
|
336
408
|
/**
|
|
337
|
-
*
|
|
409
|
+
* Maximum number of times the action can run.
|
|
338
410
|
* @maxLength 1000
|
|
339
411
|
*/
|
|
340
412
|
maxActivationsExpression?: string;
|
|
341
413
|
/**
|
|
342
|
-
*
|
|
343
|
-
*
|
|
414
|
+
* Rate limit duration.
|
|
415
|
+
*
|
|
416
|
+
* When empty, the rate limit does not expire.
|
|
344
417
|
* @maxLength 1000
|
|
345
418
|
*/
|
|
346
419
|
rateLimitDurationExpression?: string | null;
|
|
347
|
-
/**
|
|
420
|
+
/** Unit in which to set the duration of the rate limit. */
|
|
348
421
|
rateLimitDurationTimeUnit?: TimeUnit;
|
|
349
422
|
/**
|
|
350
423
|
* Unique identifier of each activation by which rate limiter counts activations.
|
|
@@ -353,25 +426,23 @@ export interface RateLimitAction {
|
|
|
353
426
|
*/
|
|
354
427
|
uniqueIdentifierExpression?: string | null;
|
|
355
428
|
/**
|
|
356
|
-
*
|
|
429
|
+
* IDs of actions to run in parallel after the action completes.
|
|
357
430
|
* @maxSize 20
|
|
358
431
|
* @format GUID
|
|
359
432
|
*/
|
|
360
433
|
postActionIds?: string[];
|
|
361
434
|
}
|
|
362
435
|
export interface SetVariablesAction {
|
|
363
|
-
/**
|
|
364
|
-
* output mapping
|
|
365
|
-
* for example: {"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }
|
|
366
|
-
*/
|
|
436
|
+
/** Output mapping. For example: `{"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }`. */
|
|
367
437
|
outputMapping?: Record<string, any> | null;
|
|
368
438
|
/**
|
|
369
|
-
*
|
|
370
|
-
*
|
|
439
|
+
* Output JSON schema representation.
|
|
440
|
+
*
|
|
441
|
+
* > **Note**: To minimize request size, you can also specify a string.
|
|
371
442
|
*/
|
|
372
443
|
outputSchema?: Record<string, any> | null;
|
|
373
444
|
/**
|
|
374
|
-
*
|
|
445
|
+
* IDs of actions to run in parallel after variable initialization.
|
|
375
446
|
* @maxSize 20
|
|
376
447
|
* @format GUID
|
|
377
448
|
*/
|
|
@@ -381,12 +452,20 @@ export interface OutputAction {
|
|
|
381
452
|
/** Output action output mapping. */
|
|
382
453
|
outputMapping?: Record<string, any> | null;
|
|
383
454
|
}
|
|
455
|
+
export interface SplitAction {
|
|
456
|
+
/**
|
|
457
|
+
* List of paths to split execution into.
|
|
458
|
+
* @minSize 2
|
|
459
|
+
* @maxSize 10
|
|
460
|
+
*/
|
|
461
|
+
paths?: Path[];
|
|
462
|
+
}
|
|
384
463
|
export declare enum AutomationConfigurationStatus {
|
|
385
|
-
/**
|
|
464
|
+
/** Unknown. */
|
|
386
465
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
387
|
-
/**
|
|
466
|
+
/** Active. Active automations can be triggered. */
|
|
388
467
|
ACTIVE = "ACTIVE",
|
|
389
|
-
/**
|
|
468
|
+
/** Inactive. Inactive automations cannot be triggered. */
|
|
390
469
|
INACTIVE = "INACTIVE"
|
|
391
470
|
}
|
|
392
471
|
export interface Trigger {
|
|
@@ -397,51 +476,54 @@ export interface Trigger {
|
|
|
397
476
|
appId?: string;
|
|
398
477
|
/**
|
|
399
478
|
* Trigger key.
|
|
479
|
+
*
|
|
480
|
+
* Learn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).
|
|
400
481
|
* @minLength 1
|
|
401
482
|
* @maxLength 100
|
|
402
483
|
*/
|
|
403
484
|
triggerKey?: string;
|
|
404
485
|
/**
|
|
405
|
-
*
|
|
406
|
-
*
|
|
486
|
+
* Schema field filters. All filter conditions must be met for the automation to run.
|
|
487
|
+
*
|
|
488
|
+
* Learn more about setting up [automation filters](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#filters).
|
|
407
489
|
* @maxSize 5
|
|
408
490
|
*/
|
|
409
491
|
filters?: Filter[];
|
|
410
|
-
/** Defines the time offset between the trigger date and when the automation runs. */
|
|
411
|
-
scheduledEventOffset?: FutureDateActivationOffset;
|
|
412
|
-
/** Limits the number of times an automation can be triggered. */
|
|
413
|
-
rateLimit?: RateLimit;
|
|
414
492
|
/**
|
|
415
|
-
*
|
|
416
|
-
*
|
|
417
|
-
*
|
|
493
|
+
* Automation offset. You can schedule automations to run before the trigger occurs.
|
|
494
|
+
*
|
|
495
|
+
* Learn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).
|
|
418
496
|
*/
|
|
419
|
-
|
|
420
|
-
/**
|
|
497
|
+
scheduledEventOffset?: FutureDateActivationOffset;
|
|
498
|
+
/** Limit on the number of times an automation can be triggered. */
|
|
499
|
+
rateLimit?: RateLimit;
|
|
500
|
+
/** Trigger schema override. When specified, this replaces the trigger schema. */
|
|
421
501
|
overrideSchema?: Record<string, any> | null;
|
|
422
502
|
}
|
|
423
503
|
export interface AutomationConfigurationAction extends AutomationConfigurationActionInfoOneOf {
|
|
424
|
-
/**
|
|
504
|
+
/** Details of the action when its `type` is `APP_DEFINED`. */
|
|
425
505
|
appDefinedInfo?: AppDefinedAction;
|
|
426
|
-
/**
|
|
506
|
+
/** Details of the action when its `type` is `CONDITION`. */
|
|
427
507
|
conditionInfo?: ConditionAction;
|
|
428
|
-
/**
|
|
508
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
509
|
+
codeConditionInfo?: CodeConditionAction;
|
|
510
|
+
/** Details of the action when its `type` is `DELAY`. */
|
|
429
511
|
delayInfo?: DelayAction;
|
|
430
|
-
/**
|
|
512
|
+
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
431
513
|
rateLimitInfo?: RateLimitAction;
|
|
432
514
|
/**
|
|
433
|
-
* Action ID.
|
|
515
|
+
* Action ID.
|
|
516
|
+
*
|
|
517
|
+
* If not specified, automatically generated by Wix.
|
|
434
518
|
* @format GUID
|
|
435
519
|
*/
|
|
436
520
|
id?: string | null;
|
|
437
|
-
/** Action type. */
|
|
521
|
+
/** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#action-type). */
|
|
438
522
|
type?: Type;
|
|
439
523
|
/**
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
443
|
-
* If the action has output, the output will be available in the payload under this name.
|
|
444
|
-
* If the user has multiple actions with the same appId and actionKey, previous action output will be overwritten.
|
|
524
|
+
* [Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#namespace). This differentiates it from other actions of the same type.
|
|
525
|
+
*
|
|
526
|
+
* If the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.
|
|
445
527
|
* @minLength 1
|
|
446
528
|
* @maxLength 100
|
|
447
529
|
*/
|
|
@@ -449,18 +531,20 @@ export interface AutomationConfigurationAction extends AutomationConfigurationAc
|
|
|
449
531
|
}
|
|
450
532
|
/** @oneof */
|
|
451
533
|
export interface AutomationConfigurationActionInfoOneOf {
|
|
452
|
-
/**
|
|
534
|
+
/** Details of the action when its `type` is `APP_DEFINED`. */
|
|
453
535
|
appDefinedInfo?: AppDefinedAction;
|
|
454
|
-
/**
|
|
536
|
+
/** Details of the action when its `type` is `CONDITION`. */
|
|
455
537
|
conditionInfo?: ConditionAction;
|
|
456
|
-
/**
|
|
538
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
539
|
+
codeConditionInfo?: CodeConditionAction;
|
|
540
|
+
/** Details of the action when its `type` is `DELAY`. */
|
|
457
541
|
delayInfo?: DelayAction;
|
|
458
|
-
/**
|
|
542
|
+
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
459
543
|
rateLimitInfo?: RateLimitAction;
|
|
460
544
|
}
|
|
461
545
|
export interface FilterableAppDefinedActions {
|
|
462
546
|
/**
|
|
463
|
-
* App
|
|
547
|
+
* App-defined action identifiers. Identifiers have the following format: `${appId}_${actionKey}`.
|
|
464
548
|
* @minSize 1
|
|
465
549
|
* @maxSize 100
|
|
466
550
|
* @minLength 1
|
|
@@ -469,48 +553,40 @@ export interface FilterableAppDefinedActions {
|
|
|
469
553
|
actionIdentifiers?: string[];
|
|
470
554
|
}
|
|
471
555
|
export declare enum Origin {
|
|
472
|
-
/** Default value.
|
|
556
|
+
/** Default value. */
|
|
473
557
|
UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
|
|
474
|
-
/**
|
|
558
|
+
/** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */
|
|
475
559
|
USER = "USER",
|
|
476
|
-
/**
|
|
560
|
+
/** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */
|
|
477
561
|
APPLICATION = "APPLICATION",
|
|
478
|
-
/** Preinstalled
|
|
479
|
-
PREINSTALLED = "PREINSTALLED"
|
|
480
|
-
/** Automation created from a recipe. */
|
|
481
|
-
RECIPE = "RECIPE"
|
|
562
|
+
/** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */
|
|
563
|
+
PREINSTALLED = "PREINSTALLED"
|
|
482
564
|
}
|
|
483
565
|
export interface ApplicationOrigin {
|
|
484
566
|
/**
|
|
485
|
-
*
|
|
567
|
+
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
568
|
+
*
|
|
569
|
+
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
486
570
|
* @format GUID
|
|
487
571
|
*/
|
|
488
572
|
appId?: string;
|
|
489
|
-
/**
|
|
490
|
-
* External ID to correlate multiple sites to an automation
|
|
491
|
-
* @format GUID
|
|
492
|
-
*/
|
|
493
|
-
appDefinedExternalId?: string | null;
|
|
494
573
|
}
|
|
495
574
|
export interface PreinstalledOrigin {
|
|
496
575
|
/**
|
|
497
|
-
* ID of the app that
|
|
576
|
+
* ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).
|
|
498
577
|
* @format GUID
|
|
499
578
|
*/
|
|
500
579
|
appId?: string;
|
|
501
580
|
/**
|
|
502
|
-
*
|
|
503
|
-
* @format GUID
|
|
504
|
-
*/
|
|
505
|
-
componentId?: string;
|
|
506
|
-
/** Application component version. */
|
|
507
|
-
componentVersion?: number;
|
|
508
|
-
/**
|
|
509
|
-
* Whether the automation is an override automation. If the user modifies the preinstalled automation installed on their site, a site-specific
|
|
510
|
-
* automation is created that overrides the original one. If the user makes no modifications this boolean is set to `false` and the original
|
|
511
|
-
* preinstalled automation is used.
|
|
581
|
+
* Whether the automation is an override.
|
|
512
582
|
*
|
|
513
|
-
*
|
|
583
|
+
* When a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.
|
|
584
|
+
*
|
|
585
|
+
* > **Note**: An override automation can no longer be updated by the app that originally installed it.
|
|
586
|
+
* >
|
|
587
|
+
* > To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.
|
|
588
|
+
*
|
|
589
|
+
* Default: `false`.
|
|
514
590
|
* @immutable
|
|
515
591
|
* @readonly
|
|
516
592
|
*/
|
|
@@ -519,22 +595,26 @@ export interface PreinstalledOrigin {
|
|
|
519
595
|
export interface AutomationSettings {
|
|
520
596
|
/**
|
|
521
597
|
* Whether the automation is hidden from users.
|
|
598
|
+
*
|
|
522
599
|
* Default: `false`
|
|
523
600
|
*/
|
|
524
601
|
hidden?: boolean;
|
|
525
602
|
/**
|
|
526
603
|
* Whether the automation is read-only.
|
|
604
|
+
*
|
|
527
605
|
* Default: `false`
|
|
528
606
|
*/
|
|
529
607
|
readonly?: boolean;
|
|
530
608
|
/**
|
|
531
|
-
* Whether the option to delete the automation from the site
|
|
532
|
-
*
|
|
609
|
+
* Whether to disable the option to delete the automation from the site.
|
|
610
|
+
*
|
|
611
|
+
* Default: `false`.
|
|
533
612
|
*/
|
|
534
613
|
disableDelete?: boolean;
|
|
535
614
|
/**
|
|
536
|
-
* Whether the option to change the automation status
|
|
537
|
-
*
|
|
615
|
+
* Whether to disable the option to change the automation's `configuration.status`, for example from `ACTIVE` to `INACTIVE`.
|
|
616
|
+
*
|
|
617
|
+
* Default: `false`.
|
|
538
618
|
*/
|
|
539
619
|
disableStatusChange?: boolean;
|
|
540
620
|
/** Automation action settings. */
|
|
@@ -542,7 +622,7 @@ export interface AutomationSettings {
|
|
|
542
622
|
}
|
|
543
623
|
export interface DraftInfo {
|
|
544
624
|
/**
|
|
545
|
-
*
|
|
625
|
+
* ID of the original automation.
|
|
546
626
|
* @format GUID
|
|
547
627
|
* @readonly
|
|
548
628
|
*/
|
|
@@ -668,6 +748,14 @@ export declare enum ActivationStatusChangedStatus {
|
|
|
668
748
|
*/
|
|
669
749
|
SKIPPED = "SKIPPED"
|
|
670
750
|
}
|
|
751
|
+
export interface Metadata {
|
|
752
|
+
/**
|
|
753
|
+
* Identity field keys that are collected from the trigger payload schema, including contact and member ids
|
|
754
|
+
* @maxSize 100
|
|
755
|
+
* @maxLength 100
|
|
756
|
+
*/
|
|
757
|
+
identityFieldKeys?: string[];
|
|
758
|
+
}
|
|
671
759
|
export interface InitiatedStatusInfo {
|
|
672
760
|
/** Activation target */
|
|
673
761
|
target?: Target;
|
|
@@ -884,25 +972,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
884
972
|
updatedEvent?: EntityUpdatedEvent;
|
|
885
973
|
deletedEvent?: EntityDeletedEvent;
|
|
886
974
|
actionEvent?: ActionEvent;
|
|
887
|
-
/**
|
|
888
|
-
* Unique event ID.
|
|
889
|
-
* Allows clients to ignore duplicate webhooks.
|
|
890
|
-
*/
|
|
975
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
891
976
|
id?: string;
|
|
892
977
|
/**
|
|
893
|
-
*
|
|
894
|
-
*
|
|
978
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
979
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
895
980
|
*/
|
|
896
981
|
entityFqdn?: string;
|
|
897
982
|
/**
|
|
898
|
-
*
|
|
899
|
-
*
|
|
900
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
983
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
984
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
901
985
|
*/
|
|
902
986
|
slug?: string;
|
|
903
987
|
/** ID of the entity associated with the event. */
|
|
904
988
|
entityId?: string;
|
|
905
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
989
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
906
990
|
eventTime?: Date | null;
|
|
907
991
|
/**
|
|
908
992
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -912,12 +996,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
912
996
|
/** If present, indicates the action that triggered the event. */
|
|
913
997
|
originatedFrom?: string | null;
|
|
914
998
|
/**
|
|
915
|
-
* A sequence number
|
|
916
|
-
*
|
|
917
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
918
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
919
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
920
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
999
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1000
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
921
1001
|
*/
|
|
922
1002
|
entityEventSequence?: string | null;
|
|
923
1003
|
}
|
|
@@ -945,7 +1025,7 @@ export interface EntityUpdatedEvent {
|
|
|
945
1025
|
currentEntityAsJson?: string;
|
|
946
1026
|
}
|
|
947
1027
|
export interface EntityDeletedEvent {
|
|
948
|
-
/** Entity that was deleted */
|
|
1028
|
+
/** Entity that was deleted. */
|
|
949
1029
|
deletedEntityAsJson?: string | null;
|
|
950
1030
|
}
|
|
951
1031
|
export interface ActionEvent {
|
|
@@ -1264,6 +1344,41 @@ export interface ConditionBlock {
|
|
|
1264
1344
|
*/
|
|
1265
1345
|
lineExpressions?: string[];
|
|
1266
1346
|
}
|
|
1347
|
+
export interface CodeConditionFilter {
|
|
1348
|
+
/** Code Snippet */
|
|
1349
|
+
snippet?: CodeSnippet;
|
|
1350
|
+
/**
|
|
1351
|
+
* Actions to perform when condition_blocks evaluates to `true`.
|
|
1352
|
+
* @maxSize 2000
|
|
1353
|
+
*/
|
|
1354
|
+
postActions?: ActionData[];
|
|
1355
|
+
/**
|
|
1356
|
+
* Action's post actions ids.
|
|
1357
|
+
* @format GUID
|
|
1358
|
+
* @maxSize 20
|
|
1359
|
+
*/
|
|
1360
|
+
postActionsIds?: string[];
|
|
1361
|
+
/**
|
|
1362
|
+
* Actions to perform when condition_blocks evaluates to `false`.
|
|
1363
|
+
* @maxSize 2000
|
|
1364
|
+
*/
|
|
1365
|
+
elsePostActions?: ActionData[];
|
|
1366
|
+
}
|
|
1367
|
+
export interface CodeSnippet {
|
|
1368
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
1369
|
+
language?: Language;
|
|
1370
|
+
/**
|
|
1371
|
+
* Expressions evaluated using the selected operator.
|
|
1372
|
+
* @maxLength 1000
|
|
1373
|
+
*/
|
|
1374
|
+
code?: string;
|
|
1375
|
+
}
|
|
1376
|
+
export declare enum Language {
|
|
1377
|
+
/** Unknown. */
|
|
1378
|
+
UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
|
|
1379
|
+
/** `JAVASCRIPT` language. */
|
|
1380
|
+
JAVASCRIPT = "JAVASCRIPT"
|
|
1381
|
+
}
|
|
1267
1382
|
export interface Output {
|
|
1268
1383
|
/**
|
|
1269
1384
|
* The jsonata to use to produce the output
|
|
@@ -1298,6 +1413,8 @@ export interface SetVariables {
|
|
|
1298
1413
|
* @maxLength 100
|
|
1299
1414
|
*/
|
|
1300
1415
|
namespace?: string | null;
|
|
1416
|
+
/** Json Schema for the output mapping */
|
|
1417
|
+
outputSchema?: Record<string, any> | null;
|
|
1301
1418
|
}
|
|
1302
1419
|
export interface Service {
|
|
1303
1420
|
/** Action's service mapping. */
|
|
@@ -1332,6 +1449,7 @@ export interface SystemHelper extends SystemHelperHelperOneOf {
|
|
|
1332
1449
|
delay?: DelayHelper;
|
|
1333
1450
|
rateLimiting?: RateLimiting;
|
|
1334
1451
|
conditionFilter?: ConditionFilter;
|
|
1452
|
+
codeConditionFilter?: CodeConditionFilter;
|
|
1335
1453
|
output?: Output;
|
|
1336
1454
|
setVariables?: SetVariables;
|
|
1337
1455
|
}
|
|
@@ -1342,6 +1460,7 @@ export interface SystemHelperHelperOneOf {
|
|
|
1342
1460
|
delay?: DelayHelper;
|
|
1343
1461
|
rateLimiting?: RateLimiting;
|
|
1344
1462
|
conditionFilter?: ConditionFilter;
|
|
1463
|
+
codeConditionFilter?: CodeConditionFilter;
|
|
1345
1464
|
output?: Output;
|
|
1346
1465
|
setVariables?: SetVariables;
|
|
1347
1466
|
}
|
|
@@ -1759,6 +1878,64 @@ export interface ActivationScheduleCompleted {
|
|
|
1759
1878
|
*/
|
|
1760
1879
|
externalEntityId?: string | null;
|
|
1761
1880
|
}
|
|
1881
|
+
export interface ActionRetryRequest {
|
|
1882
|
+
/** The activation context */
|
|
1883
|
+
activationContext?: ActivationContext;
|
|
1884
|
+
/** The action to retry */
|
|
1885
|
+
actionToRetryData?: ActionData;
|
|
1886
|
+
}
|
|
1887
|
+
export interface ActivationContext {
|
|
1888
|
+
/**
|
|
1889
|
+
* Activation ID
|
|
1890
|
+
* @format GUID
|
|
1891
|
+
*/
|
|
1892
|
+
activationId?: string;
|
|
1893
|
+
/**
|
|
1894
|
+
* Action ID
|
|
1895
|
+
* @format GUID
|
|
1896
|
+
*/
|
|
1897
|
+
actionId?: string;
|
|
1898
|
+
/**
|
|
1899
|
+
* Configuration ID
|
|
1900
|
+
* @format GUID
|
|
1901
|
+
*/
|
|
1902
|
+
configurationId?: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* Configuration Correlation ID
|
|
1905
|
+
* @format GUID
|
|
1906
|
+
*/
|
|
1907
|
+
configurationCorrelationId?: string;
|
|
1908
|
+
/** name of the event. intended to keep backwards compatibility, probably not in use. */
|
|
1909
|
+
eventName?: string;
|
|
1910
|
+
/** Event slug, also probably not in use */
|
|
1911
|
+
eventSlug?: string | null;
|
|
1912
|
+
/** Enriched event payload */
|
|
1913
|
+
enrichedEventPayload?: string;
|
|
1914
|
+
/** Raw event payload */
|
|
1915
|
+
rawEventPayload?: string;
|
|
1916
|
+
/** Actions */
|
|
1917
|
+
actions?: ActionData[];
|
|
1918
|
+
/** Activation status */
|
|
1919
|
+
activationStatus?: RuntimeStatus;
|
|
1920
|
+
/** External ID */
|
|
1921
|
+
externalId?: string;
|
|
1922
|
+
/** Automation */
|
|
1923
|
+
automationV2?: Automation;
|
|
1924
|
+
/** Output */
|
|
1925
|
+
output?: string | null;
|
|
1926
|
+
}
|
|
1927
|
+
export declare enum RuntimeStatus {
|
|
1928
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
1929
|
+
STARTED = "STARTED",
|
|
1930
|
+
ENDED = "ENDED",
|
|
1931
|
+
ERROR = "ERROR",
|
|
1932
|
+
SCHEDULED = "SCHEDULED",
|
|
1933
|
+
FROM_SCHEDULER = "FROM_SCHEDULER",
|
|
1934
|
+
RETRY = "RETRY",
|
|
1935
|
+
RESUMED = "RESUMED",
|
|
1936
|
+
PAUSED = "PAUSED",
|
|
1937
|
+
ACTION_SKIPPED = "ACTION_SKIPPED"
|
|
1938
|
+
}
|
|
1762
1939
|
export interface ResumeAfterAsyncActionCompleted extends ResumeAfterAsyncActionCompletedStatusInfoOneOf {
|
|
1763
1940
|
/** Success info */
|
|
1764
1941
|
successInfo?: SuccessInfo;
|
|
@@ -1897,6 +2074,10 @@ export interface ConditionActionInfo {
|
|
|
1897
2074
|
/** Collects results per each expression evaluation that took place */
|
|
1898
2075
|
expressionResults?: Record<string, ExpressionEvaluationResult>;
|
|
1899
2076
|
}
|
|
2077
|
+
export interface CodeConditionActionInfo {
|
|
2078
|
+
/** Indicates that the code condition `if` clause evaluated to `true`. */
|
|
2079
|
+
passed?: boolean;
|
|
2080
|
+
}
|
|
1900
2081
|
export interface RateLimitActionInfo {
|
|
1901
2082
|
/** Indicates if the rate limiter passed (not reached the quota) */
|
|
1902
2083
|
passed?: boolean;
|
|
@@ -2016,6 +2197,8 @@ export interface EndedStatusInfo extends EndedStatusInfoTypeInfoOneOf {
|
|
|
2016
2197
|
appDefinedActionInfo?: EndedStatusInfoAppDefinedActionInfo;
|
|
2017
2198
|
/** Condition action additional info */
|
|
2018
2199
|
conditionActionInfo?: ConditionActionInfo;
|
|
2200
|
+
/** Code Condition action additional info */
|
|
2201
|
+
codeConditionActionInfo?: CodeConditionActionInfo;
|
|
2019
2202
|
/** Rate limit action additional info */
|
|
2020
2203
|
rateLimitActionInfo?: RateLimitActionInfo;
|
|
2021
2204
|
/** Delay action additional info */
|
|
@@ -2029,6 +2212,8 @@ export interface EndedStatusInfoTypeInfoOneOf {
|
|
|
2029
2212
|
appDefinedActionInfo?: EndedStatusInfoAppDefinedActionInfo;
|
|
2030
2213
|
/** Condition action additional info */
|
|
2031
2214
|
conditionActionInfo?: ConditionActionInfo;
|
|
2215
|
+
/** Code Condition action additional info */
|
|
2216
|
+
codeConditionActionInfo?: CodeConditionActionInfo;
|
|
2032
2217
|
/** Rate limit action additional info */
|
|
2033
2218
|
rateLimitActionInfo?: RateLimitActionInfo;
|
|
2034
2219
|
/** Delay action additional info */
|
|
@@ -2151,46 +2336,3 @@ export interface ReportActionInvocationCompletedRequestStatusInfoOneOf {
|
|
|
2151
2336
|
}
|
|
2152
2337
|
export interface ReportActionInvocationCompletedResponse {
|
|
2153
2338
|
}
|
|
2154
|
-
export interface ReportEventResponseNonNullableFields {
|
|
2155
|
-
activationIds: string[];
|
|
2156
|
-
}
|
|
2157
|
-
interface ApplicationErrorNonNullableFields {
|
|
2158
|
-
code: string;
|
|
2159
|
-
description: string;
|
|
2160
|
-
}
|
|
2161
|
-
interface ItemMetadataNonNullableFields {
|
|
2162
|
-
originalIndex: number;
|
|
2163
|
-
success: boolean;
|
|
2164
|
-
error?: ApplicationErrorNonNullableFields;
|
|
2165
|
-
}
|
|
2166
|
-
interface IdempotencyNonNullableFields {
|
|
2167
|
-
key: string;
|
|
2168
|
-
}
|
|
2169
|
-
interface EventInfoNonNullableFields {
|
|
2170
|
-
idempotency?: IdempotencyNonNullableFields;
|
|
2171
|
-
}
|
|
2172
|
-
interface BulkReportEventResultNonNullableFields {
|
|
2173
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
2174
|
-
eventInfo?: EventInfoNonNullableFields;
|
|
2175
|
-
activationIds: string[];
|
|
2176
|
-
}
|
|
2177
|
-
interface BulkActionMetadataNonNullableFields {
|
|
2178
|
-
totalSuccesses: number;
|
|
2179
|
-
totalFailures: number;
|
|
2180
|
-
undetailedFailures: number;
|
|
2181
|
-
}
|
|
2182
|
-
export interface BulkReportEventResponseNonNullableFields {
|
|
2183
|
-
triggerKey: string;
|
|
2184
|
-
results: BulkReportEventResultNonNullableFields[];
|
|
2185
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
2186
|
-
}
|
|
2187
|
-
interface BulkCancelEventResultNonNullableFields {
|
|
2188
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
2189
|
-
externalEntityId: string;
|
|
2190
|
-
}
|
|
2191
|
-
export interface BulkCancelEventResponseNonNullableFields {
|
|
2192
|
-
triggerKey: string;
|
|
2193
|
-
results: BulkCancelEventResultNonNullableFields[];
|
|
2194
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
2195
|
-
}
|
|
2196
|
-
export {};
|