@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.mjs';
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.mjs';
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.mjs';
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.mjs';
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 };
@@ -19,7 +19,7 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
19
19
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
20
20
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
21
21
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
22
- function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
22
+ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
23
23
  const domainToMappings = {
24
24
  "manage._base_domain_": [
25
25
  {
@@ -58,7 +58,7 @@ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
58
58
  };
59
59
  return resolveUrl(Object.assign(opts, { domainToMappings }));
60
60
  }
61
- function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
61
+ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
62
62
  const domainToMappings = {
63
63
  "manage._base_domain_": [
64
64
  {
@@ -98,38 +98,6 @@ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
98
98
  return resolveUrl(Object.assign(opts, { domainToMappings }));
99
99
  }
100
100
  var PACKAGE_NAME = "@wix/auto_sdk_automations_automations-v-2";
101
- function getAutomationRevision(payload) {
102
- function __getAutomationRevision({ host }) {
103
- const metadata = {
104
- entityFqdn: "wix.automations.v2.automation",
105
- method: "GET",
106
- methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
107
- packageName: PACKAGE_NAME,
108
- migrationOptions: {
109
- optInTransformResponse: true
110
- },
111
- url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
112
- protoPath: "/v1/automation-revisions/{automationId}",
113
- data: payload,
114
- host
115
- }),
116
- params: toURLSearchParams(payload),
117
- transformResponse: (payload2) => transformPaths(payload2, [
118
- {
119
- transformFn: transformRESTTimestampToSDKTimestamp,
120
- paths: [
121
- { path: "automation.createdDate" },
122
- { path: "automation.updatedDate" },
123
- { path: "automation.draftUpdatedDate" },
124
- { path: "automation.autoArchivePolicy.archiveDate" }
125
- ]
126
- }
127
- ])
128
- };
129
- return metadata;
130
- }
131
- return __getAutomationRevision;
132
- }
133
101
  function createAutomation(payload) {
134
102
  function __createAutomation({ host }) {
135
103
  const serializedData = transformPaths(payload, [
@@ -746,6 +714,37 @@ function validateAutomationById(payload) {
746
714
  }
747
715
  return __validateAutomationById;
748
716
  }
717
+ function getActionsQuotaInfo(payload) {
718
+ function __getActionsQuotaInfo({ host }) {
719
+ const metadata = {
720
+ entityFqdn: "wix.automations.v2.automation",
721
+ method: "GET",
722
+ methodFqn: "wix.automations.v2.AutomationsService.GetActionsQuotaInfo",
723
+ packageName: PACKAGE_NAME,
724
+ migrationOptions: {
725
+ optInTransformResponse: true
726
+ },
727
+ url: resolveWixAutomationsV2AutomationsServiceUrl({
728
+ protoPath: "/v2/automations/actions/quota",
729
+ data: payload,
730
+ host
731
+ }),
732
+ params: toURLSearchParams(payload),
733
+ transformResponse: (payload2) => transformPaths(payload2, [
734
+ {
735
+ transformFn: transformRESTTimestampToSDKTimestamp,
736
+ paths: [
737
+ {
738
+ path: "actionProviderQuotaInfo.actionQuotaInfo.quotaInfo.quotas.renewalDate"
739
+ }
740
+ ]
741
+ }
742
+ ])
743
+ };
744
+ return metadata;
745
+ }
746
+ return __getActionsQuotaInfo;
747
+ }
749
748
  function generateActionInputMappingFromTemplate(payload) {
750
749
  function __generateActionInputMappingFromTemplate({ host }) {
751
750
  const metadata = {
@@ -767,6 +766,38 @@ function generateActionInputMappingFromTemplate(payload) {
767
766
  }
768
767
  return __generateActionInputMappingFromTemplate;
769
768
  }
769
+ function getAutomationRevision(payload) {
770
+ function __getAutomationRevision({ host }) {
771
+ const metadata = {
772
+ entityFqdn: "wix.automations.v2.automation",
773
+ method: "GET",
774
+ methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
775
+ packageName: PACKAGE_NAME,
776
+ migrationOptions: {
777
+ optInTransformResponse: true
778
+ },
779
+ url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
780
+ protoPath: "/v1/automation-revisions/{automationId}",
781
+ data: payload,
782
+ host
783
+ }),
784
+ params: toURLSearchParams(payload),
785
+ transformResponse: (payload2) => transformPaths(payload2, [
786
+ {
787
+ transformFn: transformRESTTimestampToSDKTimestamp,
788
+ paths: [
789
+ { path: "automation.createdDate" },
790
+ { path: "automation.updatedDate" },
791
+ { path: "automation.draftUpdatedDate" },
792
+ { path: "automation.autoArchivePolicy.archiveDate" }
793
+ ]
794
+ }
795
+ ])
796
+ };
797
+ return metadata;
798
+ }
799
+ return __getAutomationRevision;
800
+ }
770
801
 
771
802
  // src/automations-v2-automation-automations-v-2.universal.ts
772
803
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
@@ -961,37 +992,6 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
961
992
  AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
962
993
  return AutomationErrorType2;
963
994
  })(AutomationErrorType || {});
964
- async function getAutomationRevision2(automationId, options) {
965
- const { httpClient, sideEffects } = arguments[2];
966
- const payload = renameKeysFromSDKRequestToRESTRequest({
967
- automationId,
968
- revision: options?.revision,
969
- fields: options?.fields
970
- });
971
- const reqOpts = getAutomationRevision(payload);
972
- sideEffects?.onSiteCall?.();
973
- try {
974
- const result = await httpClient.request(reqOpts);
975
- sideEffects?.onSuccess?.(result);
976
- return renameKeysFromRESTResponseToSDKResponse(result.data);
977
- } catch (err) {
978
- const transformedError = sdkTransformError(
979
- err,
980
- {
981
- spreadPathsToArguments: {},
982
- explicitPathsToArguments: {
983
- automationId: "$[0]",
984
- revision: "$[1].revision",
985
- fields: "$[1].fields"
986
- },
987
- singleArgumentUnchanged: false
988
- },
989
- ["automationId", "options"]
990
- );
991
- sideEffects?.onError?.(err);
992
- throw transformedError;
993
- }
994
- }
995
995
  async function createAutomation2(automation) {
996
996
  const { httpClient, sideEffects } = arguments[1];
997
997
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1534,6 +1534,29 @@ async function validateAutomationById2(automationId, options) {
1534
1534
  throw transformedError;
1535
1535
  }
1536
1536
  }
1537
+ async function getActionsQuotaInfo2() {
1538
+ const { httpClient, sideEffects } = arguments[0];
1539
+ const payload = renameKeysFromSDKRequestToRESTRequest({});
1540
+ const reqOpts = getActionsQuotaInfo(payload);
1541
+ sideEffects?.onSiteCall?.();
1542
+ try {
1543
+ const result = await httpClient.request(reqOpts);
1544
+ sideEffects?.onSuccess?.(result);
1545
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1546
+ } catch (err) {
1547
+ const transformedError = sdkTransformError(
1548
+ err,
1549
+ {
1550
+ spreadPathsToArguments: {},
1551
+ explicitPathsToArguments: {},
1552
+ singleArgumentUnchanged: false
1553
+ },
1554
+ []
1555
+ );
1556
+ sideEffects?.onError?.(err);
1557
+ throw transformedError;
1558
+ }
1559
+ }
1537
1560
  async function generateActionInputMappingFromTemplate2(appId, options) {
1538
1561
  const { httpClient, sideEffects } = arguments[2];
1539
1562
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1567,16 +1590,39 @@ async function generateActionInputMappingFromTemplate2(appId, options) {
1567
1590
  throw transformedError;
1568
1591
  }
1569
1592
  }
1570
-
1571
- // src/automations-v2-automation-automations-v-2.public.ts
1572
- function getAutomationRevision3(httpClient) {
1573
- return (automationId, options) => getAutomationRevision2(
1593
+ async function getAutomationRevision2(automationId, options) {
1594
+ const { httpClient, sideEffects } = arguments[2];
1595
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1574
1596
  automationId,
1575
- options,
1576
- // @ts-ignore
1577
- { httpClient }
1578
- );
1597
+ revision: options?.revision,
1598
+ fields: options?.fields
1599
+ });
1600
+ const reqOpts = getAutomationRevision(payload);
1601
+ sideEffects?.onSiteCall?.();
1602
+ try {
1603
+ const result = await httpClient.request(reqOpts);
1604
+ sideEffects?.onSuccess?.(result);
1605
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1606
+ } catch (err) {
1607
+ const transformedError = sdkTransformError(
1608
+ err,
1609
+ {
1610
+ spreadPathsToArguments: {},
1611
+ explicitPathsToArguments: {
1612
+ automationId: "$[0]",
1613
+ revision: "$[1].revision",
1614
+ fields: "$[1].fields"
1615
+ },
1616
+ singleArgumentUnchanged: false
1617
+ },
1618
+ ["automationId", "options"]
1619
+ );
1620
+ sideEffects?.onError?.(err);
1621
+ throw transformedError;
1622
+ }
1579
1623
  }
1624
+
1625
+ // src/automations-v2-automation-automations-v-2.public.ts
1580
1626
  function createAutomation3(httpClient) {
1581
1627
  return (automation) => createAutomation2(
1582
1628
  automation,
@@ -1724,6 +1770,12 @@ function validateAutomationById3(httpClient) {
1724
1770
  { httpClient }
1725
1771
  );
1726
1772
  }
1773
+ function getActionsQuotaInfo3(httpClient) {
1774
+ return () => getActionsQuotaInfo2(
1775
+ // @ts-ignore
1776
+ { httpClient }
1777
+ );
1778
+ }
1727
1779
  function generateActionInputMappingFromTemplate3(httpClient) {
1728
1780
  return (appId, options) => generateActionInputMappingFromTemplate2(
1729
1781
  appId,
@@ -1732,6 +1784,14 @@ function generateActionInputMappingFromTemplate3(httpClient) {
1732
1784
  { httpClient }
1733
1785
  );
1734
1786
  }
1787
+ function getAutomationRevision3(httpClient) {
1788
+ return (automationId, options) => getAutomationRevision2(
1789
+ automationId,
1790
+ options,
1791
+ // @ts-ignore
1792
+ { httpClient }
1793
+ );
1794
+ }
1735
1795
  var onAutomationCreated = EventDefinition(
1736
1796
  "wix.automations.v2.automation_created",
1737
1797
  true,
@@ -1806,7 +1866,6 @@ function customQueryAutomations(httpClient) {
1806
1866
  }
1807
1867
  return overloadedQuery;
1808
1868
  }
1809
- var getAutomationRevision4 = /* @__PURE__ */ createRESTModule(getAutomationRevision3);
1810
1869
  var createAutomation4 = /* @__PURE__ */ createRESTModule(createAutomation3);
1811
1870
  var getAutomation4 = /* @__PURE__ */ createRESTModule(getAutomation3);
1812
1871
  var updateAutomation4 = /* @__PURE__ */ createRESTModule(updateAutomation3);
@@ -1825,9 +1884,11 @@ var deleteDraftAutomation4 = /* @__PURE__ */ createRESTModule(deleteDraftAutomat
1825
1884
  var publishDraftAutomation4 = /* @__PURE__ */ createRESTModule(publishDraftAutomation3);
1826
1885
  var validateAutomation4 = /* @__PURE__ */ createRESTModule(validateAutomation3);
1827
1886
  var validateAutomationById4 = /* @__PURE__ */ createRESTModule(validateAutomationById3);
1887
+ var getActionsQuotaInfo4 = /* @__PURE__ */ createRESTModule(getActionsQuotaInfo3);
1828
1888
  var generateActionInputMappingFromTemplate4 = /* @__PURE__ */ createRESTModule(
1829
1889
  generateActionInputMappingFromTemplate3
1830
1890
  );
1891
+ var getAutomationRevision4 = /* @__PURE__ */ createRESTModule(getAutomationRevision3);
1831
1892
  var queryAutomations4 = /* @__PURE__ */ createRESTModule(customQueryAutomations);
1832
1893
  var onAutomationCreated2 = createEventModule(
1833
1894
  onAutomationCreated
@@ -1871,6 +1932,7 @@ export {
1871
1932
  deleteDraftAutomation4 as deleteDraftAutomation,
1872
1933
  generateActionInputMappingFromTemplate4 as generateActionInputMappingFromTemplate,
1873
1934
  generatePreinstalledAutomation4 as generatePreinstalledAutomation,
1935
+ getActionsQuotaInfo4 as getActionsQuotaInfo,
1874
1936
  getAggregatedUsageInfo4 as getAggregatedUsageInfo,
1875
1937
  getAutomation4 as getAutomation,
1876
1938
  getAutomationRevision4 as getAutomationRevision,