@epilot/automation-client 2.22.4 → 2.23.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={330: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},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"},{"name":"include_flows","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"},{"name":"include_flows","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":{}}}}},"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}(330),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={330: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},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"},{"name":"include_flows","in":"query"}],"responses":{}},"post":{"operationId":"createFlow","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/automation/flows:batchGet":{"post":{"operationId":"batchGetFlows","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"},{"name":"include_flows","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":{}}}}},"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}(330),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
@@ -42,6 +42,17 @@
42
42
  "responses": {}
43
43
  }
44
44
  },
45
+ "/v1/automation/flows:batchGet": {
46
+ "post": {
47
+ "operationId": "batchGetFlows",
48
+ "requestBody": {
49
+ "content": {
50
+ "application/json": {}
51
+ }
52
+ },
53
+ "responses": {}
54
+ }
55
+ },
45
56
  "/v1/automation/flows/{flow_id}": {
46
57
  "get": {
47
58
  "operationId": "getFlow",
package/dist/openapi.d.ts CHANGED
@@ -1329,6 +1329,10 @@ declare namespace Components {
1329
1329
  attribute?: string;
1330
1330
  attributeType?: "string" | "text" | "number" | "boolean" | "date" | "datetime" | "tags" | "country" | "email" | "phone" | "product" | "price" | "status" | "relation" | "multiselect" | "select" | "radio" | "relation_user" | "purpose" | "label" | "payment" | "relation_payment_method";
1331
1331
  attributeRepeatable?: boolean;
1332
+ /**
1333
+ * Whether to apply the operation to each item of the repeatable attribute
1334
+ */
1335
+ repeatableItemOp?: boolean;
1332
1336
  attributeOperation?: "all" | "updated" | "added" | "deleted";
1333
1337
  };
1334
1338
  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";
@@ -3394,6 +3398,10 @@ declare namespace Components {
3394
3398
  schedule_id?: string;
3395
3399
  }
3396
3400
  export interface TriggerWebhookConfig {
3401
+ /**
3402
+ * The latest webhook event_id for an execution of this action
3403
+ */
3404
+ event_id?: string;
3397
3405
  entity_sources?: string[];
3398
3406
  target_webhook_id?: string;
3399
3407
  /**
@@ -3625,6 +3633,27 @@ declare namespace Components {
3625
3633
  }
3626
3634
  }
3627
3635
  declare namespace Paths {
3636
+ namespace BatchGetFlows {
3637
+ export interface RequestBody {
3638
+ ids?: /**
3639
+ * ID of the Automation Flow
3640
+ * example:
3641
+ * 7791b04a-16d2-44a2-9af9-2d59c25c512f
3642
+ */
3643
+ Components.Schemas.AutomationFlowId[];
3644
+ }
3645
+ namespace Responses {
3646
+ export type $200 = Components.Schemas.SearchAutomationsResp;
3647
+ export type $403 = /**
3648
+ * example:
3649
+ * {
3650
+ * "status": 403,
3651
+ * "error": "Forbidden"
3652
+ * }
3653
+ */
3654
+ Components.Responses.ForbiddenError;
3655
+ }
3656
+ }
3628
3657
  namespace BulkTriggerExecutions {
3629
3658
  export type RequestBody = Components.Schemas.BulkTriggerRequest;
3630
3659
  namespace Responses {
@@ -4068,6 +4097,16 @@ export interface OperationMethods {
4068
4097
  data?: Paths.CreateFlow.RequestBody,
4069
4098
  config?: AxiosRequestConfig
4070
4099
  ): OperationResponse<Paths.CreateFlow.Responses.$201>
4100
+ /**
4101
+ * batchGetFlows - batchGetFlows
4102
+ *
4103
+ * Get multiple automation flows by their IDs
4104
+ */
4105
+ 'batchGetFlows'(
4106
+ parameters?: Parameters<UnknownParamsObject> | null,
4107
+ data?: Paths.BatchGetFlows.RequestBody,
4108
+ config?: AxiosRequestConfig
4109
+ ): OperationResponse<Paths.BatchGetFlows.Responses.$200>
4071
4110
  /**
4072
4111
  * getFlow - getFlow
4073
4112
  *
@@ -4228,6 +4267,18 @@ export interface PathsDictionary {
4228
4267
  config?: AxiosRequestConfig
4229
4268
  ): OperationResponse<Paths.CreateFlow.Responses.$201>
4230
4269
  }
4270
+ ['/v1/automation/flows:batchGet']: {
4271
+ /**
4272
+ * batchGetFlows - batchGetFlows
4273
+ *
4274
+ * Get multiple automation flows by their IDs
4275
+ */
4276
+ 'post'(
4277
+ parameters?: Parameters<UnknownParamsObject> | null,
4278
+ data?: Paths.BatchGetFlows.RequestBody,
4279
+ config?: AxiosRequestConfig
4280
+ ): OperationResponse<Paths.BatchGetFlows.Responses.$200>
4281
+ }
4231
4282
  ['/v1/automation/flows/{flow_id}']: {
4232
4283
  /**
4233
4284
  * getFlow - getFlow
package/dist/openapi.json CHANGED
@@ -127,6 +127,49 @@
127
127
  }
128
128
  }
129
129
  },
130
+ "/v1/automation/flows:batchGet": {
131
+ "post": {
132
+ "operationId": "batchGetFlows",
133
+ "summary": "batchGetFlows",
134
+ "description": "Get multiple automation flows by their IDs",
135
+ "tags": [
136
+ "flows"
137
+ ],
138
+ "requestBody": {
139
+ "description": "List of flow IDs to retrieve",
140
+ "content": {
141
+ "application/json": {
142
+ "schema": {
143
+ "type": "object",
144
+ "properties": {
145
+ "ids": {
146
+ "type": "array",
147
+ "items": {
148
+ "$ref": "#/components/schemas/AutomationFlowId"
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ },
156
+ "responses": {
157
+ "200": {
158
+ "description": "List of automation flows",
159
+ "content": {
160
+ "application/json": {
161
+ "schema": {
162
+ "$ref": "#/components/schemas/SearchAutomationsResp"
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "403": {
168
+ "$ref": "#/components/responses/ForbiddenError"
169
+ }
170
+ }
171
+ }
172
+ },
130
173
  "/v1/automation/flows/{flow_id}": {
131
174
  "get": {
132
175
  "operationId": "getFlow",
@@ -2531,6 +2574,10 @@
2531
2574
  "TriggerWebhookConfig": {
2532
2575
  "type": "object",
2533
2576
  "properties": {
2577
+ "event_id": {
2578
+ "type": "string",
2579
+ "description": "The latest webhook event_id for an execution of this action"
2580
+ },
2534
2581
  "entity_sources": {
2535
2582
  "type": "array",
2536
2583
  "items": {
@@ -2783,6 +2830,10 @@
2783
2830
  "attributeRepeatable": {
2784
2831
  "type": "boolean"
2785
2832
  },
2833
+ "repeatableItemOp": {
2834
+ "type": "boolean",
2835
+ "description": "Whether to apply the operation to each item of the repeatable attribute"
2836
+ },
2786
2837
  "attributeOperation": {
2787
2838
  "enum": [
2788
2839
  "all",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "2.22.4",
3
+ "version": "2.23.0",
4
4
  "description": "Client library for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",