@epilot/automation-client 2.7.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/definition.js +1 -1
- package/dist/index.js +5 -1
- package/dist/openapi.d.ts +5 -1
- package/dist/openapi.json +10 -1
- package/package.json +3 -3
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,t,o){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(o(240));t.default=i.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v1/automation/flows":{"get":{"operationId":"searchFlows","parameters":[{"name":"schema","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"},{"name":"trigger_source_id","in":"query"}]},"post":{"operationId":"createFlow","requestBody":{"content":{"application/json":{}}}}},"/v1/automation/flows/{flow_id}":{"get":{"operationId":"getFlow","parameters":[{"name":"flow_id","in":"path","required":true}]},"put":{"operationId":"putFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteFlow","parameters":[{"name":"flow_id","in":"path","required":true}]}},"/v1/automation/executions":{"get":{"operationId":"getExecutions","parameters":[{"name":"entity_id","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"}]},"post":{"operationId":"startExecution","requestBody":{"content":{"application/json":{}}}}},"/v1/automation/executions/{execution_id}":{"get":{"operationId":"getExecution","parameters":[{"name":"execution_id","in":"path","required":true}]},"delete":{"operationId":"cancelExecution","parameters":[{"name":"execution_id","in":"path","required":true}]}},"/v1/automation/executions/{execution_id}/{action_id}/retrigger":{"post":{"operationId":"retriggerAction","parameters":[{"name":"execution_id","in":"path","required":true},{"name":"action_id","in":"path","required":true}],"requestBody":{"required":false,"content":{"application/json":{}}}}}},"components":{},"servers":[{"url":"https://automation.sls.epilot.io"}]}')}},t={},o=function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,o),n.exports}(914),r=exports;for(var i in o)r[i]=o[i];o.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
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";
|
|
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,8 @@
|
|
|
714
714
|
"TRIGGER_WORKFLOW_ERROR",
|
|
715
715
|
"TIMEOUT_ERROR",
|
|
716
716
|
"BAD_CONFIG",
|
|
717
|
-
"INTERNAL_ERROR"
|
|
717
|
+
"INTERNAL_ERROR",
|
|
718
|
+
"TRIGGER_WEBHOOK_ERROR"
|
|
718
719
|
]
|
|
719
720
|
},
|
|
720
721
|
"CartCheckoutActionConfig": {
|
|
@@ -1708,6 +1709,11 @@
|
|
|
1708
1709
|
},
|
|
1709
1710
|
"target_webhook_id": {
|
|
1710
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
|
|
1711
1717
|
}
|
|
1712
1718
|
}
|
|
1713
1719
|
},
|
|
@@ -2533,6 +2539,9 @@
|
|
|
2533
2539
|
}
|
|
2534
2540
|
},
|
|
2535
2541
|
"servers": [
|
|
2542
|
+
{
|
|
2543
|
+
"url": "https://automation.sls.epilot.io"
|
|
2544
|
+
},
|
|
2536
2545
|
{
|
|
2537
2546
|
"url": "https://automation.sls.epilot.io"
|
|
2538
2547
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/automation-client",
|
|
3
|
-
"version": "2.7.
|
|
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
|
|
67
|
+
"openapi-client-axios": "^7.5.1",
|
|
68
68
|
"openapi-client-axios-typegen": "^7.4.1",
|
|
69
|
-
"openapicmd": "^1.
|
|
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",
|