@forwardslashns/taskit-validation-messages 1.10.18 → 1.10.19

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 (123) hide show
  1. package/dist/index.d.ts +2 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -1
  4. package/dist/validation/features/account-categories.validation-messages.d.ts +18 -14
  5. package/dist/validation/features/account-categories.validation-messages.d.ts.map +1 -1
  6. package/dist/validation/features/account-categories.validation-messages.js +7 -2
  7. package/dist/validation/features/account-ids.validation-messages.d.ts +23 -18
  8. package/dist/validation/features/account-ids.validation-messages.d.ts.map +1 -1
  9. package/dist/validation/features/account-ids.validation-messages.js +8 -2
  10. package/dist/validation/features/business-activities.validation-messages.d.ts +18 -14
  11. package/dist/validation/features/business-activities.validation-messages.d.ts.map +1 -1
  12. package/dist/validation/features/business-activities.validation-messages.js +7 -2
  13. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +195 -158
  14. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map +1 -1
  15. package/dist/validation/features/client-current-entity-statuses.validation-messages.js +45 -7
  16. package/dist/validation/features/client-records-addresses.validation-messages.d.ts +71 -58
  17. package/dist/validation/features/client-records-addresses.validation-messages.d.ts.map +1 -1
  18. package/dist/validation/features/client-records-addresses.validation-messages.js +16 -2
  19. package/dist/validation/features/client-records-banks.validation-messages.d.ts +20 -15
  20. package/dist/validation/features/client-records-banks.validation-messages.d.ts.map +1 -1
  21. package/dist/validation/features/client-records-banks.validation-messages.js +8 -2
  22. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +21 -16
  23. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts.map +1 -1
  24. package/dist/validation/features/client-records-commission-details.validation-messages.js +8 -2
  25. package/dist/validation/features/client-records-contacts.validation-messages.d.ts +41 -33
  26. package/dist/validation/features/client-records-contacts.validation-messages.d.ts.map +1 -1
  27. package/dist/validation/features/client-records-contacts.validation-messages.js +11 -2
  28. package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts +24 -18
  29. package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts.map +1 -1
  30. package/dist/validation/features/client-records-credit-cards.validation-messages.js +9 -2
  31. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +97 -80
  32. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts.map +1 -1
  33. package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +30 -12
  34. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +96 -79
  35. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts.map +1 -1
  36. package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +30 -12
  37. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +96 -79
  38. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts.map +1 -1
  39. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +30 -12
  40. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +10 -8
  41. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts.map +1 -1
  42. package/dist/validation/features/client-records-outside-providers.validation-messages.js +6 -3
  43. package/dist/validation/features/client-relationships-common.validation-messages.d.ts +69 -55
  44. package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
  45. package/dist/validation/features/client-relationships-common.validation-messages.js +30 -15
  46. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +84 -68
  47. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map +1 -1
  48. package/dist/validation/features/client-relationships-income-sources.validation-messages.js +21 -4
  49. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +86 -69
  50. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts.map +1 -1
  51. package/dist/validation/features/client-relationships-owners.validation-messages.js +22 -4
  52. package/dist/validation/features/data-filters.validation-messages.d.ts +16 -12
  53. package/dist/validation/features/data-filters.validation-messages.d.ts.map +1 -1
  54. package/dist/validation/features/data-filters.validation-messages.js +7 -2
  55. package/dist/validation/features/filing-categories.validation-messages.d.ts +18 -14
  56. package/dist/validation/features/filing-categories.validation-messages.d.ts.map +1 -1
  57. package/dist/validation/features/filing-categories.validation-messages.js +7 -2
  58. package/dist/validation/features/income-accounts.validation-messages.d.ts +17 -13
  59. package/dist/validation/features/income-accounts.validation-messages.d.ts.map +1 -1
  60. package/dist/validation/features/income-accounts.validation-messages.js +7 -2
  61. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +29 -23
  62. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts.map +1 -1
  63. package/dist/validation/features/roles-and-permissions.validation-messages.js +9 -2
  64. package/dist/validation/features/states.validation-messages.d.ts +55 -45
  65. package/dist/validation/features/states.validation-messages.d.ts.map +1 -1
  66. package/dist/validation/features/states.validation-messages.js +13 -2
  67. package/dist/validation/features/template-assignments.validation-messages.d.ts +85 -68
  68. package/dist/validation/features/template-assignments.validation-messages.d.ts.map +1 -1
  69. package/dist/validation/features/template-assignments.validation-messages.js +20 -2
  70. package/dist/validation/features/template-information.validation-messages.d.ts +218 -175
  71. package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
  72. package/dist/validation/features/template-information.validation-messages.js +46 -2
  73. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +164 -132
  74. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
  75. package/dist/validation/features/template-recurrence-settings.validation-messages.js +37 -4
  76. package/dist/validation/features/template-states.validation-messages.d.ts +49 -39
  77. package/dist/validation/features/template-states.validation-messages.d.ts.map +1 -1
  78. package/dist/validation/features/template-states.validation-messages.js +13 -2
  79. package/dist/validation/features/user-preferences.validation-messages.d.ts +17 -13
  80. package/dist/validation/features/user-preferences.validation-messages.d.ts.map +1 -1
  81. package/dist/validation/features/user-preferences.validation-messages.js +8 -3
  82. package/dist/validation/features/users.validation-messages.d.ts +65 -53
  83. package/dist/validation/features/users.validation-messages.d.ts.map +1 -1
  84. package/dist/validation/features/users.validation-messages.js +17 -4
  85. package/dist/validation/validation-message.formatter.d.ts +2 -0
  86. package/dist/validation/validation-message.formatter.d.ts.map +1 -1
  87. package/dist/validation/validation-message.formatter.js +1 -0
  88. package/dist/validation/validation-message.types.d.ts +30 -0
  89. package/dist/validation/validation-message.types.d.ts.map +1 -0
  90. package/dist/validation/validation-message.types.js +9 -0
  91. package/dist/validation/validation-messages.d.ts +1756 -1423
  92. package/dist/validation/validation-messages.d.ts.map +1 -1
  93. package/package.json +1 -1
  94. package/src/index.ts +14 -0
  95. package/src/validation/features/account-categories.validation-messages.ts +8 -2
  96. package/src/validation/features/account-ids.validation-messages.ts +9 -2
  97. package/src/validation/features/business-activities.validation-messages.ts +8 -2
  98. package/src/validation/features/client-current-entity-statuses.validation-messages.ts +46 -7
  99. package/src/validation/features/client-records-addresses.validation-messages.ts +17 -2
  100. package/src/validation/features/client-records-banks.validation-messages.ts +9 -2
  101. package/src/validation/features/client-records-commission-details.validation-messages.ts +9 -2
  102. package/src/validation/features/client-records-contacts.validation-messages.ts +12 -2
  103. package/src/validation/features/client-records-credit-cards.validation-messages.ts +10 -2
  104. package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +31 -12
  105. package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +31 -12
  106. package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts +31 -12
  107. package/src/validation/features/client-records-outside-providers.validation-messages.ts +7 -3
  108. package/src/validation/features/client-relationships-common.validation-messages.ts +31 -15
  109. package/src/validation/features/client-relationships-income-sources.validation-messages.ts +22 -4
  110. package/src/validation/features/client-relationships-owners.validation-messages.ts +23 -4
  111. package/src/validation/features/data-filters.validation-messages.ts +8 -2
  112. package/src/validation/features/filing-categories.validation-messages.ts +8 -2
  113. package/src/validation/features/income-accounts.validation-messages.ts +8 -2
  114. package/src/validation/features/roles-and-permissions.validation-messages.ts +10 -2
  115. package/src/validation/features/states.validation-messages.ts +14 -2
  116. package/src/validation/features/template-assignments.validation-messages.ts +21 -2
  117. package/src/validation/features/template-information.validation-messages.ts +47 -2
  118. package/src/validation/features/template-recurrence-settings.validation-messages.ts +38 -4
  119. package/src/validation/features/template-states.validation-messages.ts +14 -2
  120. package/src/validation/features/user-preferences.validation-messages.ts +9 -3
  121. package/src/validation/features/users.validation-messages.ts +18 -4
  122. package/src/validation/validation-message.formatter.ts +4 -6
  123. package/src/validation/validation-message.types.ts +36 -0
