@forwardslashns/taskit-validation-messages 1.0.33 → 1.0.35

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.
@@ -211,7 +211,8 @@ export declare const VALIDATION_MESSAGES: {
211
211
  readonly message: "At least one entity type should exist";
212
212
  };
213
213
  readonly ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
214
- readonly message: "Entity Type Starting Date cannot be Empty";
214
+ readonly message: "Starting date for {entityType} cannot be empty";
215
+ readonly params: readonly ["entityType"];
215
216
  };
216
217
  readonly NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
217
218
  readonly message: "The ending date for {entityType} must be after its starting date";
@@ -238,7 +239,7 @@ export declare const VALIDATION_MESSAGES: {
238
239
  readonly params: readonly ["dateEstablished", "earliestEntityType", "earliestEntityTypeStartDate"];
239
240
  };
240
241
  readonly ENTITY_TYPES_DATES_OVERLAP: {
241
- readonly message: "There are multiple entries for {entityType} with overlapping timeframes: {entityType} from {startDate1} to {endDate1}, {entityType} from {startDate2} to {endDate2}. An entity type cannot appear more than once with overlapping dates. Please adjust the dates on the new or existing {entityType} entries to remove the overlap.";
242
+ readonly message: "The client already has {entitytype} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
242
243
  readonly params: readonly ["entityType", "startDate1", "endDate1", "startDate2", "endDate2"];
243
244
  };
244
245
  readonly ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
@@ -255,7 +256,8 @@ export declare const VALIDATION_MESSAGES: {
255
256
  readonly message: "At least one Parent/Sub status should exist";
256
257
  };
257
258
  readonly FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
258
- readonly message: "Parent/Sub status Starting Date cannot be Empty";
259
+ readonly message: "Starting date for {filingType} cannot be empty";
260
+ readonly params: readonly ["filingType"];
259
261
  };
260
262
  readonly NOT_ALIGNED_FILING_TYPES_STARTING_ENDING_DATE: {
261
263
  readonly message: "The ending date for {filingType} must be after its starting date";
@@ -282,7 +284,7 @@ export declare const VALIDATION_MESSAGES: {
282
284
  readonly params: readonly ["dateEstablished", "earliestFilingType", "earliestFilingTypeStartDate"];
283
285
  };
284
286
  readonly FILING_TYPES_DATES_OVERLAP: {
285
- readonly message: "There are multiple entries for {filingType} with overlapping timeframes: {filingType} from {startDate1} to {endDate1}, {filingType} from {startDate2} to {endDate2}. A Parent/Sub status cannot appear more than once with overlapping dates. Please adjust the dates on the new or existing {filingType} entries to remove the overlap.";
287
+ readonly message: "The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
286
288
  readonly params: readonly ["filingType", "startDate1", "endDate1", "startDate2", "endDate2"];
287
289
  };
288
290
  readonly ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
@@ -303,7 +305,8 @@ export declare const VALIDATION_MESSAGES: {
303
305
  readonly message: "At least one domestic state should exist";
304
306
  };
305
307
  readonly STATES_STARTING_DATE_NOT_POPULATED: {
306
- readonly message: "States Starting Date cannot be Empty";
308
+ readonly message: "Starting date for {state} cannot be empty";
309
+ readonly params: readonly ["state"];
307
310
  };
308
311
  readonly NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
309
312
  readonly message: "The ending date for {state} must be after its starting date";
@@ -330,7 +333,7 @@ export declare const VALIDATION_MESSAGES: {
330
333
  readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
331
334
  };
332
335
  readonly STATES_DATES_OVERLAP: {
333
- 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.";
336
+ readonly message: "The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
334
337
  readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
335
338
  };
336
339
  readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAybtB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4btB,CAAC"}
@@ -215,7 +215,8 @@ exports.VALIDATION_MESSAGES = {
215
215
  message: `At least one entity type should exist`,
216
216
  },
217
217
  ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
218
- message: `Entity Type Starting Date cannot be Empty`,
218
+ message: `Starting date for {entityType} cannot be empty`,
219
+ params: ['entityType'],
219
220
  },
220
221
  NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
221
222
  message: `The ending date for {entityType} must be after its starting date`,
@@ -242,7 +243,7 @@ exports.VALIDATION_MESSAGES = {
242
243
  params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
243
244
  },
