@wix/auto_sdk_automations_activations 1.0.54 → 1.0.56

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +4 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +42 -11
  5. package/build/cjs/index.typings.js +4 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +2321 -19
  8. package/build/cjs/meta.js +201 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +4 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +42 -11
  14. package/build/es/index.typings.mjs +4 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +2321 -19
  17. package/build/es/meta.mjs +180 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +4 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +42 -11
  23. package/build/internal/cjs/index.typings.js +4 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +2321 -19
  26. package/build/internal/cjs/meta.js +201 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +4 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +42 -11
  32. package/build/internal/es/index.typings.mjs +4 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +2321 -19
  35. package/build/internal/es/meta.mjs +180 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -87,6 +87,8 @@ interface AutomationOriginInfoOneOf {
87
87
  /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
88
88
  preinstalledInfo?: PreinstalledOrigin;
89
89
  }
90
+ interface AIMetadata {
91
+ }
90
92
  interface ActionSettings {
91
93
  /**
92
94
  * Permanent actions. PermanentAction's skipActionExpression cannot be modified.
@@ -176,7 +178,7 @@ interface AutomationConfiguration {
176
178
  * @format GUID
177
179
  */
178
180
  rootActionIds?: string[];
179
- /** Actions the automation can execute, as key:value pairs. For the key, specify the action ID. The value must be an object structured as described below. */
181
+ /** Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below. */
180
182
  actions?: Record<string, AutomationConfigurationAction>;
181
183
  }