@@ -1,1506 +1,1839 @@
1
1
  export declare const VALIDATION_MESSAGES: {
2
2
  readonly ACCOUNT_CATEGORIES: {
3
- readonly INVALID_REQUEST: {
4
- readonly message: "Missing account category id in request";
5
- readonly affectedFields: readonly [];
6
- };
7
- readonly ID_DOES_NOT_EXIST: {
8
- readonly message: "Account category does not exist";
9
- readonly params: readonly ["id"];
10
- readonly affectedFields: readonly ["accountCategoryId"];
11
- };
12
- readonly NAME_ALREADY_EXISTS: {
13
- readonly message: "Account category with the same name '{name}' already exists";
14
- readonly params: readonly ["name"];
15
- readonly affectedFields: readonly ["accountCategory"];
16
- };
17
- readonly OPTION_IN_USE: {
18
- readonly message: "This option is currently in use and cannot be deleted.";
19
- readonly affectedFields: readonly [];
3
+ INVALID_REQUEST: {
4
+ severity: "error";
5
+ message: string;
6
+ affectedFields: never[];
7
+ };
8
+ ID_DOES_NOT_EXIST: {
9
+ severity: "error";
10
+ message: string;
11
+ params: string[];
12
+ affectedFields: string[];
13
+ };
14
+ NAME_ALREADY_EXISTS: {
15
+ severity: "error";
16
+ message: string;
17
+ params: string[];
18
+ affectedFields: string[];
19
+ };
20
+ OPTION_IN_USE: {
21
+ severity: "error";
22
+ message: string;
23
+ affectedFields: never[];
20
24
  };
21
25
  };
22
26
  readonly ACCOUNT_IDS: {
23
- readonly INVALID_REQUEST: {
24
- readonly message: "Missing account id identifier in request";
25
- readonly affectedFields: readonly [];
26
- };
27
- readonly ID_DOES_NOT_EXIST: {
28
- readonly message: "Account id does not exist";
29
- readonly params: readonly ["id"];
30
- readonly affectedFields: readonly ["accountId"];
31
- };
32
- readonly NAME_ALREADY_EXISTS: {
33
- readonly message: "Account id with the same name '{name}' already exists";
34
- readonly params: readonly ["name"];
35
- readonly affectedFields: readonly ["accountId"];
36
- };
37
- readonly ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
38
- readonly message: "Account category does not exist";
39
- readonly params: readonly ["id"];
40
- readonly affectedFields: readonly ["accountCategory"];
41
- };
42
- readonly OPTION_IN_USE: {
43
- readonly message: "This option is currently in use and cannot be deleted.";
44
- readonly affectedFields: readonly [];
27
+ INVALID_REQUEST: {
28
+ severity: "error";
29
+ message: string;
30
+ affectedFields: never[];
31
+ };
32
+ ID_DOES_NOT_EXIST: {
33
+ severity: "error";
34
+ message: string;
35
+ params: string[];
36
+ affectedFields: string[];
37
+ };
38
+ NAME_ALREADY_EXISTS: {
39
+ severity: "error";
40
+ message: string;
41
+ params: string[];
42
+ affectedFields: string[];
43
+ };
44
+ ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
45
+ severity: "error";
46
+ message: string;
47
+ params: string[];
48
+ affectedFields: string[];
49
+ };
50
+ OPTION_IN_USE: {
51
+ severity: "error";
52
+ message: string;
53
+ affectedFields: never[];
45
54
  };
46
55
  };
47
56
  readonly CLIENT_RECORDS_ADDRESSES: {
48
- readonly STATES_NOT_FOUND: {
49
- readonly message: "States do not exist";
50
- readonly params: readonly ["ids"];
51
- readonly affectedFields: readonly ["state"];
52
- };
53
- readonly INVALID_STATE_TYPE: {
54
- readonly message: "States are not of type 'State'";
55
- readonly params: readonly ["ids"];
56
- readonly affectedFields: readonly ["state"];
57
- };
58
- readonly CITIES_NOT_FOUND: {
59
- readonly message: "Cities do not exist";
60
- readonly params: readonly ["ids"];
61
- readonly affectedFields: readonly ["city"];
62
- };
63
- readonly INVALID_CITY_TYPE: {
64
- readonly message: "Cities are not of type 'City'";
65
- readonly params: readonly ["ids"];
66
- readonly affectedFields: readonly ["city"];
67
- };
68
- readonly ZIP_CODES_NOT_FOUND: {
69
- readonly message: "Zip codes do not exist";
70
- readonly params: readonly ["ids"];
71
- readonly affectedFields: readonly ["zip"];
72
- };
73
- readonly CONTACT_ROLES_NOT_FOUND: {
74
- readonly message: "Contact roles do not exist";
75
- readonly params: readonly ["ids"];
76
- readonly affectedFields: readonly ["contactRoleId"];
77
- };
78
- readonly CONTACT_TYPES_NOT_FOUND: {
79
- readonly message: "Contact types do not exist";
80
- readonly params: readonly ["ids"];
81
- readonly affectedFields: readonly ["contactTypeId"];
82
- };
83
- readonly LEGAL_ADDRESS_MUST_BE_PROVIDED: {
84
- readonly message: "The client must have a legal address. Please set the address type to 'Legal'.";
85
- readonly affectedFields: readonly ["addresses"];
86
- };
87
- readonly MULTIPLE_LEGAL_ADDRESSES_PROVIDED: {
88
- readonly message: "The client must have only one legal address. Please ensure only one address is set to 'Legal'.";
89
- readonly affectedFields: readonly ["addresses"];
90
- };
91
- readonly BILLING_ADDRESS_MUST_BE_PROVIDED: {
92
- readonly message: "The client must have a billing address. Please set the address type to 'Billing'.";
93
- readonly affectedFields: readonly ["addresses"];
94
- };
95
- readonly MULTIPLE_BILLING_ADDRESSES_PROVIDED: {
96
- readonly message: "The client must have only one billing address. Please ensure only one address is set to 'Billing'.";
97
- readonly affectedFields: readonly ["addresses"];
98
- };
99
- readonly PRIMARY_ADDRESS_MUST_BE_PROVIDED: {
100
- readonly message: "The client must have a primary address. Please set the address type to 'Primary'.";
101
- readonly affectedFields: readonly ["addresses"];
102
- };
103
- readonly MULTIPLE_PRIMARY_ADDRESSES_PROVIDED: {
104
- readonly message: "The client must have only one primary address. Please ensure only one address is set to 'Primary'.";
105
- readonly affectedFields: readonly ["addresses"];
57
+ STATES_NOT_FOUND: {
58
+ severity: "error";
59
+ message: string;
60
+ params: string[];
61
+ affectedFields: string[];
62
+ };
63
+ INVALID_STATE_TYPE: {
64
+ severity: "error";
65
+ message: string;
66
+ params: string[];
67
+ affectedFields: string[];
68
+ };
69
+ CITIES_NOT_FOUND: {
70
+ severity: "error";
71
+ message: string;
72
+ params: string[];
73
+ affectedFields: string[];
74
+ };
75
+ INVALID_CITY_TYPE: {
76
+ severity: "error";
77
+ message: string;
78
+ params: string[];
79
+ affectedFields: string[];
80
+ };
81
+ ZIP_CODES_NOT_FOUND: {
82
+ severity: "error";
83
+ message: string;
84
+ params: string[];
85
+ affectedFields: string[];
86
+ };
87
+ CONTACT_ROLES_NOT_FOUND: {
88
+ severity: "error";
89
+ message: string;
90
+ params: string[];
91
+ affectedFields: string[];
92
+ };
93
+ CONTACT_TYPES_NOT_FOUND: {
94
+ severity: "error";
95
+ message: string;
96
+ params: string[];
97
+ affectedFields: string[];
98
+ };
99
+ LEGAL_ADDRESS_MUST_BE_PROVIDED: {
100
+ severity: "error";
101
+ message: string;
102
+ affectedFields: string[];
103
+ };
104
+ MULTIPLE_LEGAL_ADDRESSES_PROVIDED: {
105
+ severity: "error";
106
+ message: string;
107
+ affectedFields: string[];
108
+ };
109
+ BILLING_ADDRESS_MUST_BE_PROVIDED: {
110
+ severity: "error";
111
+ message: string;
112
+ affectedFields: string[];
113
+ };
114
+ MULTIPLE_BILLING_ADDRESSES_PROVIDED: {
115
+ severity: "error";
116
+ message: string;
117
+ affectedFields: string[];
118
+ };
119
+ PRIMARY_ADDRESS_MUST_BE_PROVIDED: {
120
+ severity: "error";
121
+ message: string;
122
+ affectedFields: string[];
123
+ };
124
+ MULTIPLE_PRIMARY_ADDRESSES_PROVIDED: {
125
+ severity: "error";
126
+ message: string;
127
+ affectedFields: string[];
106
128
  };
107
129
  };
108
130
  readonly BUSINESS_ACTIVITIES: {
109
- readonly INVALID_REQUEST: {
110
- readonly message: "Missing business activity id in request.";
111
- readonly affectedFields: readonly [];
112
- };
113
- readonly ID_DOES_NOT_EXIST: {
114
- readonly message: "Business activity does not exist.";
115
- readonly params: readonly ["id"];
116
- readonly affectedFields: readonly ["businessActivityId"];
117
- };
118
- readonly NAME_ALREADY_EXISTS: {
119
- readonly message: "Business activity with the same name '{name}' already exists.";
120
- readonly params: readonly ["name"];
121
- readonly affectedFields: readonly ["bussinesActivity"];
122
- };
123
- readonly OPTION_IN_USE: {
124
- readonly message: "This option is currently in use and cannot be deleted.";
125
- readonly affectedFields: readonly [];
131
+ INVALID_REQUEST: {
132
+ severity: "error";
133
+ message: string;
134
+ affectedFields: never[];
135
+ };
136
+ ID_DOES_NOT_EXIST: {
137
+ severity: "error";
138
+ message: string;
139
+ params: string[];
140
+ affectedFields: string[];
141
+ };
142
+ NAME_ALREADY_EXISTS: {
143
+ severity: "error";
144
+ message: string;
145
+ params: string[];
146
+ affectedFields: string[];
147
+ };
148
+ OPTION_IN_USE: {
149
+ severity: "error";
150
+ message: string;
151
+ affectedFields: never[];
126
152
  };
127
153
  };
128
154
  readonly CLIENT_RECORDS_BANKS: {
129
- readonly INVALID_ROUTING_NUMBER: {
130
- readonly message: "Enter a valid routing number.";
131
- readonly affectedFields: readonly ["routingNumber"];
132
- };
133
- readonly INVALID_ACCOUNT_NUMBER: {
134
- readonly message: "Enter a valid account number.";
135
- readonly affectedFields: readonly ["accountNumber"];
136
- };
137
- readonly INVALID_DESCRIPTION: {
138
- readonly message: "There is another payment method with the same description. Please ensure all payment methods have different descriptions.";
139
- readonly affectedFields: readonly ["description"];
140
- };
141
- readonly NO_DEFAULT_PAYMENT_METHOD: {
142
- readonly message: "There must be at least one payment method marked as default. Please select a default payment method.";
143
- readonly affectedFields: readonly ["paymentMethods"];
144
- };
145
- readonly MULTIPLE_DEFAULT_PAYMENT_METHODS: {
146
- readonly message: "There can only be one default payment method. Please ensure only one payment method is marked as default.";
147
- readonly affectedFields: readonly ["paymentMethods"];
155
+ INVALID_ROUTING_NUMBER: {
156
+ severity: "error";
157
+ message: string;
158
+ affectedFields: string[];
159
+ };
160
+ INVALID_ACCOUNT_NUMBER: {
161
+ severity: "error";
162
+ message: string;
163
+ affectedFields: string[];
164
+ };
165
+ INVALID_DESCRIPTION: {
166
+ severity: "error";
167
+ message: string;
168
+ affectedFields: string[];
169
+ };
170
+ NO_DEFAULT_PAYMENT_METHOD: {
171
+ severity: "error";
172
+ message: string;
173
+ affectedFields: string[];
174
+ };
175
+ MULTIPLE_DEFAULT_PAYMENT_METHODS: {
176
+ severity: "error";
177
+ message: string;
178
+ affectedFields: string[];
148
179
  };
149
180
  };
150
181
  readonly CLIENT_RECORDS_CREDIT_CARDS: {
151
- readonly INVALID_EXPIRATION_DATE: {
152
- readonly message: "Enter a valid expiration date (i.e. 12/2024).";
153
- readonly affectedFields: readonly ["expDate"];
154
- };
155
- readonly INVALID_SECURITY_CODE: {
156
- readonly message: "Enter a valid security code (i.e. 1234).";
157
- readonly affectedFields: readonly ["securityCode"];
158
- };
159
- readonly INVALID_ACCOUNT_NUMBER: {
160
- readonly message: "Enter a valid account number.";
161
- readonly affectedFields: readonly ["accountNumber"];
162
- };
163
- readonly INVALID_DESCRIPTION: {
164
- readonly message: "There is another payment method with the same description. Please ensure all payment methods have different descriptions.";
165
- readonly affectedFields: readonly ["description"];
166
- };
167
- readonly NO_DEFAULT_PAYMENT_METHOD: {
168
- readonly message: "There must be at least one payment method marked as default. Please select a default payment method.";
169
- readonly affectedFields: readonly ["paymentMethods"];
170
- };
171
- readonly MULTIPLE_DEFAULT_PAYMENT_METHODS: {
172
- readonly message: "There can only be one default payment method. Please ensure only one payment method is marked as default.";
173
- readonly affectedFields: readonly ["paymentMethods"];
182
+ INVALID_EXPIRATION_DATE: {
183
+ severity: "error";
184
+ message: string;
185
+ affectedFields: string[];
186
+ };
187
+ INVALID_SECURITY_CODE: {
188
+ severity: "error";
189
+ message: string;
190
+ affectedFields: string[];
191
+ };
192
+ INVALID_ACCOUNT_NUMBER: {
193
+ severity: "error";
194
+ message: string;
195
+ affectedFields: string[];
196
+ };
197
+ INVALID_DESCRIPTION: {
198
+ severity: "error";
199
+ message: string;
200
+ affectedFields: string[];
201
+ };
202
+ NO_DEFAULT_PAYMENT_METHOD: {
203
+ severity: "error";
204
+ message: string;
205
+ affectedFields: string[];
206
+ };
207
+ MULTIPLE_DEFAULT_PAYMENT_METHODS: {
208
+ severity: "error";
209
+ message: string;
210
+ affectedFields: string[];
174
211
  };
175
212
  };
176
213
  readonly CLIENT_RECORDS_CONTACTS: {
177
- readonly CONTACT_ROLES_NOT_FOUND: {
178
- readonly message: "Contact roles do not exist";
179
- readonly params: readonly ["ids"];
180
- readonly affectedFields: readonly ["contact"];
181
- };
182
- readonly CONTACT_TYPES_NOT_FOUND: {
183
- readonly message: "Contact types do not exist";
184
- readonly params: readonly ["ids"];
185
- readonly affectedFields: readonly ["type"];
186
- };
187
- readonly LEGAL_CONTACT_MUST_BE_PROVIDED: {
188
- readonly message: "The client must have a legal contact. Please set the contact type to 'Legal'.";
189
- readonly affectedFields: readonly ["contacts"];
190
- };
191
- readonly MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
192
- readonly message: "The client must have only one legal contact. Please ensure only one contact is set to 'Legal'.";
193
- readonly affectedFields: readonly ["contacts"];
194
- };
195
- readonly BILLING_CONTACT_MUST_BE_PROVIDED: {
196
- readonly message: "The client must have a billing contact. Please set the contact type to 'Billing'.";
197
- readonly affectedFields: readonly ["contacts"];
198
- };
199
- readonly MULTIPLE_BILLING_CONTACTS_PROVIDED: {
200
- readonly message: "The client must have only one billing contact. Please ensure only one contact is set to 'Billing'.";
201
- readonly affectedFields: readonly ["contacts"];
202
- };
203
- readonly PRIMARY_CONTACT_MUST_BE_PROVIDED: {
204
- readonly message: "The client must have a primary contact. Please set the contact type to 'Primary'.";
205
- readonly affectedFields: readonly ["contacts"];
206
- };
207
- readonly MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
208
- readonly message: "The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.";
209
- readonly affectedFields: readonly ["contacts"];
214
+ CONTACT_ROLES_NOT_FOUND: {
215
+ severity: "error";
216
+ message: string;
217
+ params: string[];
218
+ affectedFields: string[];
219
+ };
220
+ CONTACT_TYPES_NOT_FOUND: {
221
+ severity: "error";
222
+ message: string;
223
+ params: string[];
224
+ affectedFields: string[];
225
+ };
226
+ LEGAL_CONTACT_MUST_BE_PROVIDED: {
227
+ severity: "error";
228
+ message: string;
229
+ affectedFields: string[];
230
+ };
231
+ MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
232
+ severity: "error";
233
+ message: string;
234
+ affectedFields: string[];
235
+ };
236
+ BILLING_CONTACT_MUST_BE_PROVIDED: {
237
+ severity: "error";
238
+ message: string;
239
+ affectedFields: string[];
240
+ };
241
+ MULTIPLE_BILLING_CONTACTS_PROVIDED: {
242
+ severity: "error";
243
+ message: string;
244
+ affectedFields: string[];
245
+ };
246
+ PRIMARY_CONTACT_MUST_BE_PROVIDED: {
247
+ severity: "error";
248
+ message: string;
249
+ affectedFields: string[];
250
+ };
251
+ MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
252
+ severity: "error";
253
+ message: string;
254
+ affectedFields: string[];
210
255
  };
211
256
  };
212
257
  readonly CLIENT_RECORDS_COMMISSION_DETAILS: {
213
- readonly INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
214
- readonly message: "If client is subject to commission, sales representative and commission rate must be provided.";
215
- readonly affectedFields: readonly ["subjectToCommission", "salesRepresentative", "commissionRate"];
216
- };
217
- readonly INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
218
- readonly message: "If client is not subject to commission, sales representative and commission rate must not be provided.";
219
- readonly affectedFields: readonly ["subjectToCommission", "salesRepresentative", "commissionRate"];
220
- };
221
- readonly SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
222
- readonly message: "Sales representative does not exist";
223
- readonly params: readonly ["id"];
224
- readonly affectedFields: readonly ["salesRepresentative"];
225
- };
226
- readonly COMISSION_RATE_TOO_LOW: {
227
- readonly message: "Enter a commission value greater than 0.0";
228
- readonly affectedFields: readonly ["commissionRate"];
229
- };
230
- readonly COMISSION_RATE_TOO_HIGH: {
231
- readonly message: "Enter a value less than 100%.";
232
- readonly affectedFields: readonly ["commissionRate"];
258
+ INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
259
+ severity: "error";
260
+ message: string;
261
+ affectedFields: string[];
262
+ };
263
+ INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
264
+ severity: "error";
265
+ message: string;
266
+ affectedFields: string[];
267
+ };
268
+ SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
269
+ severity: "error";
270
+ message: string;
271
+ params: string[];
272
+ affectedFields: string[];
273
+ };
274
+ COMISSION_RATE_TOO_LOW: {
275
+ severity: "error";
276
+ message: string;
277
+ affectedFields: string[];
278
+ };
279
+ COMISSION_RATE_TOO_HIGH: {
280
+ severity: "error";
281
+ message: string;
282
+ affectedFields: string[];
233
283
  };
234
284
  };