244
245
  ENTITY_TYPES_DATES_OVERLAP: {
245
- message: `There are multiple entries for {entityType} with overlapping timeframes: {entityType} from {startDate1} to {endDate1}, {entityType} from {startDate2} to {endDate2}. An entity type cannot appear more than once with overlapping dates. Please adjust the dates on the new or existing {entityType} entries to remove the overlap.`,
246
+ message: `The client already has {entitytype} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
246
247
  params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
247
248
  },
248
249
  ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
@@ -260,7 +261,8 @@ exports.VALIDATION_MESSAGES = {
260
261
  message: `At least one Parent/Sub status should exist`,
261
262
  },
262
263
  FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
263
- message: `Parent/Sub status Starting Date cannot be Empty`,
264
+ message: `Starting date for {filingType} cannot be empty`,
265
+ params: ['filingType'],
264
266
  },
265
267
  NOT_ALIGNED_FILING_TYPES_STARTING_ENDING_DATE: {
266
268
  message: `The ending date for {filingType} must be after its starting date`,
@@ -287,7 +289,7 @@ exports.VALIDATION_MESSAGES = {
287
289
  params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
288
290
  },
289
291
  FILING_TYPES_DATES_OVERLAP: {
290
- message: `There are multiple entries for {filingType} with overlapping timeframes: {filingType} from {startDate1} to {endDate1}, {filingType} from {startDate2} to {endDate2}. A Parent/Sub status cannot appear more than once with overlapping dates. Please adjust the dates on the new or existing {filingType} entries to remove the overlap.`,
292
+ message: `The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
291
293
  params: ['filingType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
292
294
  },
293
295
  ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
@@ -309,7 +311,8 @@ exports.VALIDATION_MESSAGES = {
309
311
  message: `At least one domestic state should exist`,
310
312
  },
311
313
  STATES_STARTING_DATE_NOT_POPULATED: {
312
- message: `States Starting Date cannot be Empty`,
314
+ message: `Starting date for {state} cannot be empty`,
315
+ params: ['state'],
313
316
  },
314
317
  NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
315
318
  message: `The ending date for {state} must be after its starting date`,
@@ -336,7 +339,7 @@ exports.VALIDATION_MESSAGES = {
336
339
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
337
340
  },
338
341
  STATES_DATES_OVERLAP: {
339
- 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.`,
342
+ message: `The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
340
343
  params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
341
344
  },
342
345
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -212,7 +212,8 @@ export const VALIDATION_MESSAGES = {
212
212
  message: `At least one entity type should exist`,
213
213
  },
214
214
  ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
215
- message: `Entity Type Starting Date cannot be Empty`,
215
+ message: `Starting date for {entityType} cannot be empty`,
216
+ params: ['entityType'],
216
217
  },
217
218
  NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
218
219
  message: `The ending date for {entityType} must be after its starting date`,
@@ -239,7 +240,7 @@ export const VALIDATION_MESSAGES = {
239
240
  params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
240
241
  },
241
242
  ENTITY_TYPES_DATES_OVERLAP: {
242
- message: `There are multiple entries for {entityType} with overlapping timeframes: {entityType} from {startDate1} to {endDate1}, {entityType} from {startDate2} to {endDate2}. An entity type cannot appear more than once with overlapping dates. Please adjust the dates on the new or existing {entityType} entries to remove the overlap.`,
243
+ message: `The client already has {entitytype} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
243
244
  params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
244
245
  },
245
246
  ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
@@ -257,7 +258,8 @@ export const VALIDATION_MESSAGES = {
257
258
  message: `At least one Parent/Sub status should exist`,
258
259
  },
259
260
  FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
260
- message: `Parent/Sub status Starting Date cannot be Empty`,
261
+ message: `Starting date for {filingType} cannot be empty`,
262
+ params: ['filingType'],
261
263
  },
262
264
  NOT_ALIGNED_FILING_TYPES_STARTING_ENDING_DATE: {
263
265
  message: `The ending date for {filingType} must be after its starting date`,
@@ -284,7 +286,7 @@ export const VALIDATION_MESSAGES = {
284
286
  params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
285
287
  },
286
288
  FILING_TYPES_DATES_OVERLAP: {
287
- message: `There are multiple entries for {filingType} with overlapping timeframes: {filingType} from {startDate1} to {endDate1}, {filingType} from {startDate2} to {endDate2}. A Parent/Sub status cannot appear more than once with overlapping dates. Please adjust the dates on the new or existing {filingType} entries to remove the overlap.`,
289
+ message: `The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
288
290
  params: ['filingType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
289
291
  },
290
292
  ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
@@ -306,7 +308,8 @@ export const VALIDATION_MESSAGES = {
306
308
  message: `At least one domestic state should exist`,
307
309
  },
308
310
  STATES_STARTING_DATE_NOT_POPULATED: {
309
- message: `States Starting Date cannot be Empty`,
311
+ message: `Starting date for {state} cannot be empty`,
312
+ params: ['state'],
310
313
  },
311
314
  NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
312
315
  message: `The ending date for {state} must be after its starting date`,
@@ -333,7 +336,7 @@ export const VALIDATION_MESSAGES = {
333
336
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
334
337
  },
335
338
  STATES_DATES_OVERLAP: {
336
- 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.`,
339
+ message: `The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
337
340
  params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
338
341
  },
339
342
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {