@wix/auto_sdk_automations_activations 1.0.79 → 1.0.81
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 +8 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +32 -25
- package/build/cjs/index.typings.js +8 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +32 -25
- package/build/cjs/meta.js +8 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +7 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +32 -25
- package/build/es/index.typings.mjs +7 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +32 -25
- package/build/es/meta.mjs +7 -7
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +8 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +32 -25
- package/build/internal/cjs/index.typings.js +8 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +32 -25
- package/build/internal/cjs/meta.js +8 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +7 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +32 -25
- package/build/internal/es/index.typings.mjs +7 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +32 -25
- package/build/internal/es/meta.mjs +7 -7
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1310,8 +1310,8 @@ interface ActivationRequest {
|
|
|
1310
1310
|
automation?: Automation;
|
|
1311
1311
|
/** Trigger entity for the activation, available for v2 and v3 automations only */
|
|
1312
1312
|
triggerSchema?: Record<string, any> | null;
|
|
1313
|
-
/**
|
|
1314
|
-
|
|
1313
|
+
/** Information about the source that initiated this activation (event-driven vs manual/test mode). */
|
|
1314
|
+
activationInitiationSourceInfo?: ActivationInitiationSourceInfo;
|
|
1315
1315
|
}
|
|
1316
1316
|
interface Runtime {
|
|
1317
1317
|
}
|
|
@@ -1690,42 +1690,49 @@ interface ActionsData {
|
|
|
1690
1690
|
/** Map of action id to action data. */
|
|
1691
1691
|
actions?: Record<string, Action>;
|
|
1692
1692
|
}
|
|
1693
|
-
/** Activation
|
|
1694
|
-
interface
|
|
1695
|
-
/** Details for MANUAL_ACTIVATION
|
|
1693
|
+
/** Activation initiation source with additional details based on origin. */
|
|
1694
|
+
interface ActivationInitiationSourceInfo extends ActivationInitiationSourceInfoInitiationSourceInfoOneOf {
|
|
1695
|
+
/** Details for MANUAL_ACTIVATION source. */
|
|
1696
1696
|
manualActivationInfo?: ManualActivationInfo;
|
|
1697
|
-
/** The source
|
|
1698
|
-
|
|
1697
|
+
/** The source type of this activation. */
|
|
1698
|
+
activationInitiationSource?: ActivationInitiationSourceWithLiterals;
|
|
1699
1699
|
}
|
|
1700
1700
|
/** @oneof */
|
|
1701
|
-
interface
|
|
1702
|
-
/** Details for MANUAL_ACTIVATION
|
|
1701
|
+
interface ActivationInitiationSourceInfoInitiationSourceInfoOneOf {
|
|
1702
|
+
/** Details for MANUAL_ACTIVATION source. */
|
|
1703
1703
|
manualActivationInfo?: ManualActivationInfo;
|
|
1704
1704
|
}
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1705
|
+
/**
|
|
1706
|
+
* Source types for automation activation.
|
|
1707
|
+
* This enum may be extended in the future to support additional activation origins.
|
|
1708
|
+
*/
|
|
1709
|
+
declare enum ActivationInitiationSource {
|
|
1710
|
+
/** Unspecified activation initiation source (protobuf default value). */
|
|
1711
|
+
UNKNOWN_ACTIVATION_INITIATION_SOURCE = "UNKNOWN_ACTIVATION_INITIATION_SOURCE",
|
|
1708
1712
|
/**
|
|
1709
|
-
* Activation triggered by a provider event
|
|
1710
|
-
* The automation runs in response to a business event
|
|
1711
|
-
* Uses published automations only. No additional context_info needed.
|
|
1713
|
+
* Activation triggered by a provider event (e.g., reportEvent, bulkReportEvent).
|
|
1714
|
+
* The automation runs in response to a business event. Uses published automations only.
|
|
1712
1715
|
*/
|
|
1713
1716
|
TRIGGER_PROVIDER_EVENT = "TRIGGER_PROVIDER_EVENT",
|
|
1714
1717
|
/**
|
|
1715
|
-
* Activation triggered by manual execution (e.g
|
|
1716
|
-
*
|
|
1718
|
+
* Activation triggered by manual execution (e.g., testAutomation, ReRunAutomation).
|
|
1719
|
+
* Explicitly initiated by user or API caller with explicit payload.
|
|
1717
1720
|
*/
|
|
1718
1721
|
MANUAL_ACTIVATION = "MANUAL_ACTIVATION"
|
|
1719
1722
|
}
|
|
1720
1723
|
/** @enumType */
|
|
1721
|
-
type
|
|
1722
|
-
/** Additional
|
|
1724
|
+
type ActivationInitiationSourceWithLiterals = ActivationInitiationSource | 'UNKNOWN_ACTIVATION_INITIATION_SOURCE' | 'TRIGGER_PROVIDER_EVENT' | 'MANUAL_ACTIVATION';
|
|
1725
|
+
/** Additional information for manual automation activations. */
|
|
1723
1726
|
interface ManualActivationInfo {
|
|
1724
1727
|
/**
|
|
1725
|
-
*
|
|
1728
|
+
* Whether this activation is running in test mode.
|
|
1729
|
+
*
|
|
1730
|
+
* In test mode:
|
|
1731
|
+
* - Draft automations can be executed
|
|
1732
|
+
* - Certain actions may be skipped (e.g., delays, rate limits)
|
|
1733
|
+
* - Used primarily for testing automations before publication
|
|
1726
1734
|
*
|
|
1727
|
-
*
|
|
1728
|
-
* Default: false
|
|
1735
|
+
* Default: false (standard production mode)
|
|
1729
1736
|
*/
|
|
1730
1737
|
testMode?: boolean;
|
|
1731
1738
|
}
|
|
@@ -2141,11 +2148,11 @@ interface ActivationScheduleCompleted {
|
|
|
2141
2148
|
}
|
|
2142
2149
|
interface ActionRetryRequest {
|
|
2143
2150
|
/** The activation context */
|
|
2144
|
-
activationContext?:
|
|
2151
|
+
activationContext?: ActivationContext;
|
|
2145
2152
|
/** The action to retry */
|
|
2146
2153
|
actionToRetryData?: ActionData;
|
|
2147
2154
|
}
|
|
2148
|
-
interface
|
|
2155
|
+
interface ActivationContext {
|
|
2149
2156
|
/**
|
|
2150
2157
|
* Activation ID
|
|
2151
2158
|
* @format GUID
|
|
@@ -2739,4 +2746,4 @@ declare function bulkCancelEvent(triggerKey: string, externalEntityIds: string[]
|
|
|
2739
2746
|
*/
|
|
2740
2747
|
declare function cancelEvent(triggerKey: string, externalEntityId: string): Promise<void>;
|
|
2741
2748
|
|
|
2742
|
-
export { type AIMetadata, 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, ActivationContext, type
|
|
2749
|
+
export { type AIMetadata, 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 InvokedAsyncStatusInfo, type InvokedAsyncStatusInfoAppDefinedActionInfo, type InvokedAsyncStatusInfoTypeInfoOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type ManualActivationInfo, 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 ReportActionInvocationCompletedRequest, type ReportActionInvocationCompletedRequestStatusInfoOneOf, type ReportActionInvocationCompletedResponse, type ReportDomainEventRequest, type ReportDomainEventResponse, type ReportEventApplicationErrors, type ReportEventOptions, type ReportEventRequest, type ReportEventResponse, type RestoreInfo, type ResumeAfterAsyncActionCompleted, type ResumeAfterAsyncActionCompletedStatusInfoOneOf, type RetryInfo, type RunAutomationRequest, type RunAutomationResponse, 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 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, reportEvent };
|
|
@@ -289,12 +289,12 @@ var Language = /* @__PURE__ */ ((Language2) => {
|
|
|
289
289
|
Language2["JAVASCRIPT"] = "JAVASCRIPT";
|
|
290
290
|
return Language2;
|
|
291
291
|
})(Language || {});
|
|
292
|
-
var
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return
|
|
297
|
-
})(
|
|
292
|
+
var ActivationInitiationSource = /* @__PURE__ */ ((ActivationInitiationSource2) => {
|
|
293
|
+
ActivationInitiationSource2["UNKNOWN_ACTIVATION_INITIATION_SOURCE"] = "UNKNOWN_ACTIVATION_INITIATION_SOURCE";
|
|
294
|
+
ActivationInitiationSource2["TRIGGER_PROVIDER_EVENT"] = "TRIGGER_PROVIDER_EVENT";
|
|
295
|
+
ActivationInitiationSource2["MANUAL_ACTIVATION"] = "MANUAL_ACTIVATION";
|
|
296
|
+
return ActivationInitiationSource2;
|
|
297
|
+
})(ActivationInitiationSource || {});
|
|
298
298
|
var IdentifierType = /* @__PURE__ */ ((IdentifierType2) => {
|
|
299
299
|
IdentifierType2["UNKNOWN_IDENTIFIER"] = "UNKNOWN_IDENTIFIER";
|
|
300
300
|
IdentifierType2["PREINSTALLED"] = "PREINSTALLED";
|
|
@@ -447,7 +447,7 @@ async function cancelEvent2(triggerKey, externalEntityId) {
|
|
|
447
447
|
}
|
|
448
448
|
export {
|
|
449
449
|
ActivationActionStatusChangedStatus,
|
|
450
|
-
|
|
450
|
+
ActivationInitiationSource,
|
|
451
451
|
ActivationStatusChangedStatus,
|
|
452
452
|
AutomationConfigurationStatus,
|
|
453
453
|
BlockType,
|