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