@epilot/automation-client 2.9.2 → 2.9.3

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 CHANGED
@@ -15,7 +15,24 @@ declare namespace Components {
15
15
  * Result of the condition evaluation
16
16
  */
17
17
  evaluationResult?: boolean;
18
- conditions?: Condition[];
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,43 @@ 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
- type?: string;
916
+ /**
917
+ * example:
918
+ * action | trigger
919
+ */
920
+ origin?: string;
921
+ /**
922
+ * example:
923
+ * entity | workflow | journey block
924
+ */
925
+ originType?: string;
883
926
  id?: string;
884
927
  schema?: string;
885
928
  attribute?: string;
929
+ /**
930
+ * example:
931
+ * text | boolean | date | number
932
+ */
933
+ attributeType?: string;
886
934
  };
887
935
  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
936
  values?: string[];
package/dist/openapi.json CHANGED
@@ -1774,8 +1774,13 @@
1774
1774
  "source": {
1775
1775
  "type": "object",
1776
1776
  "properties": {
1777
- "type": {
1778
- "type": "string"
1777
+ "origin": {
1778
+ "type": "string",
1779
+ "example": "action | trigger"
1780
+ },
1781
+ "originType": {
1782
+ "type": "string",
1783
+ "example": "entity | workflow | journey block"
1779
1784
  },
1780
1785
  "id": {
1781
1786
  "type": "string"
@@ -1785,6 +1790,10 @@
1785
1790
  },
1786
1791
  "attribute": {
1787
1792
  "type": "string"
1793
+ },
1794
+ "attributeType": {
1795
+ "type": "string",
1796
+ "example": "text | boolean | date | number"
1788
1797
  }
1789
1798
  }
1790
1799
  },
@@ -1811,6 +1820,20 @@
1811
1820
  "type": "string"
1812
1821
  }
1813
1822
  }
1823
+ },
1824
+ "example": {
1825
+ "source": {
1826
+ "origin": "trigger",
1827
+ "originType": "entity",
1828
+ "id": "trigger-id",
1829
+ "schema": "contact",
1830
+ "attribute": "email",
1831
+ "attributeType": "text"
1832
+ },
1833
+ "operation": "equals",
1834
+ "values": [
1835
+ "hello@epilot.cloud"
1836
+ ]
1814
1837
  }
1815
1838
  },
1816
1839
  "ActionCondition": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.9.2",
3
+ "version": "2.9.3",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",