@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +20 -12
  2. package/build/cjs/index.js +137 -74
  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 +121 -65
  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 +103 -52
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +20 -12
  11. package/build/es/index.mjs +136 -74
  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 +120 -65
  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 +102 -52
  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 +137 -74
  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 +121 -65
  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 +103 -52
  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 +136 -74
  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 +120 -65
  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 +102 -52
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,15 +1,7 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { GetAutomationRevisionOptions, GetAutomationRevisionResponse, Automation, UpdateAutomation, BulkDeleteAutomationsResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GetOrCreateDraftAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, PublishDraftAutomationResponse, ValidateAutomationOptions, ValidateAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationQuery, QueryAutomationsOptions, typedQueryAutomations, AutomationsQueryBuilder } from './index.typings.js';
3
- export { AIMetadata, 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, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CreatedByAppIdUsageSummary, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GenerateActionInputMappingFromTemplateRequest, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, LanguageWithLiterals, 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, QueryPreinstalledAutomationsResponse, 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, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerSettings, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpgradeCTA, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationResultStatus, ValidationResultStatusWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js';
2
+ import { Automation, UpdateAutomation, BulkDeleteAutomationsResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GetOrCreateDraftAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, PublishDraftAutomationResponse, ValidateAutomationOptions, ValidateAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, GetActionsQuotaInfoResponse, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationQuery, QueryAutomationsOptions, typedQueryAutomations, AutomationsQueryBuilder } from './index.typings.js';
3
+ export { AIMetadata, 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, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CreatedByAppIdUsageSummary, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, 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, 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, QueryPreinstalledAutomationsResponse, 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, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerSettings, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpgradeCTA, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationResultStatus, ValidationResultStatusWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js';
4
4
 
5
- declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
6
- interface GetAutomationRevisionSignature {
7
- /**
8
- * Gets the specified automation revision.
9
- * @param - Automation ID.
10
- */
11
- (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>>;
12
- }
13
5
  declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
14
6
  interface CreateAutomationSignature {
15
7
  /**
@@ -181,6 +173,13 @@ interface ValidateAutomationByIdSignature {
181
173
  */
182
174
  (automationId: string, options?: ValidateAutomationByIdOptions): Promise<NonNullablePaths<ValidateAutomationByIdResponse, `status` | `triggerValidationErrors` | `triggerValidationErrors.${number}.configurationError.errorType` | `triggerValidationErrors.${number}.providerConfigurationError.message` | `triggerValidationErrors.${number}.providerConfigurationError.title` | `triggerValidationErrors.${number}.errorType` | `triggerValidationErrors.${number}.errorSeverity` | `actionValidationErrors` | `actionValidationErrors.${number}.configurationError.errorType` | `actionValidationErrors.${number}.providerConfigurationError.message` | `actionValidationErrors.${number}.providerConfigurationError.title` | `actionValidationErrors.${number}.actionId` | `actionValidationErrors.${number}.appId` | `actionValidationErrors.${number}.actionKey` | `actionValidationErrors.${number}.errorType` | `actionValidationErrors.${number}.errorSeverity`, 5>>;
183
175
  }
176
+ declare function getActionsQuotaInfo$1(httpClient: HttpClient): GetActionsQuotaInfoSignature;
177
+ interface GetActionsQuotaInfoSignature {
178
+ /**
179
+ * Gets action quota information.
180
+ */
181
+ (): Promise<NonNullablePaths<GetActionsQuotaInfoResponse, `actionProviderQuotaInfo` | `actionProviderQuotaInfo.${number}.appId` | `actionProviderQuotaInfo.${number}.actionKey` | `actionProviderQuotaInfo.${number}.actionQuotaInfo.enforced`, 5>>;
182
+ }
184
183
  declare function generateActionInputMappingFromTemplate$1(httpClient: HttpClient): GenerateActionInputMappingFromTemplateSignature;
185
184
  interface GenerateActionInputMappingFromTemplateSignature {
186
185
  /**
@@ -189,6 +188,14 @@ interface GenerateActionInputMappingFromTemplateSignature {
189
188
  */
190
189
  (appId: string, options: NonNullablePaths<GenerateActionInputMappingFromTemplateOptions, `actionInputMappingTemplate` | `actionKey`, 2>): Promise<GenerateActionInputMappingFromTemplateResponse>;
191
190
  }
191
+ declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
192
+ interface GetAutomationRevisionSignature {
193
+ /**
194
+ * Gets the specified automation revision.
195
+ * @param - Automation ID.
196
+ */
197
+ (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>>;
198
+ }
192
199
  declare const onAutomationCreated$1: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
193
200
  declare const onAutomationDeleted$1: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
194
201
  declare const onAutomationUpdated$1: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
@@ -197,7 +204,6 @@ declare function customQueryAutomations(httpClient: HttpClient): {
197
204
  (query: AutomationQuery, options?: QueryAutomationsOptions): ReturnType<typeof typedQueryAutomations>;
198
205
  (options?: QueryAutomationsOptions): AutomationsQueryBuilder;
199
206
  };
200
- declare const getAutomationRevision: MaybeContext<BuildRESTFunction<typeof getAutomationRevision$1> & typeof getAutomationRevision$1>;
201
207
  declare const createAutomation: MaybeContext<BuildRESTFunction<typeof createAutomation$1> & typeof createAutomation$1>;
202
208
  declare const getAutomation: MaybeContext<BuildRESTFunction<typeof getAutomation$1> & typeof getAutomation$1>;
203
209
  declare const updateAutomation: MaybeContext<BuildRESTFunction<typeof updateAutomation$1> & typeof updateAutomation$1>;
@@ -216,7 +222,9 @@ declare const deleteDraftAutomation: MaybeContext<BuildRESTFunction<typeof delet
216
222
  declare const publishDraftAutomation: MaybeContext<BuildRESTFunction<typeof publishDraftAutomation$1> & typeof publishDraftAutomation$1>;
217
223
  declare const validateAutomation: MaybeContext<BuildRESTFunction<typeof validateAutomation$1> & typeof validateAutomation$1>;
218
224
  declare const validateAutomationById: MaybeContext<BuildRESTFunction<typeof validateAutomationById$1> & typeof validateAutomationById$1>;
225
+ declare const getActionsQuotaInfo: MaybeContext<BuildRESTFunction<typeof getActionsQuotaInfo$1> & typeof getActionsQuotaInfo$1>;
219
226
  declare const generateActionInputMappingFromTemplate: MaybeContext<BuildRESTFunction<typeof generateActionInputMappingFromTemplate$1> & typeof generateActionInputMappingFromTemplate$1>;
227
+ declare const getAutomationRevision: MaybeContext<BuildRESTFunction<typeof getAutomationRevision$1> & typeof getAutomationRevision$1>;
220
228
  declare const queryAutomations: MaybeContext<BuildRESTFunction<typeof customQueryAutomations> & typeof customQueryAutomations>;
221
229
  /**
222
230
  * Triggered when a new automation is created.
@@ -231,4 +239,4 @@ declare const onAutomationDeleted: BuildEventDefinition<typeof onAutomationDelet
231
239
  */
232
240
  declare const onAutomationUpdated: BuildEventDefinition<typeof onAutomationUpdated$1> & typeof onAutomationUpdated$1;
233
241
 
234
- export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationQuery, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomationsForApp, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
242
+ export { Automation, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationQuery, AutomationUpdatedEnvelope, AutomationsQueryBuilder, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, BulkDeleteAutomationsResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, GetOrCreateDraftAutomationResponse, PublishDraftAutomationResponse, QueryAutomationsOptions, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, QueryPreinstalledAutomationsForAppOptions, QueryPreinstalledAutomationsForAppResponse, UpdateAutomation, UpdateDraftAutomation, UpdateDraftAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, ValidateAutomationOptions, ValidateAutomationResponse, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generateActionInputMappingFromTemplate, generatePreinstalledAutomation, getActionsQuotaInfo, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, queryPreinstalledAutomationsForApp, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
@@ -52,6 +52,7 @@ __export(index_exports, {
52
52
  deleteDraftAutomation: () => deleteDraftAutomation4,
53
53
  generateActionInputMappingFromTemplate: () => generateActionInputMappingFromTemplate4,
54
54
  generatePreinstalledAutomation: () => generatePreinstalledAutomation4,
55
+ getActionsQuotaInfo: () => getActionsQuotaInfo4,
55
56
  getAggregatedUsageInfo: () => getAggregatedUsageInfo4,
56
57
  getAutomation: () => getAutomation4,
57
58
  getAutomationRevision: () => getAutomationRevision4,
@@ -88,7 +89,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
88
89
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
89
90
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
90
91
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
91
- function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
92
+ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
92
93
  const domainToMappings = {
93
94
  "manage._base_domain_": [
94
95
  {
@@ -127,7 +128,7 @@ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
127
128
  };
128
129
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
129
130
  }
130
- function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
131
+ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
131
132
  const domainToMappings = {
132
133
  "manage._base_domain_": [
133
134
  {
@@ -167,38 +168,6 @@ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
167
168
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
168
169
  }
169
170
  var PACKAGE_NAME = "@wix/auto_sdk_automations_automations-v-2";
170
- function getAutomationRevision(payload) {
171
- function __getAutomationRevision({ host }) {
172
- const metadata = {
173
- entityFqdn: "wix.automations.v2.automation",
174
- method: "GET",
175
- methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
176
- packageName: PACKAGE_NAME,
177
- migrationOptions: {
178
- optInTransformResponse: true
179
- },
180
- url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
181
- protoPath: "/v1/automation-revisions/{automationId}",
182
- data: payload,
183
- host
184
- }),
185
- params: (0, import_rest_modules.toURLSearchParams)(payload),
186
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
187
- {
188
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
189
- paths: [
190
- { path: "automation.createdDate" },
191
- { path: "automation.updatedDate" },
192
- { path: "automation.draftUpdatedDate" },
193
- { path: "automation.autoArchivePolicy.archiveDate" }
194
- ]
195
- }
196
- ])
197
- };
198
- return metadata;
199
- }
200
- return __getAutomationRevision;
201
- }
202
171
  function createAutomation(payload) {
203
172
  function __createAutomation({ host }) {
204
173
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -815,6 +784,37 @@ function validateAutomationById(payload) {
815
784
  }
816
785
  return __validateAutomationById;
817
786
  }
787
+ function getActionsQuotaInfo(payload) {
788
+ function __getActionsQuotaInfo({ host }) {
789
+ const metadata = {
790
+ entityFqdn: "wix.automations.v2.automation",
791
+ method: "GET",
792
+ methodFqn: "wix.automations.v2.AutomationsService.GetActionsQuotaInfo",
793
+ packageName: PACKAGE_NAME,
794
+ migrationOptions: {
795
+ optInTransformResponse: true
796
+ },
797
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
798
+ protoPath: "/v2/automations/actions/quota",
799
+ data: payload,
800
+ host
801
+ }),
802
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
803
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
804
+ {
805
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
806
+ paths: [
807
+ {
808
+ path: "actionProviderQuotaInfo.actionQuotaInfo.quotaInfo.quotas.renewalDate"
809
+ }
810
+ ]
811
+ }
812
+ ])
813
+ };
814
+ return metadata;
815
+ }
816
+ return __getActionsQuotaInfo;
817
+ }
818
818
  function generateActionInputMappingFromTemplate(payload) {
819
819
  function __generateActionInputMappingFromTemplate({ host }) {
820
820
  const metadata = {
@@ -836,6 +836,38 @@ function generateActionInputMappingFromTemplate(payload) {
836
836
  }
837
837
  return __generateActionInputMappingFromTemplate;
838
838
  }
839
+ function getAutomationRevision(payload) {
840
+ function __getAutomationRevision({ host }) {
841
+ const metadata = {
842
+ entityFqdn: "wix.automations.v2.automation",
843
+ method: "GET",
844
+ methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
845
+ packageName: PACKAGE_NAME,
846
+ migrationOptions: {
847
+ optInTransformResponse: true
848
+ },
849
+ url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
850
+ protoPath: "/v1/automation-revisions/{automationId}",
851
+ data: payload,
852
+ host
853
+ }),
854
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
855
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
856
+ {
857
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
858
+ paths: [
859
+ { path: "automation.createdDate" },
860
+ { path: "automation.updatedDate" },
861
+ { path: "automation.draftUpdatedDate" },
862
+ { path: "automation.autoArchivePolicy.archiveDate" }
863
+ ]
864
+ }
865
+ ])
866
+ };
867
+ return metadata;
868
+ }
869
+ return __getAutomationRevision;
870
+ }
839
871
 
840
872
  // src/automations-v2-automation-automations-v-2.universal.ts
841
873
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
@@ -1030,37 +1062,6 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
1030
1062
  AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
1031
1063
  return AutomationErrorType2;
1032
1064
  })(AutomationErrorType || {});
