@forwardslashns/taskit-validation-messages 1.10.21 → 1.10.23

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.
Files changed (21) hide show
  1. package/dist/validation/features/account-categories.validation-messages.js +1 -1
  2. package/dist/validation/features/business-activities.validation-messages.js +2 -2
  3. package/dist/validation/features/client-records-addresses.validation-messages.js +2 -2
  4. package/dist/validation/features/filing-categories.validation-messages.js +1 -1
  5. package/dist/validation/features/template-assignments.validation-messages.js +1 -1
  6. package/dist/validation/features/template-information.validation-messages.js +21 -21
  7. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +30 -0
  8. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
  9. package/dist/validation/features/template-recurrence-settings.validation-messages.js +31 -1
  10. package/dist/validation/features/template-states.validation-messages.js +4 -4
  11. package/dist/validation/validation-messages.d.ts +30 -0
  12. package/dist/validation/validation-messages.d.ts.map +1 -1
  13. package/package.json +1 -1
  14. package/src/validation/features/account-categories.validation-messages.ts +1 -1
  15. package/src/validation/features/business-activities.validation-messages.ts +2 -2
  16. package/src/validation/features/client-records-addresses.validation-messages.ts +2 -2
  17. package/src/validation/features/filing-categories.validation-messages.ts +1 -1
  18. package/src/validation/features/template-assignments.validation-messages.ts +1 -1
  19. package/src/validation/features/template-information.validation-messages.ts +21 -21
  20. package/src/validation/features/template-recurrence-settings.validation-messages.ts +34 -1
  21. package/src/validation/features/template-states.validation-messages.ts +4 -4
@@ -12,7 +12,7 @@ exports.ACCOUNT_CATEGORIES = (0, validation_message_types_1.defineValidationFeat
12
12
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
13
  message: `Account category does not exist`,
14
14
  params: ['id'],
15
- affectedFields: ['accountCategoryId'],
15
+ affectedFields: ['accountCategory'],
16
16
  },
