@forwardslashns/taskit-validation-messages 1.1.0 → 1.3.0
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.
- package/PUBLISHING.md +3 -0
- package/dist/validation/features/account-category.validation-messages.d.ts +21 -0
- package/dist/validation/features/account-category.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/account-category.validation-messages.js +23 -0
- package/dist/validation/features/account-id.validation-messages.d.ts +26 -0
- package/dist/validation/features/account-id.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/account-id.validation-messages.js +28 -0
- package/dist/validation/features/business-activity.validation-messages.d.ts +21 -0
- package/dist/validation/features/business-activity.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/business-activity.validation-messages.js +23 -0
- package/dist/validation/features/client-current-entity-status.validation-messages.d.ts +138 -0
- package/dist/validation/features/client-current-entity-status.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-current-entity-status.validation-messages.js +140 -0
- package/dist/validation/features/client-record-address.validation-messages.d.ts +62 -0
- package/dist/validation/features/client-record-address.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-record-address.validation-messages.js +64 -0
- package/dist/validation/features/client-record-bank-and-credit-card.validation-messages.d.ts +31 -0
- package/dist/validation/features/client-record-bank-and-credit-card.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-record-bank-and-credit-card.validation-messages.js +33 -0
- package/dist/validation/features/client-record-commission-detail.validation-messages.d.ts +24 -0
- package/dist/validation/features/client-record-commission-detail.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-record-commission-detail.validation-messages.js +26 -0
- package/dist/validation/features/client-record-contact.validation-messages.d.ts +37 -0
- package/dist/validation/features/client-record-contact.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-record-contact.validation-messages.js +39 -0
- package/dist/validation/features/client-record-entity-state-history.validation-messages.d.ts +84 -0
- package/dist/validation/features/client-record-entity-state-history.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-record-entity-state-history.validation-messages.js +86 -0
- package/dist/validation/features/client-record-entity-type-history.validation-messages.d.ts +83 -0
- package/dist/validation/features/client-record-entity-type-history.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-record-entity-type-history.validation-messages.js +85 -0
- package/dist/validation/features/client-record-filing-type-history.validation-messages.d.ts +91 -0
- package/dist/validation/features/client-record-filing-type-history.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-record-filing-type-history.validation-messages.js +93 -0
- package/dist/validation/features/client-record-outside-provider.validation-messages.d.ts +13 -0
- package/dist/validation/features/client-record-outside-provider.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-record-outside-provider.validation-messages.js +15 -0
- package/dist/validation/features/client-relationship.validation-messages.d.ts +63 -0
- package/dist/validation/features/client-relationship.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-relationship.validation-messages.js +65 -0
- package/dist/validation/features/data-filter.validation-messages.d.ts +19 -0
- package/dist/validation/features/data-filter.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/data-filter.validation-messages.js +21 -0
- package/dist/validation/features/filing-category.validation-messages.d.ts +21 -0
- package/dist/validation/features/filing-category.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/filing-category.validation-messages.js +23 -0
- package/dist/validation/features/role-and-permission.validation-messages.d.ts +32 -0
- package/dist/validation/features/role-and-permission.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/role-and-permission.validation-messages.js +34 -0
- package/dist/validation/features/state.validation-messages.d.ts +49 -0
- package/dist/validation/features/state.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/state.validation-messages.js +51 -0
- package/dist/validation/features/user-preference.validation-messages.d.ts +20 -0
- package/dist/validation/features/user-preference.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/user-preference.validation-messages.js +22 -0
- package/dist/validation/features/user.validation-messages.d.ts +48 -0
- package/dist/validation/features/user.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/user.validation-messages.js +50 -0
- package/dist/validation/validation-messages.d.ts +93 -91
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/dist/validation/validation-messages.js +38 -866
- package/package.json +1 -1
- package/src/validation/features/account-category.validation-messages.ts +20 -0
- package/src/validation/features/account-id.validation-messages.ts +25 -0
- package/src/validation/features/business-activity.validation-messages.ts +20 -0
- package/src/validation/features/client-current-entity-status.validation-messages.ts +137 -0
- package/src/validation/features/client-record-address.validation-messages.ts +61 -0
- package/src/validation/features/client-record-bank-and-credit-card.validation-messages.ts +32 -0
- package/src/validation/features/client-record-commission-detail.validation-messages.ts +23 -0
- package/src/validation/features/client-record-contact.validation-messages.ts +36 -0
- package/src/validation/features/client-record-entity-state-history.validation-messages.ts +83 -0
- package/src/validation/features/client-record-entity-type-history.validation-messages.ts +82 -0
- package/src/validation/features/client-record-filing-type-history.validation-messages.ts +90 -0
- package/src/validation/features/client-record-outside-provider.validation-messages.ts +12 -0
- package/src/validation/features/client-relationship.validation-messages.ts +62 -0
- package/src/validation/features/data-filter.validation-messages.ts +18 -0
- package/src/validation/features/filing-category.validation-messages.ts +20 -0
- package/src/validation/features/role-and-permission.validation-messages.ts +31 -0
- package/src/validation/features/state.validation-messages.ts +48 -0
- package/src/validation/features/user-preference.validation-messages.ts +19 -0
- package/src/validation/features/user.validation-messages.ts +47 -0
- package/src/validation/validation-messages.ts +39 -868
|
@@ -1,871 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VALIDATION_MESSAGES = void 0;
|
|
4
|
+
const account_category_validation_messages_1 = require("./features/account-category.validation-messages");
|
|
5
|
+
const account_id_validation_messages_1 = require("./features/account-id.validation-messages");
|
|
6
|
+
const client_record_address_validation_messages_1 = require("./features/client-record-address.validation-messages");
|
|
7
|
+
const business_activity_validation_messages_1 = require("./features/business-activity.validation-messages");
|
|
8
|
+
const client_record_bank_and_credit_card_validation_messages_1 = require("./features/client-record-bank-and-credit-card.validation-messages");
|
|
9
|
+
const client_record_contact_validation_messages_1 = require("./features/client-record-contact.validation-messages");
|
|
10
|
+
const client_record_commission_detail_validation_messages_1 = require("./features/client-record-commission-detail.validation-messages");
|
|
11
|
+
const client_current_entity_status_validation_messages_1 = require("./features/client-current-entity-status.validation-messages");
|
|
12
|
+
const client_record_entity_type_history_validation_messages_1 = require("./features/client-record-entity-type-history.validation-messages");
|
|
13
|
+
const client_record_filing_type_history_validation_messages_1 = require("./features/client-record-filing-type-history.validation-messages");
|
|
14
|
+
const client_record_entity_state_history_validation_messages_1 = require("./features/client-record-entity-state-history.validation-messages");
|
|
15
|
+
const client_relationship_validation_messages_1 = require("./features/client-relationship.validation-messages");
|
|
16
|
+
const filing_category_validation_messages_1 = require("./features/filing-category.validation-messages");
|
|
17
|
+
const state_validation_messages_1 = require("./features/state.validation-messages");
|
|
18
|
+
const user_validation_messages_1 = require("./features/user.validation-messages");
|
|
19
|
+
const role_and_permission_validation_messages_1 = require("./features/role-and-permission.validation-messages");
|
|
20
|
+
const data_filter_validation_messages_1 = require("./features/data-filter.validation-messages");
|
|
21
|
+
const user_preference_validation_messages_1 = require("./features/user-preference.validation-messages");
|
|
22
|
+
const client_record_outside_provider_validation_messages_1 = require("./features/client-record-outside-provider.validation-messages");
|
|
4
23
|
exports.VALIDATION_MESSAGES = {
|
|
5
|
-
ACCOUNT_CATEGORY:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
ACCOUNT_ID: {
|
|
26
|
-
INVALID_REQUEST: {
|
|
27
|
-
message: 'Missing account id identifier in request',
|
|
28
|
-
affectedFields: [],
|
|
29
|
-
},
|
|
30
|
-
ID_DOES_NOT_EXIST: {
|
|
31
|
-
message: `Account id with id '{id}' does not exist`,
|
|
32
|
-
params: ['id'],
|
|
33
|
-
affectedFields: ['accountId'],
|
|
34
|
-
},
|
|
35
|
-
NAME_ALREADY_EXISTS: {
|
|
36
|
-
message: `Account id with the same name '{name}' already exists`,
|
|
37
|
-
params: ['name'],
|
|
38
|
-
affectedFields: ['name'],
|
|
39
|
-
},
|
|
40
|
-
ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
41
|
-
message: `Account category with id '{id}' does not exist`,
|
|
42
|
-
params: ['id'],
|
|
43
|
-
affectedFields: ['accountCategoryId'],
|
|
44
|
-
},
|
|
45
|
-
OPTION_IN_USE: {
|
|
46
|
-
message: `This option is currently in use and cannot be deleted.`,
|
|
47
|
-
affectedFields: [],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
ADDRESS: {
|
|
51
|
-
STATES_NOT_FOUND: {
|
|
52
|
-
message: 'States with ids {ids} do not exist',
|
|
53
|
-
params: ['ids'],
|
|
54
|
-
affectedFields: ['stateId'],
|
|
55
|
-
},
|
|
56
|
-
INVALID_STATE_TYPE: {
|
|
57
|
-
message: `States with ids {ids} are not of type 'State'`,
|
|
58
|
-
params: ['ids'],
|
|
59
|
-
affectedFields: ['stateId'],
|
|
60
|
-
},
|
|
61
|
-
CITIES_NOT_FOUND: {
|
|
62
|
-
message: `Cities with ids {ids} do not exist`,
|
|
63
|
-
params: ['ids'],
|
|
64
|
-
affectedFields: ['cityId'],
|
|
65
|
-
},
|
|
66
|
-
INVALID_CITY_TYPE: {
|
|
67
|
-
message: `Cities with ids {ids} are not of type 'City'`,
|
|
68
|
-
params: ['ids'],
|
|
69
|
-
affectedFields: ['cityId'],
|
|
70
|
-
},
|
|
71
|
-
ZIP_CODES_NOT_FOUND: {
|
|
72
|
-
message: `Zip codes with ids {ids} do not exist`,
|
|
73
|
-
params: ['ids'],
|
|
74
|
-
affectedFields: ['zipCode'],
|
|
75
|
-
},
|
|
76
|
-
CONTACT_ROLES_NOT_FOUND: {
|
|
77
|
-
message: `Contact roles with ids {ids} do not exist`,
|
|
78
|
-
params: ['ids'],
|
|
79
|
-
affectedFields: ['contactRoleId'],
|
|
80
|
-
},
|
|
81
|
-
CONTACT_TYPES_NOT_FOUND: {
|
|
82
|
-
message: `Contact types with ids {ids} do not exist`,
|
|
83
|
-
params: ['ids'],
|
|
84
|
-
affectedFields: ['contactTypeId'],
|
|
85
|
-
},
|
|
86
|
-
LEGAL_ADDRESS_MUST_BE_PROVIDED: {
|
|
87
|
-
message: `The client must have a legal address. Please set the address type to 'Legal'.`,
|
|
88
|
-
affectedFields: ['addresses'],
|
|
89
|
-
},
|
|
90
|
-
MULTIPLE_LEGAL_ADDRESSES_PROVIDED: {
|
|
91
|
-
message: `The client must have only one legal address. Please ensure only one address is set to 'Legal'.`,
|
|
92
|
-
affectedFields: ['addresses'],
|
|
93
|
-
},
|
|
94
|
-
BILLING_ADDRESS_MUST_BE_PROVIDED: {
|
|
95
|
-
message: `The client must have a billing address. Please set the address type to 'Billing'.`,
|
|
96
|
-
affectedFields: ['addresses'],
|
|
97
|
-
},
|
|
98
|
-
MULTIPLE_BILLING_ADDRESSES_PROVIDED: {
|
|
99
|
-
message: `The client must have only one billing address. Please ensure only one address is set to 'Billing'.`,
|
|
100
|
-
affectedFields: ['addresses'],
|
|
101
|
-
},
|
|
102
|
-
PRIMARY_ADDRESS_MUST_BE_PROVIDED: {
|
|
103
|
-
message: `The client must have a primary address. Please set the address type to 'Primary'.`,
|
|
104
|
-
affectedFields: ['addresses'],
|
|
105
|
-
},
|
|
106
|
-
MULTIPLE_PRIMARY_ADDRESSES_PROVIDED: {
|
|
107
|
-
message: `The client must have only one primary address. Please ensure only one address is set to 'Primary'.`,
|
|
108
|
-
affectedFields: ['addresses'],
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
BUSINESS_ACTIVITY: {
|
|
112
|
-
INVALID_REQUEST: {
|
|
113
|
-
message: 'Missing business activity id in request.',
|
|
114
|
-
affectedFields: [],
|
|
115
|
-
},
|
|
116
|
-
ID_DOES_NOT_EXIST: {
|
|
117
|
-
message: `Business activity with id '{id}' does not exist.`,
|
|
118
|
-
params: ['id'],
|
|
119
|
-
affectedFields: ['businessActivityId'],
|
|
120
|
-
},
|
|
121
|
-
NAME_ALREADY_EXISTS: {
|
|
122
|
-
message: `Business activity with the same name '{name}' already exists.`,
|
|
123
|
-
params: ['name'],
|
|
124
|
-
affectedFields: ['name'],
|
|
125
|
-
},
|
|
126
|
-
OPTION_IN_USE: {
|
|
127
|
-
message: `This option is currently in use and cannot be deleted.`,
|
|
128
|
-
affectedFields: [],
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
BANK: {
|
|
132
|
-
INVALID_ROUTING_NUMBER: {
|
|
133
|
-
message: 'Enter a valid routing number.',
|
|
134
|
-
affectedFields: ['routingNumber'],
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
CREDIT_CARD: {
|
|
138
|
-
INVALID_EXPIRATION_DATE: {
|
|
139
|
-
message: 'Enter a valid expiration date (i.e. 12/2024).',
|
|
140
|
-
affectedFields: ['expirationDate'],
|
|
141
|
-
},
|
|
142
|
-
INVALID_SECURITY_CODE: {
|
|
143
|
-
message: 'Enter a valid security code (i.e. 1234).',
|
|
144
|
-
affectedFields: ['securityCode'],
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
BANK_AND_CREDIT_CARD: {
|
|
148
|
-
INVALID_ACCOUNT_NUMBER: {
|
|
149
|
-
message: 'Enter a valid account number.',
|
|
150
|
-
affectedFields: ['accountNumber'],
|
|
151
|
-
},
|
|
152
|
-
INVALID_DESCRIPTION: {
|
|
153
|
-
message: 'There is another payment method with the same description. Please ensure all payment methods have different descriptions.',
|
|
154
|
-
affectedFields: ['description'],
|
|
155
|
-
},
|
|
156
|
-
NO_DEFAULT_PAYMENT_METHOD: {
|
|
157
|
-
message: 'There must be at least one payment method marked as default. Please select a default payment method.',
|
|
158
|
-
affectedFields: ['paymentMethods'],
|
|
159
|
-
},
|
|
160
|
-
MULTIPLE_DEFAULT_PAYMENT_METHODS: {
|
|
161
|
-
message: 'There can only be one default payment method. Please ensure only one payment method is marked as default.',
|
|
162
|
-
affectedFields: ['paymentMethods'],
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
CONTACT: {
|
|
166
|
-
CONTACT_ROLES_NOT_FOUND: {
|
|
167
|
-
message: `Contact roles with ids {ids} do not exist`,
|
|
168
|
-
params: ['ids'],
|
|
169
|
-
affectedFields: ['contactRoleId'],
|
|
170
|
-
},
|
|
171
|
-
CONTACT_TYPES_NOT_FOUND: {
|
|
172
|
-
message: `Contact types with ids {ids} do not exist`,
|
|
173
|
-
params: ['ids'],
|
|
174
|
-
affectedFields: ['contactTypeId'],
|
|
175
|
-
},
|
|
176
|
-
LEGAL_CONTACT_MUST_BE_PROVIDED: {
|
|
177
|
-
message: `The client must have a legal contact. Please set the contact type to 'Legal'.`,
|
|
178
|
-
affectedFields: ['contacts'],
|
|
179
|
-
},
|
|
180
|
-
MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
|
|
181
|
-
message: `The client must have only one legal contact. Please ensure only one contact is set to 'Legal'.`,
|
|
182
|
-
affectedFields: ['contacts'],
|
|
183
|
-
},
|
|
184
|
-
BILLING_CONTACT_MUST_BE_PROVIDED: {
|
|
185
|
-
message: `The client must have a billing contact. Please set the contact type to 'Billing'.`,
|
|
186
|
-
affectedFields: ['contacts'],
|
|
187
|
-
},
|
|
188
|
-
MULTIPLE_BILLING_CONTACTS_PROVIDED: {
|
|
189
|
-
message: `The client must have only one billing contact. Please ensure only one contact is set to 'Billing'.`,
|
|
190
|
-
affectedFields: ['contacts'],
|
|
191
|
-
},
|
|
192
|
-
PRIMARY_CONTACT_MUST_BE_PROVIDED: {
|
|
193
|
-
message: `The client must have a primary contact. Please set the contact type to 'Primary'.`,
|
|
194
|
-
affectedFields: ['contacts'],
|
|
195
|
-
},
|
|
196
|
-
MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
|
|
197
|
-
message: `The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.`,
|
|
198
|
-
affectedFields: ['contacts'],
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
COMISSION_DETAIL: {
|
|
202
|
-
INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
|
|
203
|
-
message: 'If client is subject to commission, sales representative and commission rate must be provided.',
|
|
204
|
-
affectedFields: ['isSubjectToCommission', 'salesRepresentativeId', 'commissionRate'],
|
|
205
|
-
},
|
|
206
|
-
INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
|
|
207
|
-
message: 'If client is not subject to commission, sales representative and commission rate must not be provided.',
|
|
208
|
-
affectedFields: ['isSubjectToCommission', 'salesRepresentativeId', 'commissionRate'],
|
|
209
|
-
},
|
|
210
|
-
SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
211
|
-
message: `Sales representative with id '{id}' does not exist`,
|
|
212
|
-
params: ['id'],
|
|
213
|
-
affectedFields: ['salesRepresentativeId'],
|
|
214
|
-
},
|
|
215
|
-
COMISSION_RATE_TOO_LOW: {
|
|
216
|
-
message: `Enter a commission value greater than 0.0`,
|
|
217
|
-
affectedFields: ['commissionRate'],
|
|
218
|
-
},
|
|
219
|
-
COMISSION_RATE_TOO_HIGH: {
|
|
220
|
-
message: `Enter a value less than 100%.`,
|
|
221
|
-
affectedFields: ['commissionRate'],
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
CLIENT: {
|
|
225
|
-
INVALID_REQUEST: {
|
|
226
|
-
message: 'Missing client id in request',
|
|
227
|
-
affectedFields: [],
|
|
228
|
-
},
|
|
229
|
-
ID_DOES_NOT_EXIST: {
|
|
230
|
-
message: `Client with id '{id}' does not exist`,
|
|
231
|
-
params: ['id'],
|
|
232
|
-
affectedFields: ['clientId'],
|
|
233
|
-
},
|
|
234
|
-
ACCOUNT_ID_DOES_NOT_EXIST: {
|
|
235
|
-
message: `Account id with id '{id}' does not exist`,
|
|
236
|
-
params: ['id'],
|
|
237
|
-
affectedFields: ['accountId'],
|
|
238
|
-
},
|
|
239
|
-
FILING_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
240
|
-
message: `Filing category with id '{id}' does not exist`,
|
|
241
|
-
params: ['id'],
|
|
242
|
-
affectedFields: ['filingCategoryId'],
|
|
243
|
-
},
|
|
244
|
-
FILING_TYPE_ID_DOES_NOT_EXIST: {
|
|
245
|
-
message: `Parent/Sub status with id '{id}' does not exist`,
|
|
246
|
-
params: ['id'],
|
|
247
|
-
affectedFields: ['filingTypeId'],
|
|
248
|
-
},
|
|
249
|
-
FILING_TYPE_PARENT_REQUIRED: {
|
|
250
|
-
message: `Parent needs to be specified for filing type 'Files under parent'`,
|
|
251
|
-
affectedFields: ['parentClientId'],
|
|
252
|
-
},
|
|
253
|
-
CURRENT_FILING_TYPE_PARENT_REQUIRED: {
|
|
254
|
-
message: `Parent needs to be specified for current filing type 'Files under parent'`,
|
|
255
|
-
affectedFields: ['parentClientId'],
|
|
256
|
-
},
|
|
257
|
-
STATE_ID_DOES_NOT_EXIST: {
|
|
258
|
-
message: `State with id '{id}' does not exist`,
|
|
259
|
-
params: ['id'],
|
|
260
|
-
affectedFields: ['stateId'],
|
|
261
|
-
},
|
|
262
|
-
BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
|
|
263
|
-
message: `Business activity with id '{id}' does not exist`,
|
|
264
|
-
params: ['id'],
|
|
265
|
-
affectedFields: ['businessActivityId'],
|
|
266
|
-
},
|
|
267
|
-
BILLING_TYPE_ID_DOES_NOT_EXIST: {
|
|
268
|
-
message: `Billing type with id '{id}' does not exist`,
|
|
269
|
-
params: ['id'],
|
|
270
|
-
affectedFields: ['billingTypeId'],
|
|
271
|
-
},
|
|
272
|
-
ENTITY_TYPE_ID_DOES_NOT_EXIST: {
|
|
273
|
-
message: `Entity type with id '{id}' does not exist`,
|
|
274
|
-
params: ['id'],
|
|
275
|
-
affectedFields: ['entityTypeId'],
|
|
276
|
-
},
|
|
277
|
-
CLIENT_WITH_SAME_FEDERAL_LEGAL_ID_EXISTS: {
|
|
278
|
-
message: `This ID is already in use. Please enter a different ID.`,
|
|
279
|
-
affectedFields: ['federalLegalId'],
|
|
280
|
-
},
|
|
281
|
-
INVALID_CLIENT_ACTIVITY_STATUS: {
|
|
282
|
-
message: `The 'Is active' field only applies to our clients. Please update the client type to 'Not our client' or update the 'Is active' status to 'Active'.`,
|
|
283
|
-
affectedFields: ['isActive', 'clientType'],
|
|
284
|
-
},
|
|
285
|
-
INVALID_FEDERAL_LEGAL_ID: {
|
|
286
|
-
message: `Enter a valid {legalIdType} (e.g. {legalIdValue})`,
|
|
287
|
-
params: ['legalIdType', 'legalIdValue'],
|
|
288
|
-
affectedFields: ['federalLegalId'],
|
|
289
|
-
},
|
|
290
|
-
NAME_ALREADY_EXISTS: {
|
|
291
|
-
message: `Client with the same name '{name}' already exists`,
|
|
292
|
-
params: ['name'],
|
|
293
|
-
affectedFields: ['name'],
|
|
294
|
-
},
|
|
295
|
-
NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
|
|
296
|
-
message: `One or more entity types have a start date that is before the client's date established, {clientDateEstablished}. ({entityType} starting {entityTypeStartingDate}). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.`,
|
|
297
|
-
params: ['clientDateEstablished', 'entityType', 'entityTypeStartingDate'],
|
|
298
|
-
affectedFields: ['dateEstablished', 'entityTypes'],
|
|
299
|
-
},
|
|
300
|
-
NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
|
|
301
|
-
message: `The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.`,
|
|
302
|
-
params: ['clientDateEstablished', 'filingType', 'filingTypeStartingDate'],
|
|
303
|
-
affectedFields: ['dateEstablished', 'filingTypes'],
|
|
304
|
-
},
|
|
305
|
-
NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
|
|
306
|
-
message: `The state, {domesticState}, starts on {domesticStateStartingDate}, which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the state or the client's date established.`,
|
|
307
|
-
params: ['clientDateEstablished', 'domesticState', 'domesticStateStartingDate'],
|
|
308
|
-
affectedFields: ['dateEstablished', 'domesticStates'],
|
|
309
|
-
},
|
|
310
|
-
NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
|
|
311
|
-
message: `Adjust the close date to be after the date established.`,
|
|
312
|
-
affectedFields: ['dateEstablished', 'closeDate'],
|
|
313
|
-
},
|
|
314
|
-
NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
|
|
315
|
-
message: `One or more entity types have start dates that are after the client's close date, {clientCloseDate}. {entityType} starting {entityTypeStartingDate}. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.`,
|
|
316
|
-
params: ['clientCloseDate', 'entityType', 'entityTypeStartingDate'],
|
|
317
|
-
affectedFields: ['closeDate', 'entityTypes'],
|
|
318
|
-
},
|
|
319
|
-
NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
|
|
320
|
-
message: `One or more Parent/Sub status have a start date which is after the client’s close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client’s close date, or update the client's close date.`,
|
|
321
|
-
params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
|
|
322
|
-
affectedFields: ['closeDate', 'filingTypes'],
|
|
323
|
-
},
|
|
324
|
-
ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
|
|
325
|
-
message: `Current Entity Type Starting Date cannot be Empty`,
|
|
326
|
-
affectedFields: ['entityTypeStartingDate'],
|
|
327
|
-
},
|
|
328
|
-
FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
|
|
329
|
-
message: `Current Parent/Sub status Starting Date cannot be Empty`,
|
|
330
|
-
affectedFields: ['filingTypeStartingDate'],
|
|
331
|
-
},
|
|
332
|
-
DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
|
|
333
|
-
message: `Current Domestic State Starting Date cannot be Empty`,
|
|
334
|
-
affectedFields: ['domesticStateStartingDate'],
|
|
335
|
-
},
|
|
336
|
-
NOT_ALIGNED_ENTITY_TYPE_STARTING_ENDING_DATE: {
|
|
337
|
-
message: `Entity type starting date needs to be before the ending date`,
|
|
338
|
-
affectedFields: ['entityTypeStartingDate', 'entityTypeEndingDate'],
|
|
339
|
-
},
|
|
340
|
-
NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
|
|
341
|
-
message: `Parent/Sub status starting date needs to be before the ending date`,
|
|
342
|
-
affectedFields: ['filingTypeStartingDate', 'filingTypeEndingDate'],
|
|
343
|
-
},
|
|
344
|
-
NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
|
|
345
|
-
message: `One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.`,
|
|
346
|
-
params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
|
|
347
|
-
affectedFields: ['closeDate', 'domesticStates'],
|
|
348
|
-
},
|
|
349
|
-
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
|
|
350
|
-
message: `Choose an Account ID`,
|
|
351
|
-
affectedFields: ['accountId'],
|
|
352
|
-
},
|
|
353
|
-
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
|
|
354
|
-
message: `Choose a Business Activity`,
|
|
355
|
-
affectedFields: ['businessActivityId'],
|
|
356
|
-
},
|
|
357
|
-
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
|
|
358
|
-
message: `Choose a Billing Type`,
|
|
359
|
-
affectedFields: ['billingTypeId'],
|
|
360
|
-
},
|
|
361
|
-
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
|
|
362
|
-
message: `Choose a Filing Category`,
|
|
363
|
-
affectedFields: ['filingCategoryId'],
|
|
364
|
-
},
|
|
365
|
-
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
|
|
366
|
-
message: `Create a Contact - One contact needs to have been saved to this client`,
|
|
367
|
-
affectedFields: ['contacts'],
|
|
368
|
-
},
|
|
369
|
-
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
|
|
370
|
-
message: `Create an Address - One address needs to have been saved to this client`,
|
|
371
|
-
affectedFields: ['addresses'],
|
|
372
|
-
},
|
|
373
|
-
CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
|
|
374
|
-
message: `This client cannot be deleted because it has client relationships associated`,
|
|
375
|
-
affectedFields: [],
|
|
376
|
-
},
|
|
377
|
-
CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
|
|
378
|
-
message: `This client cannot be deleted because it has client project templates associated`,
|
|
379
|
-
affectedFields: [],
|
|
380
|
-
},
|
|
381
|
-
CLIENT_COULD_NOT_BE_DELETED_ADDITIONAL_INFORMATION_EXIST: {
|
|
382
|
-
message: `This client cannot be deleted because it has additional information associated`,
|
|
383
|
-
affectedFields: [],
|
|
384
|
-
},
|
|
385
|
-
CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
|
|
386
|
-
message: `This client cannot be deleted because it has bank accounts associated`,
|
|
387
|
-
affectedFields: [],
|
|
388
|
-
},
|
|
389
|
-
CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
|
|
390
|
-
message: `This client cannot be deleted because it has credit cards associated`,
|
|
391
|
-
affectedFields: [],
|
|
392
|
-
},
|
|
393
|
-
CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
|
|
394
|
-
message: `This client cannot be deleted because it has worklogs associated`,
|
|
395
|
-
affectedFields: [],
|
|
396
|
-
},
|
|
397
|
-
CLIENT_COULD_NOT_BE_DELETED_INVOICES_EXIST: {
|
|
398
|
-
message: `This client cannot be deleted because it has invoices associated`,
|
|
399
|
-
affectedFields: [],
|
|
400
|
-
},
|
|
401
|
-
CLIENT_COULD_NOT_BE_DELETED_PAYMENTS_EXIST: {
|
|
402
|
-
message: `This client cannot be deleted because it has payments associated`,
|
|
403
|
-
affectedFields: [],
|
|
404
|
-
},
|
|
405
|
-
CLIENT_COULD_NOT_BE_DELETED_DOCUMENTS_EXIST: {
|
|
406
|
-
message: `This client cannot be deleted because it has documents associated`,
|
|
407
|
-
affectedFields: [],
|
|
408
|
-
},
|
|
409
|
-
CLIENT_COULD_NOT_BE_DELETED_JOURNALS_EXIST: {
|
|
410
|
-
message: `This client cannot be deleted because it has journals associated`,
|
|
411
|
-
affectedFields: [],
|
|
412
|
-
},
|
|
413
|
-
CLIENT_COULD_NOT_BE_DELETED_FUTURES_EXIST: {
|
|
414
|
-
message: `This client cannot be deleted because it has futures associated`,
|
|
415
|
-
affectedFields: [],
|
|
416
|
-
},
|
|
417
|
-
CLIENT_COULD_NOT_BE_DELETED_PROJECTS_EXIST: {
|
|
418
|
-
message: `This client cannot be deleted because it has projects associated`,
|
|
419
|
-
affectedFields: [],
|
|
420
|
-
},
|
|
421
|
-
CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
|
|
422
|
-
message: `This client cannot be deleted because it has tasks associated`,
|
|
423
|
-
affectedFields: [],
|
|
424
|
-
},
|
|
425
|
-
CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
|
|
426
|
-
message: `This client cannot be deleted because it has addresses associated`,
|
|
427
|
-
affectedFields: [],
|
|
428
|
-
},
|
|
429
|
-
CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
430
|
-
message: `This client cannot be deleted because it has contacts associated`,
|
|
431
|
-
affectedFields: [],
|
|
432
|
-
},
|
|
433
|
-
//UPDATE-ENTITY-TYPES-VALIDATIONS
|
|
434
|
-
ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
435
|
-
message: `Entity types with ids '{ids}' do not exist`,
|
|
436
|
-
params: ['ids'],
|
|
437
|
-
affectedFields: ['entityTypeId'],
|
|
438
|
-
},
|
|
439
|
-
AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
|
|
440
|
-
message: `At least one entity type should exist`,
|
|
441
|
-
affectedFields: ['entityTypes'],
|
|
442
|
-
},
|
|
443
|
-
ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
|
|
444
|
-
message: `Starting date for {entityType} cannot be empty`,
|
|
445
|
-
params: ['entityType'],
|
|
446
|
-
affectedFields: ['entityTypeStartingDate'],
|
|
447
|
-
},
|
|
448
|
-
NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
|
|
449
|
-
message: `The ending date for {entityType} must be after its starting date`,
|
|
450
|
-
params: ['entityType'],
|
|
451
|
-
affectedFields: ['entityTypeStartingDate', 'entityTypeEndingDate'],
|
|
452
|
-
},
|
|
453
|
-
NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPES_STARTING_DATE: {
|
|
454
|
-
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
455
|
-
params: ['clientStartDate'],
|
|
456
|
-
affectedFields: ['entityTypeStartingDate', 'dateEstablished'],
|
|
457
|
-
},
|
|
458
|
-
NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
|
|
459
|
-
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
460
|
-
params: ['clientCloseDate'],
|
|
461
|
-
affectedFields: ['entityTypeStartingDate', 'closeDate'],
|
|
462
|
-
},
|
|
463
|
-
ENTITY_TYPES_DATE_GAP_DETECTED: {
|
|
464
|
-
message: `There is a gap in the timeframes between {currentEntityType}, ending {currentEntityTypeEndDate}, and {nextEntityType}, starting {nextEntityTypeStartDate}. Please adjust the dates to fill this gap.`,
|
|
465
|
-
params: ['currentEntityType', 'currentEntityTypeEndDate', 'nextEntityType', 'nextEntityTypeStartDate'],
|
|
466
|
-
affectedFields: ['entityTypes'],
|
|
467
|
-
},
|
|
468
|
-
ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
469
|
-
message: `There are two entries for {entityType} with timeframes that immediately follow each other. {entityType} ending {firstPeriodEnd}, and {entityType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {entityType}. `,
|
|
470
|
-
params: ['entityType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
471
|
-
affectedFields: ['entityTypes'],
|
|
472
|
-
},
|
|
473
|
-
ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
474
|
-
message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first entity type ({earliestEntityType} starting {earliestEntityTypeStartDate}). There must be an entity type that begins on {dateEstablished}.`,
|
|
475
|
-
params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
|
|
476
|
-
affectedFields: ['entityTypes', 'dateEstablished'],
|
|
477
|
-
},
|
|
478
|
-
ENTITY_TYPES_DATES_OVERLAP: {
|
|
479
|
-
message: `The client already has {entityType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
480
|
-
params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
481
|
-
affectedFields: ['entityTypes'],
|
|
482
|
-
},
|
|
483
|
-
ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
|
|
484
|
-
message: `Only the last entity type can be open without an end date. Add an ending date to the existing entity type before adding a start date for a new entity type.`,
|
|
485
|
-
affectedFields: ['entityTypeEndingDate'],
|
|
486
|
-
},
|
|
487
|
-
CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
|
|
488
|
-
message: `The current entity type cannot have an end date. Please remove the end date for this state.`,
|
|
489
|
-
affectedFields: ['entityTypeEndingDate'],
|
|
490
|
-
},
|
|
491
|
-
//UPDATE-FILING-TYPES-VALIDATIONS
|
|
492
|
-
FILING_TYPES_IDS_DOES_NOT_EXIST: {
|
|
493
|
-
message: `Parent/Sub status with ids '{ids}' do not exist`,
|
|
494
|
-
params: ['ids'],
|
|
495
|
-
affectedFields: ['filingTypeId'],
|
|
496
|
-
},
|
|
497
|
-
AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
|
|
498
|
-
message: `At least one Parent/Sub status should exist`,
|
|
499
|
-
affectedFields: ['filingTypes'],
|
|
500
|
-
},
|
|
501
|
-
FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
|
|
502
|
-
message: `Starting date for {filingType} cannot be empty`,
|
|
503
|
-
params: ['filingType'],
|
|
504
|
-
affectedFields: ['filingTypeStartingDate'],
|
|
505
|
-
},
|
|
506
|
-
NOT_ALIGNED_FILING_TYPES_STARTING_ENDING_DATE: {
|
|
507
|
-
message: `The ending date for {filingType} must be after its starting date`,
|
|
508
|
-
params: ['filingType'],
|
|
509
|
-
affectedFields: ['filingTypeStartingDate', 'filingTypeEndingDate'],
|
|
510
|
-
},
|
|
511
|
-
NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPES_STARTING_DATE: {
|
|
512
|
-
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
513
|
-
params: ['clientStartDate'],
|
|
514
|
-
affectedFields: ['filingTypeStartingDate', 'dateEstablished'],
|
|
515
|
-
},
|
|
516
|
-
NOT_ALIGNED_CLOSE_DATE_FILING_TYPES_STARTING_DATE: {
|
|
517
|
-
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
518
|
-
params: ['clientCloseDate'],
|
|
519
|
-
affectedFields: ['filingTypeStartingDate', 'closeDate'],
|
|
520
|
-
},
|
|
521
|
-
FILING_TYPES_DATE_GAP_DETECTED: {
|
|
522
|
-
message: `There is a gap in the timeframes between {currentFilingType}, ending {currentFilingTypeEndDate}, and {nextFilingType}, starting {nextFilingTypeStartDate}. Please adjust the dates to fill this gap.`,
|
|
523
|
-
params: ['currentFilingType', 'currentFilingTypeEndDate', 'nextFilingType', 'nextFilingTypeStartDate'],
|
|
524
|
-
affectedFields: ['filingTypes'],
|
|
525
|
-
},
|
|
526
|
-
FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
527
|
-
message: `There are two entries for {filingType} with timeframes that immediately follow each other. {filingType} ending {firstPeriodEnd}, and {filingType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingType}. `,
|
|
528
|
-
params: ['filingType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
529
|
-
affectedFields: ['filingTypes'],
|
|
530
|
-
},
|
|
531
|
-
FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
532
|
-
message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.`,
|
|
533
|
-
params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
|
|
534
|
-
affectedFields: ['filingTypes', 'dateEstablished'],
|
|
535
|
-
},
|
|
536
|
-
FILING_TYPES_DATES_OVERLAP: {
|
|
537
|
-
message: `The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
538
|
-
params: ['filingType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
539
|
-
affectedFields: ['filingTypes'],
|
|
540
|
-
},
|
|
541
|
-
ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
|
|
542
|
-
message: `Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.`,
|
|
543
|
-
affectedFields: ['filingTypeEndingDate'],
|
|
544
|
-
},
|
|
545
|
-
CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
|
|
546
|
-
message: `The current Parent/Sub status cannot have an end date. Please remove the end date for this state.`,
|
|
547
|
-
affectedFields: ['filingTypeEndingDate'],
|
|
548
|
-
},
|
|
549
|
-
//UPDATE-STATES-VALIDATIONS
|
|
550
|
-
STATES_IDS_DOES_NOT_EXIST: {
|
|
551
|
-
message: `States with ids '{ids}' do not exist`,
|
|
552
|
-
params: ['ids'],
|
|
553
|
-
affectedFields: ['stateId'],
|
|
554
|
-
},
|
|
555
|
-
RESIDENCE_TYPE_DOES_NOT_EXIST: {
|
|
556
|
-
message: `Residence type with ids '{ids}' does not exist`,
|
|
557
|
-
params: ['ids'],
|
|
558
|
-
affectedFields: ['residenceTypeId'],
|
|
559
|
-
},
|
|
560
|
-
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
561
|
-
message: `At least one domestic state should exist`,
|
|
562
|
-
affectedFields: ['domesticStates'],
|
|
563
|
-
},
|
|
564
|
-
STATES_STARTING_DATE_NOT_POPULATED: {
|
|
565
|
-
message: `Starting date for {state} cannot be empty`,
|
|
566
|
-
params: ['state'],
|
|
567
|
-
affectedFields: ['stateStartingDate'],
|
|
568
|
-
},
|
|
569
|
-
NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
|
|
570
|
-
message: `The ending date for {state} must be after its starting date`,
|
|
571
|
-
params: ['state'],
|
|
572
|
-
affectedFields: ['stateStartingDate', 'stateEndingDate'],
|
|
573
|
-
},
|
|
574
|
-
NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
575
|
-
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
576
|
-
params: ['clientStartDate'],
|
|
577
|
-
affectedFields: ['stateStartingDate', 'dateEstablished'],
|
|
578
|
-
},
|
|
579
|
-
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
580
|
-
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
581
|
-
params: ['clientCloseDate'],
|
|
582
|
-
affectedFields: ['stateStartingDate', 'closeDate'],
|
|
583
|
-
},
|
|
584
|
-
DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
585
|
-
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
586
|
-
params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
|
|
587
|
-
affectedFields: ['domesticStates'],
|
|
588
|
-
},
|
|
589
|
-
STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
590
|
-
message: `There are two entries for {state} with timeframes that immediately follow each other. {state} ending {firstPeriodEnd}, and {state} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {state}. `,
|
|
591
|
-
params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
592
|
-
affectedFields: ['domesticStates'],
|
|
593
|
-
},
|
|
594
|
-
DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
595
|
-
message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first state ({earliestState} starting {earliestStateStartDate}). There must be a state that begins on {dateEstablished}.`,
|
|
596
|
-
params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
|
|
597
|
-
affectedFields: ['domesticStates', 'dateEstablished'],
|
|
598
|
-
},
|
|
599
|
-
STATES_DATES_OVERLAP: {
|
|
600
|
-
message: `The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
601
|
-
params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
|
|
602
|
-
affectedFields: ['domesticStates'],
|
|
603
|
-
},
|
|
604
|
-
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
605
|
-
message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
|
|
606
|
-
affectedFields: ['stateEndingDate'],
|
|
607
|
-
},
|
|
608
|
-
CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
|
|
609
|
-
message: `The current domestic state cannot have an end date. Please remove the end date for this state.`,
|
|
610
|
-
affectedFields: ['stateEndingDate'],
|
|
611
|
-
},
|
|
612
|
-
},
|
|
613
|
-
CLIENT_RELATIONSHIP: {
|
|
614
|
-
CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
615
|
-
message: `A client cannot have a relationship with itself.`,
|
|
616
|
-
affectedFields: ['relatedClientId'],
|
|
617
|
-
},
|
|
618
|
-
INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
|
|
619
|
-
message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
|
|
620
|
-
params: ['clientName', 'entityType', 'relationshipType'],
|
|
621
|
-
affectedFields: ['relationshipTypeId'],
|
|
622
|
-
},
|
|
623
|
-
PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
624
|
-
message: `A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.`,
|
|
625
|
-
affectedFields: ['relationshipTypeId', 'filingTypeId'],
|
|
626
|
-
},
|
|
627
|
-
STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
628
|
-
message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
|
|
629
|
-
params: ['clientName', 'clientDateEstablished'],
|
|
630
|
-
affectedFields: ['startingDate'],
|
|
631
|
-
},
|
|
632
|
-
STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
|
|
633
|
-
message: `This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.`,
|
|
634
|
-
params: ['clientName', 'clientCloseDate'],
|
|
635
|
-
affectedFields: ['startingDate'],
|
|
636
|
-
},
|
|
637
|
-
STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
|
|
638
|
-
message: `This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.`,
|
|
639
|
-
params: ['relatedClientName', 'relatedClientDateEstablished'],
|
|
640
|
-
affectedFields: ['startingDate'],
|
|
641
|
-
},
|
|
642
|
-
STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
643
|
-
message: `This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.`,
|
|
644
|
-
params: ['relatedClientName', 'relatedClientCloseDate'],
|
|
645
|
-
affectedFields: ['startingDate'],
|
|
646
|
-
},
|
|
647
|
-
ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
|
|
648
|
-
message: `Please update the relationship ending date to be after the starting date, {startingDate}.`,
|
|
649
|
-
params: ['startingDate'],
|
|
650
|
-
affectedFields: ['endingDate'],
|
|
651
|
-
},
|
|
652
|
-
ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
653
|
-
message: `Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.`,
|
|
654
|
-
params: ['clientCloseDate'],
|
|
655
|
-
affectedFields: ['endingDate'],
|
|
656
|
-
},
|
|
657
|
-
ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
658
|
-
message: `Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.`,
|
|
659
|
-
params: ['relatedClientName', 'relatedClientCloseDate'],
|
|
660
|
-
affectedFields: ['endingDate'],
|
|
661
|
-
},
|
|
662
|
-
MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
663
|
-
message: `All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.`,
|
|
664
|
-
affectedFields: ['endingDate'],
|
|
665
|
-
},
|
|
666
|
-
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
667
|
-
message: `The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
|
|
668
|
-
affectedFields: ['isFinal'],
|
|
669
|
-
},
|
|
670
|
-
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
671
|
-
message: `The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
|
|
672
|
-
affectedFields: ['isFinal'],
|
|
673
|
-
},
|
|
674
|
-
},
|
|
675
|
-
FILING_CATEGORY: {
|
|
676
|
-
INVALID_REQUEST: {
|
|
677
|
-
message: 'Missing filing category id in request',
|
|
678
|
-
affectedFields: [],
|
|
679
|
-
},
|
|
680
|
-
ID_DOES_NOT_EXIST: {
|
|
681
|
-
message: `Filing category with id '{id}' does not exist`,
|
|
682
|
-
params: ['id'],
|
|
683
|
-
affectedFields: ['filingCategoryId'],
|
|
684
|
-
},
|
|
685
|
-
NAME_ALREADY_EXISTS: {
|
|
686
|
-
message: `Filing category with the same name '{name}' already exists`,
|
|
687
|
-
params: ['name'],
|
|
688
|
-
affectedFields: ['name'],
|
|
689
|
-
},
|
|
690
|
-
OPTION_IN_USE: {
|
|
691
|
-
message: `This option is currently in use and cannot be deleted.`,
|
|
692
|
-
affectedFields: [],
|
|
693
|
-
},
|
|
694
|
-
},
|
|
695
|
-
STATE: {
|
|
696
|
-
INVALID_REQUEST: {
|
|
697
|
-
message: 'Missing state id in request',
|
|
698
|
-
affectedFields: [],
|
|
699
|
-
},
|
|
700
|
-
ID_DOES_NOT_EXIST: {
|
|
701
|
-
message: `State with id '{id}' does not exist`,
|
|
702
|
-
params: ['id'],
|
|
703
|
-
affectedFields: ['stateId'],
|
|
704
|
-
},
|
|
705
|
-
NAME_ALREADY_EXISTS: {
|
|
706
|
-
message: `State with the same name '{name}' already exists`,
|
|
707
|
-
params: ['name'],
|
|
708
|
-
affectedFields: ['name'],
|
|
709
|
-
},
|
|
710
|
-
STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
711
|
-
message: `State type with id '{id}' does not exist`,
|
|
712
|
-
params: ['id'],
|
|
713
|
-
affectedFields: ['stateTypeId'],
|
|
714
|
-
},
|
|
715
|
-
IS_PARENT_OF_OTHER_STATES: {
|
|
716
|
-
message: `This option is currently in use and cannot be deleted.`,
|
|
717
|
-
affectedFields: [],
|
|
718
|
-
},
|
|
719
|
-
PARENT_ID_DOES_NOT_EXIST: {
|
|
720
|
-
message: `Parent state with id '{id}' does not exist`,
|
|
721
|
-
params: ['id'],
|
|
722
|
-
affectedFields: ['parentId'],
|
|
723
|
-
},
|
|
724
|
-
NATION_PARENT_TYPE_NOT_ALLOWED: {
|
|
725
|
-
message: `Nation cannot have associated parent.`,
|
|
726
|
-
affectedFields: ['parentId'],
|
|
727
|
-
},
|
|
728
|
-
STATE_PARENT_TYPE_NOT_ALLOWED: {
|
|
729
|
-
message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
|
|
730
|
-
params: ['stateName'],
|
|
731
|
-
affectedFields: ['parentId'],
|
|
732
|
-
},
|
|
733
|
-
CITY_PARENT_TYPE_NOT_ALLOWED: {
|
|
734
|
-
message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
|
|
735
|
-
params: ['cityName'],
|
|
736
|
-
affectedFields: ['parentId'],
|
|
737
|
-
},
|
|
738
|
-
OPTION_IN_USE: {
|
|
739
|
-
message: `This option is currently in use and cannot be deleted.`,
|
|
740
|
-
affectedFields: [],
|
|
741
|
-
},
|
|
742
|
-
},
|
|
743
|
-
USER: {
|
|
744
|
-
USERNAME_DOES_NOT_EXIST: {
|
|
745
|
-
message: `User with username {username} does not exist.`,
|
|
746
|
-
params: ['username'],
|
|
747
|
-
affectedFields: ['username'],
|
|
748
|
-
},
|
|
749
|
-
INVALID_PASSWORD: {
|
|
750
|
-
message: `User with username {username} password does not match.`,
|
|
751
|
-
params: ['username'],
|
|
752
|
-
affectedFields: ['password'],
|
|
753
|
-
},
|
|
754
|
-
INVALID_RESET_PASSWORD_TOKEN: {
|
|
755
|
-
message: `Invalid or expired reset token.`,
|
|
756
|
-
affectedFields: ['resetToken'],
|
|
757
|
-
},
|
|
758
|
-
RESET_PASSWORD_LINK_ALREADY_USED: {
|
|
759
|
-
message: `Reset password link has already been used. Please request a new one.`,
|
|
760
|
-
affectedFields: ['resetToken'],
|
|
761
|
-
},
|
|
762
|
-
RESET_PASSWORD_LINK_NOT_LATEST: {
|
|
763
|
-
message: `Reset password link is no longer valid. Please use the most recent one.`,
|
|
764
|
-
affectedFields: ['resetToken'],
|
|
765
|
-
},
|
|
766
|
-
USERNAME_ALREADY_EXISTS: {
|
|
767
|
-
message: `User with username '{username}' already exists`,
|
|
768
|
-
params: ['username'],
|
|
769
|
-
affectedFields: ['username'],
|
|
770
|
-
},
|
|
771
|
-
EMAIL_ALREADY_EXISTS: {
|
|
772
|
-
message: `User with email '{email}' already exists`,
|
|
773
|
-
params: ['email'],
|
|
774
|
-
affectedFields: ['email'],
|
|
775
|
-
},
|
|
776
|
-
ROLE_DOES_NOT_EXIST: {
|
|
777
|
-
message: `Role with id '{roleId}' does not exist`,
|
|
778
|
-
params: ['roleId'],
|
|
779
|
-
},
|
|
780
|
-
USER_DOES_NOT_EXIST: {
|
|
781
|
-
message: `User with id '{userId}' does not exist`,
|
|
782
|
-
params: ['userId'],
|
|
783
|
-
affectedFields: ['userId'],
|
|
784
|
-
},
|
|
785
|
-
USER_PASSWORDS_DO_NOT_MATCH: {
|
|
786
|
-
message: `User passwords do not match`,
|
|
787
|
-
affectedFields: ['password', 'confirmPassword'],
|
|
788
|
-
},
|
|
789
|
-
},
|
|
790
|
-
ROLE_AND_PERMISSION: {
|
|
791
|
-
ROLE_ALREADY_EXISTS: {
|
|
792
|
-
message: `Role with name '{name}' already exists`,
|
|
793
|
-
params: ['name'],
|
|
794
|
-
affectedFields: ['name'],
|
|
795
|
-
},
|
|
796
|
-
PERMISSION_ALREADY_EXISTS: {
|
|
797
|
-
message: `Permission with name '{name}' already exists`,
|
|
798
|
-
params: ['name'],
|
|
799
|
-
affectedFields: ['name'],
|
|
800
|
-
},
|
|
801
|
-
PERMISSIONS_DO_NOT_EXIST: {
|
|
802
|
-
message: `Permissions with ids '{ids}' do not exist`,
|
|
803
|
-
params: ['ids'],
|
|
804
|
-
affectedFields: ['permissionIds'],
|
|
805
|
-
},
|
|
806
|
-
ROLE_DOES_NOT_EXIST: {
|
|
807
|
-
message: `Role with id '{roleId}' does not exist`,
|
|
808
|
-
params: ['roleId'],
|
|
809
|
-
},
|
|
810
|
-
PERMISSION_DOES_NOT_EXIST: {
|
|
811
|
-
message: `Permission with id '{permissionId}' does not exist`,
|
|
812
|
-
params: ['permissionId'],
|
|
813
|
-
affectedFields: ['permissionId'],
|
|
814
|
-
},
|
|
815
|
-
ROLE_HAS_ASSIGNED_USERS: {
|
|
816
|
-
message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
|
|
817
|
-
params: ['roleName'],
|
|
818
|
-
affectedFields: [],
|
|
819
|
-
},
|
|
820
|
-
},
|
|
821
|
-
//BACKEND ONLY VALIDATION FEATURES
|
|
822
|
-
DATA_FILTER: {
|
|
823
|
-
MISSING_PAGE_SIZE: {
|
|
824
|
-
message: `Request is invalid, 'pageSize' must exist if 'pageNumber' exists`,
|
|
825
|
-
affectedFields: ['pageSize'],
|
|
826
|
-
},
|
|
827
|
-
MISSING_PAGE_NUMBER: {
|
|
828
|
-
message: `Request is invalid, 'pageNumber' must exist if 'pageSize' exists`,
|
|
829
|
-
affectedFields: ['pageNumber'],
|
|
830
|
-
},
|
|
831
|
-
MISSING_SORT_BY: {
|
|
832
|
-
message: `Request is invalid, 'sortBy' must exist if 'sortType' exists`,
|
|
833
|
-
affectedFields: ['sortBy'],
|
|
834
|
-
},
|
|
835
|
-
MISSING_SORT_TYPE: {
|
|
836
|
-
message: `Request is invalid, 'sortType' must exist if 'sortBy' exists`,
|
|
837
|
-
affectedFields: ['sortType'],
|
|
838
|
-
},
|
|
839
|
-
},
|
|
840
|
-
USER_PREFERENCE: {
|
|
841
|
-
FEATURE_DOES_NOT_EXIST: {
|
|
842
|
-
message: `Feature with name {feature} does not exist`,
|
|
843
|
-
params: ['feature'],
|
|
844
|
-
affectedFields: ['feature'],
|
|
845
|
-
},
|
|
846
|
-
INVALID_REQUEST: {
|
|
847
|
-
message: 'Request is invalid',
|
|
848
|
-
affectedFields: [],
|
|
849
|
-
},
|
|
850
|
-
PREFERENCE_DOES_NOT_BELONG_TO_USER: {
|
|
851
|
-
message: 'Preference does not belong to the user',
|
|
852
|
-
affectedFields: [],
|
|
853
|
-
},
|
|
854
|
-
INVALID_COLUMN_ORDER: {
|
|
855
|
-
message: 'Invalid columnOrder values',
|
|
856
|
-
affectedFields: ['columnOrder'],
|
|
857
|
-
},
|
|
858
|
-
},
|
|
859
|
-
OUTSIDE_PROVIDER: {
|
|
860
|
-
INVALID_TYPE: {
|
|
861
|
-
message: `Outside provider types with ids '{ids}' do not exist`,
|
|
862
|
-
params: ['ids'],
|
|
863
|
-
affectedFields: ['outsideProviderTypeId'],
|
|
864
|
-
},
|
|
865
|
-
SAME_TYPE_TIMELINE_OVERLAP: {
|
|
866
|
-
message: `The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
867
|
-
params: ['outsideProviderType', 'startDate'],
|
|
868
|
-
affectedFields: ['startDate', 'endDate'],
|
|
869
|
-
},
|
|
870
|
-
},
|
|
24
|
+
ACCOUNT_CATEGORY: account_category_validation_messages_1.ACCOUNT_CATEGORY,
|
|
25
|
+
ACCOUNT_ID: account_id_validation_messages_1.ACCOUNT_ID,
|
|
26
|
+
CLIENT_RECORD_ADDRESS: client_record_address_validation_messages_1.CLIENT_RECORD_ADDRESS,
|
|
27
|
+
BUSINESS_ACTIVITY: business_activity_validation_messages_1.BUSINESS_ACTIVITY,
|
|
28
|
+
CLIENT_RECORD_BANK_AND_CREDIT_CARD: client_record_bank_and_credit_card_validation_messages_1.CLIENT_RECORD_BANK_AND_CREDIT_CARD,
|
|
29
|
+
CLIENT_RECORD_CONTACT: client_record_contact_validation_messages_1.CLIENT_RECORD_CONTACT,
|
|
30
|
+
CLIENT_RECORD_COMISSION_DETAIL: client_record_commission_detail_validation_messages_1.CLIENT_RECORD_COMISSION_DETAIL,
|
|
31
|
+
CLIENT_CURRENT_ENTITY_STATUS: client_current_entity_status_validation_messages_1.CLIENT_CURRENT_ENTITY_STATUS,
|
|
32
|
+
CLIENT_RECORD_ENTITY_TYPE_HISTORY: client_record_entity_type_history_validation_messages_1.CLIENT_RECORD_ENTITY_TYPE_HISTORY,
|
|
33
|
+
CLIENT_RECORD_FILING_TYPE_HISTORY: client_record_filing_type_history_validation_messages_1.CLIENT_RECORD_FILING_TYPE_HISTORY,
|
|
34
|
+
CLIENT_RECORD_ENTITY_STATE_HISTORY: client_record_entity_state_history_validation_messages_1.CLIENT_RECORD_ENTITY_STATE_HISTORY,
|
|
35
|
+
CLIENT_RELATIONSHIP: client_relationship_validation_messages_1.CLIENT_RELATIONSHIP,
|
|
36
|
+
FILING_CATEGORY: filing_category_validation_messages_1.FILING_CATEGORY,
|
|
37
|
+
STATE: state_validation_messages_1.STATE,
|
|
38
|
+
USER: user_validation_messages_1.USER,
|
|
39
|
+
ROLE_AND_PERMISSION: role_and_permission_validation_messages_1.ROLE_AND_PERMISSION,
|
|
40
|
+
DATA_FILTER: data_filter_validation_messages_1.DATA_FILTER,
|
|
41
|
+
USER_PREFERENCE: user_preference_validation_messages_1.USER_PREFERENCE,
|
|
42
|
+
CLIENT_RECORD_OUTSIDE_PROVIDER: client_record_outside_provider_validation_messages_1.CLIENT_RECORD_OUTSIDE_PROVIDER,
|
|
871
43
|
};
|