@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
@@ -11,10 +11,17 @@ common.ts
11
11
  configuration.ts
12
12
  git_push.sh
13
13
  index.ts
14
+ models/cancel-investigation-block-response-class.ts
14
15
  models/create-investigation-block-request-dto.ts
15
16
  models/create-investigation-block-response-class.ts
16
17
  models/create-validation-rule-request-dto.ts
17
18
  models/create-validation-rule-response-class.ts
19
+ models/execute-rule-request-dto.ts
20
+ models/execute-rule-response-class.ts
21
+ models/execute-rule-result-class.ts
22
+ models/execute-rule-with-dry-run-request-dto.ts
23
+ models/execute-rule-with-dry-run-response-class.ts
24
+ models/execute-rules-by-type-request-dto.ts
18
25
  models/get-investigation-block-response-class.ts
19
26
  models/get-validation-rule-response-class.ts
20
27
  models/index.ts
@@ -23,8 +30,11 @@ models/inline-response503.ts
23
30
  models/investigation-block-class.ts
24
31
  models/list-investigation-blocks-response-class.ts
25
32
  models/list-validation-rules-response-class.ts
33
+ models/resolve-investigation-block-response-class.ts
26
34
  models/update-investigation-block-request-dto.ts
27
35
  models/update-investigation-block-response-class.ts
36
+ models/update-validation-rule-request-dto.ts
37
+ models/update-validation-rule-response-class.ts
28
38
  models/validation-rule-class.ts
29
39
  package.json