17
17
  NAME_ALREADY_EXISTS: {
18
18
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -12,13 +12,13 @@ exports.BUSINESS_ACTIVITIES = (0, validation_message_types_1.defineValidationFea
12
12
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
13
  message: `Business activity does not exist.`,
14
14
  params: ['id'],
15
- affectedFields: ['businessActivityId'],
15
+ affectedFields: ['businessActivity'],
16
16
  },
17
17
  NAME_ALREADY_EXISTS: {
18
18
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
19
19
  message: `Business activity with the same name '{name}' already exists.`,
20
20
  params: ['name'],
21
- affectedFields: ['bussinesActivity'],
21
+ affectedFields: ['businessActivity'],
22
22
  },
23
23
  OPTION_IN_USE: {
24
24
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -37,13 +37,13 @@ exports.CLIENT_RECORDS_ADDRESSES = (0, validation_message_types_1.defineValidati
37
37
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
38
38
  message: `Contact roles do not exist`,
39
39
  params: ['ids'],
40
- affectedFields: ['contactRoleId'],
40
+ affectedFields: ['contact'],
41
41
  },
42
42
  CONTACT_TYPES_NOT_FOUND: {
43
43
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
44
44
  message: `Contact types do not exist`,
45
45
  params: ['ids'],
46
- affectedFields: ['contactTypeId'],
46
+ affectedFields: ['type'],
47
47
  },
48
48
  LEGAL_ADDRESS_MUST_BE_PROVIDED: {
49
49
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -12,7 +12,7 @@ exports.FILING_CATEGORIES = (0, validation_message_types_1.defineValidationFeatu
12
12
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
13
  message: `Filing category does not exist`,
14
14
  params: ['id'],
15
- affectedFields: ['filingCategoryId'],
15
+ affectedFields: ['filingCategory'],
16
16
  },
17
17
  NAME_ALREADY_EXISTS: {
18
18
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -41,7 +41,7 @@ exports.TEMPLATE_ASSIGNMENTS = (0, validation_message_types_1.defineValidationFe
41
41
  WORKFLOW_MUST_BE_REQUIRED: {
42
42
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
43
43
  message: "A workflow assignment must always be required. Please check the 'Required' checkbox to continue",
44
- affectedFields: ['isRequired'],
44
+ affectedFields: ['required'],
45
45
  },
46
46
  WORKFLOW_CANNOT_BE_DELETED: {
47
47
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -62,22 +62,22 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
62
62
  SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
63
63
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
64
64
  message: "Separately charged must be 'Yes' for Billing templates",
65
- affectedFields: ['isSeparatelyCharged'],
65
+ affectedFields: ['separatelyCharged'],
66
66
  },
67
67
  SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
68
68
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
69
69
  message: "Separately charged must be 'No' for Payment templates",
70
- affectedFields: ['isSeparatelyCharged'],
70
+ affectedFields: ['separatelyCharged'],
71
71
  },
72
72
  SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
73
73
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
74
74
  message: "Subject to commission can only be 'Yes' when separately charged is 'Yes'",
75
- affectedFields: ['isSubjectToCommission'],
75
+ affectedFields: ['subjectToCommission'],
76
76
  },
77
77
  SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
78
78
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
79
79
  message: "Subject to commission must be 'Yes' for Billing templates",
80
- affectedFields: ['isSubjectToCommission'],
80
+ affectedFields: ['subjectToCommission'],
81
81
  },
82
82
  ENTITY_TYPE_REQUIRED: {
83
83
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -102,68 +102,68 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
102
102
  FILING_TYPE_REQUIRED: {
103
103
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
104
104
  message: 'Filing type is required',
105
- affectedFields: ['filingTypeId'],
105
+ affectedFields: ['filingType'],
106
106
  },
107
107
  INVALID_FILING_TYPE: {
108
108
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
109
109
  message: 'Invalid filing type',
110
- affectedFields: ['filingTypeId'],
110
+ affectedFields: ['filingType'],
111
111
  },
112
112
  FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
113
113
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
114
114
  message: "A filing template that has state sub-filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated state sub-filings before saving.",
115
- affectedFields: ['filingTypeId'],
115
+ affectedFields: ['filingType'],
116
116
  },
117
117
  FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
118
118
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
119
119
  message: "A filing template that has associated sub-entity filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated sub-entity filing before saving.",
120
- affectedFields: ['filingTypeId'],
120
+ affectedFields: ['filingType'],
121
121
  },
122
122
  FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
123
123
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
124
124
  message: "A filing template that has associated tax payments must be 'Income tax' filing type. Please select 'Income tax' or remove the associated tax payments before saving.",
125
- affectedFields: ['filingTypeId'],
125
+ affectedFields: ['filingType'],
126
126
  },
127
127
  STATE_REQUIRED: {
128
128
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
129
129
  message: 'State is required',
130
- affectedFields: ['stateId'],
130
+ affectedFields: ['state'],
131
131
  },
132
132
  INVALID_STATE: {
133
133
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
134
134
  message: 'Invalid state',
135
- affectedFields: ['stateId'],
135
+ affectedFields: ['state'],
136
136
  },
137
137
  STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
138
138
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
139
139
  message: 'This template is linked to sub-entity filing templates that are set to {SubEntityTemplateState} state, which conflicts with the selected state. Please update the state before saving.',
140
140
  params: ['SubEntityTemplateState'],
141
- affectedFields: ['stateId'],
141
+ affectedFields: ['state'],
142
142
  },
143
143
  FILING_STATUS_REQUIRED: {
144
144
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
145
145
  message: 'Sub/Parent status is required when filing type is Income tax',
146
- affectedFields: ['filingStatusId'],
146
+ affectedFields: ['subParentStatus'],
147
147
  },
148
148
  INVALID_FILING_STATUS: {
149
149
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
150
150
  message: 'Invalid filing status',
151
- affectedFields: ['filingStatusId'],
151
+ affectedFields: ['subParentStatus'],
152
152
  },
153
153
  FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
154
154
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
155
155
  message: 'A filing template with state sub-filings cannot file under a parent. Please select Files separately or remove the associated state sub-filings before saving.',
