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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +84 -0
  5. package/api/health-checks-api.ts +154 -0
  6. package/api/investigation-blocks-api.ts +697 -0
  7. package/api/validation-rules-api.ts +561 -0
  8. package/api.ts +35 -0
  9. package/base.ts +327 -0
  10. package/common.ts +199 -0
  11. package/configuration.ts +118 -0
  12. package/dist/api/health-checks-api.d.ts +87 -0
  13. package/dist/api/health-checks-api.js +222 -0
  14. package/dist/api/investigation-blocks-api.d.ts +393 -0
  15. package/dist/api/investigation-blocks-api.js +648 -0
  16. package/dist/api/validation-rules-api.d.ts +318 -0
  17. package/dist/api/validation-rules-api.js +541 -0
  18. package/dist/api.d.ts +14 -0
  19. package/dist/api.js +32 -0
  20. package/dist/base.d.ts +88 -0
  21. package/dist/base.js +434 -0
  22. package/dist/common.d.ts +92 -0
  23. package/dist/common.js +277 -0
  24. package/dist/configuration.d.ts +96 -0
  25. package/dist/configuration.js +52 -0
  26. package/dist/index.d.ts +15 -0
  27. package/dist/index.js +36 -0
  28. package/dist/models/create-investigation-block-request-dto.d.ts +41 -0
  29. package/dist/models/create-investigation-block-request-dto.js +20 -0
  30. package/dist/models/create-investigation-block-response-class.d.ts +25 -0
  31. package/dist/models/create-investigation-block-response-class.js +15 -0
  32. package/dist/models/create-validation-rule-request-dto.d.ts +83 -0
  33. package/dist/models/create-validation-rule-request-dto.js +20 -0
  34. package/dist/models/create-validation-rule-response-class.d.ts +25 -0
  35. package/dist/models/create-validation-rule-response-class.js +15 -0
  36. package/dist/models/get-investigation-block-response-class.d.ts +25 -0
  37. package/dist/models/get-investigation-block-response-class.js +15 -0
  38. package/dist/models/get-validation-rule-response-class.d.ts +25 -0
  39. package/dist/models/get-validation-rule-response-class.js +15 -0
  40. package/dist/models/index.d.ts +14 -0
  41. package/dist/models/index.js +30 -0
  42. package/dist/models/inline-response200.d.ts +54 -0
  43. package/dist/models/inline-response200.js +15 -0
  44. package/dist/models/inline-response503.d.ts +54 -0
  45. package/dist/models/inline-response503.js +15 -0
  46. package/dist/models/investigation-block-class.d.ts +90 -0
  47. package/dist/models/investigation-block-class.js +15 -0
  48. package/dist/models/list-investigation-blocks-response-class.d.ts +43 -0
  49. package/dist/models/list-investigation-blocks-response-class.js +15 -0
  50. package/dist/models/list-validation-rules-response-class.d.ts +43 -0
  51. package/dist/models/list-validation-rules-response-class.js +15 -0
  52. package/dist/models/update-investigation-block-request-dto.d.ts +59 -0
  53. package/dist/models/update-investigation-block-request-dto.js +25 -0
  54. package/dist/models/update-investigation-block-response-class.d.ts +25 -0
  55. package/dist/models/update-investigation-block-response-class.js +15 -0
  56. package/dist/models/validation-rule-class.d.ts +119 -0
  57. package/dist/models/validation-rule-class.js +20 -0
  58. package/git_push.sh +57 -0
  59. package/index.ts +19 -0
  60. package/models/create-investigation-block-request-dto.ts +50 -0
  61. package/models/create-investigation-block-response-class.ts +31 -0
  62. package/models/create-validation-rule-request-dto.ts +92 -0
  63. package/models/create-validation-rule-response-class.ts +31 -0
  64. package/models/get-investigation-block-response-class.ts +31 -0
  65. package/models/get-validation-rule-response-class.ts +31 -0
  66. package/models/index.ts +14 -0
  67. package/models/inline-response200.ts +48 -0
  68. package/models/inline-response503.ts +48 -0
  69. package/models/investigation-block-class.ts +96 -0
  70. package/models/list-investigation-blocks-response-class.ts +49 -0
  71. package/models/list-validation-rules-response-class.ts +49 -0
  72. package/models/update-investigation-block-request-dto.ts +69 -0
  73. package/models/update-investigation-block-response-class.ts +31 -0
  74. package/models/validation-rule-class.ts +128 -0
  75. package/package.json +29 -0
  76. package/tsconfig.json +23 -0
