@emilgroup/validation-rules-sdk 1.2.1-beta.1 → 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.
@@ -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@1.2.1-beta.1 --save
20
+ npm install @emilgroup/validation-rules-sdk@1.2.1-beta.3 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/validation-rules-sdk@1.2.1-beta.1
24
+ yarn add @emilgroup/validation-rules-sdk@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';
@@ -281,6 +283,47 @@ export const ValidationRulesApiAxiosParamCreator = function (configuration?: Con
281
283
  options: localVarRequestOptions,
282
284
  };
283
285
  },
286
+ /**
287
+ * Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
288
+ * @summary Retrieve the task rule context schema
289
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ getTaskRuleContextSchema: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
294
+ const localVarPath = `/validation-rules-service/v1/validation-rules/task-rule-context-schema`;
295
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
296
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
297
+ let baseOptions;
298
+ let baseAccessToken;
299
+ if (configuration) {
300
+ baseOptions = configuration.baseOptions;
301
+ baseAccessToken = configuration.accessToken;
302
+ }
303
+
304
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
305
+ const localVarHeaderParameter = {} as any;
306
+ const localVarQueryParameter = {} as any;
307
+
308
+ // authentication bearer required
309
+ // http bearer authentication required
310
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
311
+
312
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
313
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
314
+ }
315
+
316
+
317
+
318
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
320
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
321
+
322
+ return {
323
+ url: toPathString(localVarUrlObj),
324
+ options: localVarRequestOptions,
325
+ };
326
+ },
284
327
  /**
285
328
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
286
329
  * @summary Retrieve the validation rule
@@ -522,6 +565,17 @@ export const ValidationRulesApiFp = function(configuration?: Configuration) {
522
565
  const localVarAxiosArgs = await localVarAxiosParamCreator.executeRulesByType(executeRulesByTypeRequestDto, authorization, options);
523
566
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
524
567
  },
568
+ /**
569
+ * Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
570
+ * @summary Retrieve the task rule context schema
571
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
572
+ * @param {*} [options] Override http request option.
573
+ * @throws {RequiredError}
574
+ */
575
+ async getTaskRuleContextSchema(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskRuleContextSchemaResponseClass>> {
576
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskRuleContextSchema(authorization, options);
577
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
578
+ },
525
579
  /**
526
580
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
527
581
  * @summary Retrieve the validation rule
@@ -629,6 +683,16 @@ export const ValidationRulesApiFactory = function (configuration?: Configuration
629
683
  executeRulesByType(executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleResponseClass> {
630
684
  return localVarFp.executeRulesByType(executeRulesByTypeRequestDto, authorization, options).then((request) => request(axios, basePath));
631
685
  },
686
+ /**
687
+ * Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
688
+ * @summary Retrieve the task rule context schema
689
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ */
693
+ getTaskRuleContextSchema(authorization?: string, options?: any): AxiosPromise<TaskRuleContextSchemaResponseClass> {
694
+ return localVarFp.getTaskRuleContextSchema(authorization, options).then((request) => request(axios, basePath));
695
+ },
632
696
  /**
633
697
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
634
698
  * @summary Retrieve the validation rule
@@ -776,6 +840,20 @@ export interface ValidationRulesApiExecuteRulesByTypeRequest {
776
840
  readonly authorization?: string
777
841
  }
778
842
 
843
+ /**
844
+ * Request parameters for getTaskRuleContextSchema operation in ValidationRulesApi.
845
+ * @export
846
+ * @interface ValidationRulesApiGetTaskRuleContextSchemaRequest
847
+ */
848
+ export interface ValidationRulesApiGetTaskRuleContextSchemaRequest {
849
+ /**
850
+ * Bearer Token: provided by the login endpoint under the name accessToken.
851
+ * @type {string}
852
+ * @memberof ValidationRulesApiGetTaskRuleContextSchema
853
+ */
854
+ readonly authorization?: string
855
+ }
856
+
779
857
  /**
780
858
  * Request parameters for getValidationRule operation in ValidationRulesApi.
781
859
  * @export
@@ -955,6 +1033,18 @@ export class ValidationRulesApi extends BaseAPI {
955
1033
  return ValidationRulesApiFp(this.configuration).executeRulesByType(requestParameters.executeRulesByTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
956
1034
  }
957
1035
 
1036
+ /**
1037
+ * Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
1038
+ * @summary Retrieve the task rule context schema
1039
+ * @param {ValidationRulesApiGetTaskRuleContextSchemaRequest} requestParameters Request parameters.
1040
+ * @param {*} [options] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ * @memberof ValidationRulesApi
1043
+ */
1044
+ public getTaskRuleContextSchema(requestParameters: ValidationRulesApiGetTaskRuleContextSchemaRequest = {}, options?: AxiosRequestConfig) {
1045
+ return ValidationRulesApiFp(this.configuration).getTaskRuleContextSchema(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1046
+ }
1047
+
958
1048
  /**
959
1049
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
960
1050
  * @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
@@ -336,6 +336,50 @@ var ValidationRulesApiAxiosParamCreator = function (configuration) {
336
336
  });
337
337
  });
338
338
  },
339
+ /**
340
+ * Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
341
+ * @summary Retrieve the task rule context schema
342
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ getTaskRuleContextSchema: function (authorization, options) {
347
+ if (options === void 0) { options = {}; }
348
+ return __awaiter(_this, void 0, void 0, function () {
349
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
350
+ return __generator(this, function (_a) {
351
+ switch (_a.label) {
352
+ case 0:
353
+ localVarPath = "/validation-rules-service/v1/validation-rules/task-rule-context-schema";
354
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
355
+ if (configuration) {
356
+ baseOptions = configuration.baseOptions;
357
+ baseAccessToken = configuration.accessToken;
358
+ }
359
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
360
+ localVarHeaderParameter = {};
361
+ localVarQueryParameter = {};
362
+ // authentication bearer required
363
+ // http bearer authentication required
364
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
365
+ case 1:
366
+ // authentication bearer required
367
+ // http bearer authentication required
368
+ _a.sent();
369
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
370
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
371
+ }
372
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
373
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
375
+ return [2 /*return*/, {
376
+ url: (0, common_1.toPathString)(localVarUrlObj),
377
+ options: localVarRequestOptions,
378
+ }];
379
+ }
380
+ });
381
+ });
382
+ },
339
383
  /**
340
384
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
341
385
  * @summary Retrieve the validation rule
@@ -623,6 +667,26 @@ var ValidationRulesApiFp = function (configuration) {
623
667
  });
624
668
  });
625
669
  },
670
+ /**
671
+ * Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
672
+ * @summary Retrieve the task rule context schema
673
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ getTaskRuleContextSchema: function (authorization, options) {
678
+ return __awaiter(this, void 0, void 0, function () {
679
+ var localVarAxiosArgs;
680
+ return __generator(this, function (_a) {
681
+ switch (_a.label) {
682
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTaskRuleContextSchema(authorization, options)];
683
+ case 1:
684
+ localVarAxiosArgs = _a.sent();
685
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
686
+ }
687
+ });
688
+ });
689
+ },
626
690
  /**
627
691
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
628
692
  * @summary Retrieve the validation rule
@@ -757,6 +821,16 @@ var ValidationRulesApiFactory = function (configuration, basePath, axios) {
757
821
  executeRulesByType: function (executeRulesByTypeRequestDto, authorization, options) {
758
822
  return localVarFp.executeRulesByType(executeRulesByTypeRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
759
823
  },
824
+ /**
825
+ * Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
826
+ * @summary Retrieve the task rule context schema
827
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ */
831
+ getTaskRuleContextSchema: function (authorization, options) {
832
+ return localVarFp.getTaskRuleContextSchema(authorization, options).then(function (request) { return request(axios, basePath); });
833
+ },
760
834
  /**
761
835
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
762
836
  * @summary Retrieve the validation rule
@@ -870,6 +944,19 @@ var ValidationRulesApi = /** @class */ (function (_super) {
870
944
  var _this = this;
871
945
  return (0, exports.ValidationRulesApiFp)(this.configuration).executeRulesByType(requestParameters.executeRulesByTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
872
946
  };
947
+ /**
948
+ * Returns the entities and fields a Task-rule expression can reference, for the filter expression editor **Required Permissions** \"task-management.task-filters.create\"
949
+ * @summary Retrieve the task rule context schema
950
+ * @param {ValidationRulesApiGetTaskRuleContextSchemaRequest} requestParameters Request parameters.
951
+ * @param {*} [options] Override http request option.
952
+ * @throws {RequiredError}
953
+ * @memberof ValidationRulesApi
954
+ */
955
+ ValidationRulesApi.prototype.getTaskRuleContextSchema = function (requestParameters, options) {
956
+ var _this = this;
957
+ if (requestParameters === void 0) { requestParameters = {}; }
958
+ return (0, exports.ValidationRulesApiFp)(this.configuration).getTaskRuleContextSchema(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
959
+ };
873
960
  /**
874
961
  * Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
875
962
  * @summary Retrieve the validation rule
@@ -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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/validation-rules-sdk",
3
- "version": "1.2.1-beta.1",
3
+ "version": "1.2.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/validation-rules-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [