@forwardslashns/taskit-validation-messages 1.0.27 → 1.0.29

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"];
@@ -283,6 +243,9 @@ export declare const VALIDATION_MESSAGES: {
283
243
  readonly ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
284
244
  readonly 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.";
285
245
  };
246
+ readonly CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
247
+ readonly message: "The current entity type cannot have an end date. Please remove the end date for this state.";
248
+ };
286
249
  readonly FILING_TYPES_IDS_DOES_NOT_EXIST: {
287
250
  readonly message: "Filing types with ids '{ids}' do not exist";
288
251
  readonly params: readonly ["ids"];
@@ -323,6 +286,52 @@ export declare const VALIDATION_MESSAGES: {
323
286
  readonly ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
324
287
  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
288
  };
289
+ readonly CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
290
+ readonly message: "The current filing type cannot have an end date. Please remove the end date for this state.";
291
+ };
292
+ readonly STATES_IDS_DOES_NOT_EXIST: {
293
+ readonly message: "States with ids '{ids}' do not exist";
294
+ readonly params: readonly ["ids"];
295
+ };
296
+ readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
297
+ readonly message: "At least one domestic state should exist";
298
+ };
299
+ readonly STATES_STARTING_DATE_NOT_POPULATED: {
300
+ readonly message: "States Starting Date cannot be Empty";
301
+ };
302
+ readonly NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
303
+ readonly message: "State starting date needs to be before the ending date";
304
+ };
305
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
306
+ readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
307
+ readonly params: readonly ["clientStartDate"];
308
+ };
309
+ readonly NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
310
+ readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
311
+ readonly params: readonly ["clientCloseDate"];
312
+ };
313
+ readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
314
+ 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.";
315
+ readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
316
+ };
317
+ readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
318
+ 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}. ";
319
+ readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
320
+ };
321
+ readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
322
+ 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}.";
323
+ readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
324
+ };
325
+ readonly STATES_DATES_OVERLAP: {
326
+ 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.";
327
+ readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
328
+ };
329
+ readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
330
+ 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.";
331
+ };
332
+ readonly CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
333
+ readonly message: "The current domestic state cannot have an end date. Please remove the end date for this state.";
334
+ };
326
335
  };
327
336
  readonly FILING_CATEGORY: {
328
337
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2atB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkbtB,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`,
@@ -288,6 +247,9 @@ exports.VALIDATION_MESSAGES = {
288
247
  ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
289
248
  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.`,
290
249
  },
250
+ CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
251
+ message: `The current entity type cannot have an end date. Please remove the end date for this state.`,
252
+ },
291
253
  //UPDATE-FILING-TYPES-VALIDATIONS
292
254
  FILING_TYPES_IDS_DOES_NOT_EXIST: {
293
255
  message: `Filing types with ids '{ids}' do not exist`,
@@ -329,6 +291,53 @@ exports.VALIDATION_MESSAGES = {
329
291
  ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
330
292
  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
293
  },
294
+ CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
295
+ message: `The current filing type cannot have an end date. Please remove the end date for this state.`,
296
+ },
297
+ //UPDATE-STATES-VALIDATIONS
298
+ STATES_IDS_DOES_NOT_EXIST: {
299
+ message: `States with ids '{ids}' do not exist`,
300
+ params: ['ids'],
301
+ },
302
+ AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
303
+ message: `At least one domestic state should exist`,
304
+ },
305
+ STATES_STARTING_DATE_NOT_POPULATED: {
306
+ message: `States Starting Date cannot be Empty`,
307
+ },
308
+ NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
309
+ message: `State starting date needs to be before the ending date`,
310
+ },
311
+ NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
312
+ message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
313
+ params: ['clientStartDate'],
314
+ },
315
+ NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
316
+ message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
317
+ params: ['clientCloseDate'],
318
+ },
319
+ DOMESTIC_STATES_DATE_GAP_DETECTED: {
320
+ message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
321
+ params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
322
+ },
323
+ STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
324
+ 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}. `,
325
+ params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
326
+ },
327
+ DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
328
+ 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}.`,
329
+ params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
330
+ },
331
+ STATES_DATES_OVERLAP: {
332
+ 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.`,
333
+ params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
334
+ },
335
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
336
+ 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.`,
337
+ },
338
+ CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
339
+ message: `The current domestic state cannot have an end date. Please remove the end date for this state.`,
340
+ },
332
341
  },
333
342
  FILING_CATEGORY: {
334
343
  INVALID_REQUEST: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -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,9 @@ 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
-
247
+ CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
248
+ message: `The current entity type cannot have an end date. Please remove the end date for this state.`,
249
+ },
290
250
  //UPDATE-FILING-TYPES-VALIDATIONS
291
251
  FILING_TYPES_IDS_DOES_NOT_EXIST: {
292
252
  message: `Filing types with ids '{ids}' do not exist`,
@@ -328,6 +288,53 @@ export const VALIDATION_MESSAGES = {
328
288
  ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
329
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.`,
330
290
  },
291
+ CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
292
+ message: `The current filing type cannot have an end date. Please remove the end date for this state.`,
293
+ },
294
+ //UPDATE-STATES-VALIDATIONS
295
+ STATES_IDS_DOES_NOT_EXIST: {
296
+ message: `States with ids '{ids}' do not exist`,
297
+ params: ['ids'],
298
+ },
299
+ AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
300
+ message: `At least one domestic state should exist`,
301
+ },
302
+ STATES_STARTING_DATE_NOT_POPULATED: {
303
+ message: `States Starting Date cannot be Empty`,
304
+ },
305
+ NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
306
+ message: `State starting date needs to be before the ending date`,
307
+ },
308
+ NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
309
+ message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
310
+ params: ['clientStartDate'],
311
+ },
312
+ NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
313
+ message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
314
+ params: ['clientCloseDate'],
315
+ },
316
+ DOMESTIC_STATES_DATE_GAP_DETECTED: {
317
+ message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
318
+ params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
319
+ },
320
+ STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
321
+ 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}. `,
322
+ params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
323
+ },
324
+ DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
325
+ 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}.`,
326
+ params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
327
+ },
328
+ STATES_DATES_OVERLAP: {
329
+ 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.`,
330
+ params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
331
+ },
332
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
333
+ 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.`,
334
+ },
335
+ CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
336
+ message: `The current domestic state cannot have an end date. Please remove the end date for this state.`,
337
+ },
331
338
  },
332
339
  FILING_CATEGORY: {
333
340
  INVALID_REQUEST: {