@emilgroup/action-sdk-node 1.0.1-beta.40 → 1.0.1-beta.46

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.
@@ -193,6 +193,54 @@ var ActionsApiAxiosParamCreator = function (configuration) {
193
193
  });
194
194
  });
195
195
  },
196
+ /**
197
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
198
+ * @summary Delete the action version
199
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
200
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ deleteActionVersion: function (versionCode, authorization, options) {
205
+ if (options === void 0) { options = {}; }
206
+ return __awaiter(_this, void 0, void 0, function () {
207
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ // verify required parameter 'versionCode' is not null or undefined
212
+ (0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
213
+ localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
214
+ .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
215
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ baseAccessToken = configuration.accessToken;
219
+ }
220
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
221
+ localVarHeaderParameter = {};
222
+ localVarQueryParameter = {};
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
226
+ case 1:
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ return [2 /*return*/, {
237
+ url: (0, common_1.toPathString)(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ }];
240
+ }
241
+ });
242
+ });
243
+ },
196
244
  /**
197
245
  * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
198
246
  * @summary Retrieve the entity-actions-yaml
@@ -309,6 +357,58 @@ var ActionsApiAxiosParamCreator = function (configuration) {
309
357
  });
310
358
  });
311
359
  },
360
+ /**
361
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
362
+ * @summary Retrieve the action version
363
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
364
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @param {string} [expand]
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ getActionVersion: function (versionCode, authorization, expand, options) {
370
+ if (options === void 0) { options = {}; }
371
+ return __awaiter(_this, void 0, void 0, function () {
372
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
373
+ return __generator(this, function (_a) {
374
+ switch (_a.label) {
375
+ case 0:
376
+ // verify required parameter 'versionCode' is not null or undefined
377
+ (0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
378
+ localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
379
+ .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
380
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
381
+ if (configuration) {
382
+ baseOptions = configuration.baseOptions;
383
+ baseAccessToken = configuration.accessToken;
384
+ }
385
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
386
+ localVarHeaderParameter = {};
387
+ localVarQueryParameter = {};
388
+ // authentication bearer required
389
+ // http bearer authentication required
390
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
391
+ case 1:
392
+ // authentication bearer required
393
+ // http bearer authentication required
394
+ _a.sent();
395
+ if (expand !== undefined) {
396
+ localVarQueryParameter['expand'] = expand;
397
+ }
398
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
399
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
400
+ }
401
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
402
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
403
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
404
+ return [2 /*return*/, {
405
+ url: (0, common_1.toPathString)(localVarUrlObj),
406
+ options: localVarRequestOptions,
407
+ }];
408
+ }
409
+ });
410
+ });
411
+ },
312
412
  /**
313
413
  * Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
314
414
  * @summary Update the entity-actions-yaml
@@ -359,27 +459,31 @@ var ActionsApiAxiosParamCreator = function (configuration) {
359
459
  });
360
460
  },
361
461
  /**
362
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
363
- * @summary List actions
462
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
463
+ * @summary List action versions
464
+ * @param {string} code Action code
364
465
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
466
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
467
  * @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.
367
- * @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, configVersion, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
468
+ * @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</i>
368
469
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
369
- * @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, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt</i>
470
+ * @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>
370
471
  * @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>
371
- * @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, configVersion, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
472
+ * @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</i>
372
473
  * @param {*} [options] Override http request option.
373
474
  * @throws {RequiredError}
374
475
  */
375
- listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
476
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
376
477
  if (options === void 0) { options = {}; }
