@forwardslashns/taskit-validation-messages 1.0.35 → 1.0.37

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.
@@ -239,7 +239,7 @@ export declare const VALIDATION_MESSAGES: {
239
239
  readonly params: readonly ["dateEstablished", "earliestEntityType", "earliestEntityTypeStartDate"];
240
240
  };
241
241
  readonly ENTITY_TYPES_DATES_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
+ 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.";
243
243
  readonly params: readonly ["entityType", "startDate1", "endDate1", "startDate2", "endDate2"];
244
244
  };
245
245
  readonly ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
@@ -382,9 +382,13 @@ export declare const VALIDATION_MESSAGES: {
382
382
  readonly message: "Parent state with id '{id}' does not exist";
383
383
  readonly params: readonly ["id"];
384
384
  };
385
- readonly PARENT_STATE_TYPE_NOT_ALLOWED: {
386
- readonly message: "Parent state '{parentName}' has type '{parentType}' which is not allowed parent type for state '{stateName}' with type '{stateType}'";
387
- readonly params: readonly ["parentName", "parentType", "stateName", "stateType"];
385
+ readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
386
+ readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
387
+ readonly params: readonly ["stateName"];
388
+ };
389
+ readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
390
+ readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
391
+ readonly params: readonly ["cityName"];
388
392
  };
389
393
  readonly OPTION_IN_USE: {
390
394
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAA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_MESSAGES = {
243
243
  params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
244
244
  },
245
245
  ENTITY_TYPES_DATES_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
+ 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.`,
247
247
  params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
248
248
  },
249
249
  ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
@@ -388,9 +388,13 @@ exports.VALIDATION_MESSAGES = {
388
388
  message: `Parent state with id '{id}' does not exist`,
389
389
  params: ['id'],
390
390
  },
391
- PARENT_STATE_TYPE_NOT_ALLOWED: {
392
- message: `Parent state '{parentName}' has type '{parentType}' which is not allowed parent type for state '{stateName}' with type '{stateType}'`,
393
- params: ['parentName', 'parentType', 'stateName', 'stateType'],
391
+ STATE_PARENT_TYPE_NOT_ALLOWED: {
392
+ message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
393
+ params: ['stateName'],
394
+ },
395
+ CITY_PARENT_TYPE_NOT_ALLOWED: {
396
+ message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
397
+ params: ['cityName'],
394
398
  },
395
399
  OPTION_IN_USE: {
396
400
  message: `This option is currently in use and cannot be deleted.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -240,7 +240,7 @@ export const VALIDATION_MESSAGES = {
240
240
  params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
241
241
  },
242
242
  ENTITY_TYPES_DATES_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
+ 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.`,
244
244
  params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
245
245
  },
246
246
  ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
@@ -385,9 +385,13 @@ export const VALIDATION_MESSAGES = {
385
385
  message: `Parent state with id '{id}' does not exist`,
386
386
  params: ['id'],
387
387
  },
388
- PARENT_STATE_TYPE_NOT_ALLOWED: {
389
- message: `Parent state '{parentName}' has type '{parentType}' which is not allowed parent type for state '{stateName}' with type '{stateType}'`,
390
- params: ['parentName', 'parentType', 'stateName', 'stateType'],
388
+ STATE_PARENT_TYPE_NOT_ALLOWED: {
389
+ message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
390
+ params: ['stateName'],
391
+ },
392
+ CITY_PARENT_TYPE_NOT_ALLOWED: {
393
+ message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
394
+ params: ['cityName'],
391
395
  },
392
396
  OPTION_IN_USE: {
393
397
  message: `This option is currently in use and cannot be deleted.`,