@forwardslashns/taskit-validation-messages 1.0.12 → 1.0.13

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.
@@ -231,9 +231,12 @@ export declare const VALIDATION_MESSAGES: {
231
231
  readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
232
232
  };
233
233
  readonly FOREIGN_STATES_DATES_OVERLAP: {
234
- readonly message: "There is already a foreign state, {state}, with a date of {stateStartDate}. There cannot be an overlap of dates between state entries. Please update the starting date to be after {stateEndDate}.";
234
+ 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.";
235
235
  readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
236
236
  };
237
+ readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
238
+ 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.";
239
+ };
237
240
  };
238
241
  readonly FILING_CATEGORY: {
239
242
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuVtB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0VtB,CAAC"}
@@ -242,9 +242,12 @@ exports.VALIDATION_MESSAGES = {
242
242
  params: ['state', 'stateStartDate', 'stateEndDate'],
243
243
  },
244
244
  FOREIGN_STATES_DATES_OVERLAP: {
245
- message: `There is already a foreign state, {state}, with a date of {stateStartDate}. There cannot be an overlap of dates between state entries. Please update the starting date to be after {stateEndDate}.`,
245
+ 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.`,
246
246
  params: ['state', 'stateStartDate', 'stateEndDate'],
247
247
  },
248
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
249
+ 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.`,
250
+ },
248
251
  },
249
252
  FILING_CATEGORY: {
250
253
  INVALID_REQUEST: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -239,9 +239,12 @@ export const VALIDATION_MESSAGES = {
239
239
  params: ['state', 'stateStartDate', 'stateEndDate'],
240
240
  },
241
241
  FOREIGN_STATES_DATES_OVERLAP: {
242
- message: `There is already a foreign state, {state}, with a date of {stateStartDate}. There cannot be an overlap of dates between state entries. Please update the starting date to be after {stateEndDate}.`,
242
+ 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.`,
243
243
  params: ['state', 'stateStartDate', 'stateEndDate'],
244
244
  },
245
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
246
+ 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.`,
247
+ },
245
248
 
246
249
  },
247
250
  FILING_CATEGORY: {