@epilot/automation-client 2.16.1 → 2.16.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/definition.js +1 -1
- package/dist/openapi-runtime.json +6 -1
- package/dist/openapi.d.ts +13 -1
- package/dist/openapi.json +43 -1
- package/package.json +2 -2
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914: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(240));t.default=r.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"}],"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":{}}}},"components":{"responses":{"NotFoundError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}}}}}')}},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}(914),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={914: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(240));t.default=r.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"}],"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":{}}}},"components":{"responses":{"NotFoundError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}}}},"servers":[{"url":"https://automation.sls.epilot.io"}]}')}},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}(914),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
|
@@ -469,7 +469,7 @@ declare namespace Components {
|
|
|
469
469
|
* ```
|
|
470
470
|
*
|
|
471
471
|
*/
|
|
472
|
-
EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger;
|
|
472
|
+
EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger | FlowsTrigger;
|
|
473
473
|
export interface AnythingButCondition {
|
|
474
474
|
"anything-but"?: string[];
|
|
475
475
|
}
|
|
@@ -1792,6 +1792,17 @@ declare namespace Components {
|
|
|
1792
1792
|
export type FilterConditionOnEvent = OrCondition | {
|
|
1793
1793
|
[name: string]: (string | EqualsIgnoreCaseCondition | AnythingButCondition | NumericCondition | ExistsCondition | PrefixCondition | SuffixCondition | WildcardCondition)[];
|
|
1794
1794
|
};
|
|
1795
|
+
export interface FlowsTrigger {
|
|
1796
|
+
/**
|
|
1797
|
+
* example:
|
|
1798
|
+
* 12d4f45a-1883-4841-a94c-5928cb338a94
|
|
1799
|
+
*/
|
|
1800
|
+
id?: string; // uuid
|
|
1801
|
+
type: "flows_trigger";
|
|
1802
|
+
configuration: {
|
|
1803
|
+
source_id: string; // uuid
|
|
1804
|
+
};
|
|
1805
|
+
}
|
|
1795
1806
|
export interface FrontendSubmitTrigger {
|
|
1796
1807
|
/**
|
|
1797
1808
|
* example:
|
|
@@ -3653,6 +3664,7 @@ export type ExecItem = Components.Schemas.ExecItem;
|
|
|
3653
3664
|
export type ExecutionStatus = Components.Schemas.ExecutionStatus;
|
|
3654
3665
|
export type ExistsCondition = Components.Schemas.ExistsCondition;
|
|
3655
3666
|
export type FilterConditionOnEvent = Components.Schemas.FilterConditionOnEvent;
|
|
3667
|
+
export type FlowsTrigger = Components.Schemas.FlowsTrigger;
|
|
3656
3668
|
export type FrontendSubmitTrigger = Components.Schemas.FrontendSubmitTrigger;
|
|
3657
3669
|
export type GetExecutionsResp = Components.Schemas.GetExecutionsResp;
|
|
3658
3670
|
export type JobId = Components.Schemas.JobId;
|
package/dist/openapi.json
CHANGED
|
@@ -822,6 +822,9 @@
|
|
|
822
822
|
},
|
|
823
823
|
{
|
|
824
824
|
"$ref": "#/components/schemas/ReceivedEmailTrigger"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"$ref": "#/components/schemas/FlowsTrigger"
|
|
825
828
|
}
|
|
826
829
|
]
|
|
827
830
|
},
|
|
@@ -2901,6 +2904,40 @@
|
|
|
2901
2904
|
}
|
|
2902
2905
|
}
|
|
2903
2906
|
},
|
|
2907
|
+
"FlowsTrigger": {
|
|
2908
|
+
"allOf": [
|
|
2909
|
+
{
|
|
2910
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
2911
|
+
},
|
|
2912
|
+
{
|
|
2913
|
+
"type": "object",
|
|
2914
|
+
"properties": {
|
|
2915
|
+
"type": {
|
|
2916
|
+
"type": "string",
|
|
2917
|
+
"enum": [
|
|
2918
|
+
"flows_trigger"
|
|
2919
|
+
]
|
|
2920
|
+
},
|
|
2921
|
+
"configuration": {
|
|
2922
|
+
"type": "object",
|
|
2923
|
+
"properties": {
|
|
2924
|
+
"source_id": {
|
|
2925
|
+
"type": "string",
|
|
2926
|
+
"format": "uuid"
|
|
2927
|
+
}
|
|
2928
|
+
},
|
|
2929
|
+
"required": [
|
|
2930
|
+
"source_id"
|
|
2931
|
+
]
|
|
2932
|
+
}
|
|
2933
|
+
},
|
|
2934
|
+
"required": [
|
|
2935
|
+
"type",
|
|
2936
|
+
"configuration"
|
|
2937
|
+
]
|
|
2938
|
+
}
|
|
2939
|
+
]
|
|
2940
|
+
},
|
|
2904
2941
|
"JourneySubmitTrigger": {
|
|
2905
2942
|
"allOf": [
|
|
2906
2943
|
{
|
|
@@ -3620,5 +3657,10 @@
|
|
|
3620
3657
|
}
|
|
3621
3658
|
}
|
|
3622
3659
|
}
|
|
3623
|
-
}
|
|
3660
|
+
},
|
|
3661
|
+
"servers": [
|
|
3662
|
+
{
|
|
3663
|
+
"url": "https://automation.sls.epilot.io"
|
|
3664
|
+
}
|
|
3665
|
+
]
|
|
3624
3666
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/automation-client",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.2",
|
|
4
4
|
"description": "Client library for epilot automation API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test": "jest",
|
|
25
25
|
"typescript": "tsc",
|
|
26
26
|
"bundle-definition": "webpack",
|
|
27
|
-
"openapi": "node ../../scripts/update-openapi.js
|
|
27
|
+
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/automation.yaml",
|
|
28
28
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
29
29
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
30
30
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|