@forwardslashns/taskit-validation-messages 1.0.36 → 1.0.38

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.
@@ -382,9 +382,16 @@ 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 NATION_PARENT_TYPE_NOT_ALLOWED: {
386
+ readonly message: "Nation cannot have associated parent.";
387
+ };
388
+ readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
389
+ readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
390
+ readonly params: readonly ["stateName"];
391
+ };
392
+ readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
393
+ readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
394
+ readonly params: readonly ["cityName"];
388
395
  };
389
396
  readonly OPTION_IN_USE: {
390
397
  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,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4btB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmctB,CAAC"}
@@ -388,9 +388,16 @@ 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
+ NATION_PARENT_TYPE_NOT_ALLOWED: {
392
+ message: `Nation cannot have associated parent.`,
393
+ },
394
+ STATE_PARENT_TYPE_NOT_ALLOWED: {
395
+ message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
396
+ params: ['stateName'],
397
+ },
398
+ CITY_PARENT_TYPE_NOT_ALLOWED: {
399
+ message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
400
+ params: ['cityName'],
394
401
  },
395
402
  OPTION_IN_USE: {
396
403
  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.36",
3
+ "version": "1.0.38",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -385,9 +385,16 @@ 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
+ NATION_PARENT_TYPE_NOT_ALLOWED: {
389
+ message: `Nation cannot have associated parent.`,
390
+ },
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'],
391
398
  },
392
399
  OPTION_IN_USE: {
393
400
  message: `This option is currently in use and cannot be deleted.`,