@emilgroup/action-sdk-node 1.0.1-beta.20 → 1.0.1-beta.21

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 (33) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +720 -0
  4. package/api.ts +2 -0
  5. package/dist/api/actions-api.d.ts +411 -0
  6. package/dist/api/actions-api.js +658 -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/create-action-request-dto.d.ts +48 -0
  12. package/dist/models/create-action-request-dto.js +15 -0
  13. package/dist/models/create-action-response-class.d.ts +25 -0
  14. package/dist/models/create-action-response-class.js +15 -0
  15. package/dist/models/get-action-response-class.d.ts +25 -0
  16. package/dist/models/get-action-response-class.js +15 -0
  17. package/dist/models/index.d.ts +7 -0
  18. package/dist/models/index.js +7 -0
  19. package/dist/models/list-actions-response-class.d.ts +43 -0
  20. package/dist/models/list-actions-response-class.js +15 -0
  21. package/dist/models/update-action-request-dto.d.ts +54 -0
  22. package/dist/models/update-action-request-dto.js +15 -0
  23. package/dist/models/update-action-response-class.d.ts +25 -0
  24. package/dist/models/update-action-response-class.js +15 -0
  25. package/models/action-class.ts +90 -0
  26. package/models/create-action-request-dto.ts +54 -0
  27. package/models/create-action-response-class.ts +31 -0
  28. package/models/get-action-response-class.ts +31 -0
  29. package/models/index.ts +7 -0
  30. package/models/list-actions-response-class.ts +49 -0
  31. package/models/update-action-request-dto.ts +60 -0
  32. package/models/update-action-response-class.ts +31 -0
  33. package/package.json +1 -1
