@forwardslashns/taskit-validation-messages 1.0.27 → 1.0.28
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.
|
@@ -203,46 +203,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
203
203
|
readonly CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
204
204
|
readonly message: "This client cannot be deleted because it has contacts associated";
|
|
205
205
|
};
|
|
206
|
-
readonly STATES_IDS_DOES_NOT_EXIST: {
|
|
207
|
-
readonly message: "States with ids '{ids}' do not exist";
|
|
208
|
-
readonly params: readonly ["ids"];
|
|
209
|
-
};
|
|
210
|
-
readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
211
|
-
readonly message: "At least one domestic state should exist";
|
|
212
|
-
};
|
|
213
|
-
readonly STATES_STARTING_DATE_NOT_POPULATED: {
|
|
214
|
-
readonly message: "States Starting Date cannot be Empty";
|
|
215
|
-
};
|
|
216
|
-
readonly NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
|
|
217
|
-
readonly message: "State starting date needs to be before the ending date";
|
|
218
|
-
};
|
|
219
|
-
readonly NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
220
|
-
readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
|
|
221
|
-
readonly params: readonly ["clientStartDate"];
|
|
222
|
-
};
|
|
223
|
-
readonly NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
224
|
-
readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
|
|
225
|
-
readonly params: readonly ["clientCloseDate"];
|
|
226
|
-
};
|
|
227
|
-
readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
228
|
-
readonly message: "There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.";
|
|
229
|
-
readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
|
|
230
|
-
};
|
|
231
|
-
readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
232
|
-
readonly 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}. ";
|
|
233
|
-
readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
|
|
234
|
-
};
|
|
235
|
-
readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
236
|
-
readonly 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}.";
|
|
237
|
-
readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
|
|
238
|
-
};
|
|
239
|
-
readonly STATES_DATES_OVERLAP: {
|
|
240
|
-
readonly message: "There are multiple entries for {state} with overlapping timeframes: {state} from {startDate1} to {endDate1}, {state} from {startDate2} to {endDate2}. A state cannot appear more than once with overlapping dates, even if the residence type is different. Please adjust the dates on the new or existing {state} entries to remove the overlap.";
|
|
241
|
-
readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
|
|
242
|
-
};
|
|
243
|
-
readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
244
|
-
readonly message: "Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.";
|
|
245
|
-
};
|
|
246
206
|
readonly ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
247
207
|
readonly message: "Entity types with ids '{ids}' do not exist";
|
|
248
208
|
readonly params: readonly ["ids"];
|
|
@@ -323,6 +283,46 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
323
283
|
readonly ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
|
|
324
284
|
readonly message: "Only the last filing type can be open without an end date. Add an ending date to the existing filing type before adding a start date for a new filing type.";
|
|
325
285
|
};
|
|
286
|
+
readonly STATES_IDS_DOES_NOT_EXIST: {
|
|
287
|
+
readonly message: "States with ids '{ids}' do not exist";
|
|
288
|
+
readonly params: readonly ["ids"];
|
|
289
|
+
};
|
|
290
|
+
readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
291
|
+
readonly message: "At least one domestic state should exist";
|
|
292
|
+
};
|
|
293
|
+
readonly STATES_STARTING_DATE_NOT_POPULATED: {
|
|
294
|
+
readonly message: "States Starting Date cannot be Empty";
|
|
295
|
+
};
|
|
296
|
+
readonly NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
|
|
297
|
+
readonly message: "State starting date needs to be before the ending date";
|
|
298
|
+
};
|
|
299
|
+
readonly NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
300
|
+
readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
|
|
301
|
+
readonly params: readonly ["clientStartDate"];
|
|
302
|
+
};
|
|
303
|
+
readonly NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
304
|
+
readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
|
|
305
|
+
readonly params: readonly ["clientCloseDate"];
|
|
306
|
+
};
|
|
307
|
+
readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
308
|
+
readonly message: "There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.";
|
|
309
|
+
readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
|
|
310
|
+
};
|
|
311
|
+
readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
312
|
+
readonly 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}. ";
|
|
313
|
+
readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
|
|
314
|
+
};
|
|
315
|
+
readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
316
|
+
readonly 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}.";
|
|
317
|
+
readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
|
|
318
|
+
};
|
|
319
|
+
readonly STATES_DATES_OVERLAP: {
|
|
320
|
+
readonly message: "There are multiple entries for {state} with overlapping timeframes: {state} from {startDate1} to {endDate1}, {state} from {startDate2} to {endDate2}. A state cannot appear more than once with overlapping dates, even if the residence type is different. Please adjust the dates on the new or existing {state} entries to remove the overlap.";
|
|
321
|
+
readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
|
|
322
|
+
};
|
|
323
|
+
readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
324
|
+
readonly message: "Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.";
|
|
325
|
+
};
|
|
326
326
|
};
|
|
327
327
|
readonly FILING_CATEGORY: {
|
|
328
328
|
readonly INVALID_REQUEST: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyatB,CAAC"}
|
|
@@ -206,47 +206,6 @@ exports.VALIDATION_MESSAGES = {
|
|
|
206
206
|
CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
207
207
|
message: `This client cannot be deleted because it has contacts associated`,
|
|
208
208
|
},
|
|
209
|
-
//UPDATE-STATES-VALIDATIONS
|
|
210
|
-
STATES_IDS_DOES_NOT_EXIST: {
|
|
211
|
-
message: `States with ids '{ids}' do not exist`,
|
|
212
|
-
params: ['ids'],
|
|
213
|
-
},
|
|
214
|
-
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
215
|
-
message: `At least one domestic state should exist`,
|
|
216
|
-
},
|
|
217
|
-
STATES_STARTING_DATE_NOT_POPULATED: {
|
|
218
|
-
message: `States Starting Date cannot be Empty`,
|
|
219
|
-
},
|
|
220
|
-
NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
|
|
221
|
-
message: `State starting date needs to be before the ending date`,
|
|
222
|
-
},
|
|
223
|
-
NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
224
|
-
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
225
|
-
params: ['clientStartDate'],
|
|
226
|
-
},
|
|
227
|
-
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
228
|
-
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
229
|
-
params: ['clientCloseDate'],
|
|
230
|
-
},
|
|
231
|
-
DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
232
|
-
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
233
|
-
params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
|
|
234
|
-
},
|
|
235
|
-
STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
236
|
-
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}. `,
|
|
237
|
-
params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
238
|
-
},
|
|
239
|
-
DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
240
|
-
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}.`,
|
|
241
|
-
params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
|
|
242
|
-
},
|
|
243
|
-
STATES_DATES_OVERLAP: {
|
|
244
|
-
message: `There are multiple entries for {state} with overlapping timeframes: {state} from {startDate1} to {endDate1}, {state} from {startDate2} to {endDate2}. A state cannot appear more than once with overlapping dates, even if the residence type is different. Please adjust the dates on the new or existing {state} entries to remove the overlap.`,
|
|
245
|
-
params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
246
|
-
},
|
|
247
|
-
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
248
|
-
message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
|
|
249
|
-
},
|
|
250
209
|
//UPDATE-ENTITY-TYPES-VALIDATIONS
|
|
251
210
|
ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
252
211
|
message: `Entity types with ids '{ids}' do not exist`,
|
|
@@ -329,6 +288,47 @@ exports.VALIDATION_MESSAGES = {
|
|
|
329
288
|
ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
|
|
330
289
|
message: `Only the last filing type can be open without an end date. Add an ending date to the existing filing type before adding a start date for a new filing type.`,
|
|
331
290
|
},
|
|
291
|
+
//UPDATE-STATES-VALIDATIONS
|
|
292
|
+
STATES_IDS_DOES_NOT_EXIST: {
|
|
293
|
+
message: `States with ids '{ids}' do not exist`,
|
|
294
|
+
params: ['ids'],
|
|
295
|
+
},
|
|
296
|
+
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
297
|
+
message: `At least one domestic state should exist`,
|
|
298
|
+
},
|
|
299
|
+
STATES_STARTING_DATE_NOT_POPULATED: {
|
|
300
|
+
message: `States Starting Date cannot be Empty`,
|
|
301
|
+
},
|
|
302
|
+
NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
|
|
303
|
+
message: `State starting date needs to be before the ending date`,
|
|
304
|
+
},
|
|
305
|
+
NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
306
|
+
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
307
|
+
params: ['clientStartDate'],
|
|
308
|
+
},
|
|
309
|
+
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
310
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
311
|
+
params: ['clientCloseDate'],
|
|
312
|
+
},
|
|
313
|
+
DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
314
|
+
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
315
|
+
params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
|
|
316
|
+
},
|
|
317
|
+
STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
318
|
+
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}. `,
|
|
319
|
+
params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
320
|
+
},
|
|
321
|
+
DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
322
|
+
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}.`,
|
|
323
|
+
params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
|
|
324
|
+
},
|
|
325
|
+
STATES_DATES_OVERLAP: {
|
|
326
|
+
message: `There are multiple entries for {state} with overlapping timeframes: {state} from {startDate1} to {endDate1}, {state} from {startDate2} to {endDate2}. A state cannot appear more than once with overlapping dates, even if the residence type is different. Please adjust the dates on the new or existing {state} entries to remove the overlap.`,
|
|
327
|
+
params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
328
|
+
},
|
|
329
|
+
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
330
|
+
message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
|
|
331
|
+
},
|
|
332
332
|
},
|
|
333
333
|
FILING_CATEGORY: {
|
|
334
334
|
INVALID_REQUEST: {
|
package/package.json
CHANGED
|
@@ -203,48 +203,6 @@ export const VALIDATION_MESSAGES = {
|
|
|
203
203
|
CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
204
204
|
message: `This client cannot be deleted because it has contacts associated`,
|
|
205
205
|
},
|
|
206
|
-
//UPDATE-STATES-VALIDATIONS
|
|
207
|
-
STATES_IDS_DOES_NOT_EXIST: {
|
|
208
|
-
message: `States with ids '{ids}' do not exist`,
|
|
209
|
-
params: ['ids'],
|
|
210
|
-
},
|
|
211
|
-
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
212
|
-
message: `At least one domestic state should exist`,
|
|
213
|
-
},
|
|
214
|
-
STATES_STARTING_DATE_NOT_POPULATED: {
|
|
215
|
-
message: `States Starting Date cannot be Empty`,
|
|
216
|
-
},
|
|
217
|
-
NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
|
|
218
|
-
message: `State starting date needs to be before the ending date`,
|
|
219
|
-
},
|
|
220
|
-
NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
221
|
-
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
222
|
-
params: ['clientStartDate'],
|
|
223
|
-
},
|
|
224
|
-
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
225
|
-
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
226
|
-
params: ['clientCloseDate'],
|
|
227
|
-
},
|
|
228
|
-
DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
229
|
-
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
230
|
-
params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
|
|
231
|
-
},
|
|
232
|
-
STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
233
|
-
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}. `,
|
|
234
|
-
params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
235
|
-
},
|
|
236
|
-
DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
237
|
-
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}.`,
|
|
238
|
-
params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
|
|
239
|
-
},
|
|
240
|
-
STATES_DATES_OVERLAP: {
|
|
241
|
-
message: `There are multiple entries for {state} with overlapping timeframes: {state} from {startDate1} to {endDate1}, {state} from {startDate2} to {endDate2}. A state cannot appear more than once with overlapping dates, even if the residence type is different. Please adjust the dates on the new or existing {state} entries to remove the overlap.`,
|
|
242
|
-
params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
243
|
-
},
|
|
244
|
-
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
245
|
-
message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
|
|
246
|
-
},
|
|
247
|
-
|
|
248
206
|
//UPDATE-ENTITY-TYPES-VALIDATIONS
|
|
249
207
|
ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
250
208
|
message: `Entity types with ids '{ids}' do not exist`,
|
|
@@ -286,7 +244,6 @@ export const VALIDATION_MESSAGES = {
|
|
|
286
244
|
ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
|
|
287
245
|
message: `Only the last entity type can be open without an end date. Add an ending date to the existing entity type before adding a start date for a new entity type.`,
|
|
288
246
|
},
|
|
289
|
-
|
|
290
247
|
//UPDATE-FILING-TYPES-VALIDATIONS
|
|
291
248
|
FILING_TYPES_IDS_DOES_NOT_EXIST: {
|
|
292
249
|
message: `Filing types with ids '{ids}' do not exist`,
|
|
@@ -328,6 +285,47 @@ export const VALIDATION_MESSAGES = {
|
|
|
328
285
|
ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
|
|
329
286
|
message: `Only the last filing type can be open without an end date. Add an ending date to the existing filing type before adding a start date for a new filing type.`,
|
|
330
287
|
},
|
|
288
|
+
//UPDATE-STATES-VALIDATIONS
|
|
289
|
+
STATES_IDS_DOES_NOT_EXIST: {
|
|
290
|
+
message: `States with ids '{ids}' do not exist`,
|
|
291
|
+
params: ['ids'],
|
|
292
|
+
},
|
|
293
|
+
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
294
|
+
message: `At least one domestic state should exist`,
|
|
295
|
+
},
|
|
296
|
+
STATES_STARTING_DATE_NOT_POPULATED: {
|
|
297
|
+
message: `States Starting Date cannot be Empty`,
|
|
298
|
+
},
|
|
299
|
+
NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
|
|
300
|
+
message: `State starting date needs to be before the ending date`,
|
|
301
|
+
},
|
|
302
|
+
NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
303
|
+
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
304
|
+
params: ['clientStartDate'],
|
|
305
|
+
},
|
|
306
|
+
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
307
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
308
|
+
params: ['clientCloseDate'],
|
|
309
|
+
},
|
|
310
|
+
DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
311
|
+
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
312
|
+
params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
|
|
313
|
+
},
|
|
314
|
+
STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
315
|
+
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}. `,
|
|
316
|
+
params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
317
|
+
},
|
|
318
|
+
DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
319
|
+
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}.`,
|
|
320
|
+
params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
|
|
321
|
+
},
|
|
322
|
+
STATES_DATES_OVERLAP: {
|
|
323
|
+
message: `There are multiple entries for {state} with overlapping timeframes: {state} from {startDate1} to {endDate1}, {state} from {startDate2} to {endDate2}. A state cannot appear more than once with overlapping dates, even if the residence type is different. Please adjust the dates on the new or existing {state} entries to remove the overlap.`,
|
|
324
|
+
params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
325
|
+
},
|
|
326
|
+
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
327
|
+
message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
|
|
328
|
+
},
|
|
331
329
|
},
|
|
332
330
|
FILING_CATEGORY: {
|
|
333
331
|
INVALID_REQUEST: {
|