@epilot/automation-client 2.8.0 → 2.8.2

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
@@ -1167,7 +1167,7 @@ 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" | "TEMPLATE_ERROR";
1171
1171
  export interface ErrorOutput {
1172
1172
  error_code: ErrorCode;
1173
1173
  error_reason: string;
@@ -1947,6 +1947,10 @@ declare namespace Components {
1947
1947
  export interface TriggerWebhookConfig {
1948
1948
  entity_sources?: string[];
1949
1949
  target_webhook_id?: string;
1950
+ /**
1951
+ * Whether to wait for the request to finish before continuing automation execution
1952
+ */
1953
+ sync?: boolean;
1950
1954
  }
1951
1955
  export interface TriggerWorkflowAction {
1952
1956
  id?: /**
package/dist/openapi.json CHANGED
@@ -714,7 +714,9 @@
714
714
  "TRIGGER_WORKFLOW_ERROR",
715
715
  "TIMEOUT_ERROR",
716
716
  "BAD_CONFIG",
717
- "INTERNAL_ERROR"
717
+ "INTERNAL_ERROR",
718
+ "TRIGGER_WEBHOOK_ERROR",
719
+ "TEMPLATE_ERROR"
718
720
  ]
719
721
  },
720
722
  "CartCheckoutActionConfig": {
@@ -1708,6 +1710,11 @@
1708
1710
  },
1709
1711
  "target_webhook_id": {
1710
1712
  "type": "string"
1713
+ },
1714
+ "sync": {
1715
+ "type": "boolean",
1716
+ "description": "Whether to wait for the request to finish before continuing automation execution",
1717
+ "default": false
1711
1718
  }
1712
1719
  }
1713
1720
  },
@@ -2533,6 +2540,9 @@
2533
2540
  }
2534
2541
  },
2535
2542
  "servers": [
2543
+ {
2544
+ "url": "https://automation.sls.epilot.io"
2545
+ },
2536
2546
  {
2537
2547
  "url": "https://automation.sls.epilot.io"
2538
2548
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -66,7 +66,7 @@
66
66
  "node-fetch": "^3.2.10",
67
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",
@@ -75,5 +75,5 @@
75
75
  "webpack-cli": "^4.4.0",
76
76
  "whatwg-url": "^11.0.0"
77
77
  },
78
- "gitHead": "87e13b737363092db3b30c32df8e0507f7348697"
78
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
79
79
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022 epilot GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.