@emilgroup/validation-rules-sdk-node 1.0.1-beta.0 → 1.0.1-beta.2

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 (54) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/investigation-blocks-api.ts +231 -25
  4. package/api/validation-rules-api.ts +447 -12
  5. package/dist/api/investigation-blocks-api.d.ts +132 -20
  6. package/dist/api/investigation-blocks-api.js +209 -25
  7. package/dist/api/validation-rules-api.d.ts +244 -12
  8. package/dist/api/validation-rules-api.js +383 -9
  9. package/dist/models/cancel-investigation-block-response-class.d.ts +25 -0
  10. package/dist/models/cancel-investigation-block-response-class.js +15 -0
  11. package/dist/models/create-validation-rule-request-dto.d.ts +17 -12
  12. package/dist/models/create-validation-rule-request-dto.js +5 -1
  13. package/dist/models/execute-rule-request-dto.d.ts +41 -0
  14. package/dist/models/execute-rule-request-dto.js +20 -0
  15. package/dist/models/execute-rule-response-class.d.ts +54 -0
  16. package/dist/models/execute-rule-response-class.js +20 -0
  17. package/dist/models/execute-rule-result-class.d.ts +53 -0
  18. package/dist/models/execute-rule-result-class.js +20 -0
  19. package/dist/models/execute-rule-with-dry-run-request-dto.d.ts +30 -0
  20. package/dist/models/execute-rule-with-dry-run-request-dto.js +15 -0
  21. package/dist/models/execute-rule-with-dry-run-response-class.d.ts +36 -0
  22. package/dist/models/execute-rule-with-dry-run-response-class.js +15 -0
  23. package/dist/models/execute-rules-by-type-request-dto.d.ts +35 -0
  24. package/dist/models/execute-rules-by-type-request-dto.js +20 -0
  25. package/dist/models/index.d.ts +10 -0
  26. package/dist/models/index.js +10 -0
  27. package/dist/models/investigation-block-class.d.ts +25 -2
  28. package/dist/models/investigation-block-class.js +10 -0
  29. package/dist/models/resolve-investigation-block-response-class.d.ts +25 -0
  30. package/dist/models/resolve-investigation-block-response-class.js +15 -0
  31. package/dist/models/update-investigation-block-request-dto.d.ts +1 -1
  32. package/dist/models/update-investigation-block-request-dto.js +1 -1
  33. package/dist/models/update-validation-rule-request-dto.d.ts +88 -0
  34. package/dist/models/update-validation-rule-request-dto.js +24 -0
  35. package/dist/models/update-validation-rule-response-class.d.ts +25 -0
  36. package/dist/models/update-validation-rule-response-class.js +15 -0
  37. package/dist/models/validation-rule-class.d.ts +16 -5
  38. package/dist/models/validation-rule-class.js +5 -1
  39. package/models/cancel-investigation-block-response-class.ts +31 -0
  40. package/models/create-validation-rule-request-dto.ts +18 -12
  41. package/models/execute-rule-request-dto.ts +50 -0
  42. package/models/execute-rule-response-class.ts +63 -0
  43. package/models/execute-rule-result-class.ts +62 -0
  44. package/models/execute-rule-with-dry-run-request-dto.ts +36 -0
  45. package/models/execute-rule-with-dry-run-response-class.ts +42 -0
  46. package/models/execute-rules-by-type-request-dto.ts +44 -0
  47. package/models/index.ts +10 -0
  48. package/models/investigation-block-class.ts +29 -2
  49. package/models/resolve-investigation-block-response-class.ts +31 -0
  50. package/models/update-investigation-block-request-dto.ts +1 -1
  51. package/models/update-validation-rule-request-dto.ts +98 -0
  52. package/models/update-validation-rule-response-class.ts +31 -0
  53. package/models/validation-rule-class.ts +17 -5
  54. package/package.json +1 -1
