@epilot/automation-client 2.18.2 → 2.18.7
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.js +1 -2
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +1 -6
- package/dist/openapi.d.ts +3 -1
- package/dist/openapi.json +3 -7
- package/package.json +4 -5
package/dist/client.js
CHANGED
|
@@ -15,7 +15,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.createClient = exports.getClient = void 0;
|
|
18
|
-
var lambda_powertools_correlation_ids_1 = __importDefault(require("@dazn/lambda-powertools-correlation-ids"));
|
|
19
18
|
var openapi_client_axios_1 = __importDefault(require("openapi-client-axios"));
|
|
20
19
|
var definition_1 = __importDefault(require("./definition"));
|
|
21
20
|
var client;
|
|
@@ -30,7 +29,7 @@ var createClient = function () {
|
|
|
30
29
|
var _a;
|
|
31
30
|
var api = new openapi_client_axios_1.default({ definition: definition_1.default, quick: true });
|
|
32
31
|
var apiClient = api.initSync();
|
|
33
|
-
apiClient.defaults.headers.common = __assign(
|
|
32
|
+
apiClient.defaults.headers.common = __assign({}, ((_a = apiClient.defaults.headers.common) !== null && _a !== void 0 ? _a : {}));
|
|
34
33
|
return apiClient;
|
|
35
34
|
};
|
|
36
35
|
exports.createClient = createClient;
|
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={466: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"}],"responses":{}},"post":{"operationId":"createFlow","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/flows/{flow_id}":{"get":{"operationId":"getFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteFlow","parameters":[{"name":"flow_id","in":"path","required":true}],"responses":{}}},"/v1/automation/executions":{"get":{"operationId":"getExecutions","parameters":[{"name":"entity_id","in":"query"},{"name":"size","in":"query"},{"name":"from","in":"query"}],"responses":{}},"post":{"operationId":"startExecution","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs":{"post":{"operationId":"bulkTriggerExecutions","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/bulk-jobs/{job_id}":{"get":{"operationId":"getBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"responses":{}},"patch":{"operationId":"patchBulkJob","parameters":[{"name":"job_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/{execution_id}":{"get":{"operationId":"getExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"cancelExecution","parameters":[{"name":"execution_id","in":"path","required":true}],"responses":{}}},"/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":{}}},"responses":{}}},"/v1/automation/public/executions:resume":{"post":{"operationId":"resumeExecutionWithToken","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/executions/{execution_id}/schedules/{schedule_id}":{"delete":{"operationId":"cancelSchedule","parameters":[{"name":"execution_id","in":"path","required":true},{"name":"schedule_id","in":"path","required":true}],"responses":{}}}},"components":{"responses":{"NotFoundError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}}}}}')},757:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(466));t.default=r.default}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}(757),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1942,7 +1942,7 @@ declare namespace Components {
|
|
|
1942
1942
|
export interface EqualsIgnoreCaseCondition {
|
|
1943
1943
|
"equals-ignore-case"?: string;
|
|
1944
1944
|
}
|
|
1945
|
-
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" | "INVALID_SCHEDULE_CONFIG";
|
|
1945
|
+
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" | "INVALID_SCHEDULE_CONFIG" | "CUSTOM_ACTION_ERROR";
|
|
1946
1946
|
export interface ErrorDetail {
|
|
1947
1947
|
explanation: string;
|
|
1948
1948
|
context?: string;
|
|
@@ -3959,6 +3959,7 @@ declare namespace Paths {
|
|
|
3959
3959
|
}
|
|
3960
3960
|
}
|
|
3961
3961
|
|
|
3962
|
+
|
|
3962
3963
|
export interface OperationMethods {
|
|
3963
3964
|
/**
|
|
3964
3965
|
* searchFlows - searchFlows
|
|
@@ -4295,6 +4296,7 @@ export interface PathsDictionary {
|
|
|
4295
4296
|
|
|
4296
4297
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
4297
4298
|
|
|
4299
|
+
|
|
4298
4300
|
export type ActionCondition = Components.Schemas.ActionCondition;
|
|
4299
4301
|
export type ActionSchedule = Components.Schemas.ActionSchedule;
|
|
4300
4302
|
export type ActionScheduleSource = Components.Schemas.ActionScheduleSource;
|
package/dist/openapi.json
CHANGED
|
@@ -1335,7 +1335,8 @@
|
|
|
1335
1335
|
"TRIGGER_WEBHOOK_ERROR",
|
|
1336
1336
|
"TEMPLATE_ERROR",
|
|
1337
1337
|
"INVALID_PAYLOAD",
|
|
1338
|
-
"INVALID_SCHEDULE_CONFIG"
|
|
1338
|
+
"INVALID_SCHEDULE_CONFIG",
|
|
1339
|
+
"CUSTOM_ACTION_ERROR"
|
|
1339
1340
|
]
|
|
1340
1341
|
},
|
|
1341
1342
|
"ErrorDetail": {
|
|
@@ -4408,10 +4409,5 @@
|
|
|
4408
4409
|
}
|
|
4409
4410
|
}
|
|
4410
4411
|
}
|
|
4411
|
-
}
|
|
4412
|
-
"servers": [
|
|
4413
|
-
{
|
|
4414
|
-
"url": "https://automation.sls.epilot.io"
|
|
4415
|
-
}
|
|
4416
|
-
]
|
|
4412
|
+
}
|
|
4417
4413
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/automation-client",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.7",
|
|
4
4
|
"description": "Client library for epilot automation API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
32
32
|
"build:watch": "npm run build && tsc -w",
|
|
33
33
|
"prepublishOnly": "npm run typegen && npm run build",
|
|
34
|
-
"lint": "
|
|
34
|
+
"lint": "pnpm exec eslint src"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"*.js",
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"axios": "^1.6.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@dazn/lambda-powertools-correlation-ids": "^1.28.1",
|
|
54
53
|
"buffer": "^6.0.3",
|
|
55
54
|
"https-browserify": "^1.0.0",
|
|
56
55
|
"stream-http": "^3.1.1",
|
|
@@ -66,8 +65,8 @@
|
|
|
66
65
|
"jest": "^26.6.3",
|
|
67
66
|
"json-loader": "^0.5.7",
|
|
68
67
|
"node-fetch": "^3.2.10",
|
|
69
|
-
"openapi-client-axios": "^7.
|
|
70
|
-
"openapicmd": "^2.
|
|
68
|
+
"openapi-client-axios": "^7.6.0",
|
|
69
|
+
"openapicmd": "^2.7.0",
|
|
71
70
|
"ts-jest": "^26.5.0",
|
|
72
71
|
"ts-loader": "^8.0.14",
|
|
73
72
|
"ts-node": "^10.9.1",
|