@forwardslashns/taskit-validation-messages 1.10.22 → 1.10.24

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.d.ts +30 -0
  7. package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
  8. package/dist/validation/features/template-information.validation-messages.js +51 -21
  9. package/dist/validation/features/template-recurrence-settings.validation-messages.js +1 -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 +56 -21
  20. package/src/validation/features/template-recurrence-settings.validation-messages.ts +1 -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,
@@ -203,6 +203,36 @@ export declare const TEMPLATE_INFORMATION: {
203
203
  message: string;
204
204
  affectedFields: string[];
205
205
  };
206
+ TAX_PAYMENT_FILING_MUST_HAVE_ANNUAL_RECURRENCE: {
207
+ severity: "error";
208
+ message: string;
209
+ params: string[];
210
+ affectedFields: string[];
211
+ };
212
+ TAX_PAYMENT_FILING_MUST_BE_INCOME_TAX: {
213
+ severity: "error";
214
+ message: string;
215
+ params: string[];
216
+ affectedFields: string[];
217
+ };
218
+ TAX_PAYMENT_FILING_STATE_MISMATCH: {
219
+ severity: "error";
220
+ message: string;
221
+ params: string[];
222
+ affectedFields: string[];
223
+ };
224
+ TAX_PAYMENT_FILING_MUST_FILE_SEPARATELY: {
225
+ severity: "error";
226
+ message: string;
227
+ params: string[];
228
+ affectedFields: string[];
229
+ };
230
+ TAX_PAYMENT_FILING_ASSOCIATED_ENTITIES_MISMATCH: {
231
+ severity: "error";
232
+ message: string;
233
+ params: string[];
234
+ affectedFields: string[];
235
+ };
206
236
  SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
207
237
  severity: "error";
208
238
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"template-information.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-information.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqO/B,CAAC"}
1
+ {"version":3,"file":"template-information.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-information.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwQ/B,CAAC"}
@@ -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,52 @@ 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
+ },
210
+ TAX_PAYMENT_FILING_MUST_HAVE_ANNUAL_RECURRENCE: {
211
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
212
+ message: 'Tax payments can only be associated with filings on an annual recurrence. {FilingTemplateName} is not set to recur annually. Please add an annual recurrence to {FilingTemplateName}, or select a different filing template.',
213
+ params: ['FilingTemplateName'],
214
+ affectedFields: ['taxPaymentFiling'],
215
+ },
216
+ TAX_PAYMENT_FILING_MUST_BE_INCOME_TAX: {
217
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
218
+ message: 'A tax payment must be associated with an income tax filing. {FilingTemplateName} is set to {FilingTemplateFilingType}. Please select a filing template with filing type set to income tax.',
219
+ params: ['FilingTemplateName', 'FilingTemplateFilingType'],
220
+ affectedFields: ['taxPaymentFiling'],
221
+ },
222
+ TAX_PAYMENT_FILING_STATE_MISMATCH: {
223
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
224
+ message: "{FilingTemplateName} is set to {FilingTemplateState}, which conflicts with this template's state. Please select a different filing template or update the state before saving.",
225
+ params: ['FilingTemplateName', 'FilingTemplateState'],
226
+ affectedFields: ['taxPaymentFiling'],
227
+ },
228
+ TAX_PAYMENT_FILING_MUST_FILE_SEPARATELY: {
229
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
230
+ message: "Tax payments can only be associated with filings that file separately. {FilingTemplateName} is set as 'Filing under parent'. Please select a different filing template.",
231
+ params: ['FilingTemplateName'],
232
+ affectedFields: ['taxPaymentFiling'],
233
+ },
234
+ TAX_PAYMENT_FILING_ASSOCIATED_ENTITIES_MISMATCH: {
235
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
236
+ message: "{FilingTemplateName} is set to {FilingTemplateAssociatedEntities}, which conflicts with this template's associated entities. Please update the associated entities before saving.",
237
+ params: ['FilingTemplateName', 'FilingTemplateAssociatedEntities'],
238
+ affectedFields: ['taxPaymentFiling'],
209
239
  },
210
240
  SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
211
241
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
212
242
  message: 'The selected associated setup template must be a Setup type template',
213
- affectedFields: ['associatedSetupTemplateId'],
243
+ affectedFields: ['associatedSetupTemplate'],
214
244
  },
