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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/investigation-blocks-api.ts +231 -25
  4. package/api/validation-rules-api.ts +447 -12
  5. package/dist/api/investigation-blocks-api.d.ts +132 -20
  6. package/dist/api/investigation-blocks-api.js +209 -25
  7. package/dist/api/validation-rules-api.d.ts +244 -12
  8. package/dist/api/validation-rules-api.js +383 -9
  9. package/dist/models/cancel-investigation-block-response-class.d.ts +25 -0
  10. package/dist/models/cancel-investigation-block-response-class.js +15 -0
  11. package/dist/models/create-validation-rule-request-dto.d.ts +17 -12
  12. package/dist/models/create-validation-rule-request-dto.js +5 -1
  13. package/dist/models/execute-rule-request-dto.d.ts +41 -0
  14. package/dist/models/execute-rule-request-dto.js +20 -0
  15. package/dist/models/execute-rule-response-class.d.ts +54 -0
  16. package/dist/models/execute-rule-response-class.js +20 -0
  17. package/dist/models/execute-rule-result-class.d.ts +53 -0
  18. package/dist/models/execute-rule-result-class.js +20 -0
  19. package/dist/models/execute-rule-with-dry-run-request-dto.d.ts +30 -0
  20. package/dist/models/execute-rule-with-dry-run-request-dto.js +15 -0
  21. package/dist/models/execute-rule-with-dry-run-response-class.d.ts +36 -0
  22. package/dist/models/execute-rule-with-dry-run-response-class.js +15 -0
  23. package/dist/models/execute-rules-by-type-request-dto.d.ts +35 -0
  24. package/dist/models/execute-rules-by-type-request-dto.js +20 -0
  25. package/dist/models/index.d.ts +10 -0
  26. package/dist/models/index.js +10 -0
  27. package/dist/models/investigation-block-class.d.ts +25 -2
  28. package/dist/models/investigation-block-class.js +10 -0
  29. package/dist/models/resolve-investigation-block-response-class.d.ts +25 -0
  30. package/dist/models/resolve-investigation-block-response-class.js +15 -0
  31. package/dist/models/update-investigation-block-request-dto.d.ts +1 -1
  32. package/dist/models/update-investigation-block-request-dto.js +1 -1
  33. package/dist/models/update-validation-rule-request-dto.d.ts +88 -0
  34. package/dist/models/update-validation-rule-request-dto.js +24 -0
  35. package/dist/models/update-validation-rule-response-class.d.ts +25 -0
  36. package/dist/models/update-validation-rule-response-class.js +15 -0
  37. package/dist/models/validation-rule-class.d.ts +16 -5
  38. package/dist/models/validation-rule-class.js +5 -1
  39. package/models/cancel-investigation-block-response-class.ts +31 -0
  40. package/models/create-validation-rule-request-dto.ts +18 -12
  41. package/models/execute-rule-request-dto.ts +50 -0
  42. package/models/execute-rule-response-class.ts +63 -0
  43. package/models/execute-rule-result-class.ts +62 -0
  44. package/models/execute-rule-with-dry-run-request-dto.ts +36 -0
  45. package/models/execute-rule-with-dry-run-response-class.ts +42 -0
  46. package/models/execute-rules-by-type-request-dto.ts +44 -0
  47. package/models/index.ts +10 -0
  48. package/models/investigation-block-class.ts +29 -2
  49. package/models/resolve-investigation-block-response-class.ts +31 -0
  50. package/models/update-investigation-block-request-dto.ts +1 -1
  51. package/models/update-validation-rule-request-dto.ts +98 -0
  52. package/models/update-validation-rule-response-class.ts +31 -0
  53. package/models/validation-rule-class.ts +17 -5
  54. package/package.json +1 -1
