@emilgroup/action-sdk 1.2.0 → 1.2.1-beta.10

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