@@ -97,7 +97,55 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
100
+ * This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
101
+ * @summary Create the investigation block
102
+ * @param {string} code Unique identifier for the object.
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ cancelInvestigationBlock: function (code, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'code' is not null or undefined
115
+ (0, common_1.assertParamExists)('cancelInvestigationBlock', 'code', code);
116
+ localVarPath = "/validation-rules-service/v1/investigation-blocks/{code}/cancel"
117
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
129
+ case 1:
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ _a.sent();
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ }
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ /**
148
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
101
149
  * @summary Create the investigation block
102
150
  * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
103
151
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -113,7 +161,7 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
113
161
  case 0:
114
162
  // verify required parameter 'createInvestigationBlockRequestDto' is not null or undefined
115
163
  (0, common_1.assertParamExists)('createInvestigationBlock', 'createInvestigationBlockRequestDto', createInvestigationBlockRequestDto);
116
- localVarPath = "/validationrulesservice/v1/investigation-blocks";
164
+ localVarPath = "/validation-rules-service/v1/investigation-blocks";
117
165
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
166
  if (configuration) {
119
167
  baseOptions = configuration.baseOptions;
@@ -146,7 +194,7 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
146
194
  });
147
195
  },
148
196
  /**
149
- * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
197
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
150
198
  * @summary Delete the investigation block
151
199
  * @param {string} code Unique identifier for the object.
152
200
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -162,7 +210,7 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
162
210
  case 0:
163
211
  // verify required parameter 'code' is not null or undefined
164
212
  (0, common_1.assertParamExists)('deleteInvestigationBlock', 'code', code);
165
- localVarPath = "/validationrulesservice/v1/investigation-blocks/{code}"
213
+ localVarPath = "/validation-rules-service/v1/investigation-blocks/{code}"
166
214
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
215
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
216
  if (configuration) {
@@ -194,7 +242,7 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
194
242
  });
195
243
  },
196
244
  /**
197
- * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
245
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
198
246
  * @summary Retrieve the investigation block
199
247
  * @param {string} code
200
248
  * @param {string} expand
@@ -213,7 +261,7 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
213
261
  (0, common_1.assertParamExists)('getInvestigationBlock', 'code', code);
214
262
  // verify required parameter 'expand' is not null or undefined
215
263
  (0, common_1.assertParamExists)('getInvestigationBlock', 'expand', expand);
216
- localVarPath = "/validationrulesservice/v1/investigation-blocks/{code}"
264
+ localVarPath = "/validation-rules-service/v1/investigation-blocks/{code}"
217
265
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
218
266
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
219
267
  if (configuration) {
@@ -248,7 +296,7 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
248
296
  });
249
297
  },
250
298
  /**
251
- * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
299
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
252
300
  * @summary List investigation blocks
253
301
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
302
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -268,7 +316,7 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
268
316
  return __generator(this, function (_a) {
269
317
  switch (_a.label) {
270
318
  case 0:
271
- localVarPath = "/validationrulesservice/v1/investigation-blocks";
319
+ localVarPath = "/validation-rules-service/v1/investigation-blocks";
272
320
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
273
321
  if (configuration) {
274
322
  baseOptions = configuration.baseOptions;
@@ -320,7 +368,55 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
320
368
  });
321
369
  },
322
370
  /**
323
- * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
371
+ * This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
372
+ * @summary Create the investigation block
373
+ * @param {string} code Unique identifier for the object.
374
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ resolveInvestigationBlock: function (code, authorization, options) {
379
+ if (options === void 0) { options = {}; }
380
+ return __awaiter(_this, void 0, void 0, function () {
381
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
382
+ return __generator(this, function (_a) {
383
+ switch (_a.label) {
384
+ case 0:
385
+ // verify required parameter 'code' is not null or undefined
386
+ (0, common_1.assertParamExists)('resolveInvestigationBlock', 'code', code);
387
+ localVarPath = "/validation-rules-service/v1/investigation-blocks/{code}/resolve"
388
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
389
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
390
+ if (configuration) {
391
+ baseOptions = configuration.baseOptions;
392
+ baseAccessToken = configuration.accessToken;
393
+ }
394
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
395
+ localVarHeaderParameter = {};
396
+ localVarQueryParameter = {};
397
+ // authentication bearer required
398
+ // http bearer authentication required
399
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
400
+ case 1:
401
+ // authentication bearer required
402
+ // http bearer authentication required
403
+ _a.sent();
404
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
405
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
406
+ }
407
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
408
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
409
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
410
+ return [2 /*return*/, {
411
+ url: (0, common_1.toPathString)(localVarUrlObj),
412
+ options: localVarRequestOptions,
413
+ }];
414
+ }
415
+ });
416
+ });
417
+ },
418
+ /**
419
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
324
420
  * @summary Update the investigation block
325
421
  * @param {string} code
326
422
  * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
@@ -339,7 +435,7 @@ var InvestigationBlocksApiAxiosParamCreator = function (configuration) {
339
435
  (0, common_1.assertParamExists)('updateInvestigationBlock', 'code', code);
340
436
  // verify required parameter 'updateInvestigationBlockRequestDto' is not null or undefined
341
437
  (0, common_1.assertParamExists)('updateInvestigationBlock', 'updateInvestigationBlockRequestDto', updateInvestigationBlockRequestDto);
342
- localVarPath = "/validationrulesservice/v1/investigation-blocks/{code}"
438
+ localVarPath = "/validation-rules-service/v1/investigation-blocks/{code}"
343
439
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
344
440
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
345
441
  if (configuration) {
@@ -383,7 +479,28 @@ var InvestigationBlocksApiFp = function (configuration) {
383
479
  var localVarAxiosParamCreator = (0, exports.InvestigationBlocksApiAxiosParamCreator)(configuration);
384
480
  return {
385
481
  /**
386
- * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
482
+ * This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
483
+ * @summary Create the investigation block
484
+ * @param {string} code Unique identifier for the object.
485
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ */
489
+ cancelInvestigationBlock: function (code, authorization, options) {
490
+ return __awaiter(this, void 0, void 0, function () {
491
+ var localVarAxiosArgs;
492
+ return __generator(this, function (_a) {
493
+ switch (_a.label) {
494
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.cancelInvestigationBlock(code, authorization, options)];
495
+ case 1:
496
+ localVarAxiosArgs = _a.sent();
497
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
498
+ }
499
+ });
500
+ });
501
+ },
502
+ /**
503
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
387
504
  * @summary Create the investigation block
388
505
  * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
389
506
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -404,7 +521,7 @@ var InvestigationBlocksApiFp = function (configuration) {
404
521
  });
405
522
  },
406
523
  /**
407
- * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
524
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
408
525
  * @summary Delete the investigation block
409
526
  * @param {string} code Unique identifier for the object.
410
527
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -425,7 +542,7 @@ var InvestigationBlocksApiFp = function (configuration) {
425
542
  });
426
543
  },
427
544
  /**
428
- * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
545
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
429
546
  * @summary Retrieve the investigation block
430
547
  * @param {string} code
431
548
  * @param {string} expand
@@ -447,7 +564,7 @@ var InvestigationBlocksApiFp = function (configuration) {
447
564
  });
448
565
  },
449
566
  /**
450
- * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
567
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
451
568
  * @summary List investigation blocks
452
569
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
453
570
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -474,7 +591,28 @@ var InvestigationBlocksApiFp = function (configuration) {
474
591
  });
475
592
  },
476
593
  /**
477
- * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
594
+ * This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
595
+ * @summary Create the investigation block
596
+ * @param {string} code Unique identifier for the object.
597
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
598
+ * @param {*} [options] Override http request option.
599
+ * @throws {RequiredError}
600
+ */
601
+ resolveInvestigationBlock: function (code, authorization, options) {
602
+ return __awaiter(this, void 0, void 0, function () {
603
+ var localVarAxiosArgs;
604
+ return __generator(this, function (_a) {
605
+ switch (_a.label) {
606
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.resolveInvestigationBlock(code, authorization, options)];
607
+ case 1:
608
+ localVarAxiosArgs = _a.sent();
609
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
610
+ }
611
+ });
612
+ });
613
+ },
614
+ /**
615
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
478
616
  * @summary Update the investigation block
479
617
  * @param {string} code
480
618
  * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
@@ -506,7 +644,18 @@ var InvestigationBlocksApiFactory = function (configuration, basePath, axios) {
506
644
  var localVarFp = (0, exports.InvestigationBlocksApiFp)(configuration);
507
645
  return {
508
646
  /**
509
- * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
647
+ * This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
648
+ * @summary Create the investigation block
649
+ * @param {string} code Unique identifier for the object.
650
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ cancelInvestigationBlock: function (code, authorization, options) {
655
+ return localVarFp.cancelInvestigationBlock(code, authorization, options).then(function (request) { return request(axios, basePath); });
656
+ },
657
+ /**
658
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
510
659
  * @summary Create the investigation block
511
660
  * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
512
661
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -517,7 +666,7 @@ var InvestigationBlocksApiFactory = function (configuration, basePath, axios) {
517
666
  return localVarFp.createInvestigationBlock(createInvestigationBlockRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
518
667
  },
519
668
  /**
520
- * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
669
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
521
670
  * @summary Delete the investigation block
522
671
  * @param {string} code Unique identifier for the object.
523
672
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -528,7 +677,7 @@ var InvestigationBlocksApiFactory = function (configuration, basePath, axios) {
528
677
  return localVarFp.deleteInvestigationBlock(code, authorization, options).then(function (request) { return request(axios, basePath); });
529
678
  },
530
679
  /**
531
- * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
680
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
532
681
  * @summary Retrieve the investigation block
533
682
  * @param {string} code
534
683
  * @param {string} expand
@@ -540,7 +689,7 @@ var InvestigationBlocksApiFactory = function (configuration, basePath, axios) {
540
689
  return localVarFp.getInvestigationBlock(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
541
690
  },
542
691
  /**
543
- * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
692
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
544
693
  * @summary List investigation blocks
545
694
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
546
695
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -557,7 +706,18 @@ var InvestigationBlocksApiFactory = function (configuration, basePath, axios) {
557
706
  return localVarFp.listInvestigationBlocks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
558
707
  },
559
708
  /**
560
- * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
709
+ * This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
710
+ * @summary Create the investigation block
711
+ * @param {string} code Unique identifier for the object.
712
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
713
+ * @param {*} [options] Override http request option.
714
+ * @throws {RequiredError}
715
+ */
716
+ resolveInvestigationBlock: function (code, authorization, options) {
717
+ return localVarFp.resolveInvestigationBlock(code, authorization, options).then(function (request) { return request(axios, basePath); });
718
+ },
719
+ /**
720
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
561
721
  * @summary Update the investigation block
562
722
  * @param {string} code
563
723
  * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
@@ -583,7 +743,19 @@ var InvestigationBlocksApi = /** @class */ (function (_super) {
583
743
  return _super !== null && _super.apply(this, arguments) || this;
584
744
  }
585
745
  /**
586
- * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
746
+ * This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
747
+ * @summary Create the investigation block
748
+ * @param {InvestigationBlocksApiCancelInvestigationBlockRequest} requestParameters Request parameters.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ * @memberof InvestigationBlocksApi
752
+ */
753
+ InvestigationBlocksApi.prototype.cancelInvestigationBlock = function (requestParameters, options) {
754
+ var _this = this;
755
+ return (0, exports.InvestigationBlocksApiFp)(this.configuration).cancelInvestigationBlock(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
756
+ };
757
+ /**
758
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
587
759
  * @summary Create the investigation block
588
760
  * @param {InvestigationBlocksApiCreateInvestigationBlockRequest} requestParameters Request parameters.
589
761
  * @param {*} [options] Override http request option.
@@ -595,7 +767,7 @@ var InvestigationBlocksApi = /** @class */ (function (_super) {
595
767
  return (0, exports.InvestigationBlocksApiFp)(this.configuration).createInvestigationBlock(requestParameters.createInvestigationBlockRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
596
768
  };
597
769
  /**
598
- * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
770
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
599
771
  * @summary Delete the investigation block
600
772
  * @param {InvestigationBlocksApiDeleteInvestigationBlockRequest} requestParameters Request parameters.
601
773
  * @param {*} [options] Override http request option.
@@ -607,7 +779,7 @@ var InvestigationBlocksApi = /** @class */ (function (_super) {
607
779
  return (0, exports.InvestigationBlocksApiFp)(this.configuration).deleteInvestigationBlock(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
780
  };
609
781
  /**
610
- * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
782
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
611
783
  * @summary Retrieve the investigation block
612
784
  * @param {InvestigationBlocksApiGetInvestigationBlockRequest} requestParameters Request parameters.
613
785
  * @param {*} [options] Override http request option.
@@ -619,7 +791,7 @@ var InvestigationBlocksApi = /** @class */ (function (_super) {
619
791
  return (0, exports.InvestigationBlocksApiFp)(this.configuration).getInvestigationBlock(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
620
792
  };
621
793
  /**
622
- * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
794
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
623
795
  * @summary List investigation blocks
624
796
  * @param {InvestigationBlocksApiListInvestigationBlocksRequest} requestParameters Request parameters.
625
797
  * @param {*} [options] Override http request option.
@@ -632,7 +804,19 @@ var InvestigationBlocksApi = /** @class */ (function (_super) {
632
804
  return (0, exports.InvestigationBlocksApiFp)(this.configuration).listInvestigationBlocks(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); });
633
805
  };
634
806
  /**
635
- * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
807
+ * This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
808
+ * @summary Create the investigation block
809
+ * @param {InvestigationBlocksApiResolveInvestigationBlockRequest} requestParameters Request parameters.
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ * @memberof InvestigationBlocksApi
813
+ */
814
+ InvestigationBlocksApi.prototype.resolveInvestigationBlock = function (requestParameters, options) {
815
+ var _this = this;
816
+ return (0, exports.InvestigationBlocksApiFp)(this.configuration).resolveInvestigationBlock(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
817
+ };
818
+ /**
819
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
636
820
  * @summary Update the investigation block
637
821
  * @param {InvestigationBlocksApiUpdateInvestigationBlockRequest} requestParameters Request parameters.
638
822
  * @param {*} [options] Override http request option.