235
285
  readonly CLIENT_CURRENT_ENTITY_STATUS: {
236
- readonly INVALID_REQUEST: {
237
- readonly message: "Missing client id in request";
238
- readonly affectedFields: readonly [];
239
- };
240
- readonly ID_DOES_NOT_EXIST: {
241
- readonly message: "Client does not exist";
242
- readonly params: readonly ["id"];
243
- readonly affectedFields: readonly ["clientId"];
244
- };
245
- readonly ACCOUNT_ID_DOES_NOT_EXIST: {
246
- readonly message: "Account id does not exist";
247
- readonly params: readonly ["id"];
248
- readonly affectedFields: readonly ["accountId"];
249
- };
250
- readonly FILING_CATEGORY_ID_DOES_NOT_EXIST: {
251
- readonly message: "Filing category does not exist";
252
- readonly params: readonly ["id"];
253
- readonly affectedFields: readonly ["filingCategory"];
254
- };
255
- readonly BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
256
- readonly message: "Business activity does not exist";
257
- readonly params: readonly ["id"];
258
- readonly affectedFields: readonly ["businessActivity"];
259
- };
260
- readonly BILLING_TYPE_ID_DOES_NOT_EXIST: {
261
- readonly message: "Billing type does not exist";
262
- readonly params: readonly ["id"];
263
- readonly affectedFields: readonly ["billingTypeId"];
264
- };
265
- readonly CLIENT_WITH_SAME_FEDERAL_LEGAL_ID_EXISTS: {
266
- readonly message: "This federal legal ID is already in use. Please enter a different federal legal ID.";
267
- readonly affectedFields: readonly ["federalLegalId"];
268
- };
269
- readonly INVALID_CLIENT_ACTIVITY_STATUS: {
270
- 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'.";
271
- readonly affectedFields: readonly ["isActive", "isClient"];
272
- };
273
- readonly INVALID_FEDERAL_LEGAL_ID: {
274
- readonly message: "Enter a valid federal legal ID {legalIdType} (e.g. {legalIdValue})";
275
- readonly params: readonly ["legalIdType", "legalIdValue"];
276
- readonly affectedFields: readonly ["federalLegalId"];
277
- };
278
- readonly NAME_ALREADY_EXISTS: {
279
- readonly message: "Client with the same name '{name}' already exists";
280
- readonly params: readonly ["name"];
281
- readonly affectedFields: readonly ["name"];
282
- };
283
- readonly NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
284
- readonly message: "Adjust the close date to be after the date established.";
285
- readonly affectedFields: readonly ["dateEstablished", "closeDate"];
286
- };
287
- readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
288
- readonly message: "Choose an Account ID";
289
- readonly affectedFields: readonly ["accountId"];
290
- };
291
- readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
292
- readonly message: "Choose a Business Activity";
293
- readonly affectedFields: readonly ["businessActivity"];
294
- };
295
- readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
296
- readonly message: "Choose a Billing Type";
297
- readonly affectedFields: readonly ["billingTypeId"];
298
- };
299
- readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
300
- readonly message: "Choose a Filing Category";
301
- readonly affectedFields: readonly ["filingCategory"];
302
- };
303
- readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
304
- readonly message: "Create a Contact - One contact needs to have been saved to this client";
305
- readonly affectedFields: readonly ["contacts"];
306
- };
307
- readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
308
- readonly message: "Create an Address - One address needs to have been saved to this client";
309
- readonly affectedFields: readonly ["addresses"];
310
- };
311
- readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_SERVICE_STARTING_DATE: {
312
- readonly message: "Provide a Service Starting Date";
313
- readonly affectedFields: readonly ["serviceStartingDate"];
314
- };
315
- readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_INITIAL_FILING_DATE: {
316
- readonly message: "Provide an Initial Filing Date";
317
- readonly affectedFields: readonly ["initialFilingDate"];
318
- };
319
- readonly CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
320
- readonly message: "This client cannot be deleted because it has client relationships associated";
321
- readonly affectedFields: readonly [];
322
- };
323
- readonly CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
324
- readonly message: "This client cannot be deleted because it has client project templates associated";
325
- readonly affectedFields: readonly [];
326
- };
327
- readonly CLIENT_COULD_NOT_BE_DELETED_ADDITIONAL_INFORMATION_EXIST: {
328
- readonly message: "This client cannot be deleted because it has additional information associated";
329
- readonly affectedFields: readonly [];
330
- };
331
- readonly CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
332
- readonly message: "This client cannot be deleted because it has bank accounts associated";
333
- readonly affectedFields: readonly [];
334
- };
335
- readonly CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
336
- readonly message: "This client cannot be deleted because it has credit cards associated";
337
- readonly affectedFields: readonly [];
338
- };
339
- readonly CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
340
- readonly message: "This client cannot be deleted because it has worklogs associated";
341
- readonly affectedFields: readonly [];
342
- };
343
- readonly CLIENT_COULD_NOT_BE_DELETED_INVOICES_EXIST: {
344
- readonly message: "This client cannot be deleted because it has invoices associated";
345
- readonly affectedFields: readonly [];
346
- };
347
- readonly CLIENT_COULD_NOT_BE_DELETED_PAYMENTS_EXIST: {
348
- readonly message: "This client cannot be deleted because it has payments associated";
349
- readonly affectedFields: readonly [];
350
- };
351
- readonly CLIENT_COULD_NOT_BE_DELETED_DOCUMENTS_EXIST: {
352
- readonly message: "This client cannot be deleted because it has documents associated";
353
- readonly affectedFields: readonly [];
354
- };
355
- readonly CLIENT_COULD_NOT_BE_DELETED_JOURNALS_EXIST: {
356
- readonly message: "This client cannot be deleted because it has journals associated";
357
- readonly affectedFields: readonly [];
358
- };
359
- readonly CLIENT_COULD_NOT_BE_DELETED_FUTURES_EXIST: {
360
- readonly message: "This client cannot be deleted because it has futures associated";
361
- readonly affectedFields: readonly [];
362
- };
363
- readonly CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
364
- readonly message: "This client cannot be deleted because it has addresses associated";
365
- readonly affectedFields: readonly [];
366
- };
367
- readonly CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
368
- readonly message: "This client cannot be deleted because it has contacts associated";
369
- readonly affectedFields: readonly [];
370
- };
371
- readonly INITIAL_FILING_DATE_BEFORE_DATE_ESTABLISHED: {
372
- readonly message: "Initial filing date cannot be before date established {dateEstablished}. Please adjust the dates to continue.";
373
- readonly params: readonly ["dateEstablished"];
374
- readonly affectedFields: readonly ["initialFilingDate"];
375
- };
376
- readonly FINAL_FILING_DATE_BEFORE_INITIAL_FILING_DATE: {
377
- readonly message: "Final filing date cannot be before initial filing date {initialFilingDate}. Please adjust the dates to continue.";
378
- readonly params: readonly ["initialFilingDate"];
379
- readonly affectedFields: readonly ["finalFilingDate"];
380
- };
381
- readonly FINAL_FILING_DATE_REQUIRED: {
382
- readonly message: "Final filing date is required when initial filing date and close date are both provided.";
383
- readonly affectedFields: readonly ["finalFilingDate"];
384
- };
385
- readonly SERVICE_ENDING_DATE_BEFORE_SERVICE_STARTING_DATE: {
386
- readonly message: "Service ending date cannot be before service starting date {serviceStartingDate}. Please adjust the dates to continue.";
387
- readonly params: readonly ["serviceStartingDate"];
388
- readonly affectedFields: readonly ["serviceEndingDate"];
389
- };
390
- readonly SERVICE_ENDING_DATE_REQUIRED: {
391
- readonly message: "{clientName} has been serviced since {serviceStartingDate} and is no longer our client. Please enter the service ending date.";
392
- readonly params: readonly ["clientName", "serviceStartingDate"];
393
- readonly affectedFields: readonly ["serviceEndingDate"];
286
+ INVALID_REQUEST: {
287
+ severity: "error";
288
+ message: string;
289
+ affectedFields: never[];
290
+ };
291
+ ID_DOES_NOT_EXIST: {
292
+ severity: "error";
293
+ message: string;
294
+ params: string[];
295
+ affectedFields: string[];
296
+ };
297
+ ACCOUNT_ID_DOES_NOT_EXIST: {
298
+ severity: "error";
299
+ message: string;
300
+ params: string[];
301
+ affectedFields: string[];
302
+ };
303
+ FILING_CATEGORY_ID_DOES_NOT_EXIST: {
304
+ severity: "error";
305
+ message: string;
306
+ params: string[];
307
+ affectedFields: string[];
308
+ };
309
+ BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
310
+ severity: "error";
311
+ message: string;
312
+ params: string[];
313
+ affectedFields: string[];
314
+ };
315
+ BILLING_TYPE_ID_DOES_NOT_EXIST: {
316
+ severity: "error";
317
+ message: string;
318
+ params: string[];
319
+ affectedFields: string[];
320
+ };
321
+ CLIENT_WITH_SAME_FEDERAL_LEGAL_ID_EXISTS: {
322
+ severity: "error";
323
+ message: string;
324
+ affectedFields: string[];
325
+ };
326
+ INVALID_CLIENT_ACTIVITY_STATUS: {
327
+ severity: "error";
328
+ message: string;
329
+ affectedFields: string[];
330
+ };
331
+ INVALID_FEDERAL_LEGAL_ID: {
332
+ severity: "error";
333
+ message: string;
334
+ params: string[];
335
+ affectedFields: string[];
336
+ };
337
+ NAME_ALREADY_EXISTS: {
338
+ severity: "error";
339
+ message: string;
340
+ params: string[];
341
+ affectedFields: string[];
342
+ };
343
+ NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
344
+ severity: "error";
345
+ message: string;
346
+ affectedFields: string[];
347
+ };
348
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
349
+ severity: "error";
350
+ message: string;
351
+ affectedFields: string[];
352
+ };
353
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
354
+ severity: "error";
355
+ message: string;
356
+ affectedFields: string[];
357
+ };
358
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
359
+ severity: "error";
360
+ message: string;
361
+ affectedFields: string[];
362
+ };
363
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
364
+ severity: "error";
365
+ message: string;
366
+ affectedFields: string[];
367
+ };
368
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
369
+ severity: "error";
370
+ message: string;
371
+ affectedFields: string[];
372
+ };
373
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
374
+ severity: "error";
375
+ message: string;
376
+ affectedFields: string[];
377
+ };
378
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_SERVICE_STARTING_DATE: {
379
+ severity: "error";
380
+ message: string;
381
+ affectedFields: string[];
382
+ };
383
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_INITIAL_FILING_DATE: {
384
+ severity: "error";
385
+ message: string;
386
+ affectedFields: string[];
387
+ };
388
+ CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
389
+ severity: "error";
390
+ message: string;
391
+ affectedFields: never[];
392
+ };
393
+ CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
394
+ severity: "error";
395
+ message: string;
396
+ affectedFields: never[];
397
+ };
398
+ CLIENT_COULD_NOT_BE_DELETED_ADDITIONAL_INFORMATION_EXIST: {
399
+ severity: "error";
400
+ message: string;
401
+ affectedFields: never[];
402
+ };
403
+ CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
404
+ severity: "error";
405
+ message: string;
406
+ affectedFields: never[];
407
+ };
408
+ CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
409
+ severity: "error";
410
+ message: string;
411
+ affectedFields: never[];
412
+ };
413
+ CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
414
+ severity: "error";
415
+ message: string;
416
+ affectedFields: never[];
417
+ };
418
+ CLIENT_COULD_NOT_BE_DELETED_INVOICES_EXIST: {
419
+ severity: "error";
420
+ message: string;
421
+ affectedFields: never[];
422
+ };
423
+ CLIENT_COULD_NOT_BE_DELETED_PAYMENTS_EXIST: {
424
+ severity: "error";
425
+ message: string;
426
+ affectedFields: never[];
427
+ };
428
+ CLIENT_COULD_NOT_BE_DELETED_DOCUMENTS_EXIST: {
429
+ severity: "error";
430
+ message: string;
431
+ affectedFields: never[];
432
+ };
433
+ CLIENT_COULD_NOT_BE_DELETED_JOURNALS_EXIST: {
434
+ severity: "error";
435
+ message: string;
436
+ affectedFields: never[];
437
+ };
438
+ CLIENT_COULD_NOT_BE_DELETED_FUTURES_EXIST: {
439
+ severity: "error";
440
+ message: string;
441
+ affectedFields: never[];
442
+ };
443
+ CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
444
+ severity: "error";
445
+ message: string;
446
+ affectedFields: never[];
447
+ };
448
+ CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
449
+ severity: "error";
450
+ message: string;
451
+ affectedFields: never[];
452
+ };
453
+ INITIAL_FILING_DATE_BEFORE_DATE_ESTABLISHED: {
454
+ severity: "error";
455
+ message: string;
456
+ params: string[];
457
+ affectedFields: string[];
458
+ };
459
+ FINAL_FILING_DATE_BEFORE_INITIAL_FILING_DATE: {
460
+ severity: "error";
461
+ message: string;
462
+ params: string[];
463
+ affectedFields: string[];
464
+ };
465
+ FINAL_FILING_DATE_REQUIRED: {
466
+ severity: "error";
467
+ message: string;
468
+ affectedFields: string[];
469
+ };
470
+ SERVICE_ENDING_DATE_BEFORE_SERVICE_STARTING_DATE: {
471
+ severity: "error";
472
+ message: string;
473
+ params: string[];
474
+ affectedFields: string[];
475
+ };
476
+ SERVICE_ENDING_DATE_REQUIRED: {
477
+ severity: "error";
478
+ message: string;
479
+ params: string[];
480
+ affectedFields: string[];
394
481
  };
395
482
  };
396
483
  readonly CLIENT_RECORDS_ENTITY_TYPES: {
397
- readonly ENTITY_TYPE_ID_DOES_NOT_EXIST: {
398
- readonly message: "Entity type does not exist";
399
- readonly params: readonly ["id"];
400
- readonly affectedFields: readonly ["entityType"];
401
- };
402
- readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
403
- 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.";
404
- readonly params: readonly ["clientDateEstablished", "entityType", "entityTypeStartingDate"];
405
- readonly affectedFields: readonly ["dateEstablished", "entityType"];
406
- };
407
- readonly NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
408
- 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.";
409
- readonly params: readonly ["clientCloseDate", "entityType", "entityTypeStartingDate"];
410
- readonly affectedFields: readonly ["closeDate", "entityType"];
411
- };
412
- readonly ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
413
- readonly message: "Current Entity Type Starting Date cannot be Empty";
414
- readonly affectedFields: readonly ["entityTypeStartingDate"];
415
- };
416
- readonly NOT_ALIGNED_ENTITY_TYPE_STARTING_ENDING_DATE: {
417
- readonly message: "Entity type starting date needs to be before the ending date";
418
- readonly affectedFields: readonly ["entityTypeStartingDate", "entityTypeEndingDate"];
419
- };
420
- readonly ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
421
- readonly message: "Entity types do not exist";
422
- readonly params: readonly ["ids"];
423
- readonly affectedFields: readonly ["entityType"];
424
- };
425
- readonly AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
426
- readonly message: "At least one entity type should exist";
427
- readonly affectedFields: readonly ["entityType"];
428
- };
429
- readonly ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
430
- readonly message: "Starting date for {entityType} cannot be empty";
431
- readonly params: readonly ["entityType"];
432
- readonly affectedFields: readonly ["entityTypeStartingDate"];
433
- };
434
- readonly NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
435
- readonly message: "The ending date for {entityType} must be after its starting date";
436
- readonly params: readonly ["entityType"];
437
- readonly affectedFields: readonly ["entityTypeStartingDate", "entityTypeEndingDate"];
438
- };
439
- readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPES_STARTING_DATE: {
440
- readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
441
- readonly params: readonly ["clientStartDate"];
442
- readonly affectedFields: readonly ["entityTypeStartingDate", "dateEstablished"];
443
- };
444
- readonly NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
445
- readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
446
- readonly params: readonly ["clientCloseDate"];
447
- readonly affectedFields: readonly ["entityTypeStartingDate", "closeDate"];
448
- };
449
- readonly ENTITY_TYPES_DATE_GAP_DETECTED: {
450
- 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.";
451
- readonly params: readonly ["currentEntityType", "currentEntityTypeEndDate", "nextEntityType", "nextEntityTypeStartDate"];
452
- readonly affectedFields: readonly ["entityType"];
453
- };
454
- readonly ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
455
- 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}. ";
456
- readonly params: readonly ["entityType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
457
- readonly affectedFields: readonly ["entityType"];
458
- };
459
- readonly ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
460
- 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}.";
461
- readonly params: readonly ["dateEstablished", "earliestEntityType", "earliestEntityTypeStartDate"];
462
- readonly affectedFields: readonly ["entityType", "dateEstablished"];
463
- };
464
- readonly ENTITY_TYPES_DATES_OVERLAP: {
465
- 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.";
466
- readonly params: readonly ["entityType", "startDate1", "endDate1", "startDate2", "endDate2"];
467
- readonly affectedFields: readonly ["entityType"];
468
- };
469
- readonly ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
470
- 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.";
471
- readonly affectedFields: readonly ["entityTypeEndingDate"];
472
- };
473
- readonly CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
474
- readonly message: "The current entity type cannot have an end date. Please remove the end date for this state.";
475
- readonly affectedFields: readonly ["entityTypeEndingDate"];
484
+ ENTITY_TYPE_ID_DOES_NOT_EXIST: {
485
+ severity: "error";
486
+ message: string;
487
+ params: string[];
488
+ affectedFields: string[];
489
+ };
490
+ NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
491
+ severity: "error";
492
+ message: string;
493
+ params: string[];
494
+ affectedFields: string[];
495
+ };
496
+ NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
497
+ severity: "error";
498
+ message: string;
499
+ params: string[];
500
+ affectedFields: string[];
501
+ };
502
+ ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
503
+ severity: "error";
504
+ message: string;
505
+ affectedFields: string[];
506
+ };
507
+ NOT_ALIGNED_ENTITY_TYPE_STARTING_ENDING_DATE: {
508
+ severity: "error";
509
+ message: string;
510
+ affectedFields: string[];
511
+ };
512
+ ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
513
+ severity: "error";
514
+ message: string;
515
+ params: string[];
516
+ affectedFields: string[];
517
+ };
518
+ AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
519
+ severity: "error";
520
+ message: string;
521
+ affectedFields: string[];
522
+ };
523
+ ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
524
+ severity: "error";
525
+ message: string;
526
+ params: string[];
527
+ affectedFields: string[];
528
+ };
529
+ NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
530
+ severity: "error";
531
+ message: string;
532
+ params: string[];
533
+ affectedFields: string[];
534
+ };
535
+ NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPES_STARTING_DATE: {
536
+ severity: "error";
537
+ message: string;
538
+ params: string[];
539
+ affectedFields: string[];
540
+ };
541
+ NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
542
+ severity: "error";
543
+ message: string;
544
+ params: string[];
545
+ affectedFields: string[];
546
+ };
547
+ ENTITY_TYPES_DATE_GAP_DETECTED: {
548
+ severity: "error";
549
+ message: string;
550
+ params: string[];
551
+ affectedFields: string[];
552
+ };
553
+ ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
554
+ severity: "error";
555
+ message: string;
556
+ params: string[];
557
+ affectedFields: string[];
558
+ };
559
+ ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
560
+ severity: "error";
561
+ message: string;
562
+ params: string[];
563
+ affectedFields: string[];
564
+ };
565
+ ENTITY_TYPES_DATES_OVERLAP: {
566
+ severity: "error";
567
+ message: string;
568
+ params: string[];
569
+ affectedFields: string[];
570
+ };
571
+ ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
572
+ severity: "error";
573
+ message: string;
574
+ affectedFields: string[];
575
+ };
576
+ CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
577
+ severity: "error";
578
+ message: string;
579
+ affectedFields: string[];
476
580
  };
477
581
  };