30
40
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/validation-rules-sdk-node@1.0.1-beta.0 --save
20
+ npm install @emilgroup/validation-rules-sdk-node@1.0.1-beta.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/validation-rules-sdk-node@1.0.1-beta.0
24
+ yarn add @emilgroup/validation-rules-sdk-node@1.0.1-beta.2
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { CancelInvestigationBlockResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { CreateInvestigationBlockRequestDto } from '../models';
25
27
  // @ts-ignore
26
28
  import { CreateInvestigationBlockResponseClass } from '../models';
@@ -29,6 +31,8 @@ import { GetInvestigationBlockResponseClass } from '../models';
29
31
  // @ts-ignore
30
32
  import { ListInvestigationBlocksResponseClass } from '../models';
31
33
  // @ts-ignore
34
+ import { ResolveInvestigationBlockResponseClass } from '../models';
35
+ // @ts-ignore
32
36
  import { UpdateInvestigationBlockRequestDto } from '../models';
33
37
  // @ts-ignore
34
38
  import { UpdateInvestigationBlockResponseClass } from '../models';
@@ -43,7 +47,52 @@ const FormData = require('form-data');
43
47
  export const InvestigationBlocksApiAxiosParamCreator = function (configuration?: Configuration) {
44
48
  return {
45
49
  /**
46
- * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
50
+ * This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
51
+ * @summary Create the investigation block
52
+ * @param {string} code Unique identifier for the object.
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ cancelInvestigationBlock: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ // verify required parameter 'code' is not null or undefined
59
+ assertParamExists('cancelInvestigationBlock', 'code', code)
60
+ const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}/cancel`
61
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
62
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
+ let baseOptions;
65
+ let baseAccessToken;
66
+ if (configuration) {
67
+ baseOptions = configuration.baseOptions;
68
+ baseAccessToken = configuration.accessToken;
69
+ }
70
+
71
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
72
+ const localVarHeaderParameter = {} as any;
73
+ const localVarQueryParameter = {} as any;
74
+
75
+ // authentication bearer required
76
+ // http bearer authentication required
77
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
78
+
79
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
80
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
81
+ }
82
+
83
+
84
+
85
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
86
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
88
+
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
94
+ /**
95
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
47
96
  * @summary Create the investigation block
48
97
  * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
49
98
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -53,7 +102,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
53
102
  createInvestigationBlock: async (createInvestigationBlockRequestDto: CreateInvestigationBlockRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
103
  // verify required parameter 'createInvestigationBlockRequestDto' is not null or undefined
55
104
  assertParamExists('createInvestigationBlock', 'createInvestigationBlockRequestDto', createInvestigationBlockRequestDto)
56
- const localVarPath = `/validationrulesservice/v1/investigation-blocks`;
105
+ const localVarPath = `/validation-rules-service/v1/investigation-blocks`;
57
106
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
107
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
108
  let baseOptions;
@@ -90,7 +139,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
90
139
  };
91
140
  },
92
141
  /**
93
- * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
142
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
94
143
  * @summary Delete the investigation block
95
144
  * @param {string} code Unique identifier for the object.
96
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -100,7 +149,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
100
149
  deleteInvestigationBlock: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
150
  // verify required parameter 'code' is not null or undefined
102
151
  assertParamExists('deleteInvestigationBlock', 'code', code)
103
- const localVarPath = `/validationrulesservice/v1/investigation-blocks/{code}`
152
+ const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}`
104
153
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
154
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
155
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -135,7 +184,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
135
184
  };
136
185
  },
137
186
  /**
138
- * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
187
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
139
188
  * @summary Retrieve the investigation block
140
189
  * @param {string} code
141
190
  * @param {string} expand
@@ -148,7 +197,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
148
197
  assertParamExists('getInvestigationBlock', 'code', code)
149
198
  // verify required parameter 'expand' is not null or undefined
150
199
  assertParamExists('getInvestigationBlock', 'expand', expand)
151
- const localVarPath = `/validationrulesservice/v1/investigation-blocks/{code}`
200
+ const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}`
152
201
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
202
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
203
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -187,7 +236,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
187
236
  };
188
237
  },
189
238
  /**
190
- * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
239
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
191
240
  * @summary List investigation blocks
192
241
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
242
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -201,7 +250,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
201
250
  * @throws {RequiredError}
202
251
  */
203
252
  listInvestigationBlocks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
- const localVarPath = `/validationrulesservice/v1/investigation-blocks`;
253
+ const localVarPath = `/validation-rules-service/v1/investigation-blocks`;
205
254
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
255
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
256
  let baseOptions;
@@ -263,7 +312,52 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
263
312
  };
264
313
  },
265
314
  /**
266
- * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
315
+ * This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
316
+ * @summary Create the investigation block
317
+ * @param {string} code Unique identifier for the object.
318
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ */
322
+ resolveInvestigationBlock: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
323
+ // verify required parameter 'code' is not null or undefined
324
+ assertParamExists('resolveInvestigationBlock', 'code', code)
325
+ const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}/resolve`
326
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
328
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
329
+ let baseOptions;
330
+ let baseAccessToken;
331
+ if (configuration) {
332
+ baseOptions = configuration.baseOptions;
333
+ baseAccessToken = configuration.accessToken;
334
+ }
335
+
336
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
337
+ const localVarHeaderParameter = {} as any;
338
+ const localVarQueryParameter = {} as any;
339
+
340
+ // authentication bearer required
341
+ // http bearer authentication required
342
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
343
+
344
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
345
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
346
+ }
347
+
348
+
349
+
350
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
352
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
353
+
354
+ return {
355
+ url: toPathString(localVarUrlObj),
356
+ options: localVarRequestOptions,
357
+ };
358
+ },
359
+ /**
360
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
267
361
  * @summary Update the investigation block
268
362
  * @param {string} code
269
363
  * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
@@ -276,7 +370,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
276
370
  assertParamExists('updateInvestigationBlock', 'code', code)
277
371
  // verify required parameter 'updateInvestigationBlockRequestDto' is not null or undefined
278
372
  assertParamExists('updateInvestigationBlock', 'updateInvestigationBlockRequestDto', updateInvestigationBlockRequestDto)
279
- const localVarPath = `/validationrulesservice/v1/investigation-blocks/{code}`
373
+ const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}`
280
374
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
281
375
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
376
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -324,7 +418,19 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
324
418
  const localVarAxiosParamCreator = InvestigationBlocksApiAxiosParamCreator(configuration)
