@wix/auto_sdk_automations_automations-v-2 1.0.4 → 1.0.5

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 (134) hide show
  1. package/build/{internal/cjs/src/automations-v2-automation-automations-v-2.universal.d.ts → automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.mts} +221 -566
  2. package/build/{cjs/src/automations-v2-automation-automations-v-2.universal.d.ts → automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.ts} +221 -566
  3. package/build/index.d.mts +202 -0
  4. package/build/index.d.ts +202 -0
  5. package/build/index.js +1562 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1498 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/automations-v2-automation-automations-v-2.universal.d.ts → automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.mts} +221 -566
  10. package/build/{es/src/automations-v2-automation-automations-v-2.universal.d.ts → internal/automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.ts} +221 -566
  11. package/build/internal/index.d.mts +202 -0
  12. package/build/internal/index.d.ts +202 -0
  13. package/build/internal/index.js +1562 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1498 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +1167 -0
  18. package/build/internal/meta.d.ts +1167 -0
  19. package/build/internal/meta.js +963 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +920 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +1167 -0
  24. package/build/meta.d.ts +1167 -0
  25. package/build/meta.js +963 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +920 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
  40. package/build/cjs/src/automations-v2-automation-automations-v-2.context.js +0 -61
  41. package/build/cjs/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
  42. package/build/cjs/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
  43. package/build/cjs/src/automations-v2-automation-automations-v-2.http.js +0 -666
  44. package/build/cjs/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
  45. package/build/cjs/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
  46. package/build/cjs/src/automations-v2-automation-automations-v-2.meta.js +0 -351
  47. package/build/cjs/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
  48. package/build/cjs/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
  49. package/build/cjs/src/automations-v2-automation-automations-v-2.public.js +0 -167
  50. package/build/cjs/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
  51. package/build/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
  52. package/build/cjs/src/automations-v2-automation-automations-v-2.types.js +0 -276
  53. package/build/cjs/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
  54. package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js +0 -1025
  55. package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
  67. package/build/es/src/automations-v2-automation-automations-v-2.context.js +0 -37
  68. package/build/es/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
  69. package/build/es/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
  70. package/build/es/src/automations-v2-automation-automations-v-2.http.js +0 -646
  71. package/build/es/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
  72. package/build/es/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
  73. package/build/es/src/automations-v2-automation-automations-v-2.meta.js +0 -308
  74. package/build/es/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
  75. package/build/es/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
  76. package/build/es/src/automations-v2-automation-automations-v-2.public.js +0 -126
  77. package/build/es/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
  78. package/build/es/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
  79. package/build/es/src/automations-v2-automation-automations-v-2.types.js +0 -273
  80. package/build/es/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
  81. package/build/es/src/automations-v2-automation-automations-v-2.universal.js +0 -982
  82. package/build/es/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
  93. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.js +0 -61
  94. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
  95. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
  96. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.js +0 -666
  97. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
  98. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
  99. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.js +0 -351
  100. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
  101. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
  102. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.js +0 -167
  103. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
  104. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
  105. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js +0 -276
  106. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
  107. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js +0 -1025
  108. package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
  119. package/build/internal/es/src/automations-v2-automation-automations-v-2.context.js +0 -37
  120. package/build/internal/es/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
  121. package/build/internal/es/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
  122. package/build/internal/es/src/automations-v2-automation-automations-v-2.http.js +0 -646
  123. package/build/internal/es/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
  124. package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
  125. package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.js +0 -308
  126. package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
  127. package/build/internal/es/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
  128. package/build/internal/es/src/automations-v2-automation-automations-v-2.public.js +0 -126
  129. package/build/internal/es/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
  130. package/build/internal/es/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
  131. package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js +0 -273
  132. package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
  133. package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js +0 -982
  134. package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
