@forwardslashns/taskit-validation-messages 1.1.0 → 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 (77) hide show
  1. package/dist/validation/features/account-category.validation-messages.d.ts +21 -0
  2. package/dist/validation/features/account-category.validation-messages.d.ts.map +1 -0
  3. package/dist/validation/features/account-category.validation-messages.js +23 -0
  4. package/dist/validation/features/account-id.validation-messages.d.ts +26 -0
  5. package/dist/validation/features/account-id.validation-messages.d.ts.map +1 -0
  6. package/dist/validation/features/account-id.validation-messages.js +28 -0
  7. package/dist/validation/features/address.validation-messages.d.ts +62 -0
  8. package/dist/validation/features/address.validation-messages.d.ts.map +1 -0
  9. package/dist/validation/features/address.validation-messages.js +64 -0
  10. package/dist/validation/features/bank-and-credit-card.validation-messages.d.ts +19 -0
  11. package/dist/validation/features/bank-and-credit-card.validation-messages.d.ts.map +1 -0
  12. package/dist/validation/features/bank-and-credit-card.validation-messages.js +21 -0
  13. package/dist/validation/features/bank.validation-messages.d.ts +7 -0
  14. package/dist/validation/features/bank.validation-messages.d.ts.map +1 -0
  15. package/dist/validation/features/bank.validation-messages.js +9 -0
  16. package/dist/validation/features/business-activity.validation-messages.d.ts +21 -0
  17. package/dist/validation/features/business-activity.validation-messages.d.ts.map +1 -0
  18. package/dist/validation/features/business-activity.validation-messages.js +23 -0
  19. package/dist/validation/features/client-relationship.validation-messages.d.ts +63 -0
  20. package/dist/validation/features/client-relationship.validation-messages.d.ts.map +1 -0
  21. package/dist/validation/features/client-relationship.validation-messages.js +65 -0
  22. package/dist/validation/features/client.validation-messages.d.ts +387 -0
  23. package/dist/validation/features/client.validation-messages.d.ts.map +1 -0
  24. package/dist/validation/features/client.validation-messages.js +389 -0
  25. package/dist/validation/features/commission-detail.validation-messages.d.ts +24 -0
  26. package/dist/validation/features/commission-detail.validation-messages.d.ts.map +1 -0
  27. package/dist/validation/features/commission-detail.validation-messages.js +26 -0
  28. package/dist/validation/features/contact.validation-messages.d.ts +37 -0
  29. package/dist/validation/features/contact.validation-messages.d.ts.map +1 -0
  30. package/dist/validation/features/contact.validation-messages.js +39 -0
  31. package/dist/validation/features/credit-card.validation-messages.d.ts +11 -0
  32. package/dist/validation/features/credit-card.validation-messages.d.ts.map +1 -0
  33. package/dist/validation/features/credit-card.validation-messages.js +13 -0
  34. package/dist/validation/features/data-filter.validation-messages.d.ts +19 -0
  35. package/dist/validation/features/data-filter.validation-messages.d.ts.map +1 -0
  36. package/dist/validation/features/data-filter.validation-messages.js +21 -0
  37. package/dist/validation/features/filing-category.validation-messages.d.ts +21 -0
  38. package/dist/validation/features/filing-category.validation-messages.d.ts.map +1 -0
  39. package/dist/validation/features/filing-category.validation-messages.js +23 -0
  40. package/dist/validation/features/outside-provider.validation-messages.d.ts +13 -0
  41. package/dist/validation/features/outside-provider.validation-messages.d.ts.map +1 -0
  42. package/dist/validation/features/outside-provider.validation-messages.js +15 -0
  43. package/dist/validation/features/role-and-permission.validation-messages.d.ts +32 -0
  44. package/dist/validation/features/role-and-permission.validation-messages.d.ts.map +1 -0
  45. package/dist/validation/features/role-and-permission.validation-messages.js +34 -0
  46. package/dist/validation/features/state.validation-messages.d.ts +49 -0
  47. package/dist/validation/features/state.validation-messages.d.ts.map +1 -0
  48. package/dist/validation/features/state.validation-messages.js +51 -0
  49. package/dist/validation/features/user-preference.validation-messages.d.ts +20 -0
  50. package/dist/validation/features/user-preference.validation-messages.d.ts.map +1 -0
  51. package/dist/validation/features/user-preference.validation-messages.js +22 -0
  52. package/dist/validation/features/user.validation-messages.d.ts +48 -0
  53. package/dist/validation/features/user.validation-messages.d.ts.map +1 -0
  54. package/dist/validation/features/user.validation-messages.js +50 -0
  55. package/dist/validation/validation-messages.d.ts +1 -1
  56. package/dist/validation/validation-messages.d.ts.map +1 -1
  57. package/dist/validation/validation-messages.js +36 -866
  58. package/package.json +1 -1
  59. package/src/validation/features/account-category.validation-messages.ts +20 -0
  60. package/src/validation/features/account-id.validation-messages.ts +25 -0
  61. package/src/validation/features/address.validation-messages.ts +61 -0
  62. package/src/validation/features/bank-and-credit-card.validation-messages.ts +20 -0
  63. package/src/validation/features/bank.validation-messages.ts +6 -0
  64. package/src/validation/features/business-activity.validation-messages.ts +20 -0
  65. package/src/validation/features/client-relationship.validation-messages.ts +62 -0
  66. package/src/validation/features/client.validation-messages.ts +386 -0
  67. package/src/validation/features/commission-detail.validation-messages.ts +23 -0
  68. package/src/validation/features/contact.validation-messages.ts +36 -0
  69. package/src/validation/features/credit-card.validation-messages.ts +10 -0
  70. package/src/validation/features/data-filter.validation-messages.ts +18 -0
  71. package/src/validation/features/filing-category.validation-messages.ts +20 -0
  72. package/src/validation/features/outside-provider.validation-messages.ts +12 -0
  73. package/src/validation/features/role-and-permission.validation-messages.ts +31 -0
  74. package/src/validation/features/state.validation-messages.ts +48 -0
  75. package/src/validation/features/user-preference.validation-messages.ts +19 -0
  76. package/src/validation/features/user.validation-messages.ts +47 -0
  77. package/src/validation/validation-messages.ts +37 -868
