@wix/auto_sdk_automations_trigger-provider 1.0.8 → 1.0.9

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.
@@ -91,9 +91,9 @@ export interface OnAutomationSavedRequest {
91
91
  automation: Automation;
92
92
  }
93
93
  export interface Automation extends AutomationOriginInfoOneOf {
94
- /** Application info */
94
+ /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
95
95
  applicationInfo?: ApplicationOrigin;
96
- /** Preinstalled info */
96
+ /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
97
97
  preinstalledInfo?: PreinstalledOrigin;
98
98
  /**
99
99
  * Automation ID.
@@ -102,37 +102,33 @@ export interface Automation extends AutomationOriginInfoOneOf {
102
102
  */
103
103
  _id?: string | null;
104
104
  /**
105
- * Revision number, which increments by 1 each time the automation is updated.
106
- * To prevent conflicting changes,
107
- * the current revision must be passed when updating the automation.
108
- *
109
- * Ignored when creating an automation.
105
+ * Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.
110
106
  * @readonly
111
107
  */
112
108
  revision?: string | null;
113
109
  /**
114
- * Information about the creator of the automation.
110
+ * Who created the automation.
115
111
  * @immutable
116
112
  * @readonly
117
113
  */
118
114
  createdBy?: AuditInfo;
119
115
  /**
120
- * Date and time the automation was created.
116
+ * When the automation was created.
121
117
  * @readonly
122
118
  */
123
119
  _createdDate?: Date | null;
124
120
  /**
125
- * The entity that last updated the automation.
121
+ * Who last updated the automation.
126
122
  * @readonly
127
123
  */
128
124
  updatedBy?: AuditInfo;
129
125
  /**
130
- * Date and time the automation was last updated.
126
+ * When the automation was last updated.
131
127
  * @readonly
132
128
  */
133
129
  _updatedDate?: Date | null;
134
130
  /**
135
- * Automation name that is displayed on the user's site.
131
+ * Automation name as displayed on the user's site.
136
132
  * @minLength 1
137
133
  * @maxLength 500
138
134
  */
@@ -142,60 +138,71 @@ export interface Automation extends AutomationOriginInfoOneOf {
142
138
  * @maxLength 2000
143
139
  */
144
140
  description?: string | null;
145
- /** Object that defines the automation's trigger, actions, and activation status. */
141
+ /** Automation configuration. */
146
142
  configuration?: AutomationConfiguration;
147
143
  /**
148
- * Defines how the automation was added to the site.
144
+ * How the automation was added to the user's site.
149
145
  * @immutable
150
146
  */
151
147
  origin?: Origin;
152
148
  /** Automation settings. */
153
149
  settings?: AutomationSettings;
154
150
  /**
155
- * Draft info (optional - only if the automation is a draft)
151
+ * When the automation is a draft, the draft details.
156
152
  * @readonly
157
153
  */
158
154
  draftInfo?: DraftInfo;
159
155
  /**
160
- * Namespace
161
- * @maxLength 50
156
+ * Whether the automation is archived.
157
+ *
158
+ * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
162
159
  */
163
- namespace?: string | null;
164
- /** Extended Fields */
165
- extendedFields?: ExtendedFields;
160
+ archived?: boolean;
166
161
  }
167
162
  /** @oneof */
168
163
  export interface AutomationOriginInfoOneOf {
169
- /** Application info */
164
+ /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
170
165
  applicationInfo?: ApplicationOrigin;
171
- /** Preinstalled info */
166
+ /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
172
167
  preinstalledInfo?: PreinstalledOrigin;
173
168
  }
174
169
  export interface ActionSettings {
175
170
  /**
176
- * List of actions that cannot be deleted.
177
- * Default: Empty. All actions are deletable by default.
171
+ * Permanent actions. Permanent actions cannot be deleted.
172
+ *
173
+ * When empty, all actions can be deleted by the user.
178
174
  * @maxSize 30
179
175
  * @format GUID
180
176
  */
181
177
  permanentActionIds?: string[];
182
178
  /**
183
- * List of actions that cannot be edited.
184
- * Default: Empty. All actions are editable by default.
179
+ * Read-only actions. Read-only actions cannot be edited.
180
+ *
181
+ * When empty, all actions are editable.
185
182
  * @maxSize 30
186
183
  * @format GUID
187
184
  */
188
185
  readonlyActionIds?: string[];
189
- /** Whether the option to add a delay is disabled for the automation. */
186
+ /**
187
+ * Whether to disable the ability to add a delay to the automation.
188
+ *
189
+ * Default: `false`.
190
+ */
190
191
  disableDelayAddition?: boolean;
191
- /** Whether the option to add a condition is disabled for the automation. */
192
+ /**
193
+ * Whether to disable the ability to add a condition to the automation.
194
+ *
195
+ * Default: `false`.
196
+ */
192
197
  disableConditionAddition?: boolean;
193
198
  }
194
199
  export declare enum Domain {
195
200
  /** User domain (default). */
196
201
  USER = "USER",
197
202
  /** Wix domain. */
198
- WIX = "WIX"
203
+ WIX = "WIX",
204
+ /** Wix account-level domain. */
205
+ WIX_ACCOUNT = "WIX_ACCOUNT"
199
206
  }
200
207
  export interface Enrichment {
201
208
  /**
@@ -206,12 +213,14 @@ export interface Enrichment {
206
213
  }
207
214
  export interface AuditInfo extends AuditInfoIdOneOf {
208
215
  /**
209
- * User ID.
216
+ * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
210
217
  * @format GUID
211
218
  */
212
219
  userId?: string;
213
220
  /**
214
- * Application ID.
221
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
222
+ *
223
+ * 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.
215
224
  * @format GUID
216
225
  */
217
226
  appId?: string;
@@ -219,40 +228,45 @@ export interface AuditInfo extends AuditInfoIdOneOf {
219
228
  /** @oneof */
220
229
  export interface AuditInfoIdOneOf {
221
230
  /**
222
- * User ID.
231
+ * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
223
232
  * @format GUID
224
233
  */
225
234
  userId?: string;
226
235
  /**
227
- * Application ID.
236
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
237
+ *
238
+ * 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.
228
239
  * @format GUID
229
240
  */
230
241
  appId?: string;
231
242
  }
232
- /** Automation runtime configuration */
233
243
  export interface AutomationConfiguration {
234
244
  /** Status of the automation on the site. */
235
245
  status?: Status;
236
- /** Automation trigger configuration. */
246
+ /** Trigger configuration. */
237
247
  trigger?: Trigger;
238
248
  /**
239
- * 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.
249
+ * Root action IDs. A root action is the first action that runs after the trigger occurs. Root actions run in parallel.
250
+ *
251
+ * > **Note**: You can currently only specify 1 root action.
240
252
  * @maxSize 20
241
253
  * @format GUID
242
254
  */
243
255
  rootActionIds?: string[];
244
- /**
245
- * Map of all actions that the automation may execute.
246
- * The key is the action ID, and the value is the action configuration.
247
- */
256
+ /** 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. */
248
257
  actions?: Record<string, Action>;
249
258
  }
250
259
  export declare enum TimeUnit {
251
260
  UNKNOWN_TIME_UNIT = "UNKNOWN_TIME_UNIT",
261
+ /** Minutes. */
252
262
  MINUTES = "MINUTES",
263
+ /** Hours. */
253
264
  HOURS = "HOURS",
265
+ /** Days. */
254
266
  DAYS = "DAYS",
267
+ /** Weeks. */
255
268
  WEEKS = "WEEKS",
269
+ /** Months. */
256
270
  MONTHS = "MONTHS"
257
271
  }
258
272
  export interface Filter {
@@ -262,42 +276,49 @@ export interface Filter {
262
276
  */
263
277
  _id?: string;
264
278
  /**
265
- * Field key from the payload schema, for example "formId".
279
+ * Field key.
280
+ *
281
+ * 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).
266
282
  * @minLength 1
267
283
  * @maxLength 110
268
284
  */
269
285
  fieldKey?: string;
270
286
  /**
271
- * Filter expression that evaluates to a boolean.
287
+ * Filter expression.
288
+ *
289
+ * For the automation to run, the expression must evaluate to `true`.
272
290
  * @maxLength 2500
273
291
  */
274
292
  filterExpression?: string;
275
293
  }
276
294
  export interface FutureDateActivationOffset {
277
295
  /**
278
- * The offset value. The value is always taken as negative, so that the automation runs before the trigger date.
279
- * To create an offset that causes the automation to run after the trigger date, use a delay action.
296
+ * Amount of time before the trigger to run the automation.
297
+ *
298
+ * > **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).
280
299
  * @maxLength 1000
281
300
  */
282
301
  preScheduledEventOffsetExpression?: string;
283
- /** Time unit for the scheduled event offset. */
302
+ /** Unit in which to set the action offset. */
284
303
  scheduledEventOffsetTimeUnit?: TimeUnit;
285
304
  }
286
305
  export interface RateLimit {
287
306
  /**
288
- * Value expressing the maximum number of times the trigger can be activated.
307
+ * Maximum number of times the trigger can be activated.
289
308
  * @maxLength 1000
290
309
  */
291
310
  maxActivationsExpression?: string;
292
311
  /**
293
- * Duration of the rate limiting window in the selected time unit. If no value is set, the rate limit is permanent.
312
+ * Duration of the rate limit. The rate limit applies for the specified duration and then expires.
313
+ *
314
+ * When empty, the rate limit does not expire.
294
315
  * @maxLength 1000
295
316
  */
296
317
  durationExpression?: string | null;
297
- /** Time unit for the rate limit duration. */
318
+ /** Unit in which to set the duration of the rate limit. */
298
319
  durationTimeUnit?: TimeUnit;
299
320
  /**
300
- * Unique identifier of each activation, by which rate limiter will count activations.
321
+ * Activation identifier used to count the number of activations.
301
322
  * @minLength 1
302
323
  * @maxLength 400
303
324
  */
@@ -305,17 +326,17 @@ export interface RateLimit {
305
326
  }
306
327
  export interface FilterValueSelection {
307
328
  /**
308
- * Values that can help the user filter certain automations, values will look like "<filter_id>__<selected_value>"
329
+ * Values that can help the user filter certain automations. Specify values in the following format: `<filter_id>__<selected_value>`.
309
330
  * @maxLength 80
310
331
  * @maxSize 50
311
332
  */
312
333
  selectedFilterValues?: string[];
313
334
  }
314
335
  export interface ConditionExpressionGroup {
315
- /** Expression group operator. */
336
+ /** Logical operator used to evaluate the condition expressions. */
316
337
  operator?: Operator;
317
338
  /**
318
- * List of boolean expressions to be evaluated with the given operator.
339
+ * Expressions evaluated using the selected operator.
319
340
  * @minSize 1
320
341
  * @maxSize 20
321
342
  * @maxLength 2500
@@ -323,25 +344,43 @@ export interface ConditionExpressionGroup {
323
344
  booleanExpressions?: string[];
324
345
  }
325
346
  export declare enum Operator {
347
+ /** Unknown. */
326
348
  UNKNOWN_OPERATOR = "UNKNOWN_OPERATOR",
349
+ /** `OR` operator. */
327
350
  OR = "OR",
351
+ /** `AND` operator. */
328
352
  AND = "AND"
329
353
  }
354
+ /** Path definition */
355
+ export interface Path {
356
+ /**
357
+ * Unique path ID.
358
+ * @format GUID
359
+ */
360
+ _id?: string;
361
+ /**
362
+ * Path display name.
363
+ * @minLength 1
364
+ * @maxLength 100
365
+ */
366
+ name?: string;
367
+ /**
368
+ * ID of the action to run when this path is taken.
369
+ * @format GUID
370
+ */
371
+ postActionId?: string | null;
372
+ }
330
373
  export declare enum Type {
331
- /** Automation will be triggered according to the trigger configuration. */
374
+ /** Based on the trigger. */
332
375
  UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
333
- /** App defined Action. */
376
+ /** 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. */
334
377
  APP_DEFINED = "APP_DEFINED",
335
- /** Condition Action. */
378
+ /** Condition. This determines which action runs next. */
336
379
  CONDITION = "CONDITION",
337
- /** Delay Action. */
380
+ /** Delay. The automation must wait before executing the next step. */
338
381
  DELAY = "DELAY",
339
- /** RateLimit Action. */
340
- RATE_LIMIT = "RATE_LIMIT",
341
- /** Set Variables Action. */
342
- SET_VARIABLES = "SET_VARIABLES",
343
- /** Output Action. */
344
- OUTPUT = "OUTPUT"
382
+ /** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
383
+ RATE_LIMIT = "RATE_LIMIT"
345
384
  }
346
385
  export interface AppDefinedAction {
347
386
  /**
@@ -355,39 +394,39 @@ export interface AppDefinedAction {
355
394
  * @maxLength 100
356
395
  */
357
396
  actionKey?: string;
358
- /** Action input mapping. */
397
+ /** 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). */
359
398
  inputMapping?: Record<string, any> | null;
360
399
  /**
361
- * Array of conditions determining whether to skip the action in the automation flow.
362
- * The action will be skipped if any of the expression groups evaluate to `true`.
363
- * Actions following a skipped action will still run.
400
+ * Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
401
+ *
402
+ * > **Note**: Actions that follow a skipped action still run.
364
403
  * @maxSize 10
365
404
  */
366
405
  skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
367
406
  /**
368
- * List of IDs of actions to run in parallel once the action completes.
407
+ * IDs of actions that run in parallel after the action completes.
369
408
  * @maxSize 20
370
409
  * @format GUID
371
410
  */
372
411
  postActionIds?: string[];
373
- /** Optional output schema of the action. It will be used instead the action schema in case it's provided. */
412
+ /** Action output schema. When specified, this replaces the action schema. */
374
413
  overrideOutputSchema?: Record<string, any> | null;
375
414
  }
376
415
  export interface ConditionAction {
377
416
  /**
378
- * The condition evaluates to `true` if either of the expression groups evaluate to `true`.
417
+ * Condition is `true` if one or more of the expression groups evaluates to `true`.
379
418
  * @minSize 1
380
419
  * @maxSize 10
381
420
  */
382
421
  orExpressionGroups?: ConditionExpressionGroup[];
383
422
  /**
384
- * List of IDs of actions to run when the entire condition is evaluated to `true`.
423
+ * IDs of actions to run when the condition evaluates to `true`.
385
424
  * @maxSize 20
386
425
  * @format GUID
387
426
  */
388
427
  truePostActionIds?: string[];
389
428
  /**
390
- * List of IDs of actions to run when the entire condition is evaluated to `false`.
429
+ * IDs of actions to run when the condition evaluates to `false`.
391
430
  * @maxSize 20
392
431
  * @format GUID
393
432
  */
@@ -395,21 +434,23 @@ export interface ConditionAction {
395
434
  }
396
435
  export interface DelayAction {
397
436
  /**
398
- * Value expressing the amount of time to wait from a specific date or from the time the action is executed.
437
+ * Time to wait before running the action. The wait time starts from when the current action completes.
438
+ *
439
+ * > **Note**: To define the wait time from a specific moment in time, use `dueDateEpochExpression`.
399
440
  * @maxLength 1000
400
441
  */
401
442
  offsetExpression?: string | null;
402
- /** Time unit for delay offset. */
443
+ /** Unit in which to set the wait time to wait before the action runs. */
403
444
  offsetTimeUnit?: TimeUnit;
404
445
  /**
405
- * The action due date. If defined without an offset, the automation will wait until this date to execute the next step.
406
- * If an offset is defined, it's calculated from this date.
407
- * The date is expressed in the number of milliseconds since the Unix Epoch (1 January, 1970 UTC).
446
+ * Action run date in milliseconds elapsed since January 1, 1970 UTC.
447
+ *
448
+ * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
408
449
  * @maxLength 1000
409
450
  */
410
451
  dueDateEpochExpression?: string | null;
411
452
  /**
412
- * List of IDs of actions to run in parallel after the delay.
453
+ * IDs of actions to run in parallel after the time delay.
413
454
  * @maxSize 20
414
455
  * @format GUID
415
456
  */
@@ -417,17 +458,18 @@ export interface DelayAction {
417
458
  }
418
459
  export interface RateLimitAction {
419
460
  /**
420
- * The maximum number of activations allowed for the action.
461
+ * Maximum number of times the action can run.
421
462
  * @maxLength 1000
422
463
  */
423
464
  maxActivationsExpression?: string;
424
465
  /**
425
- * Duration of the rate limiting window, expressed in selected time unit.
426
- * If no value is set, then there is no time limit on the rate limiter.
466
+ * Rate limit duration.
467
+ *
468
+ * When empty, the rate limit does not expire.
427
469
  * @maxLength 1000
428
470
  */
429
471
  rateLimitDurationExpression?: string | null;
430
- /** Time unit for the rate limit duration. */
472
+ /** Unit in which to set the duration of the rate limit. */
431
473
  rateLimitDurationTimeUnit?: TimeUnit;
432
474
  /**
433
475
  * Unique identifier of each activation by which rate limiter counts activations.
@@ -436,25 +478,23 @@ export interface RateLimitAction {
436
478
  */
437
479
  uniqueIdentifierExpression?: string | null;
438
480
  /**
439
- * List of IDs of actions to run in parallel once the action completes.
481
+ * IDs of actions to run in parallel after the action completes.
440
482
  * @maxSize 20
441
483
  * @format GUID
442
484
  */
443
485
  postActionIds?: string[];
444
486
  }
445
487
  export interface SetVariablesAction {
446
- /**
447
- * output mapping
448
- * for example: {"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }
449
- */
488
+ /** Output mapping. For example: `{"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }`. */
450
489
  outputMapping?: Record<string, any> | null;
451
490
  /**
452
- * output json schema representation
453
- * could be string instead of Struct (and introduce some compression to minimize the size of it)
491
+ * Output JSON schema representation.
492
+ *
493
+ * > **Note**: To minimize request size, you can also specify a string.
454
494
  */
455
495
  outputSchema?: Record<string, any> | null;
456
496
  /**
457
- * List of IDs of actions to run in parallel after variable initialization.
497
+ * IDs of actions to run in parallel after variable initialization.
458
498
  * @maxSize 20
459
499
  * @format GUID
460
500
  */
@@ -464,12 +504,20 @@ export interface OutputAction {
464
504
  /** Output action output mapping. */
465
505
  outputMapping?: Record<string, any> | null;
466
506
  }
507
+ export interface SplitAction {
508
+ /**
509
+ * List of paths to split execution into.
510
+ * @minSize 2
511
+ * @maxSize 10
512
+ */
513
+ paths?: Path[];
514
+ }
467
515
  export declare enum Status {
468
- /** unused */
516
+ /** Unknown. */
469
517
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
470
- /** Automation will be triggered according to the trigger configuration */
518
+ /** Active. Active automations can be triggered. */
471
519
  ACTIVE = "ACTIVE",
472
- /** Automation will not be triggered */
520
+ /** Inactive. Inactive automations cannot be triggered. */
473
521
  INACTIVE = "INACTIVE"
474
522
  }
475
523
  export interface Trigger {
@@ -480,51 +528,52 @@ export interface Trigger {
480
528
  appId?: string;
481
529
  /**
482
530
  * Trigger key.
531
+ *
532
+ * 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).
483
533
  * @minLength 1
484
534
  * @maxLength 100
485
535
  */
486
536
  triggerKey?: string;
487
537
  /**
488
- * List of filters on schema fields.
489
- * In order for the automation to run, all filter expressions must evaluate to `true` for a given payload.
538
+ * Schema field filters. All filter conditions must be met for the automation to run.
539
+ *
540
+ * Learn more about setting up [automation filters](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#filters).
490
541
  * @maxSize 5
491
542
  */
492
543
  filters?: Filter[];
493
- /** Defines the time offset between the trigger date and when the automation runs. */
494
- scheduledEventOffset?: FutureDateActivationOffset;
495
- /** Limits the number of times an automation can be triggered. */
496
- rateLimit?: RateLimit;
497
544
  /**
498
- * An optional configuration, per automation, of a schema that is optionally offered by the trigger provider to affect the behavior of the trigger.
499
- * 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,
500
- * He would define a schema with a field called "startDate" and using this parameter the user can define his preferred startDate, per automation.
545
+ * Automation offset. You can schedule automations to run before the trigger occurs.
546
+ *
547
+ * Learn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).
501
548
  */
502
- automationConfigMapping?: Record<string, any> | null;
503
- /** Optional schema of the trigger. It will be used instead the trigger schema in case it's provided. */
549
+ scheduledEventOffset?: FutureDateActivationOffset;
550
+ /** Limit on the number of times an automation can be triggered. */
551
+ rateLimit?: RateLimit;
552
+ /** Trigger schema override. When specified, this replaces the trigger schema. */
504
553
  overrideSchema?: Record<string, any> | null;
505
554
  }
506
555
  export interface Action extends ActionInfoOneOf {
507
- /** Action defined by an app (via RPC, HTTP or Velo). */
556
+ /** Details of the action when its `type` is `APP_DEFINED`. */
508
557
  appDefinedInfo?: AppDefinedAction;
509
- /** Condition action. */
558
+ /** Details of the action when its `type` is `CONDITION`. */
510
559
  conditionInfo?: ConditionAction;
511
- /** Delay action. */
560
+ /** Details of the action when its `type` is `DELAY`. */
512
561
  delayInfo?: DelayAction;
513
- /** Rate-limiting action. */
562
+ /** Details of the action when its `type` is `RATE_LIMIT`. */
514
563
  rateLimitInfo?: RateLimitAction;
515
564
  /**
516
- * Action ID. If not specified, a new ID is generated.
565
+ * Action ID.
566
+ *
567
+ * If not specified, automatically generated by Wix.
517
568
  * @format GUID
518
569
  */
519
570
  _id?: string | null;
520
- /** Action type. */
571
+ /** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#action-type). */
521
572
  type?: Type;
522
573
  /**
523
- * Human-readable name to differentiate the action from other actions of the same type.
524
- * The name can contain only alphanumeric characters and underscores. If not provided, a namespace in the form `actionkey-indexOfAction` is
525
- * generated automatically.
526
- * If the action has output, the output will be available in the payload under this name.
527
- * If the user has multiple actions with the same appId and actionKey, previous action output will be overwritten.
574
+ * [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.
575
+ *
576
+ * 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.
528
577
  * @minLength 1
529
578
  * @maxLength 100
530
579
  */
@@ -532,18 +581,18 @@ export interface Action extends ActionInfoOneOf {
532
581
  }
533
582
  /** @oneof */
534
583
  export interface ActionInfoOneOf {
535
- /** Action defined by an app (via RPC, HTTP or Velo). */
584
+ /** Details of the action when its `type` is `APP_DEFINED`. */
536
585
  appDefinedInfo?: AppDefinedAction;
537
- /** Condition action. */
586
+ /** Details of the action when its `type` is `CONDITION`. */
538
587
  conditionInfo?: ConditionAction;
539
- /** Delay action. */
588
+ /** Details of the action when its `type` is `DELAY`. */
540
589
  delayInfo?: DelayAction;
541
- /** Rate-limiting action. */
590
+ /** Details of the action when its `type` is `RATE_LIMIT`. */
542
591
  rateLimitInfo?: RateLimitAction;
543
592
  }
544
593
  export interface FilterableAppDefinedActions {
545
594
  /**
546
- * App defined action identifiers, each identifier in form `${appId}_${actionKey}`
595
+ * App-defined action identifiers. Identifiers have the following format: `${appId}_${actionKey}`.
547
596
  * @minSize 1
548
597
  * @maxSize 100
549
598
  * @minLength 1
@@ -552,48 +601,40 @@ export interface FilterableAppDefinedActions {
552
601
  actionIdentifiers?: string[];
553
602
  }
554
603
  export declare enum Origin {
555
- /** Default value. This is unused. */
604
+ /** Default value. */
556
605
  UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
557
- /** User created automation. */
606
+ /** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */
558
607
  USER = "USER",
559
- /** Automation created by application (site specific). */
608
+ /** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */
560
609
  APPLICATION = "APPLICATION",
561
- /** Preinstalled application automation. */
562
- PREINSTALLED = "PREINSTALLED",
563
- /** Automation created from a recipe. */
564
- RECIPE = "RECIPE"
610
+ /** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */
611
+ PREINSTALLED = "PREINSTALLED"
565
612
  }
566
613
  export interface ApplicationOrigin {
567
614
  /**
568
- * Application ID.
615
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
616
+ *
617
+ * 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.
569
618
  * @format GUID
570
619
  */
571
620
  appId?: string;
572
- /**
573
- * External ID to correlate multiple sites to an automation
574
- * @format GUID
575
- */
576
- appDefinedExternalId?: string | null;
577
621
  }
578
622
  export interface PreinstalledOrigin {
579
623
  /**
580
- * ID of the app that defines the preinstalled automation.
624
+ * 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).
581
625
  * @format GUID
582
626
  */
583
627
  appId?: string;
584
628
  /**
585
- * Application component ID.
586
- * @format GUID
587
- */
588
- componentId?: string;
589
- /** Application component version. */
590
- componentVersion?: number;
591
- /**
592
- * Whether the automation is an override automation. If the user modifies the preinstalled automation installed on their site, a site-specific
593
- * automation is created that overrides the original one. If the user makes no modifications this boolean is set to `false` and the original
594
- * preinstalled automation is used.
629
+ * Whether the automation is an override.
595
630
  *
596
- * Default: `false`
631
+ * 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.
632
+ *
633
+ * > **Note**: An override automation can no longer be updated by the app that originally installed it.
634
+ * >
635
+ * > 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.
636
+ *
637
+ * Default: `false`.
597
638
  * @immutable
598
639
  * @readonly
599
640
  */
@@ -602,22 +643,26 @@ export interface PreinstalledOrigin {
602
643
  export interface AutomationSettings {
603
644
  /**
604
645
  * Whether the automation is hidden from users.
646
+ *
605
647
  * Default: `false`
606
648
  */
607
649
  hidden?: boolean;
608
650
  /**
609
651
  * Whether the automation is read-only.
652
+ *
610
653
  * Default: `false`
611
654
  */
612
655
  readonly?: boolean;
613
656
  /**
614
- * Whether the option to delete the automation from the site is disabled.
615
- * Default: `false`
657
+ * Whether to disable the option to delete the automation from the site.
658
+ *
659
+ * Default: `false`.
616
660
  */
617
661
  disableDelete?: boolean;
618
662
  /**
619
- * Whether the option to change the automation status (from active to inactive and vice versa) is disabled.
620
- * Default: `false`
663
+ * Whether to disable the option to change the automation's `configuration.status`, for example from `ACTIVE` to `INACTIVE`.
664
+ *
665
+ * Default: `false`.
621
666
  */
622
667
  disableStatusChange?: boolean;
623
668
  /** Automation action settings. */
@@ -625,7 +670,7 @@ export interface AutomationSettings {
625
670
  }
626
671
  export interface DraftInfo {
627
672
  /**
628
- * Optional - automationId of the original automation.
673
+ * ID of the original automation.
629
674
  * @format GUID
630
675
  * @readonly
631
676
  */