@wix/auto_sdk_automations_automations-v-2 1.0.83 → 1.0.85

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 +75 -74
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +82 -65
  5. package/build/cjs/index.typings.js +66 -65
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +66 -49
  8. package/build/cjs/meta.js +53 -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 +75 -74
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +82 -65
  14. package/build/es/index.typings.mjs +66 -65
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +66 -49
  17. package/build/es/meta.mjs +53 -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 +75 -74
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +82 -65
  23. package/build/internal/cjs/index.typings.js +66 -65
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +66 -49
  26. package/build/internal/cjs/meta.js +53 -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 +75 -74
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +82 -65
  32. package/build/internal/es/index.typings.mjs +66 -65
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +66 -49
  35. package/build/internal/es/meta.mjs +53 -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.mjs';
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
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';
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.
@@ -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 resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
22
+ function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
23
23
  const domainToMappings = {
24
24
  "manage._base_domain_": [
25
25
  {
@@ -58,7 +58,7 @@ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
58
58
  };
59
59
  return resolveUrl(Object.assign(opts, { domainToMappings }));
60
60
  }
61
- function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
61
+ function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
62
62
  const domainToMappings = {
63
63
  "manage._base_domain_": [
64
64
  {
@@ -98,6 +98,38 @@ function resolveWixAutomationsV2AutomationsServiceUrl(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
+ }
101
133
  function createAutomation(payload) {
102
134
  function __createAutomation({ host }) {
103
135
  const serializedData = transformPaths(payload, [
@@ -735,38 +767,6 @@ function generateActionInputMappingFromTemplate(payload) {
735
767
  }
736
768
  return __generateActionInputMappingFromTemplate;
737
769
  }
738
- function getAutomationRevision(payload) {
739
- function __getAutomationRevision({ host }) {
740
- const metadata = {
741
- entityFqdn: "wix.automations.v2.automation",
742
- method: "GET",
743
- methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
744
- packageName: PACKAGE_NAME,
745
- migrationOptions: {
746
- optInTransformResponse: true
747
- },
748
- url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
749
- protoPath: "/v1/automation-revisions/{automationId}",
750
- data: payload,
751
- host
752
- }),
753
- params: toURLSearchParams(payload),
754
- transformResponse: (payload2) => transformPaths(payload2, [
755
- {
756
- transformFn: transformRESTTimestampToSDKTimestamp,
757
- paths: [
758
- { path: "automation.createdDate" },
759
- { path: "automation.updatedDate" },
760
- { path: "automation.draftUpdatedDate" },
761
- { path: "automation.autoArchivePolicy.archiveDate" }
762
- ]
763
- }
764
- ])
765
- };
766
- return metadata;
767
- }
768
- return __getAutomationRevision;
769
- }
770
770
 
771
771
  // src/automations-v2-automation-automations-v-2.universal.ts
772
772
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
@@ -800,6 +800,7 @@ var Type = /* @__PURE__ */ ((Type2) => {
800
800
  Type2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
801
801
  Type2["APP_DEFINED"] = "APP_DEFINED";
802
802
  Type2["CONDITION"] = "CONDITION";
803
+ Type2["CODE_CONDITION"] = "CODE_CONDITION";
803
804
  Type2["DELAY"] = "DELAY";
804
805
  Type2["RATE_LIMIT"] = "RATE_LIMIT";
805
806
  return Type2;
@@ -960,6 +961,37 @@ var AutomationErrorType = /* @__PURE__ */ ((AutomationErrorType2) => {
960
961
  AutomationErrorType2["UNKNOWN_AUTOMATION_ERROR_TYPE"] = "UNKNOWN_AUTOMATION_ERROR_TYPE";
961
962
  return AutomationErrorType2;
962
963
  })(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
+ }
963
995
  async function createAutomation2(automation) {
964
996
  const { httpClient, sideEffects } = arguments[1];
965
997
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1535,39 +1567,16 @@ async function generateActionInputMappingFromTemplate2(appId, options) {
1535
1567
  throw transformedError;
1536
1568
  }
1537
1569
  }
1538
- async function getAutomationRevision2(automationId, options) {
1539
- const { httpClient, sideEffects } = arguments[2];
1540
- const payload = renameKeysFromSDKRequestToRESTRequest({
1541
- automationId,
1542
- revision: options?.revision,
1543
- fields: options?.fields
1544
- });
1545
- const reqOpts = getAutomationRevision(payload);
1546
- sideEffects?.onSiteCall?.();
1547
- try {
1548
- const result = await httpClient.request(reqOpts);
1549
- sideEffects?.onSuccess?.(result);
1550
- return renameKeysFromRESTResponseToSDKResponse(result.data);
1551
- } catch (err) {
1552
- const transformedError = sdkTransformError(
1553
- err,
1554
- {
1555
- spreadPathsToArguments: {},
1556
- explicitPathsToArguments: {
1557
- automationId: "$[0]",
1558
- revision: "$[1].revision",
1559
- fields: "$[1].fields"
1560
- },
1561
- singleArgumentUnchanged: false
1562
- },
1563
- ["automationId", "options"]
1564
- );
1565
- sideEffects?.onError?.(err);
1566
- throw transformedError;
1567
- }
1568
- }
1569
1570
 
1570
1571
  // src/automations-v2-automation-automations-v-2.public.ts
1572
+ function getAutomationRevision3(httpClient) {
1573
+ return (automationId, options) => getAutomationRevision2(
1574
+ automationId,
1575
+ options,
1576
+ // @ts-ignore
1577
+ { httpClient }
1578
+ );
1579
+ }
1571
1580
  function createAutomation3(httpClient) {
1572
1581
  return (automation) => createAutomation2(
1573
1582
  automation,
@@ -1723,14 +1732,6 @@ function generateActionInputMappingFromTemplate3(httpClient) {
1723
1732
  { httpClient }
1724
1733
  );
1725
1734
  }
1726
- function getAutomationRevision3(httpClient) {
1727
- return (automationId, options) => getAutomationRevision2(
1728
- automationId,
1729
- options,
1730
- // @ts-ignore
1731
- { httpClient }
1732
- );
1733
- }
1734
1735
  var onAutomationCreated = EventDefinition(
1735
1736
  "wix.automations.v2.automation_created",
1736
1737
  true,
@@ -1805,6 +1806,7 @@ function customQueryAutomations(httpClient) {
1805
1806
  }
1806
1807
  return overloadedQuery;
1807
1808
  }
1809
+ var getAutomationRevision4 = /* @__PURE__ */ createRESTModule(getAutomationRevision3);
1808
1810
  var createAutomation4 = /* @__PURE__ */ createRESTModule(createAutomation3);
1809
1811
  var getAutomation4 = /* @__PURE__ */ createRESTModule(getAutomation3);
1810
1812
  var updateAutomation4 = /* @__PURE__ */ createRESTModule(updateAutomation3);
@@ -1826,7 +1828,6 @@ var validateAutomationById4 = /* @__PURE__ */ createRESTModule(validateAutomatio
1826
1828
  var generateActionInputMappingFromTemplate4 = /* @__PURE__ */ createRESTModule(
1827
1829
  generateActionInputMappingFromTemplate3
1828
1830
  );
1829
- var getAutomationRevision4 = /* @__PURE__ */ createRESTModule(getAutomationRevision3);
1830
1831
  var queryAutomations4 = /* @__PURE__ */ createRESTModule(customQueryAutomations);
1831
1832
  var onAutomationCreated2 = createEventModule(
1832
1833
  onAutomationCreated