@@ -25,9 +25,23 @@ import { CreateValidationRuleRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateValidationRuleResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { ExecuteRuleRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { ExecuteRuleResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ExecuteRuleWithDryRunRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { ExecuteRuleWithDryRunResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { ExecuteRulesByTypeRequestDto } from '../models';
37
+ // @ts-ignore
28
38
  import { GetValidationRuleResponseClass } from '../models';
29
39
  // @ts-ignore
30
40
  import { ListValidationRulesResponseClass } from '../models';
41
+ // @ts-ignore
42
+ import { UpdateValidationRuleRequestDto } from '../models';
43
+ // @ts-ignore
44
+ import { UpdateValidationRuleResponseClass } from '../models';
31
45
  // URLSearchParams not necessarily used
32
46
  // @ts-ignore
33
47
  import { URL, URLSearchParams } from 'url';
@@ -130,6 +144,147 @@ export const ValidationRulesApiAxiosParamCreator = function (configuration?: Con
130
144
  options: localVarRequestOptions,
131
145
  };
132
146
  },
147
+ /**
148
+ * Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
149
+ * @summary Create the execute rule
150
+ * @param {ExecuteRuleRequestDto} executeRuleRequestDto
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ executeRule: async (executeRuleRequestDto: ExecuteRuleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
156
+ // verify required parameter 'executeRuleRequestDto' is not null or undefined
157
+ assertParamExists('executeRule', 'executeRuleRequestDto', executeRuleRequestDto)
158
+ const localVarPath = `/validation-rules-service/v1/validation-rules/execute`;
159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
161
+ let baseOptions;
162
+ let baseAccessToken;
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ baseAccessToken = configuration.accessToken;
166
+ }
167
+
168
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
169
+ const localVarHeaderParameter = {} as any;
170
+ const localVarQueryParameter = {} as any;
171
+
172
+ // authentication bearer required
173
+ // http bearer authentication required
174
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
175
+
176
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
+ }
179
+
180
+
181
+
182
+ localVarHeaderParameter['Content-Type'] = 'application/json';
183
+
184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
187
+ localVarRequestOptions.data = serializeDataIfNeeded(executeRuleRequestDto, localVarRequestOptions, configuration)
188
+
189
+ return {
190
+ url: toPathString(localVarUrlObj),
191
+ options: localVarRequestOptions,
192
+ };
193
+ },
194
+ /**
195
+ * Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
196
+ * @summary Create the test rule
197
+ * @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
198
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ executeRuleWithDryRun: async (executeRuleWithDryRunRequestDto: ExecuteRuleWithDryRunRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ // verify required parameter 'executeRuleWithDryRunRequestDto' is not null or undefined
204
+ assertParamExists('executeRuleWithDryRun', 'executeRuleWithDryRunRequestDto', executeRuleWithDryRunRequestDto)
205
+ const localVarPath = `/validation-rules-service/v1/validation-rules/test`;
206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
208
+ let baseOptions;
209
+ let baseAccessToken;
210
+ if (configuration) {
211
+ baseOptions = configuration.baseOptions;
212
+ baseAccessToken = configuration.accessToken;
213
+ }
214
+
215
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
216
+ const localVarHeaderParameter = {} as any;
217
+ const localVarQueryParameter = {} as any;
218
+
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
222
+
223
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
225
+ }
226
+
227
+
228
+
229
+ localVarHeaderParameter['Content-Type'] = 'application/json';
230
+
231
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
232
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
233
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
234
+ localVarRequestOptions.data = serializeDataIfNeeded(executeRuleWithDryRunRequestDto, localVarRequestOptions, configuration)
235
+
236
+ return {
237
+ url: toPathString(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ };
240
+ },
241
+ /**
242
+ * Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
243
+ * @summary Create the execute rules by type
244
+ * @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
245
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ executeRulesByType: async (executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
250
+ // verify required parameter 'executeRulesByTypeRequestDto' is not null or undefined
251
+ assertParamExists('executeRulesByType', 'executeRulesByTypeRequestDto', executeRulesByTypeRequestDto)
252
+ const localVarPath = `/validation-rules-service/v1/validation-rules/execute/by-type`;
253
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
254
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
255
+ let baseOptions;
256
+ let baseAccessToken;
257
+ if (configuration) {
258
+ baseOptions = configuration.baseOptions;
259
+ baseAccessToken = configuration.accessToken;
260
+ }
261
+
262
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
263
+ const localVarHeaderParameter = {} as any;
264
+ const localVarQueryParameter = {} as any;
265
+
266
+ // authentication bearer required
267
+ // http bearer authentication required
268
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
269
+
270
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
+ }
273
+
274
+
275
+
276
+ localVarHeaderParameter['Content-Type'] = 'application/json';
277
+
278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
281
+ localVarRequestOptions.data = serializeDataIfNeeded(executeRulesByTypeRequestDto, localVarRequestOptions, configuration)
282
+
283
+ return {
284
+ url: toPathString(localVarUrlObj),
285
+ options: localVarRequestOptions,
286
+ };
287
+ },
133
288
  /**
134
289
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
135
290
  * @summary Retrieve the validation rule
@@ -181,11 +336,11 @@ export const ValidationRulesApiAxiosParamCreator = function (configuration?: Con
181
336
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
182
337
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
183
338
  * @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.
184
- * @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, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
339
+ * @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, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
185
340
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
186
- * @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: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt&lt;/i&gt;
341
+ * @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: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt&lt;/i&gt;
187
342
  * @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;
188
- * @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, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
343
+ * @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, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
189
344
  * @param {*} [options] Override http request option.
190
345
  * @throws {RequiredError}
191
346
  */
@@ -246,6 +401,56 @@ export const ValidationRulesApiAxiosParamCreator = function (configuration?: Con
246
401
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
402
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
248
403
 
404
+ return {
405
+ url: toPathString(localVarUrlObj),
406
+ options: localVarRequestOptions,
407
+ };
408
+ },
409
+ /**
410
+ * undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
411
+ * @param {string} code
412
+ * @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
413
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
414
+ * @param {*} [options] Override http request option.
415
+ * @throws {RequiredError}
416
+ */
417
+ updateValidationRule: async (code: string, updateValidationRuleRequestDto: UpdateValidationRuleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
418
+ // verify required parameter 'code' is not null or undefined
419
+ assertParamExists('updateValidationRule', 'code', code)
420
+ // verify required parameter 'updateValidationRuleRequestDto' is not null or undefined
421
+ assertParamExists('updateValidationRule', 'updateValidationRuleRequestDto', updateValidationRuleRequestDto)
422
+ const localVarPath = `/validation-rules-service/v1/validation-rules/{code}`
423
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
424
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
425
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
426
+ let baseOptions;
427
+ let baseAccessToken;
428
+ if (configuration) {
429
+ baseOptions = configuration.baseOptions;
430
+ baseAccessToken = configuration.accessToken;
431
+ }
432
+
433
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
434
+ const localVarHeaderParameter = {} as any;
435
+ const localVarQueryParameter = {} as any;
436
+
437
+ // authentication bearer required
438
+ // http bearer authentication required
439
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
440
+
441
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
442
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
443
+ }
444
+
445
+
446
+
447
+ localVarHeaderParameter['Content-Type'] = 'application/json';
448
+
449
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
450
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
451
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
452
+ localVarRequestOptions.data = serializeDataIfNeeded(updateValidationRuleRequestDto, localVarRequestOptions, configuration)
453
+
249
454
  return {
250
455
  url: toPathString(localVarUrlObj),
251
456
  options: localVarRequestOptions,
@@ -285,6 +490,42 @@ export const ValidationRulesApiFp = function(configuration?: Configuration) {
285
490
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteValidationRule(code, authorization, options);
286
491
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
287
492
  },
493
+ /**
494
+ * Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
495
+ * @summary Create the execute rule
496
+ * @param {ExecuteRuleRequestDto} executeRuleRequestDto
497
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ */
501
+ async executeRule(executeRuleRequestDto: ExecuteRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteRuleResponseClass>> {
502
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeRule(executeRuleRequestDto, authorization, options);
503
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
504
+ },
505
+ /**
506
+ * Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
507
+ * @summary Create the test rule
508
+ * @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
509
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ async executeRuleWithDryRun(executeRuleWithDryRunRequestDto: ExecuteRuleWithDryRunRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteRuleWithDryRunResponseClass>> {
514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeRuleWithDryRun(executeRuleWithDryRunRequestDto, authorization, options);
515
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
516
+ },
517
+ /**
518
+ * Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
519
+ * @summary Create the execute rules by type
520
+ * @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
521
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ async executeRulesByType(executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteRuleResponseClass>> {
526
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeRulesByType(executeRulesByTypeRequestDto, authorization, options);
527
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
528
+ },
288
529
  /**
289
530
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
290
531
  * @summary Retrieve the validation rule
@@ -303,11 +544,11 @@ export const ValidationRulesApiFp = function(configuration?: Configuration) {
303
544
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
304
545
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
305
546
  * @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.
306
- * @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, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
547
+ * @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, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
307
548
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
308
- * @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: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt&lt;/i&gt;
549
+ * @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: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt&lt;/i&gt;
309
550
  * @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;
310
- * @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, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
551
+ * @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, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
311
552
  * @param {*} [options] Override http request option.
312
553
  * @throws {RequiredError}
313
554
  */
@@ -315,6 +556,18 @@ export const ValidationRulesApiFp = function(configuration?: Configuration) {
315
556
  const localVarAxiosArgs = await localVarAxiosParamCreator.listValidationRules(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
316
557
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
317
558
  },
559
+ /**
560
+ * undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
561
+ * @param {string} code
562
+ * @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
563
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
564
+ * @param {*} [options] Override http request option.
565
+ * @throws {RequiredError}
566
+ */
567
+ async updateValidationRule(code: string, updateValidationRuleRequestDto: UpdateValidationRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateValidationRuleResponseClass>> {
568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateValidationRule(code, updateValidationRuleRequestDto, authorization, options);
569
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
570
+ },
318
571
  }
319
572
  };
320
573
 
@@ -347,6 +600,39 @@ export const ValidationRulesApiFactory = function (configuration?: Configuration
347
600
  deleteValidationRule(code: string, authorization?: string, options?: any): AxiosPromise<void> {
348
601
  return localVarFp.deleteValidationRule(code, authorization, options).then((request) => request(axios, basePath));
349
602
  },
603
+ /**
604
+ * Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
605
+ * @summary Create the execute rule
606
+ * @param {ExecuteRuleRequestDto} executeRuleRequestDto
607
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ executeRule(executeRuleRequestDto: ExecuteRuleRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleResponseClass> {
612
+ return localVarFp.executeRule(executeRuleRequestDto, authorization, options).then((request) => request(axios, basePath));
613
+ },
614
+ /**
615
+ * Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
616
+ * @summary Create the test rule
617
+ * @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
618
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ executeRuleWithDryRun(executeRuleWithDryRunRequestDto: ExecuteRuleWithDryRunRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleWithDryRunResponseClass> {
623
+ return localVarFp.executeRuleWithDryRun(executeRuleWithDryRunRequestDto, authorization, options).then((request) => request(axios, basePath));
624
+ },
625
+ /**
626
+ * Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
627
+ * @summary Create the execute rules by type
628
+ * @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
629
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ */
633
+ executeRulesByType(executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleResponseClass> {
634
+ return localVarFp.executeRulesByType(executeRulesByTypeRequestDto, authorization, options).then((request) => request(axios, basePath));
635
+ },
350
636
  /**
351
637
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
352
638
  * @summary Retrieve the validation rule
@@ -364,17 +650,28 @@ export const ValidationRulesApiFactory = function (configuration?: Configuration
364
650
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
651
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
652
  * @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.
367
- * @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, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
653
+ * @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, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
368
654
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
369
- * @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: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt&lt;/i&gt;
655
+ * @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: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt&lt;/i&gt;
370
656
  * @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;
371
- * @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, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
657
+ * @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, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
372
658
  * @param {*} [options] Override http request option.
373
659
  * @throws {RequiredError}
374
660
  */
375
661
  listValidationRules(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListValidationRulesResponseClass> {
376
662
  return localVarFp.listValidationRules(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
377
663
  },
664
+ /**
665
+ * undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
666
+ * @param {string} code
667
+ * @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
668
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ updateValidationRule(code: string, updateValidationRuleRequestDto: UpdateValidationRuleRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateValidationRuleResponseClass> {
673
+ return localVarFp.updateValidationRule(code, updateValidationRuleRequestDto, authorization, options).then((request) => request(axios, basePath));
674
+ },
378
675
  };
379
676
  };
380
677
 
@@ -420,6 +717,69 @@ export interface ValidationRulesApiDeleteValidationRuleRequest {
420
717
  readonly authorization?: string
421
718
  }
422
719
 
720
+ /**
721
+ * Request parameters for executeRule operation in ValidationRulesApi.
722
+ * @export
723
+ * @interface ValidationRulesApiExecuteRuleRequest
724
+ */
725
+ export interface ValidationRulesApiExecuteRuleRequest {
726
+ /**
727
+ *
728
+ * @type {ExecuteRuleRequestDto}
729
+ * @memberof ValidationRulesApiExecuteRule
730
+ */
731
+ readonly executeRuleRequestDto: ExecuteRuleRequestDto
732
+
733
+ /**
734
+ * Bearer Token: provided by the login endpoint under the name accessToken.
735
+ * @type {string}
736
+ * @memberof ValidationRulesApiExecuteRule
737
+ */
738
+ readonly authorization?: string
739
+ }
740
+
741
+ /**
742
+ * Request parameters for executeRuleWithDryRun operation in ValidationRulesApi.
743
+ * @export
744
+ * @interface ValidationRulesApiExecuteRuleWithDryRunRequest
745
+ */
746
+ export interface ValidationRulesApiExecuteRuleWithDryRunRequest {
747
+ /**
748
+ *
749
+ * @type {ExecuteRuleWithDryRunRequestDto}
750
+ * @memberof ValidationRulesApiExecuteRuleWithDryRun
751
+ */
752
+ readonly executeRuleWithDryRunRequestDto: ExecuteRuleWithDryRunRequestDto
753
+
754
+ /**
755
+ * Bearer Token: provided by the login endpoint under the name accessToken.
756
+ * @type {string}
757
+ * @memberof ValidationRulesApiExecuteRuleWithDryRun
758
+ */
759
+ readonly authorization?: string
760
+ }
761
+
762
+ /**
763
+ * Request parameters for executeRulesByType operation in ValidationRulesApi.
764
+ * @export
765
+ * @interface ValidationRulesApiExecuteRulesByTypeRequest
766
+ */
767
+ export interface ValidationRulesApiExecuteRulesByTypeRequest {
768
+ /**
769
+ *
770
+ * @type {ExecuteRulesByTypeRequestDto}
771
+ * @memberof ValidationRulesApiExecuteRulesByType
772
+ */
773
+ readonly executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto
774
+
775
+ /**
776
+ * Bearer Token: provided by the login endpoint under the name accessToken.
777
+ * @type {string}
778
+ * @memberof ValidationRulesApiExecuteRulesByType
779
+ */
780
+ readonly authorization?: string
781
+ }
782
+
423
783
  /**
424
784
  * Request parameters for getValidationRule operation in ValidationRulesApi.
425
785
  * @export
@@ -469,7 +829,7 @@ export interface ValidationRulesApiListValidationRulesRequest {
469
829
  readonly pageToken?: string
470
830
 
471
831
  /**
472
- * 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, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
832
+ * 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, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
473
833
  * @type {string}
474
834
  * @memberof ValidationRulesApiListValidationRules
475
835
  */
@@ -483,7 +843,7 @@ export interface ValidationRulesApiListValidationRulesRequest {
483
843
  readonly search?: string
484
844
 
485
845
  /**
486
- * 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: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt&lt;/i&gt;
846
+ * 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: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt&lt;/i&gt;
487
847
  * @type {string}
488
848
  * @memberof ValidationRulesApiListValidationRules
489
849
  */
@@ -497,13 +857,41 @@ export interface ValidationRulesApiListValidationRulesRequest {
497
857
  readonly expand?: string
498
858
 
499
859
  /**
500
- * 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, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
860
+ * 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, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
501
861
  * @type {string}
502
862
  * @memberof ValidationRulesApiListValidationRules
503
863
  */
504
864
  readonly filters?: string
505
865
  }
506
866
 
867
+ /**
868
+ * Request parameters for updateValidationRule operation in ValidationRulesApi.
869
+ * @export
870
+ * @interface ValidationRulesApiUpdateValidationRuleRequest
871
+ */
872
+ export interface ValidationRulesApiUpdateValidationRuleRequest {
873
+ /**
874
+ *
875
+ * @type {string}
876
+ * @memberof ValidationRulesApiUpdateValidationRule
877
+ */
878
+ readonly code: string
879
+
880
+ /**
881
+ *
882
+ * @type {UpdateValidationRuleRequestDto}
883
+ * @memberof ValidationRulesApiUpdateValidationRule
884
+ */
885
+ readonly updateValidationRuleRequestDto: UpdateValidationRuleRequestDto
886
+
887
+ /**
888
+ * Bearer Token: provided by the login endpoint under the name accessToken.
889
+ * @type {string}
890
+ * @memberof ValidationRulesApiUpdateValidationRule
891
+ */
892
+ readonly authorization?: string
893
+ }
894
+
507
895
  /**
508
896
  * ValidationRulesApi - object-oriented interface
509
897
  * @export
@@ -535,6 +923,42 @@ export class ValidationRulesApi extends BaseAPI {
535
923
  return ValidationRulesApiFp(this.configuration).deleteValidationRule(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
536
924
  }
537
925
 
926
+ /**
927
+ * Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
928
+ * @summary Create the execute rule
929
+ * @param {ValidationRulesApiExecuteRuleRequest} requestParameters Request parameters.
930
+ * @param {*} [options] Override http request option.
931
+ * @throws {RequiredError}
932
+ * @memberof ValidationRulesApi
933
+ */
934
+ public executeRule(requestParameters: ValidationRulesApiExecuteRuleRequest, options?: AxiosRequestConfig) {
935
+ return ValidationRulesApiFp(this.configuration).executeRule(requestParameters.executeRuleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
936
+ }
937
+
938
+ /**
939
+ * Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
940
+ * @summary Create the test rule
941
+ * @param {ValidationRulesApiExecuteRuleWithDryRunRequest} requestParameters Request parameters.
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ * @memberof ValidationRulesApi
945
+ */
946
+ public executeRuleWithDryRun(requestParameters: ValidationRulesApiExecuteRuleWithDryRunRequest, options?: AxiosRequestConfig) {
947
+ return ValidationRulesApiFp(this.configuration).executeRuleWithDryRun(requestParameters.executeRuleWithDryRunRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
948
+ }
949
+
950
+ /**
951
+ * Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
952
+ * @summary Create the execute rules by type
953
+ * @param {ValidationRulesApiExecuteRulesByTypeRequest} requestParameters Request parameters.
954
+ * @param {*} [options] Override http request option.
955
+ * @throws {RequiredError}
956
+ * @memberof ValidationRulesApi
957
+ */
958
+ public executeRulesByType(requestParameters: ValidationRulesApiExecuteRulesByTypeRequest, options?: AxiosRequestConfig) {
959
+ return ValidationRulesApiFp(this.configuration).executeRulesByType(requestParameters.executeRulesByTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
960
+ }
961
+
538
962
  /**
539
963
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
540
964
  * @summary Retrieve the validation rule
@@ -558,4 +982,15 @@ export class ValidationRulesApi extends BaseAPI {
558
982
  public listValidationRules(requestParameters: ValidationRulesApiListValidationRulesRequest = {}, options?: AxiosRequestConfig) {
559
983
  return ValidationRulesApiFp(this.configuration).listValidationRules(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
560
984
  }
985
+
986
+ /**
987
+ * undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
988
+ * @param {ValidationRulesApiUpdateValidationRuleRequest} requestParameters Request parameters.
989
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ * @memberof ValidationRulesApi
992
+ */
993
+ public updateValidationRule(requestParameters: ValidationRulesApiUpdateValidationRuleRequest, options?: AxiosRequestConfig) {
994
+ return ValidationRulesApiFp(this.configuration).updateValidationRule(requestParameters.code, requestParameters.updateValidationRuleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
995
+ }
561
996
  }