1033
- async function getAutomationRevision2(automationId, options) {
1034
- const { httpClient, sideEffects } = arguments[2];
1035
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1036
- automationId,
1037
- revision: options?.revision,
1038
- fields: options?.fields
1039
- });
1040
- const reqOpts = getAutomationRevision(payload);
1041
- sideEffects?.onSiteCall?.();
1042
- try {
1043
- const result = await httpClient.request(reqOpts);
1044
- sideEffects?.onSuccess?.(result);
1045
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1046
- } catch (err) {
1047
- const transformedError = (0, import_transform_error.transformError)(
1048
- err,
1049
- {
1050
- spreadPathsToArguments: {},
1051
- explicitPathsToArguments: {
1052
- automationId: "$[0]",
1053
- revision: "$[1].revision",
1054
- fields: "$[1].fields"
1055
- },
1056
- singleArgumentUnchanged: false
1057
- },
1058
- ["automationId", "options"]
1059
- );
1060
- sideEffects?.onError?.(err);
1061
- throw transformedError;
1062
- }
1063
- }
1064
1065
  async function createAutomation2(automation) {
1065
1066
  const { httpClient, sideEffects } = arguments[1];
1066
1067
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1603,6 +1604,29 @@ async function validateAutomationById2(automationId, options) {
1603
1604
  throw transformedError;
1604
1605
  }
1605
1606
  }
