@wix/auto_sdk_automations_automations-v-2 1.0.83 → 1.0.84

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 +10 -10
  2. package/build/cjs/index.js +74 -74
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +41 -41
  5. package/build/cjs/index.typings.js +65 -65
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +25 -25
  8. package/build/cjs/meta.js +52 -52
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +10 -10
  11. package/build/es/index.mjs +74 -74
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +41 -41
  14. package/build/es/index.typings.mjs +65 -65
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +25 -25
  17. package/build/es/meta.mjs +52 -52
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +10 -10
  20. package/build/internal/cjs/index.js +74 -74
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +41 -41
  23. package/build/internal/cjs/index.typings.js +65 -65
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +25 -25
  26. package/build/internal/cjs/meta.js +52 -52
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +10 -10
  29. package/build/internal/es/index.mjs +74 -74
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +41 -41
  32. package/build/internal/es/index.typings.mjs +65 -65
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +25 -25
  35. package/build/internal/es/meta.mjs +52 -52
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,7 +1,15 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
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, GenerateActionInputMappingFromTemplateOptions, GenerateActionInputMappingFromTemplateResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope, AutomationQuery, QueryAutomationsOptions, typedQueryAutomations, AutomationsQueryBuilder } from './index.typings.js';
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
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';
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
+ }
5
13
  declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
6
14
  interface CreateAutomationSignature {
7
15
  /**
@@ -181,14 +189,6 @@ interface GenerateActionInputMappingFromTemplateSignature {
181
189
  */
182
190
  (appId: string, options: NonNullablePaths<GenerateActionInputMappingFromTemplateOptions, `actionInputMappingTemplate` | `actionKey`, 2>): Promise<GenerateActionInputMappingFromTemplateResponse>;
183
191
  }
