@wix/auto_sdk_automations_automations-v-2 1.0.136 → 1.0.137
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 +3 -36
- package/build/cjs/index.js +1 -234
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -96
- package/build/cjs/index.typings.js +1 -207
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +9 -12
- package/build/cjs/meta.js +1 -167
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -921
- package/build/cjs/schemas.js +0 -1644
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +3 -36
- package/build/es/index.mjs +1 -231
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -96
- package/build/es/index.typings.mjs +1 -204
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +9 -12
- package/build/es/meta.mjs +1 -164
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -921
- package/build/es/schemas.mjs +0 -1638
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -36
- package/build/internal/cjs/index.js +1 -234
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -96
- package/build/internal/cjs/index.typings.js +1 -207
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +9 -12
- package/build/internal/cjs/meta.js +1 -167
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -921
- package/build/internal/cjs/schemas.js +0 -1644
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -36
- package/build/internal/es/index.mjs +1 -231
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -96
- package/build/internal/es/index.typings.mjs +1 -204
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +9 -12
- package/build/internal/es/meta.mjs +1 -164
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -921
- package/build/internal/es/schemas.mjs +0 -1638
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { GetAutomationRevisionOptions, GetAutomationRevisionResponse, Automation, CreateAutomationFromTemplateIdResponse, UpdateAutomation, BulkDeleteAutomationsResponse,
|
|
3
|
-
export { AIMetadata, AccountInfo, AccountInfoMetadata, Action, ActionConfigurationError, ActionErrorType, ActionErrorTypeWithLiterals, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, AutomationConfiguration, AutomationConfigurationError, AutomationErrorType, AutomationErrorTypeWithLiterals, AutomationOriginInfoOneOf, AutomationQuerySpec, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationValidationErrorValidationErrorTypeWithLiterals, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, CommonQueryWithEntityContext, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationFromTemplateIdRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationFromTemplateIdRequest, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatedByAppIdUsageSummary, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStalePreinstalledAutomationRequest, DeleteStalePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, DuplicateAutomationForMigrationRequest, DuplicateAutomationForMigrationResponse, EditorlessAssigned, EditorlessUnassigned, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GenerateActionInputMappingFromTemplateRequest, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, LanguageWithLiterals, MergeAction, MergeOverridePreinstalledWithRuntimeVersionRequest, MergeOverridePreinstalledWithRuntimeVersionResponse, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, NamespaceWithLiterals, Note, Notes, OdeditorAssigned, OdeditorUnassigned, Offset, Operator, OperatorWithLiterals, Origin, OriginAutomationInfo, OriginWithLiterals, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, Position, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryDraftAutomationsRequest, QueryDraftAutomationsResponse, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsRequest, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, Severity, SeverityWithLiterals, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SplitAction, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, TemplateOrigin, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerSettings, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpgradeCTA, UserDomainMediaDisabled, UserDomainMediaEnabled, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationResultStatus, ValidationResultStatusWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned, utils } from './index.typings.js';
|
|
2
|
+
import { GetAutomationRevisionOptions, GetAutomationRevisionResponse, Automation, CreateAutomationFromTemplateIdResponse, UpdateAutomation, BulkDeleteAutomationsResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, CursorQuery, QueryPreinstalledAutomationsResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, CreateDraftAutomationFromTemplateIdResponse, GetOrCreateDraftAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, PublishDraftAutomationResponse, ValidateAutomationOptions, ValidateAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, GetActionsQuotaInfoResponse, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationQuery, QueryAutomationsOptions, typedQueryAutomations, AutomationsQueryBuilder } from './index.typings.js';
|
|
3
|
+
export { AIMetadata, AccountInfo, AccountInfoMetadata, Action, ActionConfigurationError, ActionErrorType, ActionErrorTypeWithLiterals, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, AutomationConfiguration, AutomationConfigurationError, AutomationErrorType, AutomationErrorTypeWithLiterals, AutomationOriginInfoOneOf, AutomationQuerySpec, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationValidationErrorValidationErrorTypeWithLiterals, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, CommonQueryWithEntityContext, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationFromTemplateIdRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationFromTemplateIdRequest, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CreatedByAppIdUsageSummary, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStalePreinstalledAutomationRequest, DeleteStalePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, DuplicateAutomationForMigrationRequest, DuplicateAutomationForMigrationResponse, EditorlessAssigned, EditorlessUnassigned, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GenerateActionInputMappingFromTemplateRequest, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, LanguageWithLiterals, MergeAction, MergeOverridePreinstalledWithRuntimeVersionRequest, MergeOverridePreinstalledWithRuntimeVersionResponse, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, NamespaceWithLiterals, Note, Notes, OdeditorAssigned, OdeditorUnassigned, Offset, Operator, OperatorWithLiterals, Origin, OriginAutomationInfo, OriginWithLiterals, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, Position, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryDraftAutomationsRequest, QueryDraftAutomationsResponse, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsRequest, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, Severity, SeverityWithLiterals, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SplitAction, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, TemplateOrigin, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerSettings, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpgradeCTA, UserDomainMediaDisabled, UserDomainMediaEnabled, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationResultStatus, ValidationResultStatusWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
|
|
6
6
|
interface GetAutomationRevisionSignature {
|
|
@@ -63,36 +63,6 @@ interface BulkDeleteAutomationsSignature {
|
|
|
63
63
|
*/
|
|
64
64
|
(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`, 6>>;
|
|
65
65
|
}
|
|
66
|
-
declare function createPreinstalledAutomation$1(httpClient: HttpClient): CreatePreinstalledAutomationSignature;
|
|
67
|
-
interface CreatePreinstalledAutomationSignature {
|
|
68
|
-
/**
|
|
69
|
-
* Creates a preinstalled automation.
|
|
70
|
-
*
|
|
71
|
-
* > **Note**: You must have an account permission to edit an app.
|
|
72
|
-
* @param - Preinstalled automation to create.
|
|
73
|
-
*/
|
|
74
|
-
(automation: NonNullablePaths<Automation, `configuration` | `configuration.actions` | `configuration.rootActionIds` | `configuration.status` | `configuration.trigger` | `configuration.trigger.appId` | `configuration.trigger.triggerKey` | `name`, 4>, options?: CreatePreinstalledAutomationOptions): Promise<NonNullablePaths<CreatePreinstalledAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.templateInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.archived`, 7>>;
|
|
75
|
-
}
|
|
76
|
-
declare function updatePreinstalledAutomation$1(httpClient: HttpClient): UpdatePreinstalledAutomationSignature;
|
|
77
|
-
interface UpdatePreinstalledAutomationSignature {
|
|
78
|
-
/**
|
|
79
|
-
* Updates the specified preinstalled automation.
|
|
80
|
-
*
|
|
81
|
-
* > **Note**: You must have an account permission to edit an app.
|
|
82
|
-
* @param - Preinstalled automation to update.
|
|
83
|
-
*/
|
|
84
|
-
(automation: NonNullablePaths<Automation, `preinstalledInfo`, 2>, options?: UpdatePreinstalledAutomationOptions): Promise<NonNullablePaths<UpdatePreinstalledAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.templateInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.archived`, 7>>;
|
|
85
|
-
}
|
|
86
|
-
declare function deletePreinstalledAutomation$1(httpClient: HttpClient): DeletePreinstalledAutomationSignature;
|
|
87
|
-
interface DeletePreinstalledAutomationSignature {
|
|
88
|
-
/**
|
|
89
|
-
* Deletes the preinstalled automation.
|
|
90
|
-
*
|
|
91
|
-
* > **Note**: You must have an account permission to edit an app.
|
|
92
|
-
* @param - ID of the preinstalled component.
|
|
93
|
-
*/
|
|
94
|
-
(componentId: string, options?: DeletePreinstalledAutomationOptions): Promise<void>;
|
|
95
|
-
}
|
|
96
66
|
declare function generatePreinstalledAutomation$1(httpClient: HttpClient): GeneratePreinstalledAutomationSignature;
|
|
97
67
|
interface GeneratePreinstalledAutomationSignature {
|
|
98
68
|
/**
|
|
@@ -268,9 +238,6 @@ declare const getAutomation: MaybeContext<BuildRESTFunction<typeof getAutomation
|
|
|
268
238
|
declare const updateAutomation: MaybeContext<BuildRESTFunction<typeof updateAutomation$1> & typeof updateAutomation$1>;
|
|
269
239
|
declare const deleteAutomation: MaybeContext<BuildRESTFunction<typeof deleteAutomation$1> & typeof deleteAutomation$1>;
|
|
270
240
|
declare const bulkDeleteAutomations: MaybeContext<BuildRESTFunction<typeof bulkDeleteAutomations$1> & typeof bulkDeleteAutomations$1>;
|
|
271
|
-
declare const createPreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof createPreinstalledAutomation$1> & typeof createPreinstalledAutomation$1>;
|
|
272
|
-
declare const updatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof updatePreinstalledAutomation$1> & typeof updatePreinstalledAutomation$1>;
|
|
273
|
-
declare const deletePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof deletePreinstalledAutomation$1> & typeof deletePreinstalledAutomation$1>;
|
|
274
241
|
declare const generatePreinstalledAutomation: MaybeContext<BuildRESTFunction<typeof generatePreinstalledAutomation$1> & typeof generatePreinstalledAutomation$1>;
|
|
275
242
|
declare const queryPreinstalledAutomationsForApp: MaybeContext<BuildRESTFunction<typeof queryPreinstalledAutomationsForApp$1> & typeof queryPreinstalledAutomationsForApp$1>;
|
|
276
243
|
declare const queryPreinstalledAutomations: MaybeContext<BuildRESTFunction<typeof queryPreinstalledAutomations$1> & typeof queryPreinstalledAutomations$1>;
|
|
@@ -302,4 +269,4 @@ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDelet
|
|
|
302
269
|
*/
|
|
303
270
|
declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1> & typeof onAutomationUpdated$1;
|
|
304
271
|
|
|
305
|
-
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationQuery, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateAutomationFromTemplateIdResponse, CreateDraftAutomationFromTemplateIdResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse,
|
|
272
|
+
export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationQuery, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateAutomationFromTemplateIdResponse, CreateDraftAutomationFromTemplateIdResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, CursorQuery, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, QueryPreinstalledAutomationsResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createAutomationFromTemplateId, createDraftAutomation, createDraftAutomationFromTemplateId, deleteAutomation, deleteDraftAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getActionsQuotaInfo, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomations, queryPreinstalledAutomationsForApp, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
package/build/cjs/index.js
CHANGED
|
@@ -50,10 +50,8 @@ __export(index_exports, {
|
|
|
50
50
|
createAutomationFromTemplateId: () => createAutomationFromTemplateId4,
|
|
51
51
|
createDraftAutomation: () => createDraftAutomation4,
|
|
52
52
|
createDraftAutomationFromTemplateId: () => createDraftAutomationFromTemplateId4,
|
|
53
|
-
createPreinstalledAutomation: () => createPreinstalledAutomation4,
|
|
54
53
|
deleteAutomation: () => deleteAutomation4,
|
|
55
54
|
deleteDraftAutomation: () => deleteDraftAutomation4,
|
|
56
|
-
deletePreinstalledAutomation: () => deletePreinstalledAutomation4,
|
|
57
55
|
generateActionInputMappingFromTemplate: () => generateActionInputMappingFromTemplate4,
|
|
58
56
|
generatePreinstalledAutomation: () => generatePreinstalledAutomation4,
|
|
59
57
|
getActionsQuotaInfo: () => getActionsQuotaInfo4,
|
|
@@ -71,7 +69,6 @@ __export(index_exports, {
|
|
|
71
69
|
queryPreinstalledAutomationsForApp: () => queryPreinstalledAutomationsForApp4,
|
|
72
70
|
updateAutomation: () => updateAutomation4,
|
|
73
71
|
updateDraftAutomation: () => updateDraftAutomation4,
|
|
74
|
-
updatePreinstalledAutomation: () => updatePreinstalledAutomation4,
|
|
75
72
|
utils: () => utils,
|
|
76
73
|
validateAutomation: () => validateAutomation4,
|
|
77
74
|
validateAutomationById: () => validateAutomationById4
|
|
@@ -423,113 +420,6 @@ function bulkDeleteAutomations(payload) {
|
|
|
423
420
|
}
|
|
424
421
|
return __bulkDeleteAutomations;
|
|
425
422
|
}
|
|
426
|
-
function createPreinstalledAutomation(payload) {
|
|
427
|
-
function __createPreinstalledAutomation({ host }) {
|
|
428
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
429
|
-
{
|
|
430
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
431
|
-
paths: [
|
|
432
|
-
{ path: "automation.createdDate" },
|
|
433
|
-
{ path: "automation.updatedDate" },
|
|
434
|
-
{ path: "automation.draftUpdatedDate" },
|
|
435
|
-
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
436
|
-
]
|
|
437
|
-
}
|
|
438
|
-
]);
|
|
439
|
-
const metadata = {
|
|
440
|
-
entityFqdn: "wix.automations.v2.automation",
|
|
441
|
-
method: "POST",
|
|
442
|
-
methodFqn: "wix.automations.v2.AutomationsService.CreatePreinstalledAutomation",
|
|
443
|
-
packageName: PACKAGE_NAME,
|
|
444
|
-
migrationOptions: {
|
|
445
|
-
optInTransformResponse: true
|
|
446
|
-
},
|
|
447
|
-
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
448
|
-
protoPath: "/v2/preinstalled-automation",
|
|
449
|
-
data: serializedData,
|
|
450
|
-
host
|
|
451
|
-
}),
|
|
452
|
-
data: serializedData,
|
|
453
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
454
|
-
{
|
|
455
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
456
|
-
paths: [
|
|
457
|
-
{ path: "automation.createdDate" },
|
|
458
|
-
{ path: "automation.updatedDate" },
|
|
459
|
-
{ path: "automation.draftUpdatedDate" },
|
|
460
|
-
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
461
|
-
]
|
|
462
|
-
}
|
|
463
|
-
])
|
|
464
|
-
};
|
|
465
|
-
return metadata;
|
|
466
|
-
}
|
|
467
|
-
return __createPreinstalledAutomation;
|
|
468
|
-
}
|
|
469
|
-
function updatePreinstalledAutomation(payload) {
|
|
470
|
-
function __updatePreinstalledAutomation({ host }) {
|
|
471
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
472
|
-
{
|
|
473
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
474
|
-
paths: [
|
|
475
|
-
{ path: "automation.createdDate" },
|
|
476
|
-
{ path: "automation.updatedDate" },
|
|
477
|
-
{ path: "automation.draftUpdatedDate" },
|
|
478
|
-
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
479
|
-
]
|
|
480
|
-
}
|
|
481
|
-
]);
|
|
482
|
-
const metadata = {
|
|
483
|
-
entityFqdn: "wix.automations.v2.automation",
|
|
484
|
-
method: "PATCH",
|
|
485
|
-
methodFqn: "wix.automations.v2.AutomationsService.UpdatePreinstalledAutomation",
|
|
486
|
-
packageName: PACKAGE_NAME,
|
|
487
|
-
migrationOptions: {
|
|
488
|
-
optInTransformResponse: true
|
|
489
|
-
},
|
|
490
|
-
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
491
|
-
protoPath: "/v2/preinstalled-automation",
|
|
492
|
-
data: serializedData,
|
|
493
|
-
host
|
|
494
|
-
}),
|
|
495
|
-
data: serializedData,
|
|
496
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
497
|
-
{
|
|
498
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
499
|
-
paths: [
|
|
500
|
-
{ path: "automation.createdDate" },
|
|
501
|
-
{ path: "automation.updatedDate" },
|
|
502
|
-
{ path: "automation.draftUpdatedDate" },
|
|
503
|
-
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
504
|
-
]
|
|
505
|
-
}
|
|
506
|
-
])
|
|
507
|
-
};
|
|
508
|
-
return metadata;
|
|
509
|
-
}
|
|
510
|
-
return __updatePreinstalledAutomation;
|
|
511
|
-
}
|
|
512
|
-
function deletePreinstalledAutomation(payload) {
|
|
513
|
-
function __deletePreinstalledAutomation({ host }) {
|
|
514
|
-
const metadata = {
|
|
515
|
-
entityFqdn: "wix.automations.v2.automation",
|
|
516
|
-
method: "DELETE",
|
|
517
|
-
methodFqn: "wix.automations.v2.AutomationsService.DeletePreinstalledAutomation",
|
|
518
|
-
packageName: PACKAGE_NAME,
|
|
519
|
-
migrationOptions: {
|
|
520
|
-
optInTransformResponse: true
|
|
521
|
-
},
|
|
522
|
-
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
523
|
-
protoPath: "/v2/preinstalled-automation/{componentId}",
|
|
524
|
-
data: payload,
|
|
525
|
-
host
|
|
526
|
-
}),
|
|
527
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
528
|
-
};
|
|
529
|
-
return metadata;
|
|
530
|
-
}
|
|
531
|
-
return __deletePreinstalledAutomation;
|
|
532
|
-
}
|
|
533
423
|
function generatePreinstalledAutomation(payload) {
|
|
534
424
|
function __generatePreinstalledAutomation({ host }) {
|
|
535
425
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1215,6 +1105,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
|
1215
1105
|
Namespace2["CHANNELS"] = "CHANNELS";
|
|
1216
1106
|
Namespace2["NAUTILUS"] = "NAUTILUS";
|
|
1217
1107
|
Namespace2["SYMPHONY"] = "SYMPHONY";
|
|
1108
|
+
Namespace2["NAUTILUS_APPS"] = "NAUTILUS_APPS";
|
|
1218
1109
|
return Namespace2;
|
|
1219
1110
|
})(Namespace || {});
|
|
1220
1111
|
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
@@ -1469,100 +1360,6 @@ async function bulkDeleteAutomations2(automationIds) {
|
|
|
1469
1360
|
throw transformedError;
|
|
1470
1361
|
}
|
|
1471
1362
|
}
|
|
1472
|
-
async function createPreinstalledAutomation2(automation, options) {
|
|
1473
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1474
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1475
|
-
automation,
|
|
1476
|
-
specInfo: options?.specInfo,
|
|
1477
|
-
originAutomationInfo: options?.originAutomationInfo,
|
|
1478
|
-
appId: options?.appId
|
|
1479
|
-
});
|
|
1480
|
-
const reqOpts = createPreinstalledAutomation(payload);
|
|
1481
|
-
sideEffects?.onSiteCall?.();
|
|
1482
|
-
try {
|
|
1483
|
-
const result = await httpClient.request(reqOpts);
|
|
1484
|
-
sideEffects?.onSuccess?.(result);
|
|
1485
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1486
|
-
} catch (err) {
|
|
1487
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1488
|
-
err,
|
|
1489
|
-
{
|
|
1490
|
-
spreadPathsToArguments: {},
|
|
1491
|
-
explicitPathsToArguments: {
|
|
1492
|
-
automation: "$[0]",
|
|
1493
|
-
specInfo: "$[1].specInfo",
|
|
1494
|
-
originAutomationInfo: "$[1].originAutomationInfo",
|
|
1495
|
-
appId: "$[1].appId"
|
|
1496
|
-
},
|
|
1497
|
-
singleArgumentUnchanged: false
|
|
1498
|
-
},
|
|
1499
|
-
["automation", "options"]
|
|
1500
|
-
);
|
|
1501
|
-
sideEffects?.onError?.(err);
|
|
1502
|
-
throw transformedError;
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
async function updatePreinstalledAutomation2(automation, options) {
|
|
1506
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1507
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1508
|
-
automation,
|
|
1509
|
-
specInfo: options?.specInfo,
|
|
1510
|
-
appId: options?.appId
|
|
1511
|
-
});
|
|
1512
|
-
const reqOpts = updatePreinstalledAutomation(payload);
|
|
1513
|
-
sideEffects?.onSiteCall?.();
|
|
1514
|
-
try {
|
|
1515
|
-
const result = await httpClient.request(reqOpts);
|
|
1516
|
-
sideEffects?.onSuccess?.(result);
|
|
1517
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1518
|
-
} catch (err) {
|
|
1519
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1520
|
-
err,
|
|
1521
|
-
{
|
|
1522
|
-
spreadPathsToArguments: {},
|
|
1523
|
-
explicitPathsToArguments: {
|
|
1524
|
-
automation: "$[0]",
|
|
1525
|
-
specInfo: "$[1].specInfo",
|
|
1526
|
-
appId: "$[1].appId"
|
|
1527
|
-
},
|
|
1528
|
-
singleArgumentUnchanged: false
|
|
1529
|
-
},
|
|
1530
|
-
["automation", "options"]
|
|
1531
|
-
);
|
|
1532
|
-
sideEffects?.onError?.(err);
|
|
1533
|
-
throw transformedError;
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
async function deletePreinstalledAutomation2(componentId, options) {
|
|
1537
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1538
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1539
|
-
componentId,
|
|
1540
|
-
specInfo: options?.specInfo,
|
|
1541
|
-
appId: options?.appId
|
|
1542
|
-
});
|
|
1543
|
-
const reqOpts = deletePreinstalledAutomation(payload);
|
|
1544
|
-
sideEffects?.onSiteCall?.();
|
|
1545
|
-
try {
|
|
1546
|
-
const result = await httpClient.request(reqOpts);
|
|
1547
|
-
sideEffects?.onSuccess?.(result);
|
|
1548
|
-
} catch (err) {
|
|
1549
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1550
|
-
err,
|
|
1551
|
-
{
|
|
1552
|
-
spreadPathsToArguments: {},
|
|
1553
|
-
explicitPathsToArguments: {
|
|
1554
|
-
componentId: "$[0]",
|
|
1555
|
-
specInfo: "$[1].specInfo",
|
|
1556
|
-
appId: "$[1].appId"
|
|
1557
|
-
},
|
|
1558
|
-
singleArgumentUnchanged: false
|
|
1559
|
-
},
|
|
1560
|
-
["componentId", "options"]
|
|
1561
|
-
);
|
|
1562
|
-
sideEffects?.onError?.(err);
|
|
1563
|
-
throw transformedError;
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
1363
|
async function generatePreinstalledAutomation2(automation, options) {
|
|
1567
1364
|
const { httpClient, sideEffects } = arguments[2];
|
|
1568
1365
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2145,30 +1942,6 @@ function bulkDeleteAutomations3(httpClient) {
|
|
|
2145
1942
|
{ httpClient }
|
|
2146
1943
|
);
|
|
2147
1944
|
}
|
|
2148
|
-
function createPreinstalledAutomation3(httpClient) {
|
|
2149
|
-
return (automation, options) => createPreinstalledAutomation2(
|
|
2150
|
-
automation,
|
|
2151
|
-
options,
|
|
2152
|
-
// @ts-ignore
|
|
2153
|
-
{ httpClient }
|
|
2154
|
-
);
|
|
2155
|
-
}
|
|
2156
|
-
function updatePreinstalledAutomation3(httpClient) {
|
|
2157
|
-
return (automation, options) => updatePreinstalledAutomation2(
|
|
2158
|
-
automation,
|
|
2159
|
-
options,
|
|
2160
|
-
// @ts-ignore
|
|
2161
|
-
{ httpClient }
|
|
2162
|
-
);
|
|
2163
|
-
}
|
|
2164
|
-
function deletePreinstalledAutomation3(httpClient) {
|
|
2165
|
-
return (componentId, options) => deletePreinstalledAutomation2(
|
|
2166
|
-
componentId,
|
|
2167
|
-
options,
|
|
2168
|
-
// @ts-ignore
|
|
2169
|
-
{ httpClient }
|
|
2170
|
-
);
|
|
2171
|
-
}
|
|
2172
1945
|
function generatePreinstalledAutomation3(httpClient) {
|
|
2173
1946
|
return (automation, options) => generatePreinstalledAutomation2(
|
|
2174
1947
|
automation,
|
|
@@ -2389,9 +2162,6 @@ var getAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
2389
2162
|
var updateAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAutomation3);
|
|
2390
2163
|
var deleteAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAutomation3);
|
|
2391
2164
|
var bulkDeleteAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteAutomations3);
|
|
2392
|
-
var createPreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createPreinstalledAutomation3);
|
|
2393
|
-
var updatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePreinstalledAutomation3);
|
|
2394
|
-
var deletePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePreinstalledAutomation3);
|
|
2395
2165
|
var generatePreinstalledAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generatePreinstalledAutomation3);
|
|
2396
2166
|
var queryPreinstalledAutomationsForApp4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomationsForApp3);
|
|
2397
2167
|
var queryPreinstalledAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPreinstalledAutomations3);
|
|
@@ -2453,10 +2223,8 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
2453
2223
|
createAutomationFromTemplateId,
|
|
2454
2224
|
createDraftAutomation,
|
|
2455
2225
|
createDraftAutomationFromTemplateId,
|
|
2456
|
-
createPreinstalledAutomation,
|
|
2457
2226
|
deleteAutomation,
|
|
2458
2227
|
deleteDraftAutomation,
|
|
2459
|
-
deletePreinstalledAutomation,
|
|
2460
2228
|
generateActionInputMappingFromTemplate,
|
|
2461
2229
|
generatePreinstalledAutomation,
|
|
2462
2230
|
getActionsQuotaInfo,
|
|
@@ -2474,7 +2242,6 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
2474
2242
|
queryPreinstalledAutomationsForApp,
|
|
2475
2243
|
updateAutomation,
|
|
2476
2244
|
updateDraftAutomation,
|
|
2477
|
-
updatePreinstalledAutomation,
|
|
2478
2245
|
utils,
|
|
2479
2246
|
validateAutomation,
|
|
2480
2247
|
validateAutomationById
|