@forwardslashns/taskit-validation-messages 1.10.21 → 1.10.22
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/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +30 -0
- package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-recurrence-settings.validation-messages.js +30 -0
- package/dist/validation/validation-messages.d.ts +30 -0
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/template-recurrence-settings.validation-messages.ts +33 -0
|
@@ -62,6 +62,16 @@ export declare const TEMPLATE_RECURRENCE_SETTINGS: {
|
|
|
62
62
|
message: string;
|
|
63
63
|
affectedFields: string[];
|
|
64
64
|
};
|
|
65
|
+
SECOND_MONTH_MUST_BE_AFTER_FIRST_MONTH: {
|
|
66
|
+
severity: "error";
|
|
67
|
+
message: string;
|
|
68
|
+
affectedFields: string[];
|
|
69
|
+
};
|
|
70
|
+
SECOND_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
71
|
+
severity: "error";
|
|
72
|
+
message: string;
|
|
73
|
+
affectedFields: string[];
|
|
74
|
+
};
|
|
65
75
|
THIRD_MONTH_REQUIRED: {
|
|
66
76
|
severity: "error";
|
|
67
77
|
message: string;
|
|
@@ -72,6 +82,16 @@ export declare const TEMPLATE_RECURRENCE_SETTINGS: {
|
|
|
72
82
|
message: string;
|
|
73
83
|
affectedFields: string[];
|
|
74
84
|
};
|
|
85
|
+
THIRD_MONTH_MUST_BE_AFTER_SECOND_MONTH: {
|
|
86
|
+
severity: "error";
|
|
87
|
+
message: string;
|
|
88
|
+
affectedFields: string[];
|
|
89
|
+
};
|
|
90
|
+
THIRD_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
91
|
+
severity: "error";
|
|
92
|
+
message: string;
|
|
93
|
+
affectedFields: string[];
|
|
94
|
+
};
|
|
75
95
|
FOURTH_MONTH_REQUIRED: {
|
|
76
96
|
severity: "error";
|
|
77
97
|
message: string;
|
|
@@ -82,6 +102,16 @@ export declare const TEMPLATE_RECURRENCE_SETTINGS: {
|
|
|
82
102
|
message: string;
|
|
83
103
|
affectedFields: string[];
|
|
84
104
|
};
|
|
105
|
+
FOURTH_MONTH_MUST_BE_AFTER_THIRD_MONTH: {
|
|
106
|
+
severity: "error";
|
|
107
|
+
message: string;
|
|
108
|
+
affectedFields: string[];
|
|
109
|
+
};
|
|
110
|
+
FOURTH_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
111
|
+
severity: "error";
|
|
112
|
+
message: string;
|
|
113
|
+
affectedFields: string[];
|
|
114
|
+
};
|
|
85
115
|
DAY_OF_MONTH_REQUIRED: {
|
|
86
116
|
severity: "error";
|
|
87
117
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-recurrence-settings.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-recurrence-settings.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;wBAIf,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"template-recurrence-settings.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-recurrence-settings.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;wBAIf,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsLR,MAAM,EAAE;;;;;wBAKR,MAAM,EAAE;;;;;;;;;;;;;CAahC,CAAC"}
|
|
@@ -66,6 +66,16 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
66
66
|
message: 'Second month must be a value between 1 and 12.',
|
|
67
67
|
affectedFields: ['secondMonth'],
|
|
68
68
|
},
|
|
69
|
+
SECOND_MONTH_MUST_BE_AFTER_FIRST_MONTH: {
|
|
70
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
71
|
+
message: 'The second month must be after the first month selected. Please update the second month before saving.',
|
|
72
|
+
affectedFields: ['secondMonth'],
|
|
73
|
+
},
|
|
74
|
+
SECOND_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
75
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
76
|
+
message: 'The second month cannot be more than 12 months after the first month. Please update the second month before saving.',
|
|
77
|
+
affectedFields: ['secondMonth'],
|
|
78
|
+
},
|
|
69
79
|
THIRD_MONTH_REQUIRED: {
|
|
70
80
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
71
81
|
message: 'Third month is required',
|
|
@@ -76,6 +86,16 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
76
86
|
message: 'Third month must be a value between 1 and 12.',
|
|
77
87
|
affectedFields: ['thirdMonth'],
|
|
78
88
|
},
|
|
89
|
+
THIRD_MONTH_MUST_BE_AFTER_SECOND_MONTH: {
|
|
90
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
91
|
+
message: 'The third month must be after the second month selected. Please update the third month before saving.',
|
|
92
|
+
affectedFields: ['thirdMonth'],
|
|
93
|
+
},
|
|
94
|
+
THIRD_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
95
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
96
|
+
message: 'The third month cannot be more than 12 months after the first month. Please update the third month before saving.',
|
|
97
|
+
affectedFields: ['thirdMonth'],
|
|
98
|
+
},
|
|
79
99
|
FOURTH_MONTH_REQUIRED: {
|
|
80
100
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
81
101
|
message: 'Fourth month is required',
|
|
@@ -86,6 +106,16 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
86
106
|
message: 'Fourth month must be a value between 1 and 12.',
|
|
87
107
|
affectedFields: ['fourthMonth'],
|
|
88
108
|
},
|
|
109
|
+
FOURTH_MONTH_MUST_BE_AFTER_THIRD_MONTH: {
|
|
110
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
111
|
+
message: 'The fourth month must be after the third month selected. Please update the fourth month before saving.',
|
|
112
|
+
affectedFields: ['fourthMonth'],
|
|
113
|
+
},
|
|
114
|
+
FOURTH_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
115
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
116
|
+
message: 'The fourth month cannot be more than 12 months after the first month. Please update the fourth month before saving.',
|
|
117
|
+
affectedFields: ['fourthMonth'],
|
|
118
|
+
},
|
|
89
119
|
DAY_OF_MONTH_REQUIRED: {
|
|
90
120
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
91
121
|
message: 'Day of month is required',
|
|
@@ -1748,6 +1748,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1748
1748
|
message: string;
|
|
1749
1749
|
affectedFields: string[];
|
|
1750
1750
|
};
|
|
1751
|
+
SECOND_MONTH_MUST_BE_AFTER_FIRST_MONTH: {
|
|
1752
|
+
severity: "error";
|
|
1753
|
+
message: string;
|
|
1754
|
+
affectedFields: string[];
|
|
1755
|
+
};
|
|
1756
|
+
SECOND_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
1757
|
+
severity: "error";
|
|
1758
|
+
message: string;
|
|
1759
|
+
affectedFields: string[];
|
|
1760
|
+
};
|
|
1751
1761
|
THIRD_MONTH_REQUIRED: {
|
|
1752
1762
|
severity: "error";
|
|
1753
1763
|
message: string;
|
|
@@ -1758,6 +1768,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1758
1768
|
message: string;
|
|
1759
1769
|
affectedFields: string[];
|
|
1760
1770
|
};
|
|
1771
|
+
THIRD_MONTH_MUST_BE_AFTER_SECOND_MONTH: {
|
|
1772
|
+
severity: "error";
|
|
1773
|
+
message: string;
|
|
1774
|
+
affectedFields: string[];
|
|
1775
|
+
};
|
|
1776
|
+
THIRD_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
1777
|
+
severity: "error";
|
|
1778
|
+
message: string;
|
|
1779
|
+
affectedFields: string[];
|
|
1780
|
+
};
|
|
1761
1781
|
FOURTH_MONTH_REQUIRED: {
|
|
1762
1782
|
severity: "error";
|
|
1763
1783
|
message: string;
|
|
@@ -1768,6 +1788,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1768
1788
|
message: string;
|
|
1769
1789
|
affectedFields: string[];
|
|
1770
1790
|
};
|
|
1791
|
+
FOURTH_MONTH_MUST_BE_AFTER_THIRD_MONTH: {
|
|
1792
|
+
severity: "error";
|
|
1793
|
+
message: string;
|
|
1794
|
+
affectedFields: string[];
|
|
1795
|
+
};
|
|
1796
|
+
FOURTH_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
1797
|
+
severity: "error";
|
|
1798
|
+
message: string;
|
|
1799
|
+
affectedFields: string[];
|
|
1800
|
+
};
|
|
1771
1801
|
DAY_OF_MONTH_REQUIRED: {
|
|
1772
1802
|
severity: "error";
|
|
1773
1803
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"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
|
68
68
|
message: 'Second month must be a value between 1 and 12.',
|
|
69
69
|
affectedFields: ['secondMonth'],
|
|
70
70
|
},
|
|
71
|
+
SECOND_MONTH_MUST_BE_AFTER_FIRST_MONTH: {
|
|
72
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
73
|
+
message: 'The second month must be after the first month selected. Please update the second month before saving.',
|
|
74
|
+
affectedFields: ['secondMonth'],
|
|
75
|
+
},
|
|
76
|
+
SECOND_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
77
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
78
|
+
message:
|
|
79
|
+
'The second month cannot be more than 12 months after the first month. Please update the second month before saving.',
|
|
80
|
+
affectedFields: ['secondMonth'],
|
|
81
|
+
},
|
|
71
82
|
THIRD_MONTH_REQUIRED: {
|
|
72
83
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
73
84
|
message: 'Third month is required',
|
|
@@ -78,6 +89,17 @@ export const TEMPLATE_RECURRENCE_SETTINGS = defineValidationFeatureMessages({
|
|
|
78
89
|
message: 'Third month must be a value between 1 and 12.',
|
|
79
90
|
affectedFields: ['thirdMonth'],
|
|
80
91
|
},
|
|
92
|
+
THIRD_MONTH_MUST_BE_AFTER_SECOND_MONTH: {
|
|
93
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
94
|
+
message: 'The third month must be after the second month selected. Please update the third month before saving.',
|
|
95
|
+
affectedFields: ['thirdMonth'],
|
|
96
|
+
},
|
|
97
|
+
THIRD_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
98
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
99
|
+
message:
|
|
100
|
+
'The third month cannot be more than 12 months after the first month. Please update the third month before saving.',
|
|
101
|
+
affectedFields: ['thirdMonth'],
|
|
102
|
+
},
|
|
81
103
|
FOURTH_MONTH_REQUIRED: {
|
|
82
104
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
83
105
|
message: 'Fourth month is required',
|
|
@@ -88,6 +110,17 @@ export const TEMPLATE_RECURRENCE_SETTINGS = defineValidationFeatureMessages({
|
|
|
88
110
|
message: 'Fourth month must be a value between 1 and 12.',
|
|
89
111
|
affectedFields: ['fourthMonth'],
|
|
90
112
|
},
|
|
113
|
+
FOURTH_MONTH_MUST_BE_AFTER_THIRD_MONTH: {
|
|
114
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
115
|
+
message: 'The fourth month must be after the third month selected. Please update the fourth month before saving.',
|
|
116
|
+
affectedFields: ['fourthMonth'],
|
|
117
|
+
},
|
|
118
|
+
FOURTH_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
119
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
120
|
+
message:
|
|
121
|
+
'The fourth month cannot be more than 12 months after the first month. Please update the fourth month before saving.',
|
|
122
|
+
affectedFields: ['fourthMonth'],
|
|
123
|
+
},
|
|
91
124
|
DAY_OF_MONTH_REQUIRED: {
|
|
92
125
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
93
126
|
message: 'Day of month is required',
|