@@ -0,0 +1,387 @@
1
+ export declare const CLIENT: {
2
+ readonly INVALID_REQUEST: {
3
+ readonly message: "Missing client id in request";
4
+ readonly affectedFields: readonly [];
5
+ };
6
+ readonly ID_DOES_NOT_EXIST: {
7
+ readonly message: "Client with id '{id}' does not exist";
8
+ readonly params: readonly ["id"];
9
+ readonly affectedFields: readonly ["clientId"];
10
+ };
11
+ readonly ACCOUNT_ID_DOES_NOT_EXIST: {
12
+ readonly message: "Account id with id '{id}' does not exist";
13
+ readonly params: readonly ["id"];
14
+ readonly affectedFields: readonly ["accountId"];
15
+ };
16
+ readonly FILING_CATEGORY_ID_DOES_NOT_EXIST: {
17
+ readonly message: "Filing category with id '{id}' does not exist";
18
+ readonly params: readonly ["id"];
19
+ readonly affectedFields: readonly ["filingCategoryId"];
20
+ };
21
+ readonly FILING_TYPE_ID_DOES_NOT_EXIST: {
22
+ readonly message: "Parent/Sub status with id '{id}' does not exist";
23
+ readonly params: readonly ["id"];
24
+ readonly affectedFields: readonly ["filingTypeId"];
25
+ };
26
+ readonly FILING_TYPE_PARENT_REQUIRED: {
27
+ readonly message: "Parent needs to be specified for filing type 'Files under parent'";
28
+ readonly affectedFields: readonly ["parentClientId"];
29
+ };
30
+ readonly CURRENT_FILING_TYPE_PARENT_REQUIRED: {
31
+ readonly message: "Parent needs to be specified for current filing type 'Files under parent'";
32
+ readonly affectedFields: readonly ["parentClientId"];
33
+ };
34
+ readonly STATE_ID_DOES_NOT_EXIST: {
35
+ readonly message: "State with id '{id}' does not exist";
36
+ readonly params: readonly ["id"];
37
+ readonly affectedFields: readonly ["stateId"];
38
+ };
39
+ readonly BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
40
+ readonly message: "Business activity with id '{id}' does not exist";
41
+ readonly params: readonly ["id"];
42
+ readonly affectedFields: readonly ["businessActivityId"];
43
+ };
44
+ readonly BILLING_TYPE_ID_DOES_NOT_EXIST: {
45
+ readonly message: "Billing type with id '{id}' does not exist";
46
+ readonly params: readonly ["id"];
47
+ readonly affectedFields: readonly ["billingTypeId"];
48
+ };
49
+ readonly ENTITY_TYPE_ID_DOES_NOT_EXIST: {
50
+ readonly message: "Entity type with id '{id}' does not exist";
51
+ readonly params: readonly ["id"];
52
+ readonly affectedFields: readonly ["entityTypeId"];
53
+ };
54
+ readonly CLIENT_WITH_SAME_FEDERAL_LEGAL_ID_EXISTS: {
55
+ readonly message: "This ID is already in use. Please enter a different ID.";
56
+ readonly affectedFields: readonly ["federalLegalId"];
57
+ };
58
+ readonly INVALID_CLIENT_ACTIVITY_STATUS: {
59
+ 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'.";
60
+ readonly affectedFields: readonly ["isActive", "clientType"];
61
+ };
62
+ readonly INVALID_FEDERAL_LEGAL_ID: {
63
+ readonly message: "Enter a valid {legalIdType} (e.g. {legalIdValue})";
64
+ readonly params: readonly ["legalIdType", "legalIdValue"];
65
+ readonly affectedFields: readonly ["federalLegalId"];
66
+ };
67
+ readonly NAME_ALREADY_EXISTS: {
68
+ readonly message: "Client with the same name '{name}' already exists";
69
+ readonly params: readonly ["name"];
70
+ readonly affectedFields: readonly ["name"];
71
+ };
72
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
73
+ 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.";
74
+ readonly params: readonly ["clientDateEstablished", "entityType", "entityTypeStartingDate"];
75
+ readonly affectedFields: readonly ["dateEstablished", "entityTypes"];
76
+ };
77
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
78
+ 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.";
79
+ readonly params: readonly ["clientDateEstablished", "filingType", "filingTypeStartingDate"];
80
+ readonly affectedFields: readonly ["dateEstablished", "filingTypes"];
81
+ };
82
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
83
+ 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.";
84
+ readonly params: readonly ["clientDateEstablished", "domesticState", "domesticStateStartingDate"];
85
+ readonly affectedFields: readonly ["dateEstablished", "domesticStates"];
86
+ };
87
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
88
+ readonly message: "Adjust the close date to be after the date established.";
89
+ readonly affectedFields: readonly ["dateEstablished", "closeDate"];
90
+ };
91
+ readonly NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
92
+ 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.";
93
+ readonly params: readonly ["clientCloseDate", "entityType", "entityTypeStartingDate"];
94
+ readonly affectedFields: readonly ["closeDate", "entityTypes"];
95
+ };
96
+ readonly NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
97
+ 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.";
98
+ readonly params: readonly ["clientCloseDate", "filingType", "filingTypeStartingDate"];
99
+ readonly affectedFields: readonly ["closeDate", "filingTypes"];
100
+ };
101
+ readonly ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
102
+ readonly message: "Current Entity Type Starting Date cannot be Empty";
103
+ readonly affectedFields: readonly ["entityTypeStartingDate"];
104
+ };
105
+ readonly FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
106
+ readonly message: "Current Parent/Sub status Starting Date cannot be Empty";
107
+ readonly affectedFields: readonly ["filingTypeStartingDate"];
108
+ };
109
+ readonly DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
110
+ readonly message: "Current Domestic State Starting Date cannot be Empty";
111
+ readonly affectedFields: readonly ["domesticStateStartingDate"];
112
+ };
113
+ readonly NOT_ALIGNED_ENTITY_TYPE_STARTING_ENDING_DATE: {
114
+ readonly message: "Entity type starting date needs to be before the ending date";
115
+ readonly affectedFields: readonly ["entityTypeStartingDate", "entityTypeEndingDate"];
116
+ };
117
+ readonly NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
118
+ readonly message: "Parent/Sub status starting date needs to be before the ending date";
119
+ readonly affectedFields: readonly ["filingTypeStartingDate", "filingTypeEndingDate"];
120
+ };
121
+ readonly NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
122
+ 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.";
123
+ readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
124
+ readonly affectedFields: readonly ["closeDate", "domesticStates"];
125
+ };
126
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
127
+ readonly message: "Choose an Account ID";
128
+ readonly affectedFields: readonly ["accountId"];
129
+ };
130
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
131
+ readonly message: "Choose a Business Activity";
132
+ readonly affectedFields: readonly ["businessActivityId"];
133
+ };
134
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
135
+ readonly message: "Choose a Billing Type";
136
+ readonly affectedFields: readonly ["billingTypeId"];
137
+ };
138
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
139
+ readonly message: "Choose a Filing Category";
140
+ readonly affectedFields: readonly ["filingCategoryId"];
141
+ };
142
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
143
+ readonly message: "Create a Contact - One contact needs to have been saved to this client";
144
+ readonly affectedFields: readonly ["contacts"];
145
+ };
146
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
147
+ readonly message: "Create an Address - One address needs to have been saved to this client";
148
+ readonly affectedFields: readonly ["addresses"];
149
+ };
150
+ readonly CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
151
+ readonly message: "This client cannot be deleted because it has client relationships associated";
152
+ readonly affectedFields: readonly [];
153
+ };
154
+ readonly CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
155
+ readonly message: "This client cannot be deleted because it has client project templates associated";
156
+ readonly affectedFields: readonly [];
157
+ };
158
+ readonly CLIENT_COULD_NOT_BE_DELETED_ADDITIONAL_INFORMATION_EXIST: {
159
+ readonly message: "This client cannot be deleted because it has additional information associated";
160
+ readonly affectedFields: readonly [];
161
+ };
162
+ readonly CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
163
+ readonly message: "This client cannot be deleted because it has bank accounts associated";
164
+ readonly affectedFields: readonly [];
165
+ };
166
+ readonly CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
167
+ readonly message: "This client cannot be deleted because it has credit cards associated";
168
+ readonly affectedFields: readonly [];
169
+ };
170
+ readonly CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
171
+ readonly message: "This client cannot be deleted because it has worklogs associated";
172
+ readonly affectedFields: readonly [];
173
+ };
174
+ readonly CLIENT_COULD_NOT_BE_DELETED_INVOICES_EXIST: {
175
+ readonly message: "This client cannot be deleted because it has invoices associated";
176
+ readonly affectedFields: readonly [];
177
+ };
178
+ readonly CLIENT_COULD_NOT_BE_DELETED_PAYMENTS_EXIST: {
179
+ readonly message: "This client cannot be deleted because it has payments associated";
180
+ readonly affectedFields: readonly [];
181
+ };
182
+ readonly CLIENT_COULD_NOT_BE_DELETED_DOCUMENTS_EXIST: {
183
+ readonly message: "This client cannot be deleted because it has documents associated";
184
+ readonly affectedFields: readonly [];
185
+ };
186
+ readonly CLIENT_COULD_NOT_BE_DELETED_JOURNALS_EXIST: {
187
+ readonly message: "This client cannot be deleted because it has journals associated";
188
+ readonly affectedFields: readonly [];
189
+ };
190
+ readonly CLIENT_COULD_NOT_BE_DELETED_FUTURES_EXIST: {
191
+ readonly message: "This client cannot be deleted because it has futures associated";
192
+ readonly affectedFields: readonly [];
193
+ };
194
+ readonly CLIENT_COULD_NOT_BE_DELETED_PROJECTS_EXIST: {
195
+ readonly message: "This client cannot be deleted because it has projects associated";
196
+ readonly affectedFields: readonly [];
197
+ };
198
+ readonly CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
199
+ readonly message: "This client cannot be deleted because it has tasks associated";
200
+ readonly affectedFields: readonly [];
201
+ };
202
+ readonly CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
203
+ readonly message: "This client cannot be deleted because it has addresses associated";
204
+ readonly affectedFields: readonly [];
205
+ };
206
+ readonly CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
207
+ readonly message: "This client cannot be deleted because it has contacts associated";
208
+ readonly affectedFields: readonly [];
209
+ };
210
+ readonly ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
211
+ readonly message: "Entity types with ids '{ids}' do not exist";
212
+ readonly params: readonly ["ids"];
213
+ readonly affectedFields: readonly ["entityTypeId"];
214
+ };
215
+ readonly AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
216
+ readonly message: "At least one entity type should exist";
217
+ readonly affectedFields: readonly ["entityTypes"];
218
+ };
219
+ readonly ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
220
+ readonly message: "Starting date for {entityType} cannot be empty";
221
+ readonly params: readonly ["entityType"];
222
+ readonly affectedFields: readonly ["entityTypeStartingDate"];
223
+ };
224
+ readonly NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
225
+ readonly message: "The ending date for {entityType} must be after its starting date";
226
+ readonly params: readonly ["entityType"];
227
+ readonly affectedFields: readonly ["entityTypeStartingDate", "entityTypeEndingDate"];
228
+ };
229
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPES_STARTING_DATE: {
230
+ readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
231
+ readonly params: readonly ["clientStartDate"];
232
+ readonly affectedFields: readonly ["entityTypeStartingDate", "dateEstablished"];
233
+ };
234
+ readonly NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
235
+ readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
236
+ readonly params: readonly ["clientCloseDate"];
237
+ readonly affectedFields: readonly ["entityTypeStartingDate", "closeDate"];
238
+ };
239
+ readonly ENTITY_TYPES_DATE_GAP_DETECTED: {
240
+ 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.";
241
+ readonly params: readonly ["currentEntityType", "currentEntityTypeEndDate", "nextEntityType", "nextEntityTypeStartDate"];
242
+ readonly affectedFields: readonly ["entityTypes"];
243
+ };
244
+ readonly ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
245
+ 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}. ";
246
+ readonly params: readonly ["entityType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
247
+ readonly affectedFields: readonly ["entityTypes"];
248
+ };
249
+ readonly ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
250
+ 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}.";
251
+ readonly params: readonly ["dateEstablished", "earliestEntityType", "earliestEntityTypeStartDate"];
252
+ readonly affectedFields: readonly ["entityTypes", "dateEstablished"];
253
+ };
254
+ readonly ENTITY_TYPES_DATES_OVERLAP: {
255
+ 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.";
256
+ readonly params: readonly ["entityType", "startDate1", "endDate1", "startDate2", "endDate2"];
257
+ readonly affectedFields: readonly ["entityTypes"];
258
+ };
259
+ readonly ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
260
+ 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.";
261
+ readonly affectedFields: readonly ["entityTypeEndingDate"];
262
+ };
263
+ readonly CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
264
+ readonly message: "The current entity type cannot have an end date. Please remove the end date for this state.";
265
+ readonly affectedFields: readonly ["entityTypeEndingDate"];
266
+ };
267
+ readonly FILING_TYPES_IDS_DOES_NOT_EXIST: {
268
+ readonly message: "Parent/Sub status with ids '{ids}' do not exist";
269
+ readonly params: readonly ["ids"];
270
+ readonly affectedFields: readonly ["filingTypeId"];
271
+ };
272
+ readonly AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
273
+ readonly message: "At least one Parent/Sub status should exist";
274
+ readonly affectedFields: readonly ["filingTypes"];
275
+ };
276
+ readonly FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
277
+ readonly message: "Starting date for {filingType} cannot be empty";
278
+ readonly params: readonly ["filingType"];
279
+ readonly affectedFields: readonly ["filingTypeStartingDate"];
280
+ };
281
+ readonly NOT_ALIGNED_FILING_TYPES_STARTING_ENDING_DATE: {
282
+ readonly message: "The ending date for {filingType} must be after its starting date";
283
+ readonly params: readonly ["filingType"];
284
+ readonly affectedFields: readonly ["filingTypeStartingDate", "filingTypeEndingDate"];
285
+ };
286
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPES_STARTING_DATE: {
287
+ readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
288
+ readonly params: readonly ["clientStartDate"];
289
+ readonly affectedFields: readonly ["filingTypeStartingDate", "dateEstablished"];
290
+ };
291
+ readonly NOT_ALIGNED_CLOSE_DATE_FILING_TYPES_STARTING_DATE: {
292
+ readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
293
+ readonly params: readonly ["clientCloseDate"];
294
+ readonly affectedFields: readonly ["filingTypeStartingDate", "closeDate"];
295
+ };
296
+ readonly FILING_TYPES_DATE_GAP_DETECTED: {
297
+ 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.";
298
+ readonly params: readonly ["currentFilingType", "currentFilingTypeEndDate", "nextFilingType", "nextFilingTypeStartDate"];
299
+ readonly affectedFields: readonly ["filingTypes"];
300
+ };
301
+ readonly FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
302
+ 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}. ";
303
+ readonly params: readonly ["filingType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
304
+ readonly affectedFields: readonly ["filingTypes"];
305
+ };
306
+ readonly FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
307
+ 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}.";
308
+ readonly params: readonly ["dateEstablished", "earliestFilingType", "earliestFilingTypeStartDate"];
309
+ readonly affectedFields: readonly ["filingTypes", "dateEstablished"];
310
+ };
311
+ readonly FILING_TYPES_DATES_OVERLAP: {
312
+ 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.";
313
+ readonly params: readonly ["filingType", "startDate1", "endDate1", "startDate2", "endDate2"];
314
+ readonly affectedFields: readonly ["filingTypes"];
315
+ };
316
+ readonly ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
317
+ 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.";
318
+ readonly affectedFields: readonly ["filingTypeEndingDate"];
319
+ };
320
+ readonly CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
321
+ readonly message: "The current Parent/Sub status cannot have an end date. Please remove the end date for this state.";
322
+ readonly affectedFields: readonly ["filingTypeEndingDate"];
323
+ };
324
+ readonly STATES_IDS_DOES_NOT_EXIST: {
325
+ readonly message: "States with ids '{ids}' do not exist";
326
+ readonly params: readonly ["ids"];
327
+ readonly affectedFields: readonly ["stateId"];
328
+ };
329
+ readonly RESIDENCE_TYPE_DOES_NOT_EXIST: {
330
+ readonly message: "Residence type with ids '{ids}' does not exist";
331
+ readonly params: readonly ["ids"];
332
+ readonly affectedFields: readonly ["residenceTypeId"];
333
+ };
334
+ readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
335
+ readonly message: "At least one domestic state should exist";
336
+ readonly affectedFields: readonly ["domesticStates"];
337
+ };
338
+ readonly STATES_STARTING_DATE_NOT_POPULATED: {
339
+ readonly message: "Starting date for {state} cannot be empty";
340
+ readonly params: readonly ["state"];
341
+ readonly affectedFields: readonly ["stateStartingDate"];
342
+ };
343
+ readonly NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
344
+ readonly message: "The ending date for {state} must be after its starting date";
345
+ readonly params: readonly ["state"];
346
+ readonly affectedFields: readonly ["stateStartingDate", "stateEndingDate"];
347
+ };
348
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
349
+ readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
350
+ readonly params: readonly ["clientStartDate"];
351
+ readonly affectedFields: readonly ["stateStartingDate", "dateEstablished"];
352
+ };
353
+ readonly NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
354
+ readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
355
+ readonly params: readonly ["clientCloseDate"];
356
+ readonly affectedFields: readonly ["stateStartingDate", "closeDate"];
357
+ };
358
+ readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
359
+ 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.";
360
+ readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
361
+ readonly affectedFields: readonly ["domesticStates"];
362
+ };
363
+ readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
364
+ 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}. ";
365
+ readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
366
+ readonly affectedFields: readonly ["domesticStates"];
367
+ };
368
+ readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
369
+ 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}.";
370
+ readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
371
+ readonly affectedFields: readonly ["domesticStates", "dateEstablished"];
372
+ };
373
+ readonly STATES_DATES_OVERLAP: {
374
+ 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.";
375
+ readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
376
+ readonly affectedFields: readonly ["domesticStates"];
377
+ };
378
+ readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
379
+ 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.";
380
+ readonly affectedFields: readonly ["stateEndingDate"];
381
+ };
382
+ readonly CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
383
+ readonly message: "The current domestic state cannot have an end date. Please remove the end date for this state.";
384
+ readonly affectedFields: readonly ["stateEndingDate"];
385
+ };
386
+ };
387
+ //# sourceMappingURL=client.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiYT,CAAC"}