@wix/auto_sdk_automations_automations-v-2 1.0.88 → 1.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +20 -12
  2. package/build/cjs/index.js +124 -61
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +51 -42
  5. package/build/cjs/index.typings.js +109 -53
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +27 -26
  8. package/build/cjs/meta.js +91 -40
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +20 -12
  11. package/build/es/index.mjs +123 -61
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +51 -42
  14. package/build/es/index.typings.mjs +108 -53
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +27 -26
  17. package/build/es/meta.mjs +90 -40
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +20 -12
  20. package/build/internal/cjs/index.js +124 -61
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +51 -42
  23. package/build/internal/cjs/index.typings.js +109 -53
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +27 -26
  26. package/build/internal/cjs/meta.js +91 -40
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +20 -12
  29. package/build/internal/es/index.mjs +123 -61
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +51 -42
  32. package/build/internal/es/index.typings.mjs +108 -53
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +27 -26
  35. package/build/internal/es/meta.mjs +90 -40
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -881,9 +881,19 @@ declare enum WebhookIdentityType {
881
881
  }
882
882
  /** @enumType */
883
883
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
884
- interface CreateAutomationRequest {
885
- /** Automation to create. */
886
- automation: Automation;
884
+ interface GetAutomationRevisionRequest {
885
+ /**
886
+ * Automation ID.
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[];
887
897
  }
888
898
  declare enum RequestedFields {
889
899
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
@@ -892,6 +902,14 @@ declare enum RequestedFields {
892
902
  }
893
903
  /** @enumType */
894
904
  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
+ }
895
913
  interface CreateAutomationResponse {
896
914
  /** Details of the created automation. */
897
915
  automation?: Automation;
@@ -2415,24 +2433,6 @@ interface MergeOverridePreinstalledWithRuntimeVersionResponse {
2415
2433
  /** The merged automation after applying the latest runtime version of the preinstalled automation. */
2416
2434
  automation?: Automation;
2417
2435
  }
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,6 +2536,26 @@ 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
+ }
2539
2559
  /**
2540
2560
  * Creates an automation.
2541
2561
  * @param automation - Automation to create.
@@ -3187,6 +3207,15 @@ interface ValidateAutomationByIdOptions {
3187
3207
  /** Validation settings. */
3188
3208
  validationSettings?: ValidationSettings;
3189
3209
  }
3210
+ /**
3211
+ * Gets action quota information.
3212
+ * @public
3213
+ * @documentationMaturity preview
3214
+ * @permissionId AUTOMATIONS.AUTOMATION_READ
3215
+ * @applicableIdentity APP
3216
+ * @fqn wix.automations.v2.AutomationsService.GetActionsQuotaInfo
3217
+ */
3218
+ declare function getActionsQuotaInfo(): Promise<NonNullablePaths<GetActionsQuotaInfoResponse, `actionProviderQuotaInfo` | `actionProviderQuotaInfo.${number}.appId` | `actionProviderQuotaInfo.${number}.actionKey` | `actionProviderQuotaInfo.${number}.actionQuotaInfo.enforced`, 5>>;
3190
3219
  /**
3191
3220
  * Generates action input mapping from a template.
3192
3221
  * @param appId - Action app ID.
@@ -3211,25 +3240,5 @@ interface GenerateActionInputMappingFromTemplateOptions {
3211
3240
  /** Action input mapping template the action SPI provider will generate input mapping from. */
3212
3241
  actionInputMappingTemplate: Record<string, any> | null;
3213
3242
  }