@@ -0,0 +1,202 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { A as Automation, U as UpdateAutomation, B as BulkDeleteAutomationsResponse, G as GeneratePreinstalledAutomationOptions, a as GeneratePreinstalledAutomationResponse, Q as QueryAutomationsOptions, b as AutomationsQueryBuilder, C as CopyAutomationOptions, c as CopyAutomationResponse, d as CreateDraftAutomationOptions, e as CreateDraftAutomationResponse, f as GetOrCreateDraftAutomationResponse, g as UpdateDraftAutomation, h as UpdateDraftAutomationResponse, i as QueryAutomationsWithDraftsOptions, j as QueryAutomationsWithDraftsResponse, P as PublishDraftAutomationResponse, V as ValidateAutomationOptions, k as ValidateAutomationResponse, l as ValidateAutomationByIdOptions, m as ValidateAutomationByIdResponse, n as GetAutomationRevisionOptions, o as GetAutomationRevisionResponse, p as AutomationCreatedEnvelope, q as AutomationDeletedEnvelope, r as AutomationUpdatedEnvelope } from './automations-v2-automation-automations-v-2.universal-BVuQcd6J.mjs';
3
+ export { ad as Action, bW as ActionConfigurationError, H as ActionErrorType, aw as ActionEvent, ae as ActionInfoOneOf, c3 as ActionProviderQuotaInfo, c4 as ActionQuotaInfo, M as ActionSettings, be as ActionUsageSummary, bU as ActionValidationError, bV as ActionValidationErrorErrorOneOf, bT as ActionValidationInfo, c9 as AdditionalInfo, a5 as AppDefinedAction, aS as ApplicationError, ag as ApplicationOrigin, bi as Asset, Y as AuditInfo, Z as AuditInfoIdOneOf, _ as AutomationConfiguration, bZ as AutomationConfigurationError, J as AutomationErrorType, am as AutomationMigrationRequest, K as AutomationOriginInfoOneOf, ai as AutomationSettings, bX as AutomationValidationError, bY as AutomationValidationErrorErrorOneOf, I as AutomationValidationErrorValidationErrorType, cg as AutomationsQueryResult, ce as BaseEventMetadata, aT as BulkActionMetadata, aP as BulkDeleteAutomationsRequest, aQ as BulkDeleteResult, c8 as CTA, aG as CodeConditionAction, aF as CodeSnippet, a6 as ConditionAction, a3 as ConditionExpressionGroup, bf as CopyAutomationRequest, aH as CreateAutomationRequest, aI as CreateAutomationResponse, bF as CreateDraftAutomationRequest, aU as CreatePreinstalledAutomationRequest, aX as CreatePreinstalledAutomationResponse, b5 as CursorPaging, b7 as CursorPagingMetadata, b2 as CursorQuery, b3 as CursorQueryPagingMethodOneOf, b8 as Cursors, a7 as DelayAction, aN as DeleteAutomationRequest, aO as DeleteAutomationResponse, bm as DeleteContext, bK as DeleteDraftAutomationRequest, bL as DeleteDraftAutomationResponse, a_ as DeletePreinstalledAutomationRequest, a$ as DeletePreinstalledAutomationResponse, x as DeleteStatus, ao as DeletedWithEntity, D as Domain, aq as DomainEvent, ar as DomainEventBodyOneOf, aj as DraftInfo, ap as DraftPublished, bJ as DraftsInfo, ax as Empty, X as Enrichment, ak as Enrichments, as as EntityCreatedEvent, av as EntityDeletedEvent, au as EntityUpdatedEvent, cf as EventMetadata, al as ExtendedFields, $ as Filter, a2 as FilterValueSelection, af as FilterableAppDefinedActions, a0 as FutureDateActivationOffset, b0 as GeneratePreinstalledAutomationRequest, c1 as GetActionsQuotaInfoRequest, c2 as GetActionsQuotaInfoResponse, bb as GetAggregatedUsageInfoRequest, bc as GetAggregatedUsageInfoResponse, b$ as GetAutomationActionSchemaRequest, c0 as GetAutomationActionSchemaResponse, aJ as GetAutomationRequest, aK as GetAutomationResponse, cd as GetAutomationRevisionRequest, bG as GetOrCreateDraftAutomationRequest, aD as IdentificationData, aE as IdentificationDataIdOneOf, aR as ItemMetadata, L as Language, aC as MessageEnvelope, bg as MetaSiteSpecialEvent, bh as MetaSiteSpecialEventPayloadOneOf, cb as MigrateVeloActionAutomationsRequest, cc as MigrateVeloActionAutomationsResponse, N as Namespace, bw as NamespaceChanged, bB as OdeditorAssigned, bC as OdeditorUnassigned, O as Operator, t as Origin, aW as OriginAutomationInfo, aa as OutputAction, a4 as Path, bD as PicassoAssigned, bE as PicassoUnassigned, c6 as Plan, aV as PreinstalledAutomationSpecInfo, ah as PreinstalledOrigin, bS as ProviderConfigurationError, bM as PublishDraftAutomationRequest, b9 as QueryAutomationsRequest, ba as QueryAutomationsResponse, bI as QueryAutomationsWithDraftsRequest, b1 as QueryPreinstalledAutomationsForAppRequest, b6 as QueryPreinstalledAutomationsForAppResponse, c7 as Quota, c5 as QuotaInfo, a1 as RateLimit, a8 as RateLimitAction, R as RequestedFields, at as RestoreInfo, bs as ServiceProvisioned, bt as ServiceRemoved, a9 as SetVariablesAction, bj as SiteCreated, w as SiteCreatedContext, bl as SiteDeleted, bv as SiteHardDeleted, bq as SiteMarkedAsTemplate, br as SiteMarkedAsWixSite, bo as SitePublished, bA as SitePurgedExternally, bu as SiteRenamed, bk as SiteTransferred, bn as SiteUndeleted, bp as SiteUnpublished, bz as SiteUrlChanged, u as SortOrder, b4 as Sorting, ab as SplitAction, v as State, S as Status, bx as StudioAssigned, by as StudioUnassigned, aA as TestUpdateApplicationAutomationRequest, aB as TestUpdateApplicationAutomationResponse, T as TimeUnit, ac as Trigger, bR as TriggerConfigurationError, z as TriggerErrorType, bd as TriggerUsageSummary, bP as TriggerValidationError, bQ as TriggerValidationErrorErrorOneOf, y as TriggerValidationErrorValidationErrorType, s as Type, ay as UpdateApplicationAutomationsRequest, az as UpdateApplicationAutomationsResponse, aL as UpdateAutomationRequest, aM as UpdateAutomationResponse, bH as UpdateDraftAutomationRequest, aY as UpdatePreinstalledAutomationRequest, aZ as UpdatePreinstalledAutomationResponse, an as UpdatedWithPreviousEntity, ca as UpgradeCTA, b_ as ValidateAutomationByIdRequest, bN as ValidateAutomationRequest, E as ValidationErrorSeverity, F as ValidationErrorType, bO as ValidationSettings, W as WebhookIdentityType } from './automations-v2-automation-automations-v-2.universal-BVuQcd6J.mjs';
4
+
5
+ declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
6
+ interface CreateAutomationSignature {
7
+ /**
8
+ * Creates an automation.
9
+ * @param - Automation to create.
10
+ * @returns Details of the created automation.
11
+ */
12
+ (automation: Automation): Promise<Automation>;
13
+ }
14
+ declare function getAutomation$1(httpClient: HttpClient): GetAutomationSignature;
15
+ interface GetAutomationSignature {
16
+ /**
17
+ * Retrieves an automation by ID.
18
+ * @param - Automation ID.
19
+ * @returns Retrieved automation.
20
+ */
21
+ (automationId: string): Promise<Automation>;
22
+ }
23
+ declare function updateAutomation$1(httpClient: HttpClient): UpdateAutomationSignature;
24
+ interface UpdateAutomationSignature {
25
+ /**
26
+ * Updates the specified automation.
27
+ *
28
+ * When an automation is updated, its `revision` property is incremented by 1. When updating an automation, you must specify the current revision number.
29
+ * @param - Automation ID.
30
+ * @returns Updated automation.
31
+ */
32
+ (_id: string, automation: UpdateAutomation): Promise<Automation>;
33
+ }
34
+ declare function deleteAutomation$1(httpClient: HttpClient): DeleteAutomationSignature;
35
+ interface DeleteAutomationSignature {
36
+ /**
37
+ * Deletes the specified automation.
38
+ * @param - Automation ID.
39
+ */
40
+ (automationId: string): Promise<void>;
41
+ }
42
+ declare function bulkDeleteAutomations$1(httpClient: HttpClient): BulkDeleteAutomationsSignature;
43
+ interface BulkDeleteAutomationsSignature {
44
+ /**
45
+ * Deletes one or more automations.
46
+ * @param - IDs of the automations to delete.
47
+ */
48
+ (automationIds: string[]): Promise<BulkDeleteAutomationsResponse>;
49
+ }
50
+ declare function generatePreinstalledAutomation$1(httpClient: HttpClient): GeneratePreinstalledAutomationSignature;
51
+ interface GeneratePreinstalledAutomationSignature {
52
+ /**
53
+ * Generates a preinstalled automation from another automation.
54
+ *
55
+ * Calls the action providers for changes needed to make a preinstalled automation, such as changes made to email template.
56
+ *
57
+ * > **Note**: You must have an account permission to edit an app.
58
+ * @param - Automation.
59
+ */
60
+ (automation: Automation, options?: GeneratePreinstalledAutomationOptions | undefined): Promise<GeneratePreinstalledAutomationResponse>;
61
+ }
62
+ declare function queryAutomations$1(httpClient: HttpClient): QueryAutomationsSignature;
63
+ interface QueryAutomationsSignature {
64
+ /**
65
+ * Retrieves a list of automations. This includes both automations overridden on a site and preinstalled automations. If a preinstalled automation has been overridden on the site, the method returns the override automation.
66
+ *
67
+ * > **Note**: The method only returns automations by apps installed on the site.
68
+ *
69
+ * Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
70
+ */
71
+ (options?: QueryAutomationsOptions | undefined): AutomationsQueryBuilder;
72
+ }
73
+ declare function copyAutomation$1(httpClient: HttpClient): CopyAutomationSignature;
74
+ interface CopyAutomationSignature {
75
+ /**
76
+ * Creates a copy of an action with a new ID, and changes the action's input mapping if necessary.
77
+ *
78
+ * The action copy isn't saved automatically. To save it, the user must perform an action
79
+ * such as clicking the **Save** button.
80
+ * @param - ID of the automation to copy.
81
+ */
82
+ (automationId: string, options?: CopyAutomationOptions | undefined): Promise<CopyAutomationResponse>;
83
+ }
84
+ declare function createDraftAutomation$1(httpClient: HttpClient): CreateDraftAutomationSignature;
85
+ interface CreateDraftAutomationSignature {
86
+ /**
87
+ * Creates a draft automation.
88
+ */
89
+ (options?: CreateDraftAutomationOptions | undefined): Promise<CreateDraftAutomationResponse>;
90
+ }
91
+ declare function getOrCreateDraftAutomation$1(httpClient: HttpClient): GetOrCreateDraftAutomationSignature;
92
+ interface GetOrCreateDraftAutomationSignature {
93
+ /**
94
+ * Retrieves the draft of the specified automation. If a draft doesn't exist, the method creates one.
95
+ *
96
+ * > **Note**: If the specified automation is a draft, the method returns it.
97
+ * @param - ID of the original automation on which the draft is based.
98
+ */
99
+ (originalAutomationId: string): Promise<GetOrCreateDraftAutomationResponse>;
100
+ }
101
+ declare function updateDraftAutomation$1(httpClient: HttpClient): UpdateDraftAutomationSignature;
102
+ interface UpdateDraftAutomationSignature {
103
+ /**
104
+ * Updates a draft automation.
105
+ * @param - Automation ID.
106
+ */
107
+ (_id: string, automation: UpdateDraftAutomation): Promise<UpdateDraftAutomationResponse>;
108
+ }
109
+ declare function queryAutomationsWithDrafts$1(httpClient: HttpClient): QueryAutomationsWithDraftsSignature;
110
+ interface QueryAutomationsWithDraftsSignature {
111
+ /**
112
+ * Retrieves a list of automations, including drafts. Max query filter depth is 3.
113
+ *
114
+ * Relevant automations for the query are returned. This includes automations created on the site and pre-installed automations.
115
+ * If there's an existing override for a pre-installed automation, the override is returned in the query result.
116
+ * The query only returns automations from apps that are installed on the site.
117
+ *
118
+ * - new drafts that are not related to existing automations will be returned in the list
119
+ * - the response will contain a map of originalAutomationId => relatedDrafts
120
+ *
121
+ * To learn about working with _Query_ endpoints, see
122
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
123
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
124
+ * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
125
+ */
126
+ (options?: QueryAutomationsWithDraftsOptions | undefined): Promise<QueryAutomationsWithDraftsResponse>;
127
+ }
128
+ declare function deleteDraftAutomation$1(httpClient: HttpClient): DeleteDraftAutomationSignature;
129
+ interface DeleteDraftAutomationSignature {
130
+ /**
131
+ * Deletes a draft automation.
132
+ * @param - ID of the draft automation to delete.
133
+ */
134
+ (automationId: string): Promise<void>;
135
+ }
136
+ declare function publishDraftAutomation$1(httpClient: HttpClient): PublishDraftAutomationSignature;
137
+ interface PublishDraftAutomationSignature {
138
+ /**
139
+ * Publishes a draft automation. This applies any changes to the live automation.
140
+ * @param - ID of the draft automation to publish.
141
+ */
142
+ (automationId: string): Promise<PublishDraftAutomationResponse>;
143
+ }
144
+ declare function validateAutomation$1(httpClient: HttpClient): ValidateAutomationSignature;
145
+ interface ValidateAutomationSignature {
146
+ /**
147
+ * Validates the specified automation.
148
+ * @param - Automation to validate.
149
+ */
150
+ (automation: Automation, options?: ValidateAutomationOptions | undefined): Promise<ValidateAutomationResponse>;
151
+ }
152
+ declare function validateAutomationById$1(httpClient: HttpClient): ValidateAutomationByIdSignature;
153
+ interface ValidateAutomationByIdSignature {
154
+ /**
155
+ * Validates the automation specified by ID.
156
+ * @param - Automation ID.
157
+ */
158
+ (automationId: string, options?: ValidateAutomationByIdOptions | undefined): Promise<ValidateAutomationByIdResponse>;
159
+ }
160
+ declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
161
+ interface GetAutomationRevisionSignature {
162
+ /**
163
+ * Gets the specified automation revision.
164
+ * @param - Automation ID.
165
+ */
166
+ (automationId: string, options?: GetAutomationRevisionOptions | undefined): Promise<GetAutomationRevisionResponse>;
167
+ }
168
+ declare const onAutomationCreated$1: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
169
+ declare const onAutomationDeleted$1: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
170
+ declare const onAutomationUpdated$1: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
171
+
172
+ declare const createAutomation: MaybeContext<BuildRESTFunction<typeof createAutomation$1> & typeof createAutomation$1>;
173
+ declare const getAutomation: MaybeContext<BuildRESTFunction<typeof getAutomation$1> & typeof getAutomation$1>;
174
+ declare const updateAutomation: MaybeContext<BuildRESTFunction<typeof updateAutomation$1> & typeof updateAutomation$1>;
175
+ declare const deleteAutomation: MaybeContext<BuildRESTFunction<typeof deleteAutomation$1> & typeof deleteAutomation$1>;
176
+ declare const bulkDeleteAutomations: MaybeContext<BuildRESTFunction<typeof bulkDeleteAutomations$1> & typeof bulkDeleteAutomations$1>;
177
+ declare const generatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof generatePreinstalledAutomation$1> & typeof generatePreinstalledAutomation$1>;
178
+ declare const queryAutomations: MaybeContext<BuildRESTFunction<typeof queryAutomations$1> & typeof queryAutomations$1>;
179
+ declare const copyAutomation: MaybeContext<BuildRESTFunction<typeof copyAutomation$1> & typeof copyAutomation$1>;
180
+ declare const createDraftAutomation: MaybeContext<BuildRESTFunction<typeof createDraftAutomation$1> & typeof createDraftAutomation$1>;
181
+ declare const getOrCreateDraftAutomation: MaybeContext<BuildRESTFunction<typeof getOrCreateDraftAutomation$1> & typeof getOrCreateDraftAutomation$1>;
182
+ declare const updateDraftAutomation: MaybeContext<BuildRESTFunction<typeof updateDraftAutomation$1> & typeof updateDraftAutomation$1>;
183
+ declare const queryAutomationsWithDrafts: MaybeContext<BuildRESTFunction<typeof queryAutomationsWithDrafts$1> & typeof queryAutomationsWithDrafts$1>;
184
+ declare const deleteDraftAutomation: MaybeContext<BuildRESTFunction<typeof deleteDraftAutomation$1> & typeof deleteDraftAutomation$1>;
185
+ declare const publishDraftAutomation: MaybeContext<BuildRESTFunction<typeof publishDraftAutomation$1> & typeof publishDraftAutomation$1>;
186
+ declare const validateAutomation: MaybeContext<BuildRESTFunction<typeof validateAutomation$1> & typeof validateAutomation$1>;
187
+ declare const validateAutomationById: MaybeContext<BuildRESTFunction<typeof validateAutomationById$1> & typeof validateAutomationById$1>;
188
+ declare const getAutomationRevision: MaybeContext<BuildRESTFunction<typeof getAutomationRevision$1> & typeof getAutomationRevision$1>;
189
+ /**
190
+ * Triggered when a new automation is created.
191
+ */
192
+ declare const onAutomationCreated: BuildEventDefinition<typeof onAutomationCreated$1>;
193
+ /**
194
+ * Triggered when an automation is deleted.
195
+ */
196
+ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDeleted$1>;
197
+ /**
198
+ * Triggered when an automation is updated.
199
+ */
200
+ declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1>;
201
+
202
+ export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
@@ -0,0 +1,202 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { A as Automation, U as UpdateAutomation, B as BulkDeleteAutomationsResponse, G as GeneratePreinstalledAutomationOptions, a as GeneratePreinstalledAutomationResponse, Q as QueryAutomationsOptions, b as AutomationsQueryBuilder, C as CopyAutomationOptions, c as CopyAutomationResponse, d as CreateDraftAutomationOptions, e as CreateDraftAutomationResponse, f as GetOrCreateDraftAutomationResponse, g as UpdateDraftAutomation, h as UpdateDraftAutomationResponse, i as QueryAutomationsWithDraftsOptions, j as QueryAutomationsWithDraftsResponse, P as PublishDraftAutomationResponse, V as ValidateAutomationOptions, k as ValidateAutomationResponse, l as ValidateAutomationByIdOptions, m as ValidateAutomationByIdResponse, n as GetAutomationRevisionOptions, o as GetAutomationRevisionResponse, p as AutomationCreatedEnvelope, q as AutomationDeletedEnvelope, r as AutomationUpdatedEnvelope } from './automations-v2-automation-automations-v-2.universal-BVuQcd6J.js';
3
+ export { ad as Action, bW as ActionConfigurationError, H as ActionErrorType, aw as ActionEvent, ae as ActionInfoOneOf, c3 as ActionProviderQuotaInfo, c4 as ActionQuotaInfo, M as ActionSettings, be as ActionUsageSummary, bU as ActionValidationError, bV as ActionValidationErrorErrorOneOf, bT as ActionValidationInfo, c9 as AdditionalInfo, a5 as AppDefinedAction, aS as ApplicationError, ag as ApplicationOrigin, bi as Asset, Y as AuditInfo, Z as AuditInfoIdOneOf, _ as AutomationConfiguration, bZ as AutomationConfigurationError, J as AutomationErrorType, am as AutomationMigrationRequest, K as AutomationOriginInfoOneOf, ai as AutomationSettings, bX as AutomationValidationError, bY as AutomationValidationErrorErrorOneOf, I as AutomationValidationErrorValidationErrorType, cg as AutomationsQueryResult, ce as BaseEventMetadata, aT as BulkActionMetadata, aP as BulkDeleteAutomationsRequest, aQ as BulkDeleteResult, c8 as CTA, aG as CodeConditionAction, aF as CodeSnippet, a6 as ConditionAction, a3 as ConditionExpressionGroup, bf as CopyAutomationRequest, aH as CreateAutomationRequest, aI as CreateAutomationResponse, bF as CreateDraftAutomationRequest, aU as CreatePreinstalledAutomationRequest, aX as CreatePreinstalledAutomationResponse, b5 as CursorPaging, b7 as CursorPagingMetadata, b2 as CursorQuery, b3 as CursorQueryPagingMethodOneOf, b8 as Cursors, a7 as DelayAction, aN as DeleteAutomationRequest, aO as DeleteAutomationResponse, bm as DeleteContext, bK as DeleteDraftAutomationRequest, bL as DeleteDraftAutomationResponse, a_ as DeletePreinstalledAutomationRequest, a$ as DeletePreinstalledAutomationResponse, x as DeleteStatus, ao as DeletedWithEntity, D as Domain, aq as DomainEvent, ar as DomainEventBodyOneOf, aj as DraftInfo, ap as DraftPublished, bJ as DraftsInfo, ax as Empty, X as Enrichment, ak as Enrichments, as as EntityCreatedEvent, av as EntityDeletedEvent, au as EntityUpdatedEvent, cf as EventMetadata, al as ExtendedFields, $ as Filter, a2 as FilterValueSelection, af as FilterableAppDefinedActions, a0 as FutureDateActivationOffset, b0 as GeneratePreinstalledAutomationRequest, c1 as GetActionsQuotaInfoRequest, c2 as GetActionsQuotaInfoResponse, bb as GetAggregatedUsageInfoRequest, bc as GetAggregatedUsageInfoResponse, b$ as GetAutomationActionSchemaRequest, c0 as GetAutomationActionSchemaResponse, aJ as GetAutomationRequest, aK as GetAutomationResponse, cd as GetAutomationRevisionRequest, bG as GetOrCreateDraftAutomationRequest, aD as IdentificationData, aE as IdentificationDataIdOneOf, aR as ItemMetadata, L as Language, aC as MessageEnvelope, bg as MetaSiteSpecialEvent, bh as MetaSiteSpecialEventPayloadOneOf, cb as MigrateVeloActionAutomationsRequest, cc as MigrateVeloActionAutomationsResponse, N as Namespace, bw as NamespaceChanged, bB as OdeditorAssigned, bC as OdeditorUnassigned, O as Operator, t as Origin, aW as OriginAutomationInfo, aa as OutputAction, a4 as Path, bD as PicassoAssigned, bE as PicassoUnassigned, c6 as Plan, aV as PreinstalledAutomationSpecInfo, ah as PreinstalledOrigin, bS as ProviderConfigurationError, bM as PublishDraftAutomationRequest, b9 as QueryAutomationsRequest, ba as QueryAutomationsResponse, bI as QueryAutomationsWithDraftsRequest, b1 as QueryPreinstalledAutomationsForAppRequest, b6 as QueryPreinstalledAutomationsForAppResponse, c7 as Quota, c5 as QuotaInfo, a1 as RateLimit, a8 as RateLimitAction, R as RequestedFields, at as RestoreInfo, bs as ServiceProvisioned, bt as ServiceRemoved, a9 as SetVariablesAction, bj as SiteCreated, w as SiteCreatedContext, bl as SiteDeleted, bv as SiteHardDeleted, bq as SiteMarkedAsTemplate, br as SiteMarkedAsWixSite, bo as SitePublished, bA as SitePurgedExternally, bu as SiteRenamed, bk as SiteTransferred, bn as SiteUndeleted, bp as SiteUnpublished, bz as SiteUrlChanged, u as SortOrder, b4 as Sorting, ab as SplitAction, v as State, S as Status, bx as StudioAssigned, by as StudioUnassigned, aA as TestUpdateApplicationAutomationRequest, aB as TestUpdateApplicationAutomationResponse, T as TimeUnit, ac as Trigger, bR as TriggerConfigurationError, z as TriggerErrorType, bd as TriggerUsageSummary, bP as TriggerValidationError, bQ as TriggerValidationErrorErrorOneOf, y as TriggerValidationErrorValidationErrorType, s as Type, ay as UpdateApplicationAutomationsRequest, az as UpdateApplicationAutomationsResponse, aL as UpdateAutomationRequest, aM as UpdateAutomationResponse, bH as UpdateDraftAutomationRequest, aY as UpdatePreinstalledAutomationRequest, aZ as UpdatePreinstalledAutomationResponse, an as UpdatedWithPreviousEntity, ca as UpgradeCTA, b_ as ValidateAutomationByIdRequest, bN as ValidateAutomationRequest, E as ValidationErrorSeverity, F as ValidationErrorType, bO as ValidationSettings, W as WebhookIdentityType } from './automations-v2-automation-automations-v-2.universal-BVuQcd6J.js';
4
+
5
+ declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
6
+ interface CreateAutomationSignature {
7
+ /**
8
+ * Creates an automation.
9
+ * @param - Automation to create.
10
+ * @returns Details of the created automation.
11
+ */
12
+ (automation: Automation): Promise<Automation>;
13
+ }
14
+ declare function getAutomation$1(httpClient: HttpClient): GetAutomationSignature;
15
+ interface GetAutomationSignature {
16
+ /**
17
+ * Retrieves an automation by ID.
18
+ * @param - Automation ID.
19
+ * @returns Retrieved automation.
20
+ */
21
+ (automationId: string): Promise<Automation>;
22
+ }
23
+ declare function updateAutomation$1(httpClient: HttpClient): UpdateAutomationSignature;
24
+ interface UpdateAutomationSignature {
25
+ /**
26
+ * Updates the specified automation.
27
+ *
28
+ * When an automation is updated, its `revision` property is incremented by 1. When updating an automation, you must specify the current revision number.
29
+ * @param - Automation ID.
30
+ * @returns Updated automation.
31
+ */
32
+ (_id: string, automation: UpdateAutomation): Promise<Automation>;
33
+ }
34
+ declare function deleteAutomation$1(httpClient: HttpClient): DeleteAutomationSignature;
35
+ interface DeleteAutomationSignature {
36
+ /**
37
+ * Deletes the specified automation.
38
+ * @param - Automation ID.
39
+ */
40
+ (automationId: string): Promise<void>;
41
+ }
42
+ declare function bulkDeleteAutomations$1(httpClient: HttpClient): BulkDeleteAutomationsSignature;
43
+ interface BulkDeleteAutomationsSignature {
44
+ /**
45
+ * Deletes one or more automations.
46
+ * @param - IDs of the automations to delete.
47
+ */
48
+ (automationIds: string[]): Promise<BulkDeleteAutomationsResponse>;
49
+ }
50
+ declare function generatePreinstalledAutomation$1(httpClient: HttpClient): GeneratePreinstalledAutomationSignature;
51
+ interface GeneratePreinstalledAutomationSignature {
52
+ /**
53
+ * Generates a preinstalled automation from another automation.
54
+ *
55
+ * Calls the action providers for changes needed to make a preinstalled automation, such as changes made to email template.
56
+ *
57
+ * > **Note**: You must have an account permission to edit an app.
58
+ * @param - Automation.
59
+ */
60
+ (automation: Automation, options?: GeneratePreinstalledAutomationOptions | undefined): Promise<GeneratePreinstalledAutomationResponse>;
61
+ }
62
+ declare function queryAutomations$1(httpClient: HttpClient): QueryAutomationsSignature;
63
+ interface QueryAutomationsSignature {
64
+ /**
65
+ * Retrieves a list of automations. This includes both automations overridden on a site and preinstalled automations. If a preinstalled automation has been overridden on the site, the method returns the override automation.
66
+ *
67
+ * > **Note**: The method only returns automations by apps installed on the site.
68
+ *
69
+ * Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
70
+ */
71
+ (options?: QueryAutomationsOptions | undefined): AutomationsQueryBuilder;
72
+ }
73
+ declare function copyAutomation$1(httpClient: HttpClient): CopyAutomationSignature;
74
+ interface CopyAutomationSignature {
75
+ /**
76
+ * Creates a copy of an action with a new ID, and changes the action's input mapping if necessary.
77
+ *
78
+ * The action copy isn't saved automatically. To save it, the user must perform an action
79
+ * such as clicking the **Save** button.
80
+ * @param - ID of the automation to copy.
81
+ */
82
+ (automationId: string, options?: CopyAutomationOptions | undefined): Promise<CopyAutomationResponse>;
83
+ }
84
+ declare function createDraftAutomation$1(httpClient: HttpClient): CreateDraftAutomationSignature;
85
+ interface CreateDraftAutomationSignature {
86
+ /**
87
+ * Creates a draft automation.
88
+ */
89
+ (options?: CreateDraftAutomationOptions | undefined): Promise<CreateDraftAutomationResponse>;
90
+ }
91
+ declare function getOrCreateDraftAutomation$1(httpClient: HttpClient): GetOrCreateDraftAutomationSignature;
92
+ interface GetOrCreateDraftAutomationSignature {
93
+ /**
94
+ * Retrieves the draft of the specified automation. If a draft doesn't exist, the method creates one.
95
+ *
96
+ * > **Note**: If the specified automation is a draft, the method returns it.
97
+ * @param - ID of the original automation on which the draft is based.
98
+ */
99
+ (originalAutomationId: string): Promise<GetOrCreateDraftAutomationResponse>;
100
+ }
101
+ declare function updateDraftAutomation$1(httpClient: HttpClient): UpdateDraftAutomationSignature;
102
+ interface UpdateDraftAutomationSignature {
103
+ /**
104
+ * Updates a draft automation.
105
+ * @param - Automation ID.
106
+ */
107
+ (_id: string, automation: UpdateDraftAutomation): Promise<UpdateDraftAutomationResponse>;
108
+ }
109
+ declare function queryAutomationsWithDrafts$1(httpClient: HttpClient): QueryAutomationsWithDraftsSignature;
110
+ interface QueryAutomationsWithDraftsSignature {
111
+ /**
112
+ * Retrieves a list of automations, including drafts. Max query filter depth is 3.
113
+ *
114
+ * Relevant automations for the query are returned. This includes automations created on the site and pre-installed automations.
115
+ * If there's an existing override for a pre-installed automation, the override is returned in the query result.
116
+ * The query only returns automations from apps that are installed on the site.
117
+ *
118
+ * - new drafts that are not related to existing automations will be returned in the list
119
+ * - the response will contain a map of originalAutomationId => relatedDrafts
120
+ *
121
+ * To learn about working with _Query_ endpoints, see
122
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
123
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
124
+ * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
125
+ */
126
+ (options?: QueryAutomationsWithDraftsOptions | undefined): Promise<QueryAutomationsWithDraftsResponse>;
127
+ }
128
+ declare function deleteDraftAutomation$1(httpClient: HttpClient): DeleteDraftAutomationSignature;
129
+ interface DeleteDraftAutomationSignature {
130
+ /**
131
+ * Deletes a draft automation.
132
+ * @param - ID of the draft automation to delete.
133
+ */
134
+ (automationId: string): Promise<void>;
135
+ }
136
+ declare function publishDraftAutomation$1(httpClient: HttpClient): PublishDraftAutomationSignature;
137
+ interface PublishDraftAutomationSignature {
138
+ /**
139
+ * Publishes a draft automation. This applies any changes to the live automation.
140
+ * @param - ID of the draft automation to publish.
141
+ */
142
+ (automationId: string): Promise<PublishDraftAutomationResponse>;
143
+ }
144
+ declare function validateAutomation$1(httpClient: HttpClient): ValidateAutomationSignature;
145
+ interface ValidateAutomationSignature {
146
+ /**
147
+ * Validates the specified automation.
148
+ * @param - Automation to validate.
149
+ */
150
+ (automation: Automation, options?: ValidateAutomationOptions | undefined): Promise<ValidateAutomationResponse>;
151
+ }
152
+ declare function validateAutomationById$1(httpClient: HttpClient): ValidateAutomationByIdSignature;
153
+ interface ValidateAutomationByIdSignature {
154
+ /**
155
+ * Validates the automation specified by ID.
156
+ * @param - Automation ID.
157
+ */
158
+ (automationId: string, options?: ValidateAutomationByIdOptions | undefined): Promise<ValidateAutomationByIdResponse>;
159
+ }
160
+ declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
161
+ interface GetAutomationRevisionSignature {
162
+ /**
163
+ * Gets the specified automation revision.
164
+ * @param - Automation ID.
165
+ */
166
+ (automationId: string, options?: GetAutomationRevisionOptions | undefined): Promise<GetAutomationRevisionResponse>;
167
+ }
168
+ declare const onAutomationCreated$1: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
169
+ declare const onAutomationDeleted$1: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
170
+ declare const onAutomationUpdated$1: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
171
+
172
+ declare const createAutomation: MaybeContext<BuildRESTFunction<typeof createAutomation$1> & typeof createAutomation$1>;
173
+ declare const getAutomation: MaybeContext<BuildRESTFunction<typeof getAutomation$1> & typeof getAutomation$1>;
174
+ declare const updateAutomation: MaybeContext<BuildRESTFunction<typeof updateAutomation$1> & typeof updateAutomation$1>;
175
+ declare const deleteAutomation: MaybeContext<BuildRESTFunction<typeof deleteAutomation$1> & typeof deleteAutomation$1>;
176
+ declare const bulkDeleteAutomations: MaybeContext<BuildRESTFunction<typeof bulkDeleteAutomations$1> & typeof bulkDeleteAutomations$1>;
177
+ declare const generatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof generatePreinstalledAutomation$1> & typeof generatePreinstalledAutomation$1>;
178
+ declare const queryAutomations: MaybeContext<BuildRESTFunction<typeof queryAutomations$1> & typeof queryAutomations$1>;
179
+ declare const copyAutomation: MaybeContext<BuildRESTFunction<typeof copyAutomation$1> & typeof copyAutomation$1>;
180
+ declare const createDraftAutomation: MaybeContext<BuildRESTFunction<typeof createDraftAutomation$1> & typeof createDraftAutomation$1>;
181
+ declare const getOrCreateDraftAutomation: MaybeContext<BuildRESTFunction<typeof getOrCreateDraftAutomation$1> & typeof getOrCreateDraftAutomation$1>;
182
+ declare const updateDraftAutomation: MaybeContext<BuildRESTFunction<typeof updateDraftAutomation$1> & typeof updateDraftAutomation$1>;
183
+ declare const queryAutomationsWithDrafts: MaybeContext<BuildRESTFunction<typeof queryAutomationsWithDrafts$1> & typeof queryAutomationsWithDrafts$1>;
184
+ declare const deleteDraftAutomation: MaybeContext<BuildRESTFunction<typeof deleteDraftAutomation$1> & typeof deleteDraftAutomation$1>;
185
+ declare const publishDraftAutomation: MaybeContext<BuildRESTFunction<typeof publishDraftAutomation$1> & typeof publishDraftAutomation$1>;
186
+ declare const validateAutomation: MaybeContext<BuildRESTFunction<typeof validateAutomation$1> & typeof validateAutomation$1>;
187
+ declare const validateAutomationById: MaybeContext<BuildRESTFunction<typeof validateAutomationById$1> & typeof validateAutomationById$1>;
188
+ declare const getAutomationRevision: MaybeContext<BuildRESTFunction<typeof getAutomationRevision$1> & typeof getAutomationRevision$1>;
189
+ /**
190
+ * Triggered when a new automation is created.
191
+ */
192
+ declare const onAutomationCreated: BuildEventDefinition<typeof onAutomationCreated$1>;
193
+ /**
194
+ * Triggered when an automation is deleted.
195
+ */
196
+ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDeleted$1>;
197
+ /**
198
+ * Triggered when an automation is updated.
199
+ */
200
+ declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1>;
201
+
202
+ export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };