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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/investigation-blocks-api.ts +231 -25
  4. package/api/validation-rules-api.ts +447 -12
  5. package/dist/api/investigation-blocks-api.d.ts +132 -20
  6. package/dist/api/investigation-blocks-api.js +209 -25
  7. package/dist/api/validation-rules-api.d.ts +244 -12
  8. package/dist/api/validation-rules-api.js +383 -9
  9. package/dist/models/cancel-investigation-block-response-class.d.ts +25 -0
  10. package/dist/models/cancel-investigation-block-response-class.js +15 -0
  11. package/dist/models/create-validation-rule-request-dto.d.ts +17 -12
  12. package/dist/models/create-validation-rule-request-dto.js +5 -1
  13. package/dist/models/execute-rule-request-dto.d.ts +41 -0
  14. package/dist/models/execute-rule-request-dto.js +20 -0
  15. package/dist/models/execute-rule-response-class.d.ts +54 -0
  16. package/dist/models/execute-rule-response-class.js +20 -0
  17. package/dist/models/execute-rule-result-class.d.ts +53 -0
  18. package/dist/models/execute-rule-result-class.js +20 -0
  19. package/dist/models/execute-rule-with-dry-run-request-dto.d.ts +30 -0
  20. package/dist/models/execute-rule-with-dry-run-request-dto.js +15 -0
  21. package/dist/models/execute-rule-with-dry-run-response-class.d.ts +36 -0
  22. package/dist/models/execute-rule-with-dry-run-response-class.js +15 -0
  23. package/dist/models/execute-rules-by-type-request-dto.d.ts +35 -0
  24. package/dist/models/execute-rules-by-type-request-dto.js +20 -0
  25. package/dist/models/index.d.ts +10 -0
  26. package/dist/models/index.js +10 -0
  27. package/dist/models/investigation-block-class.d.ts +25 -2
  28. package/dist/models/investigation-block-class.js +10 -0
  29. package/dist/models/resolve-investigation-block-response-class.d.ts +25 -0
  30. package/dist/models/resolve-investigation-block-response-class.js +15 -0
  31. package/dist/models/update-investigation-block-request-dto.d.ts +1 -1
  32. package/dist/models/update-investigation-block-request-dto.js +1 -1
  33. package/dist/models/update-validation-rule-request-dto.d.ts +88 -0
  34. package/dist/models/update-validation-rule-request-dto.js +24 -0
  35. package/dist/models/update-validation-rule-response-class.d.ts +25 -0
  36. package/dist/models/update-validation-rule-response-class.js +15 -0
  37. package/dist/models/validation-rule-class.d.ts +16 -5
  38. package/dist/models/validation-rule-class.js +5 -1
  39. package/models/cancel-investigation-block-response-class.ts +31 -0
  40. package/models/create-validation-rule-request-dto.ts +18 -12
  41. package/models/execute-rule-request-dto.ts +50 -0
  42. package/models/execute-rule-response-class.ts +63 -0
  43. package/models/execute-rule-result-class.ts +62 -0
  44. package/models/execute-rule-with-dry-run-request-dto.ts +36 -0
  45. package/models/execute-rule-with-dry-run-response-class.ts +42 -0
  46. package/models/execute-rules-by-type-request-dto.ts +44 -0
  47. package/models/index.ts +10 -0
  48. package/models/investigation-block-class.ts +29 -2
  49. package/models/resolve-investigation-block-response-class.ts +31 -0
  50. package/models/update-investigation-block-request-dto.ts +1 -1
  51. package/models/update-validation-rule-request-dto.ts +98 -0
  52. package/models/update-validation-rule-response-class.ts +31 -0
  53. package/models/validation-rule-class.ts +17 -5
  54. package/package.json +1 -1
