@forwardslashns/taskit-validation-messages 1.0.20 → 1.0.22

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.
@@ -220,11 +220,11 @@ export declare const VALIDATION_MESSAGES: {
220
220
  readonly message: "One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.";
221
221
  readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
222
222
  };
223
- readonly STATE_DATE_GAP_DETECTED: {
223
+ readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
224
224
  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.";
225
225
  readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
226
226
  };
227
- readonly DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
227
+ readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
228
228
  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}. ";
229
229
  readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
230
230
  };
@@ -240,9 +240,8 @@ export declare const VALIDATION_MESSAGES: {
240
240
  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.";
241
241
  readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
242
242
  };
243
- readonly ALL_NON_LAST_STATES_REQUIRE_ENDING_DATE: {
244
- readonly message: "Only the last {residence} 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
- readonly params: readonly ["residence"];
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.";
246
245
  };
247
246
  };
248
247
  readonly FILING_CATEGORY: {
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiWtB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+VtB,CAAC"}
@@ -231,11 +231,11 @@ exports.VALIDATION_MESSAGES = {
231
231
  message: `One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.`,
232
232
  params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
233
233
  },
234
- STATE_DATE_GAP_DETECTED: {
234
+ DOMESTIC_STATES_DATE_GAP_DETECTED: {
235
235
  message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
236
236
  params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
237
237
  },
238
- DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
238
+ STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
239
239
  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}. `,
240
240
  params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
241
241
  },
@@ -251,9 +251,8 @@ exports.VALIDATION_MESSAGES = {
251
251
  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.`,
252
252
  params: ['state', 'stateStartDate', 'stateEndDate'],
253
253
  },
254
- ALL_NON_LAST_STATES_REQUIRE_ENDING_DATE: {
255
- message: `Only the last {residence} 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.`,
256
- params: ['residence'],
254
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
255
+ 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.`,
257
256
  },
258
257
  },
259
258
  FILING_CATEGORY: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -228,11 +228,11 @@ export const VALIDATION_MESSAGES = {
228
228
  message: `One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.`,
229
229
  params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
230
230
  },
231
- STATE_DATE_GAP_DETECTED: {
231
+ DOMESTIC_STATES_DATE_GAP_DETECTED: {
232
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
233
  params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
234
234
  },
235
- DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
235
+ STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
236
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
237
  params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
238
238
  },
@@ -248,11 +248,9 @@ export const VALIDATION_MESSAGES = {
248
248
  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.`,
249
249
  params: ['state', 'stateStartDate', 'stateEndDate'],
250
250
  },
251
- ALL_NON_LAST_STATES_REQUIRE_ENDING_DATE: {
252
- message: `Only the last {residence} 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.`,
253
- params: ['residence'],
251
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
252
+ 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.`,
254
253
  },
255
-
256
254
  },
257
255
  FILING_CATEGORY: {
258
256
  INVALID_REQUEST: {