@emilgroup/action-sdk 1.1.1-beta.7 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +219 -397
  4. package/api/executions-api.ts +119 -12
  5. package/dist/api/actions-api.d.ts +178 -270
  6. package/dist/api/actions-api.js +153 -328
  7. package/dist/api/executions-api.d.ts +69 -12
  8. package/dist/api/executions-api.js +102 -9
  9. package/dist/models/action-class.d.ts +9 -20
  10. package/dist/models/action-execution-class.d.ts +36 -0
  11. package/dist/models/action-ref-class.d.ts +36 -0
  12. package/dist/models/action-ref-class.js +15 -0
  13. package/dist/models/action-version-class.d.ts +127 -0
  14. package/dist/models/action-version-class.js +21 -0
  15. package/dist/models/create-action-request-dto.d.ts +47 -5
  16. package/dist/models/create-action-request-dto.js +6 -0
  17. package/dist/models/get-action-version-response-class.d.ts +25 -0
  18. package/dist/models/get-action-version-response-class.js +15 -0
  19. package/dist/models/index.d.ts +6 -0
  20. package/dist/models/index.js +6 -0
  21. package/dist/models/list-action-versions-response-class.d.ts +43 -0
  22. package/dist/models/list-action-versions-response-class.js +15 -0
  23. package/dist/models/trigger-action-request-dto.d.ts +62 -0
  24. package/dist/models/trigger-action-request-dto.js +15 -0
  25. package/dist/models/trigger-action-response-class.d.ts +25 -0
  26. package/dist/models/trigger-action-response-class.js +15 -0
  27. package/dist/models/update-action-request-dto.d.ts +41 -5
  28. package/dist/models/update-action-request-dto.js +6 -0
  29. package/models/action-class.ts +9 -20
  30. package/models/action-execution-class.ts +36 -0
  31. package/models/action-ref-class.ts +42 -0
  32. package/models/action-version-class.ts +136 -0
  33. package/models/create-action-request-dto.ts +50 -5
  34. package/models/get-action-version-response-class.ts +31 -0
  35. package/models/index.ts +6 -0
  36. package/models/list-action-versions-response-class.ts +49 -0
  37. package/models/trigger-action-request-dto.ts +66 -0
  38. package/models/trigger-action-response-class.ts +31 -0
  39. package/models/update-action-request-dto.ts +44 -5
  40. package/package.json +1 -1
@@ -141,55 +141,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
141
141
  });
142
142
  });
143
143
  },
144
- /**
145
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
146
- * @summary Create the action
147
- * @param {CreateActionRequestDto} createActionRequestDto
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
- createAction_1: function (createActionRequestDto, 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 'createActionRequestDto' is not null or undefined
160
- (0, common_1.assertParamExists)('createAction_1', 'createActionRequestDto', createActionRequestDto);
161
- localVarPath = "/actionservice/v1/actions";
162
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
- if (configuration) {
164
- baseOptions = configuration.baseOptions;
165
- baseAccessToken = configuration.accessToken;
166
- }
167
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
168
- localVarHeaderParameter = {};
169
- localVarQueryParameter = {};
170
- // authentication bearer required
171
- // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
173
- case 1:
174
- // authentication bearer required
175
- // http bearer authentication required
176
- _a.sent();
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
- }
180
- localVarHeaderParameter['Content-Type'] = 'application/json';
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
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActionRequestDto, localVarRequestOptions, configuration);
185
- return [2 /*return*/, {
186
- url: (0, common_1.toPathString)(localVarUrlObj),
187
- options: localVarRequestOptions,
188
- }];
189
- }
190
- });
191
- });
192
- },
193
144
  /**
194
145
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
195
146
  * @summary Delete the action
@@ -239,24 +190,24 @@ var ActionsApiAxiosParamCreator = function (configuration) {
239
190
  });
240
191
  },
241
192
  /**
242
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
243
- * @summary Delete the action
244
- * @param {string} code Action code
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_<nanoid>)
245
196
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
197
  * @param {*} [options] Override http request option.
247
198
  * @throws {RequiredError}
248
199
  */
