@epilot/automation-client 2.16.0 → 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 +31 -1
- package/dist/openapi.json +48 -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
|
@@ -141,6 +141,12 @@ declare namespace Components {
|
|
|
141
141
|
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
142
142
|
*/
|
|
143
143
|
app_id?: string;
|
|
144
|
+
/**
|
|
145
|
+
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
146
|
+
* example:
|
|
147
|
+
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
148
|
+
*/
|
|
149
|
+
component_id?: string;
|
|
144
150
|
type: "advanced";
|
|
145
151
|
advanced_settings?: {
|
|
146
152
|
[name: string]: any;
|
|
@@ -463,7 +469,7 @@ declare namespace Components {
|
|
|
463
469
|
* ```
|
|
464
470
|
*
|
|
465
471
|
*/
|
|
466
|
-
EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger;
|
|
472
|
+
EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger | FlowsTrigger;
|
|
467
473
|
export interface AnythingButCondition {
|
|
468
474
|
"anything-but"?: string[];
|
|
469
475
|
}
|
|
@@ -920,6 +926,12 @@ declare namespace Components {
|
|
|
920
926
|
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
921
927
|
*/
|
|
922
928
|
app_id?: string;
|
|
929
|
+
/**
|
|
930
|
+
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
931
|
+
* example:
|
|
932
|
+
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
933
|
+
*/
|
|
934
|
+
component_id?: string;
|
|
923
935
|
}
|
|
924
936
|
export interface BasicCustomActionConfig {
|
|
925
937
|
/**
|
|
@@ -936,6 +948,12 @@ declare namespace Components {
|
|
|
936
948
|
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
937
949
|
*/
|
|
938
950
|
app_id?: string;
|
|
951
|
+
/**
|
|
952
|
+
* The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component
|
|
953
|
+
* example:
|
|
954
|
+
* 2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
955
|
+
*/
|
|
956
|
+
component_id?: string;
|
|
939
957
|
type: "basic";
|
|
940
958
|
basic_settings?: {
|
|
941
959
|
/**
|
|
@@ -1774,6 +1792,17 @@ declare namespace Components {
|
|
|
1774
1792
|
export type FilterConditionOnEvent = OrCondition | {
|
|
1775
1793
|
[name: string]: (string | EqualsIgnoreCaseCondition | AnythingButCondition | NumericCondition | ExistsCondition | PrefixCondition | SuffixCondition | WildcardCondition)[];
|
|
1776
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
|
+
}
|
|
1777
1806
|
export interface FrontendSubmitTrigger {
|
|
1778
1807
|
/**
|
|
1779
1808
|
* example:
|
|
@@ -3635,6 +3664,7 @@ export type ExecItem = Components.Schemas.ExecItem;
|
|
|
3635
3664
|
export type ExecutionStatus = Components.Schemas.ExecutionStatus;
|
|
3636
3665
|
export type ExistsCondition = Components.Schemas.ExistsCondition;
|
|
3637
3666
|
export type FilterConditionOnEvent = Components.Schemas.FilterConditionOnEvent;
|
|
3667
|
+
export type FlowsTrigger = Components.Schemas.FlowsTrigger;
|
|
3638
3668
|
export type FrontendSubmitTrigger = Components.Schemas.FrontendSubmitTrigger;
|
|
3639
3669
|
export type GetExecutionsResp = Components.Schemas.GetExecutionsResp;
|
|
3640
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
|
},
|
|
@@ -2020,6 +2023,11 @@
|
|
|
2020
2023
|
"type": "string",
|
|
2021
2024
|
"description": "The ID of the app to fetch configuration from the app API",
|
|
2022
2025
|
"example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2026
|
+
},
|
|
2027
|
+
"component_id": {
|
|
2028
|
+
"type": "string",
|
|
2029
|
+
"description": "The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component",
|
|
2030
|
+
"example": "2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2023
2031
|
}
|
|
2024
2032
|
}
|
|
2025
2033
|
},
|
|
@@ -2896,6 +2904,40 @@
|
|
|
2896
2904
|
}
|
|
2897
2905
|
}
|
|
2898
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
|
+
},
|
|
2899
2941
|
"JourneySubmitTrigger": {
|
|
2900
2942
|
"allOf": [
|
|
2901
2943
|
{
|
|
@@ -3615,5 +3657,10 @@
|
|
|
3615
3657
|
}
|
|
3616
3658
|
}
|
|
3617
3659
|
}
|
|
3618
|
-
}
|
|
3660
|
+
},
|
|
3661
|
+
"servers": [
|
|
3662
|
+
{
|
|
3663
|
+
"url": "https://automation.sls.epilot.io"
|
|
3664
|
+
}
|
|
3665
|
+
]
|
|
3619
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",
|