@forwardslashns/taskit-validation-messages 1.3.9 → 1.5.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/.github/.workflows/npm-publish.yml +27 -27
- package/.prettierrc +8 -8
- package/dist/validation/features/account-categories.validation-messages.d.ts +1 -1
- package/dist/validation/features/account-categories.validation-messages.js +1 -1
- package/dist/validation/features/account-ids.validation-messages.d.ts +2 -2
- package/dist/validation/features/account-ids.validation-messages.js +2 -2
- package/dist/validation/features/business-activities.validation-messages.d.ts +1 -1
- package/dist/validation/features/business-activities.validation-messages.js +1 -1
- package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +7 -7
- package/dist/validation/features/client-current-entity-statuses.validation-messages.js +7 -7
- package/dist/validation/features/client-records-addresses.validation-messages.d.ts +7 -7
- package/dist/validation/features/client-records-addresses.validation-messages.js +7 -7
- package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +1 -1
- package/dist/validation/features/client-records-commission-details.validation-messages.js +1 -1
- package/dist/validation/features/client-records-contacts.validation-messages.d.ts +2 -2
- package/dist/validation/features/client-records-contacts.validation-messages.js +2 -2
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +3 -3
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +3 -3
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +2 -2
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +2 -2
- package/dist/validation/features/client-records-filing-types-histories.validation-messages.d.ts +10 -10
- package/dist/validation/features/client-records-filing-types-histories.validation-messages.js +10 -10
- package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +1 -1
- package/dist/validation/features/client-records-outside-providers.validation-messages.js +1 -1
- package/dist/validation/features/client-relationships.validation-messages.d.ts +9 -0
- package/dist/validation/features/client-relationships.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships.validation-messages.js +9 -0
- package/dist/validation/features/filing-categories.validation-messages.d.ts +1 -1
- package/dist/validation/features/filing-categories.validation-messages.js +1 -1
- package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +3 -3
- package/dist/validation/features/roles-and-permissions.validation-messages.js +3 -3
- package/dist/validation/features/states.validation-messages.d.ts +3 -3
- package/dist/validation/features/states.validation-messages.js +3 -3
- package/dist/validation/features/users.validation-messages.d.ts +2 -2
- package/dist/validation/features/users.validation-messages.js +2 -2
- package/dist/validation/validation-messages.d.ts +55 -46
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/account-categories.validation-messages.ts +1 -1
- package/src/validation/features/account-ids.validation-messages.ts +2 -2
- package/src/validation/features/business-activities.validation-messages.ts +1 -1
- package/src/validation/features/client-current-entity-statuses.validation-messages.ts +7 -7
- package/src/validation/features/client-records-addresses.validation-messages.ts +7 -7
- package/src/validation/features/client-records-commission-details.validation-messages.ts +1 -1
- package/src/validation/features/client-records-contacts.validation-messages.ts +2 -2
- package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +3 -3
- package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +2 -2
- package/src/validation/features/client-records-filing-types-histories.validation-messages.ts +10 -10
- package/src/validation/features/client-records-outside-providers.validation-messages.ts +1 -1
- package/src/validation/features/client-relationships.validation-messages.ts +9 -0
- package/src/validation/features/filing-categories.validation-messages.ts +1 -1
- package/src/validation/features/roles-and-permissions.validation-messages.ts +3 -3
- package/src/validation/features/states.validation-messages.ts +3 -3
- package/src/validation/features/users.validation-messages.ts +2 -2
- package/tsconfig.json +17 -17
|
@@ -196,5 +196,14 @@ export declare const CLIENT_RELATIONSHIPS: {
|
|
|
196
196
|
readonly params: readonly ["relatedClient"];
|
|
197
197
|
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
198
198
|
};
|
|
199
|
+
readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
200
|
+
readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
|
|
201
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
202
|
+
};
|
|
203
|
+
readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
204
|
+
readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
|
|
205
|
+
readonly params: readonly ["relatedClient", "entityType"];
|
|
206
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
207
|
+
};
|
|
199
208
|
};
|
|
200
209
|
//# sourceMappingURL=client-relationships.validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-relationships.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"client-relationships.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+MvB,CAAC"}
|
|
@@ -199,4 +199,13 @@ exports.CLIENT_RELATIONSHIPS = {
|
|
|
199
199
|
params: ['relatedClient'],
|
|
200
200
|
affectedFields: ['capital', 'startingDate', 'endingDate'],
|
|
201
201
|
},
|
|
202
|
+
SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
203
|
+
message: `A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.`,
|
|
204
|
+
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
205
|
+
},
|
|
206
|
+
K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
207
|
+
message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
|
|
208
|
+
params: ['relatedClient', 'entityType'],
|
|
209
|
+
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
210
|
+
},
|
|
202
211
|
};
|
|
@@ -4,7 +4,7 @@ export declare const FILING_CATEGORIES: {
|
|
|
4
4
|
readonly affectedFields: readonly [];
|
|
5
5
|
};
|
|
6
6
|
readonly ID_DOES_NOT_EXIST: {
|
|
7
|
-
readonly message: "Filing category
|
|
7
|
+
readonly message: "Filing category does not exist";
|
|
8
8
|
readonly params: readonly ["id"];
|
|
9
9
|
readonly affectedFields: readonly ["filingCategoryId"];
|
|
10
10
|
};
|
|
@@ -10,16 +10,16 @@ export declare const ROLES_AND_PERMISSIONS: {
|
|
|
10
10
|
readonly affectedFields: readonly ["name"];
|
|
11
11
|
};
|
|
12
12
|
readonly PERMISSIONS_DO_NOT_EXIST: {
|
|
13
|
-
readonly message: "Permissions
|
|
13
|
+
readonly message: "Permissions do not exist";
|
|
14
14
|
readonly params: readonly ["ids"];
|
|
15
15
|
readonly affectedFields: readonly ["permissionIds"];
|
|
16
16
|
};
|
|
17
17
|
readonly ROLE_DOES_NOT_EXIST: {
|
|
18
|
-
readonly message: "Role
|
|
18
|
+
readonly message: "Role does not exist";
|
|
19
19
|
readonly params: readonly ["roleId"];
|
|
20
20
|
};
|
|
21
21
|
readonly PERMISSION_DOES_NOT_EXIST: {
|
|
22
|
-
readonly message: "Permission
|
|
22
|
+
readonly message: "Permission does not exist";
|
|
23
23
|
readonly params: readonly ["permissionId"];
|
|
24
24
|
readonly affectedFields: readonly ["permissionId"];
|
|
25
25
|
};
|
|
@@ -13,16 +13,16 @@ exports.ROLES_AND_PERMISSIONS = {
|
|
|
13
13
|
affectedFields: ['name'],
|
|
14
14
|
},
|
|
15
15
|
PERMISSIONS_DO_NOT_EXIST: {
|
|
16
|
-
message: `Permissions
|
|
16
|
+
message: `Permissions do not exist`,
|
|
17
17
|
params: ['ids'],
|
|
18
18
|
affectedFields: ['permissionIds'],
|
|
19
19
|
},
|
|
20
20
|
ROLE_DOES_NOT_EXIST: {
|
|
21
|
-
message: `Role
|
|
21
|
+
message: `Role does not exist`,
|
|
22
22
|
params: ['roleId'],
|
|
23
23
|
},
|
|
24
24
|
PERMISSION_DOES_NOT_EXIST: {
|
|
25
|
-
message: `Permission
|
|
25
|
+
message: `Permission does not exist`,
|
|
26
26
|
params: ['permissionId'],
|
|
27
27
|
affectedFields: ['permissionId'],
|
|
28
28
|
},
|
|
@@ -4,7 +4,7 @@ export declare const STATES: {
|
|
|
4
4
|
readonly affectedFields: readonly [];
|
|
5
5
|
};
|
|
6
6
|
readonly ID_DOES_NOT_EXIST: {
|
|
7
|
-
readonly message: "State
|
|
7
|
+
readonly message: "State does not exist";
|
|
8
8
|
readonly params: readonly ["id"];
|
|
9
9
|
readonly affectedFields: readonly ["stateId"];
|
|
10
10
|
};
|
|
@@ -14,7 +14,7 @@ export declare const STATES: {
|
|
|
14
14
|
readonly affectedFields: readonly ["name"];
|
|
15
15
|
};
|
|
16
16
|
readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
17
|
-
readonly message: "State type
|
|
17
|
+
readonly message: "State type does not exist";
|
|
18
18
|
readonly params: readonly ["id"];
|
|
19
19
|
readonly affectedFields: readonly ["stateTypeId"];
|
|
20
20
|
};
|
|
@@ -23,7 +23,7 @@ export declare const STATES: {
|
|
|
23
23
|
readonly affectedFields: readonly [];
|
|
24
24
|
};
|
|
25
25
|
readonly PARENT_ID_DOES_NOT_EXIST: {
|
|
26
|
-
readonly message: "Parent state
|
|
26
|
+
readonly message: "Parent state does not exist";
|
|
27
27
|
readonly params: readonly ["id"];
|
|
28
28
|
readonly affectedFields: readonly ["parentId"];
|
|
29
29
|
};
|
|
@@ -7,7 +7,7 @@ exports.STATES = {
|
|
|
7
7
|
affectedFields: [],
|
|
8
8
|
},
|
|
9
9
|
ID_DOES_NOT_EXIST: {
|
|
10
|
-
message: `State
|
|
10
|
+
message: `State does not exist`,
|
|
11
11
|
params: ['id'],
|
|
12
12
|
affectedFields: ['stateId'],
|
|
13
13
|
},
|
|
@@ -17,7 +17,7 @@ exports.STATES = {
|
|
|
17
17
|
affectedFields: ['name'],
|
|
18
18
|
},
|
|
19
19
|
STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
20
|
-
message: `State type
|
|
20
|
+
message: `State type does not exist`,
|
|
21
21
|
params: ['id'],
|
|
22
22
|
affectedFields: ['stateTypeId'],
|
|
23
23
|
},
|
|
@@ -26,7 +26,7 @@ exports.STATES = {
|
|
|
26
26
|
affectedFields: [],
|
|
27
27
|
},
|
|
28
28
|
PARENT_ID_DOES_NOT_EXIST: {
|
|
29
|
-
message: `Parent state
|
|
29
|
+
message: `Parent state does not exist`,
|
|
30
30
|
params: ['id'],
|
|
31
31
|
affectedFields: ['parentId'],
|
|
32
32
|
},
|
|
@@ -32,11 +32,11 @@ export declare const USERS: {
|
|
|
32
32
|
readonly affectedFields: readonly ["email"];
|
|
33
33
|
};
|
|
34
34
|
readonly ROLE_DOES_NOT_EXIST: {
|
|
35
|
-
readonly message: "Role
|
|
35
|
+
readonly message: "Role does not exist";
|
|
36
36
|
readonly params: readonly ["roleId"];
|
|
37
37
|
};
|
|
38
38
|
readonly USER_DOES_NOT_EXIST: {
|
|
39
|
-
readonly message: "User
|
|
39
|
+
readonly message: "User does not exist";
|
|
40
40
|
readonly params: readonly ["userId"];
|
|
41
41
|
readonly affectedFields: readonly ["userId"];
|
|
42
42
|
};
|
|
@@ -35,11 +35,11 @@ exports.USERS = {
|
|
|
35
35
|
affectedFields: ['email'],
|
|
36
36
|
},
|
|
37
37
|
ROLE_DOES_NOT_EXIST: {
|
|
38
|
-
message: `Role
|
|
38
|
+
message: `Role does not exist`,
|
|
39
39
|
params: ['roleId'],
|
|
40
40
|
},
|
|
41
41
|
USER_DOES_NOT_EXIST: {
|
|
42
|
-
message: `User
|
|
42
|
+
message: `User does not exist`,
|
|
43
43
|
params: ['userId'],
|
|
44
44
|
affectedFields: ['userId'],
|
|
45
45
|
},
|
|
@@ -5,7 +5,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
5
5
|
readonly affectedFields: readonly [];
|
|
6
6
|
};
|
|
7
7
|
readonly ID_DOES_NOT_EXIST: {
|
|
8
|
-
readonly message: "Account category
|
|
8
|
+
readonly message: "Account category does not exist";
|
|
9
9
|
readonly params: readonly ["id"];
|
|
10
10
|
readonly affectedFields: readonly ["accountCategoryId"];
|
|
11
11
|
};
|
|
@@ -25,7 +25,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
25
25
|
readonly affectedFields: readonly [];
|
|
26
26
|
};
|
|
27
27
|
readonly ID_DOES_NOT_EXIST: {
|
|
28
|
-
readonly message: "Account id
|
|
28
|
+
readonly message: "Account id does not exist";
|
|
29
29
|
readonly params: readonly ["id"];
|
|
30
30
|
readonly affectedFields: readonly ["accountId"];
|
|
31
31
|
};
|
|
@@ -35,7 +35,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
35
35
|
readonly affectedFields: readonly ["name"];
|
|
36
36
|
};
|
|
37
37
|
readonly ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
38
|
-
readonly message: "Account category
|
|
38
|
+
readonly message: "Account category does not exist";
|
|
39
39
|
readonly params: readonly ["id"];
|
|
40
40
|
readonly affectedFields: readonly ["accountCategoryId"];
|
|
41
41
|
};
|
|
@@ -46,37 +46,37 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
46
46
|
};
|
|
47
47
|
readonly CLIENT_RECORDS_ADDRESSES: {
|
|
48
48
|
readonly STATES_NOT_FOUND: {
|
|
49
|
-
readonly message: "States
|
|
49
|
+
readonly message: "States do not exist";
|
|
50
50
|
readonly params: readonly ["ids"];
|
|
51
51
|
readonly affectedFields: readonly ["stateId"];
|
|
52
52
|
};
|
|
53
53
|
readonly INVALID_STATE_TYPE: {
|
|
54
|
-
readonly message: "States
|
|
54
|
+
readonly message: "States are not of type 'State'";
|
|
55
55
|
readonly params: readonly ["ids"];
|
|
56
56
|
readonly affectedFields: readonly ["stateId"];
|
|
57
57
|
};
|
|
58
58
|
readonly CITIES_NOT_FOUND: {
|
|
59
|
-
readonly message: "Cities
|
|
59
|
+
readonly message: "Cities do not exist";
|
|
60
60
|
readonly params: readonly ["ids"];
|
|
61
61
|
readonly affectedFields: readonly ["cityId"];
|
|
62
62
|
};
|
|
63
63
|
readonly INVALID_CITY_TYPE: {
|
|
64
|
-
readonly message: "Cities
|
|
64
|
+
readonly message: "Cities are not of type 'City'";
|
|
65
65
|
readonly params: readonly ["ids"];
|
|
66
66
|
readonly affectedFields: readonly ["cityId"];
|
|
67
67
|
};
|
|
68
68
|
readonly ZIP_CODES_NOT_FOUND: {
|
|
69
|
-
readonly message: "Zip codes
|
|
69
|
+
readonly message: "Zip codes do not exist";
|
|
70
70
|
readonly params: readonly ["ids"];
|
|
71
71
|
readonly affectedFields: readonly ["zipCode"];
|
|
72
72
|
};
|
|
73
73
|
readonly CONTACT_ROLES_NOT_FOUND: {
|
|
74
|
-
readonly message: "Contact roles
|
|
74
|
+
readonly message: "Contact roles do not exist";
|
|
75
75
|
readonly params: readonly ["ids"];
|
|
76
76
|
readonly affectedFields: readonly ["contactRoleId"];
|
|
77
77
|
};
|
|
78
78
|
readonly CONTACT_TYPES_NOT_FOUND: {
|
|
79
|
-
readonly message: "Contact types
|
|
79
|
+
readonly message: "Contact types do not exist";
|
|
80
80
|
readonly params: readonly ["ids"];
|
|
81
81
|
readonly affectedFields: readonly ["contactTypeId"];
|
|
82
82
|
};
|
|
@@ -111,7 +111,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
111
111
|
readonly affectedFields: readonly [];
|
|
112
112
|
};
|
|
113
113
|
readonly ID_DOES_NOT_EXIST: {
|
|
114
|
-
readonly message: "Business activity
|
|
114
|
+
readonly message: "Business activity does not exist.";
|
|
115
115
|
readonly params: readonly ["id"];
|
|
116
116
|
readonly affectedFields: readonly ["businessActivityId"];
|
|
117
117
|
};
|
|
@@ -157,12 +157,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
157
157
|
};
|
|
158
158
|
readonly CLIENT_RECORDS_CONTACTS: {
|
|
159
159
|
readonly CONTACT_ROLES_NOT_FOUND: {
|
|
160
|
-
readonly message: "Contact roles
|
|
160
|
+
readonly message: "Contact roles do not exist";
|
|
161
161
|
readonly params: readonly ["ids"];
|
|
162
162
|
readonly affectedFields: readonly ["contactRoleId"];
|
|
163
163
|
};
|
|
164
164
|
readonly CONTACT_TYPES_NOT_FOUND: {
|
|
165
|
-
readonly message: "Contact types
|
|
165
|
+
readonly message: "Contact types do not exist";
|
|
166
166
|
readonly params: readonly ["ids"];
|
|
167
167
|
readonly affectedFields: readonly ["contactTypeId"];
|
|
168
168
|
};
|
|
@@ -201,7 +201,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
201
201
|
readonly affectedFields: readonly ["isSubjectToCommission", "salesRepresentativeId", "commissionRate"];
|
|
202
202
|
};
|
|
203
203
|
readonly SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
204
|
-
readonly message: "Sales representative
|
|
204
|
+
readonly message: "Sales representative does not exist";
|
|
205
205
|
readonly params: readonly ["id"];
|
|
206
206
|
readonly affectedFields: readonly ["salesRepresentativeId"];
|
|
207
207
|
};
|
|
@@ -220,32 +220,32 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
220
220
|
readonly affectedFields: readonly [];
|
|
221
221
|
};
|
|
222
222
|
readonly ID_DOES_NOT_EXIST: {
|
|
223
|
-
readonly message: "Client
|
|
223
|
+
readonly message: "Client does not exist";
|
|
224
224
|
readonly params: readonly ["id"];
|
|
225
225
|
readonly affectedFields: readonly ["clientId"];
|
|
226
226
|
};
|
|
227
227
|
readonly ACCOUNT_ID_DOES_NOT_EXIST: {
|
|
228
|
-
readonly message: "Account id
|
|
228
|
+
readonly message: "Account id does not exist";
|
|
229
229
|
readonly params: readonly ["id"];
|
|
230
230
|
readonly affectedFields: readonly ["accountId"];
|
|
231
231
|
};
|
|
232
232
|
readonly FILING_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
233
|
-
readonly message: "Filing category
|
|
233
|
+
readonly message: "Filing category does not exist";
|
|
234
234
|
readonly params: readonly ["id"];
|
|
235
235
|
readonly affectedFields: readonly ["filingCategoryId"];
|
|
236
236
|
};
|
|
237
237
|
readonly BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
|
|
238
|
-
readonly message: "Business activity
|
|
238
|
+
readonly message: "Business activity does not exist";
|
|
239
239
|
readonly params: readonly ["id"];
|
|
240
240
|
readonly affectedFields: readonly ["businessActivityId"];
|
|
241
241
|
};
|
|
242
242
|
readonly BILLING_TYPE_ID_DOES_NOT_EXIST: {
|
|
243
|
-
readonly message: "Billing type
|
|
243
|
+
readonly message: "Billing type does not exist";
|
|
244
244
|
readonly params: readonly ["id"];
|
|
245
245
|
readonly affectedFields: readonly ["billingTypeId"];
|
|
246
246
|
};
|
|
247
247
|
readonly CLIENT_WITH_SAME_FEDERAL_LEGAL_ID_EXISTS: {
|
|
248
|
-
readonly message: "This ID is already in use. Please enter a different ID.";
|
|
248
|
+
readonly message: "This federal legal ID is already in use. Please enter a different federal legal ID.";
|
|
249
249
|
readonly affectedFields: readonly ["federalLegalId"];
|
|
250
250
|
};
|
|
251
251
|
readonly INVALID_CLIENT_ACTIVITY_STATUS: {
|
|
@@ -253,7 +253,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
253
253
|
readonly affectedFields: readonly ["isActive", "clientType"];
|
|
254
254
|
};
|
|
255
255
|
readonly INVALID_FEDERAL_LEGAL_ID: {
|
|
256
|
-
readonly message: "Enter a valid {legalIdType} (e.g. {legalIdValue})";
|
|
256
|
+
readonly message: "Enter a valid federal legal ID {legalIdType} (e.g. {legalIdValue})";
|
|
257
257
|
readonly params: readonly ["legalIdType", "legalIdValue"];
|
|
258
258
|
readonly affectedFields: readonly ["federalLegalId"];
|
|
259
259
|
};
|
|
@@ -353,7 +353,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
353
353
|
};
|
|
354
354
|
readonly CLIENT_RECORDS_ENTITY_TYPES: {
|
|
355
355
|
readonly ENTITY_TYPE_ID_DOES_NOT_EXIST: {
|
|
356
|
-
readonly message: "Entity type
|
|
356
|
+
readonly message: "Entity type does not exist";
|
|
357
357
|
readonly params: readonly ["id"];
|
|
358
358
|
readonly affectedFields: readonly ["entityTypeId"];
|
|
359
359
|
};
|
|
@@ -376,7 +376,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
376
376
|
readonly affectedFields: readonly ["entityTypeStartingDate", "entityTypeEndingDate"];
|
|
377
377
|
};
|
|
378
378
|
readonly ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
379
|
-
readonly message: "Entity types
|
|
379
|
+
readonly message: "Entity types do not exist";
|
|
380
380
|
readonly params: readonly ["ids"];
|
|
381
381
|
readonly affectedFields: readonly ["entityTypeId"];
|
|
382
382
|
};
|
|
@@ -435,7 +435,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
435
435
|
};
|
|
436
436
|
readonly CLIENT_RECORDS_FILING_TYPES: {
|
|
437
437
|
readonly FILING_TYPE_ID_DOES_NOT_EXIST: {
|
|
438
|
-
readonly message: "Parent
|
|
438
|
+
readonly message: "Sub/Parent status does not exist";
|
|
439
439
|
readonly params: readonly ["id"];
|
|
440
440
|
readonly affectedFields: readonly ["filingTypeId"];
|
|
441
441
|
};
|
|
@@ -448,30 +448,30 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
448
448
|
readonly affectedFields: readonly ["parentClientId"];
|
|
449
449
|
};
|
|
450
450
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
|
|
451
|
-
readonly message: "The Parent
|
|
451
|
+
readonly message: "The Sub/Parent status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.";
|
|
452
452
|
readonly params: readonly ["clientDateEstablished", "filingType", "filingTypeStartingDate"];
|
|
453
453
|
readonly affectedFields: readonly ["dateEstablished", "filingType"];
|
|
454
454
|
};
|
|
455
455
|
readonly NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
|
|
456
|
-
readonly message: "One or more Parent
|
|
456
|
+
readonly message: "One or more Sub/Parent 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.";
|
|
457
457
|
readonly params: readonly ["clientCloseDate", "filingType", "filingTypeStartingDate"];
|
|
458
458
|
readonly affectedFields: readonly ["closeDate", "filingType"];
|
|
459
459
|
};
|
|
460
460
|
readonly FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
|
|
461
|
-
readonly message: "Current Parent
|
|
461
|
+
readonly message: "Current Sub/Parent status Starting Date cannot be Empty";
|
|
462
462
|
readonly affectedFields: readonly ["filingTypeStartingDate"];
|
|
463
463
|
};
|
|
464
464
|
readonly NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
|
|
465
|
-
readonly message: "Parent
|
|
465
|
+
readonly message: "Sub/Parent status starting date needs to be before the ending date";
|
|
466
466
|
readonly affectedFields: readonly ["filingTypeStartingDate", "filingTypeEndingDate"];
|
|
467
467
|
};
|
|
468
468
|
readonly FILING_TYPES_IDS_DOES_NOT_EXIST: {
|
|
469
|
-
readonly message: "Parent
|
|
469
|
+
readonly message: "Sub/Parent status do not exist";
|
|
470
470
|
readonly params: readonly ["ids"];
|
|
471
471
|
readonly affectedFields: readonly ["filingTypeId"];
|
|
472
472
|
};
|
|
473
473
|
readonly AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
|
|
474
|
-
readonly message: "At least one Parent
|
|
474
|
+
readonly message: "At least one Sub/Parent status should exist";
|
|
475
475
|
readonly affectedFields: readonly ["filingType"];
|
|
476
476
|
};
|
|
477
477
|
readonly FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
|
|
@@ -505,7 +505,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
505
505
|
readonly affectedFields: readonly ["filingType"];
|
|
506
506
|
};
|
|
507
507
|
readonly FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
508
|
-
readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent
|
|
508
|
+
readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Sub/Parent status that begins on {dateEstablished}.";
|
|
509
509
|
readonly params: readonly ["dateEstablished", "earliestFilingType", "earliestFilingTypeStartDate"];
|
|
510
510
|
readonly affectedFields: readonly ["filingType", "dateEstablished"];
|
|
511
511
|
};
|
|
@@ -515,17 +515,17 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
515
515
|
readonly affectedFields: readonly ["filingType"];
|
|
516
516
|
};
|
|
517
517
|
readonly ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
|
|
518
|
-
readonly message: "Only the last Parent
|
|
518
|
+
readonly message: "Only the last Sub/Parent status can be open without an end date. Add an ending date to the existing Sub/Parent status before adding a start date for a new Sub/Parent status.";
|
|
519
519
|
readonly affectedFields: readonly ["filingTypeEndingDate"];
|
|
520
520
|
};
|
|
521
521
|
readonly CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
|
|
522
|
-
readonly message: "The current Parent
|
|
522
|
+
readonly message: "The current Sub/Parent status cannot have an end date. Please remove the end date for this state.";
|
|
523
523
|
readonly affectedFields: readonly ["filingTypeEndingDate"];
|
|
524
524
|
};
|
|
525
525
|
};
|
|
526
526
|
readonly CLIENT_RECORDS_ENTITY_STATES: {
|
|
527
527
|
readonly STATE_ID_DOES_NOT_EXIST: {
|
|
528
|
-
readonly message: "State
|
|
528
|
+
readonly message: "State does not exist";
|
|
529
529
|
readonly params: readonly ["id"];
|
|
530
530
|
readonly affectedFields: readonly ["stateId"];
|
|
531
531
|
};
|
|
@@ -544,12 +544,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
544
544
|
readonly affectedFields: readonly ["domesticStateStartingDate"];
|
|
545
545
|
};
|
|
546
546
|
readonly STATES_IDS_DOES_NOT_EXIST: {
|
|
547
|
-
readonly message: "States
|
|
547
|
+
readonly message: "States do not exist";
|
|
548
548
|
readonly params: readonly ["ids"];
|
|
549
549
|
readonly affectedFields: readonly ["stateId"];
|
|
550
550
|
};
|
|
551
551
|
readonly RESIDENCE_TYPE_DOES_NOT_EXIST: {
|
|
552
|
-
readonly message: "Residence type
|
|
552
|
+
readonly message: "Residence type does not exist";
|
|
553
553
|
readonly params: readonly ["ids"];
|
|
554
554
|
readonly affectedFields: readonly ["residenceTypeId"];
|
|
555
555
|
};
|
|
@@ -804,6 +804,15 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
804
804
|
readonly params: readonly ["relatedClient"];
|
|
805
805
|
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
806
806
|
};
|
|
807
|
+
readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
808
|
+
readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
|
|
809
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
810
|
+
};
|
|
811
|
+
readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
812
|
+
readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
|
|
813
|
+
readonly params: readonly ["relatedClient", "entityType"];
|
|
814
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
815
|
+
};
|
|
807
816
|
};
|
|
808
817
|
readonly FILING_CATEGORIES: {
|
|
809
818
|
readonly INVALID_REQUEST: {
|
|
@@ -811,7 +820,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
811
820
|
readonly affectedFields: readonly [];
|
|
812
821
|
};
|
|
813
822
|
readonly ID_DOES_NOT_EXIST: {
|
|
814
|
-
readonly message: "Filing category
|
|
823
|
+
readonly message: "Filing category does not exist";
|
|
815
824
|
readonly params: readonly ["id"];
|
|
816
825
|
readonly affectedFields: readonly ["filingCategoryId"];
|
|
817
826
|
};
|
|
@@ -831,7 +840,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
831
840
|
readonly affectedFields: readonly [];
|
|
832
841
|
};
|
|
833
842
|
readonly ID_DOES_NOT_EXIST: {
|
|
834
|
-
readonly message: "State
|
|
843
|
+
readonly message: "State does not exist";
|
|
835
844
|
readonly params: readonly ["id"];
|
|
836
845
|
readonly affectedFields: readonly ["stateId"];
|
|
837
846
|
};
|
|
@@ -841,7 +850,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
841
850
|
readonly affectedFields: readonly ["name"];
|
|
842
851
|
};
|
|
843
852
|
readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
844
|
-
readonly message: "State type
|
|
853
|
+
readonly message: "State type does not exist";
|
|
845
854
|
readonly params: readonly ["id"];
|
|
846
855
|
readonly affectedFields: readonly ["stateTypeId"];
|
|
847
856
|
};
|
|
@@ -850,7 +859,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
850
859
|
readonly affectedFields: readonly [];
|
|
851
860
|
};
|
|
852
861
|
readonly PARENT_ID_DOES_NOT_EXIST: {
|
|
853
|
-
readonly message: "Parent state
|
|
862
|
+
readonly message: "Parent state does not exist";
|
|
854
863
|
readonly params: readonly ["id"];
|
|
855
864
|
readonly affectedFields: readonly ["parentId"];
|
|
856
865
|
};
|
|
@@ -907,11 +916,11 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
907
916
|
readonly affectedFields: readonly ["email"];
|
|
908
917
|
};
|
|
909
918
|
readonly ROLE_DOES_NOT_EXIST: {
|
|
910
|
-
readonly message: "Role
|
|
919
|
+
readonly message: "Role does not exist";
|
|
911
920
|
readonly params: readonly ["roleId"];
|
|
912
921
|
};
|
|
913
922
|
readonly USER_DOES_NOT_EXIST: {
|
|
914
|
-
readonly message: "User
|
|
923
|
+
readonly message: "User does not exist";
|
|
915
924
|
readonly params: readonly ["userId"];
|
|
916
925
|
readonly affectedFields: readonly ["userId"];
|
|
917
926
|
};
|
|
@@ -932,16 +941,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
932
941
|
readonly affectedFields: readonly ["name"];
|
|
933
942
|
};
|
|
934
943
|
readonly PERMISSIONS_DO_NOT_EXIST: {
|
|
935
|
-
readonly message: "Permissions
|
|
944
|
+
readonly message: "Permissions do not exist";
|
|
936
945
|
readonly params: readonly ["ids"];
|
|
937
946
|
readonly affectedFields: readonly ["permissionIds"];
|
|
938
947
|
};
|
|
939
948
|
readonly ROLE_DOES_NOT_EXIST: {
|
|
940
|
-
readonly message: "Role
|
|
949
|
+
readonly message: "Role does not exist";
|
|
941
950
|
readonly params: readonly ["roleId"];
|
|
942
951
|
};
|
|
943
952
|
readonly PERMISSION_DOES_NOT_EXIST: {
|
|
944
|
-
readonly message: "Permission
|
|
953
|
+
readonly message: "Permission does not exist";
|
|
945
954
|
readonly params: readonly ["permissionId"];
|
|
946
955
|
readonly affectedFields: readonly ["permissionId"];
|
|
947
956
|
};
|
|
@@ -990,7 +999,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
990
999
|
};
|
|
991
1000
|
readonly CLIENT_RECORDS_OUTSIDE_PROVIDERS: {
|
|
992
1001
|
readonly INVALID_TYPE: {
|
|
993
|
-
readonly message: "Outside provider types
|
|
1002
|
+
readonly message: "Outside provider types do not exist";
|
|
994
1003
|
readonly params: readonly ["ids"];
|
|
995
1004
|
readonly affectedFields: readonly ["outsideProviderTypeId"];
|
|
996
1005
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ export const ACCOUNT_IDS = {
|
|
|
4
4
|
affectedFields: [],
|
|
5
5
|
},
|
|
6
6
|
ID_DOES_NOT_EXIST: {
|
|
7
|
-
message: `Account id
|
|
7
|
+
message: `Account id does not exist`,
|
|
8
8
|
params: ['id'],
|
|
9
9
|
affectedFields: ['accountId'],
|
|
10
10
|
},
|
|
@@ -14,7 +14,7 @@ export const ACCOUNT_IDS = {
|
|
|
14
14
|
affectedFields: ['name'],
|
|
15
15
|
},
|
|
16
16
|
ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
17
|
-
message: `Account category
|
|
17
|
+
message: `Account category does not exist`,
|
|
18
18
|
params: ['id'],
|
|
19
19
|
affectedFields: ['accountCategoryId'],
|
|
20
20
|
},
|
|
@@ -4,32 +4,32 @@ export const CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
4
4
|
affectedFields: [],
|
|
5
5
|
},
|
|
6
6
|
ID_DOES_NOT_EXIST: {
|
|
7
|
-
message: `Client
|
|
7
|
+
message: `Client does not exist`,
|
|
8
8
|
params: ['id'],
|
|
9
9
|
affectedFields: ['clientId'],
|
|
10
10
|
},
|
|
11
11
|
ACCOUNT_ID_DOES_NOT_EXIST: {
|
|
12
|
-
message: `Account id
|
|
12
|
+
message: `Account id does not exist`,
|
|
13
13
|
params: ['id'],
|
|
14
14
|
affectedFields: ['accountId'],
|
|
15
15
|
},
|
|
16
16
|
FILING_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
17
|
-
message: `Filing category
|
|
17
|
+
message: `Filing category does not exist`,
|
|
18
18
|
params: ['id'],
|
|
19
19
|
affectedFields: ['filingCategoryId'],
|
|
20
20
|
},
|
|
21
21
|
BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
|
|
22
|
-
message: `Business activity
|
|
22
|
+
message: `Business activity does not exist`,
|
|
23
23
|
params: ['id'],
|
|
24
24
|
affectedFields: ['businessActivityId'],
|
|
25
25
|
},
|
|
26
26
|
BILLING_TYPE_ID_DOES_NOT_EXIST: {
|
|
27
|
-
message: `Billing type
|
|
27
|
+
message: `Billing type does not exist`,
|
|
28
28
|
params: ['id'],
|
|
29
29
|
affectedFields: ['billingTypeId'],
|
|
30
30
|
},
|
|
31
31
|
CLIENT_WITH_SAME_FEDERAL_LEGAL_ID_EXISTS: {
|
|
32
|
-
message: `This ID is already in use. Please enter a different ID.`,
|
|
32
|
+
message: `This federal legal ID is already in use. Please enter a different federal legal ID.`,
|
|
33
33
|
affectedFields: ['federalLegalId'],
|
|
34
34
|
},
|
|
35
35
|
INVALID_CLIENT_ACTIVITY_STATUS: {
|
|
@@ -37,7 +37,7 @@ export const CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
37
37
|
affectedFields: ['isActive', 'clientType'],
|
|
38
38
|
},
|
|
39
39
|
INVALID_FEDERAL_LEGAL_ID: {
|
|
40
|
-
message: `Enter a valid {legalIdType} (e.g. {legalIdValue})`,
|
|
40
|
+
message: `Enter a valid federal legal ID {legalIdType} (e.g. {legalIdValue})`,
|
|
41
41
|
params: ['legalIdType', 'legalIdValue'],
|
|
42
42
|
affectedFields: ['federalLegalId'],
|
|
43
43
|
},
|