@forwardslashns/taskit-validation-messages 1.0.60 → 1.0.61

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.
@@ -584,8 +584,8 @@ export declare const VALIDATION_MESSAGES: {
584
584
  readonly params: readonly ["permissionId"];
585
585
  };
586
586
  readonly ROLE_HAS_ASSIGNED_USERS: {
587
- readonly message: "Cannot delete role with id '{roleId}' because it has users assigned to it";
588
- readonly params: readonly ["roleId"];
587
+ readonly message: "Cannot delete role with name '{roleName}' because it has users assigned to it";
588
+ readonly params: readonly ["roleName"];
589
589
  };
590
590
  };
591
591
  readonly DATA_FILTER: {
@@ -590,8 +590,8 @@ exports.VALIDATION_MESSAGES = {
590
590
  params: ['permissionId'],
591
591
  },
592
592
  ROLE_HAS_ASSIGNED_USERS: {
593
- message: `Cannot delete role with id '{roleId}' because it has users assigned to it`,
594
- params: ['roleId'],
593
+ message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
594
+ params: ['roleName'],
595
595
  },
596
596
  },
597
597
  //BACKEND ONLY VALIDATION FEATURES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -589,8 +589,8 @@ export const VALIDATION_MESSAGES = {
589
589
  params: ['permissionId'],
590
590
  },
591
591
  ROLE_HAS_ASSIGNED_USERS: {
592
- message: `Cannot delete role with id '{roleId}' because it has users assigned to it`,
593
- params: ['roleId'],
592
+ message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
593
+ params: ['roleName'],
594
594
  },
595
595
  },
596
596
  //BACKEND ONLY VALIDATION FEATURES