@emilgroup/validation-rules-sdk 1.0.1-beta.0 → 1.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -0
- package/README.md +2 -2
- package/api/investigation-blocks-api.ts +226 -20
- package/api/validation-rules-api.ts +447 -12
- package/dist/api/investigation-blocks-api.d.ts +132 -20
- package/dist/api/investigation-blocks-api.js +204 -20
- package/dist/api/validation-rules-api.d.ts +244 -12
- package/dist/api/validation-rules-api.js +383 -9
- package/dist/models/cancel-investigation-block-response-class.d.ts +25 -0
- package/dist/models/cancel-investigation-block-response-class.js +15 -0
- package/dist/models/create-validation-rule-request-dto.d.ts +17 -12
- package/dist/models/create-validation-rule-request-dto.js +5 -1
- package/dist/models/execute-rule-request-dto.d.ts +41 -0
- package/dist/models/execute-rule-request-dto.js +20 -0
- package/dist/models/execute-rule-response-class.d.ts +54 -0
- package/dist/models/execute-rule-response-class.js +20 -0
- package/dist/models/execute-rule-result-class.d.ts +53 -0
- package/dist/models/execute-rule-result-class.js +20 -0
- package/dist/models/execute-rule-with-dry-run-request-dto.d.ts +30 -0
- package/dist/models/execute-rule-with-dry-run-request-dto.js +15 -0
- package/dist/models/execute-rule-with-dry-run-response-class.d.ts +36 -0
- package/dist/models/execute-rule-with-dry-run-response-class.js +15 -0
- package/dist/models/execute-rules-by-type-request-dto.d.ts +35 -0
- package/dist/models/execute-rules-by-type-request-dto.js +20 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/models/investigation-block-class.d.ts +25 -2
- package/dist/models/investigation-block-class.js +10 -0
- package/dist/models/resolve-investigation-block-response-class.d.ts +25 -0
- package/dist/models/resolve-investigation-block-response-class.js +15 -0
- package/dist/models/update-investigation-block-request-dto.d.ts +1 -1
- package/dist/models/update-investigation-block-request-dto.js +1 -1
- package/dist/models/update-validation-rule-request-dto.d.ts +88 -0
- package/dist/models/update-validation-rule-request-dto.js +24 -0
- package/dist/models/update-validation-rule-response-class.d.ts +25 -0
- package/dist/models/update-validation-rule-response-class.js +15 -0
- package/dist/models/validation-rule-class.d.ts +16 -5
- package/dist/models/validation-rule-class.js +5 -1
- package/models/cancel-investigation-block-response-class.ts +31 -0
- package/models/create-validation-rule-request-dto.ts +18 -12
- package/models/execute-rule-request-dto.ts +50 -0
- package/models/execute-rule-response-class.ts +63 -0
- package/models/execute-rule-result-class.ts +62 -0
- package/models/execute-rule-with-dry-run-request-dto.ts +36 -0
- package/models/execute-rule-with-dry-run-response-class.ts +42 -0
- package/models/execute-rules-by-type-request-dto.ts +44 -0
- package/models/index.ts +10 -0
- package/models/investigation-block-class.ts +29 -2
- package/models/resolve-investigation-block-response-class.ts +31 -0
- package/models/update-investigation-block-request-dto.ts +1 -1
- package/models/update-validation-rule-request-dto.ts +98 -0
- package/models/update-validation-rule-response-class.ts +31 -0
- package/models/validation-rule-class.ts +17 -5
- package/package.json +1 -1
|
@@ -189,6 +189,153 @@ var ValidationRulesApiAxiosParamCreator = function (configuration) {
|
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
|
+
/**
|
|
193
|
+
* Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
194
|
+
* @summary Create the execute rule
|
|
195
|
+
* @param {ExecuteRuleRequestDto} executeRuleRequestDto
|
|
196
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
executeRule: function (executeRuleRequestDto, authorization, options) {
|
|
201
|
+
if (options === void 0) { options = {}; }
|
|
202
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0:
|
|
207
|
+
// verify required parameter 'executeRuleRequestDto' is not null or undefined
|
|
208
|
+
(0, common_1.assertParamExists)('executeRule', 'executeRuleRequestDto', executeRuleRequestDto);
|
|
209
|
+
localVarPath = "/validation-rules-service/v1/validation-rules/execute";
|
|
210
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
211
|
+
if (configuration) {
|
|
212
|
+
baseOptions = configuration.baseOptions;
|
|
213
|
+
baseAccessToken = configuration.accessToken;
|
|
214
|
+
}
|
|
215
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
216
|
+
localVarHeaderParameter = {};
|
|
217
|
+
localVarQueryParameter = {};
|
|
218
|
+
// authentication bearer required
|
|
219
|
+
// http bearer authentication required
|
|
220
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
221
|
+
case 1:
|
|
222
|
+
// authentication bearer required
|
|
223
|
+
// http bearer authentication required
|
|
224
|
+
_a.sent();
|
|
225
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
226
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
227
|
+
}
|
|
228
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeRuleRequestDto, localVarRequestOptions, configuration);
|
|
233
|
+
return [2 /*return*/, {
|
|
234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
235
|
+
options: localVarRequestOptions,
|
|
236
|
+
}];
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
* Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
243
|
+
* @summary Create the test rule
|
|
244
|
+
* @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
|
|
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
|
+
executeRuleWithDryRun: function (executeRuleWithDryRunRequestDto, authorization, options) {
|
|
250
|
+
if (options === void 0) { options = {}; }
|
|
251
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
252
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
253
|
+
return __generator(this, function (_a) {
|
|
254
|
+
switch (_a.label) {
|
|
255
|
+
case 0:
|
|
256
|
+
// verify required parameter 'executeRuleWithDryRunRequestDto' is not null or undefined
|
|
257
|
+
(0, common_1.assertParamExists)('executeRuleWithDryRun', 'executeRuleWithDryRunRequestDto', executeRuleWithDryRunRequestDto);
|
|
258
|
+
localVarPath = "/validation-rules-service/v1/validation-rules/test";
|
|
259
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
baseAccessToken = configuration.accessToken;
|
|
263
|
+
}
|
|
264
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
265
|
+
localVarHeaderParameter = {};
|
|
266
|
+
localVarQueryParameter = {};
|
|
267
|
+
// authentication bearer required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
270
|
+
case 1:
|
|
271
|
+
// authentication bearer required
|
|
272
|
+
// http bearer authentication required
|
|
273
|
+
_a.sent();
|
|
274
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
275
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
276
|
+
}
|
|
277
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
278
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
281
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeRuleWithDryRunRequestDto, localVarRequestOptions, configuration);
|
|
282
|
+
return [2 /*return*/, {
|
|
283
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
284
|
+
options: localVarRequestOptions,
|
|
285
|
+
}];
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
* Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
292
|
+
* @summary Create the execute rules by type
|
|
293
|
+
* @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
|
|
294
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
*/
|
|
298
|
+
executeRulesByType: function (executeRulesByTypeRequestDto, authorization, options) {
|
|
299
|
+
if (options === void 0) { options = {}; }
|
|
300
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
301
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
302
|
+
return __generator(this, function (_a) {
|
|
303
|
+
switch (_a.label) {
|
|
304
|
+
case 0:
|
|
305
|
+
// verify required parameter 'executeRulesByTypeRequestDto' is not null or undefined
|
|
306
|
+
(0, common_1.assertParamExists)('executeRulesByType', 'executeRulesByTypeRequestDto', executeRulesByTypeRequestDto);
|
|
307
|
+
localVarPath = "/validation-rules-service/v1/validation-rules/execute/by-type";
|
|
308
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
309
|
+
if (configuration) {
|
|
310
|
+
baseOptions = configuration.baseOptions;
|
|
311
|
+
baseAccessToken = configuration.accessToken;
|
|
312
|
+
}
|
|
313
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
314
|
+
localVarHeaderParameter = {};
|
|
315
|
+
localVarQueryParameter = {};
|
|
316
|
+
// authentication bearer required
|
|
317
|
+
// http bearer authentication required
|
|
318
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
319
|
+
case 1:
|
|
320
|
+
// authentication bearer required
|
|
321
|
+
// http bearer authentication required
|
|
322
|
+
_a.sent();
|
|
323
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
324
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
325
|
+
}
|
|
326
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
327
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
328
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
329
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
330
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeRulesByTypeRequestDto, localVarRequestOptions, configuration);
|
|
331
|
+
return [2 /*return*/, {
|
|
332
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
333
|
+
options: localVarRequestOptions,
|
|
334
|
+
}];
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
},
|
|
192
339
|
/**
|
|
193
340
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
194
341
|
* @summary Retrieve the validation rule
|
|
@@ -243,11 +390,11 @@ var ValidationRulesApiAxiosParamCreator = function (configuration) {
|
|
|
243
390
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
391
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
245
392
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
246
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
393
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
247
394
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
248
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug,
|
|
395
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt</i>
|
|
249
396
|
* @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.<br/> <br/>
|
|
250
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
397
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
251
398
|
* @param {*} [options] Override http request option.
|
|
252
399
|
* @throws {RequiredError}
|
|
253
400
|
*/
|
|
@@ -309,6 +456,58 @@ var ValidationRulesApiAxiosParamCreator = function (configuration) {
|
|
|
309
456
|
});
|
|
310
457
|
});
|
|
311
458
|
},
|
|
459
|
+
/**
|
|
460
|
+
* undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
|
|
461
|
+
* @param {string} code
|
|
462
|
+
* @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
|
|
463
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
*/
|
|
467
|
+
updateValidationRule: function (code, updateValidationRuleRequestDto, authorization, options) {
|
|
468
|
+
if (options === void 0) { options = {}; }
|
|
469
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
470
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
471
|
+
return __generator(this, function (_a) {
|
|
472
|
+
switch (_a.label) {
|
|
473
|
+
case 0:
|
|
474
|
+
// verify required parameter 'code' is not null or undefined
|
|
475
|
+
(0, common_1.assertParamExists)('updateValidationRule', 'code', code);
|
|
476
|
+
// verify required parameter 'updateValidationRuleRequestDto' is not null or undefined
|
|
477
|
+
(0, common_1.assertParamExists)('updateValidationRule', 'updateValidationRuleRequestDto', updateValidationRuleRequestDto);
|
|
478
|
+
localVarPath = "/validation-rules-service/v1/validation-rules/{code}"
|
|
479
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
480
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
481
|
+
if (configuration) {
|
|
482
|
+
baseOptions = configuration.baseOptions;
|
|
483
|
+
baseAccessToken = configuration.accessToken;
|
|
484
|
+
}
|
|
485
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
486
|
+
localVarHeaderParameter = {};
|
|
487
|
+
localVarQueryParameter = {};
|
|
488
|
+
// authentication bearer required
|
|
489
|
+
// http bearer authentication required
|
|
490
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
491
|
+
case 1:
|
|
492
|
+
// authentication bearer required
|
|
493
|
+
// http bearer authentication required
|
|
494
|
+
_a.sent();
|
|
495
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
496
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
497
|
+
}
|
|
498
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
499
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
500
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
501
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
502
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateValidationRuleRequestDto, localVarRequestOptions, configuration);
|
|
503
|
+
return [2 /*return*/, {
|
|
504
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
505
|
+
options: localVarRequestOptions,
|
|
506
|
+
}];
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
});
|
|
510
|
+
},
|
|
312
511
|
};
|
|
313
512
|
};
|
|
314
513
|
exports.ValidationRulesApiAxiosParamCreator = ValidationRulesApiAxiosParamCreator;
|
|
@@ -361,6 +560,69 @@ var ValidationRulesApiFp = function (configuration) {
|
|
|
361
560
|
});
|
|
362
561
|
});
|
|
363
562
|
},
|
|
563
|
+
/**
|
|
564
|
+
* Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
565
|
+
* @summary Create the execute rule
|
|
566
|
+
* @param {ExecuteRuleRequestDto} executeRuleRequestDto
|
|
567
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
executeRule: function (executeRuleRequestDto, authorization, options) {
|
|
572
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
573
|
+
var localVarAxiosArgs;
|
|
574
|
+
return __generator(this, function (_a) {
|
|
575
|
+
switch (_a.label) {
|
|
576
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.executeRule(executeRuleRequestDto, authorization, options)];
|
|
577
|
+
case 1:
|
|
578
|
+
localVarAxiosArgs = _a.sent();
|
|
579
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
* Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
586
|
+
* @summary Create the test rule
|
|
587
|
+
* @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
|
|
588
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
589
|
+
* @param {*} [options] Override http request option.
|
|
590
|
+
* @throws {RequiredError}
|
|
591
|
+
*/
|
|
592
|
+
executeRuleWithDryRun: function (executeRuleWithDryRunRequestDto, authorization, options) {
|
|
593
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
594
|
+
var localVarAxiosArgs;
|
|
595
|
+
return __generator(this, function (_a) {
|
|
596
|
+
switch (_a.label) {
|
|
597
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.executeRuleWithDryRun(executeRuleWithDryRunRequestDto, authorization, options)];
|
|
598
|
+
case 1:
|
|
599
|
+
localVarAxiosArgs = _a.sent();
|
|
600
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
});
|
|
604
|
+
},
|
|
605
|
+
/**
|
|
606
|
+
* Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
607
|
+
* @summary Create the execute rules by type
|
|
608
|
+
* @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
|
|
609
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
*/
|
|
613
|
+
executeRulesByType: function (executeRulesByTypeRequestDto, authorization, options) {
|
|
614
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
615
|
+
var localVarAxiosArgs;
|
|
616
|
+
return __generator(this, function (_a) {
|
|
617
|
+
switch (_a.label) {
|
|
618
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.executeRulesByType(executeRulesByTypeRequestDto, authorization, options)];
|
|
619
|
+
case 1:
|
|
620
|
+
localVarAxiosArgs = _a.sent();
|
|
621
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
});
|
|
625
|
+
},
|
|
364
626
|
/**
|
|
365
627
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
366
628
|
* @summary Retrieve the validation rule
|
|
@@ -388,11 +650,11 @@ var ValidationRulesApiFp = function (configuration) {
|
|
|
388
650
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
389
651
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
390
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
391
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
653
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
392
654
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
393
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug,
|
|
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.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt</i>
|
|
394
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.<br/> <br/>
|
|
395
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
657
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
396
658
|
* @param {*} [options] Override http request option.
|
|
397
659
|
* @throws {RequiredError}
|
|
398
660
|
*/
|
|
@@ -409,6 +671,27 @@ var ValidationRulesApiFp = function (configuration) {
|
|
|
409
671
|
});
|
|
410
672
|
});
|
|
411
673
|
},
|
|
674
|
+
/**
|
|
675
|
+
* undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
|
|
676
|
+
* @param {string} code
|
|
677
|
+
* @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
|
|
678
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
679
|
+
* @param {*} [options] Override http request option.
|
|
680
|
+
* @throws {RequiredError}
|
|
681
|
+
*/
|
|
682
|
+
updateValidationRule: function (code, updateValidationRuleRequestDto, authorization, options) {
|
|
683
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
684
|
+
var localVarAxiosArgs;
|
|
685
|
+
return __generator(this, function (_a) {
|
|
686
|
+
switch (_a.label) {
|
|
687
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateValidationRule(code, updateValidationRuleRequestDto, authorization, options)];
|
|
688
|
+
case 1:
|
|
689
|
+
localVarAxiosArgs = _a.sent();
|
|
690
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
});
|
|
694
|
+
},
|
|
412
695
|
};
|
|
413
696
|
};
|
|
414
697
|
exports.ValidationRulesApiFp = ValidationRulesApiFp;
|
|
@@ -441,6 +724,39 @@ var ValidationRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
441
724
|
deleteValidationRule: function (code, authorization, options) {
|
|
442
725
|
return localVarFp.deleteValidationRule(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
443
726
|
},
|
|
727
|
+
/**
|
|
728
|
+
* Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
729
|
+
* @summary Create the execute rule
|
|
730
|
+
* @param {ExecuteRuleRequestDto} executeRuleRequestDto
|
|
731
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
executeRule: function (executeRuleRequestDto, authorization, options) {
|
|
736
|
+
return localVarFp.executeRule(executeRuleRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
737
|
+
},
|
|
738
|
+
/**
|
|
739
|
+
* Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
740
|
+
* @summary Create the test rule
|
|
741
|
+
* @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
|
|
742
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
executeRuleWithDryRun: function (executeRuleWithDryRunRequestDto, authorization, options) {
|
|
747
|
+
return localVarFp.executeRuleWithDryRun(executeRuleWithDryRunRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
748
|
+
},
|
|
749
|
+
/**
|
|
750
|
+
* Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
751
|
+
* @summary Create the execute rules by type
|
|
752
|
+
* @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
|
|
753
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
754
|
+
* @param {*} [options] Override http request option.
|
|
755
|
+
* @throws {RequiredError}
|
|
756
|
+
*/
|
|
757
|
+
executeRulesByType: function (executeRulesByTypeRequestDto, authorization, options) {
|
|
758
|
+
return localVarFp.executeRulesByType(executeRulesByTypeRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
759
|
+
},
|
|
444
760
|
/**
|
|
445
761
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
446
762
|
* @summary Retrieve the validation rule
|
|
@@ -458,17 +774,28 @@ var ValidationRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
458
774
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
459
775
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
460
776
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
461
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
777
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
462
778
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
463
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug,
|
|
779
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt</i>
|
|
464
780
|
* @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.<br/> <br/>
|
|
465
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
781
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
466
782
|
* @param {*} [options] Override http request option.
|
|
467
783
|
* @throws {RequiredError}
|
|
468
784
|
*/
|
|
469
785
|
listValidationRules: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
470
786
|
return localVarFp.listValidationRules(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
471
787
|
},
|
|
788
|
+
/**
|
|
789
|
+
* undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
|
|
790
|
+
* @param {string} code
|
|
791
|
+
* @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
|
|
792
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
updateValidationRule: function (code, updateValidationRuleRequestDto, authorization, options) {
|
|
797
|
+
return localVarFp.updateValidationRule(code, updateValidationRuleRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
798
|
+
},
|
|
472
799
|
};
|
|
473
800
|
};
|
|
474
801
|
exports.ValidationRulesApiFactory = ValidationRulesApiFactory;
|
|
@@ -507,6 +834,42 @@ var ValidationRulesApi = /** @class */ (function (_super) {
|
|
|
507
834
|
var _this = this;
|
|
508
835
|
return (0, exports.ValidationRulesApiFp)(this.configuration).deleteValidationRule(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
509
836
|
};
|
|
837
|
+
/**
|
|
838
|
+
* Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
839
|
+
* @summary Create the execute rule
|
|
840
|
+
* @param {ValidationRulesApiExecuteRuleRequest} requestParameters Request parameters.
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
* @memberof ValidationRulesApi
|
|
844
|
+
*/
|
|
845
|
+
ValidationRulesApi.prototype.executeRule = function (requestParameters, options) {
|
|
846
|
+
var _this = this;
|
|
847
|
+
return (0, exports.ValidationRulesApiFp)(this.configuration).executeRule(requestParameters.executeRuleRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
848
|
+
};
|
|
849
|
+
/**
|
|
850
|
+
* Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
851
|
+
* @summary Create the test rule
|
|
852
|
+
* @param {ValidationRulesApiExecuteRuleWithDryRunRequest} requestParameters Request parameters.
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
* @memberof ValidationRulesApi
|
|
856
|
+
*/
|
|
857
|
+
ValidationRulesApi.prototype.executeRuleWithDryRun = function (requestParameters, options) {
|
|
858
|
+
var _this = this;
|
|
859
|
+
return (0, exports.ValidationRulesApiFp)(this.configuration).executeRuleWithDryRun(requestParameters.executeRuleWithDryRunRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
863
|
+
* @summary Create the execute rules by type
|
|
864
|
+
* @param {ValidationRulesApiExecuteRulesByTypeRequest} requestParameters Request parameters.
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
* @memberof ValidationRulesApi
|
|
868
|
+
*/
|
|
869
|
+
ValidationRulesApi.prototype.executeRulesByType = function (requestParameters, options) {
|
|
870
|
+
var _this = this;
|
|
871
|
+
return (0, exports.ValidationRulesApiFp)(this.configuration).executeRulesByType(requestParameters.executeRulesByTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
872
|
+
};
|
|
510
873
|
/**
|
|
511
874
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
512
875
|
* @summary Retrieve the validation rule
|
|
@@ -532,6 +895,17 @@ var ValidationRulesApi = /** @class */ (function (_super) {
|
|
|
532
895
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
533
896
|
return (0, exports.ValidationRulesApiFp)(this.configuration).listValidationRules(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
534
897
|
};
|
|
898
|
+
/**
|
|
899
|
+
* undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
|
|
900
|
+
* @param {ValidationRulesApiUpdateValidationRuleRequest} requestParameters Request parameters.
|
|
901
|
+
* @param {*} [options] Override http request option.
|
|
902
|
+
* @throws {RequiredError}
|
|
903
|
+
* @memberof ValidationRulesApi
|
|
904
|
+
*/
|
|
905
|
+
ValidationRulesApi.prototype.updateValidationRule = function (requestParameters, options) {
|
|
906
|
+
var _this = this;
|
|
907
|
+
return (0, exports.ValidationRulesApiFp)(this.configuration).updateValidationRule(requestParameters.code, requestParameters.updateValidationRuleRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
908
|
+
};
|
|
535
909
|
return ValidationRulesApi;
|
|
536
910
|
}(base_1.BaseAPI));
|
|
537
911
|
exports.ValidationRulesApi = ValidationRulesApi;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Validation Rules Service
|
|
3
|
+
* The EMIL Validation Rules Service API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { InvestigationBlockClass } from './investigation-block-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CancelInvestigationBlockResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CancelInvestigationBlockResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* investigationBlock
|
|
21
|
+
* @type {InvestigationBlockClass}
|
|
22
|
+
* @memberof CancelInvestigationBlockResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'investigationBlock'?: InvestigationBlockClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Validation Rules Service
|
|
6
|
+
* The EMIL Validation Rules Service API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -16,29 +16,29 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateValidationRuleRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Human-readable unique identifier
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateValidationRuleRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'
|
|
23
|
+
'slug': string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Root entity type this rule applies to
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateValidationRuleRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'entityType': CreateValidationRuleRequestDtoEntityTypeEnum;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Product slug this rule belongs to
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateValidationRuleRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'productSlug': string;
|
|
36
36
|
/**
|
|
37
|
-
* Product version
|
|
38
|
-
* @type {
|
|
37
|
+
* Product version ID
|
|
38
|
+
* @type {number}
|
|
39
39
|
* @memberof CreateValidationRuleRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'
|
|
41
|
+
'productVersionId': number;
|
|
42
42
|
/**
|
|
43
43
|
* Human-readable message shown when rule triggers
|
|
44
44
|
* @type {string}
|
|
@@ -58,11 +58,11 @@ export interface CreateValidationRuleRequestDto {
|
|
|
58
58
|
*/
|
|
59
59
|
'severity': CreateValidationRuleRequestDtoSeverityEnum;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {
|
|
61
|
+
* FEEL expression for rule evaluation
|
|
62
|
+
* @type {string}
|
|
63
63
|
* @memberof CreateValidationRuleRequestDto
|
|
64
64
|
*/
|
|
65
|
-
'expression'
|
|
65
|
+
'expression': string;
|
|
66
66
|
/**
|
|
67
67
|
* Related entities to load for evaluation
|
|
68
68
|
* @type {Array<string>}
|
|
@@ -76,6 +76,11 @@ export interface CreateValidationRuleRequestDto {
|
|
|
76
76
|
*/
|
|
77
77
|
'isEnabled'?: boolean;
|
|
78
78
|
}
|
|
79
|
+
export declare const CreateValidationRuleRequestDtoEntityTypeEnum: {
|
|
80
|
+
readonly Policy: "Policy";
|
|
81
|
+
readonly Claim: "Claim";
|
|
82
|
+
};
|
|
83
|
+
export type CreateValidationRuleRequestDtoEntityTypeEnum = typeof CreateValidationRuleRequestDtoEntityTypeEnum[keyof typeof CreateValidationRuleRequestDtoEntityTypeEnum];
|
|
79
84
|
export declare const CreateValidationRuleRequestDtoSeverityEnum: {
|
|
80
85
|
readonly Warning: "Warning";
|
|
81
86
|
readonly Error: "Error";
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateValidationRuleRequestDtoSeverityEnum = void 0;
|
|
16
|
+
exports.CreateValidationRuleRequestDtoSeverityEnum = exports.CreateValidationRuleRequestDtoEntityTypeEnum = void 0;
|
|
17
|
+
exports.CreateValidationRuleRequestDtoEntityTypeEnum = {
|
|
18
|
+
Policy: 'Policy',
|
|
19
|
+
Claim: 'Claim'
|
|
20
|
+
};
|
|
17
21
|
exports.CreateValidationRuleRequestDtoSeverityEnum = {
|
|
18
22
|
Warning: 'Warning',
|
|
19
23
|
Error: 'Error'
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Validation Rules Service
|
|
3
|
+
* The EMIL Validation Rules Service API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ExecuteRuleRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ExecuteRuleRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Code of the validation rule to execute
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExecuteRuleRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'ruleCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* Entity type to validate
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ExecuteRuleRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'entityType': ExecuteRuleRequestDtoEntityTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Code of the entity to validate
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ExecuteRuleRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'entityCode': string;
|
|
36
|
+
}
|
|
37
|
+
export declare const ExecuteRuleRequestDtoEntityTypeEnum: {
|
|
38
|
+
readonly Policy: "Policy";
|
|
39
|
+
readonly Claim: "Claim";
|
|
40
|
+
};
|
|
41
|
+
export type ExecuteRuleRequestDtoEntityTypeEnum = typeof ExecuteRuleRequestDtoEntityTypeEnum[keyof typeof ExecuteRuleRequestDtoEntityTypeEnum];
|