478
582
  readonly CLIENT_RECORDS_FILING_STATUSES: {
479
- readonly FILING_STATUS_ID_DOES_NOT_EXIST: {
480
- readonly message: "Sub/Parent status does not exist";
481
- readonly params: readonly ["id"];
482
- readonly affectedFields: readonly ["filingStatus"];
483
- };
484
- readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
485
- readonly message: "The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.";
486
- readonly params: readonly ["clientDateEstablished", "filingStatus", "filingStatusStartingDate"];
487
- readonly affectedFields: readonly ["dateEstablished", "filingStatus"];
488
- };
489
- readonly NOT_ALIGNED_CLOSE_DATE_FILING_STATUS_STARTING_DATE: {
490
- readonly message: "One or more Sub/Parent status have a start date which is after the client's close date of {clientCloseDate}. {filingStatus}, starting {filingStatusStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.";
491
- readonly params: readonly ["clientCloseDate", "filingStatus", "filingStatusStartingDate"];
492
- readonly affectedFields: readonly ["closeDate", "filingStatus"];
493
- };
494
- readonly FILING_STATUS_STARTING_DATE_NOT_POPULATED: {
495
- readonly message: "Current Sub/Parent status Starting Date cannot be Empty";
496
- readonly affectedFields: readonly ["filingStatusStartingDate"];
497
- };
498
- readonly NOT_ALIGNED_FILING_STATUS_STARTING_ENDING_DATE: {
499
- readonly message: "Sub/Parent status starting date needs to be before the ending date";
500
- readonly affectedFields: readonly ["filingStatusStartingDate", "filingStatusEndingDate"];
501
- };
502
- readonly FILING_STATUSES_IDS_DOES_NOT_EXIST: {
503
- readonly message: "Sub/Parent status do not exist";
504
- readonly params: readonly ["ids"];
505
- readonly affectedFields: readonly ["filingStatus"];
506
- };
507
- readonly AT_LEAST_ONE_FILING_STATUS_SHOULD_EXIST: {
508
- readonly message: "At least one Sub/Parent status should exist";
509
- readonly affectedFields: readonly ["filingStatus"];
510
- };
511
- readonly FILING_STATUSES_STARTING_DATE_NOT_POPULATED: {
512
- readonly message: "Starting date for {filingStatus} cannot be empty";
513
- readonly params: readonly ["filingStatus"];
514
- readonly affectedFields: readonly ["filingStatusStartingDate"];
515
- };
516
- readonly NOT_ALIGNED_FILING_STATUSES_STARTING_ENDING_DATE: {
517
- readonly message: "The ending date for {filingStatus} must be after its starting date";
518
- readonly params: readonly ["filingStatus"];
519
- readonly affectedFields: readonly ["filingStatusStartingDate", "filingStatusEndingDate"];
520
- };
521
- readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUSES_STARTING_DATE: {
522
- readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
523
- readonly params: readonly ["clientStartDate"];
524
- readonly affectedFields: readonly ["filingStatusStartingDate", "dateEstablished"];
525
- };
526
- readonly NOT_ALIGNED_CLOSE_DATE_FILING_STATUSES_STARTING_DATE: {
527
- readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
528
- readonly params: readonly ["clientCloseDate"];
529
- readonly affectedFields: readonly ["filingStatusStartingDate", "closeDate"];
530
- };
531
- readonly FILING_STATUSES_DATE_GAP_DETECTED: {
532
- readonly message: "There is a gap in the timeframes between {currentFilingStatus}, ending {currentFilingStatusEndDate}, and {nextFilingStatus}, starting {nextFilingStatusStartDate}. Please adjust the dates to fill this gap.";
533
- readonly params: readonly ["currentFilingStatus", "currentFilingStatusEndDate", "nextFilingStatus", "nextFilingStatusStartDate"];
534
- readonly affectedFields: readonly ["filingStatus"];
535
- };
536
- readonly FILING_STATUSES_CONSECUTIVE_DUPLICATES_DETECTED: {
537
- readonly message: "There are two entries for {filingStatus} with timeframes that immediately follow each other. {filingStatus} ending {firstPeriodEnd}, and {filingStatus} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingStatus}. ";
538
- readonly params: readonly ["filingStatus", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
539
- readonly affectedFields: readonly ["filingStatus"];
540
- };
541
- readonly FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
542
- readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start date of the first Sub/Parent status ({earliestFilingStatusStartDate}). Please ensure that the status of one Sub/Parent status matches the client's date established.";
543
- readonly params: readonly ["dateEstablished", "earliestFilingStatusStartDate"];
544
- readonly affectedFields: readonly ["filingStatus", "dateEstablished"];
545
- };
546
- readonly FILING_STATUSES_DATES_OVERLAP: {
547
- readonly message: "The client already has {filingStatus} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
548
- readonly params: readonly ["filingStatus", "startDate1", "endDate1", "startDate2", "endDate2"];
549
- readonly affectedFields: readonly ["filingStatus"];
550
- };
551
- readonly ALL_NON_LAST_FILING_STATUSES_REQUIRE_ENDING_DATE: {
552
- readonly message: "Only the last Sub/Parent status can be open without an end date. Add an ending date to the existing Sub/Parent status before adding a start date for a new Sub/Parent status.";
553
- readonly affectedFields: readonly ["filingStatusEndingDate"];
554
- };
555
- readonly CURRENT_FILING_STATUS_CANNOT_HAVE_ENDING_DATE: {
556
- readonly message: "The current Sub/Parent status cannot have an end date. Please remove the end date for this state.";
557
- readonly affectedFields: readonly ["filingStatusEndingDate"];
583
+ FILING_STATUS_ID_DOES_NOT_EXIST: {
584
+ severity: "error";
585
+ message: string;
586
+ params: string[];
587
+ affectedFields: string[];
588
+ };
589
+ NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
590
+ severity: "error";
591
+ message: string;
592
+ params: string[];
593
+ affectedFields: string[];
594
+ };
595
+ NOT_ALIGNED_CLOSE_DATE_FILING_STATUS_STARTING_DATE: {
596
+ severity: "error";
597
+ message: string;
598
+ params: string[];
599
+ affectedFields: string[];
600
+ };
601
+ FILING_STATUS_STARTING_DATE_NOT_POPULATED: {
602
+ severity: "error";
603
+ message: string;
604
+ affectedFields: string[];
605
+ };
606
+ NOT_ALIGNED_FILING_STATUS_STARTING_ENDING_DATE: {
607
+ severity: "error";
608
+ message: string;
609
+ affectedFields: string[];
610
+ };
611
+ FILING_STATUSES_IDS_DOES_NOT_EXIST: {
612
+ severity: "error";
613
+ message: string;
614
+ params: string[];
615
+ affectedFields: string[];
616
+ };
617
+ AT_LEAST_ONE_FILING_STATUS_SHOULD_EXIST: {
618
+ severity: "error";
619
+ message: string;
620
+ affectedFields: string[];
621
+ };
622
+ FILING_STATUSES_STARTING_DATE_NOT_POPULATED: {
623
+ severity: "error";
624
+ message: string;
625
+ params: string[];
626
+ affectedFields: string[];
627
+ };
628
+ NOT_ALIGNED_FILING_STATUSES_STARTING_ENDING_DATE: {
629
+ severity: "error";
630
+ message: string;
631
+ params: string[];
632
+ affectedFields: string[];
633
+ };
634
+ NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUSES_STARTING_DATE: {
635
+ severity: "error";
636
+ message: string;
637
+ params: string[];
638
+ affectedFields: string[];
639
+ };
640
+ NOT_ALIGNED_CLOSE_DATE_FILING_STATUSES_STARTING_DATE: {
641
+ severity: "error";
642
+ message: string;
643
+ params: string[];
644
+ affectedFields: string[];
645
+ };
646
+ FILING_STATUSES_DATE_GAP_DETECTED: {
647
+ severity: "error";
648
+ message: string;
649
+ params: string[];
650
+ affectedFields: string[];
651
+ };
652
+ FILING_STATUSES_CONSECUTIVE_DUPLICATES_DETECTED: {
653
+ severity: "error";
654
+ message: string;
655
+ params: string[];
656
+ affectedFields: string[];
657
+ };
658
+ FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
659
+ severity: "error";
660
+ message: string;
661
+ params: string[];
662
+ affectedFields: string[];
663
+ };
664
+ FILING_STATUSES_DATES_OVERLAP: {
665
+ severity: "error";
666
+ message: string;
667
+ params: string[];
668
+ affectedFields: string[];
669
+ };
670
+ ALL_NON_LAST_FILING_STATUSES_REQUIRE_ENDING_DATE: {
671
+ severity: "error";
672
+ message: string;
673
+ affectedFields: string[];
674
+ };
675
+ CURRENT_FILING_STATUS_CANNOT_HAVE_ENDING_DATE: {
676
+ severity: "error";
677
+ message: string;
678
+ affectedFields: string[];
558
679
  };
559
680
  };
560
681
  readonly CLIENT_RECORDS_ENTITY_STATES: {
561
- readonly STATE_ID_DOES_NOT_EXIST: {
562
- readonly message: "State does not exist";
563
- readonly params: readonly ["id"];
564
- readonly affectedFields: readonly ["state"];
565
- };
566
- readonly NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
567
- 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.";
568
- readonly params: readonly ["clientDateEstablished", "domesticState", "domesticStateStartingDate"];
569
- readonly affectedFields: readonly ["dateEstablished", "domesticState"];
570
- };
571
- readonly NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
572
- 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.";
573
- readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
574
- readonly affectedFields: readonly ["closeDate", "domesticState"];
575
- };
576
- readonly DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
577
- readonly message: "Current Domestic State Starting Date cannot be Empty";
578
- readonly affectedFields: readonly ["stateStartingDate"];
579
- };
580
- readonly STATES_IDS_DOES_NOT_EXIST: {
581
- readonly message: "States do not exist";
582
- readonly params: readonly ["ids"];
583
- readonly affectedFields: readonly ["state"];
584
- };
585
- readonly RESIDENCE_TYPE_DOES_NOT_EXIST: {
586
- readonly message: "Residence type does not exist";
587
- readonly params: readonly ["ids"];
588
- readonly affectedFields: readonly ["residence"];
589
- };
590
- readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
591
- readonly message: "At least one domestic state should exist";
592
- readonly affectedFields: readonly ["domesticState"];
593
- };
594
- readonly STATES_STARTING_DATE_NOT_POPULATED: {
595
- readonly message: "Starting date for {state} cannot be empty";
596
- readonly params: readonly ["state"];
597
- readonly affectedFields: readonly ["stateStartingDate"];
598
- };
599
- readonly NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
600
- readonly message: "The ending date for {state} must be after its starting date";
601
- readonly params: readonly ["state"];
602
- readonly affectedFields: readonly ["stateStartingDate", "stateEndingDate"];
603
- };
604
- readonly NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
605
- readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
606
- readonly params: readonly ["clientStartDate"];
607
- readonly affectedFields: readonly ["stateStartingDate", "dateEstablished"];
608
- };
609
- readonly NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
610
- readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
611
- readonly params: readonly ["clientCloseDate"];
612
- readonly affectedFields: readonly ["stateStartingDate", "closeDate"];
613
- };
614
- readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
615
- 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.";
616
- readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
617
- readonly affectedFields: readonly ["domesticState"];
618
- };
619
- readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
620
- 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}. ";
621
- readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
622
- readonly affectedFields: readonly ["domesticState"];
623
- };
624
- readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
625
- 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}.";
626
- readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
627
- readonly affectedFields: readonly ["domesticState", "dateEstablished"];
628
- };
629
- readonly STATES_DATES_OVERLAP: {
630
- 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.";
631
- readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
632
- readonly affectedFields: readonly ["domesticState"];
633
- };
634
- readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
635
- 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.";
636
- readonly affectedFields: readonly ["stateEndingDate"];
637
- };
638
- readonly CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
639
- readonly message: "The current domestic state cannot have an end date. Please remove the end date for this state.";
640
- readonly affectedFields: readonly ["stateEndingDate"];
682
+ STATE_ID_DOES_NOT_EXIST: {
683
+ severity: "error";
684
+ message: string;
685
+ params: string[];
686
+ affectedFields: string[];
687
+ };
688
+ NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
689
+ severity: "error";
690
+ message: string;
691
+ params: string[];
692
+ affectedFields: string[];
693
+ };
694
+ NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
695
+ severity: "error";
696
+ message: string;
697
+ params: string[];
698
+ affectedFields: string[];
699
+ };
700
+ DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
701
+ severity: "error";
702
+ message: string;
703
+ affectedFields: string[];
704
+ };
705
+ STATES_IDS_DOES_NOT_EXIST: {
706
+ severity: "error";
707
+ message: string;
708
+ params: string[];
709
+ affectedFields: string[];
710
+ };
711
+ RESIDENCE_TYPE_DOES_NOT_EXIST: {
712
+ severity: "error";
713
+ message: string;
714
+ params: string[];
715
+ affectedFields: string[];
716
+ };
717
+ AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
718
+ severity: "error";
719
+ message: string;
720
+ affectedFields: string[];
721
+ };
722
+ STATES_STARTING_DATE_NOT_POPULATED: {
723
+ severity: "error";
724
+ message: string;
725
+ params: string[];
726
+ affectedFields: string[];
727
+ };
728
+ NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
729
+ severity: "error";
730
+ message: string;
731
+ params: string[];
732
+ affectedFields: string[];
733
+ };
734
+ NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
735
+ severity: "error";
736
+ message: string;
737
+ params: string[];
738
+ affectedFields: string[];
739
+ };
740
+ NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
741
+ severity: "error";
742
+ message: string;
743
+ params: string[];
744
+ affectedFields: string[];
745
+ };
746
+ DOMESTIC_STATES_DATE_GAP_DETECTED: {
747
+ severity: "error";
748
+ message: string;
749
+ params: string[];
750
+ affectedFields: string[];
751
+ };
752
+ STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
753
+ severity: "error";
754
+ message: string;
755
+ params: string[];
756
+ affectedFields: string[];
757
+ };
758
+ DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
759
+ severity: "error";
760
+ message: string;
761
+ params: string[];
762
+ affectedFields: string[];
763
+ };
764
+ STATES_DATES_OVERLAP: {
765
+ severity: "error";
766
+ message: string;
767
+ params: string[];
768
+ affectedFields: string[];
769
+ };
770
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
771
+ severity: "error";
772
+ message: string;
773
+ affectedFields: string[];
774
+ };
775
+ CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
776
+ severity: "error";
777
+ message: string;
778
+ affectedFields: string[];
641
779
  };
642
780
  };
643
781
  readonly CLIENT_RELATIONSHIPS_COMMON: {
644
- readonly CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
645
- readonly message: "A client cannot have a relationship with itself.";
646
- readonly affectedFields: readonly ["relatedClient"];
647
- };
648
- readonly INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
649
- readonly message: "{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.";
650
- readonly params: readonly ["clientName", "entityType", "relationshipType"];
651
- readonly affectedFields: readonly ["relationshipType"];
652
- };
653
- readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
654
- readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
655
- readonly params: readonly ["clientName", "clientDateEstablished"];
656
- readonly affectedFields: readonly ["startingDate"];
657
- };
658
- readonly STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
659
- readonly message: "This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.";
660
- readonly params: readonly ["clientName", "clientCloseDate"];
661
- readonly affectedFields: readonly ["startingDate"];
662
- };
663
- readonly STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
664
- readonly message: "This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.";
665
- readonly params: readonly ["relatedClientName", "relatedClientDateEstablished"];
666
- readonly affectedFields: readonly ["startingDate"];
667
- };
668
- readonly STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
669
- readonly message: "This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.";
670
- readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
671
- readonly affectedFields: readonly ["startingDate"];
672
- };
673
- readonly ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
674
- readonly message: "Please update the relationship ending date to be after the starting date, {startingDate}.";
675
- readonly params: readonly ["startingDate"];
676
- readonly affectedFields: readonly ["endingDate"];
677
- };
678
- readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
679
- readonly message: "{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.";
680
- readonly params: readonly ["clientName", "clientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
681
- readonly affectedFields: readonly ["endingDate"];
682
- };
683
- readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
684
- readonly message: "{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.";
685
- readonly params: readonly ["relatedClientName", "relatedClientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
686
- readonly affectedFields: readonly ["endingDate"];
687
- };
688
- readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
689
- readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.";
690
- readonly params: readonly ["clientName", "relatedClientName", "clientCloseDate"];
691
- readonly affectedFields: readonly ["endingDate", "final"];
692
- };
693
- readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
694
- readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.";
695
- readonly params: readonly ["clientName", "relatedClientName", "relatedClientCloseDate"];
696
- readonly affectedFields: readonly ["endingDate", "final"];
697
- };
698
- readonly CIRCULAR_RELATIONSHIP_DETECTED: {
699
- readonly message: "{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.";
700
- readonly params: readonly ["clientName", "relatedClientName", "relationshipType"];
701
- readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
702
- };
703
- readonly CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
704
- readonly message: "{relatedClientName} cannot be associated with {clientName} more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.";
705
- readonly params: readonly ["relatedClientName", "clientName"];
706
- readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
707
- };
708
- readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
709
- readonly message: "There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.";
710
- readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
711
- readonly affectedFields: readonly ["startingDate", "endingDate"];
782
+ CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
783
+ severity: "error";
784
+ message: string;
785
+ affectedFields: string[];
786
+ };
787
+ INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
788
+ severity: "error";
789
+ message: string;
790
+ params: string[];
791
+ affectedFields: string[];
792
+ };
793
+ STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
794
+ severity: "error";
795
+ message: string;
796
+ params: string[];
797
+ affectedFields: string[];
798
+ };
799
+ STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
800
+ severity: "error";
801
+ message: string;
802
+ params: string[];
803
+ affectedFields: string[];
804
+ };
805
+ STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
806
+ severity: "error";
807
+ message: string;
808
+ params: string[];
809
+ affectedFields: string[];
810
+ };
811
+ STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
812
+ severity: "error";
813
+ message: string;
814
+ params: string[];
815
+ affectedFields: string[];
816
+ };
817
+ ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
818
+ severity: "error";
819
+ message: string;
820
+ params: string[];
821
+ affectedFields: string[];
822
+ };
823
+ ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
824
+ severity: "error";
825
+ message: string;
826
+ params: string[];
827
+ affectedFields: string[];
828
+ };
829
+ ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
830
+ severity: "error";
831
+ message: string;
832
+ params: string[];
833
+ affectedFields: string[];
834
+ };
835
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
836
+ severity: "error";
837
+ message: string;
838
+ params: string[];
839
+ affectedFields: string[];
840
+ };
841
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
842
+ severity: "error";
843
+ message: string;
844
+ params: string[];
845
+ affectedFields: string[];
846
+ };
847
+ CIRCULAR_RELATIONSHIP_DETECTED: {
848
+ severity: "error";
849
+ message: string;
850
+ params: string[];
851
+ affectedFields: string[];
852
+ };
853
+ CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
854
+ severity: "error";
855
+ message: string;
856
+ params: string[];
857
+ affectedFields: string[];
858
+ };
859
+ CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
860
+ severity: "error";
861
+ message: string;
862
+ params: string[];
863
+ affectedFields: string[];
712
864
  };
713
865
  };