156
- affectedFields: ['filingStatusId'],
156
+ affectedFields: ['subParentStatus'],
157
157
  },
158
158
  FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
159
159
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
160
160
  message: 'A filing template with sub entity filings cannot file under a parent. Please select Files separately or remove the associated sub entity filings before saving.',
161
- affectedFields: ['filingStatusId'],
161
+ affectedFields: ['subParentStatus'],
162
162
  },
163
163
  FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
164
164
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
165
165
  message: 'A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.',
166
- affectedFields: ['filingStatusId'],
166
+ affectedFields: ['subParentStatus'],
167
167
  },
168
168
  FILES_UNDER_REQUIRED: {
169
169
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -195,22 +195,22 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
195
195
  TAX_PAYMENT_FILING_REQUIRED: {
196
196
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
197
197
  message: 'Tax payment filing is required',
198
- affectedFields: ['taxPaymentFilingId'],
198
+ affectedFields: ['taxPaymentFiling'],
199
199
  },
200
200
  INVALID_TAX_PAYMENT_FILING: {
201
201
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
202
202
  message: 'The selected tax payment filing does not exist',
203
- affectedFields: ['taxPaymentFilingId'],
203
+ affectedFields: ['taxPaymentFiling'],
204
204
  },
205
205
  TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
206
206
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
207
207
  message: 'The selected tax payment filing must be a Filing type template',
208
- affectedFields: ['taxPaymentFilingId'],
208
+ affectedFields: ['taxPaymentFiling'],
209
209
  },
210
210
  SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
211
211
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
212
212
  message: 'The selected associated setup template must be a Setup type template',
213
- affectedFields: ['associatedSetupTemplateId'],
213
+ affectedFields: ['associatedSetupTemplate'],
214
214
  },