@@ -34,17 +34,23 @@ export interface ValidationRuleClass {
34
34
  */
35
35
  'slug': string;
36
36
  /**
37
- * Entity type this rule applies to
37
+ * Root entity type this rule applies to
38
38
  * @type {string}
39
39
  * @memberof ValidationRuleClass
40
40
  */
41
- 'entityType': string;
41
+ 'entityType': ValidationRuleClassEntityTypeEnum;
42
42
  /**
43
43
  * Product slug this rule belongs to
44
44
  * @type {string}
45
45
  * @memberof ValidationRuleClass
46
46
  */
47
47
  'productSlug': string;
48
+ /**
49
+ * Product version ID
50
+ * @type {number}
51
+ * @memberof ValidationRuleClass
52
+ */
53
+ 'productVersionId': number;
48
54
  /**
49
55
  * Product version code
50
56
  * @type {string}
@@ -70,11 +76,11 @@ export interface ValidationRuleClass {
70
76
  */
71
77
  'severity': ValidationRuleClassSeverityEnum;
72
78
  /**
73
- * JsonLogic expression for rule evaluation
74
- * @type {object}
79
+ * FEEL expression for rule evaluation
80
+ * @type {string}
75
81
  * @memberof ValidationRuleClass
76
82
  */
77
- 'expression'?: object;
83
+ 'expression'?: string;
78
84
  /**
79
85
  * Related entities to load for evaluation
80
86
  * @type {Array<string>}
@@ -112,6 +118,11 @@ export interface ValidationRuleClass {
112
118
  */
113
119
  'updatedBy': string;
114
120
  }
