@emilgroup/validation-rules-sdk 1.1.1-beta.2 → 1.1.1-beta.4
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/README.md +2 -2
- package/dist/models/create-validation-rule-request-dto.d.ts +9 -8
- package/dist/models/create-validation-rule-request-dto.js +2 -1
- package/dist/models/execute-rule-request-dto.d.ts +1 -0
- package/dist/models/execute-rule-request-dto.js +2 -1
- package/dist/models/execute-rule-response-class.d.ts +1 -0
- package/dist/models/execute-rule-response-class.js +2 -1
- package/dist/models/execute-rules-by-type-request-dto.d.ts +1 -0
- package/dist/models/execute-rules-by-type-request-dto.js +2 -1
- package/dist/models/update-validation-rule-request-dto.d.ts +1 -0
- package/dist/models/update-validation-rule-request-dto.js +2 -1
- package/dist/models/validation-rule-class.d.ts +11 -10
- package/dist/models/validation-rule-class.js +2 -1
- package/models/create-validation-rule-request-dto.ts +10 -9
- package/models/execute-rule-request-dto.ts +2 -1
- package/models/execute-rule-response-class.ts +2 -1
- package/models/execute-rules-by-type-request-dto.ts +2 -1
- package/models/update-validation-rule-request-dto.ts +2 -1
- package/models/validation-rule-class.ts +12 -11
- package/package.json +2 -2
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.1.1-beta.
|
|
20
|
+
npm install @emilgroup/validation-rules-sdk@1.1.1-beta.4 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/validation-rules-sdk@1.1.1-beta.
|
|
24
|
+
yarn add @emilgroup/validation-rules-sdk@1.1.1-beta.4
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -28,23 +28,23 @@ export interface CreateValidationRuleRequestDto {
|
|
|
28
28
|
*/
|
|
29
29
|
'entityType': CreateValidationRuleRequestDtoEntityTypeEnum;
|
|
30
30
|
/**
|
|
31
|
-
* Product slug this rule belongs to
|
|
31
|
+
* Product slug this rule belongs to. Required for Policy / Claim rules; ignored for Task rules.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateValidationRuleRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'productSlug'
|
|
35
|
+
'productSlug'?: string;
|
|
36
36
|
/**
|
|
37
|
-
* Product version ID
|
|
37
|
+
* Product version ID. Required for Policy / Claim rules; ignored for Task rules.
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof CreateValidationRuleRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'productVersionId'
|
|
41
|
+
'productVersionId'?: number;
|
|
42
42
|
/**
|
|
43
|
-
* Human-readable message shown when rule triggers
|
|
43
|
+
* Human-readable message shown when the rule triggers. Required for Policy / Claim rules; ignored for Task rules (routing does not surface a message to the user).
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateValidationRuleRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'displayMessage'
|
|
47
|
+
'displayMessage'?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Detailed description of what the rule checks and why
|
|
50
50
|
* @type {string}
|
|
@@ -52,11 +52,11 @@ export interface CreateValidationRuleRequestDto {
|
|
|
52
52
|
*/
|
|
53
53
|
'description'?: string;
|
|
54
54
|
/**
|
|
55
|
-
* Rule severity
|
|
55
|
+
* Rule severity. Required for Policy / Claim rules (drives hasBlockingErrors). Ignored for Task rules — routing does not distinguish severity.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof CreateValidationRuleRequestDto
|
|
58
58
|
*/
|
|
59
|
-
'severity'
|
|
59
|
+
'severity'?: CreateValidationRuleRequestDtoSeverityEnum;
|
|
60
60
|
/**
|
|
61
61
|
* FEEL expression for rule evaluation
|
|
62
62
|
* @type {string}
|
|
@@ -79,6 +79,7 @@ export interface CreateValidationRuleRequestDto {
|
|
|
79
79
|
export declare const CreateValidationRuleRequestDtoEntityTypeEnum: {
|
|
80
80
|
readonly Policy: "Policy";
|
|
81
81
|
readonly Claim: "Claim";
|
|
82
|
+
readonly Task: "Task";
|
|
82
83
|
};
|
|
83
84
|
export type CreateValidationRuleRequestDtoEntityTypeEnum = typeof CreateValidationRuleRequestDtoEntityTypeEnum[keyof typeof CreateValidationRuleRequestDtoEntityTypeEnum];
|
|
84
85
|
export declare const CreateValidationRuleRequestDtoSeverityEnum: {
|
|
@@ -16,7 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.CreateValidationRuleRequestDtoSeverityEnum = exports.CreateValidationRuleRequestDtoEntityTypeEnum = void 0;
|
|
17
17
|
exports.CreateValidationRuleRequestDtoEntityTypeEnum = {
|
|
18
18
|
Policy: 'Policy',
|
|
19
|
-
Claim: 'Claim'
|
|
19
|
+
Claim: 'Claim',
|
|
20
|
+
Task: 'Task'
|
|
20
21
|
};
|
|
21
22
|
exports.CreateValidationRuleRequestDtoSeverityEnum = {
|
|
22
23
|
Warning: 'Warning',
|
|
@@ -37,5 +37,6 @@ export interface ExecuteRuleRequestDto {
|
|
|
37
37
|
export declare const ExecuteRuleRequestDtoEntityTypeEnum: {
|
|
38
38
|
readonly Policy: "Policy";
|
|
39
39
|
readonly Claim: "Claim";
|
|
40
|
+
readonly Task: "Task";
|
|
40
41
|
};
|
|
41
42
|
export type ExecuteRuleRequestDtoEntityTypeEnum = typeof ExecuteRuleRequestDtoEntityTypeEnum[keyof typeof ExecuteRuleRequestDtoEntityTypeEnum];
|
|
@@ -52,5 +52,6 @@ export interface ExecuteRuleResponseClass {
|
|
|
52
52
|
export declare const ExecuteRuleResponseClassEntityTypeEnum: {
|
|
53
53
|
readonly Policy: "Policy";
|
|
54
54
|
readonly Claim: "Claim";
|
|
55
|
+
readonly Task: "Task";
|
|
55
56
|
};
|
|
56
57
|
export type ExecuteRuleResponseClassEntityTypeEnum = typeof ExecuteRuleResponseClassEntityTypeEnum[keyof typeof ExecuteRuleResponseClassEntityTypeEnum];
|
|
@@ -31,5 +31,6 @@ export interface ExecuteRulesByTypeRequestDto {
|
|
|
31
31
|
export declare const ExecuteRulesByTypeRequestDtoEntityTypeEnum: {
|
|
32
32
|
readonly Policy: "Policy";
|
|
33
33
|
readonly Claim: "Claim";
|
|
34
|
+
readonly Task: "Task";
|
|
34
35
|
};
|
|
35
36
|
export type ExecuteRulesByTypeRequestDtoEntityTypeEnum = typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum[keyof typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum];
|
|
@@ -16,5 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ExecuteRulesByTypeRequestDtoEntityTypeEnum = void 0;
|
|
17
17
|
exports.ExecuteRulesByTypeRequestDtoEntityTypeEnum = {
|
|
18
18
|
Policy: 'Policy',
|
|
19
|
-
Claim: 'Claim'
|
|
19
|
+
Claim: 'Claim',
|
|
20
|
+
Task: 'Task'
|
|
20
21
|
};
|
|
@@ -79,6 +79,7 @@ export interface UpdateValidationRuleRequestDto {
|
|
|
79
79
|
export declare const UpdateValidationRuleRequestDtoEntityTypeEnum: {
|
|
80
80
|
readonly Policy: "Policy";
|
|
81
81
|
readonly Claim: "Claim";
|
|
82
|
+
readonly Task: "Task";
|
|
82
83
|
};
|
|
83
84
|
export type UpdateValidationRuleRequestDtoEntityTypeEnum = typeof UpdateValidationRuleRequestDtoEntityTypeEnum[keyof typeof UpdateValidationRuleRequestDtoEntityTypeEnum];
|
|
84
85
|
export declare const UpdateValidationRuleRequestDtoSeverityEnum: {
|
|
@@ -16,7 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.UpdateValidationRuleRequestDtoSeverityEnum = exports.UpdateValidationRuleRequestDtoEntityTypeEnum = void 0;
|
|
17
17
|
exports.UpdateValidationRuleRequestDtoEntityTypeEnum = {
|
|
18
18
|
Policy: 'Policy',
|
|
19
|
-
Claim: 'Claim'
|
|
19
|
+
Claim: 'Claim',
|
|
20
|
+
Task: 'Task'
|
|
20
21
|
};
|
|
21
22
|
exports.UpdateValidationRuleRequestDtoSeverityEnum = {
|
|
22
23
|
Warning: 'Warning',
|
|
@@ -40,29 +40,29 @@ export interface ValidationRuleClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'entityType': ValidationRuleClassEntityTypeEnum;
|
|
42
42
|
/**
|
|
43
|
-
* Product slug this rule belongs to
|
|
43
|
+
* Product slug this rule belongs to. Null for Task (routing) rules.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ValidationRuleClass
|
|
46
46
|
*/
|
|
47
|
-
'productSlug'
|
|
47
|
+
'productSlug'?: string;
|
|
48
48
|
/**
|
|
49
|
-
* Product version ID
|
|
49
|
+
* Product version ID. Null for Task (routing) rules.
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof ValidationRuleClass
|
|
52
52
|
*/
|
|
53
|
-
'productVersionId'
|
|
53
|
+
'productVersionId'?: number;
|
|
54
54
|
/**
|
|
55
|
-
* Product version code
|
|
55
|
+
* Product version code. Null for Task (routing) rules.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof ValidationRuleClass
|
|
58
58
|
*/
|
|
59
|
-
'productVersionCode'
|
|
59
|
+
'productVersionCode'?: string;
|
|
60
60
|
/**
|
|
61
|
-
* Human-readable message shown when rule triggers
|
|
61
|
+
* Human-readable message shown when rule triggers. Null for Task (routing) rules.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof ValidationRuleClass
|
|
64
64
|
*/
|
|
65
|
-
'displayMessage'
|
|
65
|
+
'displayMessage'?: string;
|
|
66
66
|
/**
|
|
67
67
|
* Detailed description of what the rule checks
|
|
68
68
|
* @type {string}
|
|
@@ -70,11 +70,11 @@ export interface ValidationRuleClass {
|
|
|
70
70
|
*/
|
|
71
71
|
'description'?: string;
|
|
72
72
|
/**
|
|
73
|
-
* Rule severity
|
|
73
|
+
* Rule severity. Null for Task (routing) rules — routing does not distinguish severity.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ValidationRuleClass
|
|
76
76
|
*/
|
|
77
|
-
'severity'
|
|
77
|
+
'severity'?: ValidationRuleClassSeverityEnum;
|
|
78
78
|
/**
|
|
79
79
|
* FEEL expression for rule evaluation
|
|
80
80
|
* @type {string}
|
|
@@ -121,6 +121,7 @@ export interface ValidationRuleClass {
|
|
|
121
121
|
export declare const ValidationRuleClassEntityTypeEnum: {
|
|
122
122
|
readonly Policy: "Policy";
|
|
123
123
|
readonly Claim: "Claim";
|
|
124
|
+
readonly Task: "Task";
|
|
124
125
|
};
|
|
125
126
|
export type ValidationRuleClassEntityTypeEnum = typeof ValidationRuleClassEntityTypeEnum[keyof typeof ValidationRuleClassEntityTypeEnum];
|
|
126
127
|
export declare const ValidationRuleClassSeverityEnum: {
|
|
@@ -16,7 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ValidationRuleClassSeverityEnum = exports.ValidationRuleClassEntityTypeEnum = void 0;
|
|
17
17
|
exports.ValidationRuleClassEntityTypeEnum = {
|
|
18
18
|
Policy: 'Policy',
|
|
19
|
-
Claim: 'Claim'
|
|
19
|
+
Claim: 'Claim',
|
|
20
|
+
Task: 'Task'
|
|
20
21
|
};
|
|
21
22
|
exports.ValidationRuleClassSeverityEnum = {
|
|
22
23
|
Warning: 'Warning',
|
|
@@ -33,23 +33,23 @@ export interface CreateValidationRuleRequestDto {
|
|
|
33
33
|
*/
|
|
34
34
|
'entityType': CreateValidationRuleRequestDtoEntityTypeEnum;
|
|
35
35
|
/**
|
|
36
|
-
* Product slug this rule belongs to
|
|
36
|
+
* Product slug this rule belongs to. Required for Policy / Claim rules; ignored for Task rules.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreateValidationRuleRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'productSlug'
|
|
40
|
+
'productSlug'?: string;
|
|
41
41
|
/**
|
|
42
|
-
* Product version ID
|
|
42
|
+
* Product version ID. Required for Policy / Claim rules; ignored for Task rules.
|
|
43
43
|
* @type {number}
|
|
44
44
|
* @memberof CreateValidationRuleRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'productVersionId'
|
|
46
|
+
'productVersionId'?: number;
|
|
47
47
|
/**
|
|
48
|
-
* Human-readable message shown when rule triggers
|
|
48
|
+
* Human-readable message shown when the rule triggers. Required for Policy / Claim rules; ignored for Task rules (routing does not surface a message to the user).
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof CreateValidationRuleRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'displayMessage'
|
|
52
|
+
'displayMessage'?: string;
|
|
53
53
|
/**
|
|
54
54
|
* Detailed description of what the rule checks and why
|
|
55
55
|
* @type {string}
|
|
@@ -57,11 +57,11 @@ export interface CreateValidationRuleRequestDto {
|
|
|
57
57
|
*/
|
|
58
58
|
'description'?: string;
|
|
59
59
|
/**
|
|
60
|
-
* Rule severity
|
|
60
|
+
* Rule severity. Required for Policy / Claim rules (drives hasBlockingErrors). Ignored for Task rules — routing does not distinguish severity.
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof CreateValidationRuleRequestDto
|
|
63
63
|
*/
|
|
64
|
-
'severity'
|
|
64
|
+
'severity'?: CreateValidationRuleRequestDtoSeverityEnum;
|
|
65
65
|
/**
|
|
66
66
|
* FEEL expression for rule evaluation
|
|
67
67
|
* @type {string}
|
|
@@ -84,7 +84,8 @@ export interface CreateValidationRuleRequestDto {
|
|
|
84
84
|
|
|
85
85
|
export const CreateValidationRuleRequestDtoEntityTypeEnum = {
|
|
86
86
|
Policy: 'Policy',
|
|
87
|
-
Claim: 'Claim'
|
|
87
|
+
Claim: 'Claim',
|
|
88
|
+
Task: 'Task'
|
|
88
89
|
} as const;
|
|
89
90
|
|
|
90
91
|
export type CreateValidationRuleRequestDtoEntityTypeEnum = typeof CreateValidationRuleRequestDtoEntityTypeEnum[keyof typeof CreateValidationRuleRequestDtoEntityTypeEnum];
|
|
@@ -42,7 +42,8 @@ export interface ExecuteRuleRequestDto {
|
|
|
42
42
|
|
|
43
43
|
export const ExecuteRuleRequestDtoEntityTypeEnum = {
|
|
44
44
|
Policy: 'Policy',
|
|
45
|
-
Claim: 'Claim'
|
|
45
|
+
Claim: 'Claim',
|
|
46
|
+
Task: 'Task'
|
|
46
47
|
} as const;
|
|
47
48
|
|
|
48
49
|
export type ExecuteRuleRequestDtoEntityTypeEnum = typeof ExecuteRuleRequestDtoEntityTypeEnum[keyof typeof ExecuteRuleRequestDtoEntityTypeEnum];
|
|
@@ -55,7 +55,8 @@ export interface ExecuteRuleResponseClass {
|
|
|
55
55
|
|
|
56
56
|
export const ExecuteRuleResponseClassEntityTypeEnum = {
|
|
57
57
|
Policy: 'Policy',
|
|
58
|
-
Claim: 'Claim'
|
|
58
|
+
Claim: 'Claim',
|
|
59
|
+
Task: 'Task'
|
|
59
60
|
} as const;
|
|
60
61
|
|
|
61
62
|
export type ExecuteRuleResponseClassEntityTypeEnum = typeof ExecuteRuleResponseClassEntityTypeEnum[keyof typeof ExecuteRuleResponseClassEntityTypeEnum];
|
|
@@ -36,7 +36,8 @@ export interface ExecuteRulesByTypeRequestDto {
|
|
|
36
36
|
|
|
37
37
|
export const ExecuteRulesByTypeRequestDtoEntityTypeEnum = {
|
|
38
38
|
Policy: 'Policy',
|
|
39
|
-
Claim: 'Claim'
|
|
39
|
+
Claim: 'Claim',
|
|
40
|
+
Task: 'Task'
|
|
40
41
|
} as const;
|
|
41
42
|
|
|
42
43
|
export type ExecuteRulesByTypeRequestDtoEntityTypeEnum = typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum[keyof typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum];
|
|
@@ -84,7 +84,8 @@ export interface UpdateValidationRuleRequestDto {
|
|
|
84
84
|
|
|
85
85
|
export const UpdateValidationRuleRequestDtoEntityTypeEnum = {
|
|
86
86
|
Policy: 'Policy',
|
|
87
|
-
Claim: 'Claim'
|
|
87
|
+
Claim: 'Claim',
|
|
88
|
+
Task: 'Task'
|
|
88
89
|
} as const;
|
|
89
90
|
|
|
90
91
|
export type UpdateValidationRuleRequestDtoEntityTypeEnum = typeof UpdateValidationRuleRequestDtoEntityTypeEnum[keyof typeof UpdateValidationRuleRequestDtoEntityTypeEnum];
|
|
@@ -45,29 +45,29 @@ export interface ValidationRuleClass {
|
|
|
45
45
|
*/
|
|
46
46
|
'entityType': ValidationRuleClassEntityTypeEnum;
|
|
47
47
|
/**
|
|
48
|
-
* Product slug this rule belongs to
|
|
48
|
+
* Product slug this rule belongs to. Null for Task (routing) rules.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof ValidationRuleClass
|
|
51
51
|
*/
|
|
52
|
-
'productSlug'
|
|
52
|
+
'productSlug'?: string;
|
|
53
53
|
/**
|
|
54
|
-
* Product version ID
|
|
54
|
+
* Product version ID. Null for Task (routing) rules.
|
|
55
55
|
* @type {number}
|
|
56
56
|
* @memberof ValidationRuleClass
|
|
57
57
|
*/
|
|
58
|
-
'productVersionId'
|
|
58
|
+
'productVersionId'?: number;
|
|
59
59
|
/**
|
|
60
|
-
* Product version code
|
|
60
|
+
* Product version code. Null for Task (routing) rules.
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof ValidationRuleClass
|
|
63
63
|
*/
|
|
64
|
-
'productVersionCode'
|
|
64
|
+
'productVersionCode'?: string;
|
|
65
65
|
/**
|
|
66
|
-
* Human-readable message shown when rule triggers
|
|
66
|
+
* Human-readable message shown when rule triggers. Null for Task (routing) rules.
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof ValidationRuleClass
|
|
69
69
|
*/
|
|
70
|
-
'displayMessage'
|
|
70
|
+
'displayMessage'?: string;
|
|
71
71
|
/**
|
|
72
72
|
* Detailed description of what the rule checks
|
|
73
73
|
* @type {string}
|
|
@@ -75,11 +75,11 @@ export interface ValidationRuleClass {
|
|
|
75
75
|
*/
|
|
76
76
|
'description'?: string;
|
|
77
77
|
/**
|
|
78
|
-
* Rule severity
|
|
78
|
+
* Rule severity. Null for Task (routing) rules — routing does not distinguish severity.
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @memberof ValidationRuleClass
|
|
81
81
|
*/
|
|
82
|
-
'severity'
|
|
82
|
+
'severity'?: ValidationRuleClassSeverityEnum;
|
|
83
83
|
/**
|
|
84
84
|
* FEEL expression for rule evaluation
|
|
85
85
|
* @type {string}
|
|
@@ -126,7 +126,8 @@ export interface ValidationRuleClass {
|
|
|
126
126
|
|
|
127
127
|
export const ValidationRuleClassEntityTypeEnum = {
|
|
128
128
|
Policy: 'Policy',
|
|
129
|
-
Claim: 'Claim'
|
|
129
|
+
Claim: 'Claim',
|
|
130
|
+
Task: 'Task'
|
|
130
131
|
} as const;
|
|
131
132
|
|
|
132
133
|
export type ValidationRuleClassEntityTypeEnum = typeof ValidationRuleClassEntityTypeEnum[keyof typeof ValidationRuleClassEntityTypeEnum];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/validation-rules-sdk",
|
|
3
|
-
"version": "1.1.1-beta.
|
|
3
|
+
"version": "1.1.1-beta.4",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/validation-rules-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "1.
|
|
21
|
+
"axios": "1.18.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
|