@wix/auto_sdk_automations_automations-v-2 1.0.4 → 1.0.6
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/{internal/cjs/src/automations-v2-automation-automations-v-2.universal.d.ts → cjs/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.ts} +220 -567
- package/build/cjs/index.d.ts +202 -1
- package/build/cjs/index.js +1555 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1167 -1
- package/build/cjs/meta.js +960 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{cjs/src/automations-v2-automation-automations-v-2.universal.d.ts → es/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.mts} +220 -567
- package/build/es/index.d.mts +202 -0
- package/build/es/index.mjs +1494 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/meta.d.mts +1167 -0
- package/build/es/meta.mjs +920 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/{es/src/automations-v2-automation-automations-v-2.universal.d.ts → cjs/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.ts} +220 -567
- package/build/internal/cjs/index.d.ts +202 -1
- package/build/internal/cjs/index.js +1555 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1167 -1
- package/build/internal/cjs/meta.js +960 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/src/automations-v2-automation-automations-v-2.universal.d.ts → internal/es/automations-v2-automation-automations-v-2.universal-CUoGClWF.d.mts} +220 -567
- package/build/internal/es/index.d.mts +202 -0
- package/build/internal/es/index.mjs +1494 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1167 -0
- package/build/internal/es/meta.mjs +920 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +9 -8
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
- package/build/cjs/src/automations-v2-automation-automations-v-2.context.js +0 -61
- package/build/cjs/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
- package/build/cjs/src/automations-v2-automation-automations-v-2.http.js +0 -666
- package/build/cjs/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
- package/build/cjs/src/automations-v2-automation-automations-v-2.meta.js +0 -351
- package/build/cjs/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
- package/build/cjs/src/automations-v2-automation-automations-v-2.public.js +0 -167
- package/build/cjs/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
- package/build/cjs/src/automations-v2-automation-automations-v-2.types.js +0 -276
- package/build/cjs/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js +0 -1025
- package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
- package/build/es/src/automations-v2-automation-automations-v-2.context.js +0 -37
- package/build/es/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
- package/build/es/src/automations-v2-automation-automations-v-2.http.js +0 -646
- package/build/es/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
- package/build/es/src/automations-v2-automation-automations-v-2.meta.js +0 -308
- package/build/es/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
- package/build/es/src/automations-v2-automation-automations-v-2.public.js +0 -126
- package/build/es/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
- package/build/es/src/automations-v2-automation-automations-v-2.types.js +0 -273
- package/build/es/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.universal.js +0 -982
- package/build/es/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.js +0 -61
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.js +0 -666
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.js +0 -351
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.js +0 -167
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js +0 -276
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js +0 -1025
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
- package/build/internal/es/src/automations-v2-automation-automations-v-2.context.js +0 -37
- package/build/internal/es/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
- package/build/internal/es/src/automations-v2-automation-automations-v-2.http.js +0 -646
- package/build/internal/es/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
- package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.js +0 -308
- package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
- package/build/internal/es/src/automations-v2-automation-automations-v-2.public.js +0 -126
- package/build/internal/es/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2223
- package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js +0 -273
- package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js +0 -982
- package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
package/build/cjs/index.d.ts
CHANGED
|
@@ -1 +1,202 @@
|
|
|
1
|
-
|
|
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, b as AutomationsQueryBuilder, C as CopyAutomationOptions, c as CopyAutomationResponse, d as CreateDraftAutomationOptions, e as CreateDraftAutomationResponse, f as GetOrCreateDraftAutomationResponse, g as UpdateDraftAutomation, h as UpdateDraftAutomationResponse, Q as QueryAutomationsWithDraftsOptions, i as QueryAutomationsWithDraftsResponse, P as PublishDraftAutomationResponse, V as ValidateAutomationOptions, j as ValidateAutomationResponse, k as ValidateAutomationByIdOptions, l as ValidateAutomationByIdResponse, m as GetAutomationRevisionOptions, n as GetAutomationRevisionResponse, o as AutomationCreatedEnvelope, p as AutomationDeletedEnvelope, q as AutomationUpdatedEnvelope } from './automations-v2-automation-automations-v-2.universal-CUoGClWF.js';
|
|
3
|
+
export { ac as Action, bV as ActionConfigurationError, F as ActionErrorType, av as ActionEvent, ad as ActionInfoOneOf, c2 as ActionProviderQuotaInfo, c3 as ActionQuotaInfo, K as ActionSettings, bd as ActionUsageSummary, bT as ActionValidationError, bU as ActionValidationErrorErrorOneOf, bS as ActionValidationInfo, c8 as AdditionalInfo, a4 as AppDefinedAction, aR as ApplicationError, af as ApplicationOrigin, bh as Asset, X as AuditInfo, Y as AuditInfoIdOneOf, Z as AutomationConfiguration, bY as AutomationConfigurationError, I as AutomationErrorType, al as AutomationMigrationRequest, J as AutomationOriginInfoOneOf, ah as AutomationSettings, bW as AutomationValidationError, bX as AutomationValidationErrorErrorOneOf, H as AutomationValidationErrorValidationErrorType, cf as AutomationsQueryResult, cd as BaseEventMetadata, aS as BulkActionMetadata, aO as BulkDeleteAutomationsRequest, aP as BulkDeleteResult, c7 as CTA, aF as CodeConditionAction, aE as CodeSnippet, a5 as ConditionAction, a2 as ConditionExpressionGroup, be as CopyAutomationRequest, aG as CreateAutomationRequest, aH as CreateAutomationResponse, bE as CreateDraftAutomationRequest, aT as CreatePreinstalledAutomationRequest, aW as CreatePreinstalledAutomationResponse, b4 as CursorPaging, b6 as CursorPagingMetadata, b1 as CursorQuery, b2 as CursorQueryPagingMethodOneOf, b7 as Cursors, a6 as DelayAction, aM as DeleteAutomationRequest, aN as DeleteAutomationResponse, bl as DeleteContext, bJ as DeleteDraftAutomationRequest, bK as DeleteDraftAutomationResponse, aZ as DeletePreinstalledAutomationRequest, a_ as DeletePreinstalledAutomationResponse, w as DeleteStatus, an as DeletedWithEntity, D as Domain, ap as DomainEvent, aq as DomainEventBodyOneOf, ai as DraftInfo, ao as DraftPublished, bI as DraftsInfo, aw as Empty, M as Enrichment, aj as Enrichments, ar as EntityCreatedEvent, au as EntityDeletedEvent, at as EntityUpdatedEvent, ce as EventMetadata, ak as ExtendedFields, _ as Filter, a1 as FilterValueSelection, ae as FilterableAppDefinedActions, $ as FutureDateActivationOffset, a$ as GeneratePreinstalledAutomationRequest, c0 as GetActionsQuotaInfoRequest, c1 as GetActionsQuotaInfoResponse, ba as GetAggregatedUsageInfoRequest, bb as GetAggregatedUsageInfoResponse, b_ as GetAutomationActionSchemaRequest, b$ as GetAutomationActionSchemaResponse, aI as GetAutomationRequest, aJ as GetAutomationResponse, cc as GetAutomationRevisionRequest, bF as GetOrCreateDraftAutomationRequest, aC as IdentificationData, aD as IdentificationDataIdOneOf, aQ as ItemMetadata, L as Language, aB as MessageEnvelope, bf as MetaSiteSpecialEvent, bg as MetaSiteSpecialEventPayloadOneOf, ca as MigrateVeloActionAutomationsRequest, cb as MigrateVeloActionAutomationsResponse, N as Namespace, bv as NamespaceChanged, bA as OdeditorAssigned, bB as OdeditorUnassigned, O as Operator, s as Origin, aV as OriginAutomationInfo, a9 as OutputAction, a3 as Path, bC as PicassoAssigned, bD as PicassoUnassigned, c5 as Plan, aU as PreinstalledAutomationSpecInfo, ag as PreinstalledOrigin, bR as ProviderConfigurationError, bL as PublishDraftAutomationRequest, b8 as QueryAutomationsRequest, b9 as QueryAutomationsResponse, bH as QueryAutomationsWithDraftsRequest, b0 as QueryPreinstalledAutomationsForAppRequest, b5 as QueryPreinstalledAutomationsForAppResponse, c6 as Quota, c4 as QuotaInfo, a0 as RateLimit, a7 as RateLimitAction, R as RequestedFields, as as RestoreInfo, br as ServiceProvisioned, bs as ServiceRemoved, a8 as SetVariablesAction, bi as SiteCreated, v as SiteCreatedContext, bk as SiteDeleted, bu as SiteHardDeleted, bp as SiteMarkedAsTemplate, bq as SiteMarkedAsWixSite, bn as SitePublished, bz as SitePurgedExternally, bt as SiteRenamed, bj as SiteTransferred, bm as SiteUndeleted, bo as SiteUnpublished, by as SiteUrlChanged, t as SortOrder, b3 as Sorting, aa as SplitAction, u as State, S as Status, bw as StudioAssigned, bx as StudioUnassigned, az as TestUpdateApplicationAutomationRequest, aA as TestUpdateApplicationAutomationResponse, T as TimeUnit, ab as Trigger, bQ as TriggerConfigurationError, y as TriggerErrorType, bc as TriggerUsageSummary, bO as TriggerValidationError, bP as TriggerValidationErrorErrorOneOf, x as TriggerValidationErrorValidationErrorType, r as Type, ax as UpdateApplicationAutomationsRequest, ay as UpdateApplicationAutomationsResponse, aK as UpdateAutomationRequest, aL as UpdateAutomationResponse, bG as UpdateDraftAutomationRequest, aX as UpdatePreinstalledAutomationRequest, aY as UpdatePreinstalledAutomationResponse, am as UpdatedWithPreviousEntity, c9 as UpgradeCTA, bZ as ValidateAutomationByIdRequest, bM as ValidateAutomationRequest, z as ValidationErrorSeverity, E as ValidationErrorType, bN as ValidationSettings, W as WebhookIdentityType } from './automations-v2-automation-automations-v-2.universal-CUoGClWF.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
|
+
(): 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, 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 };
|