@@ -0,0 +1,697 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Validation Rules Service
5
+ * The EMIL Validation Rules Service API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateInvestigationBlockRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateInvestigationBlockResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetInvestigationBlockResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListInvestigationBlocksResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateInvestigationBlockRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateInvestigationBlockResponseClass } from '../models';
35
+ // URLSearchParams not necessarily used
36
+ // @ts-ignore
37
+ import { URL, URLSearchParams } from 'url';
38
+ const FormData = require('form-data');
39
+ /**
40
+ * InvestigationBlocksApi - axios parameter creator
41
+ * @export
42
+ */
43
+ export const InvestigationBlocksApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
47
+ * @summary Create the investigation block
48
+ * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
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
+ createInvestigationBlock: async (createInvestigationBlockRequestDto: CreateInvestigationBlockRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ // verify required parameter 'createInvestigationBlockRequestDto' is not null or undefined
55
+ assertParamExists('createInvestigationBlock', 'createInvestigationBlockRequestDto', createInvestigationBlockRequestDto)
56
+ const localVarPath = `/validationrulesservice/v1/investigation-blocks`;
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ let baseAccessToken;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ baseAccessToken = configuration.accessToken;
64
+ }
65
+
66
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
+ const localVarHeaderParameter = {} as any;
68
+ const localVarQueryParameter = {} as any;
69
+
70
+ // authentication bearer required
71
+ // http bearer authentication required
72
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
+
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ }
77
+
78
+
79
+
80
+ localVarHeaderParameter['Content-Type'] = 'application/json';
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+ localVarRequestOptions.data = serializeDataIfNeeded(createInvestigationBlockRequestDto, localVarRequestOptions, configuration)
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
92
+ /**
93
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
94
+ * @summary Delete the investigation block
95
+ * @param {string} code Unique identifier for the object.
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteInvestigationBlock: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteInvestigationBlock', 'code', code)
103
+ const localVarPath = `/validationrulesservice/v1/investigation-blocks/{code}`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
139
+ * @summary Retrieve the investigation block
140
+ * @param {string} code
141
+ * @param {string} expand
142
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ getInvestigationBlock: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
+ // verify required parameter 'code' is not null or undefined
148
+ assertParamExists('getInvestigationBlock', 'code', code)
149
+ // verify required parameter 'expand' is not null or undefined
150
+ assertParamExists('getInvestigationBlock', 'expand', expand)
151
+ const localVarPath = `/validationrulesservice/v1/investigation-blocks/{code}`
152
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ let baseAccessToken;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ baseAccessToken = configuration.accessToken;
160
+ }
161
+
162
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
163
+ const localVarHeaderParameter = {} as any;
164
+ const localVarQueryParameter = {} as any;
165
+
166
+ // authentication bearer required
167
+ // http bearer authentication required
168
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
169
+
170
+ if (expand !== undefined) {
171
+ localVarQueryParameter['expand'] = expand;
172
+ }
173
+
174
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
175
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
176
+ }
177
+
178
+
179
+
180
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
183
+
184
+ return {
185
+ url: toPathString(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ };
188
+ },
189
+ /**
190
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
191
+ * @summary List investigation blocks
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
195
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
196
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
197
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
198
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
199
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ 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`;
205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
+ let baseOptions;
208
+ let baseAccessToken;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ baseAccessToken = configuration.accessToken;
212
+ }
213
+
214
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
215
+ const localVarHeaderParameter = {} as any;
216
+ const localVarQueryParameter = {} as any;
217
+
218
+ // authentication bearer required
219
+ // http bearer authentication required
220
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
+
222
+ if (pageSize !== undefined) {
223
+ localVarQueryParameter['pageSize'] = pageSize;
224
+ }
225
+
226
+ if (pageToken !== undefined) {
227
+ localVarQueryParameter['pageToken'] = pageToken;
228
+ }
229
+
230
+ if (filter !== undefined) {
231
+ localVarQueryParameter['filter'] = filter;
232
+ }
233
+
234
+ if (search !== undefined) {
235
+ localVarQueryParameter['search'] = search;
236
+ }
237
+
238
+ if (order !== undefined) {
239
+ localVarQueryParameter['order'] = order;
240
+ }
241
+
242
+ if (expand !== undefined) {
243
+ localVarQueryParameter['expand'] = expand;
244
+ }
245
+
246
+ if (filters !== undefined) {
247
+ localVarQueryParameter['filters'] = filters;
248
+ }
249
+
250
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ }
253
+
254
+
255
+
256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
+
260
+ return {
261
+ url: toPathString(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ },
265
+ /**
266
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
267
+ * @summary Update the investigation block
268
+ * @param {string} code
269
+ * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
270
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ updateInvestigationBlock: async (code: string, updateInvestigationBlockRequestDto: UpdateInvestigationBlockRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'code' is not null or undefined
276
+ assertParamExists('updateInvestigationBlock', 'code', code)
277
+ // verify required parameter 'updateInvestigationBlockRequestDto' is not null or undefined
278
+ assertParamExists('updateInvestigationBlock', 'updateInvestigationBlockRequestDto', updateInvestigationBlockRequestDto)
279
+ const localVarPath = `/validationrulesservice/v1/investigation-blocks/{code}`
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
+ let baseOptions;
284
+ let baseAccessToken;
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ baseAccessToken = configuration.accessToken;
288
+ }
289
+
290
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
291
+ const localVarHeaderParameter = {} as any;
292
+ const localVarQueryParameter = {} as any;
293
+
294
+ // authentication bearer required
295
+ // http bearer authentication required
296
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
+
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ }
301
+
302
+
303
+
304
+ localVarHeaderParameter['Content-Type'] = 'application/json';
305
+
306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
309
+ localVarRequestOptions.data = serializeDataIfNeeded(updateInvestigationBlockRequestDto, localVarRequestOptions, configuration)
310
+
311
+ return {
312
+ url: toPathString(localVarUrlObj),
313
+ options: localVarRequestOptions,
314
+ };
315
+ },
316
+ }
317
+ };
318
+
319
+ /**
320
+ * InvestigationBlocksApi - functional programming interface
321
+ * @export
322
+ */
323
+ export const InvestigationBlocksApiFp = function(configuration?: Configuration) {
324
+ const localVarAxiosParamCreator = InvestigationBlocksApiAxiosParamCreator(configuration)
325
+ return {
326
+ /**
327
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
328
+ * @summary Create the investigation block
329
+ * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
330
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ async createInvestigationBlock(createInvestigationBlockRequestDto: CreateInvestigationBlockRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvestigationBlockResponseClass>> {
335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createInvestigationBlock(createInvestigationBlockRequestDto, authorization, options);
336
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
+ },
338
+ /**
339
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
340
+ * @summary Delete the investigation block
341
+ * @param {string} code Unique identifier for the object.
342
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ async deleteInvestigationBlock(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvestigationBlock(code, authorization, options);
348
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
+ },
350
+ /**
351
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
352
+ * @summary Retrieve the investigation block
353
+ * @param {string} code
354
+ * @param {string} expand
355
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ async getInvestigationBlock(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvestigationBlockResponseClass>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestigationBlock(code, expand, authorization, options);
361
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
+ },
363
+ /**
364
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
365
+ * @summary List investigation blocks
366
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
369
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
370
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
371
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
372
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
373
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ async listInvestigationBlocks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvestigationBlocksResponseClass>> {
378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvestigationBlocks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
379
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
+ },
381
+ /**
382
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
383
+ * @summary Update the investigation block
384
+ * @param {string} code
385
+ * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
386
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ async updateInvestigationBlock(code: string, updateInvestigationBlockRequestDto: UpdateInvestigationBlockRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateInvestigationBlockResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateInvestigationBlock(code, updateInvestigationBlockRequestDto, authorization, options);
392
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
+ },
394
+ }
395
+ };
396
+
397
+ /**
398
+ * InvestigationBlocksApi - factory interface
399
+ * @export
400
+ */
401
+ export const InvestigationBlocksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
402
+ const localVarFp = InvestigationBlocksApiFp(configuration)
403
+ return {
404
+ /**
405
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
406
+ * @summary Create the investigation block
407
+ * @param {CreateInvestigationBlockRequestDto} createInvestigationBlockRequestDto
408
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ createInvestigationBlock(createInvestigationBlockRequestDto: CreateInvestigationBlockRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInvestigationBlockResponseClass> {
413
+ return localVarFp.createInvestigationBlock(createInvestigationBlockRequestDto, authorization, options).then((request) => request(axios, basePath));
414
+ },
415
+ /**
416
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
417
+ * @summary Delete the investigation block
418
+ * @param {string} code Unique identifier for the object.
419
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ deleteInvestigationBlock(code: string, authorization?: string, options?: any): AxiosPromise<void> {
424
+ return localVarFp.deleteInvestigationBlock(code, authorization, options).then((request) => request(axios, basePath));
425
+ },
426
+ /**
427
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
428
+ * @summary Retrieve the investigation block
429
+ * @param {string} code
430
+ * @param {string} expand
431
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ getInvestigationBlock(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetInvestigationBlockResponseClass> {
436
+ return localVarFp.getInvestigationBlock(code, expand, authorization, options).then((request) => request(axios, basePath));
437
+ },
438
+ /**
439
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
440
+ * @summary List investigation blocks
441
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
444
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
445
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
446
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
447
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
448
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ listInvestigationBlocks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInvestigationBlocksResponseClass> {
453
+ return localVarFp.listInvestigationBlocks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
454
+ },
455
+ /**
456
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
457
+ * @summary Update the investigation block
458
+ * @param {string} code
459
+ * @param {UpdateInvestigationBlockRequestDto} updateInvestigationBlockRequestDto
460
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ updateInvestigationBlock(code: string, updateInvestigationBlockRequestDto: UpdateInvestigationBlockRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateInvestigationBlockResponseClass> {
465
+ return localVarFp.updateInvestigationBlock(code, updateInvestigationBlockRequestDto, authorization, options).then((request) => request(axios, basePath));
466
+ },
467
+ };
468
+ };
469
+
470
+ /**
471
+ * Request parameters for createInvestigationBlock operation in InvestigationBlocksApi.
472
+ * @export
473
+ * @interface InvestigationBlocksApiCreateInvestigationBlockRequest
474
+ */
475
+ export interface InvestigationBlocksApiCreateInvestigationBlockRequest {
476
+ /**
477
+ *
478
+ * @type {CreateInvestigationBlockRequestDto}
479
+ * @memberof InvestigationBlocksApiCreateInvestigationBlock
480
+ */
481
+ readonly createInvestigationBlockRequestDto: CreateInvestigationBlockRequestDto
482
+
483
+ /**
484
+ * Bearer Token: provided by the login endpoint under the name accessToken.
485
+ * @type {string}
486
+ * @memberof InvestigationBlocksApiCreateInvestigationBlock
487
+ */
488
+ readonly authorization?: string
489
+ }
490
+
491
+ /**
492
+ * Request parameters for deleteInvestigationBlock operation in InvestigationBlocksApi.
493
+ * @export
494
+ * @interface InvestigationBlocksApiDeleteInvestigationBlockRequest
495
+ */
496
+ export interface InvestigationBlocksApiDeleteInvestigationBlockRequest {
497
+ /**
498
+ * Unique identifier for the object.
499
+ * @type {string}
500
+ * @memberof InvestigationBlocksApiDeleteInvestigationBlock
501
+ */
502
+ readonly code: string
503
+
504
+ /**
505
+ * Bearer Token: provided by the login endpoint under the name accessToken.
506
+ * @type {string}
507
+ * @memberof InvestigationBlocksApiDeleteInvestigationBlock
508
+ */
509
+ readonly authorization?: string
510
+ }
511
+
512
+ /**
513
+ * Request parameters for getInvestigationBlock operation in InvestigationBlocksApi.
514
+ * @export
515
+ * @interface InvestigationBlocksApiGetInvestigationBlockRequest
516
+ */
517
+ export interface InvestigationBlocksApiGetInvestigationBlockRequest {
518
+ /**
519
+ *
520
+ * @type {string}
521
+ * @memberof InvestigationBlocksApiGetInvestigationBlock
522
+ */
523
+ readonly code: string
524
+
525
+ /**
526
+ *
527
+ * @type {string}
528
+ * @memberof InvestigationBlocksApiGetInvestigationBlock
529
+ */
530
+ readonly expand: string
531
+
532
+ /**
533
+ * Bearer Token: provided by the login endpoint under the name accessToken.
534
+ * @type {string}
535
+ * @memberof InvestigationBlocksApiGetInvestigationBlock
536
+ */
537
+ readonly authorization?: string
538
+ }
539
+
540
+ /**
541
+ * Request parameters for listInvestigationBlocks operation in InvestigationBlocksApi.
542
+ * @export
543
+ * @interface InvestigationBlocksApiListInvestigationBlocksRequest
544
+ */
545
+ export interface InvestigationBlocksApiListInvestigationBlocksRequest {
546
+ /**
547
+ * Bearer Token: provided by the login endpoint under the name accessToken.
548
+ * @type {string}
549
+ * @memberof InvestigationBlocksApiListInvestigationBlocks
550
+ */
551
+ readonly authorization?: string
552
+
553
+ /**
554
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
+ * @type {number}
556
+ * @memberof InvestigationBlocksApiListInvestigationBlocks
557
+ */
558
+ readonly pageSize?: number
559
+
560
+ /**
561
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
562
+ * @type {string}
563
+ * @memberof InvestigationBlocksApiListInvestigationBlocks
564
+ */
565
+ readonly pageToken?: string
566
+
567
+ /**
568
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
569
+ * @type {string}
570
+ * @memberof InvestigationBlocksApiListInvestigationBlocks
571
+ */
572
+ readonly filter?: string
573
+
574
+ /**
575
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
576
+ * @type {string}
577
+ * @memberof InvestigationBlocksApiListInvestigationBlocks
578
+ */
579
+ readonly search?: string
580
+
581
+ /**
582
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
583
+ * @type {string}
584
+ * @memberof InvestigationBlocksApiListInvestigationBlocks
585
+ */
586
+ readonly order?: string
587
+
588
+ /**
589
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
590
+ * @type {string}
591
+ * @memberof InvestigationBlocksApiListInvestigationBlocks
592
+ */
593
+ readonly expand?: string
594
+
595
+ /**
596
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
597
+ * @type {string}
598
+ * @memberof InvestigationBlocksApiListInvestigationBlocks
599
+ */
600
+ readonly filters?: string
601
+ }
602
+
603
+ /**
604
+ * Request parameters for updateInvestigationBlock operation in InvestigationBlocksApi.
605
+ * @export
606
+ * @interface InvestigationBlocksApiUpdateInvestigationBlockRequest
607
+ */
608
+ export interface InvestigationBlocksApiUpdateInvestigationBlockRequest {
609
+ /**
610
+ *
611
+ * @type {string}
612
+ * @memberof InvestigationBlocksApiUpdateInvestigationBlock
613
+ */
614
+ readonly code: string
615
+
616
+ /**
617
+ *
618
+ * @type {UpdateInvestigationBlockRequestDto}
619
+ * @memberof InvestigationBlocksApiUpdateInvestigationBlock
620
+ */
621
+ readonly updateInvestigationBlockRequestDto: UpdateInvestigationBlockRequestDto
622
+
623
+ /**
624
+ * Bearer Token: provided by the login endpoint under the name accessToken.
625
+ * @type {string}
626
+ * @memberof InvestigationBlocksApiUpdateInvestigationBlock
627
+ */
628
+ readonly authorization?: string
629
+ }
630
+
631
+ /**
632
+ * InvestigationBlocksApi - object-oriented interface
633
+ * @export
634
+ * @class InvestigationBlocksApi
635
+ * @extends {BaseAPI}
636
+ */
637
+ export class InvestigationBlocksApi extends BaseAPI {
638
+ /**
639
+ * Creates a new investigation block. **Required Permissions** \"validation-rules-management.validation-rules.create\"
640
+ * @summary Create the investigation block
641
+ * @param {InvestigationBlocksApiCreateInvestigationBlockRequest} requestParameters Request parameters.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ * @memberof InvestigationBlocksApi
645
+ */
646
+ public createInvestigationBlock(requestParameters: InvestigationBlocksApiCreateInvestigationBlockRequest, options?: AxiosRequestConfig) {
647
+ return InvestigationBlocksApiFp(this.configuration).createInvestigationBlock(requestParameters.createInvestigationBlockRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
648
+ }
649
+
650
+ /**
651
+ * Deletes an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.delete\"
652
+ * @summary Delete the investigation block
653
+ * @param {InvestigationBlocksApiDeleteInvestigationBlockRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ * @memberof InvestigationBlocksApi
657
+ */
658
+ public deleteInvestigationBlock(requestParameters: InvestigationBlocksApiDeleteInvestigationBlockRequest, options?: AxiosRequestConfig) {
659
+ return InvestigationBlocksApiFp(this.configuration).deleteInvestigationBlock(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
660
+ }
661
+
662
+ /**
663
+ * Retrieves an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.view\"
664
+ * @summary Retrieve the investigation block
665
+ * @param {InvestigationBlocksApiGetInvestigationBlockRequest} requestParameters Request parameters.
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ * @memberof InvestigationBlocksApi
669
+ */
670
+ public getInvestigationBlock(requestParameters: InvestigationBlocksApiGetInvestigationBlockRequest, options?: AxiosRequestConfig) {
671
+ return InvestigationBlocksApiFp(this.configuration).getInvestigationBlock(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
672
+ }
673
+
674
+ /**
675
+ * Retrieves a list of investigation blocks with pagination. **Required Permissions** \"validation-rules-management.validation-rules.view\"
676
+ * @summary List investigation blocks
677
+ * @param {InvestigationBlocksApiListInvestigationBlocksRequest} requestParameters Request parameters.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ * @memberof InvestigationBlocksApi
681
+ */
682
+ public listInvestigationBlocks(requestParameters: InvestigationBlocksApiListInvestigationBlocksRequest = {}, options?: AxiosRequestConfig) {
683
+ return InvestigationBlocksApiFp(this.configuration).listInvestigationBlocks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
684
+ }
685
+
686
+ /**
687
+ * Updates an investigation block by its code. **Required Permissions** \"validation-rules-management.validation-rules.update\"
688
+ * @summary Update the investigation block
689
+ * @param {InvestigationBlocksApiUpdateInvestigationBlockRequest} requestParameters Request parameters.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ * @memberof InvestigationBlocksApi
693
+ */
694
+ public updateInvestigationBlock(requestParameters: InvestigationBlocksApiUpdateInvestigationBlockRequest, options?: AxiosRequestConfig) {
695
+ return InvestigationBlocksApiFp(this.configuration).updateInvestigationBlock(requestParameters.code, requestParameters.updateInvestigationBlockRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
696
+ }
697
+ }