@forwardslashns/taskit-validation-messages 1.10.20 → 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/client-current-entity-statuses.validation-messages.d.ts +15 -0
- package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-current-entity-statuses.validation-messages.js +15 -0
- 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 +45 -0
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/client-current-entity-statuses.validation-messages.ts +15 -0
- package/src/validation/features/template-recurrence-settings.validation-messages.ts +33 -0
|
@@ -101,6 +101,21 @@ export declare const CLIENT_CURRENT_ENTITY_STATUS: {
|
|
|
101
101
|
message: string;
|
|
102
102
|
affectedFields: string[];
|
|
103
103
|
};
|
|
104
|
+
OPTIONAL_ACCOUNT_ID_NOT_SET_WARNING: {
|
|
105
|
+
severity: "warning";
|
|
106
|
+
message: string;
|
|
107
|
+
affectedFields: string[];
|
|
108
|
+
};
|
|
109
|
+
OPTIONAL_BUSINESS_ACTIVITY_ID_NOT_SET_WARNING: {
|
|
110
|
+
severity: "warning";
|
|
111
|
+
message: string;
|
|
112
|
+
affectedFields: string[];
|
|
113
|
+
};
|
|
114
|
+
OPTIONAL_FILING_CATEGORY_ID_NOT_SET_WARNING: {
|
|
115
|
+
severity: "warning";
|
|
116
|
+
message: string;
|
|
117
|
+
affectedFields: string[];
|
|
118
|
+
};
|
|
104
119
|
CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
|
|
105
120
|
severity: "error";
|
|
106
121
|
message: string;
|
package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-current-entity-statuses.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-current-entity-statuses.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"client-current-entity-statuses.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-current-entity-statuses.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoNvC,CAAC"}
|
|
@@ -105,6 +105,21 @@ exports.CLIENT_CURRENT_ENTITY_STATUS = (0, validation_message_types_1.defineVali
|
|
|
105
105
|
message: `Provide an Initial Filing Date`,
|
|
106
106
|
affectedFields: ['initialFilingDate'],
|
|
107
107
|
},
|
|
108
|
+
OPTIONAL_ACCOUNT_ID_NOT_SET_WARNING: {
|
|
109
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.WARNING,
|
|
110
|
+
message: `Account ID is not set`,
|
|
111
|
+
affectedFields: ['accountId'],
|
|
112
|
+
},
|
|
113
|
+
OPTIONAL_BUSINESS_ACTIVITY_ID_NOT_SET_WARNING: {
|
|
114
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.WARNING,
|
|
115
|
+
message: `Business Activity is not set`,
|
|
116
|
+
affectedFields: ['businessActivity'],
|
|
117
|
+
},
|
|
118
|
+
OPTIONAL_FILING_CATEGORY_ID_NOT_SET_WARNING: {
|
|
119
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.WARNING,
|
|
120
|
+
message: `Filing Category is not set`,
|
|
121
|
+
affectedFields: ['filingCategory'],
|
|
122
|
+
},
|
|
108
123
|
CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
|
|
109
124
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
110
125
|
message: `This client cannot be deleted because it has client relationships associated`,
|
|
@@ -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',
|
|
@@ -385,6 +385,21 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
385
385
|
message: string;
|
|
386
386
|
affectedFields: string[];
|
|
387
387
|
};
|
|
388
|
+
OPTIONAL_ACCOUNT_ID_NOT_SET_WARNING: {
|
|
389
|
+
severity: "warning";
|
|
390
|
+
message: string;
|
|
391
|
+
affectedFields: string[];
|
|
392
|
+
};
|
|
393
|
+
OPTIONAL_BUSINESS_ACTIVITY_ID_NOT_SET_WARNING: {
|
|
394
|
+
severity: "warning";
|
|
395
|
+
message: string;
|
|
396
|
+
affectedFields: string[];
|
|
397
|
+
};
|
|
398
|
+
OPTIONAL_FILING_CATEGORY_ID_NOT_SET_WARNING: {
|
|
399
|
+
severity: "warning";
|
|
400
|
+
message: string;
|
|
401
|
+
affectedFields: string[];
|
|
402
|
+
};
|
|
388
403
|
CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
|
|
389
404
|
severity: "error";
|
|
390
405
|
message: string;
|
|
@@ -1733,6 +1748,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1733
1748
|
message: string;
|
|
1734
1749
|
affectedFields: string[];
|
|
1735
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
|
+
};
|
|
1736
1761
|
THIRD_MONTH_REQUIRED: {
|
|
1737
1762
|
severity: "error";
|
|
1738
1763
|
message: string;
|
|
@@ -1743,6 +1768,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1743
1768
|
message: string;
|
|
1744
1769
|
affectedFields: string[];
|
|
1745
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
|
+
};
|
|
1746
1781
|
FOURTH_MONTH_REQUIRED: {
|
|
1747
1782
|
severity: "error";
|
|
1748
1783
|
message: string;
|
|
@@ -1753,6 +1788,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1753
1788
|
message: string;
|
|
1754
1789
|
affectedFields: string[];
|
|
1755
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
|
+
};
|
|
1756
1801
|
DAY_OF_MONTH_REQUIRED: {
|
|
1757
1802
|
severity: "error";
|
|
1758
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,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -103,6 +103,21 @@ export const CLIENT_CURRENT_ENTITY_STATUS = defineValidationFeatureMessages({
|
|
|
103
103
|
message: `Provide an Initial Filing Date`,
|
|
104
104
|
affectedFields: ['initialFilingDate'],
|
|
105
105
|
},
|
|
106
|
+
OPTIONAL_ACCOUNT_ID_NOT_SET_WARNING: {
|
|
107
|
+
severity: VALIDATION_SEVERITY.WARNING,
|
|
108
|
+
message: `Account ID is not set`,
|
|
109
|
+
affectedFields: ['accountId'],
|
|
110
|
+
},
|
|
111
|
+
OPTIONAL_BUSINESS_ACTIVITY_ID_NOT_SET_WARNING: {
|
|
112
|
+
severity: VALIDATION_SEVERITY.WARNING,
|
|
113
|
+
message: `Business Activity is not set`,
|
|
114
|
+
affectedFields: ['businessActivity'],
|
|
115
|
+
},
|
|
116
|
+
OPTIONAL_FILING_CATEGORY_ID_NOT_SET_WARNING: {
|
|
117
|
+
severity: VALIDATION_SEVERITY.WARNING,
|
|
118
|
+
message: `Filing Category is not set`,
|
|
119
|
+
affectedFields: ['filingCategory'],
|
|
120
|
+
},
|
|
106
121
|
CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
|
|
107
122
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
108
123
|
message: `This client cannot be deleted because it has client relationships associated`,
|
|
@@ -68,6 +68,17 @@ export const TEMPLATE_RECURRENCE_SETTINGS = defineValidationFeatureMessages({
|
|
|
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',
|