@wix/auto_sdk_automations_automations-v-2 1.0.87 → 1.0.89
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 +20 -12
- package/build/cjs/index.js +137 -74
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +51 -42
- package/build/cjs/index.typings.js +121 -65
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +27 -26
- package/build/cjs/meta.js +103 -52
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +20 -12
- package/build/es/index.mjs +136 -74
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +51 -42
- package/build/es/index.typings.mjs +120 -65
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +27 -26
- package/build/es/meta.mjs +102 -52
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -12
- package/build/internal/cjs/index.js +137 -74
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +51 -42
- package/build/internal/cjs/index.typings.js +121 -65
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +27 -26
- package/build/internal/cjs/meta.js +103 -52
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +20 -12
- package/build/internal/es/index.mjs +136 -74
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +51 -42
- package/build/internal/es/index.typings.mjs +120 -65
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +27 -26
- package/build/internal/es/meta.mjs +102 -52
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -881,19 +881,9 @@ declare enum WebhookIdentityType {
|
|
|
881
881
|
}
|
|
882
882
|
/** @enumType */
|
|
883
883
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
884
|
-
interface
|
|
885
|
-
/**
|
|
886
|
-
|
|
887
|
-
* @format GUID
|
|
888
|
-
*/
|
|
889
|
-
automationId: string;
|
|
890
|
-
/** Revision number. */
|
|
891
|
-
revision?: string | null;
|
|
892
|
-
/**
|
|
893
|
-
* Requested fields.
|
|
894
|
-
* @maxSize 20
|
|
895
|
-
*/
|
|
896
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
884
|
+
interface CreateAutomationRequest {
|
|
885
|
+
/** Automation to create. */
|
|
886
|
+
automation: Automation;
|
|
897
887
|
}
|
|
898
888
|
declare enum RequestedFields {
|
|
899
889
|
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
@@ -902,14 +892,6 @@ declare enum RequestedFields {
|
|
|
902
892
|
}
|
|
903
893
|
/** @enumType */
|
|
904
894
|
type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'OVERRIDE_SCHEMA';
|
|
905
|
-
interface GetAutomationRevisionResponse {
|
|
906
|
-
/** Automation revision. */
|
|
907
|
-
automation?: Automation;
|
|
908
|
-
}
|
|
909
|
-
interface CreateAutomationRequest {
|
|
910
|
-
/** Automation to create. */
|
|
911
|
-
automation: Automation;
|
|
912
|
-
}
|
|
913
895
|
interface CreateAutomationResponse {
|
|
914
896
|
/** Details of the created automation. */
|
|
915
897
|
automation?: Automation;
|
|
@@ -2433,6 +2415,24 @@ interface MergeOverridePreinstalledWithRuntimeVersionResponse {
|
|
|
2433
2415
|
/** The merged automation after applying the latest runtime version of the preinstalled automation. */
|
|
2434
2416
|
automation?: Automation;
|
|
2435
2417
|
}
|
|
2418
|
+
interface GetAutomationRevisionRequest {
|
|
2419
|
+
/**
|
|
2420
|
+
* Automation ID.
|
|
2421
|
+
* @format GUID
|
|
2422
|
+
*/
|
|
2423
|
+
automationId: string;
|
|
2424
|
+
/** Revision number. */
|
|
2425
|
+
revision?: string | null;
|
|
2426
|
+
/**
|
|
2427
|
+
* Requested fields.
|
|
2428
|
+
* @maxSize 20
|
|
2429
|
+
*/
|
|
2430
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
2431
|
+
}
|
|
2432
|
+
interface GetAutomationRevisionResponse {
|
|
2433
|
+
/** Automation revision. */
|
|
2434
|
+
automation?: Automation;
|
|
2435
|
+
}
|
|
2436
2436
|
interface BaseEventMetadata {
|
|
2437
2437
|
/**
|
|
2438
2438
|
* App instance ID.
|
|
@@ -2536,26 +2536,6 @@ interface AutomationUpdatedEnvelope {
|
|
|
2536
2536
|
* @documentationMaturity preview
|
|
2537
2537
|
*/
|
|
2538
2538
|
declare function onAutomationUpdated(handler: (event: AutomationUpdatedEnvelope) => void | Promise<void>): void;
|
|
2539
|
-
/**
|
|
2540
|
-
* Gets the specified automation revision.
|
|
2541
|
-
* @param automationId - Automation ID.
|
|
2542
|
-
* @public
|
|
2543
|
-
* @documentationMaturity preview
|
|
2544
|
-
* @requiredField automationId
|
|
2545
|
-
* @permissionId AUTOMATIONS.AUTOMATION_REVISION_READ
|
|
2546
|
-
* @applicableIdentity APP
|
|
2547
|
-
* @fqn wix.automations.v2.AutomationRevisionsService.GetAutomationRevision
|
|
2548
|
-
*/
|
|
2549
|
-
declare function getAutomationRevision(automationId: string, options?: GetAutomationRevisionOptions): Promise<NonNullablePaths<GetAutomationRevisionResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.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>>;
|
|
2550
|
-
interface GetAutomationRevisionOptions {
|
|
2551
|
-
/** Revision number. */
|
|
2552
|
-
revision?: string | null;
|
|
2553
|
-
/**
|
|
2554
|
-
* Requested fields.
|
|
2555
|
-
* @maxSize 20
|
|
2556
|
-
*/
|
|
2557
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
2558
|
-
}
|
|
2559
2539
|
/**
|
|
2560
2540
|
* Creates an automation.
|
|
2561
2541
|
* @param automation - Automation to create.
|
|
@@ -3207,6 +3187,15 @@ interface ValidateAutomationByIdOptions {
|
|
|
3207
3187
|
/** Validation settings. */
|
|
3208
3188
|
validationSettings?: ValidationSettings;
|
|
3209
3189
|
}
|
|
3190
|
+
/**
|
|
3191
|
+
* Gets action quota information.
|
|
3192
|
+
* @public
|
|
3193
|
+
* @documentationMaturity preview
|
|
3194
|
+
* @permissionId AUTOMATIONS.AUTOMATION_READ
|
|
3195
|
+
* @applicableIdentity APP
|
|
3196
|
+
* @fqn wix.automations.v2.AutomationsService.GetActionsQuotaInfo
|
|
3197
|
+
*/
|
|
3198
|
+
declare function getActionsQuotaInfo(): Promise<NonNullablePaths<GetActionsQuotaInfoResponse, `actionProviderQuotaInfo` | `actionProviderQuotaInfo.${number}.appId` | `actionProviderQuotaInfo.${number}.actionKey` | `actionProviderQuotaInfo.${number}.actionQuotaInfo.enforced`, 5>>;
|
|
3210
3199
|
/**
|
|
3211
3200
|
* Generates action input mapping from a template.
|
|
3212
3201
|
* @param appId - Action app ID.
|
|
@@ -3231,5 +3220,25 @@ interface GenerateActionInputMappingFromTemplateOptions {
|
|
|
3231
3220
|
/** Action input mapping template the action SPI provider will generate input mapping from. */
|
|
3232
3221
|
actionInputMappingTemplate: Record<string, any> | null;
|
|
3233
3222
|
}
|
|
3223
|
+
/**
|
|
3224
|
+
* Gets the specified automation revision.
|
|
3225
|
+
* @param automationId - Automation ID.
|
|
3226
|
+
* @public
|
|
3227
|
+
* @documentationMaturity preview
|
|
3228
|
+
* @requiredField automationId
|
|
3229
|
+
* @permissionId AUTOMATIONS.AUTOMATION_REVISION_READ
|
|
3230
|
+
* @applicableIdentity APP
|
|
3231
|
+
* @fqn wix.automations.v2.AutomationRevisionsService.GetAutomationRevision
|
|
3232
|
+
*/
|
|
3233
|
+
declare function getAutomationRevision(automationId: string, options?: GetAutomationRevisionOptions): Promise<NonNullablePaths<GetAutomationRevisionResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.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>>;
|
|
3234
|
+
interface GetAutomationRevisionOptions {
|
|
3235
|
+
/** Revision number. */
|
|
3236
|
+
revision?: string | null;
|
|
3237
|
+
/**
|
|
3238
|
+
* Requested fields.
|
|
3239
|
+
* @maxSize 20
|
|
3240
|
+
*/
|
|
3241
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
3242
|
+
}
|
|
3234
3243
|
|
|
3235
|
-
export { type AIMetadata, type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationOriginInfoOneOf, type AutomationQuery, type AutomationQuerySpec, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type CommonQueryWithEntityContext, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CreatedByAppIdUsageSummary, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type Dimensions, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GenerateActionInputMappingFromTemplateOptions, type GenerateActionInputMappingFromTemplateRequest, type GenerateActionInputMappingFromTemplateResponse, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type Note, type Notes, type OdeditorAssigned, type OdeditorUnassigned, type Offset, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type Position, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsOptions, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryDraftAutomationsRequest, type QueryDraftAutomationsResponse, type QueryPreinstalledAutomationsForAppOptions, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, Severity, type SeverityWithLiterals, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerSettings, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, ValidationResultStatus, type ValidationResultStatusWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomationsForApp, typedQueryAutomations, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
|
3244
|
+
export { type AIMetadata, type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationOriginInfoOneOf, type AutomationQuery, type AutomationQuerySpec, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type CommonQueryWithEntityContext, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CreatedByAppIdUsageSummary, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type Dimensions, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GenerateActionInputMappingFromTemplateOptions, type GenerateActionInputMappingFromTemplateRequest, type GenerateActionInputMappingFromTemplateResponse, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type Note, type Notes, type OdeditorAssigned, type OdeditorUnassigned, type Offset, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type Position, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsOptions, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryDraftAutomationsRequest, type QueryDraftAutomationsResponse, type QueryPreinstalledAutomationsForAppOptions, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, Severity, type SeverityWithLiterals, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerSettings, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, ValidationResultStatus, type ValidationResultStatusWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getActionsQuotaInfo, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomationsForApp, typedQueryAutomations, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
|
@@ -52,6 +52,7 @@ __export(index_typings_exports, {
|
|
|
52
52
|
deleteDraftAutomation: () => deleteDraftAutomation2,
|
|
53
53
|
generateActionInputMappingFromTemplate: () => generateActionInputMappingFromTemplate2,
|
|
54
54
|
generatePreinstalledAutomation: () => generatePreinstalledAutomation2,
|
|
55
|
+
getActionsQuotaInfo: () => getActionsQuotaInfo2,
|
|
55
56
|
getAggregatedUsageInfo: () => getAggregatedUsageInfo2,
|
|
56
57
|
getAutomation: () => getAutomation2,
|
|
57
58
|
getAutomationRevision: () => getAutomationRevision2,
|
|
@@ -80,7 +81,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
80
81
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
81
82
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
82
83
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
83
|
-
function
|
|
84
|
+
function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
|
|
84
85
|
const domainToMappings = {
|
|
85
86
|
"manage._base_domain_": [
|
|
86
87
|
{
|
|
@@ -119,7 +120,7 @@ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
|
|
|
119
120
|
};
|
|
120
121
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
+
function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
|
|
123
124
|
const domainToMappings = {
|
|
124
125
|
"manage._base_domain_": [
|
|
125
126
|
{
|
|
@@ -159,38 +160,6 @@ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
|
|
|
159
160
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
160
161
|
}
|
|
161
162
|
var PACKAGE_NAME = "@wix/auto_sdk_automations_automations-v-2";
|
|
162
|
-
function getAutomationRevision(payload) {
|
|
163
|
-
function __getAutomationRevision({ host }) {
|
|
164
|
-
const metadata = {
|
|
165
|
-
entityFqdn: "wix.automations.v2.automation",
|
|
166
|
-
method: "GET",
|
|
167
|
-
methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
|
|
168
|
-
packageName: PACKAGE_NAME,
|
|
169
|
-
migrationOptions: {
|
|
170
|
-
optInTransformResponse: true
|
|
171
|
-
},
|
|
172
|
-
url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
|
|
173
|
-
protoPath: "/v1/automation-revisions/{automationId}",
|
|
174
|
-
data: payload,
|
|
175
|
-
host
|
|
176
|
-
}),
|
|
177
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
178
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
179
|
-
{
|
|
180
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
181
|
-
paths: [
|
|
182
|
-
{ path: "automation.createdDate" },
|
|
183
|
-
{ path: "automation.updatedDate" },
|
|
184
|
-
{ path: "automation.draftUpdatedDate" },
|
|
185
|
-
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
186
|
-
]
|
|
187
|
-
}
|
|
188
|
-
])
|
|
189
|
-
};
|
|
190
|
-
return metadata;
|
|
191
|
-
}
|
|
192
|
-
return __getAutomationRevision;
|
|
193
|
-
}
|
|
194
163
|
function createAutomation(payload) {
|
|
195
164
|
function __createAutomation({ host }) {
|
|
196
165
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -807,6 +776,37 @@ function validateAutomationById(payload) {
|
|
|
807
776
|
}
|
|
808
777
|
return __validateAutomationById;
|
|
809
778
|
}
|
|
779
|
+
function getActionsQuotaInfo(payload) {
|
|
780
|
+
function __getActionsQuotaInfo({ host }) {
|
|
781
|
+
const metadata = {
|
|
782
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
783
|
+
method: "GET",
|
|
784
|
+
methodFqn: "wix.automations.v2.AutomationsService.GetActionsQuotaInfo",
|
|
785
|
+
packageName: PACKAGE_NAME,
|
|
786
|
+
migrationOptions: {
|
|
787
|
+
optInTransformResponse: true
|
|
788
|
+
},
|
|
789
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
790
|
+
protoPath: "/v2/automations/actions/quota",
|
|
791
|
+
data: payload,
|
|
792
|
+
host
|
|
793
|
+
}),
|
|
794
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
795
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
796
|
+
{
|
|
797
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
798
|
+
paths: [
|
|
799
|
+
{
|
|
800
|
+
path: "actionProviderQuotaInfo.actionQuotaInfo.quotaInfo.quotas.renewalDate"
|
|
801
|
+
}
|
|
802
|
+
]
|
|
803
|
+
}
|
|
804
|
+
])
|
|
805
|
+
};
|
|
806
|
+
return metadata;
|
|
807
|
+
}
|
|
808
|
+
return __getActionsQuotaInfo;
|
|
809
|
+
}
|
|
810
810
|
function generateActionInputMappingFromTemplate(payload) {
|
|
811
811
|
function __generateActionInputMappingFromTemplate({ host }) {
|
|
812
812
|
const metadata = {
|
|
@@ -828,6 +828,38 @@ function generateActionInputMappingFromTemplate(payload) {
|
|
|
828
828
|
}
|
|
829
829
|
return __generateActionInputMappingFromTemplate;
|
|
830
830
|
}
|
|
831
|
+
function getAutomationRevision(payload) {
|
|
832
|
+
function __getAutomationRevision({ host }) {
|
|
833
|
+
const metadata = {
|
|
834
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
835
|
+
method: "GET",
|
|
836
|
+
methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
|
|
837
|
+
packageName: PACKAGE_NAME,
|
|
838
|
+
migrationOptions: {
|
|
839
|
+
optInTransformResponse: true
|
|
840
|
+
},
|
|
841
|
+
url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
|
|
842
|
+
protoPath: "/v1/automation-revisions/{automationId}",
|
|
843
|
+
data: payload,
|
|
844
|
+
host
|
|
845
|
+
}),
|
|
846
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
847
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
848
|
+
{
|
|
849
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
850
|
+
paths: [
|
|
851
|
+
{ path: "automation.createdDate" },
|
|
852
|
+
{ path: "automation.updatedDate" },
|
|
853
|
+
{ path: "automation.draftUpdatedDate" },
|
|
854
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
855
|
+
]
|
|
856
|
+
}
|
|
857
|
+
])
|
|
858
|
+
};
|
|
859
|
+
return metadata;
|
|
860
|
+
}
|
|
861
|
+
return __getAutomationRevision;
|
|
862
|
+
}
|
|
831
863
|
|
|
832
864
|
// src/automations-v2-automation-automations-v-2.universal.ts
|
|
833
865
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -1022,37 +1054,6 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
|
|
|
1022
1054
|
AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
|
|
1023
1055
|
return AutomationErrorType2;
|
|
1024
1056
|
})(AutomationErrorType || {});
|
|
1025
|
-
async function getAutomationRevision2(automationId, options) {
|
|
1026
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1027
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1028
|
-
automationId,
|
|
1029
|
-
revision: options?.revision,
|
|
1030
|
-
fields: options?.fields
|
|
1031
|
-
});
|
|
1032
|
-
const reqOpts = getAutomationRevision(payload);
|
|
1033
|
-
sideEffects?.onSiteCall?.();
|
|
1034
|
-
try {
|
|
1035
|
-
const result = await httpClient.request(reqOpts);
|
|
1036
|
-
sideEffects?.onSuccess?.(result);
|
|
1037
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1038
|
-
} catch (err) {
|
|
1039
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1040
|
-
err,
|
|
1041
|
-
{
|
|
1042
|
-
spreadPathsToArguments: {},
|
|
1043
|
-
explicitPathsToArguments: {
|
|
1044
|
-
automationId: "$[0]",
|
|
1045
|
-
revision: "$[1].revision",
|
|
1046
|
-
fields: "$[1].fields"
|
|
1047
|
-
},
|
|
1048
|
-
singleArgumentUnchanged: false
|
|
1049
|
-
},
|
|
1050
|
-
["automationId", "options"]
|
|
1051
|
-
);
|
|
1052
|
-
sideEffects?.onError?.(err);
|
|
1053
|
-
throw transformedError;
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
1057
|
async function createAutomation2(automation) {
|
|
1057
1058
|
const { httpClient, sideEffects } = arguments[1];
|
|
1058
1059
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1595,6 +1596,29 @@ async function validateAutomationById2(automationId, options) {
|
|
|
1595
1596
|
throw transformedError;
|
|
1596
1597
|
}
|
|
1597
1598
|
}
|
|
1599
|
+
async function getActionsQuotaInfo2() {
|
|
1600
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
1601
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1602
|
+
const reqOpts = getActionsQuotaInfo(payload);
|
|
1603
|
+
sideEffects?.onSiteCall?.();
|
|
1604
|
+
try {
|
|
1605
|
+
const result = await httpClient.request(reqOpts);
|
|
1606
|
+
sideEffects?.onSuccess?.(result);
|
|
1607
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1608
|
+
} catch (err) {
|
|
1609
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1610
|
+
err,
|
|
1611
|
+
{
|
|
1612
|
+
spreadPathsToArguments: {},
|
|
1613
|
+
explicitPathsToArguments: {},
|
|
1614
|
+
singleArgumentUnchanged: false
|
|
1615
|
+
},
|
|
1616
|
+
[]
|
|
1617
|
+
);
|
|
1618
|
+
sideEffects?.onError?.(err);
|
|
1619
|
+
throw transformedError;
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1598
1622
|
async function generateActionInputMappingFromTemplate2(appId, options) {
|
|
1599
1623
|
const { httpClient, sideEffects } = arguments[2];
|
|
1600
1624
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1628,6 +1652,37 @@ async function generateActionInputMappingFromTemplate2(appId, options) {
|
|
|
1628
1652
|
throw transformedError;
|
|
1629
1653
|
}
|
|
1630
1654
|
}
|
|
1655
|
+
async function getAutomationRevision2(automationId, options) {
|
|
1656
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1657
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1658
|
+
automationId,
|
|
1659
|
+
revision: options?.revision,
|
|
1660
|
+
fields: options?.fields
|
|
1661
|
+
});
|
|
1662
|
+
const reqOpts = getAutomationRevision(payload);
|
|
1663
|
+
sideEffects?.onSiteCall?.();
|
|
1664
|
+
try {
|
|
1665
|
+
const result = await httpClient.request(reqOpts);
|
|
1666
|
+
sideEffects?.onSuccess?.(result);
|
|
1667
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1668
|
+
} catch (err) {
|
|
1669
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1670
|
+
err,
|
|
1671
|
+
{
|
|
1672
|
+
spreadPathsToArguments: {},
|
|
1673
|
+
explicitPathsToArguments: {
|
|
1674
|
+
automationId: "$[0]",
|
|
1675
|
+
revision: "$[1].revision",
|
|
1676
|
+
fields: "$[1].fields"
|
|
1677
|
+
},
|
|
1678
|
+
singleArgumentUnchanged: false
|
|
1679
|
+
},
|
|
1680
|
+
["automationId", "options"]
|
|
1681
|
+
);
|
|
1682
|
+
sideEffects?.onError?.(err);
|
|
1683
|
+
throw transformedError;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1631
1686
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1632
1687
|
0 && (module.exports = {
|
|
1633
1688
|
ActionErrorType,
|
|
@@ -1662,6 +1717,7 @@ async function generateActionInputMappingFromTemplate2(appId, options) {
|
|
|
1662
1717
|
deleteDraftAutomation,
|
|
1663
1718
|
generateActionInputMappingFromTemplate,
|
|
1664
1719
|
generatePreinstalledAutomation,
|
|
1720
|
+
getActionsQuotaInfo,
|
|
1665
1721
|
getAggregatedUsageInfo,
|
|
1666
1722
|
getAutomation,
|
|
1667
1723
|
getAutomationRevision,
|