377
478
  return __awaiter(_this, void 0, void 0, function () {
378
479
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
379
480
  return __generator(this, function (_a) {
380
481
  switch (_a.label) {
381
482
  case 0:
382
- localVarPath = "/actionservice/v1/actions";
483
+ // verify required parameter 'code' is not null or undefined
484
+ (0, common_1.assertParamExists)('listActionVersions', 'code', code);
485
+ localVarPath = "/actionservice/v1/actions/{code}/versions"
486
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
383
487
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
384
488
  if (configuration) {
385
489
  baseOptions = configuration.baseOptions;
@@ -431,28 +535,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
431
535
  });
432
536
  },
433
537
  /**
434
- * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
435
- * @summary Retrieve the actionsByEntity
436
- * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
437
- * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
538
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
539
+ * @summary List actions
438
540
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
439
- * @param {boolean} [includeDisabled] Include disabled (draft) actions
440
- * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
541
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
542
+ * @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.
543
+ * @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</i>
544
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
545
+ * @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>
546
+ * @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>
547
+ * @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</i>
441
548
  * @param {*} [options] Override http request option.
442
549
  * @throws {RequiredError}
443
550
  */
444
- listActionsByEntity: function (entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options) {
551
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
445
552
  if (options === void 0) { options = {}; }
446
553
  return __awaiter(_this, void 0, void 0, function () {
447
554
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
448
555
  return __generator(this, function (_a) {
449
556
  switch (_a.label) {
450
557
  case 0:
451
- // verify required parameter 'entityCode' is not null or undefined
452
- (0, common_1.assertParamExists)('listActionsByEntity', 'entityCode', entityCode);
453
- // verify required parameter 'entityType' is not null or undefined
454
- (0, common_1.assertParamExists)('listActionsByEntity', 'entityType', entityType);
455
- localVarPath = "/actionservice/v1/actions/by-entity";
558
+ localVarPath = "/actionservice/v1/actions";
456
559
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
457
560
  if (configuration) {
458
561
  baseOptions = configuration.baseOptions;
@@ -468,17 +571,26 @@ var ActionsApiAxiosParamCreator = function (configuration) {
468
571
  // authentication bearer required
469
572
  // http bearer authentication required
470
573
  _a.sent();
471
- if (entityCode !== undefined) {
472
- localVarQueryParameter['entityCode'] = entityCode;
574
+ if (pageSize !== undefined) {
575
+ localVarQueryParameter['pageSize'] = pageSize;
473
576
  }
474
- if (entityType !== undefined) {
475
- localVarQueryParameter['entityType'] = entityType;
577
+ if (pageToken !== undefined) {
578
+ localVarQueryParameter['pageToken'] = pageToken;
476
579
  }
477
- if (includeDisabled !== undefined) {
478
- localVarQueryParameter['includeDisabled'] = includeDisabled;
580
+ if (filter !== undefined) {
581
+ localVarQueryParameter['filter'] = filter;
479
582
  }
480
- if (includeNotAvailableInUi !== undefined) {
481
- localVarQueryParameter['includeNotAvailableInUi'] = includeNotAvailableInUi;
583
+ if (search !== undefined) {
584
+ localVarQueryParameter['search'] = search;
585
+ }
586
+ if (order !== undefined) {
587
+ localVarQueryParameter['order'] = order;
588
+ }
589
+ if (expand !== undefined) {
590
+ localVarQueryParameter['expand'] = expand;
591
+ }
592
+ if (filters !== undefined) {
593
+ localVarQueryParameter['filters'] = filters;
482
594
  }
483
595
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
484
596
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
@@ -495,7 +607,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
495
607
  });
496
608
  },
497
609
  /**
498
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
610
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
499
611
  * @summary Update the action
500
612
  * @param {string} code Action code
501
613
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -547,6 +659,59 @@ var ActionsApiAxiosParamCreator = function (configuration) {
547
659
  });
548
660
  });
549
661
  },
662
+ /**
663
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
664
+ * @summary Update the action
665
+ * @param {string} code Action code
666
+ * @param {UpdateActionRequestDto} updateActionRequestDto
667
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
668
+ * @param {*} [options] Override http request option.
669
+ * @throws {RequiredError}
670
+ */
671
+ updateAction_1: function (code, updateActionRequestDto, authorization, options) {
672
+ if (options === void 0) { options = {}; }
673
+ return __awaiter(_this, void 0, void 0, function () {
674
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
675
+ return __generator(this, function (_a) {
676
+ switch (_a.label) {
677
+ case 0:
678
+ // verify required parameter 'code' is not null or undefined
679
+ (0, common_1.assertParamExists)('updateAction_1', 'code', code);
680
+ // verify required parameter 'updateActionRequestDto' is not null or undefined
681
+ (0, common_1.assertParamExists)('updateAction_1', 'updateActionRequestDto', updateActionRequestDto);
682
+ localVarPath = "/actionservice/v1/actions/{code}"
683
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
684
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
685
+ if (configuration) {
686
+ baseOptions = configuration.baseOptions;
687
+ baseAccessToken = configuration.accessToken;
688
+ }
689
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
690
+ localVarHeaderParameter = {};
691
+ localVarQueryParameter = {};
692
+ // authentication bearer required
693
+ // http bearer authentication required
694
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
695
+ case 1:
696
+ // authentication bearer required
697
+ // http bearer authentication required
698
+ _a.sent();
699
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
700
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
701
+ }
702
+ localVarHeaderParameter['Content-Type'] = 'application/json';
703
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
704
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
705
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
706
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
707
+ return [2 /*return*/, {
708
+ url: (0, common_1.toPathString)(localVarUrlObj),
709
+ options: localVarRequestOptions,
710
+ }];
711
+ }
712
+ });
713
+ });
714
+ },
550
715
  };
551
716
  };
552
717
  exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
@@ -599,6 +764,27 @@ var ActionsApiFp = function (configuration) {
599
764
  });
600
765
  });
601
766
  },
767
+ /**
768
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
769
+ * @summary Delete the action version
770
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
771
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ */
775
+ deleteActionVersion: function (versionCode, authorization, options) {
776
+ return __awaiter(this, void 0, void 0, function () {
777
+ var localVarAxiosArgs;
778
+ return __generator(this, function (_a) {
779
+ switch (_a.label) {
780
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options)];
781
+ case 1:
782
+ localVarAxiosArgs = _a.sent();
783
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
784
+ }
785
+ });
786
+ });
787
+ },
602
788
  /**
603
789
  * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
604
790
  * @summary Retrieve the entity-actions-yaml
@@ -645,6 +831,28 @@ var ActionsApiFp = function (configuration) {
645
831
  });
646
832
  });
647
833
  },
834
+ /**
835
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
836
+ * @summary Retrieve the action version
837
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
838
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
839
+ * @param {string} [expand]
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ getActionVersion: function (versionCode, authorization, expand, options) {
844
+ return __awaiter(this, void 0, void 0, function () {
845
+ var localVarAxiosArgs;
846
+ return __generator(this, function (_a) {
847
+ switch (_a.label) {
848
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
849
+ case 1:
850
+ localVarAxiosArgs = _a.sent();
851
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
852
+ }
853
+ });
854
+ });
855
+ },
648
856
  /**
649
857
  * Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
650
858
  * @summary Update the entity-actions-yaml
@@ -666,17 +874,45 @@ var ActionsApiFp = function (configuration) {
666
874
  });
667
875
  });
668
876
  },
877
+ /**
878
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
879
+ * @summary List action versions
880
+ * @param {string} code Action code
881
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
882
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
883
+ * @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.
884
+ * @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</i>
885
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
886
+ * @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>
887
+ * @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>
888
+ * @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</i>
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ */
892
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
893
+ return __awaiter(this, void 0, void 0, function () {
894
+ var localVarAxiosArgs;
895
+ return __generator(this, function (_a) {
896
+ switch (_a.label) {
897
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
898
+ case 1:
899
+ localVarAxiosArgs = _a.sent();
900
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
901
+ }
902
+ });
903
+ });
904
+ },
669
905
  /**
670
906
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
671
907
  * @summary List actions
672
908
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
673
909
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
674
910
  * @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.
675
- * @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, configVersion, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
911
+ * @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</i>
676
912
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
677
- * @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, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt</i>
913
+ * @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>
678
914
  * @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>
679
- * @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, configVersion, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
915
+ * @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</i>
680
916
  * @param {*} [options] Override http request option.
681
917
  * @throws {RequiredError}
682
918
  */
@@ -694,22 +930,20 @@ var ActionsApiFp = function (configuration) {
694
930
  });
695
931
  },
