@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
|
@@ -2061,7 +2061,7 @@ interface V1RunAutomationRequest extends V1RunAutomationRequestIdentifierOneOf {
|
|
|
2061
2061
|
* identifier MUST be either AUTOMATION or PREINSTALLED
|
|
2062
2062
|
* @immutable
|
|
2063
2063
|
*/
|
|
2064
|
-
identifierType
|
|
2064
|
+
identifierType: IdentifierTypeWithLiterals;
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Event payload, formatted as key:value pairs.
|
|
2067
2067
|
* Must comply with the payload schema
|
|
@@ -2076,7 +2076,7 @@ interface V1RunAutomationRequest extends V1RunAutomationRequestIdentifierOneOf {
|
|
|
2076
2076
|
* and nested object properties must be
|
|
2077
2077
|
* strings, numbers, integers, or booleans only.
|
|
2078
2078
|
*/
|
|
2079
|
-
payload
|
|
2079
|
+
payload: Record<string, any> | null;
|
|
2080
2080
|
/**
|
|
2081
2081
|
* When true, indicates this is a migration flow and should bypass
|
|
2082
2082
|
* the check for future dates that have already passed.
|
|
@@ -2135,7 +2135,7 @@ interface TestAutomationRequest extends TestAutomationRequestIdentifierOneOf {
|
|
|
2135
2135
|
* identifier MUST be either AUTOMATION or PREINSTALLED
|
|
2136
2136
|
* @immutable
|
|
2137
2137
|
*/
|
|
2138
|
-
identifierType
|
|
2138
|
+
identifierType: IdentifierTypeWithLiterals;
|
|
2139
2139
|
/**
|
|
2140
2140
|
* Event payload, formatted as key:value pairs.
|
|
2141
2141
|
* Must comply with the payload schema
|
|
@@ -2150,7 +2150,7 @@ interface TestAutomationRequest extends TestAutomationRequestIdentifierOneOf {
|
|
|
2150
2150
|
* and nested object properties must be
|
|
2151
2151
|
* strings, numbers, integers, or booleans only.
|
|
2152
2152
|
*/
|
|
2153
|
-
payload
|
|
2153
|
+
payload: Record<string, any> | null;
|
|
2154
2154
|
}
|
|
2155
2155
|
/** @oneof */
|
|
2156
2156
|
interface TestAutomationRequestIdentifierOneOf {
|
|
@@ -2887,6 +2887,111 @@ declare function bulkCancelEvent(triggerKey: string, externalEntityIds: string[]
|
|
|
2887
2887
|
* @fqn wix.automations.esb.resolver.v1.EsbConfigResolver.CancelEvent
|
|
2888
2888
|
*/
|
|
2889
2889
|
declare function cancelEvent(triggerKey: string, externalEntityId: string): Promise<void>;
|
|
2890
|
+
/**
|
|
2891
|
+
* Runs an automation manually.
|
|
2892
|
+
*
|
|
2893
|
+
* This gives a user the ability to trigger the automation manually,
|
|
2894
|
+
* without requiring an event to be reported to start the automation.
|
|
2895
|
+
* As an example,
|
|
2896
|
+
* consider an automation that sends a confirmation for a hotel booking when a user submits a reservation online.
|
|
2897
|
+
* However, if the user calls the hotel directly to make the reservation, the automation isn't triggered.
|
|
2898
|
+
* The site owner needs a way to send the automated confirmation without the user making an online booking.
|
|
2899
|
+
* Run Automation provides this functionality.
|
|
2900
|
+
*
|
|
2901
|
+
*
|
|
2902
|
+
* <blockquote class="important">
|
|
2903
|
+
* __Permissions__
|
|
2904
|
+
* This endpoint requires the Manage Your App
|
|
2905
|
+
* [permission scope](https://devforum.wix.com/en/article/available-permissions).
|
|
2906
|
+
* </blockquote>
|
|
2907
|
+
* @param identifierType - identifier MUST be either AUTOMATION or PREINSTALLED
|
|
2908
|
+
* @public
|
|
2909
|
+
* @documentationMaturity preview
|
|
2910
|
+
* @requiredField identifierType
|
|
2911
|
+
* @requiredField options.identifier
|
|
2912
|
+
* @requiredField options.payload
|
|
2913
|
+
* @permissionId AUTOMATIONS.REPORT_EVENT
|
|
2914
|
+
* @applicableIdentity APP
|
|
2915
|
+
* @fqn wix.automations.esb.resolver.v1.EsbConfigResolver.RunAutomation
|
|
2916
|
+
*/
|
|
2917
|
+
declare function esbConfigResolverRunAutomation(identifierType: IdentifierTypeWithLiterals, options?: NonNullablePaths<EsbConfigResolverRunAutomationOptions, `payload`, 2>): Promise<V1RunAutomationResponse>;
|
|
2918
|
+
interface EsbConfigResolverRunAutomationOptions extends EsbConfigResolverRunAutomationOptionsIdentifierOneOf {
|
|
2919
|
+
/** a preinstalled automation identifier */
|
|
2920
|
+
preinstalledIdentifier?: PreinstalledIdentifier;
|
|
2921
|
+
/** a automation of any type identifier that will be available in future */
|
|
2922
|
+
automationIdentifier?: AutomationIdentifier;
|
|
2923
|
+
/**
|
|
2924
|
+
* Event payload, formatted as key:value pairs.
|
|
2925
|
+
* Must comply with the payload schema
|
|
2926
|
+
* if you provided one when configuring your trigger.
|
|
2927
|
+
*
|
|
2928
|
+
* Key names can include only alphanumeric characters or underscores
|
|
2929
|
+
* (`A-Z`, `a-z`, `0-9`, `_`).
|
|
2930
|
+
* They cannot start with an underscore.
|
|
2931
|
+
*
|
|
2932
|
+
* Values can be strings, numbers, integers, booleans, or arrays.
|
|
2933
|
+
* If a value is an array, the array items must be objects,
|
|
2934
|
+
* and nested object properties must be
|
|
2935
|
+
* strings, numbers, integers, or booleans only.
|
|
2936
|
+
*/
|
|
2937
|
+
payload: Record<string, any> | null;
|
|
2938
|
+
/**
|
|
2939
|
+
* When true, indicates this is a migration flow and should bypass
|
|
2940
|
+
* the check for future dates that have already passed.
|
|
2941
|
+
*/
|
|
2942
|
+
migrationFlow?: boolean;
|
|
2943
|
+
}
|
|
2944
|
+
/** @oneof */
|
|
2945
|
+
interface EsbConfigResolverRunAutomationOptionsIdentifierOneOf {
|
|
2946
|
+
/** a preinstalled automation identifier */
|
|
2947
|
+
preinstalledIdentifier?: PreinstalledIdentifier;
|
|
2948
|
+
/** a automation of any type identifier that will be available in future */
|
|
2949
|
+
automationIdentifier?: AutomationIdentifier;
|
|
2950
|
+
}
|
|
2951
|
+
/**
|
|
2952
|
+
* Runs an automation manually in test mode.
|
|
2953
|
+
*
|
|
2954
|
+
* Similar to RunAutomation but always executed as TEST to allow running draft automations safely.
|
|
2955
|
+
* @param identifierType - identifier MUST be either AUTOMATION or PREINSTALLED
|
|
2956
|
+
* @public
|
|
2957
|
+
* @documentationMaturity preview
|
|
2958
|
+
* @requiredField identifierType
|
|
2959
|
+
* @requiredField options
|
|
2960
|
+
* @requiredField options.identifier
|
|
2961
|
+
* @requiredField options.payload
|
|
2962
|
+
* @permissionId AUTOMATIONS.REPORT_EVENT
|
|
2963
|
+
* @applicableIdentity APP
|
|
2964
|
+
* @fqn wix.automations.esb.resolver.v1.EsbConfigResolver.TestAutomation
|
|
2965
|
+
*/
|
|
2966
|
+
declare function testAutomation(identifierType: IdentifierTypeWithLiterals, options: NonNullablePaths<TestAutomationOptions, `payload`, 2>): Promise<TestAutomationResponse>;
|
|
2967
|
+
interface TestAutomationOptions extends TestAutomationOptionsIdentifierOneOf {
|
|
2968
|
+
/** a preinstalled automation identifier */
|
|
2969
|
+
preinstalledIdentifier?: PreinstalledIdentifier;
|
|
2970
|
+
/** a automation of any type identifier that will be available in future */
|
|
2971
|
+
automationIdentifier?: AutomationIdentifier;
|
|
2972
|
+
/**
|
|
2973
|
+
* Event payload, formatted as key:value pairs.
|
|
2974
|
+
* Must comply with the payload schema
|
|
2975
|
+
* if you provided one when configuring your trigger.
|
|
2976
|
+
*
|
|
2977
|
+
* Key names can include only alphanumeric characters or underscores
|
|
2978
|
+
* (`A-Z`, `a-z`, `0-9`, `_`).
|
|
2979
|
+
* They cannot start with an underscore.
|
|
2980
|
+
*
|
|
2981
|
+
* Values can be strings, numbers, integers, booleans, or arrays.
|
|
2982
|
+
* If a value is an array, the array items must be objects,
|
|
2983
|
+
* and nested object properties must be
|
|
2984
|
+
* strings, numbers, integers, or booleans only.
|
|
2985
|
+
*/
|
|
2986
|
+
payload: Record<string, any> | null;
|
|
2987
|
+
}
|
|
2988
|
+
/** @oneof */
|
|
2989
|
+
interface TestAutomationOptionsIdentifierOneOf {
|
|
2990
|
+
/** a preinstalled automation identifier */
|
|
2991
|
+
preinstalledIdentifier?: PreinstalledIdentifier;
|
|
2992
|
+
/** a automation of any type identifier that will be available in future */
|
|
2993
|
+
automationIdentifier?: AutomationIdentifier;
|
|
2994
|
+
}
|
|
2890
2995
|
/**
|
|
2891
2996
|
* Rerun an automation using a previous activation's payload.
|
|
2892
2997
|
* @param activationId - The activation ID whose payload will be used for the rerun.
|
|
@@ -2937,4 +3042,4 @@ interface ReportActionInvocationCompletedOptionsStatusInfoOneOf {
|
|
|
2937
3042
|
failureInfo?: FailureInfo;
|
|
2938
3043
|
}
|
|
2939
3044
|
|
|
2940
|
-
export { type AIMetadata, type AccountInfo, type Action, type ActionActionOneOf, type ActionAttributes, type ActionCodeSnippet, type ActionCompletedRequest, type ActionData, type ActionEvent, type ActionRetryRequest, type ActionSettings, type ActionSplitAction, type ActionsData, type Activation, type ActivationActionStatusChanged, type ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, type ActivationActionStatusChangedStatusInfoOneOf, type ActivationActionStatusChangedStatusWithLiterals, type ActivationContext, type ActivationContinuedAfterSchedule, ActivationInitiationSource, type ActivationInitiationSourceInfo, type ActivationInitiationSourceInfoInitiationSourceInfoOneOf, type ActivationInitiationSourceWithLiterals, type ActivationRequest, type ActivationResumeAfterDelay, type ActivationScheduleCompleted, type ActivationSource, type ActivationSourceOfOneOf, type ActivationStatusChanged, type ActivationStatusChangedFailedStatusInfo, type ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, type ActivationStatusChangedStatusInfoOneOf, type ActivationStatusChangedStatusWithLiterals, type AppDefinedAction, type AppDefinedActionInfo, type ApplicationError, type ApplicationOrigin, type AsyncAction, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationAction, type AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, type AutomationConfigurationStatusWithLiterals, type AutomationIdentifier, type AutomationInfo, type AutomationInfoOriginInfoOneOf, type AutomationInfoTriggerInfo, type AutomationOriginInfoOneOf, type AutomationSettings, type BatchActivationRequest, BlockType, type BlockTypeWithLiterals, type BulkActionMetadata, type BulkCancelEventRequest, type BulkCancelEventResponse, type BulkCancelEventResult, type BulkReportEventRequest, type BulkReportEventResponse, type BulkReportEventResult, type CancelEventRequest, type CancelEventResponse, type CancelPendingScheduleRequest, type CancelPendingScheduleRequestByOneOf, type CancelPendingScheduleResponse, CancellationReason, type CancellationReasonWithLiterals, type CancelledStatusInfo, type Case, type CodeConditionAction, type CodeConditionActionInfo, type CodeConditionFilter, type CodeSnippet, CodeSnippetLanguage, type CodeSnippetLanguageWithLiterals, type ConditionAction, type ConditionActionInfo, type ConditionBlock, type ConditionExpressionGroup, type ConditionFilter, type ConsumeReportEventRequest, type Delay, type DelayAction, type DelayActionInfo, type DelayHelper, type DelayOfOneOf, type Dimensions, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type Empty, type EndedStatusInfo, type EndedStatusInfoAppDefinedActionInfo, type EndedStatusInfoTypeInfoOneOf, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ErrorReason, type ErrorReasonWithLiterals, type EventInfo, type ExecuteFromActionRequest, type ExecuteFromActionResponse, type ExpressionEvaluationResult, type ExtendedFields, type FailedStatusInfo, type FailureInfo, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GetScheduleRequest, type GetScheduleResponse, type Idempotency, type IdentificationData, type IdentificationDataIdOneOf, IdentifierType, type IdentifierTypeWithLiterals, type Identity, type IfFilter, type InitiatedStatusInfo, type InitiatorInfo, type InvokedAsyncStatusInfo, type InvokedAsyncStatusInfoAppDefinedActionInfo, type InvokedAsyncStatusInfoTypeInfoOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type ManualActivationInfo, type MergeAction, type MessageEnvelope, type Metadata, type Note, type Notes, type Offset, Operator, type OperatorWithLiterals, Origin, type OriginWithLiterals, type Output, type OutputAction, type Path, type Position, type PreinstalledIdentifier, type PreinstalledOrigin, type RateLimit, type RateLimitAction, type RateLimitActionInfo, type RateLimiting, type RefreshPayloadRequest, type RefreshPayloadResponse, type ReportAccountLevelEventRequest, type ReportAccountLevelEventResponse, type ReportActionInvocationCompletedOptions, type ReportActionInvocationCompletedOptionsStatusInfoOneOf, type ReportActionInvocationCompletedRequest, type ReportActionInvocationCompletedRequestStatusInfoOneOf, type ReportActionInvocationCompletedResponse, type ReportDomainEventRequest, type ReportDomainEventResponse, type ReportEventApplicationErrors, type ReportEventOptions, type ReportEventRequest, type ReportEventResponse, type RerunActivationInfo, type RerunActivationOptions, type RerunActivationRequest, type RerunActivationResponse, type RestoreInfo, type ResumeAfterAsyncActionCompleted, type ResumeAfterAsyncActionCompletedStatusInfoOneOf, type RetryInfo, type RunAutomationRequest, type RunAutomationResponse, type RunOptions, type RunPreinstalledAutomationRequest, type RunPreinstalledAutomationResponse, type Runtime, RuntimeStatus, type RuntimeStatusWithLiterals, type Schedule, type ScheduleActivationRequested, type ScheduleRequest, type ScheduleResponse, ScheduleStatus, type ScheduleStatusWithLiterals, type ScheduledAction, type ScheduledStatusInfo, type Scheduler, type Service, type ServiceMapping, type SetVariables, type SetVariablesAction, type SetVariablesActionInfo, type SimpleDelay, SkipReason, type SkipReasonWithLiterals, type SkippedStatusInfo, type SpiAction, type SplitAction, type SplitActionPath, type StartedStatusInfo, type StartedStatusInfoAppDefinedActionInfo, type StartedStatusInfoDelayActionInfo, type StartedStatusInfoTypeInfoOneOf, Status, type StatusWithLiterals, type SuccessInfo, type SwitchFilter, type SystemHelper, type SystemHelperHelperOneOf, Target, type TargetWithLiterals, type TemplateOrigin, type TestAutomationRequest, type TestAutomationRequestIdentifierOneOf, type TestAutomationResponse, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerInfo, type TriggerSettings, Type, type TypeWithLiterals, Units, type UnitsWithLiterals, type UpdatePendingSchedulesPayloadRequest, type UpdatePendingSchedulesPayloadResponse, type UpdateScheduleStatusRequest, type UpdateScheduleStatusResponse, type V1RunAutomationRequest, type V1RunAutomationRequestIdentifierOneOf, type V1RunAutomationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCancelEvent, bulkReportEvent, cancelEvent, reportActionInvocationCompleted, reportEvent, rerunActivation };
|
|
3045
|
+
export { type AIMetadata, type AccountInfo, type Action, type ActionActionOneOf, type ActionAttributes, type ActionCodeSnippet, type ActionCompletedRequest, type ActionData, type ActionEvent, type ActionRetryRequest, type ActionSettings, type ActionSplitAction, type ActionsData, type Activation, type ActivationActionStatusChanged, type ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, type ActivationActionStatusChangedStatusInfoOneOf, type ActivationActionStatusChangedStatusWithLiterals, type ActivationContext, type ActivationContinuedAfterSchedule, ActivationInitiationSource, type ActivationInitiationSourceInfo, type ActivationInitiationSourceInfoInitiationSourceInfoOneOf, type ActivationInitiationSourceWithLiterals, type ActivationRequest, type ActivationResumeAfterDelay, type ActivationScheduleCompleted, type ActivationSource, type ActivationSourceOfOneOf, type ActivationStatusChanged, type ActivationStatusChangedFailedStatusInfo, type ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, type ActivationStatusChangedStatusInfoOneOf, type ActivationStatusChangedStatusWithLiterals, type AppDefinedAction, type AppDefinedActionInfo, type ApplicationError, type ApplicationOrigin, type AsyncAction, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationAction, type AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, type AutomationConfigurationStatusWithLiterals, type AutomationIdentifier, type AutomationInfo, type AutomationInfoOriginInfoOneOf, type AutomationInfoTriggerInfo, type AutomationOriginInfoOneOf, type AutomationSettings, type BatchActivationRequest, BlockType, type BlockTypeWithLiterals, type BulkActionMetadata, type BulkCancelEventRequest, type BulkCancelEventResponse, type BulkCancelEventResult, type BulkReportEventRequest, type BulkReportEventResponse, type BulkReportEventResult, type CancelEventRequest, type CancelEventResponse, type CancelPendingScheduleRequest, type CancelPendingScheduleRequestByOneOf, type CancelPendingScheduleResponse, CancellationReason, type CancellationReasonWithLiterals, type CancelledStatusInfo, type Case, type CodeConditionAction, type CodeConditionActionInfo, type CodeConditionFilter, type CodeSnippet, CodeSnippetLanguage, type CodeSnippetLanguageWithLiterals, type ConditionAction, type ConditionActionInfo, type ConditionBlock, type ConditionExpressionGroup, type ConditionFilter, type ConsumeReportEventRequest, type Delay, type DelayAction, type DelayActionInfo, type DelayHelper, type DelayOfOneOf, type Dimensions, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type Empty, type EndedStatusInfo, type EndedStatusInfoAppDefinedActionInfo, type EndedStatusInfoTypeInfoOneOf, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ErrorReason, type ErrorReasonWithLiterals, type EsbConfigResolverRunAutomationOptions, type EsbConfigResolverRunAutomationOptionsIdentifierOneOf, type EventInfo, type ExecuteFromActionRequest, type ExecuteFromActionResponse, type ExpressionEvaluationResult, type ExtendedFields, type FailedStatusInfo, type FailureInfo, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GetScheduleRequest, type GetScheduleResponse, type Idempotency, type IdentificationData, type IdentificationDataIdOneOf, IdentifierType, type IdentifierTypeWithLiterals, type Identity, type IfFilter, type InitiatedStatusInfo, type InitiatorInfo, type InvokedAsyncStatusInfo, type InvokedAsyncStatusInfoAppDefinedActionInfo, type InvokedAsyncStatusInfoTypeInfoOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type ManualActivationInfo, type MergeAction, type MessageEnvelope, type Metadata, type Note, type Notes, type Offset, Operator, type OperatorWithLiterals, Origin, type OriginWithLiterals, type Output, type OutputAction, type Path, type Position, type PreinstalledIdentifier, type PreinstalledOrigin, type RateLimit, type RateLimitAction, type RateLimitActionInfo, type RateLimiting, type RefreshPayloadRequest, type RefreshPayloadResponse, type ReportAccountLevelEventRequest, type ReportAccountLevelEventResponse, type ReportActionInvocationCompletedOptions, type ReportActionInvocationCompletedOptionsStatusInfoOneOf, type ReportActionInvocationCompletedRequest, type ReportActionInvocationCompletedRequestStatusInfoOneOf, type ReportActionInvocationCompletedResponse, type ReportDomainEventRequest, type ReportDomainEventResponse, type ReportEventApplicationErrors, type ReportEventOptions, type ReportEventRequest, type ReportEventResponse, type RerunActivationInfo, type RerunActivationOptions, type RerunActivationRequest, type RerunActivationResponse, type RestoreInfo, type ResumeAfterAsyncActionCompleted, type ResumeAfterAsyncActionCompletedStatusInfoOneOf, type RetryInfo, type RunAutomationRequest, type RunAutomationResponse, type RunOptions, type RunPreinstalledAutomationRequest, type RunPreinstalledAutomationResponse, type Runtime, RuntimeStatus, type RuntimeStatusWithLiterals, type Schedule, type ScheduleActivationRequested, type ScheduleRequest, type ScheduleResponse, ScheduleStatus, type ScheduleStatusWithLiterals, type ScheduledAction, type ScheduledStatusInfo, type Scheduler, type Service, type ServiceMapping, type SetVariables, type SetVariablesAction, type SetVariablesActionInfo, type SimpleDelay, SkipReason, type SkipReasonWithLiterals, type SkippedStatusInfo, type SpiAction, type SplitAction, type SplitActionPath, type StartedStatusInfo, type StartedStatusInfoAppDefinedActionInfo, type StartedStatusInfoDelayActionInfo, type StartedStatusInfoTypeInfoOneOf, Status, type StatusWithLiterals, type SuccessInfo, type SwitchFilter, type SystemHelper, type SystemHelperHelperOneOf, Target, type TargetWithLiterals, type TemplateOrigin, type TestAutomationOptions, type TestAutomationOptionsIdentifierOneOf, type TestAutomationRequest, type TestAutomationRequestIdentifierOneOf, type TestAutomationResponse, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerInfo, type TriggerSettings, Type, type TypeWithLiterals, Units, type UnitsWithLiterals, type UpdatePendingSchedulesPayloadRequest, type UpdatePendingSchedulesPayloadResponse, type UpdateScheduleStatusRequest, type UpdateScheduleStatusResponse, type V1RunAutomationRequest, type V1RunAutomationRequestIdentifierOneOf, type V1RunAutomationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCancelEvent, bulkReportEvent, cancelEvent, esbConfigResolverRunAutomation, reportActionInvocationCompleted, reportEvent, rerunActivation, testAutomation };
|
|
@@ -45,9 +45,11 @@ __export(index_typings_exports, {
|
|
|
45
45
|
bulkCancelEvent: () => bulkCancelEvent2,
|
|
46
46
|
bulkReportEvent: () => bulkReportEvent2,
|
|
47
47
|
cancelEvent: () => cancelEvent2,
|
|
48
|
+
esbConfigResolverRunAutomation: () => esbConfigResolverRunAutomation2,
|
|
48
49
|
reportActionInvocationCompleted: () => reportActionInvocationCompleted2,
|
|
49
50
|
reportEvent: () => reportEvent2,
|
|
50
|
-
rerunActivation: () => rerunActivation2
|
|
51
|
+
rerunActivation: () => rerunActivation2,
|
|
52
|
+
testAutomation: () => testAutomation2
|
|
51
53
|
});
|
|
52
54
|
module.exports = __toCommonJS(index_typings_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)({
|
|
@@ -662,8 +792,10 @@ async function reportActionInvocationCompleted2(status, invocationToken, options
|
|
|
662
792
|
bulkCancelEvent,
|
|
663
793
|
bulkReportEvent,
|
|
664
794
|
cancelEvent,
|
|
795
|
+
esbConfigResolverRunAutomation,
|
|
665
796
|
reportActionInvocationCompleted,
|
|
666
797
|
reportEvent,
|
|
667
|
-
rerunActivation
|
|
798
|
+
rerunActivation,
|
|
799
|
+
testAutomation
|
|
668
800
|
});
|
|
669
801
|
//# sourceMappingURL=index.typings.js.map
|