@wix/auto_sdk_automations_activations 1.0.131 → 1.0.133
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.
- package/build/cjs/index.d.ts +38 -3
- package/build/cjs/index.js +152 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +110 -5
- package/build/cjs/index.typings.js +134 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +8 -6
- package/build/cjs/meta.js +102 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +48 -1
- package/build/cjs/schemas.js +97 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +38 -3
- package/build/es/index.mjs +149 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +110 -5
- package/build/es/index.typings.mjs +131 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +8 -6
- package/build/es/meta.mjs +99 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +48 -1
- package/build/es/schemas.mjs +92 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +38 -3
- package/build/internal/cjs/index.js +152 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +110 -5
- package/build/internal/cjs/index.typings.js +134 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +8 -6
- package/build/internal/cjs/meta.js +102 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +48 -1
- package/build/internal/cjs/schemas.js +97 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +38 -3
- package/build/internal/es/index.mjs +149 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +110 -5
- package/build/internal/es/index.typings.mjs +131 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +8 -6
- package/build/internal/es/meta.mjs +99 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +48 -1
- package/build/internal/es/schemas.mjs +92 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -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,
|
|
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 };
|
package/build/cjs/index.js
CHANGED
|
@@ -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
|
|
|
@@ -112,6 +114,22 @@ function resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl(opts) {
|
|
|
112
114
|
{
|
|
113
115
|
srcPath: "/automations/v1/events/test-automation",
|
|
114
116
|
destPath: "/v1/events/test-automation"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
srcPath: "/automations/esbConfigResolver/v1/events/bulk-cancel",
|
|
120
|
+
destPath: "/v1/events/bulk-cancel"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
srcPath: "/automations/esbConfigResolver/v1/events/bulk-report",
|
|
124
|
+
destPath: "/v1/events/bulk-report"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
srcPath: "/automations/esbConfigResolver/v1/events/cancel",
|
|
128
|
+
destPath: "/v1/events/cancel"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
srcPath: "/automations/esbConfigResolver/v1/events/report",
|
|
132
|
+
destPath: "/v1/events/report"
|
|
115
133
|
}
|
|
116
134
|
],
|
|
117
135
|
"platform.rise.ai": [
|
|
@@ -260,6 +278,48 @@ function cancelEvent(payload) {
|
|
|
260
278
|
}
|
|
261
279
|
return __cancelEvent;
|
|
262
280
|
}
|
|
281
|
+
function esbConfigResolverRunAutomation(payload) {
|
|
282
|
+
function __esbConfigResolverRunAutomation({ host }) {
|
|
283
|
+
const metadata = {
|
|
284
|
+
entityFqdn: "wix.automations.v2.activation",
|
|
285
|
+
method: "POST",
|
|
286
|
+
methodFqn: "wix.automations.esb.resolver.v1.EsbConfigResolver.RunAutomation",
|
|
287
|
+
packageName: PACKAGE_NAME,
|
|
288
|
+
migrationOptions: {
|
|
289
|
+
optInTransformResponse: true
|
|
290
|
+
},
|
|
291
|
+
url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
|
|
292
|
+
protoPath: "/v1/events/run-automation",
|
|
293
|
+
data: payload,
|
|
294
|
+
host
|
|
295
|
+
}),
|
|
296
|
+
data: payload
|
|
297
|
+
};
|
|
298
|
+
return metadata;
|
|
299
|
+
}
|
|
300
|
+
return __esbConfigResolverRunAutomation;
|
|
301
|
+
}
|
|
302
|
+
function testAutomation(payload) {
|
|
303
|
+
function __testAutomation({ host }) {
|
|
304
|
+
const metadata = {
|
|
305
|
+
entityFqdn: "wix.automations.v2.activation",
|
|
306
|
+
method: "POST",
|
|
307
|
+
methodFqn: "wix.automations.esb.resolver.v1.EsbConfigResolver.TestAutomation",
|
|
308
|
+
packageName: PACKAGE_NAME,
|
|
309
|
+
migrationOptions: {
|
|
310
|
+
optInTransformResponse: true
|
|
311
|
+
},
|
|
312
|
+
url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
|
|
313
|
+
protoPath: "/v1/events/test-automation",
|
|
314
|
+
data: payload,
|
|
315
|
+
host
|
|
316
|
+
}),
|
|
317
|
+
data: payload
|
|
318
|
+
};
|
|
319
|
+
return metadata;
|
|
320
|
+
}
|
|
321
|
+
return __testAutomation;
|
|
322
|
+
}
|
|
263
323
|
function rerunActivation(payload) {
|
|
264
324
|
function __rerunActivation({ host }) {
|
|
265
325
|
const metadata = {
|
|
@@ -572,6 +632,76 @@ async function cancelEvent2(triggerKey, externalEntityId) {
|
|
|
572
632
|
throw transformedError;
|
|
573
633
|
}
|
|
574
634
|
}
|
|
635
|
+
async function esbConfigResolverRunAutomation2(identifierType, options) {
|
|
636
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
637
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
638
|
+
identifierType,
|
|
639
|
+
preinstalledIdentifier: options?.preinstalledIdentifier,
|
|
640
|
+
automationIdentifier: options?.automationIdentifier,
|
|
641
|
+
payload: options?.payload,
|
|
642
|
+
migrationFlow: options?.migrationFlow
|
|
643
|
+
});
|
|
644
|
+
const reqOpts = esbConfigResolverRunAutomation(
|
|
645
|
+
payload
|
|
646
|
+
);
|
|
647
|
+
sideEffects?.onSiteCall?.();
|
|
648
|
+
try {
|
|
649
|
+
const result = await httpClient.request(reqOpts);
|
|
650
|
+
sideEffects?.onSuccess?.(result);
|
|
651
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
652
|
+
} catch (err) {
|
|
653
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
654
|
+
err,
|
|
655
|
+
{
|
|
656
|
+
spreadPathsToArguments: {},
|
|
657
|
+
explicitPathsToArguments: {
|
|
658
|
+
identifierType: "$[0]",
|
|
659
|
+
preinstalledIdentifier: "$[1].preinstalledIdentifier",
|
|
660
|
+
automationIdentifier: "$[1].automationIdentifier",
|
|
661
|
+
payload: "$[1].payload",
|
|
662
|
+
migrationFlow: "$[1].migrationFlow"
|
|
663
|
+
},
|
|
664
|
+
singleArgumentUnchanged: false
|
|
665
|
+
},
|
|
666
|
+
["identifierType", "options"]
|
|
667
|
+
);
|
|
668
|
+
sideEffects?.onError?.(err);
|
|
669
|
+
throw transformedError;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
async function testAutomation2(identifierType, options) {
|
|
673
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
674
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
675
|
+
identifierType,
|
|
676
|
+
preinstalledIdentifier: options?.preinstalledIdentifier,
|
|
677
|
+
automationIdentifier: options?.automationIdentifier,
|
|
678
|
+
payload: options?.payload
|
|
679
|
+
});
|
|
680
|
+
const reqOpts = testAutomation(payload);
|
|
681
|
+
sideEffects?.onSiteCall?.();
|
|
682
|
+
try {
|
|
683
|
+
const result = await httpClient.request(reqOpts);
|
|
684
|
+
sideEffects?.onSuccess?.(result);
|
|
685
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
686
|
+
} catch (err) {
|
|
687
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
688
|
+
err,
|
|
689
|
+
{
|
|
690
|
+
spreadPathsToArguments: {},
|
|
691
|
+
explicitPathsToArguments: {
|
|
692
|
+
identifierType: "$[0]",
|
|
693
|
+
preinstalledIdentifier: "$[1].preinstalledIdentifier",
|
|
694
|
+
automationIdentifier: "$[1].automationIdentifier",
|
|
695
|
+
payload: "$[1].payload"
|
|
696
|
+
},
|
|
697
|
+
singleArgumentUnchanged: false
|
|
698
|
+
},
|
|
699
|
+
["identifierType", "options"]
|
|
700
|
+
);
|
|
701
|
+
sideEffects?.onError?.(err);
|
|
702
|
+
throw transformedError;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
575
705
|
async function rerunActivation2(activationId, options) {
|
|
576
706
|
const { httpClient, sideEffects } = arguments[2];
|
|
577
707
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -669,6 +799,22 @@ function cancelEvent3(httpClient) {
|
|
|
669
799
|
{ httpClient }
|
|
670
800
|
);
|
|
671
801
|
}
|
|
802
|
+
function esbConfigResolverRunAutomation3(httpClient) {
|
|
803
|
+
return (identifierType, options) => esbConfigResolverRunAutomation2(
|
|
804
|
+
identifierType,
|
|
805
|
+
options,
|
|
806
|
+
// @ts-ignore
|
|
807
|
+
{ httpClient }
|
|
808
|
+
);
|
|
809
|
+
}
|
|
810
|
+
function testAutomation3(httpClient) {
|
|
811
|
+
return (identifierType, options) => testAutomation2(
|
|
812
|
+
identifierType,
|
|
813
|
+
options,
|
|
814
|
+
// @ts-ignore
|
|
815
|
+
{ httpClient }
|
|
816
|
+
);
|
|
817
|
+
}
|
|
672
818
|
function rerunActivation3(httpClient) {
|
|
673
819
|
return (activationId, options) => rerunActivation2(
|
|
674
820
|
activationId,
|
|
@@ -693,6 +839,8 @@ var reportEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(re
|
|
|
693
839
|
var bulkReportEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkReportEvent3);
|
|
694
840
|
var bulkCancelEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkCancelEvent3);
|
|
695
841
|
var cancelEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(cancelEvent3);
|
|
842
|
+
var esbConfigResolverRunAutomation4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(esbConfigResolverRunAutomation3);
|
|
843
|
+
var testAutomation4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(testAutomation3);
|
|
696
844
|
var rerunActivation4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(rerunActivation3);
|
|
697
845
|
var reportActionInvocationCompleted4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(reportActionInvocationCompleted3);
|
|
698
846
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -722,8 +870,10 @@ var reportActionInvocationCompleted4 = /* @__PURE__ */ (0, import_rest_modules2.
|
|
|
722
870
|
bulkCancelEvent,
|
|
723
871
|
bulkReportEvent,
|
|
724
872
|
cancelEvent,
|
|
873
|
+
esbConfigResolverRunAutomation,
|
|
725
874
|
reportActionInvocationCompleted,
|
|
726
875
|
reportEvent,
|
|
727
|
-
rerunActivation
|
|
876
|
+
rerunActivation,
|
|
877
|
+
testAutomation
|
|
728
878
|
});
|
|
729
879
|
//# sourceMappingURL=index.js.map
|