@wix/auto_sdk_automations_activations 1.0.130 → 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.
- package/build/cjs/index.d.ts +38 -3
- package/build/cjs/index.js +148 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +110 -5
- package/build/cjs/index.typings.js +130 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +8 -6
- package/build/cjs/meta.js +98 -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 +145 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +110 -5
- package/build/es/index.typings.mjs +127 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +8 -6
- package/build/es/meta.mjs +95 -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 +148 -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 +130 -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 +98 -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 +145 -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 +127 -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 +95 -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
|
|
|
@@ -108,6 +110,10 @@ function resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl(opts) {
|
|
|
108
110
|
{
|
|
109
111
|
srcPath: "/automations/esbConfigResolver/v1/events/rerun-activation",
|
|
110
112
|
destPath: "/v1/events/rerun-activation"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
srcPath: "/automations/v1/events/test-automation",
|
|
116
|
+
destPath: "/v1/events/test-automation"
|
|
111
117
|
}
|
|
112
118
|
],
|
|
113
119
|
"platform.rise.ai": [
|
|
@@ -136,6 +142,10 @@ function resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl(opts) {
|
|
|
136
142
|
{
|
|
137
143
|
srcPath: "/automations/esbConfigResolver/v1/events/rerun-activation",
|
|
138
144
|
destPath: "/v1/events/rerun-activation"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
srcPath: "/automations/v1/events/test-automation",
|
|
148
|
+
destPath: "/v1/events/test-automation"
|
|
139
149
|
}
|
|
140
150
|
],
|
|
141
151
|
_: [
|
|
@@ -158,6 +168,10 @@ function resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl(opts) {
|
|
|
158
168
|
{
|
|
159
169
|
srcPath: "/automations/esbConfigResolver/v1/events/rerun-activation",
|
|
160
170
|
destPath: "/v1/events/rerun-activation"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
srcPath: "/automations/v1/events/test-automation",
|
|
174
|
+
destPath: "/v1/events/test-automation"
|
|
161
175
|
}
|
|
162
176
|
]
|
|
163
177
|
};
|
|
@@ -248,6 +262,48 @@ function cancelEvent(payload) {
|
|
|
248
262
|
}
|
|
249
263
|
return __cancelEvent;
|
|
250
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
|
+
}
|
|
251
307
|
function rerunActivation(payload) {
|
|
252
308
|
function __rerunActivation({ host }) {
|
|
253
309
|
const metadata = {
|
|
@@ -560,6 +616,76 @@ async function cancelEvent2(triggerKey, externalEntityId) {
|
|
|
560
616
|
throw transformedError;
|
|
561
617
|
}
|
|
562
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
|
+
}
|
|
563
689
|
async function rerunActivation2(activationId, options) {
|
|
564
690
|
const { httpClient, sideEffects } = arguments[2];
|
|
565
691
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -657,6 +783,22 @@ function cancelEvent3(httpClient) {
|
|
|
657
783
|
{ httpClient }
|
|
658
784
|
);
|
|
659
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
|
+
}
|
|
660
802
|
function rerunActivation3(httpClient) {
|
|
661
803
|
return (activationId, options) => rerunActivation2(
|
|
662
804
|
activationId,
|
|
@@ -681,6 +823,8 @@ var reportEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(re
|
|
|
681
823
|
var bulkReportEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkReportEvent3);
|
|
682
824
|
var bulkCancelEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkCancelEvent3);
|
|
683
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);
|
|
684
828
|
var rerunActivation4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(rerunActivation3);
|
|
685
829
|
var reportActionInvocationCompleted4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(reportActionInvocationCompleted3);
|
|
686
830
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -710,8 +854,10 @@ var reportActionInvocationCompleted4 = /* @__PURE__ */ (0, import_rest_modules2.
|
|
|
710
854
|
bulkCancelEvent,
|
|
711
855
|
bulkReportEvent,
|
|
712
856
|
cancelEvent,
|
|
857
|
+
esbConfigResolverRunAutomation,
|
|
713
858
|
reportActionInvocationCompleted,
|
|
714
859
|
reportEvent,
|
|
715
|
-
rerunActivation
|
|
860
|
+
rerunActivation,
|
|
861
|
+
testAutomation
|
|
716
862
|
});
|
|
717
863
|
//# sourceMappingURL=index.js.map
|