696
932
  /**
697
- * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
698
- * @summary Retrieve the actionsByEntity
699
- * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
700
- * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
933
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
934
+ * @summary Update the action
935
+ * @param {string} code Action code
936
+ * @param {UpdateActionRequestDto} updateActionRequestDto
701
937
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
702
- * @param {boolean} [includeDisabled] Include disabled (draft) actions
703
- * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
704
938
  * @param {*} [options] Override http request option.
705
939
  * @throws {RequiredError}
706
940
  */
707
- listActionsByEntity: function (entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options) {
941
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
708
942
  return __awaiter(this, void 0, void 0, function () {
709
943
  var localVarAxiosArgs;
710
944
  return __generator(this, function (_a) {
711
945
  switch (_a.label) {
712
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionsByEntity(entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options)];
946
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options)];
713
947
  case 1:
714
948
  localVarAxiosArgs = _a.sent();
715
949
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -718,7 +952,7 @@ var ActionsApiFp = function (configuration) {
718
952
  });
719
953
  },
720
954
  /**
721
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
955
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
722
956
  * @summary Update the action
723
957
  * @param {string} code Action code
724
958
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -726,12 +960,12 @@ var ActionsApiFp = function (configuration) {
726
960
  * @param {*} [options] Override http request option.
727
961
  * @throws {RequiredError}
728
962
  */
729
- updateAction: function (code, updateActionRequestDto, authorization, options) {
963
+ updateAction_1: function (code, updateActionRequestDto, authorization, options) {
730
964
  return __awaiter(this, void 0, void 0, function () {
731
965
  var localVarAxiosArgs;
732
966
  return __generator(this, function (_a) {
733
967
  switch (_a.label) {
734
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options)];
968
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options)];
735
969
  case 1:
736
970
  localVarAxiosArgs = _a.sent();
737
971
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -771,6 +1005,17 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
771
1005
  deleteAction: function (code, authorization, options) {
772
1006
  return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
773
1007
  },
1008
+ /**
1009
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1010
+ * @summary Delete the action version
1011
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
1012
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ */
1016
+ deleteActionVersion: function (versionCode, authorization, options) {
1017
+ return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
1018
+ },
774
1019
  /**
775
1020
  * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
776
1021
  * @summary Retrieve the entity-actions-yaml
@@ -797,6 +1042,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
797
1042
  getAction: function (code, authorization, expand, options) {
798
1043
  return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
799
1044
  },
1045
+ /**
1046
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1047
+ * @summary Retrieve the action version
1048
+ * @param {string} versionCode Version code (e.g. acv_<nanoid>)
1049
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1050
+ * @param {string} [expand]
1051
+ * @param {*} [options] Override http request option.
1052
+ * @throws {RequiredError}
1053
+ */
1054
+ getActionVersion: function (versionCode, authorization, expand, options) {
1055
+ return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1056
+ },
800
1057
  /**
801
1058
  * Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
802
1059
  * @summary Update the entity-actions-yaml
@@ -808,17 +1065,35 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
808
1065
  importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
809
1066
  return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
810
1067
  },
1068
+ /**
1069
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1070
+ * @summary List action versions
1071
+ * @param {string} code Action code
1072
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1073
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1074
+ * @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.
1075
+ * @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</i>
1076
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1077
+ * @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>
1078
+ * @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>
1079
+ * @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</i>
1080
+ * @param {*} [options] Override http request option.
1081
+ * @throws {RequiredError}
1082
+ */
1083
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1084
+ return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1085
+ },
811
1086
  /**
812
1087
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
813
1088
  * @summary List actions
814
1089
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
815
1090
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
816
1091
  * @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.
817
- * @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, configVersion, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
1092
+ * @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</i>
818
1093
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
819
- * @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, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt</i>
1094
+ * @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>
820
1095
  * @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>
821
- * @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, configVersion, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
1096
+ * @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</i>
822
1097
  * @param {*} [options] Override http request option.
823
1098
  * @throws {RequiredError}
824
1099
  */
@@ -826,21 +1101,19 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
826
1101
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
827
1102
  },
828
1103
  /**
829
- * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
830
- * @summary Retrieve the actionsByEntity
831
- * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
832
- * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
1104
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1105
+ * @summary Update the action
1106
+ * @param {string} code Action code
1107
+ * @param {UpdateActionRequestDto} updateActionRequestDto
833
1108
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
834
- * @param {boolean} [includeDisabled] Include disabled (draft) actions
835
- * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
836
1109
  * @param {*} [options] Override http request option.
837
1110
  * @throws {RequiredError}
838
1111
  */
839
- listActionsByEntity: function (entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options) {
840
- return localVarFp.listActionsByEntity(entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options).then(function (request) { return request(axios, basePath); });
1112
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
1113
+ return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
841
1114
  },
842
1115
  /**
843
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1116
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
844
1117
  * @summary Update the action
845
1118
  * @param {string} code Action code
846
1119
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -848,8 +1121,8 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
848
1121
  * @param {*} [options] Override http request option.
849
1122
  * @throws {RequiredError}
850
1123
  */
851
- updateAction: function (code, updateActionRequestDto, authorization, options) {
852
- return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1124
+ updateAction_1: function (code, updateActionRequestDto, authorization, options) {
1125
+ return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
853
1126
  },
854
1127
  };
855
1128
  };
@@ -889,6 +1162,18 @@ var ActionsApi = /** @class */ (function (_super) {
889
1162
  var _this = this;
890
1163
  return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
891
1164
  };
1165
+ /**
1166
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1167
+ * @summary Delete the action version
1168
+ * @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ * @memberof ActionsApi
1172
+ */
1173
+ ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
1174
+ var _this = this;
1175
+ return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1176
+ };
892
1177
  /**
893
1178
  * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
894
1179
  * @summary Retrieve the entity-actions-yaml
@@ -913,6 +1198,18 @@ var ActionsApi = /** @class */ (function (_super) {
913
1198
  var _this = this;
914
1199
  return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
915
1200
  };
1201
+ /**
1202
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1203
+ * @summary Retrieve the action version
1204
+ * @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
1205
+ * @param {*} [options] Override http request option.
1206
+ * @throws {RequiredError}
1207
+ * @memberof ActionsApi
1208
+ */
1209
+ ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
1210
+ var _this = this;
1211
+ return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1212
+ };
916
1213
  /**
917
1214
  * Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
918
1215
  * @summary Update the entity-actions-yaml
@@ -925,6 +1222,18 @@ var ActionsApi = /** @class */ (function (_super) {
925
1222
  var _this = this;
926
1223
  return (0, exports.ActionsApiFp)(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
927
1224
  };
1225
+ /**
1226
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1227
+ * @summary List action versions
1228
+ * @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
1229
+ * @param {*} [options] Override http request option.
1230
+ * @throws {RequiredError}
1231
+ * @memberof ActionsApi
1232
+ */
1233
+ ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
1234
+ var _this = this;
1235
+ 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); });
1236
+ };
928
1237
  /**
929
1238
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
930
1239
  * @summary List actions
@@ -939,28 +1248,28 @@ var ActionsApi = /** @class */ (function (_super) {
939
1248
  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); });
