@emilgroup/validation-rules-sdk-node 1.2.1-beta.2 → 1.2.1-beta.3
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 +3 -0
- package/README.md +2 -2
- package/api/validation-rules-api.ts +90 -0
- package/dist/api/validation-rules-api.d.ts +47 -0
- package/dist/api/validation-rules-api.js +87 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/task-rule-context-entity-class.d.ts +37 -0
- package/dist/models/task-rule-context-entity-class.js +15 -0
- package/dist/models/task-rule-context-field-class.d.ts +46 -0
- package/dist/models/task-rule-context-field-class.js +25 -0
- package/dist/models/task-rule-context-schema-response-class.d.ts +25 -0
- package/dist/models/task-rule-context-schema-response-class.js +15 -0
- package/models/index.ts +3 -0
- package/models/task-rule-context-entity-class.ts +43 -0
- package/models/task-rule-context-field-class.ts +55 -0
- package/models/task-rule-context-schema-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -31,6 +31,9 @@ models/investigation-block-class.ts
|
|
|
31
31
|
models/list-investigation-blocks-response-class.ts
|
|
32
32
|
models/list-validation-rules-response-class.ts
|
|
33
33
|
models/resolve-investigation-block-response-class.ts
|
|
34
|
+
models/task-rule-context-entity-class.ts
|
|
35
|
+
models/task-rule-context-field-class.ts
|
|
36
|
+
models/task-rule-context-schema-response-class.ts
|
|
34
37
|
models/update-investigation-block-request-dto.ts
|
|
35
38
|
models/update-investigation-block-response-class.ts
|
|
36
39
|
models/update-validation-rule-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/validation-rules-sdk-node@1.2.1-beta.
|
|
20
|
+
npm install @emilgroup/validation-rules-sdk-node@1.2.1-beta.3 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/validation-rules-sdk-node@1.2.1-beta.
|
|
24
|
+
yarn add @emilgroup/validation-rules-sdk-node@1.2.1-beta.3
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -39,6 +39,8 @@ import { GetValidationRuleResponseClass } from '../models';
|
|
|
39
39
|
// @ts-ignore
|
|
40
40
|
import { ListValidationRulesResponseClass } from '../models';
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import { TaskRuleContextSchemaResponseClass } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
42
44
|
import { UpdateValidationRuleRequestDto } from '../models';
|
|
43
45
|
// @ts-ignore
|
|
44
46
|
import { UpdateValidationRuleResponseClass } from '../models';
|
|
@@ -285,6 +287,47 @@ export const ValidationRulesApiAxiosParamCreator = function (configuration?: Con
|
|
|
285
287
|
options: localVarRequestOptions,
|
|
286
288
|
};
|
|
287
289
|
},
|
|
290
|
+
/**
|
|
291
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
292
|
+
* @summary Retrieve the task rule context schema
|
|
293
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
getTaskRuleContextSchema: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
298
|
+
const localVarPath = `/validation-rules-service/v1/validation-rules/task-rule-context-schema`;
|
|
299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
300
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
301
|
+
let baseOptions;
|
|
302
|
+
let baseAccessToken;
|
|
303
|
+
if (configuration) {
|
|
304
|
+
baseOptions = configuration.baseOptions;
|
|
305
|
+
baseAccessToken = configuration.accessToken;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
309
|
+
const localVarHeaderParameter = {} as any;
|
|
310
|
+
const localVarQueryParameter = {} as any;
|
|
311
|
+
|
|
312
|
+
// authentication bearer required
|
|
313
|
+
// http bearer authentication required
|
|
314
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
315
|
+
|
|
316
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
317
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
325
|
+
|
|
326
|
+
return {
|
|
327
|
+
url: toPathString(localVarUrlObj),
|
|
328
|
+
options: localVarRequestOptions,
|
|
329
|
+
};
|
|
330
|
+
},
|
|
288
331
|
/**
|
|
289
332
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
290
333
|
* @summary Retrieve the validation rule
|
|
@@ -526,6 +569,17 @@ export const ValidationRulesApiFp = function(configuration?: Configuration) {
|
|
|
526
569
|
const localVarAxiosArgs = await localVarAxiosParamCreator.executeRulesByType(executeRulesByTypeRequestDto, authorization, options);
|
|
527
570
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
528
571
|
},
|
|
572
|
+
/**
|
|
573
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
574
|
+
* @summary Retrieve the task rule context schema
|
|
575
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
async getTaskRuleContextSchema(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskRuleContextSchemaResponseClass>> {
|
|
580
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskRuleContextSchema(authorization, options);
|
|
581
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
582
|
+
},
|
|
529
583
|
/**
|
|
530
584
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
531
585
|
* @summary Retrieve the validation rule
|
|
@@ -633,6 +687,16 @@ export const ValidationRulesApiFactory = function (configuration?: Configuration
|
|
|
633
687
|
executeRulesByType(executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleResponseClass> {
|
|
634
688
|
return localVarFp.executeRulesByType(executeRulesByTypeRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
635
689
|
},
|
|
690
|
+
/**
|
|
691
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
692
|
+
* @summary Retrieve the task rule context schema
|
|
693
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
getTaskRuleContextSchema(authorization?: string, options?: any): AxiosPromise<TaskRuleContextSchemaResponseClass> {
|
|
698
|
+
return localVarFp.getTaskRuleContextSchema(authorization, options).then((request) => request(axios, basePath));
|
|
699
|
+
},
|
|
636
700
|
/**
|
|
637
701
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
638
702
|
* @summary Retrieve the validation rule
|
|
@@ -780,6 +844,20 @@ export interface ValidationRulesApiExecuteRulesByTypeRequest {
|
|
|
780
844
|
readonly authorization?: string
|
|
781
845
|
}
|
|
782
846
|
|
|
847
|
+
/**
|
|
848
|
+
* Request parameters for getTaskRuleContextSchema operation in ValidationRulesApi.
|
|
849
|
+
* @export
|
|
850
|
+
* @interface ValidationRulesApiGetTaskRuleContextSchemaRequest
|
|
851
|
+
*/
|
|
852
|
+
export interface ValidationRulesApiGetTaskRuleContextSchemaRequest {
|
|
853
|
+
/**
|
|
854
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
855
|
+
* @type {string}
|
|
856
|
+
* @memberof ValidationRulesApiGetTaskRuleContextSchema
|
|
857
|
+
*/
|
|
858
|
+
readonly authorization?: string
|
|
859
|
+
}
|
|
860
|
+
|
|
783
861
|
/**
|
|
784
862
|
* Request parameters for getValidationRule operation in ValidationRulesApi.
|
|
785
863
|
* @export
|
|
@@ -959,6 +1037,18 @@ export class ValidationRulesApi extends BaseAPI {
|
|
|
959
1037
|
return ValidationRulesApiFp(this.configuration).executeRulesByType(requestParameters.executeRulesByTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
960
1038
|
}
|
|
961
1039
|
|
|
1040
|
+
/**
|
|
1041
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
1042
|
+
* @summary Retrieve the task rule context schema
|
|
1043
|
+
* @param {ValidationRulesApiGetTaskRuleContextSchemaRequest} requestParameters Request parameters.
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
* @memberof ValidationRulesApi
|
|
1047
|
+
*/
|
|
1048
|
+
public getTaskRuleContextSchema(requestParameters: ValidationRulesApiGetTaskRuleContextSchemaRequest = {}, options?: AxiosRequestConfig) {
|
|
1049
|
+
return ValidationRulesApiFp(this.configuration).getTaskRuleContextSchema(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1050
|
+
}
|
|
1051
|
+
|
|
962
1052
|
/**
|
|
963
1053
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
964
1054
|
* @summary Retrieve the validation rule
|
|
@@ -21,6 +21,7 @@ import { ExecuteRuleWithDryRunResponseClass } from '../models';
|
|
|
21
21
|
import { ExecuteRulesByTypeRequestDto } from '../models';
|
|
22
22
|
import { GetValidationRuleResponseClass } from '../models';
|
|
23
23
|
import { ListValidationRulesResponseClass } from '../models';
|
|
24
|
+
import { TaskRuleContextSchemaResponseClass } from '../models';
|
|
24
25
|
import { UpdateValidationRuleRequestDto } from '../models';
|
|
25
26
|
import { UpdateValidationRuleResponseClass } from '../models';
|
|
26
27
|
/**
|
|
@@ -73,6 +74,14 @@ export declare const ValidationRulesApiAxiosParamCreator: (configuration?: Confi
|
|
|
73
74
|
* @throws {RequiredError}
|
|
74
75
|
*/
|
|
75
76
|
executeRulesByType: (executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
79
|
+
* @summary Retrieve the task rule context schema
|
|
80
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
getTaskRuleContextSchema: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
76
85
|
/**
|
|
77
86
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
78
87
|
* @summary Retrieve the validation rule
|
|
@@ -157,6 +166,14 @@ export declare const ValidationRulesApiFp: (configuration?: Configuration) => {
|
|
|
157
166
|
* @throws {RequiredError}
|
|
158
167
|
*/
|
|
159
168
|
executeRulesByType(executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteRuleResponseClass>>;
|
|
169
|
+
/**
|
|
170
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
171
|
+
* @summary Retrieve the task rule context schema
|
|
172
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
getTaskRuleContextSchema(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskRuleContextSchemaResponseClass>>;
|
|
160
177
|
/**
|
|
161
178
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
162
179
|
* @summary Retrieve the validation rule
|
|
@@ -241,6 +258,14 @@ export declare const ValidationRulesApiFactory: (configuration?: Configuration,
|
|
|
241
258
|
* @throws {RequiredError}
|
|
242
259
|
*/
|
|
243
260
|
executeRulesByType(executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleResponseClass>;
|
|
261
|
+
/**
|
|
262
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
263
|
+
* @summary Retrieve the task rule context schema
|
|
264
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
getTaskRuleContextSchema(authorization?: string, options?: any): AxiosPromise<TaskRuleContextSchemaResponseClass>;
|
|
244
269
|
/**
|
|
245
270
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
246
271
|
* @summary Retrieve the validation rule
|
|
@@ -370,6 +395,19 @@ export interface ValidationRulesApiExecuteRulesByTypeRequest {
|
|
|
370
395
|
*/
|
|
371
396
|
readonly authorization?: string;
|
|
372
397
|
}
|
|
398
|
+
/**
|
|
399
|
+
* Request parameters for getTaskRuleContextSchema operation in ValidationRulesApi.
|
|
400
|
+
* @export
|
|
401
|
+
* @interface ValidationRulesApiGetTaskRuleContextSchemaRequest
|
|
402
|
+
*/
|
|
403
|
+
export interface ValidationRulesApiGetTaskRuleContextSchemaRequest {
|
|
404
|
+
/**
|
|
405
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
406
|
+
* @type {string}
|
|
407
|
+
* @memberof ValidationRulesApiGetTaskRuleContextSchema
|
|
408
|
+
*/
|
|
409
|
+
readonly authorization?: string;
|
|
410
|
+
}
|
|
373
411
|
/**
|
|
374
412
|
* Request parameters for getValidationRule operation in ValidationRulesApi.
|
|
375
413
|
* @export
|
|
@@ -521,6 +559,15 @@ export declare class ValidationRulesApi extends BaseAPI {
|
|
|
521
559
|
* @memberof ValidationRulesApi
|
|
522
560
|
*/
|
|
523
561
|
executeRulesByType(requestParameters: ValidationRulesApiExecuteRulesByTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteRuleResponseClass, any, {}>>;
|
|
562
|
+
/**
|
|
563
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
564
|
+
* @summary Retrieve the task rule context schema
|
|
565
|
+
* @param {ValidationRulesApiGetTaskRuleContextSchemaRequest} requestParameters Request parameters.
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
* @memberof ValidationRulesApi
|
|
569
|
+
*/
|
|
570
|
+
getTaskRuleContextSchema(requestParameters?: ValidationRulesApiGetTaskRuleContextSchemaRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskRuleContextSchemaResponseClass, any, {}>>;
|
|
524
571
|
/**
|
|
525
572
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
526
573
|
* @summary Retrieve the validation rule
|
|
@@ -340,6 +340,50 @@ var ValidationRulesApiAxiosParamCreator = function (configuration) {
|
|
|
340
340
|
});
|
|
341
341
|
});
|
|
342
342
|
},
|
|
343
|
+
/**
|
|
344
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
345
|
+
* @summary Retrieve the task rule context schema
|
|
346
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
*/
|
|
350
|
+
getTaskRuleContextSchema: function (authorization, options) {
|
|
351
|
+
if (options === void 0) { options = {}; }
|
|
352
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
353
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
354
|
+
return __generator(this, function (_a) {
|
|
355
|
+
switch (_a.label) {
|
|
356
|
+
case 0:
|
|
357
|
+
localVarPath = "/validation-rules-service/v1/validation-rules/task-rule-context-schema";
|
|
358
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
359
|
+
if (configuration) {
|
|
360
|
+
baseOptions = configuration.baseOptions;
|
|
361
|
+
baseAccessToken = configuration.accessToken;
|
|
362
|
+
}
|
|
363
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
364
|
+
localVarHeaderParameter = {};
|
|
365
|
+
localVarQueryParameter = {};
|
|
366
|
+
// authentication bearer required
|
|
367
|
+
// http bearer authentication required
|
|
368
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
369
|
+
case 1:
|
|
370
|
+
// authentication bearer required
|
|
371
|
+
// http bearer authentication required
|
|
372
|
+
_a.sent();
|
|
373
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
374
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
375
|
+
}
|
|
376
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
377
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
379
|
+
return [2 /*return*/, {
|
|
380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
381
|
+
options: localVarRequestOptions,
|
|
382
|
+
}];
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
},
|
|
343
387
|
/**
|
|
344
388
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
345
389
|
* @summary Retrieve the validation rule
|
|
@@ -627,6 +671,26 @@ var ValidationRulesApiFp = function (configuration) {
|
|
|
627
671
|
});
|
|
628
672
|
});
|
|
629
673
|
},
|
|
674
|
+
/**
|
|
675
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
676
|
+
* @summary Retrieve the task rule context schema
|
|
677
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
678
|
+
* @param {*} [options] Override http request option.
|
|
679
|
+
* @throws {RequiredError}
|
|
680
|
+
*/
|
|
681
|
+
getTaskRuleContextSchema: function (authorization, options) {
|
|
682
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
683
|
+
var localVarAxiosArgs;
|
|
684
|
+
return __generator(this, function (_a) {
|
|
685
|
+
switch (_a.label) {
|
|
686
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTaskRuleContextSchema(authorization, options)];
|
|
687
|
+
case 1:
|
|
688
|
+
localVarAxiosArgs = _a.sent();
|
|
689
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
});
|
|
693
|
+
},
|
|
630
694
|
/**
|
|
631
695
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
632
696
|
* @summary Retrieve the validation rule
|
|
@@ -761,6 +825,16 @@ var ValidationRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
761
825
|
executeRulesByType: function (executeRulesByTypeRequestDto, authorization, options) {
|
|
762
826
|
return localVarFp.executeRulesByType(executeRulesByTypeRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
763
827
|
},
|
|
828
|
+
/**
|
|
829
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
830
|
+
* @summary Retrieve the task rule context schema
|
|
831
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
getTaskRuleContextSchema: function (authorization, options) {
|
|
836
|
+
return localVarFp.getTaskRuleContextSchema(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
837
|
+
},
|
|
764
838
|
/**
|
|
765
839
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
766
840
|
* @summary Retrieve the validation rule
|
|
@@ -874,6 +948,19 @@ var ValidationRulesApi = /** @class */ (function (_super) {
|
|
|
874
948
|
var _this = this;
|
|
875
949
|
return (0, exports.ValidationRulesApiFp)(this.configuration).executeRulesByType(requestParameters.executeRulesByTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
876
950
|
};
|
|
951
|
+
/**
|
|
952
|
+
* Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
|
|
953
|
+
* @summary Retrieve the task rule context schema
|
|
954
|
+
* @param {ValidationRulesApiGetTaskRuleContextSchemaRequest} requestParameters Request parameters.
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
* @memberof ValidationRulesApi
|
|
958
|
+
*/
|
|
959
|
+
ValidationRulesApi.prototype.getTaskRuleContextSchema = function (requestParameters, options) {
|
|
960
|
+
var _this = this;
|
|
961
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
962
|
+
return (0, exports.ValidationRulesApiFp)(this.configuration).getTaskRuleContextSchema(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
963
|
+
};
|
|
877
964
|
/**
|
|
878
965
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
879
966
|
* @summary Retrieve the validation rule
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ export * from './investigation-block-class';
|
|
|
17
17
|
export * from './list-investigation-blocks-response-class';
|
|
18
18
|
export * from './list-validation-rules-response-class';
|
|
19
19
|
export * from './resolve-investigation-block-response-class';
|
|
20
|
+
export * from './task-rule-context-entity-class';
|
|
21
|
+
export * from './task-rule-context-field-class';
|
|
22
|
+
export * from './task-rule-context-schema-response-class';
|
|
20
23
|
export * from './update-investigation-block-request-dto';
|
|
21
24
|
export * from './update-investigation-block-response-class';
|
|
22
25
|
export * from './update-validation-rule-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,9 @@ __exportStar(require("./investigation-block-class"), exports);
|
|
|
33
33
|
__exportStar(require("./list-investigation-blocks-response-class"), exports);
|
|
34
34
|
__exportStar(require("./list-validation-rules-response-class"), exports);
|
|
35
35
|
__exportStar(require("./resolve-investigation-block-response-class"), exports);
|
|
36
|
+
__exportStar(require("./task-rule-context-entity-class"), exports);
|
|
37
|
+
__exportStar(require("./task-rule-context-field-class"), exports);
|
|
38
|
+
__exportStar(require("./task-rule-context-schema-response-class"), exports);
|
|
36
39
|
__exportStar(require("./update-investigation-block-request-dto"), exports);
|
|
37
40
|
__exportStar(require("./update-investigation-block-response-class"), exports);
|
|
38
41
|
__exportStar(require("./update-validation-rule-request-dto"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { TaskRuleContextFieldClass } from './task-rule-context-field-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TaskRuleContextEntityClass
|
|
17
|
+
*/
|
|
18
|
+
export interface TaskRuleContextEntityClass {
|
|
19
|
+
/**
|
|
20
|
+
* Root key in the FEEL context
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TaskRuleContextEntityClass
|
|
23
|
+
*/
|
|
24
|
+
'key': string;
|
|
25
|
+
/**
|
|
26
|
+
* Human-readable label
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TaskRuleContextEntityClass
|
|
29
|
+
*/
|
|
30
|
+
'label': string;
|
|
31
|
+
/**
|
|
32
|
+
* Fields available on this entity
|
|
33
|
+
* @type {Array<TaskRuleContextFieldClass>}
|
|
34
|
+
* @memberof TaskRuleContextEntityClass
|
|
35
|
+
*/
|
|
36
|
+
'fields': Array<TaskRuleContextFieldClass>;
|
|
37
|
+
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,46 @@
|
|
|
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 TaskRuleContextFieldClass
|
|
16
|
+
*/
|
|
17
|
+
export interface TaskRuleContextFieldClass {
|
|
18
|
+
/**
|
|
19
|
+
* Full FEEL path of the field
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TaskRuleContextFieldClass
|
|
22
|
+
*/
|
|
23
|
+
'path': string;
|
|
24
|
+
/**
|
|
25
|
+
* Field name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TaskRuleContextFieldClass
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
* Field type
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TaskRuleContextFieldClass
|
|
34
|
+
*/
|
|
35
|
+
'type': TaskRuleContextFieldClassTypeEnum;
|
|
36
|
+
}
|
|
37
|
+
export declare const TaskRuleContextFieldClassTypeEnum: {
|
|
38
|
+
readonly Unspecified: "TASK_RULE_FIELD_TYPE_UNSPECIFIED";
|
|
39
|
+
readonly String: "TASK_RULE_FIELD_TYPE_STRING";
|
|
40
|
+
readonly Number: "TASK_RULE_FIELD_TYPE_NUMBER";
|
|
41
|
+
readonly Boolean: "TASK_RULE_FIELD_TYPE_BOOLEAN";
|
|
42
|
+
readonly Date: "TASK_RULE_FIELD_TYPE_DATE";
|
|
43
|
+
readonly StringList: "TASK_RULE_FIELD_TYPE_STRING_LIST";
|
|
44
|
+
readonly NumberList: "TASK_RULE_FIELD_TYPE_NUMBER_LIST";
|
|
45
|
+
};
|
|
46
|
+
export type TaskRuleContextFieldClassTypeEnum = typeof TaskRuleContextFieldClassTypeEnum[keyof typeof TaskRuleContextFieldClassTypeEnum];
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
exports.TaskRuleContextFieldClassTypeEnum = void 0;
|
|
17
|
+
exports.TaskRuleContextFieldClassTypeEnum = {
|
|
18
|
+
Unspecified: 'TASK_RULE_FIELD_TYPE_UNSPECIFIED',
|
|
19
|
+
String: 'TASK_RULE_FIELD_TYPE_STRING',
|
|
20
|
+
Number: 'TASK_RULE_FIELD_TYPE_NUMBER',
|
|
21
|
+
Boolean: 'TASK_RULE_FIELD_TYPE_BOOLEAN',
|
|
22
|
+
Date: 'TASK_RULE_FIELD_TYPE_DATE',
|
|
23
|
+
StringList: 'TASK_RULE_FIELD_TYPE_STRING_LIST',
|
|
24
|
+
NumberList: 'TASK_RULE_FIELD_TYPE_NUMBER_LIST'
|
|
25
|
+
};
|
|
@@ -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 { TaskRuleContextEntityClass } from './task-rule-context-entity-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TaskRuleContextSchemaResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface TaskRuleContextSchemaResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Entities and fields a Task-rule FEEL expression can reference, for the filter expression editor
|
|
21
|
+
* @type {Array<TaskRuleContextEntityClass>}
|
|
22
|
+
* @memberof TaskRuleContextSchemaResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'entities': Array<TaskRuleContextEntityClass>;
|
|
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 });
|
package/models/index.ts
CHANGED
|
@@ -17,6 +17,9 @@ export * from './investigation-block-class';
|
|
|
17
17
|
export * from './list-investigation-blocks-response-class';
|
|
18
18
|
export * from './list-validation-rules-response-class';
|
|
19
19
|
export * from './resolve-investigation-block-response-class';
|
|
20
|
+
export * from './task-rule-context-entity-class';
|
|
21
|
+
export * from './task-rule-context-field-class';
|
|
22
|
+
export * from './task-rule-context-schema-response-class';
|
|
20
23
|
export * from './update-investigation-block-request-dto';
|
|
21
24
|
export * from './update-investigation-block-response-class';
|
|
22
25
|
export * from './update-validation-rule-request-dto';
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { TaskRuleContextFieldClass } from './task-rule-context-field-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface TaskRuleContextEntityClass
|
|
22
|
+
*/
|
|
23
|
+
export interface TaskRuleContextEntityClass {
|
|
24
|
+
/**
|
|
25
|
+
* Root key in the FEEL context
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TaskRuleContextEntityClass
|
|
28
|
+
*/
|
|
29
|
+
'key': string;
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable label
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TaskRuleContextEntityClass
|
|
34
|
+
*/
|
|
35
|
+
'label': string;
|
|
36
|
+
/**
|
|
37
|
+
* Fields available on this entity
|
|
38
|
+
* @type {Array<TaskRuleContextFieldClass>}
|
|
39
|
+
* @memberof TaskRuleContextEntityClass
|
|
40
|
+
*/
|
|
41
|
+
'fields': Array<TaskRuleContextFieldClass>;
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface TaskRuleContextFieldClass
|
|
21
|
+
*/
|
|
22
|
+
export interface TaskRuleContextFieldClass {
|
|
23
|
+
/**
|
|
24
|
+
* Full FEEL path of the field
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof TaskRuleContextFieldClass
|
|
27
|
+
*/
|
|
28
|
+
'path': string;
|
|
29
|
+
/**
|
|
30
|
+
* Field name
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof TaskRuleContextFieldClass
|
|
33
|
+
*/
|
|
34
|
+
'name': string;
|
|
35
|
+
/**
|
|
36
|
+
* Field type
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof TaskRuleContextFieldClass
|
|
39
|
+
*/
|
|
40
|
+
'type': TaskRuleContextFieldClassTypeEnum;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const TaskRuleContextFieldClassTypeEnum = {
|
|
44
|
+
Unspecified: 'TASK_RULE_FIELD_TYPE_UNSPECIFIED',
|
|
45
|
+
String: 'TASK_RULE_FIELD_TYPE_STRING',
|
|
46
|
+
Number: 'TASK_RULE_FIELD_TYPE_NUMBER',
|
|
47
|
+
Boolean: 'TASK_RULE_FIELD_TYPE_BOOLEAN',
|
|
48
|
+
Date: 'TASK_RULE_FIELD_TYPE_DATE',
|
|
49
|
+
StringList: 'TASK_RULE_FIELD_TYPE_STRING_LIST',
|
|
50
|
+
NumberList: 'TASK_RULE_FIELD_TYPE_NUMBER_LIST'
|
|
51
|
+
} as const;
|
|
52
|
+
|
|
53
|
+
export type TaskRuleContextFieldClassTypeEnum = typeof TaskRuleContextFieldClassTypeEnum[keyof typeof TaskRuleContextFieldClassTypeEnum];
|
|
54
|
+
|
|
55
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { TaskRuleContextEntityClass } from './task-rule-context-entity-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface TaskRuleContextSchemaResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface TaskRuleContextSchemaResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Entities and fields a Task-rule FEEL expression can reference, for the filter expression editor
|
|
26
|
+
* @type {Array<TaskRuleContextEntityClass>}
|
|
27
|
+
* @memberof TaskRuleContextSchemaResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'entities': Array<TaskRuleContextEntityClass>;
|
|
30
|
+
}
|
|
31
|
+
|
package/package.json
CHANGED