182
184
  declare enum TimeUnit {
@@ -290,7 +292,7 @@ interface ActionCodeSnippet {
290
292
  declare enum CodeSnippetLanguage {
291
293
  /** Unknown. */
292
294
  UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
293
- /** `JAVASCRIPT` language. */
295
+ /** JavaScript. */
294
296
  JAVASCRIPT = "JAVASCRIPT"
295
297
  }
296
298
  /** @enumType */
@@ -340,7 +342,11 @@ interface AppDefinedAction {
340
342
  * @maxLength 100
341
343
  */
342
344
  actionKey?: string;
343
- /** Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema). */
345
+ /**
346
+ * Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).
347
+ *
348
+ * The input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.
349
+ */
344
350
  inputMapping?: Record<string, any> | null;
345
351
  /**
346
352
  * Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
@@ -403,7 +409,7 @@ interface DelayAction {
403
409
  /**
404
410
  * Time to wait before running the action. The wait time starts from when the current action completes.
405
411
  *
406
- * > **Note**: To define the wait time from a specific moment in time, use `dueDateEpochExpression` or `dueDateExpression`.
412
+ * > **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.
407
413
  * @maxLength 1000
408
414
  */
409
415
  offsetExpression?: string | null;
@@ -422,8 +428,7 @@ interface DelayAction {
422
428
  */
423
429
  dueDateEpochExpression?: string | null;
424
430
  /**
425
- * Action run date as a timestamp/datetime string expression using bracket language.
426
- * The expression will be converted to JSONata and should evaluate to a timestamp/datetime format.
431
+ * Action run date as a timestamp or DateTime expression using bracket notation.
427
432
  *
428
433
  * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
429
434
  * @maxLength 1000
@@ -548,6 +553,8 @@ interface AutomationConfigurationAction extends AutomationConfigurationActionInf
548
553
  /**
549
554
  * Action ID.
550
555
  *
556
+ * Unique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.
557
+ *
551
558
  * If not specified, automatically generated by Wix.
552
559
  * @format GUID
553
560
  */
@@ -563,7 +570,7 @@ interface AutomationConfigurationAction extends AutomationConfigurationActionInf
563
570
  */
564
571
  namespace?: string | null;
565
572
  /**
566
- * skip_action_expression: evaluates to a boolean to decide if the action should be skipped
573
+ * Evaluated to boolean to decide whether the action is skipped.
567
574
  * For ConditionAction: if skipped, true_post_action_ids execute; false_post_action_ids are skipped
568
575
  * SplitAction and OutputAction do not support skip_action_expression
569
576
  * @maxLength 1000
@@ -928,7 +935,6 @@ interface Schedule {
928
935
  scheduledAction?: ScheduledAction;
929
936
  /** Raw domain event, not enriched */
930
937
  eventPayload?: string;
931
- /** @readonly */
932
938
  scheduleStatus?: ScheduleStatusWithLiterals;
933
939
  /** @readonly */
934
940
  scheduleDate?: Date | null;
@@ -989,10 +995,16 @@ declare enum ScheduleStatus {
989
995
  UNKNOWN_SCHEDULE_STATUS = "UNKNOWN_SCHEDULE_STATUS",
990
996
  PENDING = "PENDING",
991
997
  CANCELLED = "CANCELLED",
992
- DONE = "DONE"
998
+ DONE = "DONE",
999
+ MIGRATED = "MIGRATED",
1000
+ /** esb configuration was deleted after the schedule was created */
1001
+ ESB_CONFIGURATION_NOT_FOUND = "ESB_CONFIGURATION_NOT_FOUND",
1002
+ /** automation v3 was deleted after the schedule was created */
1003
+ AUTOMATION_NOT_FOUND = "AUTOMATION_NOT_FOUND",
1004
+ METASITE_DELETED = "METASITE_DELETED"
993
1005
  }
994
1006
  /** @enumType */
995
- type ScheduleStatusWithLiterals = ScheduleStatus | 'UNKNOWN_SCHEDULE_STATUS' | 'PENDING' | 'CANCELLED' | 'DONE';
1007
+ type ScheduleStatusWithLiterals = ScheduleStatus | 'UNKNOWN_SCHEDULE_STATUS' | 'PENDING' | 'CANCELLED' | 'DONE' | 'MIGRATED' | 'ESB_CONFIGURATION_NOT_FOUND' | 'AUTOMATION_NOT_FOUND' | 'METASITE_DELETED';
996
1008
  interface TriggerInfo {
997
1009
  /**
998
1010
  * App id of the initial trigger.
@@ -1043,6 +1055,20 @@ interface UpdatePendingSchedulesPayloadRequest {
1043
1055
  }
1044
1056
  interface UpdatePendingSchedulesPayloadResponse {
1045
1057
  }
1058
+ interface GetScheduleRequest {
1059
+ /** @format GUID */
1060
+ _id?: string;
1061
+ }
1062
+ interface GetScheduleResponse {
1063
+ schedule?: Schedule;
1064
+ }
1065
+ interface UpdateScheduleStatusRequest {
1066
+ /** @format GUID */
1067
+ _id?: string;
1068
+ status?: ScheduleStatusWithLiterals;
1069
+ }
1070
+ interface UpdateScheduleStatusResponse {
1071
+ }
1046
1072
  interface DomainEvent extends DomainEventBodyOneOf {
1047
1073
  createdEvent?: EntityCreatedEvent;
1048
1074
  updatedEvent?: EntityUpdatedEvent;
@@ -1890,6 +1916,11 @@ interface V1RunAutomationRequest extends V1RunAutomationRequestIdentifierOneOf {
1890
1916
  * strings, numbers, integers, or booleans only.
1891
1917
  */
1892
1918
  payload?: Record<string, any> | null;
1919
+ /**
1920
+ * When true, indicates this is a migration flow and should bypass
1921
+ * the check for future dates that have already passed.
1922
+ */
1923
+ migrationFlow?: boolean;
1893
1924
  }
1894
1925
  /** @oneof */
1895
1926
  interface V1RunAutomationRequestIdentifierOneOf {
@@ -2595,4 +2626,4 @@ declare function bulkCancelEvent(triggerKey: string, externalEntityIds: string[]
2595
2626
  */
2596
2627
  declare function cancelEvent(triggerKey: string, externalEntityId: string): Promise<void>;
2597
2628
 
2598
- export { 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, 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 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 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, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerInfo, Type, type TypeWithLiterals, Units, type UnitsWithLiterals, type UpdatePendingSchedulesPayloadRequest, type UpdatePendingSchedulesPayloadResponse, type V1RunAutomationRequest, type V1RunAutomationRequestIdentifierOneOf, type V1RunAutomationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCancelEvent, bulkReportEvent, cancelEvent, reportEvent };
2629
+ 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, 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 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, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerInfo, 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 };
@@ -263,6 +263,10 @@ var ScheduleStatus = /* @__PURE__ */ ((ScheduleStatus2) => {
263
263
  ScheduleStatus2["PENDING"] = "PENDING";
264
264
  ScheduleStatus2["CANCELLED"] = "CANCELLED";
265
265
  ScheduleStatus2["DONE"] = "DONE";
266
+ ScheduleStatus2["MIGRATED"] = "MIGRATED";
267
+ ScheduleStatus2["ESB_CONFIGURATION_NOT_FOUND"] = "ESB_CONFIGURATION_NOT_FOUND";
268
+ ScheduleStatus2["AUTOMATION_NOT_FOUND"] = "AUTOMATION_NOT_FOUND";
269
+ ScheduleStatus2["METASITE_DELETED"] = "METASITE_DELETED";
266
270
  return ScheduleStatus2;
267
271
  })(ScheduleStatus || {});
268
272
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {