@epilot/automation-client 2.11.1 → 2.11.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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Client library for epilot [Workflow API](https://docs.epilot.io/api/automation)
9
9
 
10
- Uses [`openapi-client-axios`](https://github.com/anttiviljami/openapi-client-axios)
10
+ Uses [`openapi-client-axios`](https://github.com/openapistack/openapi-client-axios)
11
11
 
12
12
  ## Installation
13
13
 
package/dist/client.d.ts CHANGED
File without changes
package/dist/client.js CHANGED
File without changes
File without changes
@@ -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":{}}}}},"/v1/automation/public/executions:resume":{"post":{"operationId":"resumeExecutionWithToken","requestBody":{"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})})();
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 n=r(o(240));t.default=n.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/{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":{},"servers":[{"url":"https://automation.sls.epilot.io"}]}')}},t={},o=function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,o),i.exports}(914),r=exports;for(var n in o)r[n]=o[n];o.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
@@ -25,7 +25,8 @@
25
25
  "name": "trigger_source_id",
26
26
  "in": "query"
27
27
  }
28
- ]
28
+ ],
29
+ "responses": {}
29
30
  },
30
31
  "post": {
31
32
  "operationId": "createFlow",
@@ -33,7 +34,8 @@
33
34
  "content": {
34
35
  "application/json": {}
35
36
  }
36
- }
37
+ },
38
+ "responses": {}
37
39
  }
38
40
  },
39
41
  "/v1/automation/flows/{flow_id}": {
@@ -45,7 +47,8 @@
45
47
  "in": "path",
46
48
  "required": true
47
49
  }
48
- ]
50
+ ],
51
+ "responses": {}
49
52
  },
50
53
  "put": {
51
54
  "operationId": "putFlow",
@@ -60,7 +63,8 @@
60
63
  "content": {
61
64
  "application/json": {}
62
65
  }
63
- }
66
+ },
67
+ "responses": {}
64
68
  },
65
69
  "delete": {
66
70
  "operationId": "deleteFlow",
@@ -70,7 +74,8 @@
70
74
  "in": "path",
71
75
  "required": true
72
76
  }
73
- ]
77
+ ],
78
+ "responses": {}
74
79
  }
75
80
  },
76
81
  "/v1/automation/executions": {
@@ -89,7 +94,8 @@
89
94
  "name": "from",
90
95
  "in": "query"
91
96
  }
92
- ]
97
+ ],
98
+ "responses": {}
93
99
  },
94
100
  "post": {
95
101
  "operationId": "startExecution",
@@ -97,7 +103,8 @@
97
103
  "content": {
98
104
  "application/json": {}
99
105
  }
100
- }
106
+ },
107
+ "responses": {}
101
108
  }
102
109
  },
103
110
  "/v1/automation/executions/{execution_id}": {
@@ -109,7 +116,8 @@
109
116
  "in": "path",
110
117
  "required": true
111
118
  }
112
- ]
119
+ ],
120
+ "responses": {}
113
121
  },
114
122
  "delete": {
115
123
  "operationId": "cancelExecution",
@@ -119,7 +127,8 @@
119
127
  "in": "path",
120
128
  "required": true
121
129
  }
122
- ]
130
+ ],
131
+ "responses": {}
123
132
  }
124
133
  },
125
134
  "/v1/automation/executions/{execution_id}/{action_id}/retrigger": {
@@ -142,7 +151,8 @@
142
151
  "content": {
143
152
  "application/json": {}
144
153
  }
145
- }
154
+ },
155
+ "responses": {}
146
156
  }
147
157
  },
148
158
  "/v1/automation/public/executions:resume": {
@@ -152,7 +162,8 @@
152
162
  "content": {
153
163
  "application/json": {}
154
164
  }
155
- }
165
+ },
166
+ "responses": {}
156
167
  }
157
168
  }
158
169
  },
package/dist/openapi.d.ts CHANGED
@@ -949,6 +949,7 @@ declare namespace Components {
949
949
  attribute?: string;
950
950
  attributeType?: "string" | "text" | "number" | "boolean" | "date" | "datetime" | "tags" | "country" | "email" | "phone" | "product" | "price" | "status" | "relation" | "multiselect" | "select" | "radio" | "relation_user" | "purpose" | "label";
951
951
  attributeRepeatable?: boolean;
952
+ attributeOperation?: "all" | "updated" | "added" | "deleted";
952
953
  };
953
954
  operation?: "equals" | "not_equals" | "any_of" | "none_of" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty";
954
955
  values?: string[];
package/dist/openapi.json CHANGED
@@ -1872,6 +1872,14 @@
1872
1872
  },
1873
1873
  "attributeRepeatable": {
1874
1874
  "type": "boolean"
1875
+ },
1876
+ "attributeOperation": {
1877
+ "enum": [
1878
+ "all",
1879
+ "updated",
1880
+ "added",
1881
+ "deleted"
1882
+ ]
1875
1883
  }
1876
1884
  }
1877
1885
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
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
- "build:patch": "sed -i '/^__exportStar.*openapi.*$/d' dist/index.js",
30
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
31
31
  "build:watch": "npm run build && tsc -w",
32
32
  "prepublishOnly": "npm run typegen && npm run build",
33
33
  "lint": "../../node_modules/eslint/bin/eslint.js src"
@@ -75,5 +75,5 @@
75
75
  "webpack-cli": "^4.4.0",
76
76
  "whatwg-url": "^11.0.0"
77
77
  },
78
- "gitHead": "cb7e6acc938eb178e531c19834ea8bd0d6445e6f"
78
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
79
79
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022 epilot GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.