@forwardslashns/taskit-validation-messages 1.0.23 → 1.0.25

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.
@@ -214,7 +214,7 @@ export declare const VALIDATION_MESSAGES: {
214
214
  readonly message: "States Starting Date cannot be Empty";
215
215
  };
216
216
  readonly NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
217
- readonly message: "Domestic state starting date needs to be before the ending date";
217
+ readonly message: "State starting date needs to be before the ending date";
218
218
  };
219
219
  readonly NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
220
220
  readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
@@ -236,13 +236,9 @@ export declare const VALIDATION_MESSAGES: {
236
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
237
  readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
238
238
  };
239
- readonly DOMESTIC_STATES_DATES_OVERLAP: {
240
- readonly message: "There cannot be two domestic states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing domestic state/s to avoid an overlap.";
241
- readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
242
- };
243
- readonly FOREIGN_STATES_DATES_OVERLAP: {
244
- readonly message: "There cannot be two foreign states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing foreign state/s to avoid an overlap.";
245
- readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
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"];
246
242
  };
247
243
  readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
248
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.";
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmWtB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgWtB,CAAC"}
@@ -210,6 +210,7 @@ exports.VALIDATION_MESSAGES = {
210
210
  CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
211
211
  message: `This client cannot be deleted because it has contacts associated`,
212
212
  },
213
+ //UPDATE-STATES-VALIDATIONS
213
214
  STATES_IDS_DOES_NOT_EXIST: {
214
215
  message: `States with ids '{ids}' do not exist`,
215
216
  params: ['ids'],
@@ -221,7 +222,7 @@ exports.VALIDATION_MESSAGES = {
221
222
  message: `States Starting Date cannot be Empty`,
222
223
  },
223
224
  NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
224
- message: `Domestic state starting date needs to be before the ending date`,
225
+ message: `State starting date needs to be before the ending date`,
225
226
  },
226
227
  NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
227
228
  message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
@@ -247,13 +248,9 @@ exports.VALIDATION_MESSAGES = {
247
248
  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}.`,
248
249
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
249
250
  },
250
- DOMESTIC_STATES_DATES_OVERLAP: {
251
- message: `There cannot be two domestic states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing domestic state/s to avoid an overlap.`,
252
- params: ['state', 'stateStartDate', 'stateEndDate'],
253
- },
254
- FOREIGN_STATES_DATES_OVERLAP: {
255
- message: `There cannot be two foreign states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing foreign state/s to avoid an overlap.`,
256
- params: ['state', 'stateStartDate', 'stateEndDate'],
251
+ STATES_DATES_OVERLAP: {
252
+ 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.`,
253
+ params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
257
254
  },
258
255
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
259
256
  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.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -207,6 +207,7 @@ export const VALIDATION_MESSAGES = {
207
207
  CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
208
208
  message: `This client cannot be deleted because it has contacts associated`,
209
209
  },
210
+ //UPDATE-STATES-VALIDATIONS
210
211
  STATES_IDS_DOES_NOT_EXIST: {
211
212
  message: `States with ids '{ids}' do not exist`,
212
213
  params: ['ids'],
@@ -218,7 +219,7 @@ export const VALIDATION_MESSAGES = {
218
219
  message: `States Starting Date cannot be Empty`,
219
220
  },
220
221
  NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
221
- message: `Domestic state starting date needs to be before the ending date`,
222
+ message: `State starting date needs to be before the ending date`,
222
223
  },
223
224
  NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
224
225
  message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
@@ -244,13 +245,9 @@ export const VALIDATION_MESSAGES = {
244
245
  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}.`,
245
246
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
246
247
  },
247
- DOMESTIC_STATES_DATES_OVERLAP: {
248
- message: `There cannot be two domestic states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing domestic state/s to avoid an overlap.`,
249
- params: ['state', 'stateStartDate', 'stateEndDate'],
250
- },
251
- FOREIGN_STATES_DATES_OVERLAP: {
252
- message: `There cannot be two foreign states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing foreign state/s to avoid an overlap.`,
253
- params: ['state', 'stateStartDate', 'stateEndDate'],
248
+ STATES_DATES_OVERLAP: {
249
+ 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.`,
250
+ params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
254
251
  },
255
252
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
256
253
  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.`,