@forwardslashns/taskit-validation-messages 1.0.11 → 1.0.12

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.
@@ -132,10 +132,6 @@ export declare const VALIDATION_MESSAGES: {
132
132
  readonly message: "One or more filing type statuses have a start date which is after the client’s close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client’s close date, or update the client's close date.";
133
133
  readonly params: readonly ["clientCloseDate", "filingType", "filingTypeStartingDate"];
134
134
  };
135
- readonly NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
136
- 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.";
137
- readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
138
- };
139
135
  readonly ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
140
136
  readonly message: "Current Entity Type Starting Date cannot be Empty";
141
137
  };
@@ -214,21 +210,29 @@ export declare const VALIDATION_MESSAGES: {
214
210
  readonly CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
215
211
  readonly message: "This client cannot be deleted because it has contacts associated";
216
212
  };
217
- readonly DOMESTIC_STATE_DATES_OVERLAP: {
218
- readonly message: "The entry already has {state} starting from {stateStartDate} to {stateEndDate}. Your current state overlaps with that time. Please adjust the dates so the state timeframes do not overlap.";
219
- readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
213
+ readonly NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
214
+ 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.";
215
+ readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
220
216
  };
221
217
  readonly DOMESTIC_STATE_DATE_GAP_DETECTED: {
222
218
  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.";
223
219
  readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
224
220
  };
221
+ readonly DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
222
+ 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}. ";
223
+ readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
224
+ };
225
225
  readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
226
226
  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}.";
227
227
  readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
228
228
  };
229
- readonly DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
230
- 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}. ";
231
- readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
229
+ readonly DOMESTIC_STATES_DATES_OVERLAP: {
230
+ 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.";
231
+ readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
232
+ };
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}.";
235
+ readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
232
236
  };
233
237
  };
234
238
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkVtB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuVtB,CAAC"}
@@ -143,10 +143,6 @@ exports.VALIDATION_MESSAGES = {
143
143
  message: `One or more filing type statuses have a start date which is after the client’s close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client’s close date, or update the client's close date.`,
144
144
  params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
145
145
  },
146
- NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
147
- 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.`,
148
- params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
149
- },
150
146
  ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
151
147
  message: `Current Entity Type Starting Date cannot be Empty`,
152
148
  },
@@ -225,21 +221,29 @@ exports.VALIDATION_MESSAGES = {
225
221
  CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
226
222
  message: `This client cannot be deleted because it has contacts associated`,
227
223
  },
228
- DOMESTIC_STATE_DATES_OVERLAP: {
229
- message: `The entry already has {state} starting from {stateStartDate} to {stateEndDate}. Your current state overlaps with that time. Please adjust the dates so the state timeframes do not overlap.`,
230
- params: ['state', 'stateStartDate', 'stateEndDate'],
224
+ NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
225
+ 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.`,
226
+ params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
231
227
  },
232
228
  DOMESTIC_STATE_DATE_GAP_DETECTED: {
233
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.`,
234
230
  params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
235
231
  },
232
+ DOMESTIC_STATE_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
236
  DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
237
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
238
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
239
239
  },
240
- DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
241
- 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}. `,
242
- params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
240
+ DOMESTIC_STATES_DATES_OVERLAP: {
241
+ 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.`,
242
+ params: ['state', 'stateStartDate', 'stateEndDate'],
243
+ },
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}.`,
246
+ params: ['state', 'stateStartDate', 'stateEndDate'],
243
247
  },
244
248
  },
245
249
  FILING_CATEGORY: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -140,10 +140,6 @@ export const VALIDATION_MESSAGES = {
140
140
  message: `One or more filing type statuses have a start date which is after the client’s close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client’s close date, or update the client's close date.`,
141
141
  params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
142
142
  },
143
- NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
144
- 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.`,
145
- params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
146
- },
147
143
  ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
148
144
  message: `Current Entity Type Starting Date cannot be Empty`,
149
145
  },
@@ -222,22 +218,31 @@ export const VALIDATION_MESSAGES = {
222
218
  CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
223
219
  message: `This client cannot be deleted because it has contacts associated`,
224
220
  },
225
- DOMESTIC_STATE_DATES_OVERLAP: {
226
- message: `The entry already has {state} starting from {stateStartDate} to {stateEndDate}. Your current state overlaps with that time. Please adjust the dates so the state timeframes do not overlap.`,
227
- params: ['state', 'stateStartDate', 'stateEndDate'],
221
+ NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
222
+ 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.`,
223
+ params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
228
224
  },
229
225
  DOMESTIC_STATE_DATE_GAP_DETECTED: {
230
226
  message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
231
227
  params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
232
228
  },
229
+ DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
230
+ 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}. `,
231
+ params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
232
+ },
233
233
  DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
234
234
  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}.`,
235
235
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
236
236
  },
237
- DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
238
- 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}. `,
239
- params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
237
+ DOMESTIC_STATES_DATES_OVERLAP: {
238
+ 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.`,
239
+ params: ['state', 'stateStartDate', 'stateEndDate'],
240
+ },
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}.`,
243
+ params: ['state', 'stateStartDate', 'stateEndDate'],
240
244
  },
245
+
241
246
  },
242
247
  FILING_CATEGORY: {
243
248
  INVALID_REQUEST: {