@wix/auto_sdk_automations_trigger-provider 1.0.9 → 1.0.11
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/src/service-plugins-types.d.ts +35 -0
- package/build/cjs/src/service-plugins-types.js +8 -1
- package/build/cjs/src/service-plugins-types.js.map +1 -1
- package/build/es/src/service-plugins-types.d.ts +35 -0
- package/build/es/src/service-plugins-types.js +7 -0
- package/build/es/src/service-plugins-types.js.map +1 -1
- package/build/internal/cjs/src/service-plugins-types.d.ts +35 -0
- package/build/internal/cjs/src/service-plugins-types.js +8 -1
- package/build/internal/cjs/src/service-plugins-types.js.map +1 -1
- package/build/internal/es/src/service-plugins-types.d.ts +35 -0
- package/build/internal/es/src/service-plugins-types.js +7 -0
- package/build/internal/es/src/service-plugins-types.js.map +1 -1
- package/package.json +3 -3
|
@@ -351,6 +351,21 @@ export declare enum Operator {
|
|
|
351
351
|
/** `AND` operator. */
|
|
352
352
|
AND = "AND"
|
|
353
353
|
}
|
|
354
|
+
export interface CodeSnippet {
|
|
355
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
356
|
+
language?: Language;
|
|
357
|
+
/**
|
|
358
|
+
* Expressions evaluated using the selected operator. this code should comply the language syntax. and format
|
|
359
|
+
* @maxLength 1000
|
|
360
|
+
*/
|
|
361
|
+
code?: string;
|
|
362
|
+
}
|
|
363
|
+
export declare enum Language {
|
|
364
|
+
/** Unknown. */
|
|
365
|
+
UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
|
|
366
|
+
/** `JAVASCRIPT` language. */
|
|
367
|
+
JAVASCRIPT = "JAVASCRIPT"
|
|
368
|
+
}
|
|
354
369
|
/** Path definition */
|
|
355
370
|
export interface Path {
|
|
356
371
|
/**
|
|
@@ -432,6 +447,22 @@ export interface ConditionAction {
|
|
|
432
447
|
*/
|
|
433
448
|
falsePostActionIds?: string[];
|
|
434
449
|
}
|
|
450
|
+
export interface CodeConditionAction {
|
|
451
|
+
/** 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. */
|
|
452
|
+
snippet?: CodeSnippet;
|
|
453
|
+
/**
|
|
454
|
+
* IDs of actions to run when the condition evaluates to `true`.
|
|
455
|
+
* @maxSize 20
|
|
456
|
+
* @format GUID
|
|
457
|
+
*/
|
|
458
|
+
truePostActionIds?: string[];
|
|
459
|
+
/**
|
|
460
|
+
* IDs of actions to run when the condition evaluates to `false`.
|
|
461
|
+
* @maxSize 20
|
|
462
|
+
* @format GUID
|
|
463
|
+
*/
|
|
464
|
+
falsePostActionIds?: string[];
|
|
465
|
+
}
|
|
435
466
|
export interface DelayAction {
|
|
436
467
|
/**
|
|
437
468
|
* Time to wait before running the action. The wait time starts from when the current action completes.
|
|
@@ -557,6 +588,8 @@ export interface Action extends ActionInfoOneOf {
|
|
|
557
588
|
appDefinedInfo?: AppDefinedAction;
|
|
558
589
|
/** Details of the action when its `type` is `CONDITION`. */
|
|
559
590
|
conditionInfo?: ConditionAction;
|
|
591
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
592
|
+
codeConditionInfo?: CodeConditionAction;
|
|
560
593
|
/** Details of the action when its `type` is `DELAY`. */
|
|
561
594
|
delayInfo?: DelayAction;
|
|
562
595
|
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
@@ -585,6 +618,8 @@ export interface ActionInfoOneOf {
|
|
|
585
618
|
appDefinedInfo?: AppDefinedAction;
|
|
586
619
|
/** Details of the action when its `type` is `CONDITION`. */
|
|
587
620
|
conditionInfo?: ConditionAction;
|
|
621
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
622
|
+
codeConditionInfo?: CodeConditionAction;
|
|
588
623
|
/** Details of the action when its `type` is `DELAY`. */
|
|
589
624
|
delayInfo?: DelayAction;
|
|
590
625
|
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IdentityType = exports.Origin = exports.Status = exports.Type = exports.Operator = exports.TimeUnit = exports.Domain = void 0;
|
|
3
|
+
exports.IdentityType = exports.Origin = exports.Status = exports.Type = exports.Language = exports.Operator = exports.TimeUnit = exports.Domain = void 0;
|
|
4
4
|
var Domain;
|
|
5
5
|
(function (Domain) {
|
|
6
6
|
/** User domain (default). */
|
|
@@ -33,6 +33,13 @@ var Operator;
|
|
|
33
33
|
/** `AND` operator. */
|
|
34
34
|
Operator["AND"] = "AND";
|
|
35
35
|
})(Operator || (exports.Operator = Operator = {}));
|
|
36
|
+
var Language;
|
|
37
|
+
(function (Language) {
|
|
38
|
+
/** Unknown. */
|
|
39
|
+
Language["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
40
|
+
/** `JAVASCRIPT` language. */
|
|
41
|
+
Language["JAVASCRIPT"] = "JAVASCRIPT";
|
|
42
|
+
})(Language || (exports.Language = Language = {}));
|
|
36
43
|
var Type;
|
|
37
44
|
(function (Type) {
|
|
38
45
|
/** Based on the trigger. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../src/service-plugins-types.ts"],"names":[],"mappings":";;;AAkNA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC;IAChC,qCAA2B,CAAA;AAC7B,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AA0DD,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,eAAe;IACf,+BAAmB,CAAA;IACnB,aAAa;IACb,2BAAe,CAAA;IACf,YAAY;IACZ,yBAAa,CAAA;IACb,aAAa;IACb,2BAAe,CAAA;IACf,cAAc;IACd,6BAAiB,CAAA;AACnB,CAAC,EAZW,QAAQ,wBAAR,QAAQ,QAYnB;AAiFD,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,eAAe;IACf,iDAAqC,CAAA;IACrC,qBAAqB;IACrB,qBAAS,CAAA;IACT,sBAAsB;IACtB,uBAAW,CAAA;AACb,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAsBD,IAAY,IAWX;AAXD,WAAY,IAAI;IACd,4BAA4B;IAC5B,mDAA2C,CAAA;IAC3C,gOAAgO;IAChO,mCAA2B,CAAA;IAC3B,yDAAyD;IACzD,+BAAuB,CAAA;IACvB,sEAAsE;IACtE,uBAAe,CAAA;IACf,wHAAwH;IACxH,iCAAyB,CAAA;AAC3B,CAAC,EAXW,IAAI,oBAAJ,IAAI,QAWf;
|
|
1
|
+
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../src/service-plugins-types.ts"],"names":[],"mappings":";;;AAkNA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC;IAChC,qCAA2B,CAAA;AAC7B,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AA0DD,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,eAAe;IACf,+BAAmB,CAAA;IACnB,aAAa;IACb,2BAAe,CAAA;IACf,YAAY;IACZ,yBAAa,CAAA;IACb,aAAa;IACb,2BAAe,CAAA;IACf,cAAc;IACd,6BAAiB,CAAA;AACnB,CAAC,EAZW,QAAQ,wBAAR,QAAQ,QAYnB;AAiFD,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,eAAe;IACf,iDAAqC,CAAA;IACrC,qBAAqB;IACrB,qBAAS,CAAA;IACT,sBAAsB;IACtB,uBAAW,CAAA;AACb,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAYD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,eAAe;IACf,iDAAqC,CAAA;IACrC,6BAA6B;IAC7B,qCAAyB,CAAA;AAC3B,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAsBD,IAAY,IAWX;AAXD,WAAY,IAAI;IACd,4BAA4B;IAC5B,mDAA2C,CAAA;IAC3C,gOAAgO;IAChO,mCAA2B,CAAA;IAC3B,yDAAyD;IACzD,+BAAuB,CAAA;IACvB,sEAAsE;IACtE,uBAAe,CAAA;IACf,wHAAwH;IACxH,iCAAyB,CAAA;AAC3B,CAAC,EAXW,IAAI,oBAAJ,IAAI,QAWf;AA4JD,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,eAAe;IACf,2CAAiC,CAAA;IACjC,mDAAmD;IACnD,2BAAiB,CAAA;IACjB,0DAA0D;IAC1D,+BAAqB,CAAA;AACvB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AA0FD,IAAY,MASX;AATD,WAAY,MAAM;IAChB,qBAAqB;IACrB,2CAAiC,CAAA;IACjC,2GAA2G;IAC3G,uBAAa,CAAA;IACb,+HAA+H;IAC/H,qCAA2B,CAAA;IAC3B,2LAA2L;IAC3L,uCAA6B,CAAA;AAC/B,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AA0MD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
|
|
@@ -351,6 +351,21 @@ export declare enum Operator {
|
|
|
351
351
|
/** `AND` operator. */
|
|
352
352
|
AND = "AND"
|
|
353
353
|
}
|
|
354
|
+
export interface CodeSnippet {
|
|
355
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
356
|
+
language?: Language;
|
|
357
|
+
/**
|
|
358
|
+
* Expressions evaluated using the selected operator. this code should comply the language syntax. and format
|
|
359
|
+
* @maxLength 1000
|
|
360
|
+
*/
|
|
361
|
+
code?: string;
|
|
362
|
+
}
|
|
363
|
+
export declare enum Language {
|
|
364
|
+
/** Unknown. */
|
|
365
|
+
UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
|
|
366
|
+
/** `JAVASCRIPT` language. */
|
|
367
|
+
JAVASCRIPT = "JAVASCRIPT"
|
|
368
|
+
}
|
|
354
369
|
/** Path definition */
|
|
355
370
|
export interface Path {
|
|
356
371
|
/**
|
|
@@ -432,6 +447,22 @@ export interface ConditionAction {
|
|
|
432
447
|
*/
|
|
433
448
|
falsePostActionIds?: string[];
|
|
434
449
|
}
|
|
450
|
+
export interface CodeConditionAction {
|
|
451
|
+
/** 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. */
|
|
452
|
+
snippet?: CodeSnippet;
|
|
453
|
+
/**
|
|
454
|
+
* IDs of actions to run when the condition evaluates to `true`.
|
|
455
|
+
* @maxSize 20
|
|
456
|
+
* @format GUID
|
|
457
|
+
*/
|
|
458
|
+
truePostActionIds?: string[];
|
|
459
|
+
/**
|
|
460
|
+
* IDs of actions to run when the condition evaluates to `false`.
|
|
461
|
+
* @maxSize 20
|
|
462
|
+
* @format GUID
|
|
463
|
+
*/
|
|
464
|
+
falsePostActionIds?: string[];
|
|
465
|
+
}
|
|
435
466
|
export interface DelayAction {
|
|
436
467
|
/**
|
|
437
468
|
* Time to wait before running the action. The wait time starts from when the current action completes.
|
|
@@ -557,6 +588,8 @@ export interface Action extends ActionInfoOneOf {
|
|
|
557
588
|
appDefinedInfo?: AppDefinedAction;
|
|
558
589
|
/** Details of the action when its `type` is `CONDITION`. */
|
|
559
590
|
conditionInfo?: ConditionAction;
|
|
591
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
592
|
+
codeConditionInfo?: CodeConditionAction;
|
|
560
593
|
/** Details of the action when its `type` is `DELAY`. */
|
|
561
594
|
delayInfo?: DelayAction;
|
|
562
595
|
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
@@ -585,6 +618,8 @@ export interface ActionInfoOneOf {
|
|
|
585
618
|
appDefinedInfo?: AppDefinedAction;
|
|
586
619
|
/** Details of the action when its `type` is `CONDITION`. */
|
|
587
620
|
conditionInfo?: ConditionAction;
|
|
621
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
622
|
+
codeConditionInfo?: CodeConditionAction;
|
|
588
623
|
/** Details of the action when its `type` is `DELAY`. */
|
|
589
624
|
delayInfo?: DelayAction;
|
|
590
625
|
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
@@ -30,6 +30,13 @@ export var Operator;
|
|
|
30
30
|
/** `AND` operator. */
|
|
31
31
|
Operator["AND"] = "AND";
|
|
32
32
|
})(Operator || (Operator = {}));
|
|
33
|
+
export var Language;
|
|
34
|
+
(function (Language) {
|
|
35
|
+
/** Unknown. */
|
|
36
|
+
Language["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
37
|
+
/** `JAVASCRIPT` language. */
|
|
38
|
+
Language["JAVASCRIPT"] = "JAVASCRIPT";
|
|
39
|
+
})(Language || (Language = {}));
|
|
33
40
|
export var Type;
|
|
34
41
|
(function (Type) {
|
|
35
42
|
/** Based on the trigger. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../src/service-plugins-types.ts"],"names":[],"mappings":"AAkNA,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC;IAChC,qCAA2B,CAAA;AAC7B,CAAC,EAPW,MAAM,KAAN,MAAM,QAOjB;AA0DD,MAAM,CAAN,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,eAAe;IACf,+BAAmB,CAAA;IACnB,aAAa;IACb,2BAAe,CAAA;IACf,YAAY;IACZ,yBAAa,CAAA;IACb,aAAa;IACb,2BAAe,CAAA;IACf,cAAc;IACd,6BAAiB,CAAA;AACnB,CAAC,EAZW,QAAQ,KAAR,QAAQ,QAYnB;AAiFD,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,eAAe;IACf,iDAAqC,CAAA;IACrC,qBAAqB;IACrB,qBAAS,CAAA;IACT,sBAAsB;IACtB,uBAAW,CAAA;AACb,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;AAsBD,MAAM,CAAN,IAAY,IAWX;AAXD,WAAY,IAAI;IACd,4BAA4B;IAC5B,mDAA2C,CAAA;IAC3C,gOAAgO;IAChO,mCAA2B,CAAA;IAC3B,yDAAyD;IACzD,+BAAuB,CAAA;IACvB,sEAAsE;IACtE,uBAAe,CAAA;IACf,wHAAwH;IACxH,iCAAyB,CAAA;AAC3B,CAAC,EAXW,IAAI,KAAJ,IAAI,QAWf;
|
|
1
|
+
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../src/service-plugins-types.ts"],"names":[],"mappings":"AAkNA,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC;IAChC,qCAA2B,CAAA;AAC7B,CAAC,EAPW,MAAM,KAAN,MAAM,QAOjB;AA0DD,MAAM,CAAN,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,eAAe;IACf,+BAAmB,CAAA;IACnB,aAAa;IACb,2BAAe,CAAA;IACf,YAAY;IACZ,yBAAa,CAAA;IACb,aAAa;IACb,2BAAe,CAAA;IACf,cAAc;IACd,6BAAiB,CAAA;AACnB,CAAC,EAZW,QAAQ,KAAR,QAAQ,QAYnB;AAiFD,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,eAAe;IACf,iDAAqC,CAAA;IACrC,qBAAqB;IACrB,qBAAS,CAAA;IACT,sBAAsB;IAC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ippet {
|
|
355
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
356
|
+
language?: Language;
|
|
357
|
+
/**
|
|
358
|
+
* Expressions evaluated using the selected operator. this code should comply the language syntax. and format
|
|
359
|
+
* @maxLength 1000
|
|
360
|
+
*/
|
|
361
|
+
code?: string;
|
|
362
|
+
}
|
|
363
|
+
export declare enum Language {
|
|
364
|
+
/** Unknown. */
|
|
365
|
+
UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
|
|
366
|
+
/** `JAVASCRIPT` language. */
|
|
367
|
+
JAVASCRIPT = "JAVASCRIPT"
|
|
368
|
+
}
|
|
354
369
|
/** Path definition */
|
|
355
370
|
export interface Path {
|
|
356
371
|
/**
|
|
@@ -432,6 +447,22 @@ export interface ConditionAction {
|
|
|
432
447
|
*/
|
|
433
448
|
falsePostActionIds?: string[];
|
|
434
449
|
}
|
|
450
|
+
export interface CodeConditionAction {
|
|
451
|
+
/** 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. */
|
|
452
|
+
snippet?: CodeSnippet;
|
|
453
|
+
/**
|
|
454
|
+
* IDs of actions to run when the condition evaluates to `true`.
|
|
455
|
+
* @maxSize 20
|
|
456
|
+
* @format GUID
|
|
457
|
+
*/
|
|
458
|
+
truePostActionIds?: string[];
|
|
459
|
+
/**
|
|
460
|
+
* IDs of actions to run when the condition evaluates to `false`.
|
|
461
|
+
* @maxSize 20
|
|
462
|
+
* @format GUID
|
|
463
|
+
*/
|
|
464
|
+
falsePostActionIds?: string[];
|
|
465
|
+
}
|
|
435
466
|
export interface DelayAction {
|
|
436
467
|
/**
|
|
437
468
|
* Time to wait before running the action. The wait time starts from when the current action completes.
|
|
@@ -557,6 +588,8 @@ export interface Action extends ActionInfoOneOf {
|
|
|
557
588
|
appDefinedInfo?: AppDefinedAction;
|
|
558
589
|
/** Details of the action when its `type` is `CONDITION`. */
|
|
559
590
|
conditionInfo?: ConditionAction;
|
|
591
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
592
|
+
codeConditionInfo?: CodeConditionAction;
|
|
560
593
|
/** Details of the action when its `type` is `DELAY`. */
|
|
561
594
|
delayInfo?: DelayAction;
|
|
562
595
|
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
@@ -585,6 +618,8 @@ export interface ActionInfoOneOf {
|
|
|
585
618
|
appDefinedInfo?: AppDefinedAction;
|
|
586
619
|
/** Details of the action when its `type` is `CONDITION`. */
|
|
587
620
|
conditionInfo?: ConditionAction;
|
|
621
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
622
|
+
codeConditionInfo?: CodeConditionAction;
|
|
588
623
|
/** Details of the action when its `type` is `DELAY`. */
|
|
589
624
|
delayInfo?: DelayAction;
|
|
590
625
|
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IdentityType = exports.Origin = exports.Status = exports.Type = exports.Operator = exports.TimeUnit = exports.Domain = void 0;
|
|
3
|
+
exports.IdentityType = exports.Origin = exports.Status = exports.Type = exports.Language = exports.Operator = exports.TimeUnit = exports.Domain = void 0;
|
|
4
4
|
var Domain;
|
|
5
5
|
(function (Domain) {
|
|
6
6
|
/** User domain (default). */
|
|
@@ -33,6 +33,13 @@ var Operator;
|
|
|
33
33
|
/** `AND` operator. */
|
|
34
34
|
Operator["AND"] = "AND";
|
|
35
35
|
})(Operator || (exports.Operator = Operator = {}));
|
|
36
|
+
var Language;
|
|
37
|
+
(function (Language) {
|
|
38
|
+
/** Unknown. */
|
|
39
|
+
Language["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
40
|
+
/** `JAVASCRIPT` language. */
|
|
41
|
+
Language["JAVASCRIPT"] = "JAVASCRIPT";
|
|
42
|
+
})(Language || (exports.Language = Language = {}));
|
|
36
43
|
var Type;
|
|
37
44
|
(function (Type) {
|
|
38
45
|
/** Based on the trigger. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../../src/service-plugins-types.ts"],"names":[],"mappings":";;;AAkNA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC;IAChC,qCAA2B,CAAA;AAC7B,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AA0DD,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,eAAe;IACf,+BAAmB,CAAA;IACnB,aAAa;IACb,2BAAe,CAAA;IACf,YAAY;IACZ,yBAAa,CAAA;IACb,aAAa;IACb,2BAAe,CAAA;IACf,cAAc;IACd,6BAAiB,CAAA;AACnB,CAAC,EAZW,QAAQ,wBAAR,QAAQ,QAYnB;AAiFD,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,eAAe;IACf,iDAAqC,CAAA;IACrC,qBAAqB;IACrB,qBAAS,CAAA;IACT,sBAAsB;IACtB,uBAAW,CAAA;AACb,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAsBD,IAAY,IAWX;AAXD,WAAY,IAAI;IACd,4BAA4B;IAC5B,mDAA2C,CAAA;IAC3C,gOAAgO;IAChO,mCAA2B,CAAA;IAC3B,yDAAyD;IACzD,+BAAuB,CAAA;IACvB,sEAAsE;IACtE,uBAAe,CAAA;IACf,wHAAwH;IACxH,iCAAyB,CAAA;AAC3B,CAAC,EAXW,IAAI,oBAAJ,IAAI,QAWf;
|
|
1
|
+
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../../src/service-plugins-types.ts"],"names":[],"mappings":";;;AAkNA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC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AAA;IAC3B,2LAA2L;IAC3L,uCAA6B,CAAA;AAC/B,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AA0MD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
|
|
@@ -351,6 +351,21 @@ export declare enum Operator {
|
|
|
351
351
|
/** `AND` operator. */
|
|
352
352
|
AND = "AND"
|
|
353
353
|
}
|
|
354
|
+
export interface CodeSnippet {
|
|
355
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
356
|
+
language?: Language;
|
|
357
|
+
/**
|
|
358
|
+
* Expressions evaluated using the selected operator. this code should comply the language syntax. and format
|
|
359
|
+
* @maxLength 1000
|
|
360
|
+
*/
|
|
361
|
+
code?: string;
|
|
362
|
+
}
|
|
363
|
+
export declare enum Language {
|
|
364
|
+
/** Unknown. */
|
|
365
|
+
UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
|
|
366
|
+
/** `JAVASCRIPT` language. */
|
|
367
|
+
JAVASCRIPT = "JAVASCRIPT"
|
|
368
|
+
}
|
|
354
369
|
/** Path definition */
|
|
355
370
|
export interface Path {
|
|
356
371
|
/**
|
|
@@ -432,6 +447,22 @@ export interface ConditionAction {
|
|
|
432
447
|
*/
|
|
433
448
|
falsePostActionIds?: string[];
|
|
434
449
|
}
|
|
450
|
+
export interface CodeConditionAction {
|
|
451
|
+
/** 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. */
|
|
452
|
+
snippet?: CodeSnippet;
|
|
453
|
+
/**
|
|
454
|
+
* IDs of actions to run when the condition evaluates to `true`.
|
|
455
|
+
* @maxSize 20
|
|
456
|
+
* @format GUID
|
|
457
|
+
*/
|
|
458
|
+
truePostActionIds?: string[];
|
|
459
|
+
/**
|
|
460
|
+
* IDs of actions to run when the condition evaluates to `false`.
|
|
461
|
+
* @maxSize 20
|
|
462
|
+
* @format GUID
|
|
463
|
+
*/
|
|
464
|
+
falsePostActionIds?: string[];
|
|
465
|
+
}
|
|
435
466
|
export interface DelayAction {
|
|
436
467
|
/**
|
|
437
468
|
* Time to wait before running the action. The wait time starts from when the current action completes.
|
|
@@ -557,6 +588,8 @@ export interface Action extends ActionInfoOneOf {
|
|
|
557
588
|
appDefinedInfo?: AppDefinedAction;
|
|
558
589
|
/** Details of the action when its `type` is `CONDITION`. */
|
|
559
590
|
conditionInfo?: ConditionAction;
|
|
591
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
592
|
+
codeConditionInfo?: CodeConditionAction;
|
|
560
593
|
/** Details of the action when its `type` is `DELAY`. */
|
|
561
594
|
delayInfo?: DelayAction;
|
|
562
595
|
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
@@ -585,6 +618,8 @@ export interface ActionInfoOneOf {
|
|
|
585
618
|
appDefinedInfo?: AppDefinedAction;
|
|
586
619
|
/** Details of the action when its `type` is `CONDITION`. */
|
|
587
620
|
conditionInfo?: ConditionAction;
|
|
621
|
+
/** Details of the action when its `type` is `CODE_CONDITION`. */
|
|
622
|
+
codeConditionInfo?: CodeConditionAction;
|
|
588
623
|
/** Details of the action when its `type` is `DELAY`. */
|
|
589
624
|
delayInfo?: DelayAction;
|
|
590
625
|
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
@@ -30,6 +30,13 @@ export var Operator;
|
|
|
30
30
|
/** `AND` operator. */
|
|
31
31
|
Operator["AND"] = "AND";
|
|
32
32
|
})(Operator || (Operator = {}));
|
|
33
|
+
export var Language;
|
|
34
|
+
(function (Language) {
|
|
35
|
+
/** Unknown. */
|
|
36
|
+
Language["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
37
|
+
/** `JAVASCRIPT` language. */
|
|
38
|
+
Language["JAVASCRIPT"] = "JAVASCRIPT";
|
|
39
|
+
})(Language || (Language = {}));
|
|
33
40
|
export var Type;
|
|
34
41
|
(function (Type) {
|
|
35
42
|
/** Based on the trigger. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../../src/service-plugins-types.ts"],"names":[],"mappings":"AAkNA,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC;IAChC,qCAA2B,CAAA;AAC7B,CAAC,EAPW,MAAM,KAAN,MAAM,QAOjB;AA0DD,MAAM,CAAN,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,eAAe;IACf,+BAAmB,CAAA;IACnB,aAAa;IACb,2BAAe,CAAA;IACf,YAAY;IACZ,yBAAa,CAAA;IACb,aAAa;IACb,2BAAe,CAAA;IACf,cAAc;IACd,6BAAiB,CAAA;AACnB,CAAC,EAZW,QAAQ,KAAR,QAAQ,QAYnB;AAiFD,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,eAAe;IACf,iDAAqC,CAAA;IACrC,qBAAqB;IACrB,qBAAS,CAAA;IACT,sBAAsB;IACtB,uBAAW,CAAA;AACb,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;AAsBD,MAAM,CAAN,IAAY,IAWX;AAXD,WAAY,IAAI;IACd,4BAA4B;IAC5B,mDAA2C,CAAA;IAC3C,gOAAgO;IAChO,mCAA2B,CAAA;IAC3B,yDAAyD;IACzD,+BAAuB,CAAA;IACvB,sEAAsE;IACtE,uBAAe,CAAA;IACf,wHAAwH;IACxH,iCAAyB,CAAA;AAC3B,CAAC,EAXW,IAAI,KAAJ,IAAI,QAWf;
|
|
1
|
+
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../../src/service-plugins-types.ts"],"names":[],"mappings":"AAkNA,MAAM,CAAN,IA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MAAM,KAAN,MAAM,QAOjB;AA0FD,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,qBAAqB;IACrB,2CAAiC,CAAA;IACjC,2GAA2G;IAC3G,uBAAa,CAAA;IACb,+HAA+H;IAC/H,qCAA2B,CAAA;IAC3B,2LAA2L;IAC3L,uCAA6B,CAAA;AAC/B,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AA0MD,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_automations_trigger-provider",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@wix/sdk-runtime": "^0.3.49",
|
|
32
|
-
"@wix/sdk-types": "^1.13.
|
|
32
|
+
"@wix/sdk-types": "^1.13.28"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^5.3.2"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.interfaces.automations.v1.trigger_provider"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "7583556e03f1b0f6338919e00860961da01ae6e2cdae6b3ac0d613b2"
|
|
52
52
|
}
|