3214
- /**
3215
- * Gets the specified automation revision.
3216
- * @param automationId - Automation ID.
3217
- * @public
3218
- * @documentationMaturity preview
3219
- * @requiredField automationId
3220
- * @permissionId AUTOMATIONS.AUTOMATION_REVISION_READ
3221
- * @applicableIdentity APP
3222
- * @fqn wix.automations.v2.AutomationRevisionsService.GetAutomationRevision
3223
- */
3224
- 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>>;
3225
- interface GetAutomationRevisionOptions {
3226
- /** Revision number. */
3227
- revision?: string | null;
3228
- /**
3229
- * Requested fields.
3230
- * @maxSize 20
3231
- */
3232
- fields?: RequestedFieldsWithLiterals[];
3233
- }
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 resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
84
+ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
84
85
  const domainToMappings = {
85
86
  "manage._base_domain_": [
86
87
  {
@@ -119,7 +120,7 @@ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
119
120
  };
120
121
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
121
122
  }
122
- function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
123
+ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
123
124
  const domainToMappings = {
124
125
  "manage._base_domain_": [
125
126
  {
@@ -159,6 +160,38 @@ function resolveWixAutomationsV2AutomationsServiceUrl(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";
163
+ function getAutomationRevision(payload) {
164
+ function __getAutomationRevision({ host }) {
165
+ const metadata = {
166
+ entityFqdn: "wix.automations.v2.automation",
167
+ method: "GET",
168
+ methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
169
+ packageName: PACKAGE_NAME,
170
+ migrationOptions: {
171
+ optInTransformResponse: true
172
+ },
173
+ url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
174
+ protoPath: "/v1/automation-revisions/{automationId}",
175
+ data: payload,
176
+ host
177
+ }),
178
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
179
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
180
+ {
181
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
182
+ paths: [
183
+ { path: "automation.createdDate" },
184
+ { path: "automation.updatedDate" },
185
+ { path: "automation.draftUpdatedDate" },
186
+ { path: "automation.autoArchivePolicy.archiveDate" }
187
+ ]
188
+ }
189
+ ])
190
+ };
191
+ return metadata;
192
+ }
193
+ return __getAutomationRevision;
194
+ }
162
195
  function createAutomation(payload) {
163
196
  function __createAutomation({ host }) {
164
197
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -775,58 +808,57 @@ function validateAutomationById(payload) {
775
808
  }
776
809
  return __validateAutomationById;
777
810
  }
778
- function generateActionInputMappingFromTemplate(payload) {
779
- function __generateActionInputMappingFromTemplate({ host }) {
811
+ function getActionsQuotaInfo(payload) {
812
+ function __getActionsQuotaInfo({ host }) {
780
813
  const metadata = {
781
814
  entityFqdn: "wix.automations.v2.automation",
782
- method: "POST",
783
- methodFqn: "wix.automations.v2.AutomationsService.GenerateActionInputMappingFromTemplate",
815
+ method: "GET",
816
+ methodFqn: "wix.automations.v2.AutomationsService.GetActionsQuotaInfo",
784
817
  packageName: PACKAGE_NAME,
785
818
  migrationOptions: {
786
819
  optInTransformResponse: true
787
820
  },
788
821
  url: resolveWixAutomationsV2AutomationsServiceUrl({
789
- protoPath: "/v2/automations/actions/generate-action-input-mapping-from-template",
822
+ protoPath: "/v2/automations/actions/quota",
790
823
  data: payload,
791
824
  host
792
825
  }),
793
- data: payload
826
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
827
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
828
+ {
829
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
830
+ paths: [
831
+ {
832
+ path: "actionProviderQuotaInfo.actionQuotaInfo.quotaInfo.quotas.renewalDate"
833
+ }
834
+ ]
835
+ }
836
+ ])
794
837
  };
795
838
  return metadata;
796
839
  }
797
- return __generateActionInputMappingFromTemplate;
840
+ return __getActionsQuotaInfo;
798
841
  }
799
- function getAutomationRevision(payload) {
800
- function __getAutomationRevision({ host }) {
842
+ function generateActionInputMappingFromTemplate(payload) {
843
+ function __generateActionInputMappingFromTemplate({ host }) {
801
844
  const metadata = {
802
845
  entityFqdn: "wix.automations.v2.automation",
803
- method: "GET",
804
- methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
846
+ method: "POST",
847
+ methodFqn: "wix.automations.v2.AutomationsService.GenerateActionInputMappingFromTemplate",
805
848
  packageName: PACKAGE_NAME,
806
849
  migrationOptions: {
807
850
  optInTransformResponse: true
808
851
  },
809
- url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
810
- protoPath: "/v1/automation-revisions/{automationId}",
852
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
853
+ protoPath: "/v2/automations/actions/generate-action-input-mapping-from-template",
811
854
  data: payload,
812
855
  host
813
856
  }),
814
- params: (0, import_rest_modules.toURLSearchParams)(payload),
815
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
816
- {
817
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
818
- paths: [
819
- { path: "automation.createdDate" },
820
- { path: "automation.updatedDate" },
821
- { path: "automation.draftUpdatedDate" },
822
- { path: "automation.autoArchivePolicy.archiveDate" }
823
- ]
824
- }
825
- ])
857
+ data: payload
826
858
  };
827
859
  return metadata;
828
860
  }
829
- return __getAutomationRevision;
861
+ return __generateActionInputMappingFromTemplate;
830
862
  }
831
863
 
832
864
  // src/automations-v2-automation-automations-v-2.universal.ts
@@ -1022,6 +1054,37 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
1022
1054
  AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
1023
1055
  return AutomationErrorType2;
1024
1056
  })(AutomationErrorType || {});
