@wix/automations 1.0.65 → 1.0.66
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/automations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.66",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"type-bundles"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wix/automations_activations": "1.0.
|
|
24
|
+
"@wix/automations_activations": "1.0.39",
|
|
25
25
|
"@wix/automations_automations-service": "1.0.30",
|
|
26
26
|
"@wix/automations_automations-service-v-2": "1.0.38"
|
|
27
27
|
},
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "238a9a079e7f3a77451b85eff148d3ad9621c39d10ec5b18f1a8fda5"
|
|
52
52
|
}
|
|
@@ -2405,9 +2405,9 @@ interface ActionSettings$1 {
|
|
|
2405
2405
|
disableConditionAddition?: boolean;
|
|
2406
2406
|
}
|
|
2407
2407
|
declare enum Domain$1 {
|
|
2408
|
-
/** User domain (default) */
|
|
2408
|
+
/** User domain (default). */
|
|
2409
2409
|
USER = "USER",
|
|
2410
|
-
/** Wix domain */
|
|
2410
|
+
/** Wix domain. */
|
|
2411
2411
|
WIX = "WIX"
|
|
2412
2412
|
}
|
|
2413
2413
|
interface AuditInfo$1 extends AuditInfoIdOneOf$1 {
|
|
@@ -2484,19 +2484,19 @@ declare enum Operator$1 {
|
|
|
2484
2484
|
AND = "AND"
|
|
2485
2485
|
}
|
|
2486
2486
|
declare enum Type$1 {
|
|
2487
|
-
/** Automation will be triggered according to the trigger configuration */
|
|
2487
|
+
/** Automation will be triggered according to the trigger configuration. */
|
|
2488
2488
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
2489
|
-
/** App defined Action */
|
|
2489
|
+
/** App defined Action. */
|
|
2490
2490
|
APP_DEFINED = "APP_DEFINED",
|
|
2491
|
-
/** Condition Action */
|
|
2491
|
+
/** Condition Action. */
|
|
2492
2492
|
CONDITION = "CONDITION",
|
|
2493
|
-
/** Delay Action */
|
|
2493
|
+
/** Delay Action. */
|
|
2494
2494
|
DELAY = "DELAY",
|
|
2495
|
-
/** RateLimit Action */
|
|
2495
|
+
/** RateLimit Action. */
|
|
2496
2496
|
RATE_LIMIT = "RATE_LIMIT",
|
|
2497
|
-
/** Set Variables Action */
|
|
2497
|
+
/** Set Variables Action. */
|
|
2498
2498
|
SET_VARIABLES = "SET_VARIABLES",
|
|
2499
|
-
/** Output Action */
|
|
2499
|
+
/** Output Action. */
|
|
2500
2500
|
OUTPUT = "OUTPUT"
|
|
2501
2501
|
}
|
|
2502
2502
|
interface AppDefinedAction$1 {
|
|
@@ -2628,13 +2628,13 @@ interface AutomationConfigurationActionInfoOneOf {
|
|
|
2628
2628
|
rateLimitInfo?: RateLimitAction$1;
|
|
2629
2629
|
}
|
|
2630
2630
|
declare enum Origin$1 {
|
|
2631
|
-
/**
|
|
2631
|
+
/** Default value. This is unused. */
|
|
2632
2632
|
UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
|
|
2633
|
-
/**
|
|
2633
|
+
/** User created automation. */
|
|
2634
2634
|
USER = "USER",
|
|
2635
|
-
/**
|
|
2635
|
+
/** Automation created by application (site specific). */
|
|
2636
2636
|
APPLICATION = "APPLICATION",
|
|
2637
|
-
/**
|
|
2637
|
+
/** Preinstalled application automation. */
|
|
2638
2638
|
PREINSTALLED = "PREINSTALLED"
|
|
2639
2639
|
}
|
|
2640
2640
|
interface ApplicationOrigin$1 {
|
|
@@ -2684,7 +2684,7 @@ interface AutomationSettings$1 {
|
|
|
2684
2684
|
}
|
|
2685
2685
|
interface DraftInfo$1 {
|
|
2686
2686
|
/**
|
|
2687
|
-
*
|
|
2687
|
+
* Optional - automationId of the original automation.
|
|
2688
2688
|
* @readonly
|
|
2689
2689
|
*/
|
|
2690
2690
|
originalAutomationId?: string | null;
|
|
@@ -2747,13 +2747,13 @@ declare enum Target {
|
|
|
2747
2747
|
}
|
|
2748
2748
|
declare enum CancellationReason {
|
|
2749
2749
|
UNKNOWN_CANCELLATION_REASON = "UNKNOWN_CANCELLATION_REASON",
|
|
2750
|
-
/**
|
|
2750
|
+
/** Indicates that the activation was cancelled directly. */
|
|
2751
2751
|
EVENT_CANCELLED = "EVENT_CANCELLED",
|
|
2752
|
-
/**
|
|
2752
|
+
/** Indicates that the activation was cancelled because the automation was deactivated. */
|
|
2753
2753
|
AUTOMATION_DEACTIVATED = "AUTOMATION_DEACTIVATED",
|
|
2754
|
-
/**
|
|
2754
|
+
/** Indicates that the activation was cancelled because the automation was deleted. */
|
|
2755
2755
|
AUTOMATION_DELETED = "AUTOMATION_DELETED",
|
|
2756
|
-
/**
|
|
2756
|
+
/** Indicates that the activation was cancelled after the automation schedule time was reached. */
|
|
2757
2757
|
CANCELLED_BY_REFRESH_PAYLOAD = "CANCELLED_BY_REFRESH_PAYLOAD"
|
|
2758
2758
|
}
|
|
2759
2759
|
interface Identity {
|
|
@@ -2764,19 +2764,19 @@ interface Identity {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
declare enum ActivationStatusChangedStatus {
|
|
2766
2766
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
2767
|
-
/**
|
|
2767
|
+
/** Indicates that activation has not started yet and no actions have been executed. */
|
|
2768
2768
|
INITIATED = "INITIATED",
|
|
2769
|
-
/**
|
|
2769
|
+
/** Activation is in scheduled status when the automation has a future date or debounce defined and we're in the waiting stage and no actions have been executed. */
|
|
2770
2770
|
SCHEDULED = "SCHEDULED",
|
|
2771
|
-
/**
|
|
2771
|
+
/** Indicates the automation activation has started and is currently in progress. */
|
|
2772
2772
|
STARTED = "STARTED",
|
|
2773
|
-
/**
|
|
2773
|
+
/** Indicates all the automation actions were handled either by invoking them, skipping them, etc. */
|
|
2774
2774
|
ENDED = "ENDED",
|
|
2775
|
-
/**
|
|
2775
|
+
/** Indicates the activation was cancelled. */
|
|
2776
2776
|
CANCELLED = "CANCELLED",
|
|
2777
2777
|
/**
|
|
2778
|
-
*
|
|
2779
|
-
* Note that failure in the activation of a single action will not result a failure in activation of the entire automation
|
|
2778
|
+
* Indicates the activation failed to start.
|
|
2779
|
+
* Note that failure in the activation of a single action will not result in a failure in activation of the entire automation.
|
|
2780
2780
|
*/
|
|
2781
2781
|
FAILED = "FAILED"
|
|
2782
2782
|
}
|
|
@@ -2793,13 +2793,13 @@ interface InitiatedStatusInfo {
|
|
|
2793
2793
|
interface ScheduledStatusInfo {
|
|
2794
2794
|
/** Schedule identifier */
|
|
2795
2795
|
scheduleId?: string;
|
|
2796
|
-
/**
|
|
2796
|
+
/** Indicates when the activation should start */
|
|
2797
2797
|
date?: Date | null;
|
|
2798
2798
|
}
|
|
2799
2799
|
interface CancelledStatusInfo {
|
|
2800
2800
|
/** Cancellation reason */
|
|
2801
2801
|
reason?: CancellationReason;
|
|
2802
|
-
/**
|
|
2802
|
+
/** Identity (such as user, app, etc.) that caused the cancellation. */
|
|
2803
2803
|
initiator?: Identity;
|
|
2804
2804
|
}
|
|
2805
2805
|
interface ActivationStatusChangedFailedStatusInfo {
|
|
@@ -3319,11 +3319,11 @@ interface ExpressionEvaluationResult {
|
|
|
3319
3319
|
error?: boolean;
|
|
3320
3320
|
}
|
|
3321
3321
|
interface AppDefinedActionInfo {
|
|
3322
|
-
/**
|
|
3322
|
+
/** Output returned by the action implementer. */
|
|
3323
3323
|
output?: Record<string, any> | null;
|
|
3324
3324
|
}
|
|
3325
3325
|
interface ConditionActionInfo {
|
|
3326
|
-
/** Indicates that the condition `if` clause evaluated to `true
|
|
3326
|
+
/** Indicates that the condition `if` clause evaluated to `true`. */
|
|
3327
3327
|
passed?: boolean;
|
|
3328
3328
|
/** Collects results per each expression evaluation that took place */
|
|
3329
3329
|
expressionResults?: Record<string, ExpressionEvaluationResult>;
|
|
@@ -3352,23 +3352,23 @@ interface AutomationInfoOriginInfoOneOf {
|
|
|
3352
3352
|
declare enum ActivationActionStatusChangedStatus {
|
|
3353
3353
|
UNKNOWN_ACTION_ACTIVATION_STATUS = "UNKNOWN_ACTION_ACTIVATION_STATUS",
|
|
3354
3354
|
/**
|
|
3355
|
-
*
|
|
3356
|
-
* Relevant to action types: APP_DEFINED, DELAY
|
|
3355
|
+
* Indicates that action activation has started and is in progress.
|
|
3356
|
+
* Relevant to action types: APP_DEFINED, DELAY.
|
|
3357
3357
|
*/
|
|
3358
3358
|
STARTED = "STARTED",
|
|
3359
3359
|
/**
|
|
3360
|
-
*
|
|
3361
|
-
* Relevant to action types: APP_DEFINED, DELAY, CONDITION, RATE_LIMIT
|
|
3360
|
+
* Indicates that the action activation was completed without errors.
|
|
3361
|
+
* Relevant to action types: APP_DEFINED, DELAY, CONDITION, RATE_LIMIT.
|
|
3362
3362
|
*/
|
|
3363
3363
|
ENDED = "ENDED",
|
|
3364
3364
|
/**
|
|
3365
|
-
*
|
|
3366
|
-
* Relevant to action types: APP_DEFINED
|
|
3365
|
+
* Indicates that the action was skipped and post actions won't start.
|
|
3366
|
+
* Relevant to action types: APP_DEFINED.
|
|
3367
3367
|
*/
|
|
3368
3368
|
SKIPPED = "SKIPPED",
|
|
3369
3369
|
/**
|
|
3370
|
-
*
|
|
3371
|
-
* Relevant to action types: APP_DEFINED, DELAY, RATE_LIMIT
|
|
3370
|
+
* Indicates that the action failed.
|
|
3371
|
+
* Relevant to action types: APP_DEFINED, DELAY, RATE_LIMIT.
|
|
3372
3372
|
*/
|
|
3373
3373
|
FAILED = "FAILED"
|
|
3374
3374
|
}
|
|
@@ -2405,9 +2405,9 @@ interface ActionSettings$1 {
|
|
|
2405
2405
|
disableConditionAddition?: boolean;
|
|
2406
2406
|
}
|
|
2407
2407
|
declare enum Domain$1 {
|
|
2408
|
-
/** User domain (default) */
|
|
2408
|
+
/** User domain (default). */
|
|
2409
2409
|
USER = "USER",
|
|
2410
|
-
/** Wix domain */
|
|
2410
|
+
/** Wix domain. */
|
|
2411
2411
|
WIX = "WIX"
|
|
2412
2412
|
}
|
|
2413
2413
|
interface AuditInfo$1 extends AuditInfoIdOneOf$1 {
|
|
@@ -2484,19 +2484,19 @@ declare enum Operator$1 {
|
|
|
2484
2484
|
AND = "AND"
|
|
2485
2485
|
}
|
|
2486
2486
|
declare enum Type$1 {
|
|
2487
|
-
/** Automation will be triggered according to the trigger configuration */
|
|
2487
|
+
/** Automation will be triggered according to the trigger configuration. */
|
|
2488
2488
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
2489
|
-
/** App defined Action */
|
|
2489
|
+
/** App defined Action. */
|
|
2490
2490
|
APP_DEFINED = "APP_DEFINED",
|
|
2491
|
-
/** Condition Action */
|
|
2491
|
+
/** Condition Action. */
|
|
2492
2492
|
CONDITION = "CONDITION",
|
|
2493
|
-
/** Delay Action */
|
|
2493
|
+
/** Delay Action. */
|
|
2494
2494
|
DELAY = "DELAY",
|
|
2495
|
-
/** RateLimit Action */
|
|
2495
|
+
/** RateLimit Action. */
|
|
2496
2496
|
RATE_LIMIT = "RATE_LIMIT",
|
|
2497
|
-
/** Set Variables Action */
|
|
2497
|
+
/** Set Variables Action. */
|
|
2498
2498
|
SET_VARIABLES = "SET_VARIABLES",
|
|
2499
|
-
/** Output Action */
|
|
2499
|
+
/** Output Action. */
|
|
2500
2500
|
OUTPUT = "OUTPUT"
|
|
2501
2501
|
}
|
|
2502
2502
|
interface AppDefinedAction$1 {
|
|
@@ -2628,13 +2628,13 @@ interface AutomationConfigurationActionInfoOneOf {
|
|
|
2628
2628
|
rateLimitInfo?: RateLimitAction$1;
|
|
2629
2629
|
}
|
|
2630
2630
|
declare enum Origin$1 {
|
|
2631
|
-
/**
|
|
2631
|
+
/** Default value. This is unused. */
|
|
2632
2632
|
UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
|
|
2633
|
-
/**
|
|
2633
|
+
/** User created automation. */
|
|
2634
2634
|
USER = "USER",
|
|
2635
|
-
/**
|
|
2635
|
+
/** Automation created by application (site specific). */
|
|
2636
2636
|
APPLICATION = "APPLICATION",
|
|
2637
|
-
/**
|
|
2637
|
+
/** Preinstalled application automation. */
|
|
2638
2638
|
PREINSTALLED = "PREINSTALLED"
|
|
2639
2639
|
}
|
|
2640
2640
|
interface ApplicationOrigin$1 {
|
|
@@ -2684,7 +2684,7 @@ interface AutomationSettings$1 {
|
|
|
2684
2684
|
}
|
|
2685
2685
|
interface DraftInfo$1 {
|
|
2686
2686
|
/**
|
|
2687
|
-
*
|
|
2687
|
+
* Optional - automationId of the original automation.
|
|
2688
2688
|
* @readonly
|
|
2689
2689
|
*/
|
|
2690
2690
|
originalAutomationId?: string | null;
|
|
@@ -2747,13 +2747,13 @@ declare enum Target {
|
|
|
2747
2747
|
}
|
|
2748
2748
|
declare enum CancellationReason {
|
|
2749
2749
|
UNKNOWN_CANCELLATION_REASON = "UNKNOWN_CANCELLATION_REASON",
|
|
2750
|
-
/**
|
|
2750
|
+
/** Indicates that the activation was cancelled directly. */
|
|
2751
2751
|
EVENT_CANCELLED = "EVENT_CANCELLED",
|
|
2752
|
-
/**
|
|
2752
|
+
/** Indicates that the activation was cancelled because the automation was deactivated. */
|
|
2753
2753
|
AUTOMATION_DEACTIVATED = "AUTOMATION_DEACTIVATED",
|
|
2754
|
-
/**
|
|
2754
|
+
/** Indicates that the activation was cancelled because the automation was deleted. */
|
|
2755
2755
|
AUTOMATION_DELETED = "AUTOMATION_DELETED",
|
|
2756
|
-
/**
|
|
2756
|
+
/** Indicates that the activation was cancelled after the automation schedule time was reached. */
|
|
2757
2757
|
CANCELLED_BY_REFRESH_PAYLOAD = "CANCELLED_BY_REFRESH_PAYLOAD"
|
|
2758
2758
|
}
|
|
2759
2759
|
interface Identity {
|
|
@@ -2764,19 +2764,19 @@ interface Identity {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
declare enum ActivationStatusChangedStatus {
|
|
2766
2766
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
2767
|
-
/**
|
|
2767
|
+
/** Indicates that activation has not started yet and no actions have been executed. */
|
|
2768
2768
|
INITIATED = "INITIATED",
|
|
2769
|
-
/**
|
|
2769
|
+
/** Activation is in scheduled status when the automation has a future date or debounce defined and we're in the waiting stage and no actions have been executed. */
|
|
2770
2770
|
SCHEDULED = "SCHEDULED",
|
|
2771
|
-
/**
|
|
2771
|
+
/** Indicates the automation activation has started and is currently in progress. */
|
|
2772
2772
|
STARTED = "STARTED",
|
|
2773
|
-
/**
|
|
2773
|
+
/** Indicates all the automation actions were handled either by invoking them, skipping them, etc. */
|
|
2774
2774
|
ENDED = "ENDED",
|
|
2775
|
-
/**
|
|
2775
|
+
/** Indicates the activation was cancelled. */
|
|
2776
2776
|
CANCELLED = "CANCELLED",
|
|
2777
2777
|
/**
|
|
2778
|
-
*
|
|
2779
|
-
* Note that failure in the activation of a single action will not result a failure in activation of the entire automation
|
|
2778
|
+
* Indicates the activation failed to start.
|
|
2779
|
+
* Note that failure in the activation of a single action will not result in a failure in activation of the entire automation.
|
|
2780
2780
|
*/
|
|
2781
2781
|
FAILED = "FAILED"
|
|
2782
2782
|
}
|
|
@@ -2793,13 +2793,13 @@ interface InitiatedStatusInfo {
|
|
|
2793
2793
|
interface ScheduledStatusInfo {
|
|
2794
2794
|
/** Schedule identifier */
|
|
2795
2795
|
scheduleId?: string;
|
|
2796
|
-
/**
|
|
2796
|
+
/** Indicates when the activation should start */
|
|
2797
2797
|
date?: Date | null;
|
|
2798
2798
|
}
|
|
2799
2799
|
interface CancelledStatusInfo {
|
|
2800
2800
|
/** Cancellation reason */
|
|
2801
2801
|
reason?: CancellationReason;
|
|
2802
|
-
/**
|
|
2802
|
+
/** Identity (such as user, app, etc.) that caused the cancellation. */
|
|
2803
2803
|
initiator?: Identity;
|
|
2804
2804
|
}
|
|
2805
2805
|
interface ActivationStatusChangedFailedStatusInfo {
|
|
@@ -3319,11 +3319,11 @@ interface ExpressionEvaluationResult {
|
|
|
3319
3319
|
error?: boolean;
|
|
3320
3320
|
}
|
|
3321
3321
|
interface AppDefinedActionInfo {
|
|
3322
|
-
/**
|
|
3322
|
+
/** Output returned by the action implementer. */
|
|
3323
3323
|
output?: Record<string, any> | null;
|
|
3324
3324
|
}
|
|
3325
3325
|
interface ConditionActionInfo {
|
|
3326
|
-
/** Indicates that the condition `if` clause evaluated to `true
|
|
3326
|
+
/** Indicates that the condition `if` clause evaluated to `true`. */
|
|
3327
3327
|
passed?: boolean;
|
|
3328
3328
|
/** Collects results per each expression evaluation that took place */
|
|
3329
3329
|
expressionResults?: Record<string, ExpressionEvaluationResult>;
|
|
@@ -3352,23 +3352,23 @@ interface AutomationInfoOriginInfoOneOf {
|
|
|
3352
3352
|
declare enum ActivationActionStatusChangedStatus {
|
|
3353
3353
|
UNKNOWN_ACTION_ACTIVATION_STATUS = "UNKNOWN_ACTION_ACTIVATION_STATUS",
|
|
3354
3354
|
/**
|
|
3355
|
-
*
|
|
3356
|
-
* Relevant to action types: APP_DEFINED, DELAY
|
|
3355
|
+
* Indicates that action activation has started and is in progress.
|
|
3356
|
+
* Relevant to action types: APP_DEFINED, DELAY.
|
|
3357
3357
|
*/
|
|
3358
3358
|
STARTED = "STARTED",
|
|
3359
3359
|
/**
|
|
3360
|
-
*
|
|
3361
|
-
* Relevant to action types: APP_DEFINED, DELAY, CONDITION, RATE_LIMIT
|
|
3360
|
+
* Indicates that the action activation was completed without errors.
|
|
3361
|
+
* Relevant to action types: APP_DEFINED, DELAY, CONDITION, RATE_LIMIT.
|
|
3362
3362
|
*/
|
|
3363
3363
|
ENDED = "ENDED",
|
|
3364
3364
|
/**
|
|
3365
|
-
*
|
|
3366
|
-
* Relevant to action types: APP_DEFINED
|
|
3365
|
+
* Indicates that the action was skipped and post actions won't start.
|
|
3366
|
+
* Relevant to action types: APP_DEFINED.
|
|
3367
3367
|
*/
|
|
3368
3368
|
SKIPPED = "SKIPPED",
|
|
3369
3369
|
/**
|
|
3370
|
-
*
|
|
3371
|
-
* Relevant to action types: APP_DEFINED, DELAY, RATE_LIMIT
|
|
3370
|
+
* Indicates that the action failed.
|
|
3371
|
+
* Relevant to action types: APP_DEFINED, DELAY, RATE_LIMIT.
|
|
3372
3372
|
*/
|
|
3373
3373
|
FAILED = "FAILED"
|
|
3374
3374
|
}
|