249
- deleteAction_2: function (code, authorization, options) {
200
+ deleteActionVersion: function (versionCode, authorization, options) {
250
201
  if (options === void 0) { options = {}; }
251
202
  return __awaiter(_this, void 0, void 0, function () {
252
203
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
204
  return __generator(this, function (_a) {
254
205
  switch (_a.label) {
255
206
  case 0:
256
- // verify required parameter 'code' is not null or undefined
257
- (0, common_1.assertParamExists)('deleteAction_2', 'code', code);
258
- localVarPath = "/actionservice/v1/actions/{code}"
259
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
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)));
260
211
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
212
  if (configuration) {
262
213
  baseOptions = configuration.baseOptions;
@@ -291,10 +242,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
291
242
  * @summary Retrieve the action
292
243
  * @param {string} code Action code
293
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)
294
246
  * @param {*} [options] Override http request option.
295
247
  * @throws {RequiredError}
296
248
  */
297
- getAction: function (code, authorization, options) {
249
+ getAction: function (code, authorization, expand, options) {
298
250
  if (options === void 0) { options = {}; }
299
251
  return __awaiter(_this, void 0, void 0, function () {
300
252
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -320,6 +272,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
320
272
  // authentication bearer required
321
273
  // http bearer authentication required
322
274
  _a.sent();
275
+ if (expand !== undefined) {
276
+ localVarQueryParameter['expand'] = expand;
277
+ }
323
278
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
324
279
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
325
280
  }
@@ -335,22 +290,25 @@ var ActionsApiAxiosParamCreator = function (configuration) {
335
290
  });
336
291
  },
337
292
  /**
338
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
339
- * @summary Retrieve the actionExecution
293
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
294
+ * @summary Retrieve the action version
295
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
340
296
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
341
- * @param {string} [executionCode] Action execution code
342
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
297
+ * @param {string} [expand]
343
298
  * @param {*} [options] Override http request option.
344
299
  * @throws {RequiredError}
345
300
  */
346
- getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
301
+ getActionVersion: function (versionCode, authorization, expand, options) {
347
302
  if (options === void 0) { options = {}; }
348
303
  return __awaiter(_this, void 0, void 0, function () {
349
304
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
350
305
  return __generator(this, function (_a) {
351
306
  switch (_a.label) {
352
307
  case 0:
353
- localVarPath = "/actionservice/v1/actions/executions/status";
308
+ // verify required parameter 'versionCode' is not null or undefined
309
+ (0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
310
+ localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
311
+ .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
354
312
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
355
313
  if (configuration) {
356
314
  baseOptions = configuration.baseOptions;
@@ -366,11 +324,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
366
324
  // authentication bearer required
367
325
  // http bearer authentication required
368
326
  _a.sent();
369
- if (executionCode !== undefined) {
370
- localVarQueryParameter['executionCode'] = executionCode;
371
- }
372
- if (correlationId !== undefined) {
373
- localVarQueryParameter['correlationId'] = correlationId;
327
+ if (expand !== undefined) {
328
+ localVarQueryParameter['expand'] = expand;
374
329
  }
375
330
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
376
331
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
@@ -387,75 +342,31 @@ var ActionsApiAxiosParamCreator = function (configuration) {
387
342
  });
388
343
  },
389
344
  /**
390
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
391
- * @summary Retrieve the action
345
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
346
+ * @summary List action versions
392
347
  * @param {string} code Action code
393
348
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
- * @param {*} [options] Override http request option.
395
- * @throws {RequiredError}
396
- */
397
- getAction_3: function (code, authorization, options) {
398
- if (options === void 0) { options = {}; }
399
- return __awaiter(_this, void 0, void 0, function () {
400
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
401
- return __generator(this, function (_a) {
402
- switch (_a.label) {
403
- case 0:
404
- // verify required parameter 'code' is not null or undefined
405
- (0, common_1.assertParamExists)('getAction_3', 'code', code);
406
- localVarPath = "/actionservice/v1/actions/{code}"
407
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
408
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
409
- if (configuration) {
410
- baseOptions = configuration.baseOptions;
411
- baseAccessToken = configuration.accessToken;
412
- }
413
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
414
- localVarHeaderParameter = {};
415
- localVarQueryParameter = {};
416
- // authentication bearer required
417
- // http bearer authentication required
418
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
419
- case 1:
420
- // authentication bearer required
421
- // http bearer authentication required
422
- _a.sent();
423
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
424
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
425
- }
426
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
427
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
428
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
429
- return [2 /*return*/, {
430
- url: (0, common_1.toPathString)(localVarUrlObj),
431
- options: localVarRequestOptions,
432
- }];
433
- }
434
- });
435
- });
436
- },
437
- /**
438
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
439
- * @summary List actionExecutions
440
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
441
349
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
442
350
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
443
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
351
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
444
352
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
445
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
446
- * @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.<br/> <br/>
447
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
353
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
354
+ * @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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
355
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
448
356
  * @param {*} [options] Override http request option.
449
357
  * @throws {RequiredError}
450
358
  */
451
- listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
359
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
452
360
  if (options === void 0) { options = {}; }
453
361
  return __awaiter(_this, void 0, void 0, function () {
454
362
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
455
363
  return __generator(this, function (_a) {
456
364
  switch (_a.label) {
457
365
  case 0:
458
- localVarPath = "/actionservice/v1/actions/executions";
366
+ // verify required parameter 'code' is not null or undefined
367
+ (0, common_1.assertParamExists)('listActionVersions', 'code', code);
368
+ localVarPath = "/actionservice/v1/actions/{code}/versions"
369
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
459
370
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
460
371
  if (configuration) {
461
372
  baseOptions = configuration.baseOptions;
@@ -512,11 +423,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
512
423
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
513
424
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
514
425
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
515
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
426
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
516
427
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
517
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
518
- * @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.<br/> <br/>
519
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
428
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
429
+ * @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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
430
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
520
431
  * @param {*} [options] Override http request option.
521
432
  * @throws {RequiredError}
522
433
  */
@@ -579,27 +490,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
579
490
  });
580
491
  },
581
492
  /**
582
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
583
- * @summary List actions
493
+ * 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\"
494
+ * @summary List action versions
584
495
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
585
496
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
586
497
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
587
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
498
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
588
499
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
589
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
590
- * @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.<br/> <br/>
591
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
500
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
501
+ * @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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
502
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
592
503
  * @param {*} [options] Override http request option.
593
504
  * @throws {RequiredError}
594
505
  */
595
- listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
506
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
596
507
  if (options === void 0) { options = {}; }
597
508
  return __awaiter(_this, void 0, void 0, function () {
598
509
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
599
510
  return __generator(this, function (_a) {
600
511
  switch (_a.label) {
601
512
  case 0:
602
- localVarPath = "/actionservice/v1/actions";
513
+ localVarPath = "/actionservice/v1/actions/versions";
603
514
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
604
515
  if (configuration) {
605
516
  baseOptions = configuration.baseOptions;
@@ -651,7 +562,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
651
562
  });
652
563
  },
653
564
  /**
654
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
565
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
655
566
  * @summary Update the action
656
567
  * @param {string} code Action code
657
568
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -704,7 +615,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
704
615
  });
705
616
  },
706
617
  /**
707
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
618
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
708
619
  * @summary Update the action
709
620
  * @param {string} code Action code
710
621
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -712,7 +623,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
712
623
  * @param {*} [options] Override http request option.
713
624
  * @throws {RequiredError}
714
625
  */
715
- updateAction_5: function (code, updateActionRequestDto, authorization, options) {
626
+ updateAction_1: function (code, updateActionRequestDto, authorization, options) {
716
627
  if (options === void 0) { options = {}; }
717
628
  return __awaiter(_this, void 0, void 0, function () {
718
629
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -720,9 +631,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
720
631
  switch (_a.label) {
721
632
  case 0:
722
633
  // verify required parameter 'code' is not null or undefined
723
- (0, common_1.assertParamExists)('updateAction_5', 'code', code);
634
+ (0, common_1.assertParamExists)('updateAction_1', 'code', code);
724
635
  // verify required parameter 'updateActionRequestDto' is not null or undefined
725
- (0, common_1.assertParamExists)('updateAction_5', 'updateActionRequestDto', updateActionRequestDto);
636
+ (0, common_1.assertParamExists)('updateAction_1', 'updateActionRequestDto', updateActionRequestDto);
726
637
  localVarPath = "/actionservice/v1/actions/{code}"
727
638
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
728
639
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -787,27 +698,6 @@ var ActionsApiFp = function (configuration) {
787
698
  });
788
699
  });
789
700
  },
790
- /**
791
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
792
- * @summary Create the action
793
- * @param {CreateActionRequestDto} createActionRequestDto
794
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
795
- * @param {*} [options] Override http request option.
796
- * @throws {RequiredError}
797
- */
798
- createAction_1: function (createActionRequestDto, authorization, options) {
799
- return __awaiter(this, void 0, void 0, function () {
800
- var localVarAxiosArgs;
801
- return __generator(this, function (_a) {
802
- switch (_a.label) {
803
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAction_1(createActionRequestDto, authorization, options)];
804
- case 1:
805
- localVarAxiosArgs = _a.sent();
806
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
807
- }
808
- });
809
- });
810
- },
811
701
  /**
812
702
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
813
703
  * @summary Delete the action
@@ -830,19 +720,19 @@ var ActionsApiFp = function (configuration) {
830
720
  });
831
721
  },
832
722
  /**
833
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
834
- * @summary Delete the action
835
- * @param {string} code Action code
723
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
724
+ * @summary Delete the action version
725
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
836
726
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
837
727
  * @param {*} [options] Override http request option.
838
728
  * @throws {RequiredError}
839
729
  */
840
- deleteAction_2: function (code, authorization, options) {
730
+ deleteActionVersion: function (versionCode, authorization, options) {
841
731
  return __awaiter(this, void 0, void 0, function () {
842
732
  var localVarAxiosArgs;
843
733
  return __generator(this, function (_a) {
844
734
  switch (_a.label) {
845
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction_2(code, authorization, options)];
735
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options)];
846
736
  case 1:
847
737
  localVarAxiosArgs = _a.sent();
848
738
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -855,15 +745,16 @@ var ActionsApiFp = function (configuration) {
855
745
  * @summary Retrieve the action
856
746
  * @param {string} code Action code
857
747
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
748
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
858
749
  * @param {*} [options] Override http request option.
859
750
  * @throws {RequiredError}
860
751
  */
861
- getAction: function (code, authorization, options) {
752
+ getAction: function (code, authorization, expand, options) {
862
753
  return __awaiter(this, void 0, void 0, function () {
863
754
  var localVarAxiosArgs;
864
755
  return __generator(this, function (_a) {
865
756
  switch (_a.label) {
866
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
757
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, expand, options)];
867
758
  case 1:
868
759
  localVarAxiosArgs = _a.sent();
869
760
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -872,20 +763,20 @@ var ActionsApiFp = function (configuration) {
872
763
  });
873
764
  },
874
765
  /**
875
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
876
- * @summary Retrieve the actionExecution
766
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
767
+ * @summary Retrieve the action version
768
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
877
769
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
878
- * @param {string} [executionCode] Action execution code
879
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
770
+ * @param {string} [expand]
880
771
  * @param {*} [options] Override http request option.
881
772
  * @throws {RequiredError}
882
773
  */
883
- getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
774
+ getActionVersion: function (versionCode, authorization, expand, options) {
884
775
  return __awaiter(this, void 0, void 0, function () {
885
776
  var localVarAxiosArgs;
886
777
  return __generator(this, function (_a) {
887
778
  switch (_a.label) {
888
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options)];
779
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
889
780
  case 1:
890
781
  localVarAxiosArgs = _a.sent();
891
782
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -894,46 +785,26 @@ var ActionsApiFp = function (configuration) {
894
785
  });
895
786
  },
896
787
  /**
897
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
898
- * @summary Retrieve the action
788
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
789
+ * @summary List action versions
899
790
  * @param {string} code Action code
900
791
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
901
- * @param {*} [options] Override http request option.
902
- * @throws {RequiredError}
903
- */
904
- getAction_3: function (code, authorization, options) {
905
- return __awaiter(this, void 0, void 0, function () {
906
- var localVarAxiosArgs;
907
- return __generator(this, function (_a) {
908
- switch (_a.label) {
909
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction_3(code, authorization, options)];
910
- case 1:
911
- localVarAxiosArgs = _a.sent();
912
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
913
- }
914
- });
915
- });
916
- },
917
- /**
918
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
919
- * @summary List actionExecutions
920
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
921
792
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
922
793
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
923
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
794
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
924
795
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
925
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
926
- * @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.<br/> <br/>
927
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
796
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
797
+ * @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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
798
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
928
799
  * @param {*} [options] Override http request option.
929
800
  * @throws {RequiredError}
930
801
  */
931
- listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
802
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
932
803
  return __awaiter(this, void 0, void 0, function () {
933
804
  var localVarAxiosArgs;
934
805
  return __generator(this, function (_a) {
935
806
  switch (_a.label) {
936
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
807
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
937
808
  case 1:
938
809
  localVarAxiosArgs = _a.sent();
939
810
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -947,11 +818,11 @@ var ActionsApiFp = function (configuration) {
947
818
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
948
819
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
949
820
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
950
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
821
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
951
822
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
952
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
953
- * @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.<br/> <br/>
954
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
823
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
824
+ * @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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
825
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
955
826
  * @param {*} [options] Override http request option.
956
827
  * @throws {RequiredError}
957
828
  */
@@ -969,25 +840,25 @@ var ActionsApiFp = function (configuration) {
969
840
  });
970
841
  },
971
842
  /**
972
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
973
- * @summary List actions
843
+ * 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\"
844
+ * @summary List action versions
974
845
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
975
846
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
976
847
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
977
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
848
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
978
849
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
979
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
980
- * @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.<br/> <br/>
981
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
850
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
851
+ * @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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
852
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
982
853
  * @param {*} [options] Override http request option.
983
854
  * @throws {RequiredError}
984
855
  */
985
- listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
856
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
986
857
  return __awaiter(this, void 0, void 0, function () {
987
858
  var localVarAxiosArgs;
988
859
  return __generator(this, function (_a) {
989
860
  switch (_a.label) {
990
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
861
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
991
862
  case 1:
992
863
  localVarAxiosArgs = _a.sent();
993
864
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -996,7 +867,7 @@ var ActionsApiFp = function (configuration) {
996
867
  });
997
868
  },
998
869
  /**
999
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
870
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1000
871
  * @summary Update the action
1001
872
  * @param {string} code Action code
1002
873
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1018,7 +889,7 @@ var ActionsApiFp = function (configuration) {
1018
889
  });
1019
890
  },
1020
891
  /**
1021
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
892
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1022
893
  * @summary Update the action
1023
894
  * @param {string} code Action code
1024
895
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1026,12 +897,12 @@ var ActionsApiFp = function (configuration) {
1026
897
  * @param {*} [options] Override http request option.
1027
898
  * @throws {RequiredError}
1028
899
  */
1029
- updateAction_5: function (code, updateActionRequestDto, authorization, options) {
900
+ updateAction_1: function (code, updateActionRequestDto, authorization, options) {
1030
901
  return __awaiter(this, void 0, void 0, function () {
1031
902
  var localVarAxiosArgs;
1032
903
  return __generator(this, function (_a) {
1033
904
  switch (_a.label) {
1034
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options)];
905
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options)];
1035
906
  case 1:
1036
907
  localVarAxiosArgs = _a.sent();
1037
908
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1060,17 +931,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1060
931
  createAction: function (createActionRequestDto, authorization, options) {
1061
932
  return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1062
933
  },
1063
- /**
1064
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1065
- * @summary Create the action
1066
- * @param {CreateActionRequestDto} createActionRequestDto
1067
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1068
- * @param {*} [options] Override http request option.
1069
- * @throws {RequiredError}
1070
- */
1071
- createAction_1: function (createActionRequestDto, authorization, options) {
1072
- return localVarFp.createAction_1(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1073
- },
1074
934
  /**
1075
935
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1076
936
  * @summary Delete the action
@@ -1083,66 +943,57 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1083
943
  return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
1084
944
  },
1085
945
  /**
1086
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1087
- * @summary Delete the action
1088
- * @param {string} code Action code
946
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
947
+ * @summary Delete the action version
948
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
1089
949
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1090
950
  * @param {*} [options] Override http request option.
1091
951
  * @throws {RequiredError}
1092
952
  */
1093
- deleteAction_2: function (code, authorization, options) {
1094
- return localVarFp.deleteAction_2(code, authorization, options).then(function (request) { return request(axios, basePath); });
953
+ deleteActionVersion: function (versionCode, authorization, options) {
954
+ return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
1095
955
  },
1096
956
  /**
1097
957
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1098
958
  * @summary Retrieve the action
1099
959
  * @param {string} code Action code
1100
960
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
961
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
1101
962
  * @param {*} [options] Override http request option.
1102
963
  * @throws {RequiredError}
1103
964
  */
1104
- getAction: function (code, authorization, options) {
1105
- return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
965
+ getAction: function (code, authorization, expand, options) {
966
+ return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1106
967
  },
1107
968
  /**
1108
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1109
- * @summary Retrieve the actionExecution
969
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
970
+ * @summary Retrieve the action version
971
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
1110
972
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1111
- * @param {string} [executionCode] Action execution code
1112
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
973
+ * @param {string} [expand]
1113
974
  * @param {*} [options] Override http request option.
1114
975
  * @throws {RequiredError}
1115
976
  */
1116
- getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
1117
- return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
977
+ getActionVersion: function (versionCode, authorization, expand, options) {
978
+ return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1118
979
  },
1119
980
  /**
1120
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1121
- * @summary Retrieve the action
981
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
982
+ * @summary List action versions
1122
983
  * @param {string} code Action code
1123
984
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1124
- * @param {*} [options] Override http request option.
1125
- * @throws {RequiredError}
1126
- */
1127
- getAction_3: function (code, authorization, options) {
1128
- return localVarFp.getAction_3(code, authorization, options).then(function (request) { return request(axios, basePath); });
1129
- },
1130
- /**
1131
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1132
- * @summary List actionExecutions
1133
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1134
985
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1135
986
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
1136
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
987
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1137
988
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1138
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
1139
- * @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.<br/> <br/>
1140
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
989
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
990
+ * @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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
991
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1141
992
  * @param {*} [options] Override http request option.
1142
993
  * @throws {RequiredError}
1143
994
  */
1144
- listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1145
- return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
995
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
996
+ return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1146
997
  },
1147
998
  /**
1148
999
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -1150,11 +1001,11 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1150
1001
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1151
1002
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1152
1003
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
1153
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
1004
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1154
1005
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1155
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
1156
- * @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.<br/> <br/>
1157
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
1006
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
1007
+ * @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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
1008
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1158
1009
  * @param {*} [options] Override http request option.
1159
1010
  * @throws {RequiredError}
1160
1011
  */
@@ -1162,24 +1013,24 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1162
1013
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1163
1014
  },
1164
1015
  /**
1165
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1166
- * @summary List actions
1016
+ * Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
1017
+ * @summary List action versions
1167
1018
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1168
1019
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1169
1020
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
1170
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
1021
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1171
1022
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1172
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
1173
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
1174
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
1023
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
1024
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
1025
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1175
1026
  * @param {*} [options] Override http request option.
1176
1027
  * @throws {RequiredError}
1177
1028
  */
1178
- listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1179
- return localVarFp.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1029
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1030
+ return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1180
1031
  },
1181
1032
  /**
1182
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1033
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1183
1034
  * @summary Update the action
1184
1035
  * @param {string} code Action code
1185
1036
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1191,7 +1042,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1191
1042
  return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1192
1043
  },
1193
1044
  /**
1194
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1045
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1195
1046
  * @summary Update the action
1196
1047
  * @param {string} code Action code
1197
1048
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1199,8 +1050,8 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1199
1050
  * @param {*} [options] Override http request option.
1200
1051
  * @throws {RequiredError}
1201
1052
  */
1202
- updateAction_5: function (code, updateActionRequestDto, authorization, options) {
1203
- return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1053
+ updateAction_1: function (code, updateActionRequestDto, authorization, options) {
1054
+ return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1204
1055
  },
1205
1056
  };
1206
1057
  };
@@ -1228,18 +1079,6 @@ var ActionsApi = /** @class */ (function (_super) {
1228
1079
  var _this = this;
1229
1080
  return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1230
1081
  };
1231
- /**
1232
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1233
- * @summary Create the action
1234
- * @param {ActionsApiCreateAction0Request} requestParameters Request parameters.
1235
- * @param {*} [options] Override http request option.
1236
- * @throws {RequiredError}
1237
- * @memberof ActionsApi
1238
- */
1239
- ActionsApi.prototype.createAction_1 = function (requestParameters, options) {
1240
- var _this = this;
1241
- return (0, exports.ActionsApiFp)(this.configuration).createAction_1(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1242
- };
1243
1082
  /**
1244
1083
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1245
1084
  * @summary Delete the action
@@ -1253,16 +1092,16 @@ var ActionsApi = /** @class */ (function (_super) {
1253
1092
  return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1254
1093
  };
1255
1094
  /**
1256
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1257
- * @summary Delete the action
1258
- * @param {ActionsApiDeleteAction0Request} requestParameters Request parameters.
1095
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1096
+ * @summary Delete the action version
1097
+ * @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
1259
1098
  * @param {*} [options] Override http request option.
1260
1099
  * @throws {RequiredError}
1261
1100
  * @memberof ActionsApi
1262
1101
  */
1263
- ActionsApi.prototype.deleteAction_2 = function (requestParameters, options) {
1102
+ ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
1264
1103
  var _this = this;
1265
- return (0, exports.ActionsApiFp)(this.configuration).deleteAction_2(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1104
+ return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1266
1105
  };
1267
1106
  /**
1268
1107
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
@@ -1274,45 +1113,31 @@ var ActionsApi = /** @class */ (function (_super) {
1274
1113
  */
1275
1114
  ActionsApi.prototype.getAction = function (requestParameters, options) {
1276
1115
  var _this = this;
1277
- return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1278
- };
1279
- /**
1280
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1281
- * @summary Retrieve the actionExecution
1282
- * @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
1283
- * @param {*} [options] Override http request option.
1284
- * @throws {RequiredError}
1285
- * @memberof ActionsApi
1286
- */
1287
- ActionsApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
1288
- var _this = this;
1289
- if (requestParameters === void 0) { requestParameters = {}; }
1290
- return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1116
+ return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1291
1117
  };
1292
1118
  /**
1293
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1294
- * @summary Retrieve the action
1295
- * @param {ActionsApiGetAction0Request} requestParameters Request parameters.
1119
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1120
+ * @summary Retrieve the action version
1121
+ * @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
1296
1122
  * @param {*} [options] Override http request option.
1297
1123
  * @throws {RequiredError}
1298
1124
  * @memberof ActionsApi
1299
1125
  */
1300
- ActionsApi.prototype.getAction_3 = function (requestParameters, options) {
1126
+ ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
1301
1127
  var _this = this;
1302
- return (0, exports.ActionsApiFp)(this.configuration).getAction_3(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1128
+ return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1303
1129
  };
1304
1130
  /**
1305
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1306
- * @summary List actionExecutions
1307
- * @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
1131
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1132
+ * @summary List action versions
1133
+ * @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
1308
1134
  * @param {*} [options] Override http request option.
1309
1135
  * @throws {RequiredError}
1310
1136
  * @memberof ActionsApi
1311
1137
  */
1312
- ActionsApi.prototype.listActionExecutions = function (requestParameters, options) {
1138
+ ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
1313
1139
  var _this = this;
1314
- if (requestParameters === void 0) { requestParameters = {}; }
1315
- return (0, exports.ActionsApiFp)(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1140
+ return (0, exports.ActionsApiFp)(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); });
1316
1141
  };
1317
1142
  /**
1318
1143
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -1328,20 +1153,20 @@ var ActionsApi = /** @class */ (function (_super) {
1328
1153
  return (0, exports.ActionsApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1329
1154
  };
1330
1155
  /**
1331
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1332
- * @summary List actions
1333
- * @param {ActionsApiListActions0Request} requestParameters Request parameters.
1156
+ * 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\"
1157
+ * @summary List action versions
1158
+ * @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
1334
1159
  * @param {*} [options] Override http request option.
1335
1160
  * @throws {RequiredError}
1336
1161
  * @memberof ActionsApi
1337
1162
  */
1338
- ActionsApi.prototype.listActions_4 = function (requestParameters, options) {
1163
+ ActionsApi.prototype.listAllActionVersions = function (requestParameters, options) {
1339
1164
  var _this = this;
1340
1165
  if (requestParameters === void 0) { requestParameters = {}; }
1341
- return (0, exports.ActionsApiFp)(this.configuration).listActions_4(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); });
1166
+ return (0, exports.ActionsApiFp)(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); });
1342
1167
  };
1343
1168
  /**
1344
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1169
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1345
1170
  * @summary Update the action
1346
1171
  * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
1347
1172
  * @param {*} [options] Override http request option.
@@ -1353,16 +1178,16 @@ var ActionsApi = /** @class */ (function (_super) {
1353
1178
  return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1354
1179
  };
1355
1180
  /**
1356
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1181
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1357
1182
  * @summary Update the action
1358
1183
  * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
1359
1184
  * @param {*} [options] Override http request option.
1360
1185
  * @throws {RequiredError}
1361
1186
  * @memberof ActionsApi
1362
1187
  */
1363
- ActionsApi.prototype.updateAction_5 = function (requestParameters, options) {
1188
+ ActionsApi.prototype.updateAction_1 = function (requestParameters, options) {
1364
1189
  var _this = this;
1365
- return (0, exports.ActionsApiFp)(this.configuration).updateAction_5(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1190
+ return (0, exports.ActionsApiFp)(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1366
1191
  };
1367
1192
  return ActionsApi;
1368
1193
  }(base_1.BaseAPI));