@wix/auto_sdk_automations_activations 1.0.131 → 1.0.132

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 (49) hide show
  1. package/build/cjs/index.d.ts +38 -3
  2. package/build/cjs/index.js +136 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +110 -5
  5. package/build/cjs/index.typings.js +118 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +8 -6
  8. package/build/cjs/meta.js +86 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +48 -1
  11. package/build/cjs/schemas.js +97 -2
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +38 -3
  14. package/build/es/index.mjs +133 -1
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +110 -5
  17. package/build/es/index.typings.mjs +115 -1
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +8 -6
  20. package/build/es/meta.mjs +83 -1
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +48 -1
  23. package/build/es/schemas.mjs +92 -1
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +38 -3
  26. package/build/internal/cjs/index.js +136 -2
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +110 -5
  29. package/build/internal/cjs/index.typings.js +118 -2
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +8 -6
  32. package/build/internal/cjs/meta.js +86 -2
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +48 -1
  35. package/build/internal/cjs/schemas.js +97 -2
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +38 -3
  38. package/build/internal/es/index.mjs +133 -1
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +110 -5
  41. package/build/internal/es/index.typings.mjs +115 -1
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +8 -6
  44. package/build/internal/es/meta.mjs +83 -1
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +48 -1
  47. package/build/internal/es/schemas.mjs +92 -1
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { ReportEventOptions, ReportEventResponse, ReportEventApplicationErrors, EventInfo, BulkReportEventResponse, BulkCancelEventResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, ReportActionInvocationCompletedOptions } from './index.typings.js';
3
- export { AIMetadata, AccountInfo, Action, ActionActionOneOf, ActionAttributes, ActionCodeSnippet, ActionCompletedRequest, ActionData, ActionEvent, ActionRetryRequest, ActionSettings, ActionSplitAction, ActionsData, Activation, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, ActivationActionStatusChangedStatusInfoOneOf, ActivationActionStatusChangedStatusWithLiterals, ActivationContext, ActivationContinuedAfterSchedule, ActivationInitiationSource, ActivationInitiationSourceInfo, ActivationInitiationSourceInfoInitiationSourceInfoOneOf, ActivationInitiationSourceWithLiterals, ActivationRequest, ActivationResumeAfterDelay, ActivationScheduleCompleted, ActivationSource, ActivationSourceOfOneOf, ActivationStatusChanged, ActivationStatusChangedFailedStatusInfo, ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, ActivationStatusChangedStatusInfoOneOf, ActivationStatusChangedStatusWithLiterals, AppDefinedAction, AppDefinedActionInfo, ApplicationError, ApplicationOrigin, AsyncAction, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdentifier, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AutomationOriginInfoOneOf, AutomationSettings, BatchActivationRequest, BlockType, BlockTypeWithLiterals, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResult, BulkReportEventRequest, BulkReportEventResult, CancelEventRequest, CancelEventResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, Case, CodeConditionAction, CodeConditionActionInfo, CodeConditionFilter, CodeSnippet, CodeSnippetLanguage, CodeSnippetLanguageWithLiterals, ConditionAction, ConditionActionInfo, ConditionBlock, ConditionExpressionGroup, ConditionFilter, ConsumeReportEventRequest, Delay, DelayAction, DelayActionInfo, DelayHelper, DelayOfOneOf, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, EndedStatusInfoAppDefinedActionInfo, EndedStatusInfoTypeInfoOneOf, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, ExecuteFromActionRequest, ExecuteFromActionResponse, ExpressionEvaluationResult, ExtendedFields, FailedStatusInfo, FailureInfo, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetScheduleRequest, GetScheduleResponse, Idempotency, IdentificationData, IdentificationDataIdOneOf, IdentifierType, IdentifierTypeWithLiterals, Identity, IfFilter, InitiatedStatusInfo, InitiatorInfo, InvokedAsyncStatusInfo, InvokedAsyncStatusInfoAppDefinedActionInfo, InvokedAsyncStatusInfoTypeInfoOneOf, ItemMetadata, Language, LanguageWithLiterals, ManualActivationInfo, MergeAction, MessageEnvelope, Metadata, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, Output, OutputAction, Path, Position, PreinstalledIdentifier, PreinstalledOrigin, RateLimit, RateLimitAction, RateLimitActionInfo, RateLimiting, RefreshPayloadRequest, RefreshPayloadResponse, ReportAccountLevelEventRequest, ReportAccountLevelEventResponse, ReportActionInvocationCompletedOptionsStatusInfoOneOf, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedRequestStatusInfoOneOf, ReportActionInvocationCompletedResponse, ReportDomainEventRequest, ReportDomainEventResponse, ReportEventRequest, RerunActivationInfo, RerunActivationRequest, RestoreInfo, ResumeAfterAsyncActionCompleted, ResumeAfterAsyncActionCompletedStatusInfoOneOf, RetryInfo, RunAutomationRequest, RunAutomationResponse, RunOptions, RunPreinstalledAutomationRequest, RunPreinstalledAutomationResponse, Runtime, RuntimeStatus, RuntimeStatusWithLiterals, Schedule, ScheduleActivationRequested, ScheduleRequest, ScheduleResponse, ScheduleStatus, ScheduleStatusWithLiterals, ScheduledAction, ScheduledStatusInfo, Scheduler, Service, ServiceMapping, SetVariables, SetVariablesAction, SetVariablesActionInfo, SimpleDelay, SkipReason, SkipReasonWithLiterals, SkippedStatusInfo, SpiAction, SplitAction, SplitActionPath, StartedStatusInfo, StartedStatusInfoAppDefinedActionInfo, StartedStatusInfoDelayActionInfo, StartedStatusInfoTypeInfoOneOf, Status, SuccessInfo, SwitchFilter, SystemHelper, SystemHelperHelperOneOf, Target, TargetWithLiterals, TemplateOrigin, TestAutomationRequest, TestAutomationRequestIdentifierOneOf, TestAutomationResponse, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerInfo, TriggerSettings, Type, TypeWithLiterals, Units, UnitsWithLiterals, UpdatePendingSchedulesPayloadRequest, UpdatePendingSchedulesPayloadResponse, UpdateScheduleStatusRequest, UpdateScheduleStatusResponse, V1RunAutomationRequest, V1RunAutomationRequestIdentifierOneOf, V1RunAutomationResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
2
+ import { ReportEventOptions, ReportEventResponse, ReportEventApplicationErrors, EventInfo, BulkReportEventResponse, BulkCancelEventResponse, IdentifierTypeWithLiterals, EsbConfigResolverRunAutomationOptions, V1RunAutomationResponse, TestAutomationOptions, TestAutomationResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, ReportActionInvocationCompletedOptions } from './index.typings.js';
3
+ export { AIMetadata, AccountInfo, Action, ActionActionOneOf, ActionAttributes, ActionCodeSnippet, ActionCompletedRequest, ActionData, ActionEvent, ActionRetryRequest, ActionSettings, ActionSplitAction, ActionsData, Activation, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, ActivationActionStatusChangedStatusInfoOneOf, ActivationActionStatusChangedStatusWithLiterals, ActivationContext, ActivationContinuedAfterSchedule, ActivationInitiationSource, ActivationInitiationSourceInfo, ActivationInitiationSourceInfoInitiationSourceInfoOneOf, ActivationInitiationSourceWithLiterals, ActivationRequest, ActivationResumeAfterDelay, ActivationScheduleCompleted, ActivationSource, ActivationSourceOfOneOf, ActivationStatusChanged, ActivationStatusChangedFailedStatusInfo, ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, ActivationStatusChangedStatusInfoOneOf, ActivationStatusChangedStatusWithLiterals, AppDefinedAction, AppDefinedActionInfo, ApplicationError, ApplicationOrigin, AsyncAction, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdentifier, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AutomationOriginInfoOneOf, AutomationSettings, BatchActivationRequest, BlockType, BlockTypeWithLiterals, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResult, BulkReportEventRequest, BulkReportEventResult, CancelEventRequest, CancelEventResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, Case, CodeConditionAction, CodeConditionActionInfo, CodeConditionFilter, CodeSnippet, CodeSnippetLanguage, CodeSnippetLanguageWithLiterals, ConditionAction, ConditionActionInfo, ConditionBlock, ConditionExpressionGroup, ConditionFilter, ConsumeReportEventRequest, Delay, DelayAction, DelayActionInfo, DelayHelper, DelayOfOneOf, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, EndedStatusInfoAppDefinedActionInfo, EndedStatusInfoTypeInfoOneOf, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, EsbConfigResolverRunAutomationOptionsIdentifierOneOf, ExecuteFromActionRequest, ExecuteFromActionResponse, ExpressionEvaluationResult, ExtendedFields, FailedStatusInfo, FailureInfo, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetScheduleRequest, GetScheduleResponse, Idempotency, IdentificationData, IdentificationDataIdOneOf, IdentifierType, Identity, IfFilter, InitiatedStatusInfo, InitiatorInfo, InvokedAsyncStatusInfo, InvokedAsyncStatusInfoAppDefinedActionInfo, InvokedAsyncStatusInfoTypeInfoOneOf, ItemMetadata, Language, LanguageWithLiterals, ManualActivationInfo, MergeAction, MessageEnvelope, Metadata, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, Output, OutputAction, Path, Position, PreinstalledIdentifier, PreinstalledOrigin, RateLimit, RateLimitAction, RateLimitActionInfo, RateLimiting, RefreshPayloadRequest, RefreshPayloadResponse, ReportAccountLevelEventRequest, ReportAccountLevelEventResponse, ReportActionInvocationCompletedOptionsStatusInfoOneOf, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedRequestStatusInfoOneOf, ReportActionInvocationCompletedResponse, ReportDomainEventRequest, ReportDomainEventResponse, ReportEventRequest, RerunActivationInfo, RerunActivationRequest, RestoreInfo, ResumeAfterAsyncActionCompleted, ResumeAfterAsyncActionCompletedStatusInfoOneOf, RetryInfo, RunAutomationRequest, RunAutomationResponse, RunOptions, RunPreinstalledAutomationRequest, RunPreinstalledAutomationResponse, Runtime, RuntimeStatus, RuntimeStatusWithLiterals, Schedule, ScheduleActivationRequested, ScheduleRequest, ScheduleResponse, ScheduleStatus, ScheduleStatusWithLiterals, ScheduledAction, ScheduledStatusInfo, Scheduler, Service, ServiceMapping, SetVariables, SetVariablesAction, SetVariablesActionInfo, SimpleDelay, SkipReason, SkipReasonWithLiterals, SkippedStatusInfo, SpiAction, SplitAction, SplitActionPath, StartedStatusInfo, StartedStatusInfoAppDefinedActionInfo, StartedStatusInfoDelayActionInfo, StartedStatusInfoTypeInfoOneOf, Status, SuccessInfo, SwitchFilter, SystemHelper, SystemHelperHelperOneOf, Target, TargetWithLiterals, TemplateOrigin, TestAutomationOptionsIdentifierOneOf, TestAutomationRequest, TestAutomationRequestIdentifierOneOf, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerInfo, TriggerSettings, Type, TypeWithLiterals, Units, UnitsWithLiterals, UpdatePendingSchedulesPayloadRequest, UpdatePendingSchedulesPayloadResponse, UpdateScheduleStatusRequest, UpdateScheduleStatusResponse, V1RunAutomationRequest, V1RunAutomationRequestIdentifierOneOf, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function reportEvent$1(httpClient: HttpClient): ReportEventSignature;
6
6
  interface ReportEventSignature {
@@ -71,6 +71,39 @@ interface CancelEventSignature {
71
71
  */
72
72
  (triggerKey: string, externalEntityId: string): Promise<void>;
73
73
  }
74
+ declare function esbConfigResolverRunAutomation$1(httpClient: HttpClient): EsbConfigResolverRunAutomationSignature;
75
+ interface EsbConfigResolverRunAutomationSignature {
76
+ /**
77
+ * Runs an automation manually.
78
+ *
79
+ * This gives a user the ability to trigger the automation manually,
80
+ * without requiring an event to be reported to start the automation.
81
+ * As an example,
82
+ * consider an automation that sends a confirmation for a hotel booking when a user submits a reservation online.
83
+ * However, if the user calls the hotel directly to make the reservation, the automation isn't triggered.
84
+ * The site owner needs a way to send the automated confirmation without the user making an online booking.
85
+ * Run Automation provides this functionality.
86
+ *
87
+ *
88
+ * <blockquote class="important">
89
+ * __Permissions__
90
+ * This endpoint requires the Manage Your App
91
+ * [permission scope](https://devforum.wix.com/en/article/available-permissions).
92
+ * </blockquote>
93
+ * @param - identifier MUST be either AUTOMATION or PREINSTALLED
94
+ */
95
+ (identifierType: IdentifierTypeWithLiterals, options?: NonNullablePaths<EsbConfigResolverRunAutomationOptions, `payload`, 2>): Promise<V1RunAutomationResponse>;
96
+ }
97
+ declare function testAutomation$1(httpClient: HttpClient): TestAutomationSignature;
98
+ interface TestAutomationSignature {
99
+ /**
100
+ * Runs an automation manually in test mode.
101
+ *
102
+ * Similar to RunAutomation but always executed as TEST to allow running draft automations safely.
103
+ * @param - identifier MUST be either AUTOMATION or PREINSTALLED
104
+ */
105
+ (identifierType: IdentifierTypeWithLiterals, options: NonNullablePaths<TestAutomationOptions, `payload`, 2>): Promise<TestAutomationResponse>;
106
+ }
74
107
  declare function rerunActivation$1(httpClient: HttpClient): RerunActivationSignature;
75
108
  interface RerunActivationSignature {
76
109
  /**
@@ -101,7 +134,9 @@ declare const reportEvent: MaybeContext<BuildRESTFunction<typeof reportEvent$1>
101
134
  declare const bulkReportEvent: MaybeContext<BuildRESTFunction<typeof bulkReportEvent$1> & typeof bulkReportEvent$1>;
102
135
  declare const bulkCancelEvent: MaybeContext<BuildRESTFunction<typeof bulkCancelEvent$1> & typeof bulkCancelEvent$1>;
103
136
  declare const cancelEvent: MaybeContext<BuildRESTFunction<typeof cancelEvent$1> & typeof cancelEvent$1>;
137
+ declare const esbConfigResolverRunAutomation: MaybeContext<BuildRESTFunction<typeof esbConfigResolverRunAutomation$1> & typeof esbConfigResolverRunAutomation$1>;
138
+ declare const testAutomation: MaybeContext<BuildRESTFunction<typeof testAutomation$1> & typeof testAutomation$1>;
104
139
  declare const rerunActivation: MaybeContext<BuildRESTFunction<typeof rerunActivation$1> & typeof rerunActivation$1>;
105
140
  declare const reportActionInvocationCompleted: MaybeContext<BuildRESTFunction<typeof reportActionInvocationCompleted$1> & typeof reportActionInvocationCompleted$1>;
106
141
 
107
- export { BulkCancelEventResponse, BulkReportEventResponse, EventInfo, ReportActionInvocationCompletedOptions, ReportEventApplicationErrors, ReportEventOptions, ReportEventResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, bulkCancelEvent, bulkReportEvent, cancelEvent, reportActionInvocationCompleted, reportEvent, rerunActivation };
142
+ export { BulkCancelEventResponse, BulkReportEventResponse, EsbConfigResolverRunAutomationOptions, EventInfo, IdentifierTypeWithLiterals, ReportActionInvocationCompletedOptions, ReportEventApplicationErrors, ReportEventOptions, ReportEventResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, TestAutomationOptions, TestAutomationResponse, V1RunAutomationResponse, bulkCancelEvent, bulkReportEvent, cancelEvent, esbConfigResolverRunAutomation, reportActionInvocationCompleted, reportEvent, rerunActivation, testAutomation };
@@ -45,9 +45,11 @@ __export(index_exports, {
45
45
  bulkCancelEvent: () => bulkCancelEvent4,
46
46
  bulkReportEvent: () => bulkReportEvent4,
47
47
  cancelEvent: () => cancelEvent4,
48
+ esbConfigResolverRunAutomation: () => esbConfigResolverRunAutomation4,
48
49
  reportActionInvocationCompleted: () => reportActionInvocationCompleted4,
49
50
  reportEvent: () => reportEvent4,
50
- rerunActivation: () => rerunActivation4
51
+ rerunActivation: () => rerunActivation4,
52
+ testAutomation: () => testAutomation4
51
53
  });
52
54
  module.exports = __toCommonJS(index_exports);
53
55
 
@@ -260,6 +262,48 @@ function cancelEvent(payload) {
260
262
  }
261
263
  return __cancelEvent;
262
264
  }
265
+ function esbConfigResolverRunAutomation(payload) {
266
+ function __esbConfigResolverRunAutomation({ host }) {
267
+ const metadata = {
268
+ entityFqdn: "wix.automations.v2.activation",
269
+ method: "POST",
270
+ methodFqn: "wix.automations.esb.resolver.v1.EsbConfigResolver.RunAutomation",
271
+ packageName: PACKAGE_NAME,
272
+ migrationOptions: {
273
+ optInTransformResponse: true
274
+ },
275
+ url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
276
+ protoPath: "/v1/events/run-automation",
277
+ data: payload,
278
+ host
279
+ }),
280
+ data: payload
281
+ };
282
+ return metadata;
283
+ }
284
+ return __esbConfigResolverRunAutomation;
285
+ }
286
+ function testAutomation(payload) {
287
+ function __testAutomation({ host }) {
288
+ const metadata = {
289
+ entityFqdn: "wix.automations.v2.activation",
290
+ method: "POST",
291
+ methodFqn: "wix.automations.esb.resolver.v1.EsbConfigResolver.TestAutomation",
292
+ packageName: PACKAGE_NAME,
293
+ migrationOptions: {
294
+ optInTransformResponse: true
295
+ },
296
+ url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
297
+ protoPath: "/v1/events/test-automation",
298
+ data: payload,
299
+ host
300
+ }),
301
+ data: payload
302
+ };
303
+ return metadata;
304
+ }
305
+ return __testAutomation;
306
+ }
263
307
  function rerunActivation(payload) {
264
308
  function __rerunActivation({ host }) {
265
309
  const metadata = {
@@ -572,6 +616,76 @@ async function cancelEvent2(triggerKey, externalEntityId) {
572
616
  throw transformedError;
573
617
  }
574
618
  }
619
+ async function esbConfigResolverRunAutomation2(identifierType, options) {
620
+ const { httpClient, sideEffects } = arguments[2];
621
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
622
+ identifierType,
623
+ preinstalledIdentifier: options?.preinstalledIdentifier,
624
+ automationIdentifier: options?.automationIdentifier,
625
+ payload: options?.payload,
626
+ migrationFlow: options?.migrationFlow
627
+ });
628
+ const reqOpts = esbConfigResolverRunAutomation(
629
+ payload
630
+ );
631
+ sideEffects?.onSiteCall?.();
632
+ try {
633
+ const result = await httpClient.request(reqOpts);
634
+ sideEffects?.onSuccess?.(result);
635
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
636
+ } catch (err) {
637
+ const transformedError = (0, import_transform_error.transformError)(
638
+ err,
639
+ {
640
+ spreadPathsToArguments: {},
641
+ explicitPathsToArguments: {
642
+ identifierType: "$[0]",
643
+ preinstalledIdentifier: "$[1].preinstalledIdentifier",
644
+ automationIdentifier: "$[1].automationIdentifier",
645
+ payload: "$[1].payload",
646
+ migrationFlow: "$[1].migrationFlow"
647
+ },
648
+ singleArgumentUnchanged: false
649
+ },
650
+ ["identifierType", "options"]
651
+ );
652
+ sideEffects?.onError?.(err);
653
+ throw transformedError;
654
+ }
655
+ }
656
+ async function testAutomation2(identifierType, options) {
657
+ const { httpClient, sideEffects } = arguments[2];
658
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
659
+ identifierType,
660
+ preinstalledIdentifier: options?.preinstalledIdentifier,
661
+ automationIdentifier: options?.automationIdentifier,
662
+ payload: options?.payload
663
+ });
664
+ const reqOpts = testAutomation(payload);
665
+ sideEffects?.onSiteCall?.();
666
+ try {
667
+ const result = await httpClient.request(reqOpts);
668
+ sideEffects?.onSuccess?.(result);
669
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
670
+ } catch (err) {
671
+ const transformedError = (0, import_transform_error.transformError)(
672
+ err,
673
+ {
674
+ spreadPathsToArguments: {},
675
+ explicitPathsToArguments: {
676
+ identifierType: "$[0]",
677
+ preinstalledIdentifier: "$[1].preinstalledIdentifier",
678
+ automationIdentifier: "$[1].automationIdentifier",
679
+ payload: "$[1].payload"
680
+ },
681
+ singleArgumentUnchanged: false
682
+ },
683
+ ["identifierType", "options"]
684
+ );
685
+ sideEffects?.onError?.(err);
686
+ throw transformedError;
687
+ }
688
+ }
575
689
  async function rerunActivation2(activationId, options) {
576
690
  const { httpClient, sideEffects } = arguments[2];
577
691
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -669,6 +783,22 @@ function cancelEvent3(httpClient) {
669
783
  { httpClient }
670
784
  );
671
785
  }
786
+ function esbConfigResolverRunAutomation3(httpClient) {
787
+ return (identifierType, options) => esbConfigResolverRunAutomation2(
788
+ identifierType,
789
+ options,
790
+ // @ts-ignore
791
+ { httpClient }
792
+ );
793
+ }
794
+ function testAutomation3(httpClient) {
795
+ return (identifierType, options) => testAutomation2(
796
+ identifierType,
797
+ options,
798
+ // @ts-ignore
799
+ { httpClient }
800
+ );
801
+ }
672
802
  function rerunActivation3(httpClient) {
673
803
  return (activationId, options) => rerunActivation2(
674
804
  activationId,
@@ -693,6 +823,8 @@ var reportEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(re
693
823
  var bulkReportEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkReportEvent3);
694
824
  var bulkCancelEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkCancelEvent3);
695
825
  var cancelEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(cancelEvent3);
826
+ var esbConfigResolverRunAutomation4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(esbConfigResolverRunAutomation3);
827
+ var testAutomation4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(testAutomation3);
696
828
  var rerunActivation4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(rerunActivation3);
697
829
  var reportActionInvocationCompleted4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(reportActionInvocationCompleted3);
698
830
  // Annotate the CommonJS export names for ESM import in node:
@@ -722,8 +854,10 @@ var reportActionInvocationCompleted4 = /* @__PURE__ */ (0, import_rest_modules2.
722
854
  bulkCancelEvent,
723
855
  bulkReportEvent,
724
856
  cancelEvent,
857
+ esbConfigResolverRunAutomation,
725
858
  reportActionInvocationCompleted,
726
859
  reportEvent,
727
- rerunActivation
860
+ rerunActivation,
861
+ testAutomation
728
862
  });
729
863
  //# sourceMappingURL=index.js.map