@wix/auto_sdk_automations_automations-v-2 1.0.27 → 1.0.29
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 +4 -4
- package/build/cjs/index.js +22 -16
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +179 -264
- package/build/cjs/index.typings.js +13 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +36 -36
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +22 -16
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +179 -264
- package/build/es/index.typings.mjs +13 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +36 -36
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +22 -16
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +179 -264
- package/build/internal/cjs/index.typings.js +13 -13
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +36 -36
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +22 -16
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +179 -264
- package/build/internal/es/index.typings.mjs +13 -13
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +36 -36
- package/package.json +2 -2
|
@@ -245,6 +245,23 @@ declare enum Operator {
|
|
|
245
245
|
}
|
|
246
246
|
/** @enumType */
|
|
247
247
|
type OperatorWithLiterals = Operator | 'UNKNOWN_OPERATOR' | 'OR' | 'AND';
|
|
248
|
+
interface CodeSnippet {
|
|
249
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
250
|
+
language?: LanguageWithLiterals;
|
|
251
|
+
/**
|
|
252
|
+
* Expressions evaluated using the selected operator. this code should comply the language syntax. and format
|
|
253
|
+
* @maxLength 1000
|
|
254
|
+
*/
|
|
255
|
+
code?: string;
|
|
256
|
+
}
|
|
257
|
+
declare enum Language {
|
|
258
|
+
/** Unknown. */
|
|
259
|
+
UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
|
|
260
|
+
/** `JAVASCRIPT` language. */
|
|
261
|
+
JAVASCRIPT = "JAVASCRIPT"
|
|
262
|
+
}
|
|
263
|
+
/** @enumType */
|
|
264
|
+
type LanguageWithLiterals = Language | 'UNKNOWN_LANGUAGE' | 'JAVASCRIPT';
|
|
248
265
|
declare enum Type {
|
|
249
266
|
/** Based on the trigger. */
|
|
250
267
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
@@ -314,6 +331,22 @@ interface ConditionAction {
|
|
|
314
331
|
*/
|
|
315
332
|
falsePostActionIds?: string[];
|
|
316
333
|
}
|
|
334
|
+
interface CodeConditionAction {
|
|
335
|
+
/** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */
|
|
336
|
+
snippet?: CodeSnippet;
|
|
337
|
+
/**
|
|
338
|
+
* IDs of actions to run when the condition evaluates to `true`.
|
|
339
|
+
* @maxSize 20
|
|
340
|
+
* @format GUID
|
|
341
|
+
*/
|
|
342
|
+
truePostActionIds?: string[];
|
|
343
|
+
/**
|
|
344
|
+
* IDs of actions to run when the condition evaluates to `false`.
|
|
345
|
+
* @maxSize 20
|
|
346
|
+
* @format GUID
|
|
347
|
+
*/
|
|
348
|
+
falsePostActionIds?: string[];
|
|
349
|
+
}
|
|
317
350
|
interface DelayAction {
|
|
318
351
|
/**
|
|
319
352
|
* Time to wait before running the action. The wait time starts from when the current action completes.
|
|
@@ -450,12 +483,12 @@ interface Action extends ActionInfoOneOf {
|
|
|
450
483
|
*/
|
|
451
484
|
namespace?: string | null;
|
|
452
485
|
/**
|
|
453
|
-
*
|
|
486
|
+
* skip_action_expression: evaluates to a boolean to decide if the action should be skipped
|
|
454
487
|
* For ConditionAction: if skipped, true_post_action_ids execute; false_post_action_ids are skipped
|
|
455
|
-
* SplitAction and OutputAction do not support
|
|
488
|
+
* SplitAction and OutputAction do not support skip_action_expression
|
|
456
489
|
* @maxLength 1000
|
|
457
490
|
*/
|
|
458
|
-
|
|
491
|
+
skipActionExpression?: string | null;
|
|
459
492
|
}
|
|
460
493
|
/** @oneof */
|
|
461
494
|
interface ActionInfoOneOf {
|
|
@@ -548,39 +581,6 @@ interface DraftInfo {
|
|
|
548
581
|
*/
|
|
549
582
|
originalAutomationId?: string | null;
|
|
550
583
|
}
|
|
551
|
-
interface CodeSnippet {
|
|
552
|
-
/** Logical operator used to evaluate the condition expressions. */
|
|
553
|
-
language?: LanguageWithLiterals;
|
|
554
|
-
/**
|
|
555
|
-
* Expressions evaluated using the selected operator. this code should comply the language syntax. and format
|
|
556
|
-
* @maxLength 1000
|
|
557
|
-
*/
|
|
558
|
-
code?: string;
|
|
559
|
-
}
|
|
560
|
-
declare enum Language {
|
|
561
|
-
/** Unknown. */
|
|
562
|
-
UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
|
|
563
|
-
/** `JAVASCRIPT` language. */
|
|
564
|
-
JAVASCRIPT = "JAVASCRIPT"
|
|
565
|
-
}
|
|
566
|
-
/** @enumType */
|
|
567
|
-
type LanguageWithLiterals = Language | 'UNKNOWN_LANGUAGE' | 'JAVASCRIPT';
|
|
568
|
-
interface CodeConditionAction {
|
|
569
|
-
/** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */
|
|
570
|
-
snippet?: CodeSnippet;
|
|
571
|
-
/**
|
|
572
|
-
* IDs of actions to run when the condition evaluates to `true`.
|
|
573
|
-
* @maxSize 20
|
|
574
|
-
* @format GUID
|
|
575
|
-
*/
|
|
576
|
-
truePostActionIds?: string[];
|
|
577
|
-
/**
|
|
578
|
-
* IDs of actions to run when the condition evaluates to `false`.
|
|
579
|
-
* @maxSize 20
|
|
580
|
-
* @format GUID
|
|
581
|
-
*/
|
|
582
|
-
falsePostActionIds?: string[];
|
|
583
|
-
}
|
|
584
584
|
interface AutoArchivePolicy {
|
|
585
585
|
/**
|
|
586
586
|
* Date when to archive the automation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_automations_automations-v-2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.automations.v2.automation"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "8b7673c561da1e1b076d19074f778fc2d27a0d5e0813d266102ec9ff"
|
|
54
54
|
}
|