714
866
  readonly CLIENT_RELATIONSHIPS_OWNERS: {
715
- readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
716
- readonly message: "A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.";
717
- readonly affectedFields: readonly ["relationshipType", "filingStatus"];
718
- };
719
- readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
720
- readonly message: "All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.";
721
- readonly affectedFields: readonly ["endingDate"];
722
- };
723
- readonly MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
724
- readonly message: "There can only be one parent relationship associated to a client during the same timeframe. There is a current parent relationship with {parentRelatedClientName} starting {relationshipStarting}. Please add an end date to that relationship before adding a new one.";
725
- readonly params: readonly ["parentRelatedClientName", "relationshipStarting"];
726
- readonly affectedFields: readonly ["relationshipType", "startingDate"];
727
- };
728
- readonly PARENT_CANNOT_BE_SUB_ENTITY: {
729
- readonly message: "{relatedClientName} cannot be the parent of {clientName}, since it is filing as a sub-entity under another parent during this timeframe. Please adjust the timeframe or select a different relationship type.";
730
- readonly params: readonly ["relatedClientName", "clientName"];
731
- readonly affectedFields: readonly ["relatedClient", "relationshipType", "startingDate", "endingDate"];
732
- };
733
- readonly PARENT_ENTITY_TYPE_MISMATCH: {
734
- readonly message: "A parent entity must be the same entity type as the client during the relationship's timeframe. Please select a different relationship type or update either client's entity type.";
735
- readonly affectedFields: readonly ["relatedClient", "relationshipType"];
736
- };
737
- readonly PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
738
- readonly message: "A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.";
739
- readonly affectedFields: readonly ["profit", "relationshipType"];
740
- };
741
- readonly PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
742
- readonly message: "A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.";
743
- readonly affectedFields: readonly ["loss", "relationshipType"];
744
- };
745
- readonly PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
746
- readonly message: "A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.";
747
- readonly affectedFields: readonly ["capital", "relationshipType"];
748
- };
749
- readonly SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
750
- readonly message: "A shareholder relationship that issues a K1 must have a profit percentage greater than 0%. Please enter a profit percentage, or change Issues K1 to 'No'.";
751
- readonly affectedFields: readonly ["profit", "k1Applicable"];
752
- };
753
- readonly SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
754
- readonly message: "A shareholder relationship that issues a K1 must have a loss percentage greater than 0%. Please enter a loss percentage, or change Issues K1 to 'No'.";
755
- readonly affectedFields: readonly ["loss", "k1Applicable"];
756
- };
757
- readonly SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
758
- readonly message: "A shareholder relationship that issues a K1 must have a capital percentage greater than 0%. Please enter a capital percentage, or change Issues K1 to 'No'.";
759
- readonly affectedFields: readonly ["capital", "k1Applicable"];
760
- };
761
- readonly SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
762
- readonly message: "A shareholder relationship that does not issue a K1 must have a 0% profit percentage. Please update the profit percentage, or change Issues K1 to 'Yes'.";
763
- readonly affectedFields: readonly ["profit", "k1Applicable"];
764
- };
765
- readonly SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
766
- readonly message: "A shareholder relationship that does not issue a K1 must have a 0% loss percentage. Please update the loss percentage, or change Issues K1 to 'Yes'.";
767
- readonly affectedFields: readonly ["loss", "k1Applicable"];
768
- };
769
- readonly SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
770
- readonly message: "A shareholder relationship that does not issue a K1 must have a 0% capital percentage. Please update the capital percentage, or change Issues K1 to 'Yes'.";
771
- readonly affectedFields: readonly ["capital", "k1Applicable"];
772
- };
773
- readonly TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
774
- readonly message: "The total profit percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
775
- readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
776
- };
777
- readonly TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
778
- readonly message: "The total loss percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
779
- readonly affectedFields: readonly ["loss", "startingDate", "endingDate"];
780
- };
781
- readonly TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
782
- readonly message: "The total capital percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
783
- readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
867
+ PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
868
+ severity: "error";
869
+ message: string;
870
+ affectedFields: string[];
871
+ };
872
+ MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
873
+ severity: "error";
874
+ message: string;
875
+ affectedFields: string[];
876
+ };
877
+ MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
878
+ severity: "error";
879
+ message: string;
880
+ params: string[];
881
+ affectedFields: string[];
882
+ };
883
+ PARENT_CANNOT_BE_SUB_ENTITY: {
884
+ severity: "error";
885
+ message: string;
886
+ params: string[];
887
+ affectedFields: string[];
888
+ };
889
+ PARENT_ENTITY_TYPE_MISMATCH: {
890
+ severity: "error";
891
+ message: string;
892
+ affectedFields: string[];
893
+ };
894
+ PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
895
+ severity: "error";
896
+ message: string;
897
+ affectedFields: string[];
898
+ };
899
+ PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
900
+ severity: "error";
901
+ message: string;
902
+ affectedFields: string[];
903
+ };
904
+ PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
905
+ severity: "error";
906
+ message: string;
907
+ affectedFields: string[];
908
+ };
909
+ SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
910
+ severity: "error";
911
+ message: string;
912
+ affectedFields: string[];
913
+ };
914
+ SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
915
+ severity: "error";
916
+ message: string;
917
+ affectedFields: string[];
918
+ };
919
+ SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
920
+ severity: "error";
921
+ message: string;
922
+ affectedFields: string[];
923
+ };
924
+ SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
925
+ severity: "error";
926
+ message: string;
927
+ affectedFields: string[];
928
+ };
929
+ SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
930
+ severity: "error";
931
+ message: string;
932
+ affectedFields: string[];
933
+ };
934
+ SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
935
+ severity: "error";
936
+ message: string;
937
+ affectedFields: string[];
938
+ };
939
+ TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
940
+ severity: "error";
941
+ message: string;
942
+ affectedFields: string[];
943
+ };
944
+ TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
945
+ severity: "error";
946
+ message: string;
947
+ affectedFields: string[];
948
+ };
949
+ TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
950
+ severity: "error";
951
+ message: string;
952
+ affectedFields: string[];
784
953
  };
785
954
  };
786
955
  readonly CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
787
- readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
788
- readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
789
- readonly params: readonly ["clientName", "parentClientName"];
790
- readonly affectedFields: readonly ["relationshipType", "startingDate", "endingDate"];
791
- };
792
- readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
793
- readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
794
- readonly affectedFields: readonly ["relationshipType", "filingStatus"];
795
- };
796
- readonly SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
797
- readonly message: "A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.";
798
- readonly affectedFields: readonly ["profit", "relationshipType"];
799
- };
800
- readonly SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
801
- readonly message: "A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.";
802
- readonly affectedFields: readonly ["loss", "relationshipType"];
803
- };
804
- readonly SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
805
- readonly message: "A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.";
806
- readonly affectedFields: readonly ["capital", "relationshipType"];
807
- };
808
- readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
809
- readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
810
- readonly affectedFields: readonly ["relatedClient", "relationshipType"];
811
- };
812
- readonly K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
813
- readonly message: "A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
814
- readonly affectedFields: readonly ["profit", "k1Applicable"];
815
- };
816
- readonly K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
817
- readonly message: "A K1 issuer must allocate a loss percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
818
- readonly affectedFields: readonly ["loss", "k1Applicable"];
819
- };
820
- readonly K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
821
- readonly message: "A K1 issuer must allocate a capital percentage greater than 0%. Please enter a capital percentage, or change Receives K1 to 'No'.";
822
- readonly affectedFields: readonly ["capital", "k1Applicable"];
823
- };
824
- readonly K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
825
- readonly message: "A K1 issuer that does not issue a K1 cannot allocate a profit percentage. Please update the profit percentage to 0%, or change Receives K1 to 'Yes'.";
826
- readonly affectedFields: readonly ["profit", "k1Applicable"];
827
- };
828
- readonly K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
829
- readonly message: "A K1 issuer that does not issue a K1 cannot allocate a loss percentage. Please update the loss percentage to 0%, or change Receives K1 to 'Yes'.";
830
- readonly affectedFields: readonly ["loss", "k1Applicable"];
831
- };
832
- readonly K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
833
- readonly message: "A K1 issuer that does not issue a K1 cannot allocate a capital percentage. Please update the capital percentage to 0%, or change Receives K1 to 'Yes'.";
834
- readonly affectedFields: readonly ["capital", "k1Applicable"];
835
- };
836
- readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
837
- readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
838
- readonly params: readonly ["relatedClient", "entityType"];
839
- readonly affectedFields: readonly ["relatedClient", "relationshipType"];
840
- };
841
- readonly INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
842
- readonly message: "The ownership percentages for {relatedClient}'s profit exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
843
- readonly params: readonly ["relatedClient"];
844
- readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
845
- };
846
- readonly INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
847
- readonly message: "The ownership percentages for {relatedClient}'s loss exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
848
- readonly params: readonly ["relatedClient"];
849
- readonly affectedFields: readonly ["loss", "startingDate", "endingDate"];
850
- };
851
- readonly INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
852
- readonly message: "The ownership percentages for {relatedClient}'s capital exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
853
- readonly params: readonly ["relatedClient"];
854
- readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
956
+ SUBSIDIARY_CANNOT_HAVE_PARENT: {
957
+ severity: "error";
958
+ message: string;
959
+ params: string[];
960
+ affectedFields: string[];
961
+ };
962
+ SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
963
+ severity: "error";
964
+ message: string;
965
+ affectedFields: string[];
966
+ };
967
+ SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
968
+ severity: "error";
969
+ message: string;
970
+ affectedFields: string[];
971
+ };
972
+ SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
973
+ severity: "error";
974
+ message: string;
975
+ affectedFields: string[];
976
+ };
977
+ SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
978
+ severity: "error";
979
+ message: string;
980
+ affectedFields: string[];
981
+ };
982
+ SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
983
+ severity: "error";
984
+ message: string;
985
+ affectedFields: string[];
986
+ };
987
+ K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
988
+ severity: "error";
989
+ message: string;
990
+ affectedFields: string[];
991
+ };
992
+ K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
993
+ severity: "error";
994
+ message: string;
995
+ affectedFields: string[];
996
+ };
997
+ K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
998
+ severity: "error";
999
+ message: string;
1000
+ affectedFields: string[];
1001
+ };
1002
+ K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
1003
+ severity: "error";
1004
+ message: string;
1005
+ affectedFields: string[];
1006
+ };
1007
+ K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
1008
+ severity: "error";
1009
+ message: string;
1010
+ affectedFields: string[];
1011
+ };
1012
+ K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
1013
+ severity: "error";
1014
+ message: string;
1015
+ affectedFields: string[];
1016
+ };
1017
+ K1_ISSUER_INVALID_ENTITY_TYPE: {
1018
+ severity: "error";
1019
+ message: string;
1020
+ params: string[];
1021
+ affectedFields: string[];
1022
+ };
1023
+ INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
1024
+ severity: "error";
1025
+ message: string;
1026
+ params: string[];
1027
+ affectedFields: string[];
1028
+ };
1029
+ INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
1030
+ severity: "error";
1031
+ message: string;
1032
+ params: string[];
1033
+ affectedFields: string[];
1034
+ };
1035
+ INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
1036
+ severity: "error";
1037
+ message: string;
1038
+ params: string[];
1039
+ affectedFields: string[];
855
1040
  };
856
1041
  };
857
1042
  readonly FILING_CATEGORIES: {
858
- readonly INVALID_REQUEST: {
859
- readonly message: "Missing filing category id in request";
860
- readonly affectedFields: readonly [];
861
- };
862
- readonly ID_DOES_NOT_EXIST: {
863
- readonly message: "Filing category does not exist";
864
- readonly params: readonly ["id"];
865
- readonly affectedFields: readonly ["filingCategoryId"];
866
- };
867
- readonly NAME_ALREADY_EXISTS: {
868
- readonly message: "Filing category with the same name '{name}' already exists";
869
- readonly params: readonly ["name"];
870
- readonly affectedFields: readonly ["filingCategory"];
871
- };
872
- readonly OPTION_IN_USE: {
873
- readonly message: "This option is currently in use and cannot be deleted.";
874
- readonly affectedFields: readonly [];
1043
+ INVALID_REQUEST: {
1044
+ severity: "error";
1045
+ message: string;
1046
+ affectedFields: never[];
1047
+ };
1048
+ ID_DOES_NOT_EXIST: {
1049
+ severity: "error";
1050
+ message: string;
1051
+ params: string[];
1052
+ affectedFields: string[];
1053
+ };
1054
+ NAME_ALREADY_EXISTS: {
1055
+ severity: "error";
1056
+ message: string;
1057
+ params: string[];
1058
+ affectedFields: string[];
1059
+ };
1060
+ OPTION_IN_USE: {
1061
+ severity: "error";
1062
+ message: string;
1063
+ affectedFields: never[];
875
1064
  };
876
1065
  };
877
1066
  readonly STATES: {
878
- readonly INVALID_REQUEST: {
879
- readonly message: "Missing state id in request";
880
- readonly affectedFields: readonly [];
881
- };
882
- readonly ID_DOES_NOT_EXIST: {
883
- readonly message: "State does not exist";
884
- readonly params: readonly ["id"];
885
- readonly affectedFields: readonly ["stateId"];
886
- };
887
- readonly NAME_ALREADY_EXISTS: {
888
- readonly message: "State with the same name '{name}' already exists";
889
- readonly params: readonly ["name"];
890
- readonly affectedFields: readonly ["name"];
891
- };
892
- readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
893
- readonly message: "State type does not exist";
894
- readonly params: readonly ["id"];
895
- readonly affectedFields: readonly ["stateType"];
896
- };
897
- readonly IS_PARENT_OF_OTHER_STATES: {
898
- readonly message: "This option is currently in use and cannot be deleted.";
899
- readonly affectedFields: readonly [];
900
- };
901
- readonly PARENT_ID_DOES_NOT_EXIST: {
902
- readonly message: "Parent state does not exist";
903
- readonly params: readonly ["id"];
904
- readonly affectedFields: readonly ["parent"];
905
- };
906
- readonly NATION_PARENT_TYPE_NOT_ALLOWED: {
907
- readonly message: "Nation cannot have associated parent.";
908
- readonly affectedFields: readonly ["parent"];
909
- };
910
- readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
911
- readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
912
- readonly params: readonly ["stateName"];
913
- readonly affectedFields: readonly ["parent"];
914
- };
915
- readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
916
- readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
917
- readonly params: readonly ["cityName"];
918
- readonly affectedFields: readonly ["parent"];
919
- };
920
- readonly OPTION_IN_USE: {
921
- readonly message: "This option is currently in use and cannot be deleted.";
922
- readonly affectedFields: readonly [];
1067
+ INVALID_REQUEST: {
1068
+ severity: "error";
1069
+ message: string;
1070
+ affectedFields: never[];
1071
+ };
1072
+ ID_DOES_NOT_EXIST: {
1073
+ severity: "error";
1074
+ message: string;
1075
+ params: string[];
1076
+ affectedFields: string[];
1077
+ };
1078
+ NAME_ALREADY_EXISTS: {
1079
+ severity: "error";
1080
+ message: string;
1081
+ params: string[];
1082
+ affectedFields: string[];
1083
+ };
1084
+ STATE_TYPE_ID_DOES_NOT_EXIST: {
1085
+ severity: "error";
1086
+ message: string;
1087
+ params: string[];
1088
+ affectedFields: string[];
1089
+ };
1090
+ IS_PARENT_OF_OTHER_STATES: {
1091
+ severity: "error";
1092
+ message: string;
1093
+ affectedFields: never[];
1094
+ };
1095
+ PARENT_ID_DOES_NOT_EXIST: {
1096
+ severity: "error";
1097
+ message: string;
1098
+ params: string[];
1099
+ affectedFields: string[];
1100
+ };
1101
+ NATION_PARENT_TYPE_NOT_ALLOWED: {
1102
+ severity: "error";
1103
+ message: string;
1104
+ affectedFields: string[];
1105
+ };
1106
+ STATE_PARENT_TYPE_NOT_ALLOWED: {
1107
+ severity: "error";
1108
+ message: string;
1109
+ params: string[];
1110
+ affectedFields: string[];
1111
+ };
1112
+ CITY_PARENT_TYPE_NOT_ALLOWED: {
1113
+ severity: "error";
1114
+ message: string;
1115
+ params: string[];
1116
+ affectedFields: string[];
1117
+ };
1118
+ OPTION_IN_USE: {
1119
+ severity: "error";
1120
+ message: string;
1121
+ affectedFields: never[];
923
1122
  };
924
1123
  };
