@epilot/automation-client 2.6.0 → 2.7.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/openapi.d.ts CHANGED
@@ -1167,10 +1167,13 @@ declare namespace Components {
1167
1167
  export interface EqualsIgnoreCaseCondition {
1168
1168
  "equals-ignore-case"?: string;
1169
1169
  }
1170
- export type ErrorCode = "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR";
1170
+ export type ErrorCode = "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR" | "TRIGGER_WEBHOOK_ERROR";
1171
1171
  export interface ErrorOutput {
1172
1172
  error_code: ErrorCode;
1173
1173
  error_reason: string;
1174
+ error_info?: {
1175
+ [name: string]: any;
1176
+ };
1174
1177
  }
1175
1178
  export type ExecutionStatus = "pending" | "in_progress" | "success" | "failed" | "cancelled" | "skipped";
1176
1179
  export interface ExistsCondition {
@@ -1944,6 +1947,10 @@ declare namespace Components {
1944
1947
  export interface TriggerWebhookConfig {
1945
1948
  entity_sources?: string[];
1946
1949
  target_webhook_id?: string;
1950
+ /**
1951
+ * Whether to wait for the request to finish before continuing automation execution
1952
+ */
1953
+ sync?: boolean;
1947
1954
  }
1948
1955
  export interface TriggerWorkflowAction {
1949
1956
  id?: /**
package/dist/openapi.json CHANGED
@@ -694,6 +694,10 @@
694
694
  },
695
695
  "error_reason": {
696
696
  "type": "string"
697
+ },
698
+ "error_info": {
699
+ "type": "object",
700
+ "additionalProperties": true
697
701
  }
698
702
  },
699
703
  "required": [
@@ -710,7 +714,8 @@
710
714
  "TRIGGER_WORKFLOW_ERROR",
711
715
  "TIMEOUT_ERROR",
712
716
  "BAD_CONFIG",
713
- "INTERNAL_ERROR"
717
+ "INTERNAL_ERROR",
718
+ "TRIGGER_WEBHOOK_ERROR"
714
719
  ]
715
720
  },
716
721
  "CartCheckoutActionConfig": {
@@ -1704,6 +1709,11 @@
1704
1709
  },
1705
1710
  "target_webhook_id": {
1706
1711
  "type": "string"
1712
+ },
1713
+ "sync": {
1714
+ "type": "boolean",
1715
+ "description": "Whether to wait for the request to finish before continuing automation execution",
1716
+ "default": false
1707
1717
  }
1708
1718
  }
1709
1719
  },
@@ -2126,7 +2136,7 @@
2126
2136
  "properties": {
2127
2137
  "operation": {
2128
2138
  "type": "array",
2129
- "description": "Filter on operation type. If not specified, all operations will be matched on execution.\nExample:\n 1. Filter all the createEntity/updateEntity operations \n ```\n { \n \"operation\":{\n \"operation\": [\"createEntity\", \"updateEntity\"]\n }\n }\n ```\n",
2139
+ "description": "Filter on operation type. If not specified, all operations will be matched on execution.\nExample:\n 1. Filter all the createEntity/updateEntity operations\n ```\n {\n \"operation\":{\n \"operation\": [\"createEntity\", \"updateEntity\"]\n }\n }\n ```\n",
2130
2140
  "items": {
2131
2141
  "$ref": "#/components/schemas/EntityOperation"
2132
2142
  }
@@ -2193,7 +2203,7 @@
2193
2203
  "EntityUpdated",
2194
2204
  "DocUploadedFromPortal"
2195
2205
  ],
2196
- "description": "Filter on activity type. If not specified, all activities will be matched on execution.\nExample:\n 1. Filter the events when an entity is updated from portal\n ```\n { \n \"activity\":{\n \"type\": [\"EntityUpdatedFromPortal\"]\n }\n }\n ```\n 2. Filter the events when either a doc is uploaded/removed on an entity from a portal\n ```\n { \n \"activity\":{\n \"type\": [\"DocUploadedFromPortal\", \"DocRemovedFromPortal\"]\n }\n }\n ```\n"
2206
+ "description": "Filter on activity type. If not specified, all activities will be matched on execution.\nExample:\n 1. Filter the events when an entity is updated from portal\n ```\n {\n \"activity\":{\n \"type\": [\"EntityUpdatedFromPortal\"]\n }\n }\n ```\n 2. Filter the events when either a doc is uploaded/removed on an entity from a portal\n ```\n {\n \"activity\":{\n \"type\": [\"DocUploadedFromPortal\", \"DocRemovedFromPortal\"]\n }\n }\n ```\n"
2197
2207
  }
2198
2208
  }
2199
2209
  }
@@ -2333,7 +2343,7 @@
2333
2343
  },
2334
2344
  {
2335
2345
  "type": "object",
2336
- "description": "- Filter on entity payload that is modified. If not specified, entire entity be matched on execution.\n Example:\n ```\n {\n \"operation\": {\n \"payload\": {\n \"_schema\": [\"contact\"]\n \"address\": { \n \"country\": [\"Germany\"] \n }\n age: [ { \"numeric\": [ \">\", 25, \"<=\", 35 ] } ]\n }\n }\n }\n",
2346
+ "description": "- Filter on entity payload that is modified. If not specified, entire entity be matched on execution.\n Example:\n ```\n {\n \"operation\": {\n \"payload\": {\n \"_schema\": [\"contact\"]\n \"address\": {\n \"country\": [\"Germany\"]\n }\n age: [ { \"numeric\": [ \">\", 25, \"<=\", 35 ] } ]\n }\n }\n }\n",
2337
2347
  "additionalProperties": {
2338
2348
  "type": "array",
2339
2349
  "items": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -64,9 +64,9 @@
64
64
  "jest": "^26.6.3",
65
65
  "json-loader": "^0.5.7",
66
66
  "node-fetch": "^3.2.10",
67
- "openapi-client-axios": "^7.1.3",
67
+ "openapi-client-axios": "^7.5.1",
68
68
  "openapi-client-axios-typegen": "^7.4.1",
69
- "openapicmd": "^1.16.2",
69
+ "openapicmd": "^2.1.0",
70
70
  "ts-jest": "^26.5.0",
71
71
  "ts-loader": "^8.0.14",
72
72
  "ts-node": "^10.9.1",
@@ -76,4 +76,4 @@
76
76
  "whatwg-url": "^11.0.0"
77
77
  },
78
78
  "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
79
- }
79
+ }