1607
+ async function getActionsQuotaInfo2() {
1608
+ const { httpClient, sideEffects } = arguments[0];
1609
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
1610
+ const reqOpts = getActionsQuotaInfo(payload);
1611
+ sideEffects?.onSiteCall?.();
1612
+ try {
1613
+ const result = await httpClient.request(reqOpts);
1614
+ sideEffects?.onSuccess?.(result);
1615
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1616
+ } catch (err) {
1617
+ const transformedError = (0, import_transform_error.transformError)(
1618
+ err,
1619
+ {
1620
+ spreadPathsToArguments: {},
1621
+ explicitPathsToArguments: {},
1622
+ singleArgumentUnchanged: false
1623
+ },
1624
+ []
1625
+ );
1626
+ sideEffects?.onError?.(err);
1627
+ throw transformedError;
1628
+ }
1629
+ }
1606
1630
  async function generateActionInputMappingFromTemplate2(appId, options) {
1607
1631
  const { httpClient, sideEffects } = arguments[2];
1608
1632
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1636,16 +1660,39 @@ async function generateActionInputMappingFromTemplate2(appId, options) {
1636
1660
  throw transformedError;
1637
1661
  }
1638
1662
  }
1639
-
1640
- // src/automations-v2-automation-automations-v-2.public.ts
1641
- function getAutomationRevision3(httpClient) {
1642
- return (automationId, options) => getAutomationRevision2(
1663
+ async function getAutomationRevision2(automationId, options) {
1664
+ const { httpClient, sideEffects } = arguments[2];
1665
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1643
1666
  automationId,
1644
- options,
1645
- // @ts-ignore
1646
- { httpClient }
1647
- );
1667
+ revision: options?.revision,
1668
+ fields: options?.fields
1669
+ });
1670
+ const reqOpts = getAutomationRevision(payload);
1671
+ sideEffects?.onSiteCall?.();
1672
+ try {
1673
+ const result = await httpClient.request(reqOpts);
1674
+ sideEffects?.onSuccess?.(result);
1675
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1676
+ } catch (err) {
1677
+ const transformedError = (0, import_transform_error.transformError)(
1678
+ err,
1679
+ {
1680
+ spreadPathsToArguments: {},
1681
+ explicitPathsToArguments: {
1682
+ automationId: "$[0]",
1683
+ revision: "$[1].revision",
1684
+ fields: "$[1].fields"
1685
+ },
1686
+ singleArgumentUnchanged: false
1687
+ },
1688
+ ["automationId", "options"]
1689
+ );
1690
+ sideEffects?.onError?.(err);
1691
+ throw transformedError;
1692
+ }
1648
1693
  }
