@epilot/automation-client 2.6.0 → 2.7.0
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 +1 -5
- package/dist/openapi.d.ts +3 -0
- package/dist/openapi.json +7 -6
- package/package.json +2 -2
package/dist/definition.js
CHANGED
|
@@ -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(
|
|
1
|
+
!function(e,t){for(var o in t)e[o]=t[o];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"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(946));t.default=i.default},946: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={};return function o(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,o),i.exports}(914)})());
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
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
|
-
|
|
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);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1171,6 +1171,9 @@ declare namespace Components {
|
|
|
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 {
|
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": [
|
|
@@ -2126,7 +2130,7 @@
|
|
|
2126
2130
|
"properties": {
|
|
2127
2131
|
"operation": {
|
|
2128
2132
|
"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
|
|
2133
|
+
"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
2134
|
"items": {
|
|
2131
2135
|
"$ref": "#/components/schemas/EntityOperation"
|
|
2132
2136
|
}
|
|
@@ -2193,7 +2197,7 @@
|
|
|
2193
2197
|
"EntityUpdated",
|
|
2194
2198
|
"DocUploadedFromPortal"
|
|
2195
2199
|
],
|
|
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 {
|
|
2200
|
+
"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
2201
|
}
|
|
2198
2202
|
}
|
|
2199
2203
|
}
|
|
@@ -2333,7 +2337,7 @@
|
|
|
2333
2337
|
},
|
|
2334
2338
|
{
|
|
2335
2339
|
"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\": {
|
|
2340
|
+
"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
2341
|
"additionalProperties": {
|
|
2338
2342
|
"type": "array",
|
|
2339
2343
|
"items": {
|
|
@@ -2529,9 +2533,6 @@
|
|
|
2529
2533
|
}
|
|
2530
2534
|
},
|
|
2531
2535
|
"servers": [
|
|
2532
|
-
{
|
|
2533
|
-
"url": "https://automation.sls.epilot.io"
|
|
2534
|
-
},
|
|
2535
2536
|
{
|
|
2536
2537
|
"url": "https://automation.sls.epilot.io"
|
|
2537
2538
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/automation-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Client library for epilot automation API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
"whatwg-url": "^11.0.0"
|
|
77
77
|
},
|
|
78
78
|
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
79
|
-
}
|
|
79
|
+
}
|