@epilot/automation-client 2.10.0-rc.1 → 2.10.1

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/client.d.ts CHANGED
File without changes
package/dist/client.js CHANGED
File without changes
File without changes
File without changes
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
package/dist/openapi.d.ts CHANGED
@@ -15,7 +15,7 @@ declare namespace Components {
15
15
  * Result of the condition evaluation
16
16
  */
17
17
  evaluationResult?: boolean;
18
- conditions?: /**
18
+ statements?: /**
19
19
  * example:
20
20
  * {
21
21
  * "source": {
@@ -32,7 +32,7 @@ declare namespace Components {
32
32
  * ]
33
33
  * }
34
34
  */
35
- Condition[];
35
+ ConditionStatement[];
36
36
  }
37
37
  /**
38
38
  * example:
@@ -934,7 +934,7 @@ declare namespace Components {
934
934
  * ]
935
935
  * }
936
936
  */
937
- export interface Condition {
937
+ export interface ConditionStatement {
938
938
  /**
939
939
  * example:
940
940
  * 1c8d3d9c-6d4c-4a83-aa22-aa0d630cbc2d
@@ -946,7 +946,8 @@ declare namespace Components {
946
946
  id?: string;
947
947
  schema?: string;
948
948
  attribute?: string;
949
- attributeType?: "string" | "text" | "number" | "boolean" | "date" | "tag" | "country" | "email" | "phone" | "product" | "price" | "status" | "relation";
949
+ attributeType?: "string" | "text" | "number" | "boolean" | "date" | "datetime" | "tags" | "country" | "email" | "phone" | "product" | "price" | "status" | "relation" | "multiselect" | "select" | "radio" | "relation_user" | "purpose" | "label";
950
+ attributeRepeatable?: boolean;
950
951
  };
951
952
  operation?: "equals" | "not_equals" | "any_of" | "none_of" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty";
952
953
  values?: string[];
@@ -1338,7 +1339,7 @@ declare namespace Components {
1338
1339
  export interface EqualsIgnoreCaseCondition {
1339
1340
  "equals-ignore-case"?: string;
1340
1341
  }
1341
- export type ErrorCode = "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR" | "TRIGGER_WEBHOOK_ERROR" | "TEMPLATE_ERROR";
1342
+ export type ErrorCode = "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR" | "TRIGGER_WEBHOOK_ERROR" | "TEMPLATE_ERROR" | "INVALID_PAYLOAD";
1342
1343
  export interface ErrorDetail {
1343
1344
  explanation: string;
1344
1345
  context?: string;
@@ -1798,6 +1799,10 @@ declare namespace Components {
1798
1799
  */
1799
1800
  ResumeToken;
1800
1801
  }
1802
+ export interface ResumeResp {
1803
+ execution: AutomationExecution;
1804
+ resumedAction: AnyAction;
1805
+ }
1801
1806
  /**
1802
1807
  * A unique token to resume a paused automation execution
1803
1808
  * example:
@@ -2512,8 +2517,7 @@ declare namespace Paths {
2512
2517
  namespace ResumeExecutionWithToken {
2513
2518
  export type RequestBody = Components.Schemas.ResumeReq;
2514
2519
  namespace Responses {
2515
- export interface $200 {
2516
- }
2520
+ export type $200 = Components.Schemas.ResumeResp;
2517
2521
  export interface $400 {
2518
2522
  }
2519
2523
  }
package/dist/openapi.json CHANGED
@@ -424,7 +424,14 @@
424
424
  },
425
425
  "responses": {
426
426
  "200": {
427
- "description": "execution resumed with success"
427
+ "description": "execution resumed with success",
428
+ "content": {
429
+ "application/json": {
430
+ "schema": {
431
+ "$ref": "#/components/schemas/ResumeResp"
432
+ }
433
+ }
434
+ }
428
435
  },
429
436
  "400": {
430
437
  "description": "execution could not be resumed"
@@ -773,7 +780,8 @@
773
780
  "BAD_CONFIG",
774
781
  "INTERNAL_ERROR",
775
782
  "TRIGGER_WEBHOOK_ERROR",
776
- "TEMPLATE_ERROR"
783
+ "TEMPLATE_ERROR",
784
+ "INVALID_PAYLOAD"
777
785
  ]
778
786
  },
779
787
  "ErrorDetail": {
@@ -1802,7 +1810,7 @@
1802
1810
  }
1803
1811
  }
1804
1812
  },
1805
- "Condition": {
1813
+ "ConditionStatement": {
1806
1814
  "type": "object",
1807
1815
  "properties": {
1808
1816
  "id": {
@@ -1845,15 +1853,25 @@
1845
1853
  "number",
1846
1854
  "boolean",
1847
1855
  "date",
1848
- "tag",
1856
+ "datetime",
1857
+ "tags",
1849
1858
  "country",
1850
1859
  "email",
1851
1860
  "phone",
1852
1861
  "product",
1853
1862
  "price",
1854
1863
  "status",
1855
- "relation"
1864
+ "relation",
1865
+ "multiselect",
1866
+ "select",
1867
+ "radio",
1868
+ "relation_user",
1869
+ "purpose",
1870
+ "label"
1856
1871
  ]
1872
+ },
1873
+ "attributeRepeatable": {
1874
+ "type": "boolean"
1857
1875
  }
1858
1876
  }
1859
1877
  },
@@ -1908,10 +1926,10 @@
1908
1926
  "type": "boolean",
1909
1927
  "description": "Result of the condition evaluation"
1910
1928
  },
1911
- "conditions": {
1929
+ "statements": {
1912
1930
  "type": "array",
1913
1931
  "items": {
1914
- "$ref": "#/components/schemas/Condition"
1932
+ "$ref": "#/components/schemas/ConditionStatement"
1915
1933
  }
1916
1934
  }
1917
1935
  }
@@ -2852,6 +2870,21 @@
2852
2870
  "required": [
2853
2871
  "resume_token"
2854
2872
  ]
2873
+ },
2874
+ "ResumeResp": {
2875
+ "type": "object",
2876
+ "properties": {
2877
+ "execution": {
2878
+ "$ref": "#/components/schemas/AutomationExecution"
2879
+ },
2880
+ "resumedAction": {
2881
+ "$ref": "#/components/schemas/AnyAction"
2882
+ }
2883
+ },
2884
+ "required": [
2885
+ "execution",
2886
+ "resumedAction"
2887
+ ]
2855
2888
  }
2856
2889
  }
2857
2890
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.10.0-rc.1",
3
+ "version": "2.10.1",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",