@forwardslashns/taskit-validation-messages 1.0.53 → 1.0.55
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.
|
@@ -152,9 +152,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
154
|
readonly COMISSION_DETAIL: {
|
|
155
|
-
readonly
|
|
155
|
+
readonly INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
|
|
156
156
|
readonly message: "If client is subject to commission, sales representative and commission rate must be provided.";
|
|
157
157
|
};
|
|
158
|
+
readonly INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
|
|
159
|
+
readonly message: "If client is not subject to commission, sales representative and commission rate must not be provided.";
|
|
160
|
+
};
|
|
158
161
|
readonly SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
159
162
|
readonly message: "Sales representative with id '{id}' does not exist";
|
|
160
163
|
readonly params: readonly ["id"];
|
|
@@ -537,6 +540,10 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
537
540
|
readonly message: "User with username '{username}' already exists";
|
|
538
541
|
readonly params: readonly ["username"];
|
|
539
542
|
};
|
|
543
|
+
readonly EMAIL_ALREADY_EXISTS: {
|
|
544
|
+
readonly message: "User with email '{email}' already exists";
|
|
545
|
+
readonly params: readonly ["email"];
|
|
546
|
+
};
|
|
540
547
|
readonly ROLE_DOES_NOT_EXIST: {
|
|
541
548
|
readonly message: "Role with id '{roleId}' does not exist";
|
|
542
549
|
readonly params: readonly ["roleId"];
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6mBtB,CAAC"}
|
|
@@ -155,9 +155,12 @@ exports.VALIDATION_MESSAGES = {
|
|
|
155
155
|
},
|
|
156
156
|
},
|
|
157
157
|
COMISSION_DETAIL: {
|
|
158
|
-
|
|
158
|
+
INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
|
|
159
159
|
message: 'If client is subject to commission, sales representative and commission rate must be provided.',
|
|
160
160
|
},
|
|
161
|
+
INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
|
|
162
|
+
message: 'If client is not subject to commission, sales representative and commission rate must not be provided.',
|
|
163
|
+
},
|
|
161
164
|
SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
162
165
|
message: `Sales representative with id '{id}' does not exist`,
|
|
163
166
|
params: ['id'],
|
|
@@ -543,6 +546,10 @@ exports.VALIDATION_MESSAGES = {
|
|
|
543
546
|
message: `User with username '{username}' already exists`,
|
|
544
547
|
params: ['username'],
|
|
545
548
|
},
|
|
549
|
+
EMAIL_ALREADY_EXISTS: {
|
|
550
|
+
message: `User with email '{email}' already exists`,
|
|
551
|
+
params: ['email'],
|
|
552
|
+
},
|
|
546
553
|
ROLE_DOES_NOT_EXIST: {
|
|
547
554
|
message: `Role with id '{roleId}' does not exist`,
|
|
548
555
|
params: ['roleId'],
|
package/package.json
CHANGED
|
@@ -153,9 +153,12 @@ export const VALIDATION_MESSAGES = {
|
|
|
153
153
|
},
|
|
154
154
|
},
|
|
155
155
|
COMISSION_DETAIL: {
|
|
156
|
-
|
|
156
|
+
INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
|
|
157
157
|
message: 'If client is subject to commission, sales representative and commission rate must be provided.',
|
|
158
158
|
},
|
|
159
|
+
INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
|
|
160
|
+
message: 'If client is not subject to commission, sales representative and commission rate must not be provided.',
|
|
161
|
+
},
|
|
159
162
|
SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
160
163
|
message: `Sales representative with id '{id}' does not exist`,
|
|
161
164
|
params: ['id'],
|
|
@@ -541,6 +544,10 @@ export const VALIDATION_MESSAGES = {
|
|
|
541
544
|
message: `User with username '{username}' already exists`,
|
|
542
545
|
params: ['username'],
|
|
543
546
|
},
|
|
547
|
+
EMAIL_ALREADY_EXISTS: {
|
|
548
|
+
message: `User with email '{email}' already exists`,
|
|
549
|
+
params: ['email'],
|
|
550
|
+
},
|
|
544
551
|
ROLE_DOES_NOT_EXIST: {
|
|
545
552
|
message: `Role with id '{roleId}' does not exist`,
|
|
546
553
|
params: ['roleId'],
|