@epilot/automation-client 2.9.2 → 2.9.4
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/dist/openapi.d.ts +42 -2
- package/dist/openapi.json +32 -2
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -15,7 +15,24 @@ declare namespace Components {
|
|
|
15
15
|
* Result of the condition evaluation
|
|
16
16
|
*/
|
|
17
17
|
evaluationResult?: boolean;
|
|
18
|
-
conditions?:
|
|
18
|
+
conditions?: /**
|
|
19
|
+
* example:
|
|
20
|
+
* {
|
|
21
|
+
* "source": {
|
|
22
|
+
* "origin": "trigger",
|
|
23
|
+
* "originType": "entity",
|
|
24
|
+
* "id": "trigger-id",
|
|
25
|
+
* "schema": "contact",
|
|
26
|
+
* "attribute": "email",
|
|
27
|
+
* "attributeType": "text"
|
|
28
|
+
* },
|
|
29
|
+
* "operation": "equals",
|
|
30
|
+
* "values": [
|
|
31
|
+
* "hello@epilot.cloud"
|
|
32
|
+
* ]
|
|
33
|
+
* }
|
|
34
|
+
*/
|
|
35
|
+
Condition[];
|
|
19
36
|
}
|
|
20
37
|
/**
|
|
21
38
|
* example:
|
|
@@ -877,12 +894,35 @@ declare namespace Components {
|
|
|
877
894
|
target_unique?: string[];
|
|
878
895
|
}
|
|
879
896
|
export type Comparison = "equals" | "any_of" | "not_empty" | "is_empty";
|
|
897
|
+
/**
|
|
898
|
+
* example:
|
|
899
|
+
* {
|
|
900
|
+
* "source": {
|
|
901
|
+
* "origin": "trigger",
|
|
902
|
+
* "originType": "entity",
|
|
903
|
+
* "id": "trigger-id",
|
|
904
|
+
* "schema": "contact",
|
|
905
|
+
* "attribute": "email",
|
|
906
|
+
* "attributeType": "text"
|
|
907
|
+
* },
|
|
908
|
+
* "operation": "equals",
|
|
909
|
+
* "values": [
|
|
910
|
+
* "hello@epilot.cloud"
|
|
911
|
+
* ]
|
|
912
|
+
* }
|
|
913
|
+
*/
|
|
880
914
|
export interface Condition {
|
|
881
915
|
source?: {
|
|
882
|
-
|
|
916
|
+
origin?: "trigger" | "action";
|
|
917
|
+
originType?: "entity" | "workflow" | "journey_block";
|
|
883
918
|
id?: string;
|
|
884
919
|
schema?: string;
|
|
885
920
|
attribute?: string;
|
|
921
|
+
/**
|
|
922
|
+
* example:
|
|
923
|
+
* text | boolean | date | number
|
|
924
|
+
*/
|
|
925
|
+
attributeType?: string;
|
|
886
926
|
};
|
|
887
927
|
operation?: "equals" | "not_equals" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty";
|
|
888
928
|
values?: string[];
|
package/dist/openapi.json
CHANGED
|
@@ -1774,8 +1774,20 @@
|
|
|
1774
1774
|
"source": {
|
|
1775
1775
|
"type": "object",
|
|
1776
1776
|
"properties": {
|
|
1777
|
-
"
|
|
1778
|
-
"type": "string"
|
|
1777
|
+
"origin": {
|
|
1778
|
+
"type": "string",
|
|
1779
|
+
"enum": [
|
|
1780
|
+
"trigger",
|
|
1781
|
+
"action"
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
"originType": {
|
|
1785
|
+
"type": "string",
|
|
1786
|
+
"enum": [
|
|
1787
|
+
"entity",
|
|
1788
|
+
"workflow",
|
|
1789
|
+
"journey_block"
|
|
1790
|
+
]
|
|
1779
1791
|
},
|
|
1780
1792
|
"id": {
|
|
1781
1793
|
"type": "string"
|
|
@@ -1785,6 +1797,10 @@
|
|
|
1785
1797
|
},
|
|
1786
1798
|
"attribute": {
|
|
1787
1799
|
"type": "string"
|
|
1800
|
+
},
|
|
1801
|
+
"attributeType": {
|
|
1802
|
+
"type": "string",
|
|
1803
|
+
"example": "text | boolean | date | number"
|
|
1788
1804
|
}
|
|
1789
1805
|
}
|
|
1790
1806
|
},
|
|
@@ -1811,6 +1827,20 @@
|
|
|
1811
1827
|
"type": "string"
|
|
1812
1828
|
}
|
|
1813
1829
|
}
|
|
1830
|
+
},
|
|
1831
|
+
"example": {
|
|
1832
|
+
"source": {
|
|
1833
|
+
"origin": "trigger",
|
|
1834
|
+
"originType": "entity",
|
|
1835
|
+
"id": "trigger-id",
|
|
1836
|
+
"schema": "contact",
|
|
1837
|
+
"attribute": "email",
|
|
1838
|
+
"attributeType": "text"
|
|
1839
|
+
},
|
|
1840
|
+
"operation": "equals",
|
|
1841
|
+
"values": [
|
|
1842
|
+
"hello@epilot.cloud"
|
|
1843
|
+
]
|
|
1814
1844
|
}
|
|
1815
1845
|
},
|
|
1816
1846
|
"ActionCondition": {
|