@wix/auto_sdk_automations_automations-v-2 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +35 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +35 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +35 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +12 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +35 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +12 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { Automation, UpdateAutomation, BulkDeleteAutomationsResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, AutomationsQueryBuilder, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GetOrCreateDraftAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, PublishDraftAutomationResponse, ValidateAutomationOptions, ValidateAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope } from './index.typings.js';
|
|
3
|
-
export { Action, ActionConfigurationError, ActionErrorType, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, AutomationConfiguration, AutomationConfigurationError, AutomationErrorType, AutomationMigrationRequest, AutomationOriginInfoOneOf, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStatus, DeletedWithEntity, Domain, DomainEvent, DomainEventBodyOneOf, DraftInfo, DraftPublished, DraftsInfo, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, Operator, Origin, OriginAutomationInfo, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsForAppResponse, QueryPreinstalledAutomationsRequest, QueryPreinstalledAutomationsResponse, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, Sorting, SplitAction, State, Status, StudioAssigned, StudioUnassigned, TestUpdateApplicationAutomationRequest, TestUpdateApplicationAutomationResponse, TimeUnit, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, Type, UpdateApplicationAutomationsRequest, UpdateApplicationAutomationsResponse, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpdatedWithPreviousEntity, UpgradeCTA, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorType, ValidationSettings, WebhookIdentityType } from './index.typings.js';
|
|
3
|
+
export { Action, ActionConfigurationError, ActionErrorType, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, AutomationConfiguration, AutomationConfigurationError, AutomationErrorType, AutomationMigrationRequest, AutomationOriginInfoOneOf, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStatus, DeletedWithEntity, Domain, DomainEvent, DomainEventBodyOneOf, DraftInfo, DraftPublished, DraftsInfo, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, MergeOverridePreinstalledWithRuntimeVersionRequest, MergeOverridePreinstalledWithRuntimeVersionResponse, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, Operator, Origin, OriginAutomationInfo, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsForAppResponse, QueryPreinstalledAutomationsRequest, QueryPreinstalledAutomationsResponse, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, Sorting, SplitAction, State, Status, StudioAssigned, StudioUnassigned, TestUpdateApplicationAutomationRequest, TestUpdateApplicationAutomationResponse, TimeUnit, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, Type, UpdateApplicationAutomationsRequest, UpdateApplicationAutomationsResponse, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpdatedWithPreviousEntity, UpgradeCTA, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorType, ValidationSettings, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type AutomationNonNullablePaths = `applicationInfo.appId` | `preinstalledInfo.appId` | `createdBy.userId` | `createdBy.appId` | `updatedBy.userId` | `updatedBy.appId` | `name` | `configuration.status` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `configuration.trigger.filters` | `configuration.trigger.filters.${number}._id` | `configuration.trigger.filters.${number}.fieldKey` | `configuration.trigger.filters.${number}.filterExpression` | `configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `configuration.trigger.rateLimit.maxActivationsExpression` | `configuration.trigger.rateLimit.durationTimeUnit` | `configuration.rootActionIds` | `origin` | `settings.hidden` | `settings.readonly` | `settings.disableDelete` | `settings.disableStatusChange` | `settings.actionSettings.permanentActionIds` | `settings.actionSettings.readonlyActionIds` | `settings.actionSettings.disableDelayAddition` | `settings.actionSettings.disableConditionAddition` | `archived`;
|
|
5
6
|
declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
|
|
6
7
|
interface CreateAutomationSignature {
|
|
7
8
|
/**
|
|
@@ -9,7 +10,7 @@ interface CreateAutomationSignature {
|
|
|
9
10
|
* @param - Automation to create.
|
|
10
11
|
* @returns Details of the created automation.
|
|
11
12
|
*/
|
|
12
|
-
(automation: Automation): Promise<Automation
|
|
13
|
+
(automation: NonNullablePaths<Automation, `configuration` | `configuration.actions` | `configuration.rootActionIds` | `configuration.status` | `configuration.trigger` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `name` | `origin`>): Promise<NonNullablePaths<Automation, AutomationNonNullablePaths>>;
|
|
13
14
|
}
|
|
14
15
|
declare function getAutomation$1(httpClient: HttpClient): GetAutomationSignature;
|
|
15
16
|
interface GetAutomationSignature {
|
|
@@ -18,7 +19,7 @@ interface GetAutomationSignature {
|
|
|
18
19
|
* @param - Automation ID.
|
|
19
20
|
* @returns Retrieved automation.
|
|
20
21
|
*/
|
|
21
|
-
(automationId: string): Promise<Automation
|
|
22
|
+
(automationId: string): Promise<NonNullablePaths<Automation, AutomationNonNullablePaths>>;
|
|
22
23
|
}
|
|
23
24
|
declare function updateAutomation$1(httpClient: HttpClient): UpdateAutomationSignature;
|
|
24
25
|
interface UpdateAutomationSignature {
|
|
@@ -29,7 +30,7 @@ interface UpdateAutomationSignature {
|
|
|
29
30
|
* @param - Automation ID.
|
|
30
31
|
* @returns Updated automation.
|
|
31
32
|
*/
|
|
32
|
-
(_id: string, automation: UpdateAutomation): Promise<Automation
|
|
33
|
+
(_id: string, automation: NonNullablePaths<UpdateAutomation, `revision`>): Promise<NonNullablePaths<Automation, AutomationNonNullablePaths>>;
|
|
33
34
|
}
|
|
34
35
|
declare function deleteAutomation$1(httpClient: HttpClient): DeleteAutomationSignature;
|
|
35
36
|
interface DeleteAutomationSignature {
|
|
@@ -45,7 +46,7 @@ interface BulkDeleteAutomationsSignature {
|
|
|
45
46
|
* Deletes one or more automations.
|
|
46
47
|
* @param - IDs of the automations to delete.
|
|
47
48
|
*/
|
|
48
|
-
(automationIds: string[]): Promise<BulkDeleteAutomationsResponse
|
|
49
|
+
(automationIds: string[]): Promise<NonNullablePaths<BulkDeleteAutomationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
49
50
|
}
|
|
50
51
|
declare function generatePreinstalledAutomation$1(httpClient: HttpClient): GeneratePreinstalledAutomationSignature;
|
|
51
52
|
interface GeneratePreinstalledAutomationSignature {
|
|
@@ -57,7 +58,9 @@ interface GeneratePreinstalledAutomationSignature {
|
|
|
57
58
|
* > **Note**: You must have an account permission to edit an app.
|
|
58
59
|
* @param - Automation.
|
|
59
60
|
*/
|
|
60
|
-
(automation: Automation, options?: GeneratePreinstalledAutomationOptions
|
|
61
|
+
(automation: Automation, options?: GeneratePreinstalledAutomationOptions): Promise<NonNullablePaths<GeneratePreinstalledAutomationResponse, {
|
|
62
|
+
[P in AutomationNonNullablePaths]: `automation.${P}`;
|
|
63
|
+
}[AutomationNonNullablePaths]>>;
|
|
61
64
|
}
|
|
62
65
|
declare function queryAutomations$1(httpClient: HttpClient): QueryAutomationsSignature;
|
|
63
66
|
interface QueryAutomationsSignature {
|
|
@@ -75,7 +78,7 @@ interface GetAggregatedUsageInfoSignature {
|
|
|
75
78
|
/**
|
|
76
79
|
* Get aggregated info
|
|
77
80
|
*/
|
|
78
|
-
(options?: GetAggregatedUsageInfoOptions
|
|
81
|
+
(options?: GetAggregatedUsageInfoOptions): Promise<NonNullablePaths<GetAggregatedUsageInfoResponse, `triggersUsageSummary` | `triggersUsageSummary.${number}.appId` | `triggersUsageSummary.${number}.triggerKey` | `triggersUsageSummary.${number}.automationsCount` | `actionsUsageSummary` | `actionsUsageSummary.${number}.appId` | `actionsUsageSummary.${number}.actionKey` | `actionsUsageSummary.${number}.automationsCount`>>;
|
|
79
82
|
}
|
|
80
83
|
declare function copyAutomation$1(httpClient: HttpClient): CopyAutomationSignature;
|
|
81
84
|
interface CopyAutomationSignature {
|
|
@@ -86,14 +89,18 @@ interface CopyAutomationSignature {
|
|
|
86
89
|
* such as clicking the **Save** button.
|
|
87
90
|
* @param - ID of the automation to copy.
|
|
88
91
|
*/
|
|
89
|
-
(automationId: string, options?: CopyAutomationOptions
|
|
92
|
+
(automationId: string, options?: CopyAutomationOptions): Promise<NonNullablePaths<CopyAutomationResponse, {
|
|
93
|
+
[P in AutomationNonNullablePaths]: `automation.${P}`;
|
|
94
|
+
}[AutomationNonNullablePaths]>>;
|
|
90
95
|
}
|
|
91
96
|
declare function createDraftAutomation$1(httpClient: HttpClient): CreateDraftAutomationSignature;
|
|
92
97
|
interface CreateDraftAutomationSignature {
|
|
93
98
|
/**
|
|
94
99
|
* Creates a draft automation.
|
|
95
100
|
*/
|
|
96
|
-
(options?: CreateDraftAutomationOptions
|
|
101
|
+
(options?: CreateDraftAutomationOptions): Promise<NonNullablePaths<CreateDraftAutomationResponse, {
|
|
102
|
+
[P in AutomationNonNullablePaths]: `automation.${P}`;
|
|
103
|
+
}[AutomationNonNullablePaths]>>;
|
|
97
104
|
}
|
|
98
105
|
declare function getOrCreateDraftAutomation$1(httpClient: HttpClient): GetOrCreateDraftAutomationSignature;
|
|
99
106
|
interface GetOrCreateDraftAutomationSignature {
|
|
@@ -103,7 +110,9 @@ interface GetOrCreateDraftAutomationSignature {
|
|
|
103
110
|
* > **Note**: If the specified automation is a draft, the method returns it.
|
|
104
111
|
* @param - ID of the original automation on which the draft is based.
|
|
105
112
|
*/
|
|
106
|
-
(originalAutomationId: string): Promise<GetOrCreateDraftAutomationResponse
|
|
113
|
+
(originalAutomationId: string): Promise<NonNullablePaths<GetOrCreateDraftAutomationResponse, {
|
|
114
|
+
[P in AutomationNonNullablePaths]: `automation.${P}`;
|
|
115
|
+
}[AutomationNonNullablePaths]>>;
|
|
107
116
|
}
|
|
108
117
|
declare function updateDraftAutomation$1(httpClient: HttpClient): UpdateDraftAutomationSignature;
|
|
109
118
|
interface UpdateDraftAutomationSignature {
|
|
@@ -111,7 +120,9 @@ interface UpdateDraftAutomationSignature {
|
|
|
111
120
|
* Updates a draft automation.
|
|
112
121
|
* @param - Automation ID.
|
|
113
122
|
*/
|
|
114
|
-
(_id: string, automation: UpdateDraftAutomation): Promise<UpdateDraftAutomationResponse
|
|
123
|
+
(_id: string, automation: UpdateDraftAutomation): Promise<NonNullablePaths<UpdateDraftAutomationResponse, {
|
|
124
|
+
[P in AutomationNonNullablePaths]: `automation.${P}`;
|
|
125
|
+
}[AutomationNonNullablePaths]>>;
|
|
115
126
|
}
|
|
116
127
|
declare function queryAutomationsWithDrafts$1(httpClient: HttpClient): QueryAutomationsWithDraftsSignature;
|
|
117
128
|
interface QueryAutomationsWithDraftsSignature {
|
|
@@ -130,12 +141,14 @@ interface QueryAutomationsWithDraftsSignature {
|
|
|
130
141
|
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
|
|
131
142
|
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
132
143
|
*/
|
|
133
|
-
(options?: QueryAutomationsWithDraftsOptions
|
|
144
|
+
(options?: QueryAutomationsWithDraftsOptions): Promise<NonNullablePaths<QueryAutomationsWithDraftsResponse, {
|
|
145
|
+
[P in AutomationNonNullablePaths]: `automations.${number}.${P}`;
|
|
146
|
+
}[AutomationNonNullablePaths]>>;
|
|
134
147
|
}
|
|
135
148
|
declare function bulkCountAutomationsWithDrafts$1(httpClient: HttpClient): BulkCountAutomationsWithDraftsSignature;
|
|
136
149
|
interface BulkCountAutomationsWithDraftsSignature {
|
|
137
150
|
/** */
|
|
138
|
-
(options?: BulkCountAutomationsWithDraftsOptions
|
|
151
|
+
(options?: BulkCountAutomationsWithDraftsOptions): Promise<NonNullablePaths<BulkCountAutomationsWithDraftsResponse, `counts`>>;
|
|
139
152
|
}
|
|
140
153
|
declare function deleteDraftAutomation$1(httpClient: HttpClient): DeleteDraftAutomationSignature;
|
|
141
154
|
interface DeleteDraftAutomationSignature {
|
|
@@ -151,7 +164,9 @@ interface PublishDraftAutomationSignature {
|
|
|
151
164
|
* Publishes a draft automation. This applies any changes to the live automation.
|
|
152
165
|
* @param - ID of the draft automation to publish.
|
|
153
166
|
*/
|
|
154
|
-
(automationId: string): Promise<PublishDraftAutomationResponse
|
|
167
|
+
(automationId: string): Promise<NonNullablePaths<PublishDraftAutomationResponse, {
|
|
168
|
+
[P in AutomationNonNullablePaths]: `automation.${P}`;
|
|
169
|
+
}[AutomationNonNullablePaths]>>;
|
|
155
170
|
}
|
|
156
171
|
declare function validateAutomation$1(httpClient: HttpClient): ValidateAutomationSignature;
|
|
157
172
|
interface ValidateAutomationSignature {
|
|
@@ -159,7 +174,7 @@ interface ValidateAutomationSignature {
|
|
|
159
174
|
* Validates the specified automation.
|
|
160
175
|
* @param - Automation to validate.
|
|
161
176
|
*/
|
|
162
|
-
(automation: Automation, options?: ValidateAutomationOptions
|
|
177
|
+
(automation: Automation, options?: ValidateAutomationOptions): Promise<NonNullablePaths<ValidateAutomationResponse, `valid` | `triggerValidationErrors` | `triggerValidationErrors.${number}.configurationError.errorType` | `triggerValidationErrors.${number}.providerConfigurationError.message` | `triggerValidationErrors.${number}.providerConfigurationError.title` | `triggerValidationErrors.${number}.errorType` | `triggerValidationErrors.${number}.severity` | `actionValidationInfo` | `actionValidationInfo.${number}.appId` | `actionValidationInfo.${number}.actionKey` | `automationValidationErrors` | `automationValidationErrors.${number}.configurationError.errorType` | `automationValidationErrors.${number}.providerConfigurationError.message` | `automationValidationErrors.${number}.providerConfigurationError.title` | `automationValidationErrors.${number}.errorType` | `automationValidationErrors.${number}.severity`>>;
|
|
163
178
|
}
|
|
164
179
|
declare function validateAutomationById$1(httpClient: HttpClient): ValidateAutomationByIdSignature;
|
|
165
180
|
interface ValidateAutomationByIdSignature {
|
|
@@ -167,7 +182,7 @@ interface ValidateAutomationByIdSignature {
|
|
|
167
182
|
* Validates the automation specified by ID.
|
|
168
183
|
* @param - Automation ID.
|
|
169
184
|
*/
|
|
170
|
-
(automationId: string, options?: ValidateAutomationByIdOptions
|
|
185
|
+
(automationId: string, options?: ValidateAutomationByIdOptions): Promise<NonNullablePaths<ValidateAutomationByIdResponse, `valid` | `triggerValidationErrors` | `triggerValidationErrors.${number}.configurationError.errorType` | `triggerValidationErrors.${number}.providerConfigurationError.message` | `triggerValidationErrors.${number}.providerConfigurationError.title` | `triggerValidationErrors.${number}.errorType` | `triggerValidationErrors.${number}.severity` | `actionValidationInfo` | `actionValidationInfo.${number}.appId` | `actionValidationInfo.${number}.actionKey` | `automationValidationErrors` | `automationValidationErrors.${number}.configurationError.errorType` | `automationValidationErrors.${number}.providerConfigurationError.message` | `automationValidationErrors.${number}.providerConfigurationError.title` | `automationValidationErrors.${number}.errorType` | `automationValidationErrors.${number}.severity`>>;
|
|
171
186
|
}
|
|
172
187
|
declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
|
|
173
188
|
interface GetAutomationRevisionSignature {
|
|
@@ -175,7 +190,9 @@ interface GetAutomationRevisionSignature {
|
|
|
175
190
|
* Gets the specified automation revision.
|
|
176
191
|
* @param - Automation ID.
|
|
177
192
|
*/
|
|
178
|
-
(automationId: string, options?: GetAutomationRevisionOptions
|
|
193
|
+
(automationId: string, options?: GetAutomationRevisionOptions): Promise<NonNullablePaths<GetAutomationRevisionResponse, {
|
|
194
|
+
[P in AutomationNonNullablePaths]: `automation.${P}`;
|
|
195
|
+
}[AutomationNonNullablePaths]>>;
|
|
179
196
|
}
|
|
180
197
|
declare const onAutomationCreated$1: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
|
|
181
198
|
declare const onAutomationDeleted$1: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
|