@wix/auto_sdk_automations_activations 1.0.108 → 1.0.110
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 +1 -1
- package/build/cjs/index.js +63 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +33 -20
- package/build/cjs/index.typings.js +54 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +31 -21
- package/build/cjs/meta.js +43 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +61 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +33 -20
- package/build/es/index.typings.mjs +52 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +31 -21
- package/build/es/meta.mjs +41 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -3
- package/build/internal/cjs/index.js +63 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +44 -20
- package/build/internal/cjs/index.typings.js +54 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +31 -21
- package/build/internal/cjs/meta.js +43 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +14 -3
- package/build/internal/es/index.mjs +61 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +44 -20
- package/build/internal/es/index.typings.mjs +52 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +31 -21
- package/build/internal/es/meta.mjs +41 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { ReportEventOptions, ReportEventResponse, ReportEventApplicationErrors, EventInfo, BulkReportEventResponse, BulkCancelEventResponse, 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, 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, RerunActivationResponse, RestoreInfo, ResumeAfterAsyncActionCompleted, ResumeAfterAsyncActionCompletedStatusInfoOneOf, RetryInfo, RunAutomationRequest, RunAutomationResponse, 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, 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';
|
|
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, 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, RerunActivationOptions, RerunActivationRequest, RerunActivationResponse, RestoreInfo, ResumeAfterAsyncActionCompleted, ResumeAfterAsyncActionCompletedStatusInfoOneOf, RetryInfo, RunAutomationRequest, RunAutomationResponse, RunOptions, 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, 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';
|
|
4
4
|
|
|
5
5
|
declare function reportEvent$1(httpClient: HttpClient): ReportEventSignature;
|
|
6
6
|
interface ReportEventSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -46,7 +46,8 @@ __export(index_exports, {
|
|
|
46
46
|
bulkReportEvent: () => bulkReportEvent4,
|
|
47
47
|
cancelEvent: () => cancelEvent4,
|
|
48
48
|
reportActionInvocationCompleted: () => reportActionInvocationCompleted4,
|
|
49
|
-
reportEvent: () => reportEvent4
|
|
49
|
+
reportEvent: () => reportEvent4,
|
|
50
|
+
rerunActivation: () => rerunActivation4
|
|
50
51
|
});
|
|
51
52
|
module.exports = __toCommonJS(index_exports);
|
|
52
53
|
|
|
@@ -235,6 +236,27 @@ function cancelEvent(payload) {
|
|
|
235
236
|
}
|
|
236
237
|
return __cancelEvent;
|
|
237
238
|
}
|
|
239
|
+
function rerunActivation(payload) {
|
|
240
|
+
function __rerunActivation({ host }) {
|
|
241
|
+
const metadata = {
|
|
242
|
+
entityFqdn: "wix.automations.v2.activation",
|
|
243
|
+
method: "POST",
|
|
244
|
+
methodFqn: "wix.automations.esb.resolver.v1.EsbConfigResolver.RerunActivation",
|
|
245
|
+
packageName: PACKAGE_NAME,
|
|
246
|
+
migrationOptions: {
|
|
247
|
+
optInTransformResponse: true
|
|
248
|
+
},
|
|
249
|
+
url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
|
|
250
|
+
protoPath: "/v1/events/rerun-activation",
|
|
251
|
+
data: payload,
|
|
252
|
+
host
|
|
253
|
+
}),
|
|
254
|
+
data: payload
|
|
255
|
+
};
|
|
256
|
+
return metadata;
|
|
257
|
+
}
|
|
258
|
+
return __rerunActivation;
|
|
259
|
+
}
|
|
238
260
|
function reportActionInvocationCompleted(payload) {
|
|
239
261
|
function __reportActionInvocationCompleted({ host }) {
|
|
240
262
|
const metadata = {
|
|
@@ -540,6 +562,35 @@ async function cancelEvent2(triggerKey, externalEntityId) {
|
|
|
540
562
|
throw transformedError;
|
|
541
563
|
}
|
|
542
564
|
}
|
|
565
|
+
async function rerunActivation2(activationId, options) {
|
|
566
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
567
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
568
|
+
activationId,
|
|
569
|
+
options: options?.options
|
|
570
|
+
});
|
|
571
|
+
const reqOpts = rerunActivation(payload);
|
|
572
|
+
sideEffects?.onSiteCall?.();
|
|
573
|
+
try {
|
|
574
|
+
const result = await httpClient.request(reqOpts);
|
|
575
|
+
sideEffects?.onSuccess?.(result);
|
|
576
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
577
|
+
} catch (err) {
|
|
578
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
579
|
+
err,
|
|
580
|
+
{
|
|
581
|
+
spreadPathsToArguments: {},
|
|
582
|
+
explicitPathsToArguments: {
|
|
583
|
+
activationId: "$[0]",
|
|
584
|
+
options: "$[1].options"
|
|
585
|
+
},
|
|
586
|
+
singleArgumentUnchanged: false
|
|
587
|
+
},
|
|
588
|
+
["activationId", "options"]
|
|
589
|
+
);
|
|
590
|
+
sideEffects?.onError?.(err);
|
|
591
|
+
throw transformedError;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
543
594
|
async function reportActionInvocationCompleted2(status, invocationToken, options) {
|
|
544
595
|
const { httpClient, sideEffects } = arguments[3];
|
|
545
596
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -608,6 +659,14 @@ function cancelEvent3(httpClient) {
|
|
|
608
659
|
{ httpClient }
|
|
609
660
|
);
|
|
610
661
|
}
|
|
662
|
+
function rerunActivation3(httpClient) {
|
|
663
|
+
return (activationId, options) => rerunActivation2(
|
|
664
|
+
activationId,
|
|
665
|
+
options,
|
|
666
|
+
// @ts-ignore
|
|
667
|
+
{ httpClient }
|
|
668
|
+
);
|
|
669
|
+
}
|
|
611
670
|
function reportActionInvocationCompleted3(httpClient) {
|
|
612
671
|
return (status, invocationToken, options) => reportActionInvocationCompleted2(
|
|
613
672
|
status,
|
|
@@ -624,6 +683,7 @@ var reportEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(re
|
|
|
624
683
|
var bulkReportEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkReportEvent3);
|
|
625
684
|
var bulkCancelEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkCancelEvent3);
|
|
626
685
|
var cancelEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(cancelEvent3);
|
|
686
|
+
var rerunActivation4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(rerunActivation3);
|
|
627
687
|
var reportActionInvocationCompleted4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(reportActionInvocationCompleted3);
|
|
628
688
|
// Annotate the CommonJS export names for ESM import in node:
|
|
629
689
|
0 && (module.exports = {
|
|
@@ -653,6 +713,7 @@ var reportActionInvocationCompleted4 = /* @__PURE__ */ (0, import_rest_modules2.
|
|
|
653
713
|
bulkReportEvent,
|
|
654
714
|
cancelEvent,
|
|
655
715
|
reportActionInvocationCompleted,
|
|
656
|
-
reportEvent
|
|
716
|
+
reportEvent,
|
|
717
|
+
rerunActivation
|
|
657
718
|
});
|
|
658
719
|
//# sourceMappingURL=index.js.map
|