@emilgroup/action-sdk 1.0.1-beta.22 → 1.1.1-beta.1

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.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +983 -0
  4. package/api.ts +2 -0
  5. package/dist/api/actions-api.d.ts +559 -0
  6. package/dist/api/actions-api.js +864 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/action-class.d.ts +84 -0
  10. package/dist/models/action-class.js +15 -0
  11. package/dist/models/action-execution-class.d.ts +107 -0
  12. package/dist/models/action-execution-class.js +15 -0
  13. package/dist/models/create-action-request-dto.d.ts +48 -0
  14. package/dist/models/create-action-request-dto.js +15 -0
  15. package/dist/models/create-action-response-class.d.ts +25 -0
  16. package/dist/models/create-action-response-class.js +15 -0
  17. package/dist/models/get-action-execution-status-response-class.d.ts +25 -0
  18. package/dist/models/get-action-execution-status-response-class.js +15 -0
  19. package/dist/models/get-action-response-class.d.ts +25 -0
  20. package/dist/models/get-action-response-class.js +15 -0
  21. package/dist/models/index.d.ts +11 -0
  22. package/dist/models/index.js +11 -0
  23. package/dist/models/list-action-executions-response-class.d.ts +43 -0
  24. package/dist/models/list-action-executions-response-class.js +15 -0
  25. package/dist/models/list-actions-response-class.d.ts +43 -0
  26. package/dist/models/list-actions-response-class.js +15 -0
  27. package/dist/models/update-action-request-dto.d.ts +54 -0
  28. package/dist/models/update-action-request-dto.js +15 -0
  29. package/dist/models/update-action-response-class.d.ts +25 -0
  30. package/dist/models/update-action-response-class.js +15 -0
  31. package/dist/models/workflow-output-reference-class.d.ts +30 -0
  32. package/dist/models/workflow-output-reference-class.js +15 -0
  33. package/models/action-class.ts +90 -0
  34. package/models/action-execution-class.ts +109 -0
  35. package/models/create-action-request-dto.ts +54 -0
  36. package/models/create-action-response-class.ts +31 -0
  37. package/models/get-action-execution-status-response-class.ts +31 -0
  38. package/models/get-action-response-class.ts +31 -0
  39. package/models/index.ts +11 -0
  40. package/models/list-action-executions-response-class.ts +49 -0
  41. package/models/list-actions-response-class.ts +49 -0
  42. package/models/update-action-request-dto.ts +60 -0
  43. package/models/update-action-response-class.ts +31 -0
  44. package/models/workflow-output-reference-class.ts +36 -0
  45. package/package.json +2 -1