925
1124
  readonly USERS: {
926
- readonly USERNAME_DOES_NOT_EXIST: {
927
- readonly message: "User with username {username} does not exist.";
928
- readonly params: readonly ["username"];
929
- readonly affectedFields: readonly ["userName"];
930
- };
931
- readonly INVALID_PASSWORD: {
932
- readonly message: "User with username {username} password does not match.";
933
- readonly params: readonly ["username"];
934
- readonly affectedFields: readonly ["password"];
935
- };
936
- readonly INVALID_RESET_PASSWORD_TOKEN: {
937
- readonly message: "Invalid or expired reset token.";
938
- readonly affectedFields: readonly ["resetToken"];
939
- };
940
- readonly RESET_PASSWORD_LINK_ALREADY_USED: {
941
- readonly message: "Reset password link has already been used. Please request a new one.";
942
- readonly affectedFields: readonly ["resetToken"];
943
- };
944
- readonly RESET_PASSWORD_LINK_NOT_LATEST: {
945
- readonly message: "Reset password link is no longer valid. Please use the most recent one.";
946
- readonly affectedFields: readonly ["resetToken"];
947
- };
948
- readonly USERNAME_ALREADY_EXISTS: {
949
- readonly message: "User with username '{username}' already exists";
950
- readonly params: readonly ["username"];
951
- readonly affectedFields: readonly ["userName"];
952
- };
953
- readonly EMAIL_ALREADY_EXISTS: {
954
- readonly message: "User with email '{email}' already exists";
955
- readonly params: readonly ["email"];
956
- readonly affectedFields: readonly ["email"];
957
- };
958
- readonly ROLE_DOES_NOT_EXIST: {
959
- readonly message: "Role does not exist";
960
- readonly params: readonly ["roleId"];
961
- };
962
- readonly USER_DOES_NOT_EXIST: {
963
- readonly message: "User does not exist";
964
- readonly params: readonly ["userId"];
965
- readonly affectedFields: readonly ["userId"];
966
- };
967
- readonly USER_PASSWORDS_DO_NOT_MATCH: {
968
- readonly message: "User passwords do not match";
969
- readonly affectedFields: readonly ["password", "confirmPassword"];
970
- };
971
- readonly USER_HAS_REFERENCED_DATA: {
972
- readonly message: "User '{fullName}' cannot be deleted because they are referenced by existing records.";
973
- readonly params: readonly ["fullName"];
974
- readonly affectedFields: readonly ["userId"];
975
- };
976
- readonly USER_CANNOT_DELETE_SELF: {
977
- readonly message: "You cannot delete your own account.";
978
- readonly affectedFields: readonly ["userId"];
1125
+ USERNAME_DOES_NOT_EXIST: {
1126
+ severity: "error";
1127
+ message: string;
1128
+ params: string[];
1129
+ affectedFields: string[];
1130
+ };
1131
+ INVALID_PASSWORD: {
1132
+ severity: "error";
1133
+ message: string;
1134
+ params: string[];
1135
+ affectedFields: string[];
1136
+ };
1137
+ INVALID_RESET_PASSWORD_TOKEN: {
1138
+ severity: "error";
1139
+ message: string;
1140
+ affectedFields: string[];
1141
+ };
1142
+ RESET_PASSWORD_LINK_ALREADY_USED: {
1143
+ severity: "error";
1144
+ message: string;
1145
+ affectedFields: string[];
1146
+ };
1147
+ RESET_PASSWORD_LINK_NOT_LATEST: {
1148
+ severity: "error";
1149
+ message: string;
1150
+ affectedFields: string[];
1151
+ };
1152
+ USERNAME_ALREADY_EXISTS: {
1153
+ severity: "error";
1154
+ message: string;
1155
+ params: string[];
1156
+ affectedFields: string[];
1157
+ };
1158
+ EMAIL_ALREADY_EXISTS: {
1159
+ severity: "error";
1160
+ message: string;
1161
+ params: string[];
1162
+ affectedFields: string[];
1163
+ };
1164
+ ROLE_DOES_NOT_EXIST: {
1165
+ severity: "error";
1166
+ message: string;
1167
+ params: string[];
1168
+ };
1169
+ USER_DOES_NOT_EXIST: {
1170
+ severity: "error";
1171
+ message: string;
1172
+ params: string[];
1173
+ affectedFields: string[];
1174
+ };
1175
+ USER_PASSWORDS_DO_NOT_MATCH: {
1176
+ severity: "error";
1177
+ message: string;
1178
+ affectedFields: string[];
1179
+ };
1180
+ USER_HAS_REFERENCED_DATA: {
1181
+ severity: "error";
1182
+ message: string;
1183
+ params: string[];
1184
+ affectedFields: string[];
1185
+ };
1186
+ USER_CANNOT_DELETE_SELF: {
1187
+ severity: "error";
1188
+ message: string;
1189
+ affectedFields: string[];
979
1190
  };
980
1191
  };
981
1192
  readonly ROLES_AND_PERMISSIONS: {
982
- readonly ROLE_ALREADY_EXISTS: {
983
- readonly message: "Role with name '{name}' already exists";
984
- readonly params: readonly ["name"];
985
- readonly affectedFields: readonly ["name"];
986
- };
987
- readonly PERMISSION_ALREADY_EXISTS: {
988
- readonly message: "Permission with name '{name}' already exists";
989
- readonly params: readonly ["name"];
990
- readonly affectedFields: readonly ["name"];
991
- };
992
- readonly PERMISSIONS_DO_NOT_EXIST: {
993
- readonly message: "Permissions do not exist";
994
- readonly params: readonly ["ids"];
995
- readonly affectedFields: readonly ["permissionIds"];
996
- };
997
- readonly ROLE_DOES_NOT_EXIST: {
998
- readonly message: "Role does not exist";
999
- readonly params: readonly ["roleId"];
1000
- };
1001
- readonly PERMISSION_DOES_NOT_EXIST: {
1002
- readonly message: "Permission does not exist";
1003
- readonly params: readonly ["permissionId"];
1004
- readonly affectedFields: readonly ["permissionIds"];
1005
- };
1006
- readonly ROLE_HAS_ASSIGNED_USERS: {
1007
- readonly message: "Cannot delete role with name '{roleName}' because it has users assigned to it";
1008
- readonly params: readonly ["roleName"];
1009
- readonly affectedFields: readonly [];
1193
+ ROLE_ALREADY_EXISTS: {
1194
+ severity: "error";
1195
+ message: string;
1196
+ params: string[];
1197
+ affectedFields: string[];
1198
+ };
1199
+ PERMISSION_ALREADY_EXISTS: {
1200
+ severity: "error";
1201
+ message: string;
1202
+ params: string[];
1203
+ affectedFields: string[];
1204
+ };
1205
+ PERMISSIONS_DO_NOT_EXIST: {
1206
+ severity: "error";
1207
+ message: string;
1208
+ params: string[];
1209
+ affectedFields: string[];
1210
+ };
1211
+ ROLE_DOES_NOT_EXIST: {
1212
+ severity: "error";
1213
+ message: string;
1214
+ params: string[];
1215
+ };
1216
+ PERMISSION_DOES_NOT_EXIST: {
1217
+ severity: "error";
1218
+ message: string;
1219
+ params: string[];
1220
+ affectedFields: string[];
1221
+ };
1222
+ ROLE_HAS_ASSIGNED_USERS: {
1223
+ severity: "error";
1224
+ message: string;
1225
+ params: string[];
1226
+ affectedFields: never[];
1010
1227
  };
1011
1228
  };
1012
1229
  readonly DATA_FILTERS: {
1013
- readonly MISSING_PAGE_SIZE: {
1014
- readonly message: "Request is invalid, 'pageSize' must exist if 'pageNumber' exists";
1015
- readonly affectedFields: readonly ["pageSize"];
1016
- };
1017
- readonly MISSING_PAGE_NUMBER: {
1018
- readonly message: "Request is invalid, 'pageNumber' must exist if 'pageSize' exists";
1019
- readonly affectedFields: readonly ["pageNumber"];
1020
- };
1021
- readonly MISSING_SORT_BY: {
1022
- readonly message: "Request is invalid, 'sortBy' must exist if 'sortType' exists";
1023
- readonly affectedFields: readonly ["sortBy"];
1024
- };
1025
- readonly MISSING_SORT_TYPE: {
1026
- readonly message: "Request is invalid, 'sortType' must exist if 'sortBy' exists";
1027
- readonly affectedFields: readonly ["sortType"];
1230
+ MISSING_PAGE_SIZE: {
1231
+ severity: "error";
1232
+ message: string;
1233
+ affectedFields: string[];
1234
+ };
1235
+ MISSING_PAGE_NUMBER: {
1236
+ severity: "error";
1237
+ message: string;
1238
+ affectedFields: string[];
1239
+ };
1240
+ MISSING_SORT_BY: {
1241
+ severity: "error";
1242
+ message: string;
1243
+ affectedFields: string[];
1244
+ };
1245
+ MISSING_SORT_TYPE: {
1246
+ severity: "error";
1247
+ message: string;
1248
+ affectedFields: string[];
1028
1249
  };
1029
1250
  };
1030
1251
  readonly USER_PREFERENCES: {
1031
- readonly FEATURE_DOES_NOT_EXIST: {
1032
- readonly message: "Feature with name {feature} does not exist";
1033
- readonly params: readonly ["feature"];
1034
- readonly affectedFields: readonly ["feature"];
1035
- };
1036
- readonly INVALID_REQUEST: {
1037
- readonly message: "Request is invalid";
1038
- readonly affectedFields: readonly [];
1039
- };
1040
- readonly PREFERENCE_DOES_NOT_BELONG_TO_USER: {
1041
- readonly message: "Preference does not belong to the user";
1042
- readonly affectedFields: readonly [];
1043
- };
1044
- readonly INVALID_COLUMN_ORDER: {
1045
- readonly message: "Invalid columnOrder values";
1046
- readonly affectedFields: readonly ["columnOrder"];
1252
+ FEATURE_DOES_NOT_EXIST: {
1253
+ severity: "error";
1254
+ message: string;
1255
+ params: string[];
1256
+ affectedFields: string[];
1257
+ };
1258
+ INVALID_REQUEST: {
1259
+ severity: "error";
1260
+ message: string;
1261
+ affectedFields: never[];
1262
+ };
1263
+ PREFERENCE_DOES_NOT_BELONG_TO_USER: {
1264
+ severity: "error";
1265
+ message: string;
1266
+ affectedFields: never[];
1267
+ };
1268
+ INVALID_COLUMN_ORDER: {
1269
+ severity: "error";
1270
+ message: string;
1271
+ affectedFields: string[];
1047
1272
  };
1048
1273
  };
1049
1274
  readonly CLIENT_RECORDS_OUTSIDE_PROVIDERS: {
1050
- readonly INVALID_TYPE: {
1051
- readonly message: "Outside provider types do not exist";
1052
- readonly params: readonly ["ids"];
1053
- readonly affectedFields: readonly ["type"];
1054
- };
1055
- readonly SAME_TYPE_TIMELINE_OVERLAP: {
1056
- readonly message: "The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.";
1057
- readonly params: readonly ["outsideProviderType", "startDate"];
1058
- readonly affectedFields: readonly ["starting", "ending"];
1275
+ INVALID_TYPE: {
1276
+ severity: "error";
1277
+ message: string;
1278
+ params: string[];
1279
+ affectedFields: string[];
1280
+ };
1281
+ SAME_TYPE_TIMELINE_OVERLAP: {
1282
+ severity: "error";
1283
+ message: string;
1284
+ params: string[];
1285
+ affectedFields: string[];
1059
1286
  };
1060
1287
  };
1061
1288
  readonly TEMPLATE_INFORMATION: {
1062
- readonly NAME_REQUIRED: {
1063
- readonly message: "Template name is required";
1064
- readonly affectedFields: readonly ["name"];
1065
- };
1066
- readonly NAME_ALREADY_EXISTS: {
1067
- readonly message: "Template with the name '{name}' already exists";
1068
- readonly params: readonly ["name"];
1069
- readonly affectedFields: readonly ["name"];
1070
- };
1071
- readonly TYPE_REQUIRED: {
1072
- readonly message: "Template type is required";
1073
- readonly affectedFields: readonly ["type"];
1074
- };
1075
- readonly INVALID_TYPE: {
1076
- readonly message: "Invalid template type";
1077
- readonly affectedFields: readonly ["type"];
1078
- };
1079
- readonly DEFAULT_STAFF_REQUIRED: {
1080
- readonly message: "Default staff is required";
1081
- readonly affectedFields: readonly ["defaultStaff"];
1082
- };
1083
- readonly INVALID_STAFF: {
1084
- readonly message: "Invalid staff member";
1085
- readonly affectedFields: readonly ["defaultStaff"];
1086
- };
1087
- readonly INCOME_ACCOUNT_REQUIRED: {
1088
- readonly message: "Income account is required";
1089
- readonly affectedFields: readonly ["incomeAccount"];
1090
- };
1091
- readonly INVALID_INCOME_ACCOUNT: {
1092
- readonly message: "Invalid income account";
1093
- readonly affectedFields: readonly ["incomeAccount"];
1094
- };
1095
- readonly AMOUNT_REQUIRED: {
1096
- readonly message: "Amount is required when separately charged";
1097
- readonly affectedFields: readonly ["amount"];
1098
- };
1099
- readonly COMMISSION_RATE_REQUIRED: {
1100
- readonly message: "Commission rate is required when subject to commission";
1101
- readonly affectedFields: readonly ["commissionRate"];
1102
- };
1103
- readonly COMMISSION_RATE_OUT_OF_RANGE: {
1104
- readonly message: "Commission rate must be a percentage between 0 and 100. Please adjust the percent before saving.";
1105
- readonly affectedFields: readonly ["commissionRate"];
1106
- };
1107
- readonly SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
1108
- readonly message: "Separately charged must be 'Yes' for Billing templates";
1109
- readonly affectedFields: readonly ["isSeparatelyCharged"];
1110
- };
1111
- readonly SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
1112
- readonly message: "Separately charged must be 'No' for Payment templates";
1113
- readonly affectedFields: readonly ["isSeparatelyCharged"];
1114
- };
1115
- readonly SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
1116
- readonly message: "Subject to commission can only be 'Yes' when separately charged is 'Yes'";
1117
- readonly affectedFields: readonly ["isSubjectToCommission"];
1118
- };
1119
- readonly SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
1120
- readonly message: "Subject to commission must be 'Yes' for Billing templates";
1121
- readonly affectedFields: readonly ["isSubjectToCommission"];
1122
- };
1123
- readonly ENTITY_TYPE_REQUIRED: {
1124
- readonly message: "At least one associated entity is required";
1125
- readonly affectedFields: readonly ["associatedEntities"];
1126
- };
1127
- readonly INVALID_ENTITY_TYPE: {
1128
- readonly message: "Invalid entity type";
1129
- readonly affectedFields: readonly ["associatedEntities"];
1130
- };
1131
- readonly INVALID_CLASSIFICATION: {
1132
- readonly message: "Invalid classification";
1133
- readonly affectedFields: readonly ["classification"];
1134
- };
1135
- readonly INVALID_SETUP_TEMPLATE: {
1136
- readonly message: "Invalid associated setup template";
1137
- readonly affectedFields: readonly ["associatedSetupTemplate"];
1138
- };
1139
- readonly FILING_TYPE_REQUIRED: {
1140
- readonly message: "Filing type is required";
1141
- readonly affectedFields: readonly ["filingTypeId"];
1142
- };
1143
- readonly INVALID_FILING_TYPE: {
1144
- readonly message: "Invalid filing type";
1145
- readonly affectedFields: readonly ["filingTypeId"];
1146
- };
1147
- readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
1148
- readonly message: "A filing template that has state sub-filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated state sub-filings before saving.";
1149
- readonly affectedFields: readonly ["filingTypeId"];
1150
- };
1151
- readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
1152
- readonly message: "A filing template that has associated sub-entity filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated sub-entity filing before saving.";
1153
- readonly affectedFields: readonly ["filingTypeId"];
1154
- };
1155
- readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
1156
- readonly message: "A filing template that has associated tax payments must be 'Income tax' filing type. Please select 'Income tax' or remove the associated tax payments before saving.";
1157
- readonly affectedFields: readonly ["filingTypeId"];
1158
- };
1159
- readonly STATE_REQUIRED: {
1160
- readonly message: "State is required";
1161
- readonly affectedFields: readonly ["stateId"];
1162
- };
1163
- readonly INVALID_STATE: {
1164
- readonly message: "Invalid state";
1165
- readonly affectedFields: readonly ["stateId"];
1166
- };
1167
- readonly STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
1168
- readonly message: "This template is linked to sub-entity filing templates that are set to {SubEntityTemplateState} state, which conflicts with the selected state. Please update the state before saving.";
1169
- readonly params: readonly ["SubEntityTemplateState"];
1170
- readonly affectedFields: readonly ["stateId"];
1171
- };
1172
- readonly FILING_STATUS_REQUIRED: {
1173
- readonly message: "Sub/Parent status is required when filing type is Income tax";
1174
- readonly affectedFields: readonly ["filingStatusId"];
1175
- };
1176
- readonly INVALID_FILING_STATUS: {
1177
- readonly message: "Invalid filing status";
1178
- readonly affectedFields: readonly ["filingStatusId"];
1179
- };
1180
- readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
1181
- readonly message: "A filing template with state sub-filings cannot file under a parent. Please select Files separately or remove the associated state sub-filings before saving.";
1182
- readonly affectedFields: readonly ["filingStatusId"];
1183
- };
1184
- readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
1185
- readonly message: "A filing template with sub entity filings cannot file under a parent. Please select Files separately or remove the associated sub entity filings before saving.";
1186
- readonly affectedFields: readonly ["filingStatusId"];
1187
- };
1188
- readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
1189
- readonly message: "A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.";
1190
- readonly affectedFields: readonly ["filingStatusId"];
1191
- };
1192
- readonly FILES_UNDER_REQUIRED: {
1193
- readonly message: "Files under is required when Sub/Parent status is \"Files under parent\"";
1194
- readonly affectedFields: readonly ["filesUnder"];
1195
- };
1196
- readonly INVALID_FILES_UNDER: {
1197
- readonly message: "The selected parent filing does not exist";
1198
- readonly affectedFields: readonly ["filesUnder"];
1199
- };
1200
- readonly FILES_UNDER_MUST_BE_FILING: {
1201
- readonly message: "The selected parent must be a Filing template";
1202
- readonly affectedFields: readonly ["filesUnder"];
1203
- };
1204
- readonly FILES_UNDER_MUST_BE_INCOME_TAX: {
1205
- readonly message: "A parent filing must be an 'Income tax' filing. {parentName} is set to {parentFilingType}. Please select a parent filing with 'Filing type' set to 'Income tax'.";
1206
- readonly params: readonly ["parentName", "parentFilingType"];
1207
- readonly affectedFields: readonly ["filesUnder"];
1208
- };
1209
- readonly FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
1210
- readonly message: "A parent filing must be on an annual recurrence. {parentName} does not have an annual recurrence setup. Please add an annual recurrence for {parentName}, or select a different parent filing.";
1211
- readonly params: readonly ["parentName"];
1212
- readonly affectedFields: readonly ["filesUnder"];
1213
- };
1214
- readonly TAX_PAYMENT_FILING_REQUIRED: {
1215
- readonly message: "Tax payment filing is required";
1216
- readonly affectedFields: readonly ["taxPaymentFilingId"];
1217
- };
1218
- readonly INVALID_TAX_PAYMENT_FILING: {
1219
- readonly message: "The selected tax payment filing does not exist";
1220
- readonly affectedFields: readonly ["taxPaymentFilingId"];
1221
- };
1222
- readonly TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
1223
- readonly message: "The selected tax payment filing must be a Filing type template";
1224
- readonly affectedFields: readonly ["taxPaymentFilingId"];
1225
- };
1226
- readonly SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
1227
- readonly message: "The selected associated setup template must be a Setup type template";
1228
- readonly affectedFields: readonly ["associatedSetupTemplateId"];
1229
- };
1230
- readonly OPTION_IN_USE: {
1231
- readonly message: "This template is currently in use and cannot be deleted";
1232
- readonly affectedFields: readonly [];
1233
- };
1234
- readonly TEMPLATE_NOT_FOUND: {
1235
- readonly message: "Template not found";
1236
- readonly affectedFields: readonly [];
1289
+ NAME_REQUIRED: {
1290
+ severity: "error";
1291
+ message: string;
1292
+ affectedFields: string[];
1293
+ };
1294
+ NAME_ALREADY_EXISTS: {
1295
+ severity: "error";
1296
+ message: string;
1297
+ params: string[];
1298
+ affectedFields: string[];
1299
+ };
1300
+ TYPE_REQUIRED: {
1301
+ severity: "error";
1302
+ message: string;
1303
+ affectedFields: string[];
1304
+ };
1305
+ INVALID_TYPE: {
1306
+ severity: "error";
1307
+ message: string;
1308
+ affectedFields: string[];
1309
+ };
1310
+ DEFAULT_STAFF_REQUIRED: {
1311
+ severity: "error";
1312
+ message: string;
1313
+ affectedFields: string[];
1314
+ };
1315
+ INVALID_STAFF: {
1316
+ severity: "error";
1317
+ message: string;
1318
+ affectedFields: string[];
1319
+ };
1320
+ INCOME_ACCOUNT_REQUIRED: {
1321
+ severity: "error";
1322
+ message: string;
1323
+ affectedFields: string[];
1324
+ };
1325
+ INVALID_INCOME_ACCOUNT: {
1326
+ severity: "error";
1327
+ message: string;
1328
+ affectedFields: string[];
1329
+ };
1330
+ AMOUNT_REQUIRED: {
1331
+ severity: "error";
1332
+ message: string;
1333
+ affectedFields: string[];
1334
+ };
1335
+ COMMISSION_RATE_REQUIRED: {
1336
+ severity: "error";
1337
+ message: string;
1338
+ affectedFields: string[];
1339
+ };
1340
+ COMMISSION_RATE_OUT_OF_RANGE: {
1341
+ severity: "error";
1342
+ message: string;
1343
+ affectedFields: string[];
1344
+ };
1345
+ SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
1346
+ severity: "error";
1347
+ message: string;
1348
+ affectedFields: string[];
1349
+ };
1350
+ SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
1351
+ severity: "error";
1352
+ message: string;
1353
+ affectedFields: string[];
1354
+ };
1355
+ SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
1356
+ severity: "error";
1357
+ message: string;
1358
+ affectedFields: string[];
1359
+ };
1360
+ SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
1361
+ severity: "error";
1362
+ message: string;
1363
+ affectedFields: string[];
1364
+ };
1365
+ ENTITY_TYPE_REQUIRED: {
1366
+ severity: "error";
1367
+ message: string;
1368
+ affectedFields: string[];
1369
+ };
1370
+ INVALID_ENTITY_TYPE: {
1371
+ severity: "error";
1372
+ message: string;
1373
+ affectedFields: string[];
1374
+ };
1375
+ INVALID_CLASSIFICATION: {
1376
+ severity: "error";
1377
+ message: string;
1378
+ affectedFields: string[];
1379
+ };
1380
+ INVALID_SETUP_TEMPLATE: {
1381
+ severity: "error";
1382
+ message: string;
1383
+ affectedFields: string[];
1384
+ };
1385
+ FILING_TYPE_REQUIRED: {
1386
+ severity: "error";
1387
+ message: string;
1388
+ affectedFields: string[];
1389
+ };
1390
+ INVALID_FILING_TYPE: {
1391
+ severity: "error";
1392
+ message: string;
1393
+ affectedFields: string[];
1394
+ };
1395
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
1396
+ severity: "error";
1397
+ message: string;
1398
+ affectedFields: string[];
1399
+ };
1400
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
1401
+ severity: "error";
1402
+ message: string;
1403
+ affectedFields: string[];
1404
+ };
1405
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
1406
+ severity: "error";
1407
+ message: string;
1408
+ affectedFields: string[];
1409
+ };
1410
+ STATE_REQUIRED: {
1411
+ severity: "error";
1412
+ message: string;
1413
+ affectedFields: string[];
1414
+ };
1415
+ INVALID_STATE: {
1416
+ severity: "error";
1417
+ message: string;
1418
+ affectedFields: string[];
1419
+ };
1420
+ STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
1421
+ severity: "error";
1422
+ message: string;
1423
+ params: string[];
1424
+ affectedFields: string[];
1425
+ };
1426
+ FILING_STATUS_REQUIRED: {
1427
+ severity: "error";
1428
+ message: string;
1429
+ affectedFields: string[];
1430
+ };
1431
+ INVALID_FILING_STATUS: {
1432
+ severity: "error";
1433
+ message: string;
1434
+ affectedFields: string[];
1435
+ };
1436
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
1437
+ severity: "error";
1438
+ message: string;
1439
+ affectedFields: string[];
1440
+ };
1441
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
1442
+ severity: "error";
1443
+ message: string;
1444
+ affectedFields: string[];
1445
+ };
1446
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
1447
+ severity: "error";
1448
+ message: string;
1449
+ affectedFields: string[];
1450
+ };
1451
+ FILES_UNDER_REQUIRED: {
1452
+ severity: "error";
1453
+ message: string;
1454
+ affectedFields: string[];
1455
+ };
1456
+ INVALID_FILES_UNDER: {
1457
+ severity: "error";
1458
+ message: string;
1459
+ affectedFields: string[];
1460
+ };
1461
+ FILES_UNDER_MUST_BE_FILING: {
1462
+ severity: "error";
1463
+ message: string;
1464
+ affectedFields: string[];
1465
+ };
1466
+ FILES_UNDER_MUST_BE_INCOME_TAX: {
1467
+ severity: "error";
1468
+ message: string;
1469
+ params: string[];
1470
+ affectedFields: string[];
1471
+ };
1472
+ FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
1473
+ severity: "error";
1474
+ message: string;
1475
+ params: string[];
1476
+ affectedFields: string[];
1477
+ };
1478
+ TAX_PAYMENT_FILING_REQUIRED: {
1479
+ severity: "error";
1480
+ message: string;
1481
+ affectedFields: string[];
1482
+ };
1483
+ INVALID_TAX_PAYMENT_FILING: {
1484
+ severity: "error";
1485
+ message: string;
1486
+ affectedFields: string[];
1487
+ };
1488
+ TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
1489
+ severity: "error";
1490
+ message: string;
1491
+ affectedFields: string[];
1492
+ };
1493
+ SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
1494
+ severity: "error";
1495
+ message: string;
1496
+ affectedFields: string[];
1497
+ };
1498
+ OPTION_IN_USE: {
1499
+ severity: "error";
1500
+ message: string;
1501
+ affectedFields: never[];
1502
+ };
1503
+ TEMPLATE_NOT_FOUND: {
1504
+ severity: "error";
1505
+ message: string;
1506
+ affectedFields: never[];
1237
1507
  };
