@forwardslashns/taskit-validation-messages 1.0.24 → 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}.";
@@ -237,8 +237,8 @@ export declare const VALIDATION_MESSAGES: {
237
237
  readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
238
238
  };
239
239
  readonly STATES_DATES_OVERLAP: {
240
- readonly message: "There cannot be two {residence} 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", "residence"];
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
242
  };
243
243
  readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
244
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+VtB,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}.`,
@@ -248,8 +249,8 @@ exports.VALIDATION_MESSAGES = {
248
249
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
249
250
  },
250
251
  STATES_DATES_OVERLAP: {
251
- message: `There cannot be two {residence} 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', 'residence'],
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'],
253
254
  },
254
255
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
255
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.24",
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}.`,
@@ -245,8 +246,8 @@ export const VALIDATION_MESSAGES = {
245
246
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
246
247
  },
247
248
  STATES_DATES_OVERLAP: {
248
- message: `There cannot be two {residence} 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', 'residence'],
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'],
250
251
  },
251
252
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
252
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.`,