@forwardslashns/taskit-validation-messages 1.10.32 → 1.10.34
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-templates.validation-messages.js +1 -1
- package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +3 -18
- package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-recurrence-settings.validation-messages.js +6 -21
- package/dist/validation/validation-messages.d.ts +3 -18
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/client-templates.validation-messages.ts +1 -1
- package/src/validation/features/template-recurrence-settings.validation-messages.ts +6 -21
|
@@ -21,7 +21,7 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
21
21
|
CUSTOMER_CONTACT_INVALID: {
|
|
22
22
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
23
23
|
message: 'Selected customer contact does not belong to the client',
|
|
24
|
-
affectedFields: ['billingAndPayments.
|
|
24
|
+
affectedFields: ['billingAndPayments.customerContact'],
|
|
25
25
|
},
|
|
26
26
|
ENDING_BEFORE_STARTING: {
|
|
27
27
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -62,12 +62,7 @@ export declare const TEMPLATE_RECURRENCE_SETTINGS: {
|
|
|
62
62
|
message: string;
|
|
63
63
|
affectedFields: string[];
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
severity: "error";
|
|
67
|
-
message: string;
|
|
68
|
-
affectedFields: string[];
|
|
69
|
-
};
|
|
70
|
-
SECOND_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
65
|
+
SECOND_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
71
66
|
severity: "error";
|
|
72
67
|
message: string;
|
|
73
68
|
affectedFields: string[];
|
|
@@ -82,12 +77,7 @@ export declare const TEMPLATE_RECURRENCE_SETTINGS: {
|
|
|
82
77
|
message: string;
|
|
83
78
|
affectedFields: string[];
|
|
84
79
|
};
|
|
85
|
-
|
|
86
|
-
severity: "error";
|
|
87
|
-
message: string;
|
|
88
|
-
affectedFields: string[];
|
|
89
|
-
};
|
|
90
|
-
THIRD_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
80
|
+
THIRD_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
91
81
|
severity: "error";
|
|
92
82
|
message: string;
|
|
93
83
|
affectedFields: string[];
|
|
@@ -102,12 +92,7 @@ export declare const TEMPLATE_RECURRENCE_SETTINGS: {
|
|
|
102
92
|
message: string;
|
|
103
93
|
affectedFields: string[];
|
|
104
94
|
};
|
|
105
|
-
|
|
106
|
-
severity: "error";
|
|
107
|
-
message: string;
|
|
108
|
-
affectedFields: string[];
|
|
109
|
-
};
|
|
110
|
-
FOURTH_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
95
|
+
FOURTH_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
111
96
|
severity: "error";
|
|
112
97
|
message: string;
|
|
113
98
|
affectedFields: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuKR,MAAM,EAAE;;;;;wBAKR,MAAM,EAAE;;;;;;;;;;;;;;;;;;;CAoBhC,CAAC"}
|
|
@@ -66,14 +66,9 @@ 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
|
-
|
|
69
|
+
SECOND_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
70
70
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
71
|
-
message: 'The second month must
|
|
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.',
|
|
71
|
+
message: 'The second month must fall within 12 months of the first month selected. Please update your selection before saving.',
|
|
77
72
|
affectedFields: ['secondMonth'],
|
|
78
73
|
},
|
|
79
74
|
THIRD_MONTH_REQUIRED: {
|
|
@@ -86,14 +81,9 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
86
81
|
message: 'Third month must be a value between 1 and 12.',
|
|
87
82
|
affectedFields: ['thirdMonth'],
|
|
88
83
|
},
|
|
89
|
-
|
|
84
|
+
THIRD_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
90
85
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
91
|
-
message: 'The third month must
|
|
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.',
|
|
86
|
+
message: 'The third month must fall within 12 months of the first month selected. Please update your selection before saving.',
|
|
97
87
|
affectedFields: ['thirdMonth'],
|
|
98
88
|
},
|
|
99
89
|
FOURTH_MONTH_REQUIRED: {
|
|
@@ -106,14 +96,9 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
106
96
|
message: 'Fourth month must be a value between 1 and 12.',
|
|
107
97
|
affectedFields: ['fourthMonth'],
|
|
108
98
|
},
|
|
109
|
-
|
|
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: {
|
|
99
|
+
FOURTH_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
115
100
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
116
|
-
message: 'The fourth month
|
|
101
|
+
message: 'The fourth month must fall within 12 months of the first month selected. Please update your selection before saving.',
|
|
117
102
|
affectedFields: ['fourthMonth'],
|
|
118
103
|
},
|
|
119
104
|
DAY_OF_MONTH_REQUIRED: {
|
|
@@ -1784,12 +1784,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1784
1784
|
message: string;
|
|
1785
1785
|
affectedFields: string[];
|
|
1786
1786
|
};
|
|
1787
|
-
|
|
1788
|
-
severity: "error";
|
|
1789
|
-
message: string;
|
|
1790
|
-
affectedFields: string[];
|
|
1791
|
-
};
|
|
1792
|
-
SECOND_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
1787
|
+
SECOND_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
1793
1788
|
severity: "error";
|
|
1794
1789
|
message: string;
|
|
1795
1790
|
affectedFields: string[];
|
|
@@ -1804,12 +1799,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1804
1799
|
message: string;
|
|
1805
1800
|
affectedFields: string[];
|
|
1806
1801
|
};
|
|
1807
|
-
|
|
1808
|
-
severity: "error";
|
|
1809
|
-
message: string;
|
|
1810
|
-
affectedFields: string[];
|
|
1811
|
-
};
|
|
1812
|
-
THIRD_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
1802
|
+
THIRD_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
1813
1803
|
severity: "error";
|
|
1814
1804
|
message: string;
|
|
1815
1805
|
affectedFields: string[];
|
|
@@ -1824,12 +1814,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1824
1814
|
message: string;
|
|
1825
1815
|
affectedFields: string[];
|
|
1826
1816
|
};
|
|
1827
|
-
|
|
1828
|
-
severity: "error";
|
|
1829
|
-
message: string;
|
|
1830
|
-
affectedFields: string[];
|
|
1831
|
-
};
|
|
1832
|
-
FOURTH_MONTH_CANNOT_BE_MORE_THAN_12_MONTHS_AFTER_FIRST_MONTH: {
|
|
1817
|
+
FOURTH_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
1833
1818
|
severity: "error";
|
|
1834
1819
|
message: string;
|
|
1835
1820
|
affectedFields: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts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;;;;;;;;;;;;;CA6BtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
19
19
|
CUSTOMER_CONTACT_INVALID: {
|
|
20
20
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
21
21
|
message: 'Selected customer contact does not belong to the client',
|
|
22
|
-
affectedFields: ['billingAndPayments.
|
|
22
|
+
affectedFields: ['billingAndPayments.customerContact'],
|
|
23
23
|
},
|
|
24
24
|
ENDING_BEFORE_STARTING: {
|
|
25
25
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -68,15 +68,10 @@ 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
|
-
|
|
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: {
|
|
71
|
+
SECOND_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
77
72
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
78
73
|
message:
|
|
79
|
-
'The second month
|
|
74
|
+
'The second month must fall within 12 months of the first month selected. Please update your selection before saving.',
|
|
80
75
|
affectedFields: ['secondMonth'],
|
|
81
76
|
},
|
|
82
77
|
THIRD_MONTH_REQUIRED: {
|
|
@@ -89,15 +84,10 @@ export const TEMPLATE_RECURRENCE_SETTINGS = defineValidationFeatureMessages({
|
|
|
89
84
|
message: 'Third month must be a value between 1 and 12.',
|
|
90
85
|
affectedFields: ['thirdMonth'],
|
|
91
86
|
},
|
|
92
|
-
|
|
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: {
|
|
87
|
+
THIRD_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
98
88
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
99
89
|
message:
|
|
100
|
-
'The third month
|
|
90
|
+
'The third month must fall within 12 months of the first month selected. Please update your selection before saving.',
|
|
101
91
|
affectedFields: ['thirdMonth'],
|
|
102
92
|
},
|
|
103
93
|
FOURTH_MONTH_REQUIRED: {
|
|
@@ -110,15 +100,10 @@ export const TEMPLATE_RECURRENCE_SETTINGS = defineValidationFeatureMessages({
|
|
|
110
100
|
message: 'Fourth month must be a value between 1 and 12.',
|
|
111
101
|
affectedFields: ['fourthMonth'],
|
|
112
102
|
},
|
|
113
|
-
|
|
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: {
|
|
103
|
+
FOURTH_MONTH_MUST_FALL_WITHIN_12_MONTHS_OF_FIRST_MONTH: {
|
|
119
104
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
120
105
|
message:
|
|
121
|
-
'The fourth month
|
|
106
|
+
'The fourth month must fall within 12 months of the first month selected. Please update your selection before saving.',
|
|
122
107
|
affectedFields: ['fourthMonth'],
|
|
123
108
|
},
|
|
124
109
|
DAY_OF_MONTH_REQUIRED: {
|