@emilgroup/action-sdk-node 1.1.0 → 1.1.1-beta.13

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.
@@ -0,0 +1,1420 @@
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.ActionClientApi = exports.ActionClientApiFactory = exports.ActionClientApiFp = exports.ActionClientApiAxiosParamCreator = 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
+ * ActionClientApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ActionClientApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
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 **Required Permissions** \"action-management.actions.delete\"
150
+ * @summary Delete the action
151
+ * @param {string} code Action code
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ deleteAction: function (code, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'code' is not null or undefined
164
+ (0, common_1.assertParamExists)('deleteAction', 'code', code);
165
+ localVarPath = "/actionservice/v1/actions/{code}"
166
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ baseAccessToken = configuration.accessToken;
171
+ }
172
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
173
+ localVarHeaderParameter = {};
174
+ localVarQueryParameter = {};
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return [2 /*return*/, {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ }];
192
+ }
193
+ });
194
+ });
195
+ },
196
+ /**
197
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
198
+ * @summary Delete the action version
199
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
200
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ deleteActionVersion: function (versionCode, authorization, options) {
205
+ if (options === void 0) { options = {}; }
206
+ return __awaiter(_this, void 0, void 0, function () {
207
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ // verify required parameter 'versionCode' is not null or undefined
212
+ (0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
213
+ localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
214
+ .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
215
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ baseAccessToken = configuration.accessToken;
219
+ }
220
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
221
+ localVarHeaderParameter = {};
222
+ localVarQueryParameter = {};
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
226
+ case 1:
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ return [2 /*return*/, {
237
+ url: (0, common_1.toPathString)(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ }];
240
+ }
241
+ });
242
+ });
243
+ },
244
+ /**
245
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
246
+ * @summary Retrieve the action
247
+ * @param {string} code Action code
248
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
249
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ getAction: function (code, authorization, expand, options) {
254
+ if (options === void 0) { options = {}; }
255
+ return __awaiter(_this, void 0, void 0, function () {
256
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
257
+ return __generator(this, function (_a) {
258
+ switch (_a.label) {
259
+ case 0:
260
+ // verify required parameter 'code' is not null or undefined
261
+ (0, common_1.assertParamExists)('getAction', 'code', code);
262
+ localVarPath = "/actionservice/v1/actions/{code}"
263
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
264
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
265
+ if (configuration) {
266
+ baseOptions = configuration.baseOptions;
267
+ baseAccessToken = configuration.accessToken;
268
+ }
269
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
270
+ localVarHeaderParameter = {};
271
+ localVarQueryParameter = {};
272
+ // authentication bearer required
273
+ // http bearer authentication required
274
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
275
+ case 1:
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ _a.sent();
279
+ if (expand !== undefined) {
280
+ localVarQueryParameter['expand'] = expand;
281
+ }
282
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
283
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
284
+ }
285
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
286
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
288
+ return [2 /*return*/, {
289
+ url: (0, common_1.toPathString)(localVarUrlObj),
290
+ options: localVarRequestOptions,
291
+ }];
292
+ }
293
+ });
294
+ });
295
+ },
296
+ /**
297
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
298
+ * @summary Retrieve the actionExecution
299
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
300
+ * @param {string} [executionCode] Action execution code
301
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
306
+ if (options === void 0) { options = {}; }
307
+ return __awaiter(_this, void 0, void 0, function () {
308
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0:
312
+ localVarPath = "/actionservice/v1/actions/executions/status";
313
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
314
+ if (configuration) {
315
+ baseOptions = configuration.baseOptions;
316
+ baseAccessToken = configuration.accessToken;
317
+ }
318
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
319
+ localVarHeaderParameter = {};
320
+ localVarQueryParameter = {};
321
+ // authentication bearer required
322
+ // http bearer authentication required
323
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
324
+ case 1:
325
+ // authentication bearer required
326
+ // http bearer authentication required
327
+ _a.sent();
328
+ if (executionCode !== undefined) {
329
+ localVarQueryParameter['executionCode'] = executionCode;
330
+ }
331
+ if (correlationId !== undefined) {
332
+ localVarQueryParameter['correlationId'] = correlationId;
333
+ }
334
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
335
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
336
+ }
337
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
338
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
339
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
340
+ return [2 /*return*/, {
341
+ url: (0, common_1.toPathString)(localVarUrlObj),
342
+ options: localVarRequestOptions,
343
+ }];
344
+ }
345
+ });
346
+ });
347
+ },
348
+ /**
349
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
350
+ * @summary Retrieve the action version
351
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
352
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
353
+ * @param {string} [expand]
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ getActionVersion: function (versionCode, authorization, expand, options) {
358
+ if (options === void 0) { options = {}; }
359
+ return __awaiter(_this, void 0, void 0, function () {
360
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
361
+ return __generator(this, function (_a) {
362
+ switch (_a.label) {
363
+ case 0:
364
+ // verify required parameter 'versionCode' is not null or undefined
365
+ (0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
366
+ localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
367
+ .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
368
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
369
+ if (configuration) {
370
+ baseOptions = configuration.baseOptions;
371
+ baseAccessToken = configuration.accessToken;
372
+ }
373
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
374
+ localVarHeaderParameter = {};
375
+ localVarQueryParameter = {};
376
+ // authentication bearer required
377
+ // http bearer authentication required
378
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
379
+ case 1:
380
+ // authentication bearer required
381
+ // http bearer authentication required
382
+ _a.sent();
383
+ if (expand !== undefined) {
384
+ localVarQueryParameter['expand'] = expand;
385
+ }
386
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
387
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
388
+ }
389
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
390
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
391
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
392
+ return [2 /*return*/, {
393
+ url: (0, common_1.toPathString)(localVarUrlObj),
394
+ options: localVarRequestOptions,
395
+ }];
396
+ }
397
+ });
398
+ });
399
+ },
400
+ /**
401
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
402
+ * @summary List actionExecutions
403
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
404
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
405
+ * @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.
406
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
407
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
408
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
409
+ * @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;
410
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
415
+ if (options === void 0) { options = {}; }
416
+ return __awaiter(_this, void 0, void 0, function () {
417
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
418
+ return __generator(this, function (_a) {
419
+ switch (_a.label) {
420
+ case 0:
421
+ localVarPath = "/actionservice/v1/actions/executions";
422
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
423
+ if (configuration) {
424
+ baseOptions = configuration.baseOptions;
425
+ baseAccessToken = configuration.accessToken;
426
+ }
427
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
428
+ localVarHeaderParameter = {};
429
+ localVarQueryParameter = {};
430
+ // authentication bearer required
431
+ // http bearer authentication required
432
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
433
+ case 1:
434
+ // authentication bearer required
435
+ // http bearer authentication required
436
+ _a.sent();
437
+ if (pageSize !== undefined) {
438
+ localVarQueryParameter['pageSize'] = pageSize;
439
+ }
440
+ if (pageToken !== undefined) {
441
+ localVarQueryParameter['pageToken'] = pageToken;
442
+ }
443
+ if (filter !== undefined) {
444
+ localVarQueryParameter['filter'] = filter;
445
+ }
446
+ if (search !== undefined) {
447
+ localVarQueryParameter['search'] = search;
448
+ }
449
+ if (order !== undefined) {
450
+ localVarQueryParameter['order'] = order;
451
+ }
452
+ if (expand !== undefined) {
453
+ localVarQueryParameter['expand'] = expand;
454
+ }
455
+ if (filters !== undefined) {
456
+ localVarQueryParameter['filters'] = filters;
457
+ }
458
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
459
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
460
+ }
461
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
462
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
463
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
464
+ return [2 /*return*/, {
465
+ url: (0, common_1.toPathString)(localVarUrlObj),
466
+ options: localVarRequestOptions,
467
+ }];
468
+ }
469
+ });
470
+ });
471
+ },
472
+ /**
473
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
474
+ * @summary List action versions
475
+ * @param {string} code Action code
476
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
477
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
478
+ * @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.
479
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
480
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
481
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
482
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
483
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ */
487
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
488
+ if (options === void 0) { options = {}; }
489
+ return __awaiter(_this, void 0, void 0, function () {
490
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
491
+ return __generator(this, function (_a) {
492
+ switch (_a.label) {
493
+ case 0:
494
+ // verify required parameter 'code' is not null or undefined
495
+ (0, common_1.assertParamExists)('listActionVersions', 'code', code);
496
+ localVarPath = "/actionservice/v1/actions/{code}/versions"
497
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
498
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
499
+ if (configuration) {
500
+ baseOptions = configuration.baseOptions;
501
+ baseAccessToken = configuration.accessToken;
502
+ }
503
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
504
+ localVarHeaderParameter = {};
505
+ localVarQueryParameter = {};
506
+ // authentication bearer required
507
+ // http bearer authentication required
508
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
509
+ case 1:
510
+ // authentication bearer required
511
+ // http bearer authentication required
512
+ _a.sent();
513
+ if (pageSize !== undefined) {
514
+ localVarQueryParameter['pageSize'] = pageSize;
515
+ }
516
+ if (pageToken !== undefined) {
517
+ localVarQueryParameter['pageToken'] = pageToken;
518
+ }
519
+ if (filter !== undefined) {
520
+ localVarQueryParameter['filter'] = filter;
521
+ }
522
+ if (search !== undefined) {
523
+ localVarQueryParameter['search'] = search;
524
+ }
525
+ if (order !== undefined) {
526
+ localVarQueryParameter['order'] = order;
527
+ }
528
+ if (expand !== undefined) {
529
+ localVarQueryParameter['expand'] = expand;
530
+ }
531
+ if (filters !== undefined) {
532
+ localVarQueryParameter['filters'] = filters;
533
+ }
534
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
535
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
536
+ }
537
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
538
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
539
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
540
+ return [2 /*return*/, {
541
+ url: (0, common_1.toPathString)(localVarUrlObj),
542
+ options: localVarRequestOptions,
543
+ }];
544
+ }
545
+ });
546
+ });
547
+ },
548
+ /**
549
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
550
+ * @summary List actions
551
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
552
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
553
+ * @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.
554
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
555
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
556
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
557
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
558
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
563
+ if (options === void 0) { options = {}; }
564
+ return __awaiter(_this, void 0, void 0, function () {
565
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
566
+ return __generator(this, function (_a) {
567
+ switch (_a.label) {
568
+ case 0:
569
+ localVarPath = "/actionservice/v1/actions";
570
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
571
+ if (configuration) {
572
+ baseOptions = configuration.baseOptions;
573
+ baseAccessToken = configuration.accessToken;
574
+ }
575
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
576
+ localVarHeaderParameter = {};
577
+ localVarQueryParameter = {};
578
+ // authentication bearer required
579
+ // http bearer authentication required
580
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
581
+ case 1:
582
+ // authentication bearer required
583
+ // http bearer authentication required
584
+ _a.sent();
585
+ if (pageSize !== undefined) {
586
+ localVarQueryParameter['pageSize'] = pageSize;
587
+ }
588
+ if (pageToken !== undefined) {
589
+ localVarQueryParameter['pageToken'] = pageToken;
590
+ }
591
+ if (filter !== undefined) {
592
+ localVarQueryParameter['filter'] = filter;
593
+ }
594
+ if (search !== undefined) {
595
+ localVarQueryParameter['search'] = search;
596
+ }
597
+ if (order !== undefined) {
598
+ localVarQueryParameter['order'] = order;
599
+ }
600
+ if (expand !== undefined) {
601
+ localVarQueryParameter['expand'] = expand;
602
+ }
603
+ if (filters !== undefined) {
604
+ localVarQueryParameter['filters'] = filters;
605
+ }
606
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
607
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
608
+ }
609
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
610
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
611
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
612
+ return [2 /*return*/, {
613
+ url: (0, common_1.toPathString)(localVarUrlObj),
614
+ options: localVarRequestOptions,
615
+ }];
616
+ }
617
+ });
618
+ });
619
+ },
620
+ /**
621
+ * Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
622
+ * @summary List action versions
623
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
624
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
625
+ * @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.
626
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
627
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
628
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
629
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
630
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ */
634
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
635
+ if (options === void 0) { options = {}; }
636
+ return __awaiter(_this, void 0, void 0, function () {
637
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
638
+ return __generator(this, function (_a) {
639
+ switch (_a.label) {
640
+ case 0:
641
+ localVarPath = "/actionservice/v1/actions/versions";
642
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
643
+ if (configuration) {
644
+ baseOptions = configuration.baseOptions;
645
+ baseAccessToken = configuration.accessToken;
646
+ }
647
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
648
+ localVarHeaderParameter = {};
649
+ localVarQueryParameter = {};
650
+ // authentication bearer required
651
+ // http bearer authentication required
652
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
653
+ case 1:
654
+ // authentication bearer required
655
+ // http bearer authentication required
656
+ _a.sent();
657
+ if (pageSize !== undefined) {
658
+ localVarQueryParameter['pageSize'] = pageSize;
659
+ }
660
+ if (pageToken !== undefined) {
661
+ localVarQueryParameter['pageToken'] = pageToken;
662
+ }
663
+ if (filter !== undefined) {
664
+ localVarQueryParameter['filter'] = filter;
665
+ }
666
+ if (search !== undefined) {
667
+ localVarQueryParameter['search'] = search;
668
+ }
669
+ if (order !== undefined) {
670
+ localVarQueryParameter['order'] = order;
671
+ }
672
+ if (expand !== undefined) {
673
+ localVarQueryParameter['expand'] = expand;
674
+ }
675
+ if (filters !== undefined) {
676
+ localVarQueryParameter['filters'] = filters;
677
+ }
678
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
679
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
680
+ }
681
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
682
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
683
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
684
+ return [2 /*return*/, {
685
+ url: (0, common_1.toPathString)(localVarUrlObj),
686
+ options: localVarRequestOptions,
687
+ }];
688
+ }
689
+ });
690
+ });
691
+ },
692
+ /**
693
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
694
+ * @summary Create the actionExecution
695
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
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
+ triggerAction: function (triggerActionRequestDto, authorization, options) {
701
+ if (options === void 0) { options = {}; }
702
+ return __awaiter(_this, void 0, void 0, function () {
703
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
704
+ return __generator(this, function (_a) {
705
+ switch (_a.label) {
706
+ case 0:
707
+ // verify required parameter 'triggerActionRequestDto' is not null or undefined
708
+ (0, common_1.assertParamExists)('triggerAction', 'triggerActionRequestDto', triggerActionRequestDto);
709
+ localVarPath = "/actionservice/v1/actions/trigger";
710
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
711
+ if (configuration) {
712
+ baseOptions = configuration.baseOptions;
713
+ baseAccessToken = configuration.accessToken;
714
+ }
715
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
716
+ localVarHeaderParameter = {};
717
+ localVarQueryParameter = {};
718
+ // authentication bearer required
719
+ // http bearer authentication required
720
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
721
+ case 1:
722
+ // authentication bearer required
723
+ // http bearer authentication required
724
+ _a.sent();
725
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
726
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
727
+ }
728
+ localVarHeaderParameter['Content-Type'] = 'application/json';
729
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
730
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
731
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
732
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(triggerActionRequestDto, localVarRequestOptions, configuration);
733
+ return [2 /*return*/, {
734
+ url: (0, common_1.toPathString)(localVarUrlObj),
735
+ options: localVarRequestOptions,
736
+ }];
737
+ }
738
+ });
739
+ });
740
+ },
741
+ /**
742
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
743
+ * @summary Update the action
744
+ * @param {string} code Action code
745
+ * @param {UpdateActionRequestDto} updateActionRequestDto
746
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ */
750
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
751
+ if (options === void 0) { options = {}; }
752
+ return __awaiter(_this, void 0, void 0, function () {
753
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
754
+ return __generator(this, function (_a) {
755
+ switch (_a.label) {
756
+ case 0:
757
+ // verify required parameter 'code' is not null or undefined
758
+ (0, common_1.assertParamExists)('updateAction', 'code', code);
759
+ // verify required parameter 'updateActionRequestDto' is not null or undefined
760
+ (0, common_1.assertParamExists)('updateAction', 'updateActionRequestDto', updateActionRequestDto);
761
+ localVarPath = "/actionservice/v1/actions/{code}"
762
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
763
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
764
+ if (configuration) {
765
+ baseOptions = configuration.baseOptions;
766
+ baseAccessToken = configuration.accessToken;
767
+ }
768
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
769
+ localVarHeaderParameter = {};
770
+ localVarQueryParameter = {};
771
+ // authentication bearer required
772
+ // http bearer authentication required
773
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
774
+ case 1:
775
+ // authentication bearer required
776
+ // http bearer authentication required
777
+ _a.sent();
778
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
779
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
780
+ }
781
+ localVarHeaderParameter['Content-Type'] = 'application/json';
782
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
783
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
784
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
785
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
786
+ return [2 /*return*/, {
787
+ url: (0, common_1.toPathString)(localVarUrlObj),
788
+ options: localVarRequestOptions,
789
+ }];
790
+ }
791
+ });
792
+ });
793
+ },
794
+ };
795
+ };
796
+ exports.ActionClientApiAxiosParamCreator = ActionClientApiAxiosParamCreator;
797
+ /**
798
+ * ActionClientApi - functional programming interface
799
+ * @export
800
+ */
801
+ var ActionClientApiFp = function (configuration) {
802
+ var localVarAxiosParamCreator = (0, exports.ActionClientApiAxiosParamCreator)(configuration);
803
+ return {
804
+ /**
805
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
806
+ * @summary Create the action
807
+ * @param {CreateActionRequestDto} createActionRequestDto
808
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ */
812
+ createAction: function (createActionRequestDto, authorization, options) {
813
+ return __awaiter(this, void 0, void 0, function () {
814
+ var localVarAxiosArgs;
815
+ return __generator(this, function (_a) {
816
+ switch (_a.label) {
817
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAction(createActionRequestDto, authorization, options)];
818
+ case 1:
819
+ localVarAxiosArgs = _a.sent();
820
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
821
+ }
822
+ });
823
+ });
824
+ },
825
+ /**
826
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
827
+ * @summary Delete the action
828
+ * @param {string} code Action code
829
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ deleteAction: function (code, authorization, options) {
834
+ return __awaiter(this, void 0, void 0, function () {
835
+ var localVarAxiosArgs;
836
+ return __generator(this, function (_a) {
837
+ switch (_a.label) {
838
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction(code, authorization, options)];
839
+ case 1:
840
+ localVarAxiosArgs = _a.sent();
841
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
842
+ }
843
+ });
844
+ });
845
+ },
846
+ /**
847
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
848
+ * @summary Delete the action version
849
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
850
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
851
+ * @param {*} [options] Override http request option.
852
+ * @throws {RequiredError}
853
+ */
854
+ deleteActionVersion: function (versionCode, authorization, options) {
855
+ return __awaiter(this, void 0, void 0, function () {
856
+ var localVarAxiosArgs;
857
+ return __generator(this, function (_a) {
858
+ switch (_a.label) {
859
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options)];
860
+ case 1:
861
+ localVarAxiosArgs = _a.sent();
862
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
863
+ }
864
+ });
865
+ });
866
+ },
867
+ /**
868
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
869
+ * @summary Retrieve the action
870
+ * @param {string} code Action code
871
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
872
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
873
+ * @param {*} [options] Override http request option.
874
+ * @throws {RequiredError}
875
+ */
876
+ getAction: function (code, authorization, expand, options) {
877
+ return __awaiter(this, void 0, void 0, function () {
878
+ var localVarAxiosArgs;
879
+ return __generator(this, function (_a) {
880
+ switch (_a.label) {
881
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, expand, options)];
882
+ case 1:
883
+ localVarAxiosArgs = _a.sent();
884
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
885
+ }
886
+ });
887
+ });
888
+ },
889
+ /**
890
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
891
+ * @summary Retrieve the actionExecution
892
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
893
+ * @param {string} [executionCode] Action execution code
894
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
895
+ * @param {*} [options] Override http request option.
896
+ * @throws {RequiredError}
897
+ */
898
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
899
+ return __awaiter(this, void 0, void 0, function () {
900
+ var localVarAxiosArgs;
901
+ return __generator(this, function (_a) {
902
+ switch (_a.label) {
903
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options)];
904
+ case 1:
905
+ localVarAxiosArgs = _a.sent();
906
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
907
+ }
908
+ });
909
+ });
910
+ },
911
+ /**
912
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
913
+ * @summary Retrieve the action version
914
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
915
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
916
+ * @param {string} [expand]
917
+ * @param {*} [options] Override http request option.
918
+ * @throws {RequiredError}
919
+ */
920
+ getActionVersion: function (versionCode, authorization, expand, options) {
921
+ return __awaiter(this, void 0, void 0, function () {
922
+ var localVarAxiosArgs;
923
+ return __generator(this, function (_a) {
924
+ switch (_a.label) {
925
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
926
+ case 1:
927
+ localVarAxiosArgs = _a.sent();
928
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
929
+ }
930
+ });
931
+ });
932
+ },
933
+ /**
934
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
935
+ * @summary List actionExecutions
936
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
937
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
938
+ * @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.
939
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
940
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
941
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
942
+ * @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;
943
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
944
+ * @param {*} [options] Override http request option.
945
+ * @throws {RequiredError}
946
+ */
947
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
948
+ return __awaiter(this, void 0, void 0, function () {
949
+ var localVarAxiosArgs;
950
+ return __generator(this, function (_a) {
951
+ switch (_a.label) {
952
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
953
+ case 1:
954
+ localVarAxiosArgs = _a.sent();
955
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
956
+ }
957
+ });
958
+ });
959
+ },
960
+ /**
961
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
962
+ * @summary List action versions
963
+ * @param {string} code Action code
964
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
965
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
966
+ * @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.
967
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
968
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
969
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
970
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
971
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
972
+ * @param {*} [options] Override http request option.
973
+ * @throws {RequiredError}
974
+ */
975
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
976
+ return __awaiter(this, void 0, void 0, function () {
977
+ var localVarAxiosArgs;
978
+ return __generator(this, function (_a) {
979
+ switch (_a.label) {
980
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
981
+ case 1:
982
+ localVarAxiosArgs = _a.sent();
983
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
984
+ }
985
+ });
986
+ });
987
+ },
988
+ /**
989
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
990
+ * @summary List actions
991
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
992
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
993
+ * @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.
994
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
995
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
996
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
997
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
998
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
999
+ * @param {*} [options] Override http request option.
1000
+ * @throws {RequiredError}
1001
+ */
1002
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1003
+ return __awaiter(this, void 0, void 0, function () {
1004
+ var localVarAxiosArgs;
1005
+ return __generator(this, function (_a) {
1006
+ switch (_a.label) {
1007
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1008
+ case 1:
1009
+ localVarAxiosArgs = _a.sent();
1010
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1011
+ }
1012
+ });
1013
+ });
1014
+ },
1015
+ /**
1016
+ * Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
1017
+ * @summary List action versions
1018
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1019
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1020
+ * @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.
1021
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1022
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1023
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1024
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1025
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1030
+ return __awaiter(this, void 0, void 0, function () {
1031
+ var localVarAxiosArgs;
1032
+ return __generator(this, function (_a) {
1033
+ switch (_a.label) {
1034
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1035
+ case 1:
1036
+ localVarAxiosArgs = _a.sent();
1037
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1038
+ }
1039
+ });
1040
+ });
1041
+ },
1042
+ /**
1043
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
1044
+ * @summary Create the actionExecution
1045
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
1046
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1047
+ * @param {*} [options] Override http request option.
1048
+ * @throws {RequiredError}
1049
+ */
1050
+ triggerAction: function (triggerActionRequestDto, authorization, options) {
1051
+ return __awaiter(this, void 0, void 0, function () {
1052
+ var localVarAxiosArgs;
1053
+ return __generator(this, function (_a) {
1054
+ switch (_a.label) {
1055
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.triggerAction(triggerActionRequestDto, authorization, options)];
1056
+ case 1:
1057
+ localVarAxiosArgs = _a.sent();
1058
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1059
+ }
1060
+ });
1061
+ });
1062
+ },
1063
+ /**
1064
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1065
+ * @summary Update the action
1066
+ * @param {string} code Action code
1067
+ * @param {UpdateActionRequestDto} updateActionRequestDto
1068
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
1073
+ return __awaiter(this, void 0, void 0, function () {
1074
+ var localVarAxiosArgs;
1075
+ return __generator(this, function (_a) {
1076
+ switch (_a.label) {
1077
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options)];
1078
+ case 1:
1079
+ localVarAxiosArgs = _a.sent();
1080
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1081
+ }
1082
+ });
1083
+ });
1084
+ },
1085
+ };
1086
+ };
1087
+ exports.ActionClientApiFp = ActionClientApiFp;
1088
+ /**
1089
+ * ActionClientApi - factory interface
1090
+ * @export
1091
+ */
1092
+ var ActionClientApiFactory = function (configuration, basePath, axios) {
1093
+ var localVarFp = (0, exports.ActionClientApiFp)(configuration);
1094
+ return {
1095
+ /**
1096
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1097
+ * @summary Create the action
1098
+ * @param {CreateActionRequestDto} createActionRequestDto
1099
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1100
+ * @param {*} [options] Override http request option.
1101
+ * @throws {RequiredError}
1102
+ */
1103
+ createAction: function (createActionRequestDto, authorization, options) {
1104
+ return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1105
+ },
1106
+ /**
1107
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1108
+ * @summary Delete the action
1109
+ * @param {string} code Action code
1110
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1111
+ * @param {*} [options] Override http request option.
1112
+ * @throws {RequiredError}
1113
+ */
1114
+ deleteAction: function (code, authorization, options) {
1115
+ return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
1116
+ },
1117
+ /**
1118
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1119
+ * @summary Delete the action version
1120
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
1121
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ deleteActionVersion: function (versionCode, authorization, options) {
1126
+ return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
1127
+ },
1128
+ /**
1129
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1130
+ * @summary Retrieve the action
1131
+ * @param {string} code Action code
1132
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1133
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ getAction: function (code, authorization, expand, options) {
1138
+ return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1139
+ },
1140
+ /**
1141
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1142
+ * @summary Retrieve the actionExecution
1143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1144
+ * @param {string} [executionCode] Action execution code
1145
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
1146
+ * @param {*} [options] Override http request option.
1147
+ * @throws {RequiredError}
1148
+ */
1149
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
1150
+ return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
1151
+ },
1152
+ /**
1153
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1154
+ * @summary Retrieve the action version
1155
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
1156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1157
+ * @param {string} [expand]
1158
+ * @param {*} [options] Override http request option.
1159
+ * @throws {RequiredError}
1160
+ */
1161
+ getActionVersion: function (versionCode, authorization, expand, options) {
1162
+ return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1163
+ },
1164
+ /**
1165
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1166
+ * @summary List actionExecutions
1167
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1168
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1169
+ * @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.
1170
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1171
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1172
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
1173
+ * @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;
1174
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1175
+ * @param {*} [options] Override http request option.
1176
+ * @throws {RequiredError}
1177
+ */
1178
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1179
+ return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1180
+ },
1181
+ /**
1182
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1183
+ * @summary List action versions
1184
+ * @param {string} code Action code
1185
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1186
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1187
+ * @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.
1188
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1189
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1190
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1191
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1192
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1193
+ * @param {*} [options] Override http request option.
1194
+ * @throws {RequiredError}
1195
+ */
1196
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1197
+ return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1198
+ },
1199
+ /**
1200
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1201
+ * @summary List actions
1202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1203
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1204
+ * @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.
1205
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1206
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1207
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1208
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1209
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1210
+ * @param {*} [options] Override http request option.
1211
+ * @throws {RequiredError}
1212
+ */
1213
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1214
+ return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1215
+ },
1216
+ /**
1217
+ * Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
1218
+ * @summary List action versions
1219
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1220
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1221
+ * @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.
1222
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1223
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1224
+ * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1225
+ * @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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1226
+ * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1227
+ * @param {*} [options] Override http request option.
1228
+ * @throws {RequiredError}
1229
+ */
1230
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1231
+ return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1232
+ },
1233
+ /**
1234
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
1235
+ * @summary Create the actionExecution
1236
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
1237
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ triggerAction: function (triggerActionRequestDto, authorization, options) {
1242
+ return localVarFp.triggerAction(triggerActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1243
+ },
1244
+ /**
1245
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1246
+ * @summary Update the action
1247
+ * @param {string} code Action code
1248
+ * @param {UpdateActionRequestDto} updateActionRequestDto
1249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1250
+ * @param {*} [options] Override http request option.
1251
+ * @throws {RequiredError}
1252
+ */
1253
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
1254
+ return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1255
+ },
1256
+ };
1257
+ };
1258
+ exports.ActionClientApiFactory = ActionClientApiFactory;
1259
+ /**
1260
+ * ActionClientApi - object-oriented interface
1261
+ * @export
1262
+ * @class ActionClientApi
1263
+ * @extends {BaseAPI}
1264
+ */
1265
+ var ActionClientApi = /** @class */ (function (_super) {
1266
+ __extends(ActionClientApi, _super);
1267
+ function ActionClientApi() {
1268
+ return _super !== null && _super.apply(this, arguments) || this;
1269
+ }
1270
+ /**
1271
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1272
+ * @summary Create the action
1273
+ * @param {ActionClientApiCreateActionRequest} requestParameters Request parameters.
1274
+ * @param {*} [options] Override http request option.
1275
+ * @throws {RequiredError}
1276
+ * @memberof ActionClientApi
1277
+ */
1278
+ ActionClientApi.prototype.createAction = function (requestParameters, options) {
1279
+ var _this = this;
1280
+ return (0, exports.ActionClientApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1281
+ };
1282
+ /**
1283
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1284
+ * @summary Delete the action
1285
+ * @param {ActionClientApiDeleteActionRequest} requestParameters Request parameters.
1286
+ * @param {*} [options] Override http request option.
1287
+ * @throws {RequiredError}
1288
+ * @memberof ActionClientApi
1289
+ */
1290
+ ActionClientApi.prototype.deleteAction = function (requestParameters, options) {
1291
+ var _this = this;
1292
+ return (0, exports.ActionClientApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1293
+ };
1294
+ /**
1295
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1296
+ * @summary Delete the action version
1297
+ * @param {ActionClientApiDeleteActionVersionRequest} requestParameters Request parameters.
1298
+ * @param {*} [options] Override http request option.
1299
+ * @throws {RequiredError}
1300
+ * @memberof ActionClientApi
1301
+ */
1302
+ ActionClientApi.prototype.deleteActionVersion = function (requestParameters, options) {
1303
+ var _this = this;
1304
+ return (0, exports.ActionClientApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1305
+ };
1306
+ /**
1307
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1308
+ * @summary Retrieve the action
1309
+ * @param {ActionClientApiGetActionRequest} requestParameters Request parameters.
1310
+ * @param {*} [options] Override http request option.
1311
+ * @throws {RequiredError}
1312
+ * @memberof ActionClientApi
1313
+ */
1314
+ ActionClientApi.prototype.getAction = function (requestParameters, options) {
1315
+ var _this = this;
1316
+ return (0, exports.ActionClientApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1317
+ };
1318
+ /**
1319
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1320
+ * @summary Retrieve the actionExecution
1321
+ * @param {ActionClientApiGetActionExecutionStatusRequest} requestParameters Request parameters.
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ * @memberof ActionClientApi
1325
+ */
1326
+ ActionClientApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
1327
+ var _this = this;
1328
+ if (requestParameters === void 0) { requestParameters = {}; }
1329
+ return (0, exports.ActionClientApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1330
+ };
1331
+ /**
1332
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1333
+ * @summary Retrieve the action version
1334
+ * @param {ActionClientApiGetActionVersionRequest} requestParameters Request parameters.
1335
+ * @param {*} [options] Override http request option.
1336
+ * @throws {RequiredError}
1337
+ * @memberof ActionClientApi
1338
+ */
1339
+ ActionClientApi.prototype.getActionVersion = function (requestParameters, options) {
1340
+ var _this = this;
1341
+ return (0, exports.ActionClientApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1342
+ };
1343
+ /**
1344
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1345
+ * @summary List actionExecutions
1346
+ * @param {ActionClientApiListActionExecutionsRequest} requestParameters Request parameters.
1347
+ * @param {*} [options] Override http request option.
1348
+ * @throws {RequiredError}
1349
+ * @memberof ActionClientApi
1350
+ */
1351
+ ActionClientApi.prototype.listActionExecutions = function (requestParameters, options) {
1352
+ var _this = this;
1353
+ if (requestParameters === void 0) { requestParameters = {}; }
1354
+ return (0, exports.ActionClientApiFp)(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); });
1355
+ };
1356
+ /**
1357
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1358
+ * @summary List action versions
1359
+ * @param {ActionClientApiListActionVersionsRequest} requestParameters Request parameters.
1360
+ * @param {*} [options] Override http request option.
1361
+ * @throws {RequiredError}
1362
+ * @memberof ActionClientApi
1363
+ */
1364
+ ActionClientApi.prototype.listActionVersions = function (requestParameters, options) {
1365
+ var _this = this;
1366
+ return (0, exports.ActionClientApiFp)(this.configuration).listActionVersions(requestParameters.code, 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); });
1367
+ };
1368
+ /**
1369
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1370
+ * @summary List actions
1371
+ * @param {ActionClientApiListActionsRequest} requestParameters Request parameters.
1372
+ * @param {*} [options] Override http request option.
1373
+ * @throws {RequiredError}
1374
+ * @memberof ActionClientApi
1375
+ */
1376
+ ActionClientApi.prototype.listActions = function (requestParameters, options) {
1377
+ var _this = this;
1378
+ if (requestParameters === void 0) { requestParameters = {}; }
1379
+ return (0, exports.ActionClientApiFp)(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); });
1380
+ };
1381
+ /**
1382
+ * Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
1383
+ * @summary List action versions
1384
+ * @param {ActionClientApiListAllActionVersionsRequest} requestParameters Request parameters.
1385
+ * @param {*} [options] Override http request option.
1386
+ * @throws {RequiredError}
1387
+ * @memberof ActionClientApi
1388
+ */
1389
+ ActionClientApi.prototype.listAllActionVersions = function (requestParameters, options) {
1390
+ var _this = this;
1391
+ if (requestParameters === void 0) { requestParameters = {}; }
1392
+ return (0, exports.ActionClientApiFp)(this.configuration).listAllActionVersions(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); });
1393
+ };
1394
+ /**
1395
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
1396
+ * @summary Create the actionExecution
1397
+ * @param {ActionClientApiTriggerActionRequest} requestParameters Request parameters.
1398
+ * @param {*} [options] Override http request option.
1399
+ * @throws {RequiredError}
1400
+ * @memberof ActionClientApi
1401
+ */
1402
+ ActionClientApi.prototype.triggerAction = function (requestParameters, options) {
1403
+ var _this = this;
1404
+ return (0, exports.ActionClientApiFp)(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1405
+ };
1406
+ /**
1407
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1408
+ * @summary Update the action
1409
+ * @param {ActionClientApiUpdateActionRequest} requestParameters Request parameters.
1410
+ * @param {*} [options] Override http request option.
1411
+ * @throws {RequiredError}
1412
+ * @memberof ActionClientApi
1413
+ */
1414
+ ActionClientApi.prototype.updateAction = function (requestParameters, options) {
1415
+ var _this = this;
1416
+ return (0, exports.ActionClientApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1417
+ };
1418
+ return ActionClientApi;
1419
+ }(base_1.BaseAPI));
1420
+ exports.ActionClientApi = ActionClientApi;