@forwardslashns/taskit-validation-messages 1.0.58 → 1.0.60
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.
|
@@ -285,8 +285,8 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
285
285
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
|
|
286
286
|
readonly message: "Create an Address - One address needs to have been saved to this client";
|
|
287
287
|
};
|
|
288
|
-
readonly
|
|
289
|
-
readonly message: "This client cannot be deleted because it has client
|
|
288
|
+
readonly CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
|
|
289
|
+
readonly message: "This client cannot be deleted because it has client relationships associated";
|
|
290
290
|
};
|
|
291
291
|
readonly CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
|
|
292
292
|
readonly message: "This client cannot be deleted because it has client project templates associated";
|
|
@@ -583,6 +583,10 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
583
583
|
readonly message: "Permission with id '{permissionId}' does not exist";
|
|
584
584
|
readonly params: readonly ["permissionId"];
|
|
585
585
|
};
|
|
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"];
|
|
589
|
+
};
|
|
586
590
|
};
|
|
587
591
|
readonly DATA_FILTER: {
|
|
588
592
|
readonly MISSING_PAGE_SIZE: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2nBtB,CAAC"}
|
|
@@ -288,8 +288,8 @@ exports.VALIDATION_MESSAGES = {
|
|
|
288
288
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
|
|
289
289
|
message: `Create an Address - One address needs to have been saved to this client`,
|
|
290
290
|
},
|
|
291
|
-
|
|
292
|
-
message: `This client cannot be deleted because it has client
|
|
291
|
+
CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
|
|
292
|
+
message: `This client cannot be deleted because it has client relationships associated`,
|
|
293
293
|
},
|
|
294
294
|
CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
|
|
295
295
|
message: `This client cannot be deleted because it has client project templates associated`,
|
|
@@ -589,6 +589,10 @@ exports.VALIDATION_MESSAGES = {
|
|
|
589
589
|
message: `Permission with id '{permissionId}' does not exist`,
|
|
590
590
|
params: ['permissionId'],
|
|
591
591
|
},
|
|
592
|
+
ROLE_HAS_ASSIGNED_USERS: {
|
|
593
|
+
message: `Cannot delete role with id '{roleId}' because it has users assigned to it`,
|
|
594
|
+
params: ['roleId'],
|
|
595
|
+
},
|
|
592
596
|
},
|
|
593
597
|
//BACKEND ONLY VALIDATION FEATURES
|
|
594
598
|
DATA_FILTER: {
|
package/package.json
CHANGED
|
@@ -124,7 +124,8 @@ export const VALIDATION_MESSAGES = {
|
|
|
124
124
|
message: 'There must be at least one payment method marked as default. Please select a default payment method.',
|
|
125
125
|
},
|
|
126
126
|
MULTIPLE_DEFAULT_PAYMENT_METHODS: {
|
|
127
|
-
message:
|
|
127
|
+
message:
|
|
128
|
+
'There can only be one default payment method. Please ensure only one payment method is marked as default.',
|
|
128
129
|
},
|
|
129
130
|
},
|
|
130
131
|
CONTACT: {
|
|
@@ -286,8 +287,8 @@ export const VALIDATION_MESSAGES = {
|
|
|
286
287
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
|
|
287
288
|
message: `Create an Address - One address needs to have been saved to this client`,
|
|
288
289
|
},
|
|
289
|
-
|
|
290
|
-
message: `This client cannot be deleted because it has client
|
|
290
|
+
CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
|
|
291
|
+
message: `This client cannot be deleted because it has client relationships associated`,
|
|
291
292
|
},
|
|
292
293
|
CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
|
|
293
294
|
message: `This client cannot be deleted because it has client project templates associated`,
|
|
@@ -587,6 +588,10 @@ export const VALIDATION_MESSAGES = {
|
|
|
587
588
|
message: `Permission with id '{permissionId}' does not exist`,
|
|
588
589
|
params: ['permissionId'],
|
|
589
590
|
},
|
|
591
|
+
ROLE_HAS_ASSIGNED_USERS: {
|
|
592
|
+
message: `Cannot delete role with id '{roleId}' because it has users assigned to it`,
|
|
593
|
+
params: ['roleId'],
|
|
594
|
+
},
|
|
590
595
|
},
|
|
591
596
|
//BACKEND ONLY VALIDATION FEATURES
|
|
592
597
|
DATA_FILTER: {
|