@emilgroup/validation-rules-sdk 1.1.1-beta.5 → 1.2.0
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 +8 -9
- package/dist/models/create-validation-rule-request-dto.js +1 -2
- package/dist/models/execute-rule-request-dto.d.ts +0 -1
- package/dist/models/execute-rule-request-dto.js +1 -2
- package/dist/models/execute-rule-response-class.d.ts +0 -1
- package/dist/models/execute-rule-response-class.js +1 -2
- package/dist/models/execute-rules-by-type-request-dto.d.ts +0 -1
- package/dist/models/execute-rules-by-type-request-dto.js +1 -2
- package/dist/models/update-validation-rule-request-dto.d.ts +0 -1
- package/dist/models/update-validation-rule-request-dto.js +1 -2
- package/dist/models/validation-rule-class.d.ts +10 -11
- package/dist/models/validation-rule-class.js +1 -2
- package/models/create-validation-rule-request-dto.ts +9 -10
- package/models/execute-rule-request-dto.ts +1 -2
- package/models/execute-rule-response-class.ts +1 -2
- package/models/execute-rules-by-type-request-dto.ts +1 -2
- package/models/update-validation-rule-request-dto.ts +1 -2
- package/models/validation-rule-class.ts +11 -12
- package/package.json +1 -1
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.
|
|
20
|
+
npm install @emilgroup/validation-rules-sdk@1.2.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/validation-rules-sdk@1.
|
|
24
|
+
yarn add @emilgroup/validation-rules-sdk@1.2.0
|
|
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
|
|
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
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof CreateValidationRuleRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'productVersionId'
|
|
41
|
+
'productVersionId': number;
|
|
42
42
|
/**
|
|
43
|
-
* Human-readable message shown when
|
|
43
|
+
* Human-readable message shown when rule triggers
|
|
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
|
|
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,7 +79,6 @@ export interface CreateValidationRuleRequestDto {
|
|
|
79
79
|
export declare const CreateValidationRuleRequestDtoEntityTypeEnum: {
|
|
80
80
|
readonly Policy: "Policy";
|
|
81
81
|
readonly Claim: "Claim";
|
|
82
|
-
readonly Task: "Task";
|
|
83
82
|
};
|
|
84
83
|
export type CreateValidationRuleRequestDtoEntityTypeEnum = typeof CreateValidationRuleRequestDtoEntityTypeEnum[keyof typeof CreateValidationRuleRequestDtoEntityTypeEnum];
|
|
85
84
|
export declare const CreateValidationRuleRequestDtoSeverityEnum: {
|
|
@@ -16,8 +16,7 @@ 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'
|
|
20
|
-
Task: 'Task'
|
|
19
|
+
Claim: 'Claim'
|
|
21
20
|
};
|
|
22
21
|
exports.CreateValidationRuleRequestDtoSeverityEnum = {
|
|
23
22
|
Warning: 'Warning',
|
|
@@ -37,6 +37,5 @@ export interface ExecuteRuleRequestDto {
|
|
|
37
37
|
export declare const ExecuteRuleRequestDtoEntityTypeEnum: {
|
|
38
38
|
readonly Policy: "Policy";
|
|
39
39
|
readonly Claim: "Claim";
|
|
40
|
-
readonly Task: "Task";
|
|
41
40
|
};
|
|
42
41
|
export type ExecuteRuleRequestDtoEntityTypeEnum = typeof ExecuteRuleRequestDtoEntityTypeEnum[keyof typeof ExecuteRuleRequestDtoEntityTypeEnum];
|
|
@@ -52,6 +52,5 @@ export interface ExecuteRuleResponseClass {
|
|
|
52
52
|
export declare const ExecuteRuleResponseClassEntityTypeEnum: {
|
|
53
53
|
readonly Policy: "Policy";
|
|
54
54
|
readonly Claim: "Claim";
|
|
55
|
-
readonly Task: "Task";
|
|
56
55
|
};
|
|
57
56
|
export type ExecuteRuleResponseClassEntityTypeEnum = typeof ExecuteRuleResponseClassEntityTypeEnum[keyof typeof ExecuteRuleResponseClassEntityTypeEnum];
|
|
@@ -31,6 +31,5 @@ export interface ExecuteRulesByTypeRequestDto {
|
|
|
31
31
|
export declare const ExecuteRulesByTypeRequestDtoEntityTypeEnum: {
|
|
32
32
|
readonly Policy: "Policy";
|
|
33
33
|
readonly Claim: "Claim";
|
|
34
|
-
readonly Task: "Task";
|
|
35
34
|
};
|
|
36
35
|
export type ExecuteRulesByTypeRequestDtoEntityTypeEnum = typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum[keyof typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum];
|
|
@@ -16,6 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ExecuteRulesByTypeRequestDtoEntityTypeEnum = void 0;
|
|
17
17
|
exports.ExecuteRulesByTypeRequestDtoEntityTypeEnum = {
|
|
18
18
|
Policy: 'Policy',
|
|
19
|
-
Claim: 'Claim'
|
|
20
|
-
Task: 'Task'
|
|
19
|
+
Claim: 'Claim'
|
|
21
20
|
};
|
|
@@ -79,7 +79,6 @@ export interface UpdateValidationRuleRequestDto {
|
|
|
79
79
|
export declare const UpdateValidationRuleRequestDtoEntityTypeEnum: {
|
|
80
80
|
readonly Policy: "Policy";
|
|
81
81
|
readonly Claim: "Claim";
|
|
82
|
-
readonly Task: "Task";
|
|
83
82
|
};
|
|
84
83
|
export type UpdateValidationRuleRequestDtoEntityTypeEnum = typeof UpdateValidationRuleRequestDtoEntityTypeEnum[keyof typeof UpdateValidationRuleRequestDtoEntityTypeEnum];
|
|
85
84
|
export declare const UpdateValidationRuleRequestDtoSeverityEnum: {
|
|
@@ -16,8 +16,7 @@ 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'
|
|
20
|
-
Task: 'Task'
|
|
19
|
+
Claim: 'Claim'
|
|
21
20
|
};
|
|
22
21
|
exports.UpdateValidationRuleRequestDtoSeverityEnum = {
|
|
23
22
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,7 +121,6 @@ export interface ValidationRuleClass {
|
|
|
121
121
|
export declare const ValidationRuleClassEntityTypeEnum: {
|
|
122
122
|
readonly Policy: "Policy";
|
|
123
123
|
readonly Claim: "Claim";
|
|
124
|
-
readonly Task: "Task";
|
|
125
124
|
};
|
|
126
125
|
export type ValidationRuleClassEntityTypeEnum = typeof ValidationRuleClassEntityTypeEnum[keyof typeof ValidationRuleClassEntityTypeEnum];
|
|
127
126
|
export declare const ValidationRuleClassSeverityEnum: {
|
|
@@ -16,8 +16,7 @@ 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'
|
|
20
|
-
Task: 'Task'
|
|
19
|
+
Claim: 'Claim'
|
|
21
20
|
};
|
|
22
21
|
exports.ValidationRuleClassSeverityEnum = {
|
|
23
22
|
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
|
|
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
|
|
43
43
|
* @type {number}
|
|
44
44
|
* @memberof CreateValidationRuleRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'productVersionId'
|
|
46
|
+
'productVersionId': number;
|
|
47
47
|
/**
|
|
48
|
-
* Human-readable message shown when
|
|
48
|
+
* Human-readable message shown when rule triggers
|
|
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
|
|
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,8 +84,7 @@ export interface CreateValidationRuleRequestDto {
|
|
|
84
84
|
|
|
85
85
|
export const CreateValidationRuleRequestDtoEntityTypeEnum = {
|
|
86
86
|
Policy: 'Policy',
|
|
87
|
-
Claim: 'Claim'
|
|
88
|
-
Task: 'Task'
|
|
87
|
+
Claim: 'Claim'
|
|
89
88
|
} as const;
|
|
90
89
|
|
|
91
90
|
export type CreateValidationRuleRequestDtoEntityTypeEnum = typeof CreateValidationRuleRequestDtoEntityTypeEnum[keyof typeof CreateValidationRuleRequestDtoEntityTypeEnum];
|
|
@@ -42,8 +42,7 @@ export interface ExecuteRuleRequestDto {
|
|
|
42
42
|
|
|
43
43
|
export const ExecuteRuleRequestDtoEntityTypeEnum = {
|
|
44
44
|
Policy: 'Policy',
|
|
45
|
-
Claim: 'Claim'
|
|
46
|
-
Task: 'Task'
|
|
45
|
+
Claim: 'Claim'
|
|
47
46
|
} as const;
|
|
48
47
|
|
|
49
48
|
export type ExecuteRuleRequestDtoEntityTypeEnum = typeof ExecuteRuleRequestDtoEntityTypeEnum[keyof typeof ExecuteRuleRequestDtoEntityTypeEnum];
|
|
@@ -55,8 +55,7 @@ export interface ExecuteRuleResponseClass {
|
|
|
55
55
|
|
|
56
56
|
export const ExecuteRuleResponseClassEntityTypeEnum = {
|
|
57
57
|
Policy: 'Policy',
|
|
58
|
-
Claim: 'Claim'
|
|
59
|
-
Task: 'Task'
|
|
58
|
+
Claim: 'Claim'
|
|
60
59
|
} as const;
|
|
61
60
|
|
|
62
61
|
export type ExecuteRuleResponseClassEntityTypeEnum = typeof ExecuteRuleResponseClassEntityTypeEnum[keyof typeof ExecuteRuleResponseClassEntityTypeEnum];
|
|
@@ -36,8 +36,7 @@ export interface ExecuteRulesByTypeRequestDto {
|
|
|
36
36
|
|
|
37
37
|
export const ExecuteRulesByTypeRequestDtoEntityTypeEnum = {
|
|
38
38
|
Policy: 'Policy',
|
|
39
|
-
Claim: 'Claim'
|
|
40
|
-
Task: 'Task'
|
|
39
|
+
Claim: 'Claim'
|
|
41
40
|
} as const;
|
|
42
41
|
|
|
43
42
|
export type ExecuteRulesByTypeRequestDtoEntityTypeEnum = typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum[keyof typeof ExecuteRulesByTypeRequestDtoEntityTypeEnum];
|
|
@@ -84,8 +84,7 @@ export interface UpdateValidationRuleRequestDto {
|
|
|
84
84
|
|
|
85
85
|
export const UpdateValidationRuleRequestDtoEntityTypeEnum = {
|
|
86
86
|
Policy: 'Policy',
|
|
87
|
-
Claim: 'Claim'
|
|
88
|
-
Task: 'Task'
|
|
87
|
+
Claim: 'Claim'
|
|
89
88
|
} as const;
|
|
90
89
|
|
|
91
90
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,8 +126,7 @@ export interface ValidationRuleClass {
|
|
|
126
126
|
|
|
127
127
|
export const ValidationRuleClassEntityTypeEnum = {
|
|
128
128
|
Policy: 'Policy',
|
|
129
|
-
Claim: 'Claim'
|
|
130
|
-
Task: 'Task'
|
|
129
|
+
Claim: 'Claim'
|
|
131
130
|
} as const;
|
|
132
131
|
|
|
133
132
|
export type ValidationRuleClassEntityTypeEnum = typeof ValidationRuleClassEntityTypeEnum[keyof typeof ValidationRuleClassEntityTypeEnum];
|