@forwardslashns/taskit-validation-messages 1.10.42 → 1.10.44
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/account-categories.validation-messages.js +1 -1
- package/dist/validation/features/account-ids.validation-messages.js +1 -1
- package/dist/validation/features/business-activities.validation-messages.js +1 -1
- package/dist/validation/features/client-current-entity-statuses.validation-messages.js +6 -6
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +10 -10
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +10 -10
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +10 -10
- package/dist/validation/features/client-records-outside-providers.validation-messages.js +1 -1
- package/dist/validation/features/client-relationships-common.validation-messages.js +13 -13
- package/dist/validation/features/client-relationships-income-sources.validation-messages.js +2 -2
- package/dist/validation/features/client-relationships-owners.validation-messages.js +2 -2
- package/dist/validation/features/client-template-assignments.validation-messages.js +1 -1
- package/dist/validation/features/client-templates.validation-messages.js +1 -1
- package/dist/validation/features/filing-categories.validation-messages.js +1 -1
- package/dist/validation/features/income-accounts.validation-messages.js +1 -1
- package/dist/validation/features/roles-and-permissions.validation-messages.js +3 -3
- package/dist/validation/features/states.validation-messages.js +3 -3
- package/dist/validation/features/template-assignments.validation-messages.js +1 -1
- package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-information.validation-messages.js +16 -16
- 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 -6
- package/dist/validation/features/user-preferences.validation-messages.js +1 -1
- package/dist/validation/features/users.validation-messages.js +5 -5
- package/dist/validation/validation-message.formatter.d.ts.map +1 -1
- package/dist/validation/validation-message.formatter.js +7 -1
- package/package.json +1 -1
- package/src/validation/features/account-categories.validation-messages.ts +1 -1
- package/src/validation/features/account-ids.validation-messages.ts +1 -1
- package/src/validation/features/business-activities.validation-messages.ts +1 -1
- package/src/validation/features/client-current-entity-statuses.validation-messages.ts +6 -6
- package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +10 -10
- package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +10 -10
- package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts +10 -10
- package/src/validation/features/client-records-outside-providers.validation-messages.ts +1 -1
- package/src/validation/features/client-relationships-common.validation-messages.ts +13 -13
- package/src/validation/features/client-relationships-income-sources.validation-messages.ts +2 -2
- package/src/validation/features/client-relationships-owners.validation-messages.ts +2 -2
- package/src/validation/features/client-template-assignments.validation-messages.ts +1 -1
- package/src/validation/features/client-templates.validation-messages.ts +1 -1
- package/src/validation/features/filing-categories.validation-messages.ts +1 -1
- package/src/validation/features/income-accounts.validation-messages.ts +1 -1
- package/src/validation/features/roles-and-permissions.validation-messages.ts +3 -3
- package/src/validation/features/states.validation-messages.ts +3 -3
- package/src/validation/features/template-assignments.validation-messages.ts +1 -1
- package/src/validation/features/template-information.validation-messages.ts +16 -31
- package/src/validation/features/template-recurrence-settings.validation-messages.ts +6 -10
- package/src/validation/features/user-preferences.validation-messages.ts +1 -1
- package/src/validation/features/users.validation-messages.ts +5 -5
- package/src/validation/validation-message.formatter.ts +9 -1
|
@@ -10,7 +10,7 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
10
10
|
},
|
|
11
11
|
NAME_ALREADY_EXISTS: {
|
|
12
12
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
13
|
-
message:
|
|
13
|
+
message: 'Template with the name {name} already exists',
|
|
14
14
|
params: ['name'],
|
|
15
15
|
affectedFields: ['name'],
|
|
16
16
|
},
|
|
@@ -136,19 +136,19 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
136
136
|
},
|
|
137
137
|
STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
|
|
138
138
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
139
|
-
message:
|
|
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
141
|
affectedFields: ['state'],
|
|
142
142
|
},
|
|
143
143
|
STATE_MISMATCH_WITH_ASSOCIATED_TAX_PAYMENTS: {
|
|
144
144
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
145
|
-
message:
|
|
145
|
+
message: `This template has associated tax payments that are set to {taxPaymentTemplateState} state, which conflicts with the selected state. Please update the state before saving.`,
|
|
146
146
|
params: ['taxPaymentTemplateState'],
|
|
147
147
|
affectedFields: ['state'],
|
|
148
148
|
},
|
|
149
149
|
STATE_MISMATCH_WITH_PARENT_FILING: {
|
|
150
150
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
151
|
-
message:
|
|
151
|
+
message: `This template is filing under a parent that is set to {parentFilingTemplateState}, which conflicts with the selected state. Please update the state before saving.`,
|
|
152
152
|
params: ['parentFilingTemplateState'],
|
|
153
153
|
affectedFields: ['state'],
|
|
154
154
|
},
|
|
@@ -194,25 +194,25 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
194
194
|
},
|
|
195
195
|
FILES_UNDER_MUST_BE_INCOME_TAX: {
|
|
196
196
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
197
|
-
message:
|
|
197
|
+
message: `A parent filing must be an 'Income tax' filing. {parentName} is set to {parentFilingType}. Please select a parent filing with 'Filing type' set to 'Income tax'.`,
|
|
198
198
|
params: ['parentName', 'parentFilingType'],
|
|
199
199
|
affectedFields: ['filesUnder'],
|
|
200
200
|
},
|
|
201
201
|
FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
|
|
202
202
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
203
|
-
message:
|
|
203
|
+
message: `A parent filing must be on an annual recurrence. {parentName} does not have an annual recurrence setup. Please add an annual recurrence for {parentName}, or select a different parent filing.`,
|
|
204
204
|
params: ['parentName'],
|
|
205
205
|
affectedFields: ['filesUnder'],
|
|
206
206
|
},
|
|
207
207
|
FILES_UNDER_PARENT_STATE_MISMATCH: {
|
|
208
208
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
209
|
-
message:
|
|
209
|
+
message: `{parentFilingTemplateName} is set to {parentFilingState} state, which conflicts with this filing template's state. Please select a different parent template or update the state before saving.`,
|
|
210
210
|
params: ['parentFilingTemplateName', 'parentFilingState'],
|
|
211
211
|
affectedFields: ['filesUnder'],
|
|
212
212
|
},
|
|
213
213
|
PARENT_FILING_CANNOT_FILE_UNDER_PARENT: {
|
|
214
214
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
215
|
-
message:
|
|
215
|
+
message: `{parentFilingTemplateName} is set as 'Filing under parent' and cannot be a parent template. Please select a different parent template.`,
|
|
216
216
|
params: ['parentFilingTemplateName'],
|
|
217
217
|
affectedFields: ['filesUnder'],
|
|
218
218
|
},
|
|
@@ -233,31 +233,31 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
233
233
|
},
|
|
234
234
|
TAX_PAYMENT_FILING_MUST_HAVE_ANNUAL_RECURRENCE: {
|
|
235
235
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
236
|
-
message:
|
|
236
|
+
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.`,
|
|
237
237
|
params: ['filingTemplateName'],
|
|
238
238
|
affectedFields: ['taxPaymentFiling'],
|
|
239
239
|
},
|
|
240
240
|
TAX_PAYMENT_FILING_MUST_BE_INCOME_TAX: {
|
|
241
241
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
242
|
-
message:
|
|
242
|
+
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.`,
|
|
243
243
|
params: ['filingTemplateName', 'filingTemplateFilingType'],
|
|
244
244
|
affectedFields: ['taxPaymentFiling'],
|
|
245
245
|
},
|
|
246
246
|
TAX_PAYMENT_FILING_STATE_MISMATCH: {
|
|
247
247
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
248
|
-
message:
|
|
248
|
+
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.`,
|
|
249
249
|
params: ['filingTemplateName', 'filingTemplateState'],
|
|
250
250
|
affectedFields: ['taxPaymentFiling'],
|
|
251
251
|
},
|
|
252
252
|
TAX_PAYMENT_FILING_MUST_FILE_SEPARATELY: {
|
|
253
253
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
254
|
-
message:
|
|
254
|
+
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.`,
|
|
255
255
|
params: ['filingTemplateName'],
|
|
256
256
|
affectedFields: ['taxPaymentFiling'],
|
|
257
257
|
},
|
|
258
258
|
TAX_PAYMENT_FILING_ASSOCIATED_ENTITIES_MISMATCH: {
|
|
259
259
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
260
|
-
message:
|
|
260
|
+
message: `{filingTemplateName} is set to {filingTemplateAssociatedEntities}, which conflicts with this template's associated entities. Please update the associated entities before saving.`,
|
|
261
261
|
params: ['filingTemplateName', 'filingTemplateAssociatedEntities'],
|
|
262
262
|
affectedFields: ['taxPaymentFiling'],
|
|
263
263
|
},
|
|
@@ -278,19 +278,19 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
278
278
|
},
|
|
279
279
|
MAIN_FILING_MUST_BE_INCOME_TAX: {
|
|
280
280
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
281
|
-
message:
|
|
281
|
+
message: `A main filing must be an income tax filing. {mainFilingName} is set to {mainFilingFilingType}. Please select a filing template with filing type set to income tax.`,
|
|
282
282
|
params: ['mainFilingName', 'mainFilingFilingType'],
|
|
283
283
|
affectedFields: ['taxPaymentFiling'],
|
|
284
284
|
},
|
|
285
285
|
MAIN_FILING_MUST_FILE_SEPARATELY: {
|
|
286
286
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
287
|
-
message:
|
|
287
|
+
message: `Tax payments can only be associated with filings that file separately. {mainFilingName} is set as 'Filing under parent'. Please select a different filing template.`,
|
|
288
288
|
params: ['mainFilingName'],
|
|
289
289
|
affectedFields: ['taxPaymentFiling'],
|
|
290
290
|
},
|
|
291
291
|
MAIN_FILING_MUST_HAVE_ANNUAL_RECURRENCE: {
|
|
292
292
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
293
|
-
message:
|
|
293
|
+
message: `Tax payments can only be associated with filings on an annual recurrence. {mainFilingName} is not set to recur annually. Please add an annual recurrence to {mainFilingName}, or select a different filing template.`,
|
|
294
294
|
params: ['mainFilingName'],
|
|
295
295
|
affectedFields: ['taxPaymentFiling'],
|
|
296
296
|
},
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoKR,MAAM,EAAE;;;;;wBAKR,MAAM,EAAE;;;;;;;;;;;;;;;;;;;CAmBhC,CAAC"}
|
|
@@ -20,7 +20,7 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
20
20
|
},
|
|
21
21
|
RECURRENCE_FREQUENCY_ALREADY_EXISTS: {
|
|
22
22
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
23
|
-
message:
|
|
23
|
+
message: `Each recurrence frequency can only be added to a template once. A recurrence for {recurrenceFrequency} already exists. Please edit that recurrence setup, or change the recurrence frequency selected here before saving.`,
|
|
24
24
|
params: ['recurrenceFrequency'],
|
|
25
25
|
affectedFields: ['recurrenceFrequencyId'],
|
|
26
26
|
},
|
|
@@ -31,7 +31,7 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
31
31
|
},
|
|
32
32
|
BASED_ON_MUST_BE_PERIOD: {
|
|
33
33
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
34
|
-
message:
|
|
34
|
+
message: `A {templateType} template recurrence must always be based on 'Period'. Please update your selection before saving.`,
|
|
35
35
|
params: ['templateType'],
|
|
36
36
|
affectedFields: ['basedOn'],
|
|
37
37
|
},
|
|
@@ -42,7 +42,7 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
42
42
|
},
|
|
43
43
|
BASED_ON_MUST_BE_DATE: {
|
|
44
44
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
45
|
-
message:
|
|
45
|
+
message: `A {templateType} template recurrence must always be based on 'Date'. Please update your selection before saving.`,
|
|
46
46
|
params: ['templateType'],
|
|
47
47
|
affectedFields: ['basedOn'],
|
|
48
48
|
},
|
|
@@ -158,7 +158,7 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
158
158
|
},
|
|
159
159
|
DAY_EXCEEDS_MONTH_MAX: {
|
|
160
160
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
161
|
-
message: `Day
|
|
161
|
+
message: `Day {dayOfMonth} is not valid for {monthName}. The maximum allowed day is {maxDays}.`,
|
|
162
162
|
params: ['dayOfMonth', 'monthName', 'maxDays'],
|
|
163
163
|
affectedFields: ['dayOfMonth'],
|
|
164
164
|
},
|
|
@@ -179,13 +179,13 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
179
179
|
},
|
|
180
180
|
RECURRENCE_REQUIRED_FOR_TEMPLATE_TYPE: {
|
|
181
181
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
182
|
-
message: `A
|
|
182
|
+
message: `A {templateType} template must have a recurrence set up. Please add a recurrence before saving.`,
|
|
183
183
|
params: ['templateType'],
|
|
184
184
|
affectedFields: ['recurrenceSettings'],
|
|
185
185
|
},
|
|
186
186
|
FILES_UNDER_INHERITS_PARENT_ANNUAL_RECURRENCE: {
|
|
187
187
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
188
|
-
message:
|
|
188
|
+
message: `This template files under {parentName} and inherits its annual recurrence schedule. Recurrence settings cannot be added or edited here.`,
|
|
189
189
|
params: ['parentName'],
|
|
190
190
|
affectedFields: ['recurrenceSettings'],
|
|
191
191
|
},
|
|
@@ -5,7 +5,7 @@ const validation_message_types_1 = require("../validation-message.types");
|
|
|
5
5
|
exports.USER_PREFERENCES = (0, validation_message_types_1.defineValidationFeatureMessages)({
|
|
6
6
|
FEATURE_DOES_NOT_EXIST: {
|
|
7
7
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
8
|
-
message: `Feature with name
|
|
8
|
+
message: `Feature with name {feature} does not exist`,
|
|
9
9
|
params: ['feature'],
|
|
10
10
|
affectedFields: ['feature'],
|
|
11
11
|
},
|
|
@@ -5,13 +5,13 @@ const validation_message_types_1 = require("../validation-message.types");
|
|
|
5
5
|
exports.USERS = (0, validation_message_types_1.defineValidationFeatureMessages)({
|
|
6
6
|
USERNAME_DOES_NOT_EXIST: {
|
|
7
7
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
8
|
-
message: `User with username
|
|
8
|
+
message: `User with username {username} does not exist.`,
|
|
9
9
|
params: ['username'],
|
|
10
10
|
affectedFields: ['userName'],
|
|
11
11
|
},
|
|
12
12
|
INVALID_PASSWORD: {
|
|
13
13
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
14
|
-
message: `User with username
|
|
14
|
+
message: `User with username {username} password does not match.`,
|
|
15
15
|
params: ['username'],
|
|
16
16
|
affectedFields: ['password'],
|
|
17
17
|
},
|
|
@@ -32,13 +32,13 @@ exports.USERS = (0, validation_message_types_1.defineValidationFeatureMessages)(
|
|
|
32
32
|
},
|
|
33
33
|
USERNAME_ALREADY_EXISTS: {
|
|
34
34
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
35
|
-
message: `User with username
|
|
35
|
+
message: `User with username {username} already exists`,
|
|
36
36
|
params: ['username'],
|
|
37
37
|
affectedFields: ['userName'],
|
|
38
38
|
},
|
|
39
39
|
EMAIL_ALREADY_EXISTS: {
|
|
40
40
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
41
|
-
message: `User with email
|
|
41
|
+
message: `User with email {email} already exists`,
|
|
42
42
|
params: ['email'],
|
|
43
43
|
affectedFields: ['email'],
|
|
44
44
|
},
|
|
@@ -61,7 +61,7 @@ exports.USERS = (0, validation_message_types_1.defineValidationFeatureMessages)(
|
|
|
61
61
|
},
|
|
62
62
|
USER_HAS_REFERENCED_DATA: {
|
|
63
63
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
64
|
-
message: `User
|
|
64
|
+
message: `User {fullName} cannot be deleted because they are referenced by existing records.`,
|
|
65
65
|
params: ['fullName'],
|
|
66
66
|
affectedFields: ['userId'],
|
|
67
67
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-message.formatter.d.ts","sourceRoot":"","sources":["../../src/validation/validation-message.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAA+B,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"validation-message.formatter.d.ts","sourceRoot":"","sources":["../../src/validation/validation-message.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAA+B,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAU7F,KAAK,QAAQ,GAAG,MAAM,OAAO,mBAAmB,CAAC;AACjD,KAAK,SAAS,CAAC,CAAC,SAAS,QAAQ,IAAI,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3E,KAAK,kBAAkB,CAAC,CAAC,SAAS,QAAQ,EAAE,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;IAC/G,MAAM,EAAE,MAAM,CAAC,SAAS,SAAS,MAAM,EAAE,CAAC;CAC3C,GACG,CAAC,GACD,EAAE,CAAC;AACP,KAAK,aAAa,CAAC,CAAC,SAAS,SAAS,MAAM,EAAE,IAAI;KAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM;CAAE,CAAC;AAE/E,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,WAAW,SAAS,QAAQ,EAAE,gBAAgB,SAAS,SAAS,CAAC,WAAW,CAAC,EAChH,aAAa,GAAG,WAAW,IAAI,gBAAgB,GAAG,MAAM,EAAE,EAC1D,SAAS,aAAa,CAAC,kBAAkB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,KACxE,uBAqDF,CAAC"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getValidationMessage = void 0;
|
|
4
4
|
const validation_messages_1 = require("./validation-messages");
|
|
5
|
+
const escapeHtml = (text) => text
|
|
6
|
+
.replaceAll('&', '&')
|
|
7
|
+
.replaceAll('<', '<')
|
|
8
|
+
.replaceAll('>', '>')
|
|
9
|
+
.replaceAll('"', '"')
|
|
10
|
+
.replaceAll("'", ''');
|
|
5
11
|
const getValidationMessage = (combinedKey, params) => {
|
|
6
12
|
const parts = combinedKey.split('.');
|
|
7
13
|
const feature = parts[0];
|
|
@@ -36,7 +42,7 @@ const getValidationMessage = (combinedKey, params) => {
|
|
|
36
42
|
}
|
|
37
43
|
}
|
|
38
44
|
expectedParams.forEach((param) => {
|
|
39
|
-
message = message.replaceAll(`{${param}}`, inputParams[param]);
|
|
45
|
+
message = message.replaceAll(`{${param}}`, `<b>${escapeHtml(inputParams[param])}</b>`);
|
|
40
46
|
});
|
|
41
47
|
return {
|
|
42
48
|
content: message,
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export const ACCOUNT_CATEGORIES = defineValidationFeatureMessages({
|
|
|
14
14
|
},
|
|
15
15
|
NAME_ALREADY_EXISTS: {
|
|
16
16
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
17
|
-
message: `Account category with the same name
|
|
17
|
+
message: `Account category with the same name {name} already exists`,
|
|
18
18
|
params: ['name'],
|
|
19
19
|
affectedFields: ['accountCategory'],
|
|
20
20
|
},
|
|
@@ -14,7 +14,7 @@ export const ACCOUNT_IDS = defineValidationFeatureMessages({
|
|
|
14
14
|
},
|
|
15
15
|
NAME_ALREADY_EXISTS: {
|
|
16
16
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
17
|
-
message: `Account id with the same name
|
|
17
|
+
message: `Account id with the same name {name} already exists`,
|
|
18
18
|
params: ['name'],
|
|
19
19
|
affectedFields: ['accountId'],
|
|
20
20
|
},
|
|
@@ -14,7 +14,7 @@ export const BUSINESS_ACTIVITIES = defineValidationFeatureMessages({
|
|
|
14
14
|
},
|
|
15
15
|
NAME_ALREADY_EXISTS: {
|
|
16
16
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
17
|
-
message: `Business activity with the same name
|
|
17
|
+
message: `Business activity with the same name {name} already exists.`,
|
|
18
18
|
params: ['name'],
|
|
19
19
|
affectedFields: ['businessActivity'],
|
|
20
20
|
},
|
|
@@ -48,13 +48,13 @@ export const CLIENT_CURRENT_ENTITY_STATUS = defineValidationFeatureMessages({
|
|
|
48
48
|
},
|
|
49
49
|
INVALID_FEDERAL_LEGAL_ID: {
|
|
50
50
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
51
|
-
message: `Enter a valid federal legal ID
|
|
51
|
+
message: `Enter a valid federal legal ID {legalIdType} (e.g. {legalIdValue})`,
|
|
52
52
|
params: ['legalIdType', 'legalIdValue'],
|
|
53
53
|
affectedFields: ['federalLegalId'],
|
|
54
54
|
},
|
|
55
55
|
NAME_ALREADY_EXISTS: {
|
|
56
56
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
57
|
-
message: `Client with the same name
|
|
57
|
+
message: `Client with the same name {name} already exists`,
|
|
58
58
|
params: ['name'],
|
|
59
59
|
affectedFields: ['name'],
|
|
60
60
|
},
|
|
@@ -185,13 +185,13 @@ export const CLIENT_CURRENT_ENTITY_STATUS = defineValidationFeatureMessages({
|
|
|
185
185
|
},
|
|
186
186
|
INITIAL_FILING_DATE_BEFORE_DATE_ESTABLISHED: {
|
|
187
187
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
188
|
-
message: `Initial filing date cannot be before date established
|
|
188
|
+
message: `Initial filing date cannot be before date established {dateEstablished}. Please adjust the dates to continue.`,
|
|
189
189
|
params: ['dateEstablished'],
|
|
190
190
|
affectedFields: ['initialFilingDate'],
|
|
191
191
|
},
|
|
192
192
|
FINAL_FILING_DATE_BEFORE_INITIAL_FILING_DATE: {
|
|
193
193
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
194
|
-
message: `Final filing date cannot be before initial filing date
|
|
194
|
+
message: `Final filing date cannot be before initial filing date {initialFilingDate}. Please adjust the dates to continue.`,
|
|
195
195
|
params: ['initialFilingDate'],
|
|
196
196
|
affectedFields: ['finalFilingDate'],
|
|
197
197
|
},
|
|
@@ -202,13 +202,13 @@ export const CLIENT_CURRENT_ENTITY_STATUS = defineValidationFeatureMessages({
|
|
|
202
202
|
},
|
|
203
203
|
SERVICE_ENDING_DATE_BEFORE_SERVICE_STARTING_DATE: {
|
|
204
204
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
205
|
-
message: `Service ending date cannot be before service starting date
|
|
205
|
+
message: `Service ending date cannot be before service starting date {serviceStartingDate}. Please adjust the dates to continue.`,
|
|
206
206
|
params: ['serviceStartingDate'],
|
|
207
207
|
affectedFields: ['serviceEndingDate'],
|
|
208
208
|
},
|
|
209
209
|
SERVICE_ENDING_DATE_REQUIRED: {
|
|
210
210
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
211
|
-
message: `
|
|
211
|
+
message: `{clientName} has been serviced since {serviceStartingDate} and is no longer our client. Please enter the service ending date.`,
|
|
212
212
|
params: ['clientName', 'serviceStartingDate'],
|
|
213
213
|
affectedFields: ['serviceEndingDate'],
|
|
214
214
|
},
|
package/src/validation/features/client-records-entity-states-histories.validation-messages.ts
CHANGED
|
@@ -9,13 +9,13 @@ export const CLIENT_RECORDS_ENTITY_STATES = defineValidationFeatureMessages({
|
|
|
9
9
|
},
|
|
10
10
|
NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
|
|
11
11
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
|
-
message: `The state,
|
|
12
|
+
message: `The state, {domesticState}, starts on {domesticStateStartingDate}, which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the state or the client's date established.`,
|
|
13
13
|
params: ['clientDateEstablished', 'domesticState', 'domesticStateStartingDate'],
|
|
14
14
|
affectedFields: ['dateEstablished', 'domesticState'],
|
|
15
15
|
},
|
|
16
16
|
NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
|
|
17
17
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
18
|
-
message: `One or more states have a start date which is after the client's close date of
|
|
18
|
+
message: `One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.`,
|
|
19
19
|
params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
|
|
20
20
|
affectedFields: ['closeDate', 'domesticState'],
|
|
21
21
|
},
|
|
@@ -43,49 +43,49 @@ export const CLIENT_RECORDS_ENTITY_STATES = defineValidationFeatureMessages({
|
|
|
43
43
|
},
|
|
44
44
|
STATES_STARTING_DATE_NOT_POPULATED: {
|
|
45
45
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
46
|
-
message: `Starting date for
|
|
46
|
+
message: `Starting date for {state} cannot be empty`,
|
|
47
47
|
params: ['state'],
|
|
48
48
|
affectedFields: ['stateStartingDate'],
|
|
49
49
|
},
|
|
50
50
|
NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
|
|
51
51
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
52
|
-
message: `The ending date for
|
|
52
|
+
message: `The ending date for {state} must be after its starting date`,
|
|
53
53
|
params: ['state'],
|
|
54
54
|
affectedFields: ['stateStartingDate', 'stateEndingDate'],
|
|
55
55
|
},
|
|
56
56
|
NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
57
57
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
58
|
-
message: `Adjust the start date to be on or after the client's date established,
|
|
58
|
+
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
59
59
|
params: ['clientStartDate'],
|
|
60
60
|
affectedFields: ['stateStartingDate', 'dateEstablished'],
|
|
61
61
|
},
|
|
62
62
|
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
63
63
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
64
|
-
message: `Adjust the start date to be before the client's close date,
|
|
64
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
65
65
|
params: ['clientCloseDate'],
|
|
66
66
|
affectedFields: ['stateStartingDate', 'closeDate'],
|
|
67
67
|
},
|
|
68
68
|
DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
69
69
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
70
|
-
message: `There is a gap in the timeframes between
|
|
70
|
+
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
71
71
|
params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
|
|
72
72
|
affectedFields: ['domesticState'],
|
|
73
73
|
},
|
|
74
74
|
STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
75
75
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
76
|
-
message: `There are two entries for
|
|
76
|
+
message: `There are two entries for {state} with timeframes that immediately follow each other. {state} ending {firstPeriodEnd}, and {state} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {state}. `,
|
|
77
77
|
params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
78
78
|
affectedFields: ['domesticState'],
|
|
79
79
|
},
|
|
80
80
|
DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
81
81
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
82
|
-
message: `There is a gap between the client's date established (
|
|
82
|
+
message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first state ({earliestState} starting {earliestStateStartDate}). There must be a state that begins on {dateEstablished}.`,
|
|
83
83
|
params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
|
|
84
84
|
affectedFields: ['domesticState', 'dateEstablished'],
|
|
85
85
|
},
|
|
86
86
|
STATES_DATES_OVERLAP: {
|
|
87
87
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
88
|
-
message: `The client already has
|
|
88
|
+
message: `The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
89
89
|
params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
90
90
|
affectedFields: ['domesticState'],
|
|
91
91
|
},
|
package/src/validation/features/client-records-entity-types-histories.validation-messages.ts
CHANGED
|
@@ -9,13 +9,13 @@ export const CLIENT_RECORDS_ENTITY_TYPES = defineValidationFeatureMessages({
|
|
|
9
9
|
},
|
|
10
10
|
NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
|
|
11
11
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
|
-
message: `One or more entity types have a start date that is before the client's date established,
|
|
12
|
+
message: `One or more entity types have a start date that is before the client's date established, {clientDateEstablished}. ({entityType} starting {entityTypeStartingDate}). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.`,
|
|
13
13
|
params: ['clientDateEstablished', 'entityType', 'entityTypeStartingDate'],
|
|
14
14
|
affectedFields: ['dateEstablished', 'entityType'],
|
|
15
15
|
},
|
|
16
16
|
NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
|
|
17
17
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
18
|
-
message: `One or more entity types have start dates that are after the client's close date,
|
|
18
|
+
message: `One or more entity types have start dates that are after the client's close date, {clientCloseDate}. {entityType} starting {entityTypeStartingDate}. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.`,
|
|
19
19
|
params: ['clientCloseDate', 'entityType', 'entityTypeStartingDate'],
|
|
20
20
|
affectedFields: ['closeDate', 'entityType'],
|
|
21
21
|
},
|
|
@@ -42,49 +42,49 @@ export const CLIENT_RECORDS_ENTITY_TYPES = defineValidationFeatureMessages({
|
|
|
42
42
|
},
|
|
43
43
|
ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
|
|
44
44
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
45
|
-
message: `Starting date for
|
|
45
|
+
message: `Starting date for {entityType} cannot be empty`,
|
|
46
46
|
params: ['entityType'],
|
|
47
47
|
affectedFields: ['entityTypeStartingDate'],
|
|
48
48
|
},
|
|
49
49
|
NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
|
|
50
50
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
51
|
-
message: `The ending date for
|
|
51
|
+
message: `The ending date for {entityType} must be after its starting date`,
|
|
52
52
|
params: ['entityType'],
|
|
53
53
|
affectedFields: ['entityTypeStartingDate', 'entityTypeEndingDate'],
|
|
54
54
|
},
|
|
55
55
|
NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPES_STARTING_DATE: {
|
|
56
56
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
57
|
-
message: `Adjust the start date to be on or after the client's date established,
|
|
57
|
+
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
58
58
|
params: ['clientStartDate'],
|
|
59
59
|
affectedFields: ['entityTypeStartingDate', 'dateEstablished'],
|
|
60
60
|
},
|
|
61
61
|
NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
|
|
62
62
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
63
|
-
message: `Adjust the start date to be before the client's close date,
|
|
63
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
64
64
|
params: ['clientCloseDate'],
|
|
65
65
|
affectedFields: ['entityTypeStartingDate', 'closeDate'],
|
|
66
66
|
},
|
|
67
67
|
ENTITY_TYPES_DATE_GAP_DETECTED: {
|
|
68
68
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
69
|
-
message: `There is a gap in the timeframes between
|
|
69
|
+
message: `There is a gap in the timeframes between {currentEntityType}, ending {currentEntityTypeEndDate}, and {nextEntityType}, starting {nextEntityTypeStartDate}. Please adjust the dates to fill this gap.`,
|
|
70
70
|
params: ['currentEntityType', 'currentEntityTypeEndDate', 'nextEntityType', 'nextEntityTypeStartDate'],
|
|
71
71
|
affectedFields: ['entityType'],
|
|
72
72
|
},
|
|
73
73
|
ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
74
74
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
75
|
-
message: `There are two entries for
|
|
75
|
+
message: `There are two entries for {entityType} with timeframes that immediately follow each other. {entityType} ending {firstPeriodEnd}, and {entityType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {entityType}. `,
|
|
76
76
|
params: ['entityType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
77
77
|
affectedFields: ['entityType'],
|
|
78
78
|
},
|
|
79
79
|
ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
80
80
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
81
|
-
message: `There is a gap between the client's date established (
|
|
81
|
+
message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first entity type ({earliestEntityType} starting {earliestEntityTypeStartDate}). There must be an entity type that begins on {dateEstablished}.`,
|
|
82
82
|
params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
|
|
83
83
|
affectedFields: ['entityType', 'dateEstablished'],
|
|
84
84
|
},
|
|
85
85
|
ENTITY_TYPES_DATES_OVERLAP: {
|
|
86
86
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
87
|
-
message: `The client already has
|
|
87
|
+
message: `The client already has {entityType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
88
88
|
params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
89
89
|
affectedFields: ['entityType'],
|
|
90
90
|
},
|
package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts
CHANGED
|
@@ -9,13 +9,13 @@ export const CLIENT_RECORDS_FILING_STATUSES = defineValidationFeatureMessages({
|
|
|
9
9
|
},
|
|
10
10
|
NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
|
|
11
11
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
|
-
message: `The Sub/Parent status
|
|
12
|
+
message: `The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.`,
|
|
13
13
|
params: ['clientDateEstablished', 'filingStatus', 'filingStatusStartingDate'],
|
|
14
14
|
affectedFields: ['dateEstablished', 'filingStatus'],
|
|
15
15
|
},
|
|
16
16
|
NOT_ALIGNED_CLOSE_DATE_FILING_STATUS_STARTING_DATE: {
|
|
17
17
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
18
|
-
message: `One or more Sub/Parent status have a start date which is after the client's close date of
|
|
18
|
+
message: `One or more Sub/Parent status have a start date which is after the client's close date of {clientCloseDate}. {filingStatus}, starting {filingStatusStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.`,
|
|
19
19
|
params: ['clientCloseDate', 'filingStatus', 'filingStatusStartingDate'],
|
|
20
20
|
affectedFields: ['closeDate', 'filingStatus'],
|
|
21
21
|
},
|
|
@@ -42,49 +42,49 @@ export const CLIENT_RECORDS_FILING_STATUSES = defineValidationFeatureMessages({
|
|
|
42
42
|
},
|
|
43
43
|
FILING_STATUSES_STARTING_DATE_NOT_POPULATED: {
|
|
44
44
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
45
|
-
message: `Starting date for
|
|
45
|
+
message: `Starting date for {filingStatus} cannot be empty`,
|
|
46
46
|
params: ['filingStatus'],
|
|
47
47
|
affectedFields: ['filingStatusStartingDate'],
|
|
48
48
|
},
|
|
49
49
|
NOT_ALIGNED_FILING_STATUSES_STARTING_ENDING_DATE: {
|
|
50
50
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
51
|
-
message: `The ending date for
|
|
51
|
+
message: `The ending date for {filingStatus} must be after its starting date`,
|
|
52
52
|
params: ['filingStatus'],
|
|
53
53
|
affectedFields: ['filingStatusStartingDate', 'filingStatusEndingDate'],
|
|
54
54
|
},
|
|
55
55
|
NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUSES_STARTING_DATE: {
|
|
56
56
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
57
|
-
message: `Adjust the start date to be on or after the client's date established,
|
|
57
|
+
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
58
58
|
params: ['clientStartDate'],
|
|
59
59
|
affectedFields: ['filingStatusStartingDate', 'dateEstablished'],
|
|
60
60
|
},
|
|
61
61
|
NOT_ALIGNED_CLOSE_DATE_FILING_STATUSES_STARTING_DATE: {
|
|
62
62
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
63
|
-
message: `Adjust the start date to be before the client's close date,
|
|
63
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
64
64
|
params: ['clientCloseDate'],
|
|
65
65
|
affectedFields: ['filingStatusStartingDate', 'closeDate'],
|
|
66
66
|
},
|
|
67
67
|
FILING_STATUSES_DATE_GAP_DETECTED: {
|
|
68
68
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
69
|
-
message: `There is a gap in the timeframes between
|
|
69
|
+
message: `There is a gap in the timeframes between {currentFilingStatus}, ending {currentFilingStatusEndDate}, and {nextFilingStatus}, starting {nextFilingStatusStartDate}. Please adjust the dates to fill this gap.`,
|
|
70
70
|
params: ['currentFilingStatus', 'currentFilingStatusEndDate', 'nextFilingStatus', 'nextFilingStatusStartDate'],
|
|
71
71
|
affectedFields: ['filingStatus'],
|
|
72
72
|
},
|
|
73
73
|
FILING_STATUSES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
74
74
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
75
|
-
message: `There are two entries for
|
|
75
|
+
message: `There are two entries for {filingStatus} with timeframes that immediately follow each other. {filingStatus} ending {firstPeriodEnd}, and {filingStatus} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingStatus}. `,
|
|
76
76
|
params: ['filingStatus', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
77
77
|
affectedFields: ['filingStatus'],
|
|
78
78
|
},
|
|
79
79
|
FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
80
80
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
81
|
-
message: `There is a gap between the client's date established (
|
|
81
|
+
message: `There is a gap between the client's date established ({dateEstablished}) and the start date of the first Sub/Parent status ({earliestFilingStatusStartDate}). Please ensure that the status of one Sub/Parent status matches the client's date established.`,
|
|
82
82
|
params: ['dateEstablished', 'earliestFilingStatusStartDate'],
|
|
83
83
|
affectedFields: ['filingStatus', 'dateEstablished'],
|
|
84
84
|
},
|
|
85
85
|
FILING_STATUSES_DATES_OVERLAP: {
|
|
86
86
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
87
|
-
message: `The client already has
|
|
87
|
+
message: `The client already has {filingStatus} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
88
88
|
params: ['filingStatus', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
89
89
|
affectedFields: ['filingStatus'],
|
|
90
90
|
},
|
|
@@ -9,7 +9,7 @@ export const CLIENT_RECORDS_OUTSIDE_PROVIDERS = defineValidationFeatureMessages(
|
|
|
9
9
|
},
|
|
10
10
|
SAME_TYPE_TIMELINE_OVERLAP: {
|
|
11
11
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
|
-
message: `The client already has
|
|
12
|
+
message: `The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
13
13
|
params: ['outsideProviderType', 'startDate'],
|
|
14
14
|
affectedFields: ['starting', 'ending'],
|
|
15
15
|
},
|