325
419
  return {
326
420
  /**
327
- * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
421
+ * This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
422
+ * @summary Create the investigation block
423
+ * @param {string} code Unique identifier for the object.
424
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ async cancelInvestigationBlock(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelInvestigationBlockResponseClass>> {
429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelInvestigationBlock(code, authorization, options);
430
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
431
+ },
432
+ /**
433
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
328
434
  * @summary Create the investigation block
329
435
  * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
330
436
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -336,7 +442,7 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
336
442
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
443
  },
338
444
  /**
339
- * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
445
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
340
446
  * @summary Delete the investigation block
341
447
  * @param {string} code Unique identifier for the object.
342
448
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -348,7 +454,7 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
348
454
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
455
  },
350
456
  /**
351
- * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
457
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
352
458
  * @summary Retrieve the investigation block
353
459
  * @param {string} code
354
460
  * @param {string} expand
@@ -361,7 +467,7 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
361
467
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
468
  },
363
469
  /**
364
- * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
470
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
365
471
  * @summary List investigation blocks
366
472
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
473
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -379,7 +485,19 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
379
485
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
486
  },
381
487
  /**
382
- * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
488
+ * This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
489
+ * @summary Create the investigation block
490
+ * @param {string} code Unique identifier for the object.
491
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ async resolveInvestigationBlock(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolveInvestigationBlockResponseClass>> {
496
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resolveInvestigationBlock(code, authorization, options);
497
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
498
+ },
499
+ /**
500
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
383
501
  * @summary Update the investigation block
384
502
  * @param {string} code
385
503
  * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
@@ -402,7 +520,18 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
402
520
  const localVarFp = InvestigationBlocksApiFp(configuration)
403
521
  return {
404
522
  /**
405
- * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
523
+ * This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
524
+ * @summary Create the investigation block
525
+ * @param {string} code Unique identifier for the object.
526
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ cancelInvestigationBlock(code: string, authorization?: string, options?: any): AxiosPromise<CancelInvestigationBlockResponseClass> {
531
+ return localVarFp.cancelInvestigationBlock(code, authorization, options).then((request) => request(axios, basePath));
532
+ },
533
+ /**
534
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
406
535
  * @summary Create the investigation block
407
536
  * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
408
537
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -413,7 +542,7 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
413
542
  return localVarFp.createInvestigationBlock(createInvestigationBlockRequestDto, authorization, options).then((request) => request(axios, basePath));
414
543
  },
415
544
  /**
416
- * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
545
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
417
546
  * @summary Delete the investigation block
418
547
  * @param {string} code Unique identifier for the object.
419
548
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -424,7 +553,7 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
424
553
  return localVarFp.deleteInvestigationBlock(code, authorization, options).then((request) => request(axios, basePath));
425
554
  },
426
555
  /**
427
- * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
556
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
428
557
  * @summary Retrieve the investigation block
429
558
  * @param {string} code
430
559
  * @param {string} expand
@@ -436,7 +565,7 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
436
565
  return localVarFp.getInvestigationBlock(code, expand, authorization, options).then((request) => request(axios, basePath));
437
566
  },
438
567
  /**
439
- * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
568
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
440
569
  * @summary List investigation blocks
441
570
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
571
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -453,7 +582,18 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
453
582
  return localVarFp.listInvestigationBlocks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
454
583
  },
455
584
  /**
456
- * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
585
+ * This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
586
+ * @summary Create the investigation block
587
+ * @param {string} code Unique identifier for the object.
588
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ */
592
+ resolveInvestigationBlock(code: string, authorization?: string, options?: any): AxiosPromise<ResolveInvestigationBlockResponseClass> {
593
+ return localVarFp.resolveInvestigationBlock(code, authorization, options).then((request) => request(axios, basePath));
594
+ },
595
+ /**
596
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
457
597
  * @summary Update the investigation block
458
598
  * @param {string} code
459
599
  * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
@@ -467,6 +607,27 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
467
607
  };
468
608
  };
469
609
 
610
+ /**
611
+ * Request parameters for cancelInvestigationBlock operation in InvestigationBlocksApi.
612
+ * @export
613
+ * @interface InvestigationBlocksApiCancelInvestigationBlockRequest
614
+ */
615
+ export interface InvestigationBlocksApiCancelInvestigationBlockRequest {
616
+ /**
617
+ * Unique identifier for the object.
618
+ * @type {string}
619
+ * @memberof InvestigationBlocksApiCancelInvestigationBlock
620
+ */
621
+ readonly code: string
622
+
623
+ /**
624
+ * Bearer Token: provided by the login endpoint under the name accessToken.
625
+ * @type {string}
626
+ * @memberof InvestigationBlocksApiCancelInvestigationBlock
627
+ */
628
+ readonly authorization?: string
629
+ }
630
+
470
631
  /**
471
632
  * Request parameters for createInvestigationBlock operation in InvestigationBlocksApi.
472
633
  * @export
@@ -600,6 +761,27 @@ export interface InvestigationBlocksApiListInvestigationBlocksRequest {
600
761
  readonly filters?: string
601
762
  }
602
763
 
764
+ /**
765
+ * Request parameters for resolveInvestigationBlock operation in InvestigationBlocksApi.
766
+ * @export
767
+ * @interface InvestigationBlocksApiResolveInvestigationBlockRequest
768
+ */
769
+ export interface InvestigationBlocksApiResolveInvestigationBlockRequest {
770
+ /**
771
+ * Unique identifier for the object.
772
+ * @type {string}
773
+ * @memberof InvestigationBlocksApiResolveInvestigationBlock
774
+ */
775
+ readonly code: string
776
+
777
+ /**
778
+ * Bearer Token: provided by the login endpoint under the name accessToken.
779
+ * @type {string}
780
+ * @memberof InvestigationBlocksApiResolveInvestigationBlock
781
+ */
782
+ readonly authorization?: string
783
+ }
784
+
603
785
  /**
604
786
  * Request parameters for updateInvestigationBlock operation in InvestigationBlocksApi.
605
787
  * @export
@@ -636,7 +818,19 @@ export interface InvestigationBlocksApiUpdateInvestigationBlockRequest {
636
818
  */
637
819
  export class InvestigationBlocksApi extends BaseAPI {
638
820
  /**
639
- * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
821
+ * This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
822
+ * @summary Create the investigation block
823
+ * @param {InvestigationBlocksApiCancelInvestigationBlockRequest} requestParameters Request parameters.
824
+ * @param {*} [options] Override http request option.
825
+ * @throws {RequiredError}
826
+ * @memberof InvestigationBlocksApi
827
+ */
828
+ public cancelInvestigationBlock(requestParameters: InvestigationBlocksApiCancelInvestigationBlockRequest, options?: AxiosRequestConfig) {
829
+ return InvestigationBlocksApiFp(this.configuration).cancelInvestigationBlock(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
830
+ }
831
+
832
+ /**
833
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
640
834
  * @summary Create the investigation block
641
835
  * @param {InvestigationBlocksApiCreateInvestigationBlockRequest} requestParameters Request parameters.
642
836
  * @param {*} [options] Override http request option.
@@ -648,7 +842,7 @@ export class InvestigationBlocksApi extends BaseAPI {
648
842
  }
649
843
 
650
844
  /**
651
- * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
845
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
652
846
  * @summary Delete the investigation block
653
847
  * @param {InvestigationBlocksApiDeleteInvestigationBlockRequest} requestParameters Request parameters.
654
848
  * @param {*} [options] Override http request option.
@@ -660,7 +854,7 @@ export class InvestigationBlocksApi extends BaseAPI {
660
854
  }
661
855
 
662
856
  /**
663
- * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
857
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
664
858
  * @summary Retrieve the investigation block
665
859
  * @param {InvestigationBlocksApiGetInvestigationBlockRequest} requestParameters Request parameters.
666
860
  * @param {*} [options] Override http request option.
@@ -672,7 +866,7 @@ export class InvestigationBlocksApi extends BaseAPI {
672
866
  }
673
867
 
674
868
  /**
675
- * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
869
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
676
870
  * @summary List investigation blocks
677
871
  * @param {InvestigationBlocksApiListInvestigationBlocksRequest} requestParameters Request parameters.
678
872
  * @param {*} [options] Override http request option.
@@ -684,7 +878,19 @@ export class InvestigationBlocksApi extends BaseAPI {
684
878
  }
685
879
 
686
880
  /**
687
- * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
881
+ * This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
882
+ * @summary Create the investigation block
883
+ * @param {InvestigationBlocksApiResolveInvestigationBlockRequest} requestParameters Request parameters.
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ * @memberof InvestigationBlocksApi
887
+ */
888
+ public resolveInvestigationBlock(requestParameters: InvestigationBlocksApiResolveInvestigationBlockRequest, options?: AxiosRequestConfig) {
889
+ return InvestigationBlocksApiFp(this.configuration).resolveInvestigationBlock(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
890
+ }
891
+
892
+ /**
893
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
688
894
  * @summary Update the investigation block
689
895
  * @param {InvestigationBlocksApiUpdateInvestigationBlockRequest} requestParameters Request parameters.
690
896
  * @param {*} [options] Override http request option.