184
- declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
185
- interface GetAutomationRevisionSignature {
186
- /**
187
- * Gets the specified automation revision.
188
- * @param - Automation ID.
189
- */
190
- (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>>;
191
- }
192
192
  declare const onAutomationCreated$1: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
193
193
  declare const onAutomationDeleted$1: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
194
194
  declare const onAutomationUpdated$1: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
@@ -197,6 +197,7 @@ declare function customQueryAutomations(httpClient: HttpClient): {
197
197
  (query: AutomationQuery, options?: QueryAutomationsOptions): ReturnType<typeof typedQueryAutomations>;
198
198
  (options?: QueryAutomationsOptions): AutomationsQueryBuilder;
199
199
  };
200
+ declare const getAutomationRevision: MaybeContext<BuildRESTFunction<typeof getAutomationRevision$1> & typeof getAutomationRevision$1>;
200
201
  declare const createAutomation: MaybeContext<BuildRESTFunction<typeof createAutomation$1> & typeof createAutomation$1>;
201
202
  declare const getAutomation: MaybeContext<BuildRESTFunction<typeof getAutomation$1> & typeof getAutomation$1>;
202
203
  declare const updateAutomation: MaybeContext<BuildRESTFunction<typeof updateAutomation$1> & typeof updateAutomation$1>;
@@ -216,7 +217,6 @@ declare const publishDraftAutomation: MaybeContext<BuildRESTFunction<typeof publ
216
217
  declare const validateAutomation: MaybeContext<BuildRESTFunction<typeof validateAutomation$1> & typeof validateAutomation$1>;
217
218
  declare const validateAutomationById: MaybeContext<BuildRESTFunction<typeof validateAutomationById$1> & typeof validateAutomationById$1>;
218
219
  declare const generateActionInputMappingFromTemplate: MaybeContext<BuildRESTFunction<typeof generateActionInputMappingFromTemplate$1> & typeof generateActionInputMappingFromTemplate$1>;
219
- declare const getAutomationRevision: MaybeContext<BuildRESTFunction<typeof getAutomationRevision$1> & typeof getAutomationRevision$1>;
220
220
  declare const queryAutomations: MaybeContext<BuildRESTFunction<typeof customQueryAutomations> & typeof customQueryAutomations>;
221
221
  /**
222
222
  * Triggered when a new automation is created.
@@ -88,7 +88,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
88
88
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
89
89
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
90
90
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
91
- function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
91
+ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
92
92
  const domainToMappings = {
93
93
  "manage._base_domain_": [
94
94
  {
@@ -127,7 +127,7 @@ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
127
127
  };
128
128
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
129
129
  }
130
- function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
130
+ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
131
131
  const domainToMappings = {
132
132
  "manage._base_domain_": [
133
133
  {
@@ -167,6 +167,38 @@ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
167
167
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
168
168
  }
169
169
  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
+ }
170
202
  function createAutomation(payload) {
171
203
  function __createAutomation({ host }) {
172
204
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -804,38 +836,6 @@ function generateActionInputMappingFromTemplate(payload) {
804
836
  }
805
837
  return __generateActionInputMappingFromTemplate;
806
838
  }
807
- function getAutomationRevision(payload) {
808
- function __getAutomationRevision({ host }) {
809
- const metadata = {
810
- entityFqdn: "wix.automations.v2.automation",
811
- method: "GET",
812
- methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
813
- packageName: PACKAGE_NAME,
814
- migrationOptions: {
815
- optInTransformResponse: true
816
- },
817
- url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
818
- protoPath: "/v1/automation-revisions/{automationId}",
819
- data: payload,
820
- host
821
- }),
822
- params: (0, import_rest_modules.toURLSearchParams)(payload),
823
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
824
- {
825
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
826
- paths: [
827
- { path: "automation.createdDate" },
828
- { path: "automation.updatedDate" },
829
- { path: "automation.draftUpdatedDate" },
830
- { path: "automation.autoArchivePolicy.archiveDate" }
831
- ]
832
- }
833
- ])
834
- };
835
- return metadata;
836
- }
837
- return __getAutomationRevision;
838
- }
839
839
 
840
840
  // src/automations-v2-automation-automations-v-2.universal.ts
841
841
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
@@ -1029,6 +1029,37 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
1029
1029
  AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
1030
1030
  return AutomationErrorType2;
1031
1031
  })(AutomationErrorType || {});
1032
+ async function getAutomationRevision2(automationId, options) {
1033
+ const { httpClient, sideEffects } = arguments[2];
1034
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1035
+ automationId,
1036
+ revision: options?.revision,
1037
+ fields: options?.fields
1038
+ });
1039
+ const reqOpts = getAutomationRevision(payload);
1040
+ sideEffects?.onSiteCall?.();
1041
+ try {
1042
+ const result = await httpClient.request(reqOpts);
1043
+ sideEffects?.onSuccess?.(result);
1044
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1045
+ } catch (err) {
1046
+ const transformedError = (0, import_transform_error.transformError)(
1047
+ err,
1048
+ {
1049
+ spreadPathsToArguments: {},
1050
+ explicitPathsToArguments: {
1051
+ automationId: "$[0]",
1052
+ revision: "$[1].revision",
1053
+ fields: "$[1].fields"
1054
+ },
1055
+ singleArgumentUnchanged: false
1056
+ },
1057
+ ["automationId", "options"]
1058
+ );
1059
+ sideEffects?.onError?.(err);
1060
+ throw transformedError;
1061
+ }
1062
+ }
1032
1063
  async function createAutomation2(automation) {
1033
1064
  const { httpClient, sideEffects } = arguments[1];
1034
1065
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1604,39 +1635,16 @@ async function generateActionInputMappingFromTemplate2(appId, options) {
1604
1635
  throw transformedError;
1605
1636
  }
1606
1637
  }
1607
- async function getAutomationRevision2(automationId, options) {
1608
- const { httpClient, sideEffects } = arguments[2];
1609
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1610
- automationId,
1611
- revision: options?.revision,
1612
- fields: options?.fields
1613
- });
1614
- const reqOpts = getAutomationRevision(payload);
1615
- sideEffects?.onSiteCall?.();
1616
- try {
1617
- const result = await httpClient.request(reqOpts);
1618
- sideEffects?.onSuccess?.(result);
1619
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1620
- } catch (err) {
1621
- const transformedError = (0, import_transform_error.transformError)(
1622
- err,
1623
- {
1624
- spreadPathsToArguments: {},
1625
- explicitPathsToArguments: {
1626
- automationId: "$[0]",
1627
- revision: "$[1].revision",
1628
- fields: "$[1].fields"
1629
- },
1630
- singleArgumentUnchanged: false
1631
- },
1632
- ["automationId", "options"]
1633
- );
1634
- sideEffects?.onError?.(err);
1635
- throw transformedError;
1636
- }
1637
- }
1638
1638
 
1639
1639
  // src/automations-v2-automation-automations-v-2.public.ts
1640
+ function getAutomationRevision3(httpClient) {
1641
+ return (automationId, options) => getAutomationRevision2(
1642
+ automationId,
1643
+ options,
1644
+ // @ts-ignore
1645
+ { httpClient }
1646
+ );
1647
+ }
1640
1648
  function createAutomation3(httpClient) {
1641
1649
  return (automation) => createAutomation2(
1642
1650
  automation,
@@ -1792,14 +1800,6 @@ function generateActionInputMappingFromTemplate3(httpClient) {
1792
1800
  { httpClient }
1793
1801
  );
1794
1802
  }
1795
- function getAutomationRevision3(httpClient) {
1796
- return (automationId, options) => getAutomationRevision2(
1797
- automationId,
1798
- options,
1799
- // @ts-ignore
1800
- { httpClient }
1801
- );
1802
- }
1803
1803
  var onAutomationCreated = (0, import_sdk_types.EventDefinition)(
1804
1804
  "wix.automations.v2.automation_created",
1805
1805
  true,
@@ -1874,6 +1874,7 @@ function customQueryAutomations(httpClient) {
1874
1874
  }
1875
1875
  return overloadedQuery;
1876
1876
  }
1877
+ var getAutomationRevision4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAutomationRevision3);
1877
1878
  var createAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createAutomation3);
1878
1879
  var getAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAutomation3);
1879
1880
  var updateAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAutomation3);
@@ -1895,7 +1896,6 @@ var validateAutomationById4 = /* @__PURE__ */ (0, import_rest_modules3.createRES
1895
1896
  var generateActionInputMappingFromTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1896
1897
  generateActionInputMappingFromTemplate3
1897
1898
  );
1898
- var getAutomationRevision4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAutomationRevision3);
1899
1899
  var queryAutomations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryAutomations);
1900
1900
  var onAutomationCreated2 = (0, import_event_definition_modules.createEventModule)(
1901
1901
  onAutomationCreated