@emilgroup/validation-rules-sdk 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.
- package/.openapi-generator/FILES +10 -0
- package/README.md +2 -2
- package/api/investigation-blocks-api.ts +231 -25
- package/api/validation-rules-api.ts +447 -12
- package/dist/api/investigation-blocks-api.d.ts +132 -20
- package/dist/api/investigation-blocks-api.js +209 -25
- package/dist/api/validation-rules-api.d.ts +244 -12
- package/dist/api/validation-rules-api.js +383 -9
- package/dist/models/cancel-investigation-block-response-class.d.ts +25 -0
- package/dist/models/cancel-investigation-block-response-class.js +15 -0
- package/dist/models/create-validation-rule-request-dto.d.ts +17 -12
- package/dist/models/create-validation-rule-request-dto.js +5 -1
- package/dist/models/execute-rule-request-dto.d.ts +41 -0
- package/dist/models/execute-rule-request-dto.js +20 -0
- package/dist/models/execute-rule-response-class.d.ts +54 -0
- package/dist/models/execute-rule-response-class.js +20 -0
- package/dist/models/execute-rule-result-class.d.ts +53 -0
- package/dist/models/execute-rule-result-class.js +20 -0
- package/dist/models/execute-rule-with-dry-run-request-dto.d.ts +30 -0
- package/dist/models/execute-rule-with-dry-run-request-dto.js +15 -0
- package/dist/models/execute-rule-with-dry-run-response-class.d.ts +36 -0
- package/dist/models/execute-rule-with-dry-run-response-class.js +15 -0
- package/dist/models/execute-rules-by-type-request-dto.d.ts +35 -0
- package/dist/models/execute-rules-by-type-request-dto.js +20 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/models/investigation-block-class.d.ts +25 -2
- package/dist/models/investigation-block-class.js +10 -0
- package/dist/models/resolve-investigation-block-response-class.d.ts +25 -0
- package/dist/models/resolve-investigation-block-response-class.js +15 -0
- package/dist/models/update-investigation-block-request-dto.d.ts +1 -1
- package/dist/models/update-investigation-block-request-dto.js +1 -1
- package/dist/models/update-validation-rule-request-dto.d.ts +88 -0
- package/dist/models/update-validation-rule-request-dto.js +24 -0
- package/dist/models/update-validation-rule-response-class.d.ts +25 -0
- package/dist/models/update-validation-rule-response-class.js +15 -0
- package/dist/models/validation-rule-class.d.ts +16 -5
- package/dist/models/validation-rule-class.js +5 -1
- package/models/cancel-investigation-block-response-class.ts +31 -0
- package/models/create-validation-rule-request-dto.ts +18 -12
- package/models/execute-rule-request-dto.ts +50 -0
- package/models/execute-rule-response-class.ts +63 -0
- package/models/execute-rule-result-class.ts +62 -0
- package/models/execute-rule-with-dry-run-request-dto.ts +36 -0
- package/models/execute-rule-with-dry-run-response-class.ts +42 -0
- package/models/execute-rules-by-type-request-dto.ts +44 -0
- package/models/index.ts +10 -0
- package/models/investigation-block-class.ts +29 -2
- package/models/resolve-investigation-block-response-class.ts +31 -0
- package/models/update-investigation-block-request-dto.ts +1 -1
- package/models/update-validation-rule-request-dto.ts +98 -0
- package/models/update-validation-rule-response-class.ts +31 -0
- package/models/validation-rule-class.ts +17 -5
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/validation-rules-sdk@1.0.1-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/validation-rules-sdk@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/validation-rules-sdk@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';
|
|
@@ -39,7 +43,52 @@ import { UpdateInvestigationBlockResponseClass } from '../models';
|
|
|
39
43
|
export const InvestigationBlocksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
44
|
return {
|
|
41
45
|
/**
|
|
42
|
-
*
|
|
46
|
+
* This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
47
|
+
* @summary Create the investigation block
|
|
48
|
+
* @param {string} code Unique identifier for the object.
|
|
49
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
cancelInvestigationBlock: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
+
// verify required parameter 'code' is not null or undefined
|
|
55
|
+
assertParamExists('cancelInvestigationBlock', 'code', code)
|
|
56
|
+
const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}/cancel`
|
|
57
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
58
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
|
+
let baseOptions;
|
|
61
|
+
let baseAccessToken;
|
|
62
|
+
if (configuration) {
|
|
63
|
+
baseOptions = configuration.baseOptions;
|
|
64
|
+
baseAccessToken = configuration.accessToken;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
68
|
+
const localVarHeaderParameter = {} as any;
|
|
69
|
+
const localVarQueryParameter = {} as any;
|
|
70
|
+
|
|
71
|
+
// authentication bearer required
|
|
72
|
+
// http bearer authentication required
|
|
73
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
74
|
+
|
|
75
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
url: toPathString(localVarUrlObj),
|
|
87
|
+
options: localVarRequestOptions,
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
|
|
43
92
|
* @summary Create the investigation block
|
|
44
93
|
* @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
|
|
45
94
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -49,7 +98,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
49
98
|
createInvestigationBlock: async (createInvestigationBlockRequestDto: CreateInvestigationBlockRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
99
|
// verify required parameter 'createInvestigationBlockRequestDto' is not null or undefined
|
|
51
100
|
assertParamExists('createInvestigationBlock', 'createInvestigationBlockRequestDto', createInvestigationBlockRequestDto)
|
|
52
|
-
const localVarPath = `/
|
|
101
|
+
const localVarPath = `/validation-rules-service/v1/investigation-blocks`;
|
|
53
102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
103
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
104
|
let baseOptions;
|
|
@@ -86,7 +135,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
86
135
|
};
|
|
87
136
|
},
|
|
88
137
|
/**
|
|
89
|
-
* Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.
|
|
138
|
+
* Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
|
|
90
139
|
* @summary Delete the investigation block
|
|
91
140
|
* @param {string} code Unique identifier for the object.
|
|
92
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -96,7 +145,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
96
145
|
deleteInvestigationBlock: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
146
|
// verify required parameter 'code' is not null or undefined
|
|
98
147
|
assertParamExists('deleteInvestigationBlock', 'code', code)
|
|
99
|
-
const localVarPath = `/
|
|
148
|
+
const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}`
|
|
100
149
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
101
150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
151
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -131,7 +180,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
131
180
|
};
|
|
132
181
|
},
|
|
133
182
|
/**
|
|
134
|
-
* Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.
|
|
183
|
+
* Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
|
|
135
184
|
* @summary Retrieve the investigation block
|
|
136
185
|
* @param {string} code
|
|
137
186
|
* @param {string} expand
|
|
@@ -144,7 +193,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
144
193
|
assertParamExists('getInvestigationBlock', 'code', code)
|
|
145
194
|
// verify required parameter 'expand' is not null or undefined
|
|
146
195
|
assertParamExists('getInvestigationBlock', 'expand', expand)
|
|
147
|
-
const localVarPath = `/
|
|
196
|
+
const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}`
|
|
148
197
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
149
198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
199
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -183,7 +232,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
183
232
|
};
|
|
184
233
|
},
|
|
185
234
|
/**
|
|
186
|
-
* Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.
|
|
235
|
+
* Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
|
|
187
236
|
* @summary List investigation blocks
|
|
188
237
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
238
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -197,7 +246,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
197
246
|
* @throws {RequiredError}
|
|
198
247
|
*/
|
|
199
248
|
listInvestigationBlocks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
|
-
const localVarPath = `/
|
|
249
|
+
const localVarPath = `/validation-rules-service/v1/investigation-blocks`;
|
|
201
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
203
252
|
let baseOptions;
|
|
@@ -259,7 +308,52 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
259
308
|
};
|
|
260
309
|
},
|
|
261
310
|
/**
|
|
262
|
-
*
|
|
311
|
+
* This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
312
|
+
* @summary Create the investigation block
|
|
313
|
+
* @param {string} code Unique identifier for the object.
|
|
314
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
resolveInvestigationBlock: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
319
|
+
// verify required parameter 'code' is not null or undefined
|
|
320
|
+
assertParamExists('resolveInvestigationBlock', 'code', code)
|
|
321
|
+
const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}/resolve`
|
|
322
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
324
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
325
|
+
let baseOptions;
|
|
326
|
+
let baseAccessToken;
|
|
327
|
+
if (configuration) {
|
|
328
|
+
baseOptions = configuration.baseOptions;
|
|
329
|
+
baseAccessToken = configuration.accessToken;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
333
|
+
const localVarHeaderParameter = {} as any;
|
|
334
|
+
const localVarQueryParameter = {} as any;
|
|
335
|
+
|
|
336
|
+
// authentication bearer required
|
|
337
|
+
// http bearer authentication required
|
|
338
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
339
|
+
|
|
340
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
341
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
349
|
+
|
|
350
|
+
return {
|
|
351
|
+
url: toPathString(localVarUrlObj),
|
|
352
|
+
options: localVarRequestOptions,
|
|
353
|
+
};
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
263
357
|
* @summary Update the investigation block
|
|
264
358
|
* @param {string} code
|
|
265
359
|
* @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
|
|
@@ -272,7 +366,7 @@ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?:
|
|
|
272
366
|
assertParamExists('updateInvestigationBlock', 'code', code)
|
|
273
367
|
// verify required parameter 'updateInvestigationBlockRequestDto' is not null or undefined
|
|
274
368
|
assertParamExists('updateInvestigationBlock', 'updateInvestigationBlockRequestDto', updateInvestigationBlockRequestDto)
|
|
275
|
-
const localVarPath = `/
|
|
369
|
+
const localVarPath = `/validation-rules-service/v1/investigation-blocks/{code}`
|
|
276
370
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
277
371
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
278
372
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -320,7 +414,19 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
|
|
|
320
414
|
const localVarAxiosParamCreator = InvestigationBlocksApiAxiosParamCreator(configuration)
|
|
321
415
|
return {
|
|
322
416
|
/**
|
|
323
|
-
*
|
|
417
|
+
* This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
418
|
+
* @summary Create the investigation block
|
|
419
|
+
* @param {string} code Unique identifier for the object.
|
|
420
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
*/
|
|
424
|
+
async cancelInvestigationBlock(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelInvestigationBlockResponseClass>> {
|
|
425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelInvestigationBlock(code, authorization, options);
|
|
426
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
427
|
+
},
|
|
428
|
+
/**
|
|
429
|
+
* Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
|
|
324
430
|
* @summary Create the investigation block
|
|
325
431
|
* @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
|
|
326
432
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -332,7 +438,7 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
|
|
|
332
438
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
333
439
|
},
|
|
334
440
|
/**
|
|
335
|
-
* Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.
|
|
441
|
+
* Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
|
|
336
442
|
* @summary Delete the investigation block
|
|
337
443
|
* @param {string} code Unique identifier for the object.
|
|
338
444
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -344,7 +450,7 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
|
|
|
344
450
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
451
|
},
|
|
346
452
|
/**
|
|
347
|
-
* Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.
|
|
453
|
+
* Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
|
|
348
454
|
* @summary Retrieve the investigation block
|
|
349
455
|
* @param {string} code
|
|
350
456
|
* @param {string} expand
|
|
@@ -357,7 +463,7 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
|
|
|
357
463
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
358
464
|
},
|
|
359
465
|
/**
|
|
360
|
-
* Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.
|
|
466
|
+
* Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
|
|
361
467
|
* @summary List investigation blocks
|
|
362
468
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
469
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -375,7 +481,19 @@ export const InvestigationBlocksApiFp = function(configuration?: Configuration)
|
|
|
375
481
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
482
|
},
|
|
377
483
|
/**
|
|
378
|
-
*
|
|
484
|
+
* This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
485
|
+
* @summary Create the investigation block
|
|
486
|
+
* @param {string} code Unique identifier for the object.
|
|
487
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
488
|
+
* @param {*} [options] Override http request option.
|
|
489
|
+
* @throws {RequiredError}
|
|
490
|
+
*/
|
|
491
|
+
async resolveInvestigationBlock(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolveInvestigationBlockResponseClass>> {
|
|
492
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resolveInvestigationBlock(code, authorization, options);
|
|
493
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
494
|
+
},
|
|
495
|
+
/**
|
|
496
|
+
* Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
379
497
|
* @summary Update the investigation block
|
|
380
498
|
* @param {string} code
|
|
381
499
|
* @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
|
|
@@ -398,7 +516,18 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
|
|
|
398
516
|
const localVarFp = InvestigationBlocksApiFp(configuration)
|
|
399
517
|
return {
|
|
400
518
|
/**
|
|
401
|
-
*
|
|
519
|
+
* This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
520
|
+
* @summary Create the investigation block
|
|
521
|
+
* @param {string} code Unique identifier for the object.
|
|
522
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
*/
|
|
526
|
+
cancelInvestigationBlock(code: string, authorization?: string, options?: any): AxiosPromise<CancelInvestigationBlockResponseClass> {
|
|
527
|
+
return localVarFp.cancelInvestigationBlock(code, authorization, options).then((request) => request(axios, basePath));
|
|
528
|
+
},
|
|
529
|
+
/**
|
|
530
|
+
* Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
|
|
402
531
|
* @summary Create the investigation block
|
|
403
532
|
* @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
|
|
404
533
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -409,7 +538,7 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
|
|
|
409
538
|
return localVarFp.createInvestigationBlock(createInvestigationBlockRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
410
539
|
},
|
|
411
540
|
/**
|
|
412
|
-
* Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.
|
|
541
|
+
* Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
|
|
413
542
|
* @summary Delete the investigation block
|
|
414
543
|
* @param {string} code Unique identifier for the object.
|
|
415
544
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -420,7 +549,7 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
|
|
|
420
549
|
return localVarFp.deleteInvestigationBlock(code, authorization, options).then((request) => request(axios, basePath));
|
|
421
550
|
},
|
|
422
551
|
/**
|
|
423
|
-
* Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.
|
|
552
|
+
* Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
|
|
424
553
|
* @summary Retrieve the investigation block
|
|
425
554
|
* @param {string} code
|
|
426
555
|
* @param {string} expand
|
|
@@ -432,7 +561,7 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
|
|
|
432
561
|
return localVarFp.getInvestigationBlock(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
433
562
|
},
|
|
434
563
|
/**
|
|
435
|
-
* Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.
|
|
564
|
+
* Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
|
|
436
565
|
* @summary List investigation blocks
|
|
437
566
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
567
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -449,7 +578,18 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
|
|
|
449
578
|
return localVarFp.listInvestigationBlocks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
450
579
|
},
|
|
451
580
|
/**
|
|
452
|
-
*
|
|
581
|
+
* This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
582
|
+
* @summary Create the investigation block
|
|
583
|
+
* @param {string} code Unique identifier for the object.
|
|
584
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
585
|
+
* @param {*} [options] Override http request option.
|
|
586
|
+
* @throws {RequiredError}
|
|
587
|
+
*/
|
|
588
|
+
resolveInvestigationBlock(code: string, authorization?: string, options?: any): AxiosPromise<ResolveInvestigationBlockResponseClass> {
|
|
589
|
+
return localVarFp.resolveInvestigationBlock(code, authorization, options).then((request) => request(axios, basePath));
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
* Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
453
593
|
* @summary Update the investigation block
|
|
454
594
|
* @param {string} code
|
|
455
595
|
* @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
|
|
@@ -463,6 +603,27 @@ export const InvestigationBlocksApiFactory = function (configuration?: Configura
|
|
|
463
603
|
};
|
|
464
604
|
};
|
|
465
605
|
|
|
606
|
+
/**
|
|
607
|
+
* Request parameters for cancelInvestigationBlock operation in InvestigationBlocksApi.
|
|
608
|
+
* @export
|
|
609
|
+
* @interface InvestigationBlocksApiCancelInvestigationBlockRequest
|
|
610
|
+
*/
|
|
611
|
+
export interface InvestigationBlocksApiCancelInvestigationBlockRequest {
|
|
612
|
+
/**
|
|
613
|
+
* Unique identifier for the object.
|
|
614
|
+
* @type {string}
|
|
615
|
+
* @memberof InvestigationBlocksApiCancelInvestigationBlock
|
|
616
|
+
*/
|
|
617
|
+
readonly code: string
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof InvestigationBlocksApiCancelInvestigationBlock
|
|
623
|
+
*/
|
|
624
|
+
readonly authorization?: string
|
|
625
|
+
}
|
|
626
|
+
|
|
466
627
|
/**
|
|
467
628
|
* Request parameters for createInvestigationBlock operation in InvestigationBlocksApi.
|
|
468
629
|
* @export
|
|
@@ -596,6 +757,27 @@ export interface InvestigationBlocksApiListInvestigationBlocksRequest {
|
|
|
596
757
|
readonly filters?: string
|
|
597
758
|
}
|
|
598
759
|
|
|
760
|
+
/**
|
|
761
|
+
* Request parameters for resolveInvestigationBlock operation in InvestigationBlocksApi.
|
|
762
|
+
* @export
|
|
763
|
+
* @interface InvestigationBlocksApiResolveInvestigationBlockRequest
|
|
764
|
+
*/
|
|
765
|
+
export interface InvestigationBlocksApiResolveInvestigationBlockRequest {
|
|
766
|
+
/**
|
|
767
|
+
* Unique identifier for the object.
|
|
768
|
+
* @type {string}
|
|
769
|
+
* @memberof InvestigationBlocksApiResolveInvestigationBlock
|
|
770
|
+
*/
|
|
771
|
+
readonly code: string
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
775
|
+
* @type {string}
|
|
776
|
+
* @memberof InvestigationBlocksApiResolveInvestigationBlock
|
|
777
|
+
*/
|
|
778
|
+
readonly authorization?: string
|
|
779
|
+
}
|
|
780
|
+
|
|
599
781
|
/**
|
|
600
782
|
* Request parameters for updateInvestigationBlock operation in InvestigationBlocksApi.
|
|
601
783
|
* @export
|
|
@@ -632,7 +814,19 @@ export interface InvestigationBlocksApiUpdateInvestigationBlockRequest {
|
|
|
632
814
|
*/
|
|
633
815
|
export class InvestigationBlocksApi extends BaseAPI {
|
|
634
816
|
/**
|
|
635
|
-
*
|
|
817
|
+
* This will cancel investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
818
|
+
* @summary Create the investigation block
|
|
819
|
+
* @param {InvestigationBlocksApiCancelInvestigationBlockRequest} requestParameters Request parameters.
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @throws {RequiredError}
|
|
822
|
+
* @memberof InvestigationBlocksApi
|
|
823
|
+
*/
|
|
824
|
+
public cancelInvestigationBlock(requestParameters: InvestigationBlocksApiCancelInvestigationBlockRequest, options?: AxiosRequestConfig) {
|
|
825
|
+
return InvestigationBlocksApiFp(this.configuration).cancelInvestigationBlock(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Creates a new investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.create\"
|
|
636
830
|
* @summary Create the investigation block
|
|
637
831
|
* @param {InvestigationBlocksApiCreateInvestigationBlockRequest} requestParameters Request parameters.
|
|
638
832
|
* @param {*} [options] Override http request option.
|
|
@@ -644,7 +838,7 @@ export class InvestigationBlocksApi extends BaseAPI {
|
|
|
644
838
|
}
|
|
645
839
|
|
|
646
840
|
/**
|
|
647
|
-
* Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.
|
|
841
|
+
* Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.delete\"
|
|
648
842
|
* @summary Delete the investigation block
|
|
649
843
|
* @param {InvestigationBlocksApiDeleteInvestigationBlockRequest} requestParameters Request parameters.
|
|
650
844
|
* @param {*} [options] Override http request option.
|
|
@@ -656,7 +850,7 @@ export class InvestigationBlocksApi extends BaseAPI {
|
|
|
656
850
|
}
|
|
657
851
|
|
|
658
852
|
/**
|
|
659
|
-
* Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.
|
|
853
|
+
* Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
|
|
660
854
|
* @summary Retrieve the investigation block
|
|
661
855
|
* @param {InvestigationBlocksApiGetInvestigationBlockRequest} requestParameters Request parameters.
|
|
662
856
|
* @param {*} [options] Override http request option.
|
|
@@ -668,7 +862,7 @@ export class InvestigationBlocksApi extends BaseAPI {
|
|
|
668
862
|
}
|
|
669
863
|
|
|
670
864
|
/**
|
|
671
|
-
* Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.
|
|
865
|
+
* Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.investigation-blocks.view\"
|
|
672
866
|
* @summary List investigation blocks
|
|
673
867
|
* @param {InvestigationBlocksApiListInvestigationBlocksRequest} requestParameters Request parameters.
|
|
674
868
|
* @param {*} [options] Override http request option.
|
|
@@ -680,7 +874,19 @@ export class InvestigationBlocksApi extends BaseAPI {
|
|
|
680
874
|
}
|
|
681
875
|
|
|
682
876
|
/**
|
|
683
|
-
*
|
|
877
|
+
* This will resolve investigation block. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
878
|
+
* @summary Create the investigation block
|
|
879
|
+
* @param {InvestigationBlocksApiResolveInvestigationBlockRequest} requestParameters Request parameters.
|
|
880
|
+
* @param {*} [options] Override http request option.
|
|
881
|
+
* @throws {RequiredError}
|
|
882
|
+
* @memberof InvestigationBlocksApi
|
|
883
|
+
*/
|
|
884
|
+
public resolveInvestigationBlock(requestParameters: InvestigationBlocksApiResolveInvestigationBlockRequest, options?: AxiosRequestConfig) {
|
|
885
|
+
return InvestigationBlocksApiFp(this.configuration).resolveInvestigationBlock(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.investigation-blocks.update\"
|
|
684
890
|
* @summary Update the investigation block
|
|
685
891
|
* @param {InvestigationBlocksApiUpdateInvestigationBlockRequest} requestParameters Request parameters.
|
|
686
892
|
* @param {*} [options] Override http request option.
|