@wix/auto_sdk_automations_automations-v-2 1.0.16 → 1.0.18

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 (37) hide show
  1. package/build/cjs/index.d.ts +12 -29
  2. package/build/cjs/index.js +41 -19
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +41 -30
  5. package/build/cjs/index.typings.js +38 -19
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +25 -1
  8. package/build/cjs/meta.js +38 -19
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +12 -29
  11. package/build/es/index.mjs +41 -19
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +41 -30
  14. package/build/es/index.typings.mjs +38 -19
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +25 -1
  17. package/build/es/meta.mjs +38 -19
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +12 -29
  20. package/build/internal/cjs/index.js +41 -19
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +41 -30
  23. package/build/internal/cjs/index.typings.js +38 -19
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +25 -1
  26. package/build/internal/cjs/meta.js +38 -19
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +12 -29
  29. package/build/internal/es/index.mjs +41 -19
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +41 -30
  32. package/build/internal/es/index.typings.mjs +38 -19
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +25 -1
  35. package/build/internal/es/meta.mjs +38 -19
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -68,6 +68,8 @@ interface Automation extends AutomationOriginInfoOneOf {
68
68
  * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
69
69
  */
70
70
  archived?: boolean;
71
+ /** Auto archive policy */
72
+ autoArchivePolicy?: AutoArchivePolicy;
71
73
  }
72
74
  /** @oneof */