215
245
  OPTION_IN_USE: {
216
246
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
@@ -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,
@@ -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,
@@ -1505,6 +1505,36 @@ export declare const VALIDATION_MESSAGES: {
1505
1505
  message: string;
1506
1506
  affectedFields: string[];
1507
1507
  };
1508
+ TAX_PAYMENT_FILING_MUST_HAVE_ANNUAL_RECURRENCE: {
1509
+ severity: "error";
1510
+ message: string;
1511
+ params: string[];
1512
+ affectedFields: string[];
1513
+ };
1514
+ TAX_PAYMENT_FILING_MUST_BE_INCOME_TAX: {
1515
+ severity: "error";
1516
+ message: string;
1517
+ params: string[];
1518
+ affectedFields: string[];
1519
+ };
1520
+ TAX_PAYMENT_FILING_STATE_MISMATCH: {
1521
+ severity: "error";
1522
+ message: string;
1523
+ params: string[];
1524
+ affectedFields: string[];
1525
+ };
1526
+ TAX_PAYMENT_FILING_MUST_FILE_SEPARATELY: {
1527
+ severity: "error";
1528
+ message: string;
1529
+ params: string[];
1530
+ affectedFields: string[];
1531
+ };
1532
+ TAX_PAYMENT_FILING_ASSOCIATED_ENTITIES_MISMATCH: {
1533
+ severity: "error";
1534
+ message: string;
1535
+ params: string[];
1536
+ affectedFields: string[];
1537
+ };
1508
1538
  SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
1509
1539
  severity: "error";
1510
1540
  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.22",
3
+ "version": "1.10.24",
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,57 @@ 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
+ },
217
+ TAX_PAYMENT_FILING_MUST_HAVE_ANNUAL_RECURRENCE: {
218
+ severity: VALIDATION_SEVERITY.ERROR,
219
+ message:
220
+ 'Tax payments can only be associated with filings on an annual recurrence. {FilingTemplateName} is not set to recur annually. Please add an annual recurrence to {FilingTemplateName}, or select a different filing template.',
221
+ params: ['FilingTemplateName'],
222
+ affectedFields: ['taxPaymentFiling'],
223
+ },
224
+ TAX_PAYMENT_FILING_MUST_BE_INCOME_TAX: {
225
+ severity: VALIDATION_SEVERITY.ERROR,
226
+ message:
227
+ 'A tax payment must be associated with an income tax filing. {FilingTemplateName} is set to {FilingTemplateFilingType}. Please select a filing template with filing type set to income tax.',
228
+ params: ['FilingTemplateName', 'FilingTemplateFilingType'],
229
+ affectedFields: ['taxPaymentFiling'],
230
+ },
231
+ TAX_PAYMENT_FILING_STATE_MISMATCH: {
232
+ severity: VALIDATION_SEVERITY.ERROR,
233
+ message:
234
+ "{FilingTemplateName} is set to {FilingTemplateState}, which conflicts with this template's state. Please select a different filing template or update the state before saving.",
235
+ params: ['FilingTemplateName', 'FilingTemplateState'],
236
+ affectedFields: ['taxPaymentFiling'],
237
+ },
238
+ TAX_PAYMENT_FILING_MUST_FILE_SEPARATELY: {
239
+ severity: VALIDATION_SEVERITY.ERROR,
240
+ message:
241
+ "Tax payments can only be associated with filings that file separately. {FilingTemplateName} is set as 'Filing under parent'. Please select a different filing template.",
242
+ params: ['FilingTemplateName'],
243
+ affectedFields: ['taxPaymentFiling'],
244
+ },
245
+ TAX_PAYMENT_FILING_ASSOCIATED_ENTITIES_MISMATCH: {
246
+ severity: VALIDATION_SEVERITY.ERROR,
247
+ message:
248
+ "{FilingTemplateName} is set to {FilingTemplateAssociatedEntities}, which conflicts with this template's associated entities. Please update the associated entities before saving.",
249
+ params: ['FilingTemplateName', 'FilingTemplateAssociatedEntities'],
250
+ affectedFields: ['taxPaymentFiling'],
216
251
  },
217
252
  SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
218
253
  severity: VALIDATION_SEVERITY.ERROR,
219
254
  message: 'The selected associated setup template must be a Setup type template',
220
- affectedFields: ['associatedSetupTemplateId'],
255
+ affectedFields: ['associatedSetupTemplate'],
221
256
  },
222
257
  OPTION_IN_USE: {
223
258
  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,
@@ -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,