@forwardslashns/taskit-validation-messages 1.0.47 → 1.0.49
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.
|
@@ -85,20 +85,44 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
85
85
|
};
|
|
86
86
|
readonly BUSINESS_ACTIVITY: {
|
|
87
87
|
readonly INVALID_REQUEST: {
|
|
88
|
-
readonly message: "Missing business activity id in request";
|
|
88
|
+
readonly message: "Missing business activity id in request.";
|
|
89
89
|
};
|
|
90
90
|
readonly ID_DOES_NOT_EXIST: {
|
|
91
|
-
readonly message: "Business activity with id '{id}' does not exist";
|
|
91
|
+
readonly message: "Business activity with id '{id}' does not exist.";
|
|
92
92
|
readonly params: readonly ["id"];
|
|
93
93
|
};
|
|
94
94
|
readonly NAME_ALREADY_EXISTS: {
|
|
95
|
-
readonly message: "Business activity with the same name '{name}' already exists";
|
|
95
|
+
readonly message: "Business activity with the same name '{name}' already exists.";
|
|
96
96
|
readonly params: readonly ["name"];
|
|
97
97
|
};
|
|
98
98
|
readonly OPTION_IN_USE: {
|
|
99
99
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
+
readonly BANK: {
|
|
103
|
+
readonly INVALID_ROUTING_NUMBER: {
|
|
104
|
+
readonly message: "Enter a valid routing number.";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly CREDIT_CARD: {
|
|
108
|
+
readonly INVALID_EXPIRATION_DATE: {
|
|
109
|
+
readonly message: "Enter a valid expiration date (i.e. 12/2024).";
|
|
110
|
+
};
|
|
111
|
+
readonly INVALID_SECURITY_CODE: {
|
|
112
|
+
readonly message: "Enter a valid security code (i.e. 1234).";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly BANK_AND_CREDIT_CARD: {
|
|
116
|
+
readonly INVALID_ACCOUNT_NUMBER: {
|
|
117
|
+
readonly message: "Enter a valid account number.";
|
|
118
|
+
};
|
|
119
|
+
readonly INVALID_DESCRIPTION: {
|
|
120
|
+
readonly message: "There is another payment method with the same description. Please ensure all payment methods have different descriptions.";
|
|
121
|
+
};
|
|
122
|
+
readonly NO_DEFAULT_PAYMENT_METHOD: {
|
|
123
|
+
readonly message: "There must be at least one payment method marked as default. Please select a default payment method.";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
102
126
|
readonly CONTACT: {
|
|
103
127
|
readonly CONTACT_ROLES_NOT_FOUND: {
|
|
104
128
|
readonly message: "Contact roles with ids {ids} do not exist";
|
|
@@ -127,6 +151,21 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
127
151
|
readonly message: "The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.";
|
|
128
152
|
};
|
|
129
153
|
};
|
|
154
|
+
readonly COMISSION_DETAIL: {
|
|
155
|
+
readonly INVALID_REQUEST: {
|
|
156
|
+
readonly message: "Missing commission detail id in request";
|
|
157
|
+
};
|
|
158
|
+
readonly SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
159
|
+
readonly message: "Sales representative with id '{id}' does not exist";
|
|
160
|
+
readonly params: readonly ["id"];
|
|
161
|
+
};
|
|
162
|
+
readonly COMISSION_RATE_TOO_LOW: {
|
|
163
|
+
readonly message: "Enter a commission value greater than 0.0";
|
|
164
|
+
};
|
|
165
|
+
readonly COMISSION_RATE_TOO_HIGH: {
|
|
166
|
+
readonly message: "Enter a value less than 100%.";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
130
169
|
readonly CLIENT: {
|
|
131
170
|
readonly INVALID_REQUEST: {
|
|
132
171
|
readonly message: "Missing client id in request";
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAokBtB,CAAC"}
|
|
@@ -88,20 +88,44 @@ exports.VALIDATION_MESSAGES = {
|
|
|
88
88
|
},
|
|
89
89
|
BUSINESS_ACTIVITY: {
|
|
90
90
|
INVALID_REQUEST: {
|
|
91
|
-
message: 'Missing business activity id in request',
|
|
91
|
+
message: 'Missing business activity id in request.',
|
|
92
92
|
},
|
|
93
93
|
ID_DOES_NOT_EXIST: {
|
|
94
|
-
message: `Business activity with id '{id}' does not exist
|
|
94
|
+
message: `Business activity with id '{id}' does not exist.`,
|
|
95
95
|
params: ['id'],
|
|
96
96
|
},
|
|
97
97
|
NAME_ALREADY_EXISTS: {
|
|
98
|
-
message: `Business activity with the same name '{name}' already exists
|
|
98
|
+
message: `Business activity with the same name '{name}' already exists.`,
|
|
99
99
|
params: ['name'],
|
|
100
100
|
},
|
|
101
101
|
OPTION_IN_USE: {
|
|
102
102
|
message: `This option is currently in use and cannot be deleted.`,
|
|
103
103
|
},
|
|
104
104
|
},
|
|
105
|
+
BANK: {
|
|
106
|
+
INVALID_ROUTING_NUMBER: {
|
|
107
|
+
message: 'Enter a valid routing number.',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
CREDIT_CARD: {
|
|
111
|
+
INVALID_EXPIRATION_DATE: {
|
|
112
|
+
message: 'Enter a valid expiration date (i.e. 12/2024).',
|
|
113
|
+
},
|
|
114
|
+
INVALID_SECURITY_CODE: {
|
|
115
|
+
message: 'Enter a valid security code (i.e. 1234).',
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
BANK_AND_CREDIT_CARD: {
|
|
119
|
+
INVALID_ACCOUNT_NUMBER: {
|
|
120
|
+
message: 'Enter a valid account number.',
|
|
121
|
+
},
|
|
122
|
+
INVALID_DESCRIPTION: {
|
|
123
|
+
message: 'There is another payment method with the same description. Please ensure all payment methods have different descriptions.',
|
|
124
|
+
},
|
|
125
|
+
NO_DEFAULT_PAYMENT_METHOD: {
|
|
126
|
+
message: 'There must be at least one payment method marked as default. Please select a default payment method.',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
105
129
|
CONTACT: {
|
|
106
130
|
CONTACT_ROLES_NOT_FOUND: {
|
|
107
131
|
message: `Contact roles with ids {ids} do not exist`,
|
|
@@ -130,6 +154,21 @@ exports.VALIDATION_MESSAGES = {
|
|
|
130
154
|
message: `The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.`,
|
|
131
155
|
},
|
|
132
156
|
},
|
|
157
|
+
COMISSION_DETAIL: {
|
|
158
|
+
INVALID_REQUEST: {
|
|
159
|
+
message: 'Missing commission detail id in request',
|
|
160
|
+
},
|
|
161
|
+
SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
162
|
+
message: `Sales representative with id '{id}' does not exist`,
|
|
163
|
+
params: ['id'],
|
|
164
|
+
},
|
|
165
|
+
COMISSION_RATE_TOO_LOW: {
|
|
166
|
+
message: `Enter a commission value greater than 0.0`,
|
|
167
|
+
},
|
|
168
|
+
COMISSION_RATE_TOO_HIGH: {
|
|
169
|
+
message: `Enter a value less than 100%.`,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
133
172
|
CLIENT: {
|
|
134
173
|
INVALID_REQUEST: {
|
|
135
174
|
message: 'Missing client id in request',
|
package/package.json
CHANGED
|
@@ -85,20 +85,45 @@ export const VALIDATION_MESSAGES = {
|
|
|
85
85
|
},
|
|
86
86
|
BUSINESS_ACTIVITY: {
|
|
87
87
|
INVALID_REQUEST: {
|
|
88
|
-
message: 'Missing business activity id in request',
|
|
88
|
+
message: 'Missing business activity id in request.',
|
|
89
89
|
},
|
|
90
90
|
ID_DOES_NOT_EXIST: {
|
|
91
|
-
message: `Business activity with id '{id}' does not exist
|
|
91
|
+
message: `Business activity with id '{id}' does not exist.`,
|
|
92
92
|
params: ['id'],
|
|
93
93
|
},
|
|
94
94
|
NAME_ALREADY_EXISTS: {
|
|
95
|
-
message: `Business activity with the same name '{name}' already exists
|
|
95
|
+
message: `Business activity with the same name '{name}' already exists.`,
|
|
96
96
|
params: ['name'],
|
|
97
97
|
},
|
|
98
98
|
OPTION_IN_USE: {
|
|
99
99
|
message: `This option is currently in use and cannot be deleted.`,
|
|
100
100
|
},
|
|
101
101
|
},
|
|
102
|
+
BANK: {
|
|
103
|
+
INVALID_ROUTING_NUMBER: {
|
|
104
|
+
message: 'Enter a valid routing number.',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
CREDIT_CARD: {
|
|
108
|
+
INVALID_EXPIRATION_DATE: {
|
|
109
|
+
message: 'Enter a valid expiration date (i.e. 12/2024).',
|
|
110
|
+
},
|
|
111
|
+
INVALID_SECURITY_CODE: {
|
|
112
|
+
message: 'Enter a valid security code (i.e. 1234).',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
BANK_AND_CREDIT_CARD: {
|
|
116
|
+
INVALID_ACCOUNT_NUMBER: {
|
|
117
|
+
message: 'Enter a valid account number.',
|
|
118
|
+
},
|
|
119
|
+
INVALID_DESCRIPTION: {
|
|
120
|
+
message:
|
|
121
|
+
'There is another payment method with the same description. Please ensure all payment methods have different descriptions.',
|
|
122
|
+
},
|
|
123
|
+
NO_DEFAULT_PAYMENT_METHOD: {
|
|
124
|
+
message: 'There must be at least one payment method marked as default. Please select a default payment method.',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
102
127
|
CONTACT: {
|
|
103
128
|
CONTACT_ROLES_NOT_FOUND: {
|
|
104
129
|
message: `Contact roles with ids {ids} do not exist`,
|
|
@@ -127,6 +152,21 @@ export const VALIDATION_MESSAGES = {
|
|
|
127
152
|
message: `The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.`,
|
|
128
153
|
},
|
|
129
154
|
},
|
|
155
|
+
COMISSION_DETAIL: {
|
|
156
|
+
INVALID_REQUEST: {
|
|
157
|
+
message: 'Missing commission detail id in request',
|
|
158
|
+
},
|
|
159
|
+
SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
160
|
+
message: `Sales representative with id '{id}' does not exist`,
|
|
161
|
+
params: ['id'],
|
|
162
|
+
},
|
|
163
|
+
COMISSION_RATE_TOO_LOW: {
|
|
164
|
+
message: `Enter a commission value greater than 0.0`,
|
|
165
|
+
},
|
|
166
|
+
COMISSION_RATE_TOO_HIGH: {
|
|
167
|
+
message: `Enter a value less than 100%.`,
|
|
168
|
+
},
|
|
169
|
+
},
|
|
130
170
|
CLIENT: {
|
|
131
171
|
INVALID_REQUEST: {
|
|
132
172
|
message: 'Missing client id in request',
|