1238
1508
  };
1239
1509
  readonly TEMPLATE_ASSIGNMENTS: {
1240
- readonly NAME_REQUIRED: {
1241
- readonly message: "Assignment name is required";
1242
- readonly affectedFields: readonly ["name"];
1243
- };
1244
- readonly NAME_ALREADY_EXISTS: {
1245
- readonly message: "This name is already in use on this template. Please enter a different name";
1246
- readonly affectedFields: readonly ["name"];
1247
- };
1248
- readonly DEFAULT_STAFF_REQUIRED: {
1249
- readonly message: "Default staff is required";
1250
- readonly affectedFields: readonly ["defaultStaff"];
1251
- };
1252
- readonly DEFAULT_STAFF_NOT_ALLOWED_FOR_TODO: {
1253
- readonly message: "Default staff cannot be set when the assignment type is 'To do'";
1254
- readonly affectedFields: readonly ["defaultStaff"];
1255
- };
1256
- readonly INVALID_STAFF: {
1257
- readonly message: "Invalid staff member";
1258
- readonly affectedFields: readonly ["defaultStaff"];
1259
- };
1260
- readonly ASSIGNMENT_TYPE_REQUIRED: {
1261
- readonly message: "Assignment type is required";
1262
- readonly affectedFields: readonly ["assignmentType"];
1263
- };
1264
- readonly INVALID_ASSIGNMENT_TYPE: {
1265
- readonly message: "Invalid assignment type";
1266
- readonly affectedFields: readonly ["assignmentType"];
1267
- };
1268
- readonly WORKFLOW_MUST_BE_REQUIRED: {
1269
- readonly message: "A workflow assignment must always be required. Please check the 'Required' checkbox to continue";
1270
- readonly affectedFields: readonly ["isRequired"];
1271
- };
1272
- readonly WORKFLOW_CANNOT_BE_DELETED: {
1273
- readonly message: "A workflow assignment cannot be deleted. Please uncheck the 'Can be deleted' checkbox to continue";
1274
- readonly affectedFields: readonly ["canBeDeleted"];
1275
- };
1276
- readonly ORDER_REQUIRED: {
1277
- readonly message: "Order is required for workflow assignments";
1278
- readonly affectedFields: readonly ["order"];
1279
- };
1280
- readonly ORDER_ALREADY_EXISTS: {
1281
- readonly message: "This order number is already in use on this template. Please enter a different number to set the workflow order";
1282
- readonly affectedFields: readonly ["order"];
1283
- };
1284
- readonly TEMPLATE_NOT_FOUND: {
1285
- readonly message: "Template not found";
1286
- readonly affectedFields: readonly [];
1287
- };
1288
- readonly ASSIGNMENT_NOT_FOUND: {
1289
- readonly message: "Assignment not found";
1290
- readonly affectedFields: readonly [];
1291
- };
1292
- readonly CANNOT_EDIT_IN_USE: {
1293
- readonly message: "This assignment is already being used by a client, and cannot be edited";
1294
- readonly affectedFields: readonly [];
1295
- };
1296
- readonly CANNOT_DELETE_IN_USE: {
1297
- readonly message: "This assignment is already being used by a client, and cannot be deleted";
1298
- readonly affectedFields: readonly [];
1299
- };
1300
- readonly INVALID_FILING_CATEGORY: {
1301
- readonly message: "Invalid filing category";
1302
- readonly affectedFields: readonly ["filingCategoryId"];
1303
- };
1304
- readonly ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
1305
- readonly message: "Assignment orders must be consecutive starting from 1. Expected orders: {expected}";
1306
- readonly params: readonly ["expected"];
1307
- readonly affectedFields: readonly ["assignments"];
1510
+ NAME_REQUIRED: {
1511
+ severity: "error";
1512
+ message: string;
1513
+ affectedFields: string[];
1514
+ };
1515
+ NAME_ALREADY_EXISTS: {
1516
+ severity: "error";
1517
+ message: string;
1518
+ affectedFields: string[];
1519
+ };
1520
+ DEFAULT_STAFF_REQUIRED: {
1521
+ severity: "error";
1522
+ message: string;
1523
+ affectedFields: string[];
1524
+ };
1525
+ DEFAULT_STAFF_NOT_ALLOWED_FOR_TODO: {
1526
+ severity: "error";
1527
+ message: string;
1528
+ affectedFields: string[];
1529
+ };
1530
+ INVALID_STAFF: {
1531
+ severity: "error";
1532
+ message: string;
1533
+ affectedFields: string[];
1534
+ };
1535
+ ASSIGNMENT_TYPE_REQUIRED: {
1536
+ severity: "error";
1537
+ message: string;
1538
+ affectedFields: string[];
1539
+ };
1540
+ INVALID_ASSIGNMENT_TYPE: {
1541
+ severity: "error";
1542
+ message: string;
1543
+ affectedFields: string[];
1544
+ };
1545
+ WORKFLOW_MUST_BE_REQUIRED: {
1546
+ severity: "error";
1547
+ message: string;
1548
+ affectedFields: string[];
1549
+ };
1550
+ WORKFLOW_CANNOT_BE_DELETED: {
1551
+ severity: "error";
1552
+ message: string;
1553
+ affectedFields: string[];
1554
+ };
1555
+ ORDER_REQUIRED: {
1556
+ severity: "error";
1557
+ message: string;
1558
+ affectedFields: string[];
1559
+ };
1560
+ ORDER_ALREADY_EXISTS: {
1561
+ severity: "error";
1562
+ message: string;
1563
+ affectedFields: string[];
1564
+ };
1565
+ TEMPLATE_NOT_FOUND: {
1566
+ severity: "error";
1567
+ message: string;
1568
+ affectedFields: never[];
1569
+ };
1570
+ ASSIGNMENT_NOT_FOUND: {
1571
+ severity: "error";
1572
+ message: string;
1573
+ affectedFields: never[];
1574
+ };
1575
+ CANNOT_EDIT_IN_USE: {
1576
+ severity: "error";
1577
+ message: string;
1578
+ affectedFields: never[];
1579
+ };
1580
+ CANNOT_DELETE_IN_USE: {
1581
+ severity: "error";
1582
+ message: string;
1583
+ affectedFields: never[];
1584
+ };
1585
+ INVALID_FILING_CATEGORY: {
1586
+ severity: "error";
1587
+ message: string;
1588
+ affectedFields: string[];
1589
+ };
1590
+ ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
1591
+ severity: "error";
1592
+ message: string;
1593
+ params: string[];
1594
+ affectedFields: string[];
1308
1595
  };
1309
1596
  };