1694
+
1695
+ // src/automations-v2-automation-automations-v-2.public.ts
1649
1696
  function createAutomation3(httpClient) {
1650
1697
  return (automation) => createAutomation2(
1651
1698
  automation,
@@ -1793,6 +1840,12 @@ function validateAutomationById3(httpClient) {
1793
1840
  { httpClient }
1794
1841
  );
1795
1842
  }
1843
+ function getActionsQuotaInfo3(httpClient) {
1844
+ return () => getActionsQuotaInfo2(
1845
+ // @ts-ignore
1846
+ { httpClient }
1847
+ );
1848
+ }
1796
1849
  function generateActionInputMappingFromTemplate3(httpClient) {
1797
1850
  return (appId, options) => generateActionInputMappingFromTemplate2(
1798
1851
  appId,
@@ -1801,6 +1854,14 @@ function generateActionInputMappingFromTemplate3(httpClient) {
1801
1854
  { httpClient }
1802
1855
  );
1803
1856
  }
1857
+ function getAutomationRevision3(httpClient) {
1858
+ return (automationId, options) => getAutomationRevision2(
1859
+ automationId,
1860
+ options,
1861
+ // @ts-ignore
1862
+ { httpClient }
1863
+ );
1864
+ }
1804
1865
  var onAutomationCreated = (0, import_sdk_types.EventDefinition)(
1805
1866
  "wix.automations.v2.automation_created",
1806
1867
  true,
@@ -1875,7 +1936,6 @@ function customQueryAutomations(httpClient) {
1875
1936
  }
1876
1937
  return overloadedQuery;
1877
1938
  }
1878
- var getAutomationRevision4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAutomationRevision3);
1879
1939
  var createAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createAutomation3);
1880
1940
  var getAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAutomation3);
1881
1941
  var updateAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAutomation3);
@@ -1894,9 +1954,11 @@ var deleteDraftAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
1894
1954
  var publishDraftAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(publishDraftAutomation3);
1895
1955
  var validateAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(validateAutomation3);
1896
1956
  var validateAutomationById4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(validateAutomationById3);
1957
+ var getActionsQuotaInfo4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getActionsQuotaInfo3);
1897
1958
  var generateActionInputMappingFromTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1898
1959
  generateActionInputMappingFromTemplate3
1899
1960
  );
1961
+ var getAutomationRevision4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAutomationRevision3);
1900
1962
  var queryAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryAutomations);
1901
1963
  var onAutomationCreated2 = (0, import_event_definition_modules.createEventModule)(
1902
1964
  onAutomationCreated
@@ -1941,6 +2003,7 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
1941
2003
  deleteDraftAutomation,
1942
2004
  generateActionInputMappingFromTemplate,
1943
2005
  generatePreinstalledAutomation,
2006
+ getActionsQuotaInfo,
1944
2007
  getAggregatedUsageInfo,
1945
2008
  getAutomation,
1946
2009
  getAutomationRevision,