@forwardslashns/taskit-validation-messages 1.2.0 → 1.3.0

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