@wix/auto_sdk_automations_activation-log 1.0.1 → 1.0.3

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-activation-logs-v1-activation-log-activation-log.context.d.ts +2 -2
  2. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js +2 -1
  3. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -1
  4. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +3 -3
  5. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -1
  6. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +5 -5
  7. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js +2 -1
  8. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -1
  9. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +239 -209
  10. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +30 -19
  11. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -1
  12. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +256 -212
  13. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +37 -19
  14. package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -1
  15. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +2 -2
  16. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js +1 -1
  17. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -1
  18. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +3 -3
  19. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -1
  20. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +5 -5
  21. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js +1 -1
  22. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -1
  23. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +239 -209
  24. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +29 -18
  25. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -1
  26. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +256 -212
  27. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +36 -18
  28. package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -1
  29. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +2 -2
  30. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js +2 -1
  31. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -1
  32. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +3 -3
  33. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -1
  34. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +5 -5
  35. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js +2 -1
  36. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -1
  37. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +239 -209
  38. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +30 -19
  39. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -1
  40. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +256 -212
  41. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +37 -19
  42. package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -1
  43. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +2 -2
  44. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js +1 -1
  45. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -1
  46. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +3 -3
  47. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -1
  48. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +5 -5
  49. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js +1 -1
  50. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -1
  51. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +239 -209
  52. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +29 -18
  53. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -1
  54. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +256 -212
  55. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +36 -18
  56. package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.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 ActivationLog {
2
3
  /**
3
4
  * Activation ID
@@ -235,25 +236,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
235
236
  updatedEvent?: EntityUpdatedEvent;
236
237
  deletedEvent?: EntityDeletedEvent;
237
238
  actionEvent?: ActionEvent;
238
- /**
239
- * Unique event ID.
240
- * Allows clients to ignore duplicate webhooks.
241
- */
239
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
242
240
  _id?: string;
243
241
  /**
244
- * Assumes actions are also always typed to an entity_type
245
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
242
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
243
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
246
244
  */
247
245
  entityFqdn?: string;
248
246
  /**
249
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
250
- * This is although the created/updated/deleted notion is duplication of the oneof types
251
- * Example: created/updated/deleted/started/completed/email_opened
247
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
248
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
252
249
  */
253
250
  slug?: string;
254
251
  /** ID of the entity associated with the event. */
255
252
  entityId?: string;
256
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
253
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
257
254
  eventTime?: Date | null;
258
255
  /**
259
256
  * Whether the event was triggered as a result of a privacy regulation application
@@ -263,12 +260,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
263
260
  /** If present, indicates the action that triggered the event. */
264
261
  originatedFrom?: string | null;
265
262
  /**
266
- * A sequence number defining the order of updates to the underlying entity.
267
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
268
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
269
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
270
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
271
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
263
+ * 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.
264
+ * 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.
272
265
  */
273
266
  entityEventSequence?: string | null;
274
267
  }
@@ -294,7 +287,7 @@ export interface EntityUpdatedEvent {
294
287
  currentEntity?: string;
295
288
  }
296
289
  export interface EntityDeletedEvent {
297
- /** Entity that was deleted */
290
+ /** Entity that was deleted. */
298
291
  deletedEntity?: string | null;
299
292
  }