@@ -0,0 +1,658 @@
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
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * ActionsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ActionsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Creates a new action configuration
101
+ * @summary Create the action
102
+ * @param {CreateActionRequestDto} createActionRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createAction: function (createActionRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'createActionRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createAction', 'createActionRequestDto', createActionRequestDto);
116
+ localVarPath = "/actionservice/v1/actions";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActionRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * Deletes an action configuration by its code
150
+ * @summary Delete the action
151
+ * @param {string} code
152
+ * @param {any} action Unique identifier for the object.
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ deleteAction: function (code, action, authorization, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ // verify required parameter 'code' is not null or undefined
165
+ (0, common_1.assertParamExists)('deleteAction', 'code', code);
166
+ // verify required parameter 'action' is not null or undefined
167
+ (0, common_1.assertParamExists)('deleteAction', 'action', action);
168
+ localVarPath = "/actionservice/v1/actions/{code}"
169
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
170
+ .replace("{".concat("action", "}"), encodeURIComponent(String(action)));
171
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ baseAccessToken = configuration.accessToken;
175
+ }
176
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
177
+ localVarHeaderParameter = {};
178
+ localVarQueryParameter = {};
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
+ case 1:
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ _a.sent();
186
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ }
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ return [2 /*return*/, {
193
+ url: (0, common_1.toPathString)(localVarUrlObj),
194
+ options: localVarRequestOptions,
195
+ }];
196
+ }
197
+ });
198
+ });
199
+ },
200
+ /**
201
+ * Retrieves an action configuration by its code
202
+ * @summary Retrieve the action
203
+ * @param {string} code
204
+ * @param {any} action Unique identifier for the object.
205
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getAction: function (code, action, authorization, options) {
210
+ if (options === void 0) { options = {}; }
211
+ return __awaiter(_this, void 0, void 0, function () {
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ return __generator(this, function (_a) {
214
+ switch (_a.label) {
215
+ case 0:
216
+ // verify required parameter 'code' is not null or undefined
217
+ (0, common_1.assertParamExists)('getAction', 'code', code);
218
+ // verify required parameter 'action' is not null or undefined
219
+ (0, common_1.assertParamExists)('getAction', 'action', action);
220
+ localVarPath = "/actionservice/v1/actions/{code}"
221
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
222
+ .replace("{".concat("action", "}"), encodeURIComponent(String(action)));
223
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ baseAccessToken = configuration.accessToken;
227
+ }
228
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
229
+ localVarHeaderParameter = {};
230
+ localVarQueryParameter = {};
231
+ // authentication bearer required
232
+ // http bearer authentication required
233
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
234
+ case 1:
235
+ // authentication bearer required
236
+ // http bearer authentication required
237
+ _a.sent();
238
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
239
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
240
+ }
241
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
242
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
244
+ return [2 /*return*/, {
245
+ url: (0, common_1.toPathString)(localVarUrlObj),
246
+ options: localVarRequestOptions,
247
+ }];
248
+ }
249
+ });
250
+ });
251
+ },
252
+ /**
253
+ * Lists all action configurations with optional filters
254
+ * @summary List actions
255
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
257
+ * @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.
258
+ * @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;
259
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
260
+ * @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;
261
+ * @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;
262
+ * @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;
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
267
+ if (options === void 0) { options = {}; }
268
+ return __awaiter(_this, void 0, void 0, function () {
269
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ return __generator(this, function (_a) {
271
+ switch (_a.label) {
272
+ case 0:
273
+ localVarPath = "/actionservice/v1/actions";
274
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
275
+ if (configuration) {
276
+ baseOptions = configuration.baseOptions;
277
+ baseAccessToken = configuration.accessToken;
278
+ }
279
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
280
+ localVarHeaderParameter = {};
281
+ localVarQueryParameter = {};
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
285
+ case 1:
286
+ // authentication bearer required
287
+ // http bearer authentication required
288
+ _a.sent();
289
+ if (pageSize !== undefined) {
290
+ localVarQueryParameter['pageSize'] = pageSize;
291
+ }
292
+ if (pageToken !== undefined) {
293
+ localVarQueryParameter['pageToken'] = pageToken;
294
+ }
295
+ if (filter !== undefined) {
296
+ localVarQueryParameter['filter'] = filter;
297
+ }
298
+ if (search !== undefined) {
299
+ localVarQueryParameter['search'] = search;
300
+ }
301
+ if (order !== undefined) {
302
+ localVarQueryParameter['order'] = order;
303
+ }
304
+ if (expand !== undefined) {
305
+ localVarQueryParameter['expand'] = expand;
306
+ }
307
+ if (filters !== undefined) {
308
+ localVarQueryParameter['filters'] = filters;
309
+ }
310
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
311
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
312
+ }
313
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
314
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
316
+ return [2 /*return*/, {
317
+ url: (0, common_1.toPathString)(localVarUrlObj),
318
+ options: localVarRequestOptions,
319
+ }];
320
+ }
321
+ });
322
+ });
323
+ },
324
+ /**
325
+ * Updates an existing action configuration (patch semantics)
326
+ * @summary Update the action
327
+ * @param {string} code
328
+ * @param {any} action Unique identifier for the object.
329
+ * @param {UpdateActionRequestDto} updateActionRequestDto
330
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ updateAction: function (code, action, updateActionRequestDto, authorization, options) {
335
+ if (options === void 0) { options = {}; }
336
+ return __awaiter(_this, void 0, void 0, function () {
337
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
338
+ return __generator(this, function (_a) {
339
+ switch (_a.label) {
340
+ case 0:
341
+ // verify required parameter 'code' is not null or undefined
342
+ (0, common_1.assertParamExists)('updateAction', 'code', code);
343
+ // verify required parameter 'action' is not null or undefined
344
+ (0, common_1.assertParamExists)('updateAction', 'action', action);
345
+ // verify required parameter 'updateActionRequestDto' is not null or undefined
346
+ (0, common_1.assertParamExists)('updateAction', 'updateActionRequestDto', updateActionRequestDto);
347
+ localVarPath = "/actionservice/v1/actions/{code}"
348
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
349
+ .replace("{".concat("action", "}"), encodeURIComponent(String(action)));
350
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
351
+ if (configuration) {
352
+ baseOptions = configuration.baseOptions;
353
+ baseAccessToken = configuration.accessToken;
354
+ }
355
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
356
+ localVarHeaderParameter = {};
357
+ localVarQueryParameter = {};
358
+ // authentication bearer required
359
+ // http bearer authentication required
360
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
361
+ case 1:
362
+ // authentication bearer required
363
+ // http bearer authentication required
364
+ _a.sent();
365
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
366
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
367
+ }
368
+ localVarHeaderParameter['Content-Type'] = 'application/json';
369
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
370
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
371
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
372
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
373
+ return [2 /*return*/, {
374
+ url: (0, common_1.toPathString)(localVarUrlObj),
375
+ options: localVarRequestOptions,
376
+ }];
377
+ }
378
+ });
379
+ });
380
+ },
381
+ };
382
+ };
383
+ exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
384
+ /**
385
+ * ActionsApi - functional programming interface
386
+ * @export
387
+ */
388
+ var ActionsApiFp = function (configuration) {
389
+ var localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
390
+ return {
391
+ /**
392
+ * Creates a new action configuration
393
+ * @summary Create the action
394
+ * @param {CreateActionRequestDto} createActionRequestDto
395
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ createAction: function (createActionRequestDto, authorization, options) {
400
+ return __awaiter(this, void 0, void 0, function () {
401
+ var localVarAxiosArgs;
402
+ return __generator(this, function (_a) {
403
+ switch (_a.label) {
404
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAction(createActionRequestDto, authorization, options)];
405
+ case 1:
406
+ localVarAxiosArgs = _a.sent();
407
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
408
+ }
409
+ });
410
+ });
411
+ },
412
+ /**
413
+ * Deletes an action configuration by its code
414
+ * @summary Delete the action
415
+ * @param {string} code
416
+ * @param {any} action Unique identifier for the object.
417
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ deleteAction: function (code, action, authorization, options) {
422
+ return __awaiter(this, void 0, void 0, function () {
423
+ var localVarAxiosArgs;
424
+ return __generator(this, function (_a) {
425
+ switch (_a.label) {
426
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction(code, action, authorization, options)];
427
+ case 1:
428
+ localVarAxiosArgs = _a.sent();
429
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
430
+ }
431
+ });
432
+ });
433
+ },
434
+ /**
435
+ * Retrieves an action configuration by its code
436
+ * @summary Retrieve the action
437
+ * @param {string} code
438
+ * @param {any} action Unique identifier for the object.
439
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ getAction: function (code, action, authorization, options) {
444
+ return __awaiter(this, void 0, void 0, function () {
445
+ var localVarAxiosArgs;
446
+ return __generator(this, function (_a) {
447
+ switch (_a.label) {
448
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, action, authorization, options)];
449
+ case 1:
450
+ localVarAxiosArgs = _a.sent();
451
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
452
+ }
453
+ });
454
+ });
455
+ },
456
+ /**
457
+ * Lists all action configurations with optional filters
458
+ * @summary List actions
459
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
460
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
461
+ * @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.
462
+ * @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;
463
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
464
+ * @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;
465
+ * @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;
466
+ * @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;
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
471
+ return __awaiter(this, void 0, void 0, function () {
472
+ var localVarAxiosArgs;
473
+ return __generator(this, function (_a) {
474
+ switch (_a.label) {
475
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
476
+ case 1:
477
+ localVarAxiosArgs = _a.sent();
478
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
479
+ }
480
+ });
481
+ });
482
+ },
483
+ /**
484
+ * Updates an existing action configuration (patch semantics)
485
+ * @summary Update the action
486
+ * @param {string} code
487
+ * @param {any} action Unique identifier for the object.
488
+ * @param {UpdateActionRequestDto} updateActionRequestDto
489
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ updateAction: function (code, action, updateActionRequestDto, authorization, options) {
494
+ return __awaiter(this, void 0, void 0, function () {
495
+ var localVarAxiosArgs;
496
+ return __generator(this, function (_a) {
497
+ switch (_a.label) {
498
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, action, updateActionRequestDto, authorization, options)];
499
+ case 1:
500
+ localVarAxiosArgs = _a.sent();
501
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
502
+ }
503
+ });
504
+ });
505
+ },
506
+ };
507
+ };
508
+ exports.ActionsApiFp = ActionsApiFp;
509
+ /**
510
+ * ActionsApi - factory interface
511
+ * @export
512
+ */
513
+ var ActionsApiFactory = function (configuration, basePath, axios) {
514
+ var localVarFp = (0, exports.ActionsApiFp)(configuration);
515
+ return {
516
+ /**
517
+ * Creates a new action configuration
518
+ * @summary Create the action
519
+ * @param {CreateActionRequestDto} createActionRequestDto
520
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ createAction: function (createActionRequestDto, authorization, options) {
525
+ return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
526
+ },
527
+ /**
528
+ * Deletes an action configuration by its code
529
+ * @summary Delete the action
530
+ * @param {string} code
531
+ * @param {any} action Unique identifier for the object.
532
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ */
536
+ deleteAction: function (code, action, authorization, options) {
537
+ return localVarFp.deleteAction(code, action, authorization, options).then(function (request) { return request(axios, basePath); });
538
+ },
539
+ /**
540
+ * Retrieves an action configuration by its code
541
+ * @summary Retrieve the action
542
+ * @param {string} code
543
+ * @param {any} action Unique identifier for the object.
544
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ getAction: function (code, action, authorization, options) {
549
+ return localVarFp.getAction(code, action, authorization, options).then(function (request) { return request(axios, basePath); });
550
+ },
551
+ /**
552
+ * Lists all action configurations with optional filters
553
+ * @summary List actions
554
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
555
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
556
+ * @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.
557
+ * @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;
558
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
559
+ * @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;
560
+ * @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;
561
+ * @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;
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ */
565
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
566
+ return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
567
+ },
568
+ /**
569
+ * Updates an existing action configuration (patch semantics)
570
+ * @summary Update the action
571
+ * @param {string} code
572
+ * @param {any} action Unique identifier for the object.
573
+ * @param {UpdateActionRequestDto} updateActionRequestDto
574
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ updateAction: function (code, action, updateActionRequestDto, authorization, options) {
579
+ return localVarFp.updateAction(code, action, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
580
+ },
581
+ };
582
+ };
583
+ exports.ActionsApiFactory = ActionsApiFactory;
584
+ /**
585
+ * ActionsApi - object-oriented interface
586
+ * @export
587
+ * @class ActionsApi
588
+ * @extends {BaseAPI}
589
+ */
590
+ var ActionsApi = /** @class */ (function (_super) {
591
+ __extends(ActionsApi, _super);
592
+ function ActionsApi() {
593
+ return _super !== null && _super.apply(this, arguments) || this;
594
+ }
595
+ /**
596
+ * Creates a new action configuration
597
+ * @summary Create the action
598
+ * @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ * @memberof ActionsApi
602
+ */
603
+ ActionsApi.prototype.createAction = function (requestParameters, options) {
604
+ var _this = this;
605
+ return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
606
+ };
607
+ /**
608
+ * Deletes an action configuration by its code
609
+ * @summary Delete the action
610
+ * @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof ActionsApi
614
+ */
615
+ ActionsApi.prototype.deleteAction = function (requestParameters, options) {
616
+ var _this = this;
617
+ return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.action, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
618
+ };
619
+ /**
620
+ * Retrieves an action configuration by its code
621
+ * @summary Retrieve the action
622
+ * @param {ActionsApiGetActionRequest} requestParameters Request parameters.
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ * @memberof ActionsApi
626
+ */
627
+ ActionsApi.prototype.getAction = function (requestParameters, options) {
628
+ var _this = this;
629
+ return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.action, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
630
+ };
631
+ /**
632
+ * Lists all action configurations with optional filters
633
+ * @summary List actions
634
+ * @param {ActionsApiListActionsRequest} requestParameters Request parameters.
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ * @memberof ActionsApi
638
+ */
639
+ ActionsApi.prototype.listActions = function (requestParameters, options) {
640
+ var _this = this;
641
+ if (requestParameters === void 0) { requestParameters = {}; }
642
+ 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); });
643
+ };
644
+ /**
645
+ * Updates an existing action configuration (patch semantics)
646
+ * @summary Update the action
647
+ * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ * @memberof ActionsApi
651
+ */
652
+ ActionsApi.prototype.updateAction = function (requestParameters, options) {
653
+ var _this = this;
654
+ return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.action, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
655
+ };
656
+ return ActionsApi;
657
+ }(base_1.BaseAPI));
658
+ exports.ActionsApi = ActionsApi;