121
+ export declare const ValidationRuleClassEntityTypeEnum: {
122
+ readonly Policy: "Policy";
123
+ readonly Claim: "Claim";
124
+ };
125
+ export type ValidationRuleClassEntityTypeEnum = typeof ValidationRuleClassEntityTypeEnum[keyof typeof ValidationRuleClassEntityTypeEnum];
115
126
  export declare const ValidationRuleClassSeverityEnum: {
116
127
  readonly Warning: "Warning";
117
128
  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.ValidationRuleClassSeverityEnum = void 0;
16
+ exports.ValidationRuleClassSeverityEnum = exports.ValidationRuleClassEntityTypeEnum = void 0;
17
+ exports.ValidationRuleClassEntityTypeEnum = {
18
+ Policy: 'Policy',
19
+ Claim: 'Claim'
20
+ };
17
21
  exports.ValidationRuleClassSeverityEnum = {
18
22
  Warning: 'Warning',
19
23
  Error: 'Error'
@@ -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 { InvestigationBlockClass } from './investigation-block-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CancelInvestigationBlockResponseClass
22
+ */
23
+ export interface CancelInvestigationBlockResponseClass {
24
+ /**
25
+ * investigationBlock
26
+ * @type {InvestigationBlockClass}
27
+ * @memberof CancelInvestigationBlockResponseClass
28
+ */
29
+ 'investigationBlock'?: InvestigationBlockClass;
30
+ }
31
+
@@ -21,29 +21,29 @@
21
21
  */
22
22
  export interface CreateValidationRuleRequestDto {
23
23
  /**
24
- * Unique rule identifier
24
+ * Human-readable unique identifier
25
25
  * @type {string}
26
26
  * @memberof CreateValidationRuleRequestDto
27
27
  */
28
- 'code': string;
28
+ 'slug': string;
29
29
  /**
30
- * Human-readable unique identifier
30
+ * Root entity type this rule applies to
31
31
  * @type {string}
32
32
  * @memberof CreateValidationRuleRequestDto
33
33
  */
34
- 'slug': string;
34
+ 'entityType': CreateValidationRuleRequestDtoEntityTypeEnum;
35
35
  /**
36
- * Entity type this rule applies to
36
+ * Product slug this rule belongs to
37
37
  * @type {string}
38
38
  * @memberof CreateValidationRuleRequestDto
39
39
  */
40
- 'entityType': string;
40
+ 'productSlug': string;
41
41
  /**
42
- * Product version code; product_slug is derived from this
43
- * @type {string}
42
+ * Product version ID
43
+ * @type {number}
44
44
  * @memberof CreateValidationRuleRequestDto
45
45
  */
46
- 'productVersionCode': string;
46
+ 'productVersionId': number;
47
47
  /**
48
48
  * Human-readable message shown when rule triggers
49
49
  * @type {string}
@@ -63,11 +63,11 @@ export interface CreateValidationRuleRequestDto {
63
63
  */
64
64
  'severity': CreateValidationRuleRequestDtoSeverityEnum;
65
65
  /**
66
- * JsonLogic expression for rule evaluation
67
- * @type {object}
66
+ * FEEL expression for rule evaluation
67
+ * @type {string}
68
68
  * @memberof CreateValidationRuleRequestDto
69
69
  */
70
- 'expression'?: object;
70
+ 'expression': string;
71
71
  /**
72
72
  * Related entities to load for evaluation
73
73
  * @type {Array<string>}
@@ -82,6 +82,12 @@ export interface CreateValidationRuleRequestDto {
82
82
  'isEnabled'?: boolean;
83
83
  }
84
84
 
85
+ export const CreateValidationRuleRequestDtoEntityTypeEnum = {
86
+ Policy: 'Policy',
87
+ Claim: 'Claim'
88
+ } as const;
89
+
90
+ export type CreateValidationRuleRequestDtoEntityTypeEnum = typeof CreateValidationRuleRequestDtoEntityTypeEnum[keyof typeof CreateValidationRuleRequestDtoEntityTypeEnum];
85
91
  export const CreateValidationRuleRequestDtoSeverityEnum = {
86
92
  Warning: 'Warning',
87
93
  Error: 'Error'
@@ -0,0 +1,50 @@
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 ExecuteRuleRequestDto
21
+ */
22
+ export interface ExecuteRuleRequestDto {
23
+ /**
24
+ * Code of the validation rule to execute
25
+ * @type {string}
26
+ * @memberof ExecuteRuleRequestDto
27
+ */
28
+ 'ruleCode': string;
29
+ /**
30
+ * Entity type to validate
31
+ * @type {string}
32
+ * @memberof ExecuteRuleRequestDto
33
+ */
34
+ 'entityType': ExecuteRuleRequestDtoEntityTypeEnum;
35
+ /**
36
+ * Code of the entity to validate
37
+ * @type {string}
38
+ * @memberof ExecuteRuleRequestDto
39
+ */
40
+ 'entityCode': string;
41
+ }
42
+
43
+ export const ExecuteRuleRequestDtoEntityTypeEnum = {
44
+ Policy: 'Policy',
45
+ Claim: 'Claim'
46
+ } as const;
47
+
48
+ export type ExecuteRuleRequestDtoEntityTypeEnum = typeof ExecuteRuleRequestDtoEntityTypeEnum[keyof typeof ExecuteRuleRequestDtoEntityTypeEnum];
49
+
50
+
@@ -0,0 +1,63 @@
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 { ExecuteRuleResultClass } from './execute-rule-result-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ExecuteRuleResponseClass
22
+ */
23
+ export interface ExecuteRuleResponseClass {
24
+ /**
25
+ * Entity type that was validated
26
+ * @type {string}
27
+ * @memberof ExecuteRuleResponseClass
28
+ */
29
+ 'entityType': ExecuteRuleResponseClassEntityTypeEnum;
30
+ /**
31
+ * Code of the entity that was validated
32
+ * @type {string}
33
+ * @memberof ExecuteRuleResponseClass
34
+ */
35
+ 'entityCode': string;
36
+ /**
37
+ * One result per executed validation rule
38
+ * @type {Array<ExecuteRuleResultClass>}
39
+ * @memberof ExecuteRuleResponseClass
40
+ */
41
+ 'results': Array<ExecuteRuleResultClass>;
42
+ /**
43
+ * True if at least one triggered rule has severity \"Error\"
44
+ * @type {boolean}
45
+ * @memberof ExecuteRuleResponseClass
46
+ */
47
+ 'hasBlockingErrors': boolean;
48
+ /**
49
+ * Resolved entity context used for evaluation (shape depends on entity type and expands)
50
+ * @type {object}
51
+ * @memberof ExecuteRuleResponseClass
52
+ */
53
+ 'entityData'?: object;
54
+ }
55
+
56
+ export const ExecuteRuleResponseClassEntityTypeEnum = {
57
+ Policy: 'Policy',
58
+ Claim: 'Claim'
59
+ } as const;
60
+
61
+ export type ExecuteRuleResponseClassEntityTypeEnum = typeof ExecuteRuleResponseClassEntityTypeEnum[keyof typeof ExecuteRuleResponseClassEntityTypeEnum];
62
+
63
+
@@ -0,0 +1,62 @@
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 ExecuteRuleResultClass
21
+ */
22
+ export interface ExecuteRuleResultClass {
23
+ /**
24
+ * Code of the validation rule that was executed
25
+ * @type {string}
26
+ * @memberof ExecuteRuleResultClass
27
+ */
28
+ 'ruleCode': string;
29
+ /**
30
+ * Human-readable message for the rule
31
+ * @type {string}
32
+ * @memberof ExecuteRuleResultClass
33
+ */
34
+ 'displayMessage': string;
35
+ /**
36
+ * Severity of the rule: \"Warning\" or \"Error\"
37
+ * @type {string}
38
+ * @memberof ExecuteRuleResultClass
39
+ */
40
+ 'severity': ExecuteRuleResultClassSeverityEnum;
41
+ /**
42
+ * True when the FEEL expression evaluates to true, meaning the rule\'s condition was met and the validation failed
43
+ * @type {boolean}
44
+ * @memberof ExecuteRuleResultClass
45
+ */
46
+ 'ruleViolated': boolean;
47
+ /**
48
+ * Error message if evaluation failed
49
+ * @type {string}
50
+ * @memberof ExecuteRuleResultClass
51
+ */
52
+ 'error': string;
53
+ }
54
+
55
+ export const ExecuteRuleResultClassSeverityEnum = {
56
+ Warning: 'Warning',
57
+ Error: 'Error'
58
+ } as const;
59
+
60
+ export type ExecuteRuleResultClassSeverityEnum = typeof ExecuteRuleResultClassSeverityEnum[keyof typeof ExecuteRuleResultClassSeverityEnum];
61
+
62
+
@@ -0,0 +1,36 @@
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 ExecuteRuleWithDryRunRequestDto
21
+ */
22
+ export interface ExecuteRuleWithDryRunRequestDto {
23
+ /**
24
+ * FEEL expression to evaluate
25
+ * @type {string}
26
+ * @memberof ExecuteRuleWithDryRunRequestDto
27
+ */
28
+ 'expression': string;
29
+ /**
30
+ * JSON string with sample data context for evaluation
31
+ * @type {string}
32
+ * @memberof ExecuteRuleWithDryRunRequestDto
33
+ */
34
+ 'context': string;
35
+ }
36
+
@@ -0,0 +1,42 @@
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 ExecuteRuleWithDryRunResponseClass
21
+ */
22
+ export interface ExecuteRuleWithDryRunResponseClass {
23
+ /**
24
+ * Whether the FEEL expression evaluated to true. A result of true means the validation rule was violated (i.e. the condition that should trigger a warning or error was met).
25
+ * @type {boolean}
26
+ * @memberof ExecuteRuleWithDryRunResponseClass
27
+ */
28
+ 'expressionResult': boolean;
29
+ /**
30
+ * Error message if evaluation failed
31
+ * @type {string}
32
+ * @memberof ExecuteRuleWithDryRunResponseClass
33
+ */
34
+ 'error': string;
35
+ /**
36
+ * String representation of the evaluation result
37
+ * @type {string}
38
+ * @memberof ExecuteRuleWithDryRunResponseClass
39
+ */
40
+ 'result': string;
41
+ }
42
+
@@ -0,0 +1,44 @@
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 ExecuteRulesByTypeRequestDto
21
+ */
22
+ export interface ExecuteRulesByTypeRequestDto {
23
+ /**
24
+ * Entity type to validate
25
+ * @type {string}
26
+ * @memberof ExecuteRulesByTypeRequestDto
27
+ */
28
+ 'entityType': ExecuteRulesByTypeRequestDtoEntityTypeEnum;
29
+ /**
30
+ * Code of the entity to validate
31
+ * @type {string}
32
+ * @memberof ExecuteRulesByTypeRequestDto
33
+ */
34
+ 'entityCode': string;
35
+ }
36
+
37
+ export const ExecuteRulesByTypeRequestDtoEntityTypeEnum = {
38
+ Policy: 'Policy',
39
+ Claim: 'Claim'
40
+ } as const;
41
+
42
+ export type ExecuteRulesByTypeRequestDtoEntityTypeEnum = typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum[keyof typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum];
43
+
44
+
package/models/index.ts CHANGED
@@ -1,7 +1,14 @@
1
+ export * from './cancel-investigation-block-response-class';
1
2
  export * from './create-investigation-block-request-dto';
2
3
  export * from './create-investigation-block-response-class';
3
4
  export * from './create-validation-rule-request-dto';
4
5
  export * from './create-validation-rule-response-class';
6
+ export * from './execute-rule-request-dto';
7
+ export * from './execute-rule-response-class';
8
+ export * from './execute-rule-result-class';
9
+ export * from './execute-rule-with-dry-run-request-dto';
10
+ export * from './execute-rule-with-dry-run-response-class';
11
+ export * from './execute-rules-by-type-request-dto';
5
12
  export * from './get-investigation-block-response-class';
6
13
  export * from './get-validation-rule-response-class';
7
14
  export * from './inline-response200';
@@ -9,6 +16,9 @@ export * from './inline-response503';
9
16
  export * from './investigation-block-class';
10
17
  export * from './list-investigation-blocks-response-class';
11
18
  export * from './list-validation-rules-response-class';
19
+ export * from './resolve-investigation-block-response-class';
12
20
  export * from './update-investigation-block-request-dto';
13
21
  export * from './update-investigation-block-response-class';
22
+ export * from './update-validation-rule-request-dto';
23
+ export * from './update-validation-rule-response-class';
14
24
  export * from './validation-rule-class';
@@ -37,7 +37,7 @@ export interface InvestigationBlockClass {
37
37
  * @type {string}
38
38
  * @memberof InvestigationBlockClass
39
39
  */
40
- 'entityType': string;
40
+ 'entityType': InvestigationBlockClassEntityTypeEnum;
41
41
  /**
42
42
  * Code of the entity that the investigation block is associated with
43
43
  * @type {string}
@@ -49,7 +49,7 @@ export interface InvestigationBlockClass {
49
49
  * @type {string}
50
50
  * @memberof InvestigationBlockClass
51
51
  */
52
- 'status': string;
52
+ 'status': InvestigationBlockClassStatusEnum;
53
53
  /**
54
54
  * Notes
55
55
  * @type {string}
@@ -92,5 +92,32 @@ export interface InvestigationBlockClass {
92
92
  * @memberof InvestigationBlockClass
93
93
  */
94
94
  'resolvedBy'?: string;
95
+ /**
96
+ * Cancelled At
97
+ * @type {string}
98
+ * @memberof InvestigationBlockClass
99
+ */
100
+ 'cancelledAt'?: string;
101
+ /**
102
+ * Cancelled By
103
+ * @type {string}
104
+ * @memberof InvestigationBlockClass
105
+ */
106
+ 'cancelledBy'?: string;
95
107
  }
96
108
 
109
+ export const InvestigationBlockClassEntityTypeEnum = {
110
+ Claim: 'claim',
111
+ Policy: 'policy'
112
+ } as const;
113
+
114
+ export type InvestigationBlockClassEntityTypeEnum = typeof InvestigationBlockClassEntityTypeEnum[keyof typeof InvestigationBlockClassEntityTypeEnum];
115
+ export const InvestigationBlockClassStatusEnum = {
116
+ Open: 'open',
117
+ Cancelled: 'cancelled',
118
+ Resolved: 'resolved'
119
+ } as const;
120
+
121
+ export type InvestigationBlockClassStatusEnum = typeof InvestigationBlockClassStatusEnum[keyof typeof InvestigationBlockClassStatusEnum];
122
+
123
+
@@ -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 { InvestigationBlockClass } from './investigation-block-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ResolveInvestigationBlockResponseClass
22
+ */
23
+ export interface ResolveInvestigationBlockResponseClass {
24
+ /**
25
+ * investigationBlock
26
+ * @type {InvestigationBlockClass}
27
+ * @memberof ResolveInvestigationBlockResponseClass
28
+ */
29
+ 'investigationBlock'?: InvestigationBlockClass;
30
+ }
31
+
@@ -60,7 +60,7 @@ export const UpdateInvestigationBlockRequestDtoEntityTypeEnum = {
60
60
  export type UpdateInvestigationBlockRequestDtoEntityTypeEnum = typeof UpdateInvestigationBlockRequestDtoEntityTypeEnum[keyof typeof UpdateInvestigationBlockRequestDtoEntityTypeEnum];
61
61
  export const UpdateInvestigationBlockRequestDtoStatusEnum = {
62
62
  Open: 'open',
63
- Closed: 'closed',
63
+ Cancelled: 'cancelled',
64
64
  Resolved: 'resolved'
65
65
  } as const;
66
66
 
@@ -0,0 +1,98 @@
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 UpdateValidationRuleRequestDto
21
+ */
22
+ export interface UpdateValidationRuleRequestDto {
23
+ /**
24
+ * Code of the validation rule to update
25
+ * @type {string}
26
+ * @memberof UpdateValidationRuleRequestDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * Root entity type this rule applies to
31
+ * @type {string}
32
+ * @memberof UpdateValidationRuleRequestDto
33
+ */
34
+ 'entityType'?: UpdateValidationRuleRequestDtoEntityTypeEnum;
35
+ /**
36
+ * Product slug this rule belongs to
37
+ * @type {string}
38
+ * @memberof UpdateValidationRuleRequestDto
39
+ */
40
+ 'productSlug'?: string;
41
+ /**
42
+ * Product version ID
43
+ * @type {number}
44
+ * @memberof UpdateValidationRuleRequestDto
45
+ */
46
+ 'productVersionId'?: number;
47
+ /**
48
+ * Human-readable message shown when rule triggers
49
+ * @type {string}
50
+ * @memberof UpdateValidationRuleRequestDto
51
+ */
52
+ 'displayMessage'?: string;
53
+ /**
54
+ * Detailed description of what the rule checks and why
55
+ * @type {string}
56
+ * @memberof UpdateValidationRuleRequestDto
57
+ */
58
+ 'description'?: string;
59
+ /**
60
+ * Rule severity
61
+ * @type {string}
62
+ * @memberof UpdateValidationRuleRequestDto
63
+ */
64
+ 'severity'?: UpdateValidationRuleRequestDtoSeverityEnum;
65
+ /**
66
+ * FEEL expression for rule evaluation
67
+ * @type {string}
68
+ * @memberof UpdateValidationRuleRequestDto
69
+ */
70
+ 'expression'?: string;
71
+ /**
72
+ * Related entities to load for evaluation
73
+ * @type {Array<string>}
74
+ * @memberof UpdateValidationRuleRequestDto
75
+ */
76
+ 'expands'?: Array<string>;
77
+ /**
78
+ * Whether the rule is enabled
79
+ * @type {boolean}
80
+ * @memberof UpdateValidationRuleRequestDto
81
+ */
82
+ 'isEnabled'?: boolean;
83
+ }
84
+
85
+ export const UpdateValidationRuleRequestDtoEntityTypeEnum = {
86
+ Policy: 'Policy',
87
+ Claim: 'Claim'
88
+ } as const;
89
+
90
+ export type UpdateValidationRuleRequestDtoEntityTypeEnum = typeof UpdateValidationRuleRequestDtoEntityTypeEnum[keyof typeof UpdateValidationRuleRequestDtoEntityTypeEnum];
91
+ export const UpdateValidationRuleRequestDtoSeverityEnum = {
92
+ Warning: 'Warning',
93
+ Error: 'Error'
94
+ } as const;
95
+
96
+ export type UpdateValidationRuleRequestDtoSeverityEnum = typeof UpdateValidationRuleRequestDtoSeverityEnum[keyof typeof UpdateValidationRuleRequestDtoSeverityEnum];
97
+
98
+