300
293
  export interface ActionEvent {
@@ -312,9 +305,9 @@ export interface ActivationContinuedAfterSchedule {
312
305
  automation?: Automation;
313
306
  }
314
307
  export interface Automation extends AutomationOriginInfoOneOf {
315
- /** Application info */
308
+ /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
316
309
  applicationInfo?: ApplicationOrigin;
317
- /** Preinstalled info */
310
+ /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
318
311
  preinstalledInfo?: PreinstalledOrigin;
319
312
  /**
320
313
  * Automation ID.
@@ -323,37 +316,33 @@ export interface Automation extends AutomationOriginInfoOneOf {
323
316
  */
324
317
  _id?: string | null;
325
318
  /**
326
- * Revision number, which increments by 1 each time the automation is updated.
327
- * To prevent conflicting changes,
328
- * the current revision must be passed when updating the automation.
329
- *
330
- * Ignored when creating an automation.
319
+ * Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.
331
320
  * @readonly
332
321
  */
333
322
  revision?: string | null;
334
323
  /**
335
- * Information about the creator of the automation.
324
+ * Who created the automation.
336
325
  * @immutable
337
326
  * @readonly
338
327
  */
339
328
  createdBy?: AuditInfo;
340
329
  /**
341
- * Date and time the automation was created.
330
+ * When the automation was created.
342
331
  * @readonly
343
332
  */
344
333
  _createdDate?: Date | null;
345
334
  /**
346
- * The entity that last updated the automation.
335
+ * Who last updated the automation.
347
336
  * @readonly
348
337
  */
349
338
  updatedBy?: AuditInfo;
350
339
  /**
351
- * Date and time the automation was last updated.
340
+ * When the automation was last updated.
352
341
  * @readonly
353
342
  */
354
343
  _updatedDate?: Date | null;
355
344
  /**
356
- * Automation name that is displayed on the user's site.
345
+ * Automation name as displayed on the user's site.
357
346
  * @minLength 1
358
347
  * @maxLength 500
359
348
  */
@@ -363,60 +352,71 @@ export interface Automation extends AutomationOriginInfoOneOf {
363
352
  * @maxLength 2000
364
353
  */
365
354
  description?: string | null;
366
- /** Object that defines the automation's trigger, actions, and activation status. */
355
+ /** Automation configuration. */
367
356
  configuration?: AutomationConfiguration;
368
357
  /**
369
- * Defines how the automation was added to the site.
358
+ * How the automation was added to the user's site.
370
359
  * @immutable
371
360
  */
372
361
  origin?: Origin;
373
362
  /** Automation settings. */
374
363
  settings?: AutomationSettings;
375
364
  /**
376
- * Draft info (optional - only if the automation is a draft)
365
+ * When the automation is a draft, the draft details.
377
366
  * @readonly
378
367
  */
379
368
  draftInfo?: DraftInfo;
380
369
  /**
381
- * Namespace
382
- * @maxLength 50
370
+ * Whether the automation is archived.
371
+ *
372
+ * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
383
373
  */
384
- namespace?: string | null;
385
- /** Extended Fields */
386
- extendedFields?: ExtendedFields;
374
+ archived?: boolean;
387
375
  }
388
376
  /** @oneof */
389
377
  export interface AutomationOriginInfoOneOf {
390
- /** Application info */
378
+ /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
391
379
  applicationInfo?: ApplicationOrigin;
392
- /** Preinstalled info */
380
+ /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
393
381
  preinstalledInfo?: PreinstalledOrigin;
394
382
  }
395
383
  export interface ActionSettings {
396
384
  /**
397
- * List of actions that cannot be deleted.
398
- * Default: Empty. All actions are deletable by default.
385
+ * Permanent actions. Permanent actions cannot be deleted.
386
+ *
387
+ * When empty, all actions can be deleted by the user.
399
388
  * @maxSize 30
400
389
  * @format GUID
401
390
  */
402
391
  permanentActionIds?: string[];
403
392
  /**
404
- * List of actions that cannot be edited.
405
- * Default: Empty. All actions are editable by default.
393
+ * Read-only actions. Read-only actions cannot be edited.
394
+ *
395
+ * When empty, all actions are editable.
406
396
  * @maxSize 30
407
397
  * @format GUID
408
398
  */
409
399
  readonlyActionIds?: string[];
410
- /** Whether the option to add a delay is disabled for the automation. */
400
+ /**
401
+ * Whether to disable the ability to add a delay to the automation.
402
+ *
403
+ * Default: `false`.
404
+ */
411
405
  disableDelayAddition?: boolean;
412
- /** Whether the option to add a condition is disabled for the automation. */
406
+ /**
407
+ * Whether to disable the ability to add a condition to the automation.
408
+ *
409
+ * Default: `false`.
410
+ */
413
411
  disableConditionAddition?: boolean;
414
412
  }
415
413
  export declare enum Domain {
416
414
  /** User domain (default). */
417
415
  USER = "USER",
418
416
  /** Wix domain. */
419
- WIX = "WIX"
417
+ WIX = "WIX",
418
+ /** Wix account-level domain. */
419
+ WIX_ACCOUNT = "WIX_ACCOUNT"
420
420
  }
421
421
  export interface Enrichment {
422
422
  /**
@@ -427,12 +427,14 @@ export interface Enrichment {
427
427
  }
428
428
  export interface AuditInfo extends AuditInfoIdOneOf {
429
429
  /**
430
- * User ID.
430
+ * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
431
431
  * @format GUID
432
432
  */
433
433
  userId?: string;
434
434
  /**
435
- * Application ID.
435
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
436
+ *
437
+ * 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.
436
438
  * @format GUID
437
439
  */
438
440
  appId?: string;
@@ -440,40 +442,45 @@ export interface AuditInfo extends AuditInfoIdOneOf {
440
442
  /** @oneof */
441
443
  export interface AuditInfoIdOneOf {
442
444
  /**
443
- * User ID.
445
+ * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
444
446
  * @format GUID
445
447
  */
446
448
  userId?: string;
447
449
  /**
448
- * Application ID.
450
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
451
+ *
452
+ * 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.
449
453
  * @format GUID
450
454
  */
451
455
  appId?: string;
452
456
  }
453
- /** Automation runtime configuration */
454
457
  export interface AutomationConfiguration {
455
458
  /** Status of the automation on the site. */
456
459
  status?: AutomationConfigurationStatus;
457
- /** Automation trigger configuration. */
460
+ /** Trigger configuration. */
458
461
  trigger?: Trigger;
459
462
  /**
460
- * 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.
463
+ * Root action IDs. A root action is the first action that runs after the trigger occurs. Root actions run in parallel.
464
+ *
465
+ * > **Note**: You can currently only specify 1 root action.
461
466
  * @maxSize 20
462
467
  * @format GUID
463
468
  */
464
469
  rootActionIds?: string[];
465
- /**
466
- * Map of all actions that the automation may execute.
467
- * The key is the action ID, and the value is the action configuration.
468
- */
470
+ /** 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. */
469
471
  actions?: Record<string, Action>;
470
472
  }
471
473
  export declare enum TimeUnit {
472
474
  UNKNOWN_TIME_UNIT = "UNKNOWN_TIME_UNIT",
475
+ /** Minutes. */
473
476
  MINUTES = "MINUTES",
477
+ /** Hours. */
474
478
  HOURS = "HOURS",
479
+ /** Days. */
475
480
  DAYS = "DAYS",
481
+ /** Weeks. */
476
482
  WEEKS = "WEEKS",
483
+ /** Months. */
477
484
  MONTHS = "MONTHS"
478
485
  }
479
486
  export interface Filter {
@@ -483,42 +490,49 @@ export interface Filter {
483
490
  */
484
491
  _id?: string;
485
492
  /**
486
- * Field key from the payload schema, for example "formId".
493
+ * Field key.
494
+ *
495
+ * 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).
487
496
  * @minLength 1
488
497
  * @maxLength 110
489
498
  */
490
499
  fieldKey?: string;
491
500
  /**
492
- * Filter expression that evaluates to a boolean.
501
+ * Filter expression.
502
+ *
503
+ * For the automation to run, the expression must evaluate to `true`.
493
504
  * @maxLength 2500
494
505
  */
495
506
  filterExpression?: string;
496
507
  }
497
508
  export interface FutureDateActivationOffset {
498
509
  /**
499
- * The offset value. The value is always taken as negative, so that the automation runs before the trigger date.
500
- * To create an offset that causes the automation to run after the trigger date, use a delay action.
510
+ * Amount of time before the trigger to run the automation.
511
+ *
512
+ * > **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).
501
513
  * @maxLength 1000
502
514
  */
503
515
  preScheduledEventOffsetExpression?: string;
504
- /** Time unit for the scheduled event offset. */
516
+ /** Unit in which to set the action offset. */
505
517
  scheduledEventOffsetTimeUnit?: TimeUnit;
506
518
  }
507
519
  export interface RateLimit {
508
520
  /**
509
- * Value expressing the maximum number of times the trigger can be activated.
521
+ * Maximum number of times the trigger can be activated.
510
522
  * @maxLength 1000
511
523
  */
512
524
  maxActivationsExpression?: string;
513
525
  /**
514
- * Duration of the rate limiting window in the selected time unit. If no value is set, the rate limit is permanent.
526
+ * Duration of the rate limit. The rate limit applies for the specified duration and then expires.
527
+ *
528
+ * When empty, the rate limit does not expire.
515
529
  * @maxLength 1000
516
530
  */
517
531
  durationExpression?: string | null;
518
- /** Time unit for the rate limit duration. */
532
+ /** Unit in which to set the duration of the rate limit. */
519
533
  durationTimeUnit?: TimeUnit;
520
534
  /**
521
- * Unique identifier of each activation, by which rate limiter will count activations.
535
+ * Activation identifier used to count the number of activations.
522
536
  * @minLength 1
523
537
  * @maxLength 400
524
538
  */
@@ -526,17 +540,17 @@ export interface RateLimit {
526
540
  }
527
541
  export interface FilterValueSelection {
528
542
  /**
529
- * Values that can help the user filter certain automations, values will look like "<filter_id>__<selected_value>"
543
+ * Values that can help the user filter certain automations. Specify values in the following format: `<filter_id>__<selected_value>`.
530
544
  * @maxLength 80
531
545
  * @maxSize 50
532
546
  */
533
547
  selectedFilterValues?: string[];
534
548
  }
535
549
  export interface ConditionExpressionGroup {
536
- /** Expression group operator. */
550
+ /** Logical operator used to evaluate the condition expressions. */
537
551
  operator?: Operator;
538
552
  /**
539
- * List of boolean expressions to be evaluated with the given operator.
553
+ * Expressions evaluated using the selected operator.
540
554
  * @minSize 1
541
555
  * @maxSize 20
542
556
  * @maxLength 2500
@@ -544,25 +558,58 @@ export interface ConditionExpressionGroup {
544
558
  booleanExpressions?: string[];
545
559
  }
546
560
  export declare enum Operator {
561
+ /** Unknown. */
547
562
  UNKNOWN_OPERATOR = "UNKNOWN_OPERATOR",
563
+ /** `OR` operator. */
548
564
  OR = "OR",
565
+ /** `AND` operator. */
549
566
  AND = "AND"
550
567
  }
568
+ export interface CodeSnippet {
569
+ /** Logical operator used to evaluate the condition expressions. */
570
+ language?: Language;
571
+ /**
572
+ * Expressions evaluated using the selected operator. this code should comply the language syntax. and format
573
+ * @maxLength 1000
574
+ */
575
+ code?: string;
576
+ }
577
+ export declare enum Language {
578
+ /** Unknown. */
579
+ UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
580
+ /** `JAVASCRIPT` language. */
581
+ JAVASCRIPT = "JAVASCRIPT"
582
+ }
583
+ /** Path definition */
584
+ export interface Path {
585
+ /**
586
+ * Unique path ID.
587
+ * @format GUID
588
+ */
589
+ _id?: string;
590
+ /**
591
+ * Path display name.
592
+ * @minLength 1
593
+ * @maxLength 100
594
+ */
595
+ name?: string;
596
+ /**
597
+ * ID of the action to run when this path is taken.
598
+ * @format GUID
599
+ */
600
+ postActionId?: string | null;
601
+ }
551
602
  export declare enum Type {
552
- /** Automation will be triggered according to the trigger configuration. */
603
+ /** Based on the trigger. */
553
604
  UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
554
- /** App defined Action. */
605
+ /** 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. */
555
606
  APP_DEFINED = "APP_DEFINED",
556
- /** Condition Action. */
607
+ /** Condition. This determines which action runs next. */
557
608
  CONDITION = "CONDITION",
558
- /** Delay Action. */
609
+ /** Delay. The automation must wait before executing the next step. */
559
610
  DELAY = "DELAY",
560
- /** RateLimit Action. */
561
- RATE_LIMIT = "RATE_LIMIT",
562
- /** Set Variables Action. */
563
- SET_VARIABLES = "SET_VARIABLES",
564
- /** Output Action. */
565
- OUTPUT = "OUTPUT"
611
+ /** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
612
+ RATE_LIMIT = "RATE_LIMIT"
566
613
  }
567
614
  export interface AppDefinedAction {
568
615
  /**
@@ -576,39 +623,55 @@ export interface AppDefinedAction {
576
623
  * @maxLength 100
577
624
  */
578
625
  actionKey?: string;
579
- /** Action input mapping. */
626
+ /** 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). */
580
627
  inputMapping?: Record<string, any> | null;
581
628
  /**
582
- * Array of conditions determining whether to skip the action in the automation flow.
583
- * The action will be skipped if any of the expression groups evaluate to `true`.
584
- * Actions following a skipped action will still run.
629
+ * Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
630
+ *
631
+ * > **Note**: Actions that follow a skipped action still run.
585
632
  * @maxSize 10
586
633
  */
587
634
  skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
588
635
  /**
589
- * List of IDs of actions to run in parallel once the action completes.
636
+ * IDs of actions that run in parallel after the action completes.
590
637
  * @maxSize 20
591
638
  * @format GUID
592
639
  */
593
640
  postActionIds?: string[];
594
- /** Optional output schema of the action. It will be used instead the action schema in case it's provided. */
641
+ /** Action output schema. When specified, this replaces the action schema. */
595
642
  overrideOutputSchema?: Record<string, any> | null;
596
643
  }
597
644
  export interface ConditionAction {
598
645
  /**
599
- * The condition evaluates to `true` if either of the expression groups evaluate to `true`.
646
+ * Condition is `true` if one or more of the expression groups evaluates to `true`.
600
647
  * @minSize 1
601
648
  * @maxSize 10
602
649
  */
603
650
  orExpressionGroups?: ConditionExpressionGroup[];
604
651
  /**
605
- * List of IDs of actions to run when the entire condition is evaluated to `true`.
652
+ * IDs of actions to run when the condition evaluates to `true`.
606
653
  * @maxSize 20
607
654
  * @format GUID
608
655
  */
609
656
  truePostActionIds?: string[];
610
657
  /**
611
- * List of IDs of actions to run when the entire condition is evaluated to `false`.
658
+ * IDs of actions to run when the condition evaluates to `false`.
659
+ * @maxSize 20
660
+ * @format GUID
661
+ */
662
+ falsePostActionIds?: string[];
663
+ }
664
+ export interface CodeConditionAction {
665
+ /** 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. */
666
+ snippet?: CodeSnippet;
667
+ /**
668
+ * IDs of actions to run when the condition evaluates to `true`.
669
+ * @maxSize 20
670
+ * @format GUID
671
+ */
672
+ truePostActionIds?: string[];
673
+ /**
674
+ * IDs of actions to run when the condition evaluates to `false`.
612
675
  * @maxSize 20
613
676
  * @format GUID
614
677
  */
@@ -616,21 +679,23 @@ export interface ConditionAction {
616
679
  }
617
680
  export interface DelayAction {
618
681
  /**
619
- * Value expressing the amount of time to wait from a specific date or from the time the action is executed.
682
+ * Time to wait before running the action. The wait time starts from when the current action completes.
683
+ *
684
+ * > **Note**: To define the wait time from a specific moment in time, use `dueDateEpochExpression`.
620
685
  * @maxLength 1000
621
686
  */
622
687
  offsetExpression?: string | null;
623
- /** Time unit for delay offset. */
688
+ /** Unit in which to set the wait time to wait before the action runs. */
624
689
  offsetTimeUnit?: TimeUnit;
625
690
  /**
626
- * The action due date. If defined without an offset, the automation will wait until this date to execute the next step.
627
- * If an offset is defined, it's calculated from this date.
628
- * The date is expressed in the number of milliseconds since the Unix Epoch (1 January, 1970 UTC).
691
+ * Action run date in milliseconds elapsed since January 1, 1970 UTC.
692
+ *
693
+ * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
629
694
  * @maxLength 1000
630
695
  */
631
696
  dueDateEpochExpression?: string | null;
632
697
  /**
633
- * List of IDs of actions to run in parallel after the delay.
698
+ * IDs of actions to run in parallel after the time delay.
634
699
  * @maxSize 20
635
700
  * @format GUID
636
701
  */
@@ -638,17 +703,18 @@ export interface DelayAction {
638
703
  }
639
704
  export interface RateLimitAction {
640
705
  /**
641
- * The maximum number of activations allowed for the action.
706
+ * Maximum number of times the action can run.
642
707
  * @maxLength 1000
643
708
  */
644
709
  maxActivationsExpression?: string;
645
710
  /**
646
- * Duration of the rate limiting window, expressed in selected time unit.
647
- * If no value is set, then there is no time limit on the rate limiter.
711
+ * Rate limit duration.
712
+ *
713
+ * When empty, the rate limit does not expire.
648
714
  * @maxLength 1000
649
715
  */
650
716
  rateLimitDurationExpression?: string | null;
651
- /** Time unit for the rate limit duration. */
717
+ /** Unit in which to set the duration of the rate limit. */
652
718
  rateLimitDurationTimeUnit?: TimeUnit;
653
719
  /**
654
720
  * Unique identifier of each activation by which rate limiter counts activations.
@@ -657,25 +723,23 @@ export interface RateLimitAction {
657
723
  */
658
724
  uniqueIdentifierExpression?: string | null;
659
725
  /**
660
- * List of IDs of actions to run in parallel once the action completes.
726
+ * IDs of actions to run in parallel after the action completes.
661
727
  * @maxSize 20
662
728
  * @format GUID
663
729
  */
664
730
  postActionIds?: string[];
665
731
  }
666
732
  export interface SetVariablesAction {
667
- /**
668
- * output mapping
669
- * for example: {"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }
670
- */
733
+ /** Output mapping. For example: `{"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }`. */
671
734
  outputMapping?: Record<string, any> | null;
672
735
  /**
673
- * output json schema representation
674
- * could be string instead of Struct (and introduce some compression to minimize the size of it)
736
+ * Output JSON schema representation.
737
+ *
738
+ * > **Note**: To minimize request size, you can also specify a string.
675
739
  */
676
740
  outputSchema?: Record<string, any> | null;
677
741
  /**
678
- * List of IDs of actions to run in parallel after variable initialization.
742
+ * IDs of actions to run in parallel after variable initialization.
679
743
  * @maxSize 20
680
744
  * @format GUID
681
745
  */
@@ -685,12 +749,20 @@ export interface OutputAction {
685
749
  /** Output action output mapping. */
686
750
  outputMapping?: Record<string, any> | null;
687
751
  }
752
+ export interface SplitAction {
753
+ /**
754
+ * List of paths to split execution into.
755
+ * @minSize 2
756
+ * @maxSize 10
757
+ */
758
+ paths?: Path[];
759
+ }
688
760
  export declare enum AutomationConfigurationStatus {
689
- /** unused */
761
+ /** Unknown. */
690
762
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
691
- /** Automation will be triggered according to the trigger configuration */
763
+ /** Active. Active automations can be triggered. */
692
764
  ACTIVE = "ACTIVE",
693
- /** Automation will not be triggered */
765
+ /** Inactive. Inactive automations cannot be triggered. */
694
766
  INACTIVE = "INACTIVE"
695
767
  }
696
768
  export interface Trigger {
@@ -701,51 +773,54 @@ export interface Trigger {
701
773
  appId?: string;
702
774
  /**
703
775
  * Trigger key.
776
+ *
777
+ * 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).
704
778
  * @minLength 1
705
779
  * @maxLength 100
706
780
  */
707
781
  triggerKey?: string;
708
782
  /**
709
- * List of filters on schema fields.
710
- * In order for the automation to run, all filter expressions must evaluate to `true` for a given payload.
783
+ * Schema field filters. All filter conditions must be met for the automation to run.
784
+ *
785
+ * Learn more about setting up [automation filters](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#filters).
711
786
  * @maxSize 5
712
787
  */
713
788
  filters?: Filter[];
714
- /** Defines the time offset between the trigger date and when the automation runs. */
715
- scheduledEventOffset?: FutureDateActivationOffset;
716
- /** Limits the number of times an automation can be triggered. */
717
- rateLimit?: RateLimit;
718
789
  /**
719
- * An optional configuration, per automation, of a schema that is optionally offered by the trigger provider to affect the behavior of the trigger.
720
- * 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,
721
- * He would define a schema with a field called "startDate" and using this parameter the user can define his preferred startDate, per automation.
790
+ * Automation offset. You can schedule automations to run before the trigger occurs.
791
+ *
792
+ * Learn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).
722
793
  */
723
- automationConfigMapping?: Record<string, any> | null;
724
- /** Optional schema of the trigger. It will be used instead the trigger schema in case it's provided. */
794
+ scheduledEventOffset?: FutureDateActivationOffset;
795
+ /** Limit on the number of times an automation can be triggered. */
796
+ rateLimit?: RateLimit;
797
+ /** Trigger schema override. When specified, this replaces the trigger schema. */
725
798
  overrideSchema?: Record<string, any> | null;
726
799
  }
727
800
  export interface Action extends ActionInfoOneOf {
728
- /** Action defined by an app (via RPC, HTTP or Velo). */
801
+ /** Details of the action when its `type` is `APP_DEFINED`. */
729
802
  appDefinedInfo?: AppDefinedAction;
730
- /** Condition action. */
803
+ /** Details of the action when its `type` is `CONDITION`. */
731
804
  conditionInfo?: ConditionAction;
732
- /** Delay action. */
805
+ /** Details of the action when its `type` is `CODE_CONDITION`. */
806
+ codeConditionInfo?: CodeConditionAction;
807
+ /** Details of the action when its `type` is `DELAY`. */
733
808
  delayInfo?: DelayAction;
734
- /** Rate-limiting action. */
809
+ /** Details of the action when its `type` is `RATE_LIMIT`. */
735
810
  rateLimitInfo?: RateLimitAction;
736
811
  /**
737
- * Action ID. If not specified, a new ID is generated.
812
+ * Action ID.
813
+ *
814
+ * If not specified, automatically generated by Wix.
738
815
  * @format GUID
739
816
  */
740
817
  _id?: string | null;
741
- /** Action type. */
818
+ /** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#action-type). */
742
819
  type?: Type;
743
820
  /**
744
- * Human-readable name to differentiate the action from other actions of the same type.
745
- * The name can contain only alphanumeric characters and underscores. If not provided, a namespace in the form `actionkey-indexOfAction` is
746
- * generated automatically.
747
- * If the action has output, the output will be available in the payload under this name.
748
- * If the user has multiple actions with the same appId and actionKey, previous action output will be overwritten.
821
+ * [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.
822
+ *
823
+ * 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.
749
824
  * @minLength 1
750
825
  * @maxLength 100
751
826
  */
@@ -753,18 +828,20 @@ export interface Action extends ActionInfoOneOf {
753
828
  }
754
829
  /** @oneof */
755
830
  export interface ActionInfoOneOf {
756
- /** Action defined by an app (via RPC, HTTP or Velo). */
831
+ /** Details of the action when its `type` is `APP_DEFINED`. */
757
832
  appDefinedInfo?: AppDefinedAction;
758
- /** Condition action. */
833
+ /** Details of the action when its `type` is `CONDITION`. */
759
834
  conditionInfo?: ConditionAction;
760
- /** Delay action. */
835
+ /** Details of the action when its `type` is `CODE_CONDITION`. */
836
+ codeConditionInfo?: CodeConditionAction;
837
+ /** Details of the action when its `type` is `DELAY`. */
761
838
  delayInfo?: DelayAction;
762
- /** Rate-limiting action. */
839
+ /** Details of the action when its `type` is `RATE_LIMIT`. */
763
840
  rateLimitInfo?: RateLimitAction;
764
841
  }
765
842
  export interface FilterableAppDefinedActions {
766
843
  /**
767
- * App defined action identifiers, each identifier in form `${appId}_${actionKey}`
844
+ * App-defined action identifiers. Identifiers have the following format: `${appId}_${actionKey}`.
768
845
  * @minSize 1
769
846
  * @maxSize 100
770
847
  * @minLength 1
@@ -773,48 +850,40 @@ export interface FilterableAppDefinedActions {
773
850
  actionIdentifiers?: string[];
774
851
  }
775
852
  export declare enum Origin {
776
- /** Default value. This is unused. */
853
+ /** Default value. */
777
854
  UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
778
- /** User created automation. */
855
+ /** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */
779
856
  USER = "USER",
780
- /** Automation created by application (site specific). */
857
+ /** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */
781
858
  APPLICATION = "APPLICATION",
782
- /** Preinstalled application automation. */
783
- PREINSTALLED = "PREINSTALLED",
784
- /** Automation created from a recipe. */
785
- RECIPE = "RECIPE"
859
+ /** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */
860
+ PREINSTALLED = "PREINSTALLED"
786
861
  }
787
862
  export interface ApplicationOrigin {
788
863
  /**
789
- * Application ID.
864
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
865
+ *
866
+ * 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.
790
867
  * @format GUID
791
868
  */
792
869
  appId?: string;
793
- /**
794
- * External ID to correlate multiple sites to an automation
795
- * @format GUID
796
- */
797
- appDefinedExternalId?: string | null;
798
870
  }
799
871
  export interface PreinstalledOrigin {
800
872
  /**
801
- * ID of the app that defines the preinstalled automation.
873
+ * 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).
802
874
  * @format GUID
803
875
  */
804
876
  appId?: string;
805
877
  /**
806
- * Application component ID.
807
- * @format GUID
808
- */
809
- componentId?: string;
810
- /** Application component version. */
811
- componentVersion?: number;
812
- /**
813
- * Whether the automation is an override automation. If the user modifies the preinstalled automation installed on their site, a site-specific
814
- * automation is created that overrides the original one. If the user makes no modifications this boolean is set to `false` and the original
815
- * preinstalled automation is used.
878
+ * Whether the automation is an override.
816
879
  *
817
- * Default: `false`
880
+ * 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.
881
+ *
882
+ * > **Note**: An override automation can no longer be updated by the app that originally installed it.
883
+ * >
884
+ * > 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.
885
+ *
886
+ * Default: `false`.
818
887
  * @immutable
819
888
  * @readonly
820
889
  */
@@ -823,22 +892,26 @@ export interface PreinstalledOrigin {
823
892
  export interface AutomationSettings {
824
893
  /**
825
894
  * Whether the automation is hidden from users.
895
+ *
826
896
  * Default: `false`
827
897
  */
828
898
  hidden?: boolean;
829
899
  /**
830
900
  * Whether the automation is read-only.
901
+ *
831
902
  * Default: `false`
832
903
  */
833
904
  readonly?: boolean;
834
905
  /**
835
- * Whether the option to delete the automation from the site is disabled.
836
- * Default: `false`
906
+ * Whether to disable the option to delete the automation from the site.
907
+ *
908
+ * Default: `false`.
837
909
  */
838
910
  disableDelete?: boolean;
839
911
  /**
840
- * Whether the option to change the automation status (from active to inactive and vice versa) is disabled.
841
- * Default: `false`
912
+ * Whether to disable the option to change the automation's `configuration.status`, for example from `ACTIVE` to `INACTIVE`.
913
+ *
914
+ * Default: `false`.
842
915
  */
843
916
  disableStatusChange?: boolean;
844
917
  /** Automation action settings. */
@@ -846,7 +919,7 @@ export interface AutomationSettings {
846
919
  }
847
920
  export interface DraftInfo {
848
921
  /**
849
- * Optional - automationId of the original automation.
922
+ * ID of the original automation.
850
923
  * @format GUID
851
924
  * @readonly
852
925
  */
@@ -916,7 +989,7 @@ export interface ListActivationLogsRequest extends ListActivationLogsRequestIden
916
989
  /** Should return payload in the response */
917
990
  includePayload?: boolean | null;
918
991
  /** identifier type for the activations to list */
919
- identifierType?: IdentifierType;
992
+ identifierType: IdentifierType;
920
993
  }
921
994
  /** @oneof */
922
995
  export interface ListActivationLogsRequestIdentifierOneOf {
@@ -1098,47 +1171,7 @@ export declare enum WebhookIdentityType {
1098
1171
  WIX_USER = "WIX_USER",
1099
1172
  APP = "APP"
1100
1173
  }
1101
- interface InitiatedStatusInfoNonNullableFields {
1102
- target: Target;
1103
- }
1104
- interface ScheduledStatusInfoNonNullableFields {
1105
- scheduleId: string;
1106
- }
1107
- interface CancelledStatusInfoNonNullableFields {
1108
- reason: CancellationReason;
1109
- }
1110
- interface FailedStatusInfoNonNullableFields {
1111
- errorDescription: string;
1112
- errorReason: ErrorReason;
1113
- }
1114
- interface SkippedStatusInfoNonNullableFields {
1115
- reason: SkipReason;
1116
- }
1117
- interface WarningNonNullableFields {
1118
- errorDescription: string;
1119
- reason: WarningReason;
1120
- }
1121
- export interface ActivationLogNonNullableFields {
1122
- _id: string;
1123
- automationId: string;
1124
- automationRevision: string;
1125
- status: Status;
1126
- initiatedInfo?: InitiatedStatusInfoNonNullableFields;
1127
- scheduledInfo?: ScheduledStatusInfoNonNullableFields;
1128
- cancelledInfo?: CancelledStatusInfoNonNullableFields;
1129
- failedInfo?: FailedStatusInfoNonNullableFields;
1130
- skippedInfo?: SkippedStatusInfoNonNullableFields;
1131
- warnings: WarningNonNullableFields[];
1132
- }
1133
- export interface GetActivationLogResponseNonNullableFields {
1134
- activationLog?: ActivationLogNonNullableFields;
1135
- }
1136
- export interface ListActivationLogsResponseNonNullableFields {
1137
- activationLogs: ActivationLogNonNullableFields[];
1138
- }
1139
- export interface SearchActivationLogsByPayloadPiiValueResponseNonNullableFields {
1140
- activationLogs: ActivationLogNonNullableFields[];
1141
- }
1174
+ type ActivationLogNonNullablePaths = `_id` | `automationId` | `automationRevision` | `status` | `initiatedInfo.target` | `scheduledInfo.scheduleId` | `cancelledInfo.reason` | `failedInfo.errorDescription` | `failedInfo.errorReason` | `skippedInfo.reason` | `warnings` | `warnings.${number}.errorDescription` | `warnings.${number}.reason`;
1142
1175
  /**
1143
1176
  * Get activation log by ID
1144
1177
  * @param activationId - Activation log ID
@@ -1146,24 +1179,31 @@ export interface SearchActivationLogsByPayloadPiiValueResponseNonNullableFields
1146
1179
  * @documentationMaturity preview
1147
1180
  * @requiredField activationId
1148
1181
  * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
1182
+ * @permissionScope Manage Stores
1183
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1149
1184
  * @permissionScope Set Up Automations
1150
1185
  * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
1151
1186
  * @applicableIdentity APP
1152
1187
  * @returns Activation log
1153
1188
  * @fqn wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog
1154
1189
  */
1155
- export declare function getActivationLog(activationId: string): Promise<ActivationLog & ActivationLogNonNullableFields>;
1190
+ export declare function getActivationLog(activationId: string): Promise<NonNullablePaths<ActivationLog, ActivationLogNonNullablePaths>>;
1156
1191
  /**
1157
1192
  * List activation logs
1158
1193
  * @public
1159
1194
  * @documentationMaturity preview
1195
+ * @requiredField options.identifierType
1160
1196
  * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
1197
+ * @permissionScope Manage Stores
1198
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1161
1199
  * @permissionScope Set Up Automations
1162
1200
  * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
1163
1201
  * @applicableIdentity APP
1164
1202
  * @fqn wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs
1165
1203
  */
1166
- export declare function listActivationLogs(options?: ListActivationLogsOptions): Promise<ListActivationLogsResponse & ListActivationLogsResponseNonNullableFields>;
1204
+ export declare function listActivationLogs(options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`>): Promise<NonNullablePaths<ListActivationLogsResponse, {
1205
+ [P in ActivationLogNonNullablePaths]: `activationLogs.${number}.${P}`;
1206
+ }[ActivationLogNonNullablePaths]>>;
1167
1207
  export interface ListActivationLogsOptions extends ListActivationLogsOptionsIdentifierOneOf {
1168
1208
  /** From created date, If not specified, defaults to 30 days before the current time. */
1169
1209
  fromCreatedDate?: Date | null;
@@ -1174,7 +1214,7 @@ export interface ListActivationLogsOptions extends ListActivationLogsOptionsIden
1174
1214
  /** Should return payload in the response */
1175
1215
  includePayload?: boolean | null;
1176
1216
  /** identifier type for the activations to list */
1177
- identifierType?: IdentifierType;
1217
+ identifierType: IdentifierType;
1178
1218
  /** Look up activations by automation id */
1179
1219
  automationIdInfo?: AutomationIdInfo;
1180
1220
  /** Look up activations by preinstalled identifier */
@@ -1196,12 +1236,16 @@ export interface ListActivationLogsOptionsIdentifierOneOf {
1196
1236
  * @documentationMaturity preview
1197
1237
  * @requiredField value
1198
1238
  * @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
1239
+ * @permissionScope Manage Stores
1240
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1199
1241
  * @permissionScope Set Up Automations
1200
1242
  * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
1201
1243
  * @applicableIdentity APP
1202
1244
  * @fqn wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue
1203
1245
  */
1204
- export declare function searchActivationLogsByPayloadPiiValue(value: string, options?: SearchActivationLogsByPayloadPiiValueOptions): Promise<SearchActivationLogsByPayloadPiiValueResponse & SearchActivationLogsByPayloadPiiValueResponseNonNullableFields>;
1246
+ export declare function searchActivationLogsByPayloadPiiValue(value: string, options?: SearchActivationLogsByPayloadPiiValueOptions): Promise<NonNullablePaths<SearchActivationLogsByPayloadPiiValueResponse, {
1247
+ [P in ActivationLogNonNullablePaths]: `activationLogs.${number}.${P}`;
1248
+ }[ActivationLogNonNullablePaths]>>;
1205
1249
  export interface SearchActivationLogsByPayloadPiiValueOptions extends SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf {
1206
1250
  /** Paging */
1207
1251
  cursorPaging?: CursorPaging;