1310
1597
  readonly TEMPLATE_STATES: {
1311
- readonly TEMPLATE_STATE_NOT_FOUND: {
1312
- readonly message: "Template state not found";
1313
- readonly affectedFields: readonly [];
1314
- };
1315
- readonly NAME_REQUIRED: {
1316
- readonly message: "Name is required";
1317
- readonly affectedFields: readonly ["name"];
1318
- };
1319
- readonly NAME_ALREADY_IN_USE: {
1320
- readonly message: "This name is already in use on this template. Please enter a different name.";
1321
- readonly affectedFields: readonly ["name"];
1322
- };
1323
- readonly STATE_REQUIRED: {
1324
- readonly message: "State is required";
1325
- readonly affectedFields: readonly ["stateId"];
1326
- };
1327
- readonly INVALID_STATE: {
1328
- readonly message: "Invalid state";
1329
- readonly affectedFields: readonly ["stateId"];
1330
- };
1331
- readonly STATE_LOCKED_WHEN_IN_USE: {
1332
- readonly message: "The State field cannot be changed because this state is already applied to a client.";
1333
- readonly affectedFields: readonly ["stateId"];
1334
- };
1335
- readonly DATE_STOPPED_REQUIRED_WHEN_INACTIVE: {
1336
- readonly message: "Date stopped is required when status is Inactive.";
1337
- readonly affectedFields: readonly ["dateStopped"];
1338
- };
1339
- readonly IS_ACTIVE_REQUIRED: {
1340
- readonly message: "Status is required";
1341
- readonly affectedFields: readonly ["isActive"];
1342
- };
1343
- readonly IN_USE_CANNOT_DELETE: {
1344
- readonly message: "This state is currently in use and cannot be deleted.";
1345
- readonly affectedFields: readonly [];
1346
- };
1347
- readonly TEMPLATE_MUST_BE_FILING_TYPE: {
1348
- readonly message: "States can only be added to Filing type templates.";
1349
- readonly affectedFields: readonly [];
1598
+ TEMPLATE_STATE_NOT_FOUND: {
1599
+ severity: "error";
1600
+ message: string;
1601
+ affectedFields: never[];
1602
+ };
1603
+ NAME_REQUIRED: {
1604
+ severity: "error";
1605
+ message: string;
1606
+ affectedFields: string[];
1607
+ };
1608
+ NAME_ALREADY_IN_USE: {
1609
+ severity: "error";
1610
+ message: string;
1611
+ affectedFields: string[];
1612
+ };
1613
+ STATE_REQUIRED: {
1614
+ severity: "error";
1615
+ message: string;
1616
+ affectedFields: string[];
1617
+ };
1618
+ INVALID_STATE: {
1619
+ severity: "error";
1620
+ message: string;
1621
+ affectedFields: string[];
1622
+ };
1623
+ STATE_LOCKED_WHEN_IN_USE: {
1624
+ severity: "error";
1625
+ message: string;
1626
+ affectedFields: string[];
1627
+ };
1628
+ DATE_STOPPED_REQUIRED_WHEN_INACTIVE: {
1629
+ severity: "error";
1630
+ message: string;
1631
+ affectedFields: string[];
1632
+ };
1633
+ IS_ACTIVE_REQUIRED: {
1634
+ severity: "error";
1635
+ message: string;
1636
+ affectedFields: string[];
1637
+ };
1638
+ IN_USE_CANNOT_DELETE: {
1639
+ severity: "error";
1640
+ message: string;
1641
+ affectedFields: never[];
1642
+ };
1643
+ TEMPLATE_MUST_BE_FILING_TYPE: {
1644
+ severity: "error";
1645
+ message: string;
1646
+ affectedFields: never[];
1350
1647
  };
1351
1648
  };
1352
1649
  readonly INCOME_ACCOUNTS: {
1353
- readonly NAME_REQUIRED: {
1354
- readonly message: "Income account name is required";
1355
- readonly affectedFields: readonly ["name"];
1356
- };
1357
- readonly NAME_ALREADY_EXISTS: {
1358
- readonly message: "Income account with the name '{name}' already exists";
1359
- readonly params: readonly ["name"];
1360
- readonly affectedFields: readonly ["name"];
1361
- };
1362
- readonly OPTION_IN_USE: {
1363
- readonly message: "This option is currently in use and cannot be deleted";
1364
- readonly affectedFields: readonly [];
1365
- };
1366
- readonly INCOME_ACCOUNT_NOT_FOUND: {
1367
- readonly message: "Income account not found";
1368
- readonly affectedFields: readonly [];
1650
+ NAME_REQUIRED: {
1651
+ severity: "error";
1652
+ message: string;
1653
+ affectedFields: string[];
1654
+ };
1655
+ NAME_ALREADY_EXISTS: {
1656
+ severity: "error";
1657
+ message: string;
1658
+ params: string[];
1659
+ affectedFields: string[];
1660
+ };
1661
+ OPTION_IN_USE: {
1662
+ severity: "error";
1663
+ message: string;
1664
+ affectedFields: never[];
1665
+ };
1666
+ INCOME_ACCOUNT_NOT_FOUND: {
1667
+ severity: "error";
1668
+ message: string;
1669
+ affectedFields: never[];
1369
1670
  };
1370
1671
  };
1371
1672
  readonly TEMPLATE_RECURRENCE_SETTINGS: {
1372
- readonly RECURRENCE_NOT_FOUND: {
1373
- readonly message: "Template recurrence setting not found";
1374
- readonly affectedFields: string[];
1375
- };
1376
- readonly RECURRENCE_FREQUENCY_REQUIRED: {
1377
- readonly message: "Recurrence frequency is required";
1378
- readonly affectedFields: readonly ["recurrenceFrequency"];
1379
- };
1380
- readonly RECURRENCE_FREQUENCY_NOT_FOUND: {
1381
- readonly message: "Recurrence frequency not found.";
1382
- readonly affectedFields: readonly ["recurrenceFrequencyId"];
1383
- };
1384
- readonly RECURRENCE_FREQUENCY_ALREADY_EXISTS: {
1385
- readonly message: "Each recurrence frequency can only be added to a template once. A recurrence for {recurrenceFrequency} already exists. Please edit that recurrence setup, or change the recurrence frequency selected here before saving.";
1386
- readonly params: readonly ["recurrenceFrequency"];
1387
- readonly affectedFields: readonly ["recurrenceFrequencyId"];
1388
- };
1389
- readonly INCOME_TAX_MUST_BE_ANNUAL: {
1390
- readonly message: "An Income tax filing template can only have an annual recurrence frequency. Please update your selection before saving.";
1391
- readonly affectedFields: readonly ["recurrenceFrequencyId"];
1392
- };
1393
- readonly BASED_ON_MUST_BE_PERIOD: {
1394
- readonly message: "A {templateType} template recurrence must always be based on 'Period'. Please update your selection before saving.";
1395
- readonly params: readonly ["templateType"];
1396
- readonly affectedFields: readonly ["basedOn"];
1397
- };
1398
- readonly BASED_ON_REQUIRED: {
1399
- readonly message: "Based on is required";
1400
- readonly affectedFields: readonly ["basedOn"];
1401
- };
1402
- readonly BASED_ON_MUST_BE_DATE: {
1403
- readonly message: "A {templateType} template recurrence must always be based on 'Date'. Please update your selection before saving.";
1404
- readonly params: readonly ["templateType"];
1405
- readonly affectedFields: readonly ["basedOn"];
1406
- };
1407
- readonly FIRST_MONTH_REQUIRED: {
1408
- readonly message: "First month is required";
1409
- readonly affectedFields: readonly ["firstMonth"];
1410
- };
1411
- readonly FIRST_MONTH_INVALID: {
1412
- readonly message: "First month must be a value between 1 and 12.";
1413
- readonly affectedFields: readonly ["firstMonth"];
1414
- };
1415
- readonly SECOND_MONTH_REQUIRED: {
1416
- readonly message: "Second month is required";
1417
- readonly affectedFields: readonly ["secondMonth"];
1418
- };
1419
- readonly SECOND_MONTH_INVALID: {
1420
- readonly message: "Second month must be a value between 1 and 12.";
1421
- readonly affectedFields: readonly ["secondMonth"];
1422
- };
1423
- readonly THIRD_MONTH_REQUIRED: {
1424
- readonly message: "Third month is required";
1425
- readonly affectedFields: readonly ["thirdMonth"];
1426
- };
1427
- readonly THIRD_MONTH_INVALID: {
1428
- readonly message: "Third month must be a value between 1 and 12.";
1429
- readonly affectedFields: readonly ["thirdMonth"];
1430
- };
1431
- readonly FOURTH_MONTH_REQUIRED: {
1432
- readonly message: "Fourth month is required";
1433
- readonly affectedFields: readonly ["fourthMonth"];
1434
- };
1435
- readonly FOURTH_MONTH_INVALID: {
1436
- readonly message: "Fourth month must be a value between 1 and 12.";
1437
- readonly affectedFields: readonly ["fourthMonth"];
1438
- };
1439
- readonly DAY_OF_MONTH_REQUIRED: {
1440
- readonly message: "Day of month is required";
1441
- readonly affectedFields: readonly ["dayOfMonth"];
1442
- };
1443
- readonly DAY_OF_MONTH_INVALID: {
1444
- readonly message: "Day of month must be a value between 1 and 31.";
1445
- readonly affectedFields: readonly ["dayOfMonth"];
1446
- };
1447
- readonly DUE_MONTH_REQUIRED: {
1448
- readonly message: "Due month is required";
1449
- readonly affectedFields: readonly ["dueMonth"];
1450
- };
1451
- readonly DUE_MONTH_INVALID: {
1452
- readonly message: "Due month must be a value between 0 and 12.";
1453
- readonly affectedFields: readonly ["dueMonth"];
1454
- };
1455
- readonly DUE_DAY_REQUIRED: {
1456
- readonly message: "Due day is required";
1457
- readonly affectedFields: readonly ["dueDay"];
1458
- };
1459
- readonly DUE_DAY_INVALID: {
1460
- readonly message: "Due day must be a value between 0 and 31.";
1461
- readonly affectedFields: readonly ["dueDay"];
1462
- };
1463
- readonly EXTEND_MONTH_REQUIRED: {
1464
- readonly message: "Extend month is required";
1465
- readonly affectedFields: readonly ["extendMonth"];
1466
- };
1467
- readonly EXTEND_MONTH_INVALID: {
1468
- readonly message: "Extend month cannot be a negative number.";
1469
- readonly affectedFields: readonly ["extendMonth"];
1470
- };
1471
- readonly GENERATE_BEFORE_REQUIRED: {
1472
- readonly message: "Before is required";
1473
- readonly affectedFields: readonly ["generateBeforeId"];
1474
- };
1475
- readonly GENERATE_TASKS_DAYS_REQUIRED: {
1476
- readonly message: "Generate task days is required";
1477
- readonly affectedFields: readonly ["generateTasksDays"];
1478
- };
1479
- readonly GENERATE_BEFORE_MUST_BE_DUE_DATE: {
1480
- readonly message: "This recurrence is based on a date, therefore it can only be generated before a due date. Please update your selection before saving.";
1481
- readonly affectedFields: readonly ["generateBeforeId"];
1482
- };
1483
- readonly DAY_EXCEEDS_MONTH_MAX: {
1484
- readonly message: "Day {dayOfMonth} is not valid for {monthName}. The maximum allowed day is {maxDays}.";
1485
- readonly params: readonly ["dayOfMonth", "monthName", "maxDays"];
1486
- readonly affectedFields: readonly ["dayOfMonth"];
1487
- };
1488
- readonly RECURRENCE_IN_USE_CANNOT_EDIT: {
1489
- readonly message: "This recurrence is currently applied to a client and cannot be edited.";
1490
- readonly affectedFields: string[];
1491
- };
1492
- readonly RECURRENCE_IN_USE_CANNOT_DELETE: {
1493
- readonly message: "This recurrence is currently in use and cannot be deleted.";
1494
- readonly affectedFields: string[];
1495
- };
1496
- readonly RECURRENCE_GENERATE_BEFORE_NOT_FOUND: {
1497
- readonly message: "Generate before option not found.";
1498
- readonly affectedFields: readonly ["generateBeforeId"];
1499
- };
1500
- readonly RECURRENCE_REQUIRED_FOR_TEMPLATE_TYPE: {
1501
- readonly message: "A {templateType} template must have a recurrence set up. Please add a recurrence before saving.";
1502
- readonly params: readonly ["templateType"];
1503
- readonly affectedFields: readonly ["recurrenceSettings"];
1673
+ RECURRENCE_NOT_FOUND: {
1674
+ severity: "error";
1675
+ message: string;
1676
+ affectedFields: string[];
1677
+ };
1678
+ RECURRENCE_FREQUENCY_REQUIRED: {
1679
+ severity: "error";
1680
+ message: string;
1681
+ affectedFields: string[];
1682
+ };
1683
+ RECURRENCE_FREQUENCY_NOT_FOUND: {
1684
+ severity: "error";
1685
+ message: string;
1686
+ affectedFields: string[];
1687
+ };
1688
+ RECURRENCE_FREQUENCY_ALREADY_EXISTS: {
1689
+ severity: "error";
1690
+ message: string;
1691
+ params: string[];
1692
+ affectedFields: string[];
1693
+ };
1694
+ INCOME_TAX_MUST_BE_ANNUAL: {
1695
+ severity: "error";
1696
+ message: string;
1697
+ affectedFields: string[];
1698
+ };
1699
+ BASED_ON_MUST_BE_PERIOD: {
1700
+ severity: "error";
1701
+ message: string;
1702
+ params: string[];
1703
+ affectedFields: string[];
1704
+ };
1705
+ BASED_ON_REQUIRED: {
1706
+ severity: "error";
1707
+ message: string;
1708
+ affectedFields: string[];
1709
+ };
1710
+ BASED_ON_MUST_BE_DATE: {
1711
+ severity: "error";
1712
+ message: string;
1713
+ params: string[];
1714
+ affectedFields: string[];
1715
+ };
1716
+ FIRST_MONTH_REQUIRED: {
1717
+ severity: "error";
1718
+ message: string;
1719
+ affectedFields: string[];
1720
+ };
1721
+ FIRST_MONTH_INVALID: {
1722
+ severity: "error";
1723
+ message: string;
1724
+ affectedFields: string[];
1725
+ };
1726
+ SECOND_MONTH_REQUIRED: {
1727
+ severity: "error";
1728
+ message: string;
1729
+ affectedFields: string[];
1730
+ };
1731
+ SECOND_MONTH_INVALID: {
1732
+ severity: "error";
1733
+ message: string;
1734
+ affectedFields: string[];
1735
+ };
1736
+ THIRD_MONTH_REQUIRED: {
1737
+ severity: "error";
1738
+ message: string;
1739
+ affectedFields: string[];
1740
+ };
1741
+ THIRD_MONTH_INVALID: {
1742
+ severity: "error";
1743
+ message: string;
1744
+ affectedFields: string[];
1745
+ };
1746
+ FOURTH_MONTH_REQUIRED: {
1747
+ severity: "error";
1748
+ message: string;
1749
+ affectedFields: string[];
1750
+ };
1751
+ FOURTH_MONTH_INVALID: {
1752
+ severity: "error";
1753
+ message: string;
1754
+ affectedFields: string[];
1755
+ };
1756
+ DAY_OF_MONTH_REQUIRED: {
1757
+ severity: "error";
1758
+ message: string;
1759
+ affectedFields: string[];
1760
+ };
1761
+ DAY_OF_MONTH_INVALID: {
1762
+ severity: "error";
1763
+ message: string;
1764
+ affectedFields: string[];
1765
+ };
1766
+ DUE_MONTH_REQUIRED: {
1767
+ severity: "error";
1768
+ message: string;
1769
+ affectedFields: string[];
1770
+ };
1771
+ DUE_MONTH_INVALID: {
1772
+ severity: "error";
1773
+ message: string;
1774
+ affectedFields: string[];
1775
+ };
1776
+ DUE_DAY_REQUIRED: {
1777
+ severity: "error";
1778
+ message: string;
1779
+ affectedFields: string[];
1780
+ };
1781
+ DUE_DAY_INVALID: {
1782
+ severity: "error";
1783
+ message: string;
1784
+ affectedFields: string[];
1785
+ };
1786
+ EXTEND_MONTH_REQUIRED: {
1787
+ severity: "error";
1788
+ message: string;
1789
+ affectedFields: string[];
1790
+ };
1791
+ EXTEND_MONTH_INVALID: {
1792
+ severity: "error";
1793
+ message: string;
1794
+ affectedFields: string[];
1795
+ };
1796
+ GENERATE_BEFORE_REQUIRED: {
1797
+ severity: "error";
1798
+ message: string;
1799
+ affectedFields: string[];
1800
+ };
1801
+ GENERATE_TASKS_DAYS_REQUIRED: {
1802
+ severity: "error";
1803
+ message: string;
1804
+ affectedFields: string[];
1805
+ };
1806
+ GENERATE_BEFORE_MUST_BE_DUE_DATE: {
1807
+ severity: "error";
1808
+ message: string;
1809
+ affectedFields: string[];
1810
+ };
1811
+ DAY_EXCEEDS_MONTH_MAX: {
1812
+ severity: "error";
1813
+ message: string;
1814
+ params: string[];
1815
+ affectedFields: string[];
1816
+ };
1817
+ RECURRENCE_IN_USE_CANNOT_EDIT: {
1818
+ severity: "error";
1819
+ message: string;
1820
+ affectedFields: string[];
1821
+ };
1822
+ RECURRENCE_IN_USE_CANNOT_DELETE: {
1823
+ severity: "error";
1824
+ message: string;
1825
+ affectedFields: string[];
1826
+ };
1827
+ RECURRENCE_GENERATE_BEFORE_NOT_FOUND: {
1828
+ severity: "error";
1829
+ message: string;
1830
+ affectedFields: string[];
1831
+ };
1832
+ RECURRENCE_REQUIRED_FOR_TEMPLATE_TYPE: {
1833
+ severity: "error";
1834
+ message: string;
1835
+ params: string[];
1836
+ affectedFields: string[];
1504
1837
  };
1505
1838
  };
1506
1839
  };