1057
+ async function getAutomationRevision2(automationId, options) {
1058
+ const { httpClient, sideEffects } = arguments[2];
1059
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1060
+ automationId,
1061
+ revision: options?.revision,
1062
+ fields: options?.fields
1063
+ });
1064
+ const reqOpts = getAutomationRevision(payload);
1065
+ sideEffects?.onSiteCall?.();
1066
+ try {
1067
+ const result = await httpClient.request(reqOpts);
1068
+ sideEffects?.onSuccess?.(result);
1069
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1070
+ } catch (err) {
1071
+ const transformedError = (0, import_transform_error.transformError)(
1072
+ err,
1073
+ {
1074
+ spreadPathsToArguments: {},
1075
+ explicitPathsToArguments: {
1076
+ automationId: "$[0]",
1077
+ revision: "$[1].revision",
1078
+ fields: "$[1].fields"
1079
+ },
1080
+ singleArgumentUnchanged: false
1081
+ },
1082
+ ["automationId", "options"]
1083
+ );
1084
+ sideEffects?.onError?.(err);
1085
+ throw transformedError;
1086
+ }
1087
+ }
1025
1088
  async function createAutomation2(automation) {
1026
1089
  const { httpClient, sideEffects } = arguments[1];
1027
1090
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1564,16 +1627,10 @@ async function validateAutomationById2(automationId, options) {
1564
1627
  throw transformedError;
1565
1628
  }
1566
1629
  }
1567
- async function generateActionInputMappingFromTemplate2(appId, options) {
1568
- const { httpClient, sideEffects } = arguments[2];
1569
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1570
- appId,
1571
- actionKey: options?.actionKey,
1572
- actionInputMappingTemplate: options?.actionInputMappingTemplate
1573
- });
1574
- const reqOpts = generateActionInputMappingFromTemplate(
1575
- payload
1576
- );
1630
+ async function getActionsQuotaInfo2() {
1631
+ const { httpClient, sideEffects } = arguments[0];
1632
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
1633
+ const reqOpts = getActionsQuotaInfo(payload);
1577
1634
  sideEffects?.onSiteCall?.();
1578
1635
  try {
1579
1636
  const result = await httpClient.request(reqOpts);
@@ -1584,27 +1641,25 @@ async function generateActionInputMappingFromTemplate2(appId, options) {
1584
1641
  err,
1585
1642
  {
1586
1643
  spreadPathsToArguments: {},
1587
- explicitPathsToArguments: {
1588
- appId: "$[0]",
1589
- actionKey: "$[1].actionKey",
1590
- actionInputMappingTemplate: "$[1].actionInputMappingTemplate"
1591
- },
1644
+ explicitPathsToArguments: {},
1592
1645
  singleArgumentUnchanged: false
1593
1646
  },
1594
- ["appId", "options"]
1647
+ []
1595
1648
  );
1596
1649
  sideEffects?.onError?.(err);
1597
1650
  throw transformedError;
1598
1651
  }
1599
1652
  }
1600
- async function getAutomationRevision2(automationId, options) {
1653
+ async function generateActionInputMappingFromTemplate2(appId, options) {
1601
1654
  const { httpClient, sideEffects } = arguments[2];
1602
1655
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1603
- automationId,
1604
- revision: options?.revision,
1605
- fields: options?.fields
1656
+ appId,
1657
+ actionKey: options?.actionKey,
1658
+ actionInputMappingTemplate: options?.actionInputMappingTemplate
1606
1659
  });
1607
- const reqOpts = getAutomationRevision(payload);
1660
+ const reqOpts = generateActionInputMappingFromTemplate(
1661
+ payload
1662
+ );
1608
1663
  sideEffects?.onSiteCall?.();
1609
1664
  try {
1610
1665
  const result = await httpClient.request(reqOpts);
@@ -1616,13 +1671,13 @@ async function getAutomationRevision2(automationId, options) {
1616
1671
  {
1617
1672
  spreadPathsToArguments: {},
1618
1673
  explicitPathsToArguments: {
1619
- automationId: "$[0]",
1620
- revision: "$[1].revision",
1621
- fields: "$[1].fields"
1674
+ appId: "$[0]",
1675
+ actionKey: "$[1].actionKey",
1676
+ actionInputMappingTemplate: "$[1].actionInputMappingTemplate"
1622
1677
  },
1623
1678
  singleArgumentUnchanged: false
1624
1679
  },
1625
- ["automationId", "options"]
1680
+ ["appId", "options"]
1626
1681
  );
1627
1682
  sideEffects?.onError?.(err);
1628
1683
  throw transformedError;
@@ -1662,6 +1717,7 @@ async function getAutomationRevision2(automationId, options) {
1662
1717
  deleteDraftAutomation,
1663
1718
  generateActionInputMappingFromTemplate,
1664
1719
  generatePreinstalledAutomation,
1720
+ getActionsQuotaInfo,
1665
1721
  getAggregatedUsageInfo,
1666
1722
  getAutomation,
1667
1723
  getAutomationRevision,