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