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