@wix/auto_sdk_automations_automations-v-2 1.0.16 → 1.0.17

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 +1 -1
  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 +16 -1
  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 +11 -0
  8. package/build/cjs/meta.js +38 -19
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  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 +16 -1
  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 +11 -0
  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 +1 -1
  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 +16 -1
  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 +11 -0
  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 +1 -1
  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 +16 -1
  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 +11 -0
  35. package/build/internal/es/meta.mjs +38 -19
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -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 {
@@ -896,6 +898,15 @@ interface CodeConditionAction {
896
898
  */
897
899
  falsePostActionIds?: string[];
898
900
  }
901
+ interface AutoArchivePolicy {
902
+ /**
903
+ * Date when to archive the automation
904
+ * If this date in the past, nothing will happen (automation will not go into archived state)
905
+ * If this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE
906
+ * After this date the automation may be unarchived and archived again, this date will have no influence
907
+ */
908
+ archiveDate?: Date | null;
909
+ }
899
910
  interface CreateAutomationRequest {
900
911
  /** Automation to create. */
901
912
  automation: Automation;
@@ -2481,6 +2492,8 @@ interface UpdateAutomation {
2481
2492
  * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
2482
2493
  */
2483
2494
  archived?: boolean;
2495
+ /** Auto archive policy */
2496
+ autoArchivePolicy?: AutoArchivePolicy;
2484
2497
  }
2485
2498
  /**
2486
2499
  * Deletes the specified automation.
@@ -2778,6 +2791,8 @@ interface UpdateDraftAutomation {
2778
2791
  * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
2779
2792
  */
2780
2793
  archived?: boolean;
2794
+ /** Auto archive policy */
2795
+ autoArchivePolicy?: AutoArchivePolicy;
2781
2796
  }
2782
2797
  /**
2783
2798
  * Retrieves a list of automations, including drafts. Max query filter depth is 3.
@@ -2913,4 +2928,4 @@ interface GetAutomationRevisionOptions {
2913
2928
  fields?: RequestedFieldsWithLiterals[];
2914
2929
  }
2915
2930
 
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 };
2931
+ 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
  ])