@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.
- package/build/cjs/index.d.ts +12 -29
- package/build/cjs/index.js +41 -19
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +41 -30
- package/build/cjs/index.typings.js +38 -19
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +25 -1
- package/build/cjs/meta.js +38 -19
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +12 -29
- package/build/es/index.mjs +41 -19
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +41 -30
- package/build/es/index.typings.mjs +38 -19
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +25 -1
- package/build/es/meta.mjs +38 -19
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +12 -29
- package/build/internal/cjs/index.js +41 -19
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +41 -30
- package/build/internal/cjs/index.typings.js +38 -19
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +25 -1
- package/build/internal/cjs/meta.js +38 -19
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +12 -29
- package/build/internal/es/index.mjs +41 -19
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +41 -30
- package/build/internal/es/index.typings.mjs +38 -19
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +25 -1
- package/build/internal/es/meta.mjs +38 -19
- package/build/internal/es/meta.mjs.map +1 -1
- 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,
|
|
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,
|
|
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,
|
|
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 };
|
|
@@ -100,7 +100,8 @@ function createAutomation(payload) {
|
|
|
100
100
|
paths: [
|
|
101
101
|
{ path: "automation.createdDate" },
|
|
102
102
|
{ path: "automation.updatedDate" },
|
|
103
|
-
{ path: "automation.draftUpdatedDate" }
|
|
103
|
+
{ path: "automation.draftUpdatedDate" },
|
|
104
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
104
105
|
]
|
|
105
106
|
}
|
|
106
107
|
]);
|
|
@@ -121,7 +122,8 @@ function createAutomation(payload) {
|
|
|
121
122
|
paths: [
|
|
122
123
|
{ path: "automation.createdDate" },
|
|
123
124
|
{ path: "automation.updatedDate" },
|
|
124
|
-
{ path: "automation.draftUpdatedDate" }
|
|
125
|
+
{ path: "automation.draftUpdatedDate" },
|
|
126
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
125
127
|
]
|
|
126
128
|
}
|
|
127
129
|
])
|
|
@@ -149,7 +151,8 @@ function getAutomation(payload) {
|
|
|
149
151
|
paths: [
|
|
150
152
|
{ path: "automation.createdDate" },
|
|
151
153
|
{ path: "automation.updatedDate" },
|
|
152
|
-
{ path: "automation.draftUpdatedDate" }
|
|
154
|
+
{ path: "automation.draftUpdatedDate" },
|
|
155
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
153
156
|
]
|
|
154
157
|
}
|
|
155
158
|
])
|
|
@@ -170,7 +173,8 @@ function updateAutomation(payload) {
|
|
|
170
173
|
paths: [
|
|
171
174
|
{ path: "automation.createdDate" },
|
|
172
175
|
{ path: "automation.updatedDate" },
|
|
173
|
-
{ path: "automation.draftUpdatedDate" }
|
|
176
|
+
{ path: "automation.draftUpdatedDate" },
|
|
177
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
174
178
|
]
|
|
175
179
|
}
|
|
176
180
|
]);
|
|
@@ -191,7 +195,8 @@ function updateAutomation(payload) {
|
|
|
191
195
|
paths: [
|
|
192
196
|
{ path: "automation.createdDate" },
|
|
193
197
|
{ path: "automation.updatedDate" },
|
|
194
|
-
{ path: "automation.draftUpdatedDate" }
|
|
198
|
+
{ path: "automation.draftUpdatedDate" },
|
|
199
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
195
200
|
]
|
|
196
201
|
}
|
|
197
202
|
])
|
|
@@ -244,7 +249,8 @@ function generatePreinstalledAutomation(payload) {
|
|
|
244
249
|
paths: [
|
|
245
250
|
{ path: "automation.createdDate" },
|
|
246
251
|
{ path: "automation.updatedDate" },
|
|
247
|
-
{ path: "automation.draftUpdatedDate" }
|
|
252
|
+
{ path: "automation.draftUpdatedDate" },
|
|
253
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
248
254
|
]
|
|
249
255
|
}
|
|
250
256
|
]);
|
|
@@ -265,7 +271,8 @@ function generatePreinstalledAutomation(payload) {
|
|
|
265
271
|
paths: [
|
|
266
272
|
{ path: "automation.createdDate" },
|
|
267
273
|
{ path: "automation.updatedDate" },
|
|
268
|
-
{ path: "automation.draftUpdatedDate" }
|
|
274
|
+
{ path: "automation.draftUpdatedDate" },
|
|
275
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
269
276
|
]
|
|
270
277
|
}
|
|
271
278
|
])
|
|
@@ -293,7 +300,8 @@ function queryAutomations(payload) {
|
|
|
293
300
|
paths: [
|
|
294
301
|
{ path: "automations.createdDate" },
|
|
295
302
|
{ path: "automations.updatedDate" },
|
|
296
|
-
{ path: "automations.draftUpdatedDate" }
|
|
303
|
+
{ path: "automations.draftUpdatedDate" },
|
|
304
|
+
{ path: "automations.autoArchivePolicy.archiveDate" }
|
|
297
305
|
]
|
|
298
306
|
}
|
|
299
307
|
])
|
|
@@ -328,7 +336,8 @@ function copyAutomation(payload) {
|
|
|
328
336
|
paths: [
|
|
329
337
|
{ path: "automation.createdDate" },
|
|
330
338
|
{ path: "automation.updatedDate" },
|
|
331
|
-
{ path: "automation.draftUpdatedDate" }
|
|
339
|
+
{ path: "automation.draftUpdatedDate" },
|
|
340
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
332
341
|
]
|
|
333
342
|
}
|
|
334
343
|
]);
|
|
@@ -349,7 +358,8 @@ function copyAutomation(payload) {
|
|
|
349
358
|
paths: [
|
|
350
359
|
{ path: "automation.createdDate" },
|
|
351
360
|
{ path: "automation.updatedDate" },
|
|
352
|
-
{ path: "automation.draftUpdatedDate" }
|
|
361
|
+
{ path: "automation.draftUpdatedDate" },
|
|
362
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
353
363
|
]
|
|
354
364
|
}
|
|
355
365
|
])
|
|
@@ -366,7 +376,8 @@ function createDraftAutomation(payload) {
|
|
|
366
376
|
paths: [
|
|
367
377
|
{ path: "automation.createdDate" },
|
|
368
378
|
{ path: "automation.updatedDate" },
|
|
369
|
-
{ path: "automation.draftUpdatedDate" }
|
|
379
|
+
{ path: "automation.draftUpdatedDate" },
|
|
380
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
370
381
|
]
|
|
371
382
|
}
|
|
372
383
|
]);
|
|
@@ -387,7 +398,8 @@ function createDraftAutomation(payload) {
|
|
|
387
398
|
paths: [
|
|
388
399
|
{ path: "automation.createdDate" },
|
|
389
400
|
{ path: "automation.updatedDate" },
|
|
390
|
-
{ path: "automation.draftUpdatedDate" }
|
|
401
|
+
{ path: "automation.draftUpdatedDate" },
|
|
402
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
391
403
|
]
|
|
392
404
|
}
|
|
393
405
|
])
|
|
@@ -415,7 +427,8 @@ function getOrCreateDraftAutomation(payload) {
|
|
|
415
427
|
paths: [
|
|
416
428
|
{ path: "automation.createdDate" },
|
|
417
429
|
{ path: "automation.updatedDate" },
|
|
418
|
-
{ path: "automation.draftUpdatedDate" }
|
|
430
|
+
{ path: "automation.draftUpdatedDate" },
|
|
431
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
419
432
|
]
|
|
420
433
|
}
|
|
421
434
|
])
|
|
@@ -436,7 +449,8 @@ function updateDraftAutomation(payload) {
|
|
|
436
449
|
paths: [
|
|
437
450
|
{ path: "automation.createdDate" },
|
|
438
451
|
{ path: "automation.updatedDate" },
|
|
439
|
-
{ path: "automation.draftUpdatedDate" }
|
|
452
|
+
{ path: "automation.draftUpdatedDate" },
|
|
453
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
440
454
|
]
|
|
441
455
|
}
|
|
442
456
|
]);
|
|
@@ -457,7 +471,8 @@ function updateDraftAutomation(payload) {
|
|
|
457
471
|
paths: [
|
|
458
472
|
{ path: "automation.createdDate" },
|
|
459
473
|
{ path: "automation.updatedDate" },
|
|
460
|
-
{ path: "automation.draftUpdatedDate" }
|
|
474
|
+
{ path: "automation.draftUpdatedDate" },
|
|
475
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
461
476
|
]
|
|
462
477
|
}
|
|
463
478
|
])
|
|
@@ -485,7 +500,8 @@ function queryAutomationsWithDrafts(payload) {
|
|
|
485
500
|
paths: [
|
|
486
501
|
{ path: "automations.createdDate" },
|
|
487
502
|
{ path: "automations.updatedDate" },
|
|
488
|
-
{ path: "automations.draftUpdatedDate" }
|
|
503
|
+
{ path: "automations.draftUpdatedDate" },
|
|
504
|
+
{ path: "automations.autoArchivePolicy.archiveDate" }
|
|
489
505
|
]
|
|
490
506
|
}
|
|
491
507
|
])
|
|
@@ -549,7 +565,8 @@ function publishDraftAutomation(payload) {
|
|
|
549
565
|
paths: [
|
|
550
566
|
{ path: "automation.createdDate" },
|
|
551
567
|
{ path: "automation.updatedDate" },
|
|
552
|
-
{ path: "automation.draftUpdatedDate" }
|
|
568
|
+
{ path: "automation.draftUpdatedDate" },
|
|
569
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
553
570
|
]
|
|
554
571
|
}
|
|
555
572
|
])
|
|
@@ -566,7 +583,8 @@ function validateAutomation(payload) {
|
|
|
566
583
|
paths: [
|
|
567
584
|
{ path: "automation.createdDate" },
|
|
568
585
|
{ path: "automation.updatedDate" },
|
|
569
|
-
{ path: "automation.draftUpdatedDate" }
|
|
586
|
+
{ path: "automation.draftUpdatedDate" },
|
|
587
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
570
588
|
]
|
|
571
589
|
}
|
|
572
590
|
]);
|
|
@@ -623,7 +641,8 @@ function getAutomationRevision(payload) {
|
|
|
623
641
|
paths: [
|
|
624
642
|
{ path: "automation.createdDate" },
|
|
625
643
|
{ path: "automation.updatedDate" },
|
|
626
|
-
{ path: "automation.draftUpdatedDate" }
|
|
644
|
+
{ path: "automation.draftUpdatedDate" },
|
|
645
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
627
646
|
]
|
|
628
647
|
}
|
|
629
648
|
])
|