@@ -0,0 +1,864 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ActionService
6
+ * The EMIL ActionService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * ActionsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var ActionsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Creates a new action configuration
97
+ * @summary Create the action
98
+ * @param {CreateActionRequestDto} createActionRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createAction: function (createActionRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createActionRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createAction', 'createActionRequestDto', createActionRequestDto);
112
+ localVarPath = "/actionservice/v1/actions";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActionRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * Deletes an action configuration by its code
146
+ * @summary Delete the action
147
+ * @param {string} code Action code
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ deleteAction: function (code, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'code' is not null or undefined
160
+ (0, common_1.assertParamExists)('deleteAction', 'code', code);
161
+ localVarPath = "/actionservice/v1/actions/{code}"
162
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ /**
193
+ * Retrieves an action configuration by its code
194
+ * @summary Retrieve the action
195
+ * @param {string} code Action code
196
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ getAction: function (code, authorization, options) {
201
+ if (options === void 0) { options = {}; }
202
+ return __awaiter(_this, void 0, void 0, function () {
203
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0:
207
+ // verify required parameter 'code' is not null or undefined
208
+ (0, common_1.assertParamExists)('getAction', 'code', code);
209
+ localVarPath = "/actionservice/v1/actions/{code}"
210
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ baseAccessToken = configuration.accessToken;
215
+ }
216
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
217
+ localVarHeaderParameter = {};
218
+ localVarQueryParameter = {};
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
+ case 1:
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ _a.sent();
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ }
229
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ return [2 /*return*/, {
233
+ url: (0, common_1.toPathString)(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ }];
236
+ }
237
+ });
238
+ });
239
+ },
240
+ /**
241
+ * Retrieves the latest action execution status by executionCode or correlationId
242
+ * @summary Retrieve the actionExecution
243
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
+ * @param {string} [executionCode] Action execution code
245
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
250
+ if (options === void 0) { options = {}; }
251
+ return __awaiter(_this, void 0, void 0, function () {
252
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
+ return __generator(this, function (_a) {
254
+ switch (_a.label) {
255
+ case 0:
256
+ localVarPath = "/actionservice/v1/actions/executions/status";
257
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
258
+ if (configuration) {
259
+ baseOptions = configuration.baseOptions;
260
+ baseAccessToken = configuration.accessToken;
261
+ }
262
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
263
+ localVarHeaderParameter = {};
264
+ localVarQueryParameter = {};
265
+ // authentication bearer required
266
+ // http bearer authentication required
267
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
268
+ case 1:
269
+ // authentication bearer required
270
+ // http bearer authentication required
271
+ _a.sent();
272
+ if (executionCode !== undefined) {
273
+ localVarQueryParameter['executionCode'] = executionCode;
274
+ }
275
+ if (correlationId !== undefined) {
276
+ localVarQueryParameter['correlationId'] = correlationId;
277
+ }
278
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
279
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
280
+ }
281
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
282
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
283
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
284
+ return [2 /*return*/, {
285
+ url: (0, common_1.toPathString)(localVarUrlObj),
286
+ options: localVarRequestOptions,
287
+ }];
288
+ }
289
+ });
290
+ });
291
+ },
292
+ /**
293
+ * Lists action executions with optional filters
294
+ * @summary List actionExecutions
295
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
297
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
298
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
299
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
300
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
301
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
302
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
307
+ if (options === void 0) { options = {}; }
308
+ return __awaiter(_this, void 0, void 0, function () {
309
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
310
+ return __generator(this, function (_a) {
311
+ switch (_a.label) {
312
+ case 0:
313
+ localVarPath = "/actionservice/v1/actions/executions";
314
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
315
+ if (configuration) {
316
+ baseOptions = configuration.baseOptions;
317
+ baseAccessToken = configuration.accessToken;
318
+ }
319
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
320
+ localVarHeaderParameter = {};
321
+ localVarQueryParameter = {};
322
+ // authentication bearer required
323
+ // http bearer authentication required
324
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
325
+ case 1:
326
+ // authentication bearer required
327
+ // http bearer authentication required
328
+ _a.sent();
329
+ if (pageSize !== undefined) {
330
+ localVarQueryParameter['pageSize'] = pageSize;
331
+ }
332
+ if (pageToken !== undefined) {
333
+ localVarQueryParameter['pageToken'] = pageToken;
334
+ }
335
+ if (filter !== undefined) {
336
+ localVarQueryParameter['filter'] = filter;
337
+ }
338
+ if (search !== undefined) {
339
+ localVarQueryParameter['search'] = search;
340
+ }
341
+ if (order !== undefined) {
342
+ localVarQueryParameter['order'] = order;
343
+ }
344
+ if (expand !== undefined) {
345
+ localVarQueryParameter['expand'] = expand;
346
+ }
347
+ if (filters !== undefined) {
348
+ localVarQueryParameter['filters'] = filters;
349
+ }
350
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
351
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
352
+ }
353
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
354
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
356
+ return [2 /*return*/, {
357
+ url: (0, common_1.toPathString)(localVarUrlObj),
358
+ options: localVarRequestOptions,
359
+ }];
360
+ }
361
+ });
362
+ });
363
+ },
364
+ /**
365
+ * Lists all action configurations with optional filters
366
+ * @summary List actions
367
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
368
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
369
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
370
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
371
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
372
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
373
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
374
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
379
+ if (options === void 0) { options = {}; }
380
+ return __awaiter(_this, void 0, void 0, function () {
381
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
382
+ return __generator(this, function (_a) {
383
+ switch (_a.label) {
384
+ case 0:
385
+ localVarPath = "/actionservice/v1/actions";
386
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
387
+ if (configuration) {
388
+ baseOptions = configuration.baseOptions;
389
+ baseAccessToken = configuration.accessToken;
390
+ }
391
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
392
+ localVarHeaderParameter = {};
393
+ localVarQueryParameter = {};
394
+ // authentication bearer required
395
+ // http bearer authentication required
396
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
397
+ case 1:
398
+ // authentication bearer required
399
+ // http bearer authentication required
400
+ _a.sent();
401
+ if (pageSize !== undefined) {
402
+ localVarQueryParameter['pageSize'] = pageSize;
403
+ }
404
+ if (pageToken !== undefined) {
405
+ localVarQueryParameter['pageToken'] = pageToken;
406
+ }
407
+ if (filter !== undefined) {
408
+ localVarQueryParameter['filter'] = filter;
409
+ }
410
+ if (search !== undefined) {
411
+ localVarQueryParameter['search'] = search;
412
+ }
413
+ if (order !== undefined) {
414
+ localVarQueryParameter['order'] = order;
415
+ }
416
+ if (expand !== undefined) {
417
+ localVarQueryParameter['expand'] = expand;
418
+ }
419
+ if (filters !== undefined) {
420
+ localVarQueryParameter['filters'] = filters;
421
+ }
422
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
423
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
424
+ }
425
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
426
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
427
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
428
+ return [2 /*return*/, {
429
+ url: (0, common_1.toPathString)(localVarUrlObj),
430
+ options: localVarRequestOptions,
431
+ }];
432
+ }
433
+ });
434
+ });
435
+ },
436
+ /**
437
+ * Updates an existing action configuration (patch semantics)
438
+ * @summary Update the action
439
+ * @param {string} code Action code
440
+ * @param {UpdateActionRequestDto} updateActionRequestDto
441
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
446
+ if (options === void 0) { options = {}; }
447
+ return __awaiter(_this, void 0, void 0, function () {
448
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
449
+ return __generator(this, function (_a) {
450
+ switch (_a.label) {
451
+ case 0:
452
+ // verify required parameter 'code' is not null or undefined
453
+ (0, common_1.assertParamExists)('updateAction', 'code', code);
454
+ // verify required parameter 'updateActionRequestDto' is not null or undefined
455
+ (0, common_1.assertParamExists)('updateAction', 'updateActionRequestDto', updateActionRequestDto);
456
+ localVarPath = "/actionservice/v1/actions/{code}"
457
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
458
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
459
+ if (configuration) {
460
+ baseOptions = configuration.baseOptions;
461
+ baseAccessToken = configuration.accessToken;
462
+ }
463
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
464
+ localVarHeaderParameter = {};
465
+ localVarQueryParameter = {};
466
+ // authentication bearer required
467
+ // http bearer authentication required
468
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
469
+ case 1:
470
+ // authentication bearer required
471
+ // http bearer authentication required
472
+ _a.sent();
473
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
474
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
475
+ }
476
+ localVarHeaderParameter['Content-Type'] = 'application/json';
477
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
478
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
479
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
480
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
481
+ return [2 /*return*/, {
482
+ url: (0, common_1.toPathString)(localVarUrlObj),
483
+ options: localVarRequestOptions,
484
+ }];
485
+ }
486
+ });
487
+ });
488
+ },
489
+ };
490
+ };
491
+ exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
492
+ /**
493
+ * ActionsApi - functional programming interface
494
+ * @export
495
+ */
496
+ var ActionsApiFp = function (configuration) {
497
+ var localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
498
+ return {
499
+ /**
500
+ * Creates a new action configuration
501
+ * @summary Create the action
502
+ * @param {CreateActionRequestDto} createActionRequestDto
503
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
504
+ * @param {*} [options] Override http request option.
505
+ * @throws {RequiredError}
506
+ */
507
+ createAction: function (createActionRequestDto, authorization, options) {
508
+ return __awaiter(this, void 0, void 0, function () {
509
+ var localVarAxiosArgs;
510
+ return __generator(this, function (_a) {
511
+ switch (_a.label) {
512
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAction(createActionRequestDto, authorization, options)];
513
+ case 1:
514
+ localVarAxiosArgs = _a.sent();
515
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
516
+ }
517
+ });
518
+ });
519
+ },
520
+ /**
521
+ * Deletes an action configuration by its code
522
+ * @summary Delete the action
523
+ * @param {string} code Action code
524
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ deleteAction: function (code, authorization, options) {
529
+ return __awaiter(this, void 0, void 0, function () {
530
+ var localVarAxiosArgs;
531
+ return __generator(this, function (_a) {
532
+ switch (_a.label) {
533
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction(code, authorization, options)];
534
+ case 1:
535
+ localVarAxiosArgs = _a.sent();
536
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
537
+ }
538
+ });
539
+ });
540
+ },
541
+ /**
542
+ * Retrieves an action configuration by its code
543
+ * @summary Retrieve the action
544
+ * @param {string} code Action code
545
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ getAction: function (code, authorization, options) {
550
+ return __awaiter(this, void 0, void 0, function () {
551
+ var localVarAxiosArgs;
552
+ return __generator(this, function (_a) {
553
+ switch (_a.label) {
554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
555
+ case 1:
556
+ localVarAxiosArgs = _a.sent();
557
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
558
+ }
559
+ });
560
+ });
561
+ },
562
+ /**
563
+ * Retrieves the latest action execution status by executionCode or correlationId
564
+ * @summary Retrieve the actionExecution
565
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
566
+ * @param {string} [executionCode] Action execution code
567
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
572
+ return __awaiter(this, void 0, void 0, function () {
573
+ var localVarAxiosArgs;
574
+ return __generator(this, function (_a) {
575
+ switch (_a.label) {
576
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options)];
577
+ case 1:
578
+ localVarAxiosArgs = _a.sent();
579
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
580
+ }
581
+ });
582
+ });
583
+ },
584
+ /**
585
+ * Lists action executions with optional filters
586
+ * @summary List actionExecutions
587
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
588
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
589
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
590
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
591
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
592
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
593
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
594
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ */
598
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
599
+ return __awaiter(this, void 0, void 0, function () {
600
+ var localVarAxiosArgs;
601
+ return __generator(this, function (_a) {
602
+ switch (_a.label) {
603
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
604
+ case 1:
605
+ localVarAxiosArgs = _a.sent();
606
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
607
+ }
608
+ });
609
+ });
610
+ },
611
+ /**
612
+ * Lists all action configurations with optional filters
613
+ * @summary List actions
614
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
615
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
616
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
617
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
618
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
619
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
620
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
621
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
626
+ return __awaiter(this, void 0, void 0, function () {
627
+ var localVarAxiosArgs;
628
+ return __generator(this, function (_a) {
629
+ switch (_a.label) {
630
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
631
+ case 1:
632
+ localVarAxiosArgs = _a.sent();
633
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
634
+ }
635
+ });
636
+ });
637
+ },
638
+ /**
639
+ * Updates an existing action configuration (patch semantics)
640
+ * @summary Update the action
641
+ * @param {string} code Action code
642
+ * @param {UpdateActionRequestDto} updateActionRequestDto
643
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
648
+ return __awaiter(this, void 0, void 0, function () {
649
+ var localVarAxiosArgs;
650
+ return __generator(this, function (_a) {
651
+ switch (_a.label) {
652
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options)];
653
+ case 1:
654
+ localVarAxiosArgs = _a.sent();
655
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
656
+ }
657
+ });
658
+ });
659
+ },
660
+ };
661
+ };
662
+ exports.ActionsApiFp = ActionsApiFp;
663
+ /**
664
+ * ActionsApi - factory interface
665
+ * @export
666
+ */
667
+ var ActionsApiFactory = function (configuration, basePath, axios) {
668
+ var localVarFp = (0, exports.ActionsApiFp)(configuration);
669
+ return {
670
+ /**
671
+ * Creates a new action configuration
672
+ * @summary Create the action
673
+ * @param {CreateActionRequestDto} createActionRequestDto
674
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ */
678
+ createAction: function (createActionRequestDto, authorization, options) {
679
+ return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
680
+ },
681
+ /**
682
+ * Deletes an action configuration by its code
683
+ * @summary Delete the action
684
+ * @param {string} code Action code
685
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ deleteAction: function (code, authorization, options) {
690
+ return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
691
+ },
692
+ /**
693
+ * Retrieves an action configuration by its code
694
+ * @summary Retrieve the action
695
+ * @param {string} code Action code
696
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ getAction: function (code, authorization, options) {
701
+ return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
702
+ },
703
+ /**
704
+ * Retrieves the latest action execution status by executionCode or correlationId
705
+ * @summary Retrieve the actionExecution
706
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
707
+ * @param {string} [executionCode] Action execution code
708
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
713
+ return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
714
+ },
715
+ /**
716
+ * Lists action executions with optional filters
717
+ * @summary List actionExecutions
718
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
719
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
720
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
721
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
722
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
723
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
724
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
725
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
730
+ return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
731
+ },
732
+ /**
733
+ * Lists all action configurations with optional filters
734
+ * @summary List actions
735
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
736
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
737
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
738
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
739
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
740
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
741
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
742
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ */
746
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
747
+ return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
748
+ },
749
+ /**
750
+ * Updates an existing action configuration (patch semantics)
751
+ * @summary Update the action
752
+ * @param {string} code Action code
753
+ * @param {UpdateActionRequestDto} updateActionRequestDto
754
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
759
+ return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
760
+ },
761
+ };
762
+ };
763
+ exports.ActionsApiFactory = ActionsApiFactory;
764
+ /**
765
+ * ActionsApi - object-oriented interface
766
+ * @export
767
+ * @class ActionsApi
768
+ * @extends {BaseAPI}
769
+ */
770
+ var ActionsApi = /** @class */ (function (_super) {
771
+ __extends(ActionsApi, _super);
772
+ function ActionsApi() {
773
+ return _super !== null && _super.apply(this, arguments) || this;
774
+ }
775
+ /**
776
+ * Creates a new action configuration
777
+ * @summary Create the action
778
+ * @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ * @memberof ActionsApi
782
+ */
783
+ ActionsApi.prototype.createAction = function (requestParameters, options) {
784
+ var _this = this;
785
+ return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
786
+ };
787
+ /**
788
+ * Deletes an action configuration by its code
789
+ * @summary Delete the action
790
+ * @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ * @memberof ActionsApi
794
+ */
795
+ ActionsApi.prototype.deleteAction = function (requestParameters, options) {
796
+ var _this = this;
797
+ return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
798
+ };
799
+ /**
800
+ * Retrieves an action configuration by its code
801
+ * @summary Retrieve the action
802
+ * @param {ActionsApiGetActionRequest} requestParameters Request parameters.
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ * @memberof ActionsApi
806
+ */
807
+ ActionsApi.prototype.getAction = function (requestParameters, options) {
808
+ var _this = this;
809
+ return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
810
+ };
811
+ /**
812
+ * Retrieves the latest action execution status by executionCode or correlationId
813
+ * @summary Retrieve the actionExecution
814
+ * @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ * @memberof ActionsApi
818
+ */
819
+ ActionsApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
820
+ var _this = this;
821
+ if (requestParameters === void 0) { requestParameters = {}; }
822
+ return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
823
+ };
824
+ /**
825
+ * Lists action executions with optional filters
826
+ * @summary List actionExecutions
827
+ * @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ * @memberof ActionsApi
831
+ */
832
+ ActionsApi.prototype.listActionExecutions = function (requestParameters, options) {
833
+ var _this = this;
834
+ if (requestParameters === void 0) { requestParameters = {}; }
835
+ return (0, exports.ActionsApiFp)(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
836
+ };
837
+ /**
838
+ * Lists all action configurations with optional filters
839
+ * @summary List actions
840
+ * @param {ActionsApiListActionsRequest} requestParameters Request parameters.
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ * @memberof ActionsApi
844
+ */
845
+ ActionsApi.prototype.listActions = function (requestParameters, options) {
846
+ var _this = this;
847
+ if (requestParameters === void 0) { requestParameters = {}; }
848
+ return (0, exports.ActionsApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
849
+ };
850
+ /**
851
+ * Updates an existing action configuration (patch semantics)
852
+ * @summary Update the action
853
+ * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ * @memberof ActionsApi
857
+ */
858
+ ActionsApi.prototype.updateAction = function (requestParameters, options) {
859
+ var _this = this;
860
+ return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
861
+ };
862
+ return ActionsApi;
863
+ }(base_1.BaseAPI));
864
+ exports.ActionsApi = ActionsApi;