73
75
  interface AutomationOriginInfoOneOf {
@@ -354,7 +356,7 @@ interface DelayAction {
354
356
  /**
355
357
  * Time to wait before running the action. The wait time starts from when the current action completes.
356
358
  *
357
- * > **Note**: To define the wait time from a specific moment in time, use `dueDateEpochExpression`.
359
+ * > **Note**: To define the wait time from a specific moment in time, use `dueDateEpochExpression` or `dueDateExpression`.
358
360
  * @maxLength 1000
359
361
  */
360
362
  offsetExpression?: string | null;
@@ -365,8 +367,21 @@ interface DelayAction {
365
367
  *
366
368
  * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
367
369
  * @maxLength 1000
370
+ * @deprecated Action run date in milliseconds elapsed since January 1, 1970 UTC.
371
+ *
372
+ * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
373
+ * @replacedBy due_date_expression
374
+ * @targetRemovalDate 2026-02-01
368
375
  */
369
376
  dueDateEpochExpression?: string | null;
377
+ /**
378
+ * Action run date as a timestamp/datetime string expression using bracket language.
379
+ * The expression will be converted to JSONata and should evaluate to a timestamp/datetime format.
380
+ *
381
+ * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
382
+ * @maxLength 1000
383
+ */
384
+ dueDateExpression?: string | null;
370
385
  /**
371
386
  * IDs of actions to run in parallel after the time delay.
372
387
  * @maxSize 20
@@ -896,6 +911,15 @@ interface CodeConditionAction {
896
911
  */
897
912
  falsePostActionIds?: string[];
898
913
  }
914
+ interface AutoArchivePolicy {
915
+ /**
916
+ * Date when to archive the automation
917
+ * If this date in the past, nothing will happen (automation will not go into archived state)
918
+ * If this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE
919
+ * After this date the automation may be unarchived and archived again, this date will have no influence
920
+ */
921
+ archiveDate?: Date | null;
922
+ }
899
923
  interface CreateAutomationRequest {
900
924
  /** Automation to create. */
901
925
  automation: Automation;
@@ -2363,7 +2387,6 @@ interface AutomationUpdatedEnvelope {
2363
2387
  * @documentationMaturity preview
2364
2388
  */
2365
2389
  declare function onAutomationUpdated(handler: (event: AutomationUpdatedEnvelope) => void | Promise<void>): void;
2366
- type AutomationNonNullablePaths = `applicationInfo.appId` | `preinstalledInfo.appId` | `createdBy.userId` | `createdBy.appId` | `updatedBy.userId` | `updatedBy.appId` | `name` | `configuration.status` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `configuration.trigger.filters` | `configuration.trigger.filters.${number}._id` | `configuration.trigger.filters.${number}.fieldKey` | `configuration.trigger.filters.${number}.filterExpression` | `configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `configuration.trigger.rateLimit.maxActivationsExpression` | `configuration.trigger.rateLimit.durationTimeUnit` | `configuration.rootActionIds` | `origin` | `settings.hidden` | `settings.readonly` | `settings.disableDelete` | `settings.disableStatusChange` | `settings.actionSettings.permanentActionIds` | `settings.actionSettings.readonlyActionIds` | `settings.actionSettings.disableDelayAddition` | `settings.actionSettings.disableConditionAddition` | `archived`;
2367
2390
  /**
2368
2391
  * Creates an automation.
2369
2392
  * @param automation - Automation to create.
@@ -2384,7 +2407,7 @@ type AutomationNonNullablePaths = `applicationInfo.appId` | `preinstalledInfo.ap
2384
2407
  * @returns Details of the created automation.
2385
2408
  * @fqn wix.automations.v2.AutomationsService.CreateAutomation
2386
2409
  */
2387
- declare function createAutomation(automation: NonNullablePaths<Automation, `configuration` | `configuration.actions` | `configuration.rootActionIds` | `configuration.status` | `configuration.trigger` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `name` | `origin`>): Promise<NonNullablePaths<Automation, AutomationNonNullablePaths>>;
2410
+ declare function createAutomation(automation: NonNullablePaths<Automation, `configuration` | `configuration.actions` | `configuration.rootActionIds` | `configuration.status` | `configuration.trigger` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `name` | `origin`>): Promise<NonNullablePaths<Automation, `applicationInfo.appId` | `preinstalledInfo.appId` | `createdBy.userId` | `createdBy.appId` | `name` | `configuration.status` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `configuration.trigger.filters` | `configuration.trigger.filters.${number}._id` | `configuration.trigger.filters.${number}.fieldKey` | `configuration.trigger.filters.${number}.filterExpression` | `configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `configuration.trigger.rateLimit.maxActivationsExpression` | `configuration.trigger.rateLimit.durationTimeUnit` | `configuration.rootActionIds` | `origin` | `settings.hidden` | `settings.readonly` | `settings.disableDelete` | `settings.disableStatusChange` | `settings.actionSettings.permanentActionIds` | `settings.actionSettings.readonlyActionIds` | `settings.actionSettings.disableDelayAddition` | `settings.actionSettings.disableConditionAddition` | `archived`>>;
2388
2411
  /**
2389
2412
  * Retrieves an automation by ID.
2390
2413
  * @param automationId - Automation ID.
@@ -2396,7 +2419,7 @@ declare function createAutomation(automation: NonNullablePaths<Automation, `conf
2396
2419
  * @returns Retrieved automation.
2397
2420
  * @fqn wix.automations.v2.AutomationsService.GetAutomation
2398
2421
  */
2399
- declare function getAutomation(automationId: string): Promise<NonNullablePaths<Automation, AutomationNonNullablePaths>>;
2422
+ declare function getAutomation(automationId: string): Promise<NonNullablePaths<Automation, `applicationInfo.appId` | `preinstalledInfo.appId` | `createdBy.userId` | `createdBy.appId` | `name` | `configuration.status` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `configuration.trigger.filters` | `configuration.trigger.filters.${number}._id` | `configuration.trigger.filters.${number}.fieldKey` | `configuration.trigger.filters.${number}.filterExpression` | `configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `configuration.trigger.rateLimit.maxActivationsExpression` | `configuration.trigger.rateLimit.durationTimeUnit` | `configuration.rootActionIds` | `origin` | `settings.hidden` | `settings.readonly` | `settings.disableDelete` | `settings.disableStatusChange` | `settings.actionSettings.permanentActionIds` | `settings.actionSettings.readonlyActionIds` | `settings.actionSettings.disableDelayAddition` | `settings.actionSettings.disableConditionAddition` | `archived`>>;
2400
2423
  /**
2401
2424
  * Updates the specified automation.
2402
2425
  *
@@ -2412,7 +2435,7 @@ declare function getAutomation(automationId: string): Promise<NonNullablePaths<A
2412
2435
  * @returns Updated automation.
2413
2436
  * @fqn wix.automations.v2.AutomationsService.UpdateAutomation
2414
2437
  */
2415
- declare function updateAutomation(_id: string, automation: NonNullablePaths<UpdateAutomation, `revision`>): Promise<NonNullablePaths<Automation, AutomationNonNullablePaths>>;
2438
+ declare function updateAutomation(_id: string, automation: NonNullablePaths<UpdateAutomation, `revision`>): Promise<NonNullablePaths<Automation, `applicationInfo.appId` | `preinstalledInfo.appId` | `createdBy.userId` | `createdBy.appId` | `name` | `configuration.status` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `configuration.trigger.filters` | `configuration.trigger.filters.${number}._id` | `configuration.trigger.filters.${number}.fieldKey` | `configuration.trigger.filters.${number}.filterExpression` | `configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `configuration.trigger.rateLimit.maxActivationsExpression` | `configuration.trigger.rateLimit.durationTimeUnit` | `configuration.rootActionIds` | `origin` | `settings.hidden` | `settings.readonly` | `settings.disableDelete` | `settings.disableStatusChange` | `settings.actionSettings.permanentActionIds` | `settings.actionSettings.readonlyActionIds` | `settings.actionSettings.disableDelayAddition` | `settings.actionSettings.disableConditionAddition` | `archived`>>;
2416
2439
  interface UpdateAutomation {
2417
2440
  /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
2418
2441
  applicationInfo?: ApplicationOrigin;
@@ -2481,6 +2504,8 @@ interface UpdateAutomation {
2481
2504
  * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
2482
2505
  */
2483
2506
  archived?: boolean;
2507
+ /** Auto archive policy */
2508
+ autoArchivePolicy?: AutoArchivePolicy;
2484
2509
  }
2485
2510
  /**
2486
2511
  * Deletes the specified automation.
@@ -2516,9 +2541,7 @@ declare function bulkDeleteAutomations(automationIds: string[]): Promise<NonNull
2516
2541
  * @requiredField automation
2517
2542
  * @fqn wix.automations.v2.AutomationsService.GeneratePreinstalledAutomation
2518
2543
  */
2519
- declare function generatePreinstalledAutomation(automation: Automation, options?: GeneratePreinstalledAutomationOptions): Promise<NonNullablePaths<GeneratePreinstalledAutomationResponse, {
2520
- [P in AutomationNonNullablePaths]: `automation.${P}`;
2521
- }[AutomationNonNullablePaths]>>;
2544
+ declare function generatePreinstalledAutomation(automation: Automation, options?: GeneratePreinstalledAutomationOptions): Promise<NonNullablePaths<GeneratePreinstalledAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.settings.actionSettings.disableDelayAddition` | `automation.settings.actionSettings.disableConditionAddition` | `automation.archived`>>;
2522
2545
  interface GeneratePreinstalledAutomationOptions {
2523
2546
  /**
2524
2547
  * ID of the app to which the automation belongs.
@@ -2657,9 +2680,7 @@ interface GetAggregatedUsageInfoOptions {
2657
2680
  * @applicableIdentity APP
2658
2681
  * @fqn wix.automations.v2.AutomationsService.CopyAutomation
2659
2682
  */
2660
- declare function copyAutomation(automationId: string, options?: CopyAutomationOptions): Promise<NonNullablePaths<CopyAutomationResponse, {
2661
- [P in AutomationNonNullablePaths]: `automation.${P}`;
2662
- }[AutomationNonNullablePaths]>>;
2683
+ declare function copyAutomation(automationId: string, options?: CopyAutomationOptions): Promise<NonNullablePaths<CopyAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.settings.actionSettings.disableDelayAddition` | `automation.settings.actionSettings.disableConditionAddition` | `automation.archived`>>;
2663
2684
  interface CopyAutomationOptions {
2664
2685
  /** Origin of the automation to copy. */
2665
2686
  origin?: OriginWithLiterals;
@@ -2674,9 +2695,7 @@ interface CopyAutomationOptions {
2674
2695
  * @applicableIdentity APP
2675
2696
  * @fqn wix.automations.v2.AutomationsService.CreateDraftAutomation
2676
2697
  */
2677
- declare function createDraftAutomation(options?: CreateDraftAutomationOptions): Promise<NonNullablePaths<CreateDraftAutomationResponse, {
2678
- [P in AutomationNonNullablePaths]: `automation.${P}`;
2679
- }[AutomationNonNullablePaths]>>;
2698
+ declare function createDraftAutomation(options?: CreateDraftAutomationOptions): Promise<NonNullablePaths<CreateDraftAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.settings.actionSettings.disableDelayAddition` | `automation.settings.actionSettings.disableConditionAddition` | `automation.archived`>>;
2680
2699
  interface CreateDraftAutomationOptions {
2681
2700
  /** Draft automation to create. */
2682
2701
  automation?: Automation;
@@ -2693,9 +2712,7 @@ interface CreateDraftAutomationOptions {
2693
2712
  * @applicableIdentity APP
2694
2713
  * @fqn wix.automations.v2.AutomationsService.GetOrCreateDraftAutomation
2695
2714
  */
2696
- declare function getOrCreateDraftAutomation(originalAutomationId: string): Promise<NonNullablePaths<GetOrCreateDraftAutomationResponse, {
2697
- [P in AutomationNonNullablePaths]: `automation.${P}`;
2698
- }[AutomationNonNullablePaths]>>;
2715
+ declare function getOrCreateDraftAutomation(originalAutomationId: string): Promise<NonNullablePaths<GetOrCreateDraftAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.settings.actionSettings.disableDelayAddition` | `automation.settings.actionSettings.disableConditionAddition` | `automation.archived`>>;
2699
2716
  /**
2700
2717
  * Updates a draft automation.
2701
2718
  * @param _id - Automation ID.
@@ -2707,9 +2724,7 @@ declare function getOrCreateDraftAutomation(originalAutomationId: string): Promi
2707
2724
  * @applicableIdentity APP
2708
2725
  * @fqn wix.automations.v2.AutomationsService.UpdateDraftAutomation
2709
2726
  */
2710
- declare function updateDraftAutomation(_id: string, automation: UpdateDraftAutomation): Promise<NonNullablePaths<UpdateDraftAutomationResponse, {
2711
- [P in AutomationNonNullablePaths]: `automation.${P}`;
2712
- }[AutomationNonNullablePaths]>>;
2727
+ declare function updateDraftAutomation(_id: string, automation: UpdateDraftAutomation): Promise<NonNullablePaths<UpdateDraftAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.settings.actionSettings.disableDelayAddition` | `automation.settings.actionSettings.disableConditionAddition` | `automation.archived`>>;
2713
2728
  interface UpdateDraftAutomation {
2714
2729
  /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
2715
2730
  applicationInfo?: ApplicationOrigin;
@@ -2778,6 +2793,8 @@ interface UpdateDraftAutomation {
2778
2793
  * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
2779
2794
  */
2780
2795
  archived?: boolean;
2796
+ /** Auto archive policy */
2797
+ autoArchivePolicy?: AutoArchivePolicy;
2781
2798
  }
2782
2799
  /**
2783
2800
  * Retrieves a list of automations, including drafts. Max query filter depth is 3.
@@ -2799,9 +2816,7 @@ interface UpdateDraftAutomation {
2799
2816
  * @applicableIdentity APP
2800
2817
  * @fqn wix.automations.v2.AutomationsService.QueryAutomationsWithDrafts
2801
2818
  */
2802
- declare function queryAutomationsWithDrafts(options?: QueryAutomationsWithDraftsOptions): Promise<NonNullablePaths<QueryAutomationsWithDraftsResponse, {
2803
- [P in AutomationNonNullablePaths]: `automations.${number}.${P}`;
2804
- }[AutomationNonNullablePaths]>>;
2819
+ declare function queryAutomationsWithDrafts(options?: QueryAutomationsWithDraftsOptions): Promise<NonNullablePaths<QueryAutomationsWithDraftsResponse, `automations` | `automations.${number}.applicationInfo.appId` | `automations.${number}.preinstalledInfo.appId` | `automations.${number}.createdBy.userId` | `automations.${number}.createdBy.appId` | `automations.${number}.name` | `automations.${number}.configuration.status` | `automations.${number}.configuration.trigger.appId` | `automations.${number}.configuration.trigger.triggerKey` | `automations.${number}.origin` | `automations.${number}.settings.hidden` | `automations.${number}.settings.readonly` | `automations.${number}.settings.disableDelete` | `automations.${number}.settings.disableStatusChange` | `automations.${number}.settings.actionSettings.disableDelayAddition` | `automations.${number}.settings.actionSettings.disableConditionAddition` | `automations.${number}.archived`>>;
2805
2820
  interface QueryAutomationsWithDraftsOptions {
2806
2821
  /**
2807
2822
  * Query.
@@ -2857,9 +2872,7 @@ declare function deleteDraftAutomation(automationId: string): Promise<void>;
2857
2872
  * @applicableIdentity APP
2858
2873
  * @fqn wix.automations.v2.AutomationsService.PublishDraftAutomation
2859
2874
  */
2860
- declare function publishDraftAutomation(automationId: string): Promise<NonNullablePaths<PublishDraftAutomationResponse, {
2861
- [P in AutomationNonNullablePaths]: `automation.${P}`;
2862
- }[AutomationNonNullablePaths]>>;
2875
+ declare function publishDraftAutomation(automationId: string): Promise<NonNullablePaths<PublishDraftAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.settings.actionSettings.disableDelayAddition` | `automation.settings.actionSettings.disableConditionAddition` | `automation.archived`>>;
2863
2876
  /**
2864
2877
  * Validates the specified automation.
2865
2878
  * @param automation - Automation to validate.
@@ -2900,9 +2913,7 @@ interface ValidateAutomationByIdOptions {
2900
2913
  * @applicableIdentity APP
2901
2914
  * @fqn wix.automations.v2.AutomationRevisionsService.GetAutomationRevision
2902
2915
  */
2903
- declare function getAutomationRevision(automationId: string, options?: GetAutomationRevisionOptions): Promise<NonNullablePaths<GetAutomationRevisionResponse, {
2904
- [P in AutomationNonNullablePaths]: `automation.${P}`;
2905
- }[AutomationNonNullablePaths]>>;
2916
+ declare function getAutomationRevision(automationId: string, options?: GetAutomationRevisionOptions): Promise<NonNullablePaths<GetAutomationRevisionResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.settings.actionSettings.disableDelayAddition` | `automation.settings.actionSettings.disableConditionAddition` | `automation.archived`>>;
2906
2917
  interface GetAutomationRevisionOptions {
2907
2918
  /** Revision number. */
2908
2919
  revision?: string | null;
@@ -2913,4 +2924,4 @@ interface GetAutomationRevisionOptions {
2913
2924
  fields?: RequestedFieldsWithLiterals[];
2914
2925
  }
2915
2926
 
2916
- export { type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationMigrationRequest, type AutomationOriginInfoOneOf, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeletedWithEntity, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioUnassigned, type TestUpdateApplicationAutomationRequest, type TestUpdateApplicationAutomationResponse, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateApplicationAutomationsRequest, type UpdateApplicationAutomationsResponse, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpdatedWithPreviousEntity, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
2927
+ export { type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationMigrationRequest, type AutomationOriginInfoOneOf, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeletedWithEntity, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioUnassigned, type TestUpdateApplicationAutomationRequest, type TestUpdateApplicationAutomationResponse, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateApplicationAutomationsRequest, type UpdateApplicationAutomationsResponse, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpdatedWithPreviousEntity, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
@@ -162,7 +162,8 @@ function createAutomation(payload) {
162
162
  paths: [
163
163
  { path: "automation.createdDate" },
164
164
  { path: "automation.updatedDate" },
165
- { path: "automation.draftUpdatedDate" }
165
+ { path: "automation.draftUpdatedDate" },
166
+ { path: "automation.autoArchivePolicy.archiveDate" }
166
167
  ]
167
168
  }
168
169
  ]);
@@ -183,7 +184,8 @@ function createAutomation(payload) {
183
184
  paths: [
184
185
  { path: "automation.createdDate" },
185
186
  { path: "automation.updatedDate" },
186
- { path: "automation.draftUpdatedDate" }
187
+ { path: "automation.draftUpdatedDate" },
188
+ { path: "automation.autoArchivePolicy.archiveDate" }
187
189
  ]
188
190
  }
189
191
  ])
@@ -211,7 +213,8 @@ function getAutomation(payload) {
211
213
  paths: [
212
214
  { path: "automation.createdDate" },
213
215
  { path: "automation.updatedDate" },
214
- { path: "automation.draftUpdatedDate" }
216
+ { path: "automation.draftUpdatedDate" },
217
+ { path: "automation.autoArchivePolicy.archiveDate" }
215
218
  ]
216
219
  }
217
220
  ])
@@ -232,7 +235,8 @@ function updateAutomation(payload) {
232
235
  paths: [
233
236
  { path: "automation.createdDate" },
234
237
  { path: "automation.updatedDate" },
235
- { path: "automation.draftUpdatedDate" }
238
+ { path: "automation.draftUpdatedDate" },
239
+ { path: "automation.autoArchivePolicy.archiveDate" }
236
240
  ]
237
241
  }
238
242
  ]);
@@ -253,7 +257,8 @@ function updateAutomation(payload) {
253
257
  paths: [
254
258
  { path: "automation.createdDate" },
255
259
  { path: "automation.updatedDate" },
256
- { path: "automation.draftUpdatedDate" }
260
+ { path: "automation.draftUpdatedDate" },
261
+ { path: "automation.autoArchivePolicy.archiveDate" }
257
262
  ]
258
263
  }
259
264
  ])
@@ -306,7 +311,8 @@ function generatePreinstalledAutomation(payload) {
306
311
  paths: [
307
312
  { path: "automation.createdDate" },
308
313
  { path: "automation.updatedDate" },
309
- { path: "automation.draftUpdatedDate" }
314
+ { path: "automation.draftUpdatedDate" },
315
+ { path: "automation.autoArchivePolicy.archiveDate" }
310
316
  ]
311
317
  }
312
318
  ]);
@@ -327,7 +333,8 @@ function generatePreinstalledAutomation(payload) {
327
333
  paths: [
328
334
  { path: "automation.createdDate" },
329
335
  { path: "automation.updatedDate" },
330
- { path: "automation.draftUpdatedDate" }
336
+ { path: "automation.draftUpdatedDate" },
337
+ { path: "automation.autoArchivePolicy.archiveDate" }
331
338
  ]
332
339
  }
333
340
  ])
@@ -355,7 +362,8 @@ function queryAutomations(payload) {
355
362
  paths: [
356
363
  { path: "automations.createdDate" },
357
364
  { path: "automations.updatedDate" },
358
- { path: "automations.draftUpdatedDate" }
365
+ { path: "automations.draftUpdatedDate" },
366
+ { path: "automations.autoArchivePolicy.archiveDate" }
359
367
  ]
360
368
  }
361
369
  ])
@@ -390,7 +398,8 @@ function copyAutomation(payload) {
390
398
  paths: [
391
399
  { path: "automation.createdDate" },
392
400
  { path: "automation.updatedDate" },
393
- { path: "automation.draftUpdatedDate" }
401
+ { path: "automation.draftUpdatedDate" },
402
+ { path: "automation.autoArchivePolicy.archiveDate" }
394
403
  ]
395
404
  }
396
405
  ]);
@@ -411,7 +420,8 @@ function copyAutomation(payload) {
411
420
  paths: [
412
421
  { path: "automation.createdDate" },
413
422
  { path: "automation.updatedDate" },
414
- { path: "automation.draftUpdatedDate" }
423
+ { path: "automation.draftUpdatedDate" },
424
+ { path: "automation.autoArchivePolicy.archiveDate" }
415
425
  ]
416
426
  }
417
427
  ])
@@ -428,7 +438,8 @@ function createDraftAutomation(payload) {
428
438
  paths: [
429
439
  { path: "automation.createdDate" },
430
440
  { path: "automation.updatedDate" },
431
- { path: "automation.draftUpdatedDate" }
441
+ { path: "automation.draftUpdatedDate" },
442
+ { path: "automation.autoArchivePolicy.archiveDate" }
432
443
  ]
433
444
  }
434
445
  ]);
@@ -449,7 +460,8 @@ function createDraftAutomation(payload) {
449
460
  paths: [
450
461
  { path: "automation.createdDate" },
451
462
  { path: "automation.updatedDate" },
452
- { path: "automation.draftUpdatedDate" }
463
+ { path: "automation.draftUpdatedDate" },
464
+ { path: "automation.autoArchivePolicy.archiveDate" }
453
465
  ]
454
466
  }
455
467
  ])
@@ -477,7 +489,8 @@ function getOrCreateDraftAutomation(payload) {
477
489
  paths: [
478
490
  { path: "automation.createdDate" },
479
491
  { path: "automation.updatedDate" },
480
- { path: "automation.draftUpdatedDate" }
492
+ { path: "automation.draftUpdatedDate" },
493
+ { path: "automation.autoArchivePolicy.archiveDate" }
481
494
  ]
482
495
  }
483
496
  ])
@@ -498,7 +511,8 @@ function updateDraftAutomation(payload) {
498
511
  paths: [
499
512
  { path: "automation.createdDate" },
500
513
  { path: "automation.updatedDate" },
501
- { path: "automation.draftUpdatedDate" }
514
+ { path: "automation.draftUpdatedDate" },
515
+ { path: "automation.autoArchivePolicy.archiveDate" }
502
516
  ]
503
517
  }
504
518
  ]);
@@ -519,7 +533,8 @@ function updateDraftAutomation(payload) {
519
533
  paths: [
520
534
  { path: "automation.createdDate" },
521
535
  { path: "automation.updatedDate" },
522
- { path: "automation.draftUpdatedDate" }
536
+ { path: "automation.draftUpdatedDate" },
537
+ { path: "automation.autoArchivePolicy.archiveDate" }
523
538
  ]
524
539
  }
525
540
  ])
@@ -547,7 +562,8 @@ function queryAutomationsWithDrafts(payload) {
547
562
  paths: [
548
563
  { path: "automations.createdDate" },
549
564
  { path: "automations.updatedDate" },
550
- { path: "automations.draftUpdatedDate" }
565
+ { path: "automations.draftUpdatedDate" },
566
+ { path: "automations.autoArchivePolicy.archiveDate" }
551
567
  ]
552
568
  }
553
569
  ])
@@ -611,7 +627,8 @@ function publishDraftAutomation(payload) {
611
627
  paths: [
612
628
  { path: "automation.createdDate" },
613
629
  { path: "automation.updatedDate" },
614
- { path: "automation.draftUpdatedDate" }
630
+ { path: "automation.draftUpdatedDate" },
631
+ { path: "automation.autoArchivePolicy.archiveDate" }
615
632
  ]
616
633
  }
617
634
  ])
@@ -628,7 +645,8 @@ function validateAutomation(payload) {
628
645
  paths: [
629
646
  { path: "automation.createdDate" },
630
647
  { path: "automation.updatedDate" },
631
- { path: "automation.draftUpdatedDate" }
648
+ { path: "automation.draftUpdatedDate" },
649
+ { path: "automation.autoArchivePolicy.archiveDate" }
632
650
  ]
633
651
  }
634
652
  ]);
@@ -685,7 +703,8 @@ function getAutomationRevision(payload) {
685
703
  paths: [
686
704
  { path: "automation.createdDate" },
687
705
  { path: "automation.updatedDate" },
688
- { path: "automation.draftUpdatedDate" }
706
+ { path: "automation.draftUpdatedDate" },
707
+ { path: "automation.autoArchivePolicy.archiveDate" }
689
708
  ]
690
709
  }
691
710
  ])