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