215
215
  OPTION_IN_USE: {
216
216
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqJR,MAAM,EAAE;;;;;wBAKR,MAAM,EAAE;;;;;;;;;;;;;CAahC,CAAC"}
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"}
@@ -11,7 +11,7 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
11
11
  RECURRENCE_FREQUENCY_REQUIRED: {
12
12
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
13
  message: 'Recurrence frequency is required',
14
- affectedFields: ['recurrenceFrequency'],
14
+ affectedFields: ['recurrenceFrequencyId'],
15
15
  },
16
16
  RECURRENCE_FREQUENCY_NOT_FOUND: {
17
17
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -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',
@@ -21,17 +21,17 @@ exports.TEMPLATE_STATES = (0, validation_message_types_1.defineValidationFeature
21
21
  STATE_REQUIRED: {
22
22
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
23
23
  message: 'State is required',
24
- affectedFields: ['stateId'],
24
+ affectedFields: ['state'],
25
25
  },
26
26
  INVALID_STATE: {
27
27
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
28
28
  message: 'Invalid state',
29
- affectedFields: ['stateId'],
29
+ affectedFields: ['state'],
30
30
  },
31
31
  STATE_LOCKED_WHEN_IN_USE: {
32
32
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
33
33
  message: 'The State field cannot be changed because this state is already applied to a client.',
34
- affectedFields: ['stateId'],
34
+ affectedFields: ['state'],
35
35
  },
36
36
  DATE_STOPPED_REQUIRED_WHEN_INACTIVE: {
37
37
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -41,7 +41,7 @@ exports.TEMPLATE_STATES = (0, validation_message_types_1.defineValidationFeature
41
41
  IS_ACTIVE_REQUIRED: {
42
42
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
43
43
  message: 'Status is required',
44
- affectedFields: ['isActive'],
44
+ affectedFields: ['active'],
45
45
  },
46
46
  IN_USE_CANNOT_DELETE: {
47
47
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.21",
3
+ "version": "1.10.23",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -10,7 +10,7 @@ export const ACCOUNT_CATEGORIES = defineValidationFeatureMessages({
10
10
  severity: VALIDATION_SEVERITY.ERROR,
11
11
  message: `Account category does not exist`,
12
12
  params: ['id'],
13
- affectedFields: ['accountCategoryId'],
13
+ affectedFields: ['accountCategory'],
14
14
  },
15
15
  NAME_ALREADY_EXISTS: {
16
16
  severity: VALIDATION_SEVERITY.ERROR,
@@ -10,13 +10,13 @@ export const BUSINESS_ACTIVITIES = defineValidationFeatureMessages({
10
10
  severity: VALIDATION_SEVERITY.ERROR,
11
11
  message: `Business activity does not exist.`,
12
12
  params: ['id'],
13
- affectedFields: ['businessActivityId'],
13
+ affectedFields: ['businessActivity'],
14
14
  },
15
15
  NAME_ALREADY_EXISTS: {
16
16
  severity: VALIDATION_SEVERITY.ERROR,
17
17
  message: `Business activity with the same name '{name}' already exists.`,
18
18
  params: ['name'],
19
- affectedFields: ['bussinesActivity'],
19
+ affectedFields: ['businessActivity'],
20
20
  },
21
21
  OPTION_IN_USE: {
22
22
  severity: VALIDATION_SEVERITY.ERROR,
@@ -35,13 +35,13 @@ export const CLIENT_RECORDS_ADDRESSES = defineValidationFeatureMessages({
35
35
  severity: VALIDATION_SEVERITY.ERROR,
36
36
  message: `Contact roles do not exist`,
37
37
  params: ['ids'],
38
- affectedFields: ['contactRoleId'],
38
+ affectedFields: ['contact'],
39
39
  },
40
40
  CONTACT_TYPES_NOT_FOUND: {
41
41
  severity: VALIDATION_SEVERITY.ERROR,
42
42
  message: `Contact types do not exist`,
43
43
  params: ['ids'],
44
- affectedFields: ['contactTypeId'],
44
+ affectedFields: ['type'],
45
45
  },
46
46
  LEGAL_ADDRESS_MUST_BE_PROVIDED: {
47
47
  severity: VALIDATION_SEVERITY.ERROR,
@@ -10,7 +10,7 @@ export const FILING_CATEGORIES = defineValidationFeatureMessages({
10
10
  severity: VALIDATION_SEVERITY.ERROR,
11
11
  message: `Filing category does not exist`,
12
12
  params: ['id'],
13
- affectedFields: ['filingCategoryId'],
13
+ affectedFields: ['filingCategory'],
14
14
  },
15
15
  NAME_ALREADY_EXISTS: {
16
16
  severity: VALIDATION_SEVERITY.ERROR,
@@ -39,7 +39,7 @@ export const TEMPLATE_ASSIGNMENTS = defineValidationFeatureMessages({
39
39
  WORKFLOW_MUST_BE_REQUIRED: {
40
40
  severity: VALIDATION_SEVERITY.ERROR,
41
41
  message: "A workflow assignment must always be required. Please check the 'Required' checkbox to continue",
42
- affectedFields: ['isRequired'],
42
+ affectedFields: ['required'],
43
43
  },
44
44
  WORKFLOW_CANNOT_BE_DELETED: {
45
45
  severity: VALIDATION_SEVERITY.ERROR,
@@ -60,22 +60,22 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
60
60
  SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
61
61
  severity: VALIDATION_SEVERITY.ERROR,
62
62
  message: "Separately charged must be 'Yes' for Billing templates",
63
- affectedFields: ['isSeparatelyCharged'],
63
+ affectedFields: ['separatelyCharged'],
64
64
  },
65
65
  SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
66
66
  severity: VALIDATION_SEVERITY.ERROR,
67
67
  message: "Separately charged must be 'No' for Payment templates",
68
- affectedFields: ['isSeparatelyCharged'],
68
+ affectedFields: ['separatelyCharged'],
69
69
  },
70
70
  SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
71
71
  severity: VALIDATION_SEVERITY.ERROR,
72
72
  message: "Subject to commission can only be 'Yes' when separately charged is 'Yes'",
73
- affectedFields: ['isSubjectToCommission'],
73
+ affectedFields: ['subjectToCommission'],
74
74
  },
75
75
  SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
76
76
  severity: VALIDATION_SEVERITY.ERROR,
77
77
  message: "Subject to commission must be 'Yes' for Billing templates",
78
- affectedFields: ['isSubjectToCommission'],
78
+ affectedFields: ['subjectToCommission'],
79
79
  },
80
80
  ENTITY_TYPE_REQUIRED: {
81
81
  severity: VALIDATION_SEVERITY.ERROR,
@@ -100,75 +100,75 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
100
100
  FILING_TYPE_REQUIRED: {
101
101
  severity: VALIDATION_SEVERITY.ERROR,
102
102
  message: 'Filing type is required',
103
- affectedFields: ['filingTypeId'],
103
+ affectedFields: ['filingType'],
104
104
  },
105
105
  INVALID_FILING_TYPE: {
106
106
  severity: VALIDATION_SEVERITY.ERROR,
107
107
  message: 'Invalid filing type',
108
- affectedFields: ['filingTypeId'],
108
+ affectedFields: ['filingType'],
109
109
  },
110
110
  FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
111
111
  severity: VALIDATION_SEVERITY.ERROR,
112
112
  message:
113
113
  "A filing template that has state sub-filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated state sub-filings before saving.",
114
- affectedFields: ['filingTypeId'],
114
+ affectedFields: ['filingType'],
115
115
  },
116
116
  FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
117
117
  severity: VALIDATION_SEVERITY.ERROR,
118
118
  message:
119
119
  "A filing template that has associated sub-entity filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated sub-entity filing before saving.",
120
- affectedFields: ['filingTypeId'],
120
+ affectedFields: ['filingType'],
121
121
  },
122
122
  FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
123
123
  severity: VALIDATION_SEVERITY.ERROR,
124
124
  message:
125
125
  "A filing template that has associated tax payments must be 'Income tax' filing type. Please select 'Income tax' or remove the associated tax payments before saving.",
126
- affectedFields: ['filingTypeId'],
126
+ affectedFields: ['filingType'],
127
127
  },
128
128
  STATE_REQUIRED: {
129
129
  severity: VALIDATION_SEVERITY.ERROR,
130
130
  message: 'State is required',
131
- affectedFields: ['stateId'],
131
+ affectedFields: ['state'],
132
132
  },
133
133
  INVALID_STATE: {
134
134
  severity: VALIDATION_SEVERITY.ERROR,
135
135
  message: 'Invalid state',
136
- affectedFields: ['stateId'],
136
+ affectedFields: ['state'],
137
137
  },
138
138
  STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
139
139
  severity: VALIDATION_SEVERITY.ERROR,
140
140
  message:
141
141
  'This template is linked to sub-entity filing templates that are set to {SubEntityTemplateState} state, which conflicts with the selected state. Please update the state before saving.',
142
142
  params: ['SubEntityTemplateState'],
143
- affectedFields: ['stateId'],
143
+ affectedFields: ['state'],
144
144
  },
145
145
  FILING_STATUS_REQUIRED: {
146
146
  severity: VALIDATION_SEVERITY.ERROR,
147
147
  message: 'Sub/Parent status is required when filing type is Income tax',
148
- affectedFields: ['filingStatusId'],
148
+ affectedFields: ['subParentStatus'],
149
149
  },
150
150
  INVALID_FILING_STATUS: {
151
151
  severity: VALIDATION_SEVERITY.ERROR,
152
152
  message: 'Invalid filing status',
153
- affectedFields: ['filingStatusId'],
153
+ affectedFields: ['subParentStatus'],
154
154
  },
155
155
  FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
156
156
  severity: VALIDATION_SEVERITY.ERROR,
157
157
  message:
158
158
  'A filing template with state sub-filings cannot file under a parent. Please select Files separately or remove the associated state sub-filings before saving.',
159
- affectedFields: ['filingStatusId'],
159
+ affectedFields: ['subParentStatus'],
160
160
  },
161
161
  FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
162
162
  severity: VALIDATION_SEVERITY.ERROR,
163
163
  message:
164
164
  'A filing template with sub entity filings cannot file under a parent. Please select Files separately or remove the associated sub entity filings before saving.',
165
- affectedFields: ['filingStatusId'],
165
+ affectedFields: ['subParentStatus'],
166
166
  },
167
167
  FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
168
168
  severity: VALIDATION_SEVERITY.ERROR,
169
169
  message:
170
170
  'A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.',
171
- affectedFields: ['filingStatusId'],
171
+ affectedFields: ['subParentStatus'],
172
172
  },
173
173
  FILES_UNDER_REQUIRED: {
174
174
  severity: VALIDATION_SEVERITY.ERROR,
@@ -202,22 +202,22 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
202
202
  TAX_PAYMENT_FILING_REQUIRED: {
203
203
  severity: VALIDATION_SEVERITY.ERROR,
204
204
  message: 'Tax payment filing is required',
205
- affectedFields: ['taxPaymentFilingId'],
205
+ affectedFields: ['taxPaymentFiling'],
206
206
  },
207
207
  INVALID_TAX_PAYMENT_FILING: {
208
208
  severity: VALIDATION_SEVERITY.ERROR,
209
209
  message: 'The selected tax payment filing does not exist',
210
- affectedFields: ['taxPaymentFilingId'],
210
+ affectedFields: ['taxPaymentFiling'],
211
211
  },
212
212
  TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
213
213
  severity: VALIDATION_SEVERITY.ERROR,
214
214
  message: 'The selected tax payment filing must be a Filing type template',
215
- affectedFields: ['taxPaymentFilingId'],
215
+ affectedFields: ['taxPaymentFiling'],
216
216
  },
217
217
  SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
218
218
  severity: VALIDATION_SEVERITY.ERROR,
219
219
  message: 'The selected associated setup template must be a Setup type template',
220
- affectedFields: ['associatedSetupTemplateId'],
220
+ affectedFields: ['associatedSetupTemplate'],
221
221
  },
222
222
  OPTION_IN_USE: {
223
223
  severity: VALIDATION_SEVERITY.ERROR,
@@ -9,7 +9,7 @@ export const TEMPLATE_RECURRENCE_SETTINGS = defineValidationFeatureMessages({
9
9
  RECURRENCE_FREQUENCY_REQUIRED: {
10
10
  severity: VALIDATION_SEVERITY.ERROR,
11
11
  message: 'Recurrence frequency is required',
12
- affectedFields: ['recurrenceFrequency'],
12
+ affectedFields: ['recurrenceFrequencyId'],
13
13
  },
14
14
  RECURRENCE_FREQUENCY_NOT_FOUND: {
15
15
  severity: VALIDATION_SEVERITY.ERROR,
@@ -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',
@@ -19,17 +19,17 @@ export const TEMPLATE_STATES = defineValidationFeatureMessages({
19
19
  STATE_REQUIRED: {
20
20
  severity: VALIDATION_SEVERITY.ERROR,
21
21
  message: 'State is required',
22
- affectedFields: ['stateId'],
22
+ affectedFields: ['state'],
23
23
  },
24
24
  INVALID_STATE: {
25
25
  severity: VALIDATION_SEVERITY.ERROR,
26
26
  message: 'Invalid state',
27
- affectedFields: ['stateId'],
27
+ affectedFields: ['state'],
28
28
  },
29
29
  STATE_LOCKED_WHEN_IN_USE: {
30
30
  severity: VALIDATION_SEVERITY.ERROR,
31
31
  message: 'The State field cannot be changed because this state is already applied to a client.',
32
- affectedFields: ['stateId'],
32
+ affectedFields: ['state'],
33
33
  },
34
34
  DATE_STOPPED_REQUIRED_WHEN_INACTIVE: {
35
35
  severity: VALIDATION_SEVERITY.ERROR,
@@ -39,7 +39,7 @@ export const TEMPLATE_STATES = defineValidationFeatureMessages({
39
39
  IS_ACTIVE_REQUIRED: {
40
40
  severity: VALIDATION_SEVERITY.ERROR,
41
41
  message: 'Status is required',
42
- affectedFields: ['isActive'],
42
+ affectedFields: ['active'],
43
43
  },
44
44
  IN_USE_CANNOT_DELETE: {
45
45
  severity: VALIDATION_SEVERITY.ERROR,