940
1249
  };
941
1250
  /**
942
- * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
943
- * @summary Retrieve the actionsByEntity
944
- * @param {ActionsApiListActionsByEntityRequest} requestParameters Request parameters.
1251
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1252
+ * @summary Update the action
1253
+ * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
945
1254
  * @param {*} [options] Override http request option.
946
1255
  * @throws {RequiredError}
947
1256
  * @memberof ActionsApi
948
1257
  */
949
- ActionsApi.prototype.listActionsByEntity = function (requestParameters, options) {
1258
+ ActionsApi.prototype.updateAction = function (requestParameters, options) {
950
1259
  var _this = this;
951
- return (0, exports.ActionsApiFp)(this.configuration).listActionsByEntity(requestParameters.entityCode, requestParameters.entityType, requestParameters.authorization, requestParameters.includeDisabled, requestParameters.includeNotAvailableInUi, options).then(function (request) { return request(_this.axios, _this.basePath); });
1260
+ return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
952
1261
  };
953
1262
  /**
954
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1263
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
955
1264
  * @summary Update the action
956
- * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
1265
+ * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
957
1266
  * @param {*} [options] Override http request option.
958
1267
  * @throws {RequiredError}
959
1268
  * @memberof ActionsApi
960
1269
  */
961
- ActionsApi.prototype.updateAction = function (requestParameters, options) {
1270
+ ActionsApi.prototype.updateAction_1 = function (requestParameters, options) {
962
1271
  var _this = this;
963
- return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1272
+ return (0, exports.ActionsApiFp)(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
964
1273
  };
965
1274
  return ActionsApi;
966
1275
  }(base_1.BaseAPI));