@forwardslashns/taskit-validation-messages 1.0.21 → 1.0.23
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.
|
@@ -113,14 +113,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
113
113
|
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.";
|
|
114
114
|
readonly params: readonly ["clientDateEstablished", "domesticState", "domesticStateStartingDate"];
|
|
115
115
|
};
|
|
116
|
-
readonly NOT_ALIGNED_DATE_ESTABLISHED__STATES_STARTING_DATE: {
|
|
117
|
-
readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
|
|
118
|
-
readonly params: readonly ["clientStartDate"];
|
|
119
|
-
};
|
|
120
|
-
readonly NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
121
|
-
readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
|
|
122
|
-
readonly params: readonly ["clientCloseDate"];
|
|
123
|
-
};
|
|
124
116
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
|
|
125
117
|
readonly message: "Adjust the close date to be after the date established.";
|
|
126
118
|
};
|
|
@@ -147,8 +139,9 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
147
139
|
readonly NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
|
|
148
140
|
readonly message: "Filing type starting date needs to be before the ending date";
|
|
149
141
|
};
|
|
150
|
-
readonly
|
|
151
|
-
readonly message: "
|
|
142
|
+
readonly NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
|
|
143
|
+
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.";
|
|
144
|
+
readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
|
|
152
145
|
};
|
|
153
146
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
|
|
154
147
|
readonly message: "Choose an Account ID";
|
|
@@ -210,15 +203,26 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
210
203
|
readonly CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
211
204
|
readonly message: "This client cannot be deleted because it has contacts associated";
|
|
212
205
|
};
|
|
206
|
+
readonly STATES_IDS_DOES_NOT_EXIST: {
|
|
207
|
+
readonly message: "States with ids '{ids}' do not exist";
|
|
208
|
+
readonly params: readonly ["ids"];
|
|
209
|
+
};
|
|
213
210
|
readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
214
211
|
readonly message: "At least one domestic state should exist";
|
|
215
212
|
};
|
|
216
213
|
readonly STATES_STARTING_DATE_NOT_POPULATED: {
|
|
217
214
|
readonly message: "States Starting Date cannot be Empty";
|
|
218
215
|
};
|
|
219
|
-
readonly
|
|
220
|
-
readonly message: "
|
|
221
|
-
|
|
216
|
+
readonly NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
|
|
217
|
+
readonly message: "Domestic state starting date needs to be before the ending date";
|
|
218
|
+
};
|
|
219
|
+
readonly NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
220
|
+
readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
|
|
221
|
+
readonly params: readonly ["clientStartDate"];
|
|
222
|
+
};
|
|
223
|
+
readonly NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
224
|
+
readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
|
|
225
|
+
readonly params: readonly ["clientCloseDate"];
|
|
222
226
|
};
|
|
223
227
|
readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
224
228
|
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.";
|
|
@@ -240,9 +244,8 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
240
244
|
readonly message: "There cannot be two foreign states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing foreign state/s to avoid an overlap.";
|
|
241
245
|
readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
|
|
242
246
|
};
|
|
243
|
-
readonly
|
|
244
|
-
readonly message: "Only the last
|
|
245
|
-
readonly params: readonly ["residence"];
|
|
247
|
+
readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
248
|
+
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.";
|
|
246
249
|
};
|
|
247
250
|
};
|
|
248
251
|
readonly FILING_CATEGORY: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmWtB,CAAC"}
|
|
@@ -120,18 +120,6 @@ exports.VALIDATION_MESSAGES = {
|
|
|
120
120
|
'domesticStateStartingDate',
|
|
121
121
|
],
|
|
122
122
|
},
|
|
123
|
-
NOT_ALIGNED_DATE_ESTABLISHED__STATES_STARTING_DATE: {
|
|
124
|
-
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
125
|
-
params: [
|
|
126
|
-
'clientStartDate',
|
|
127
|
-
],
|
|
128
|
-
},
|
|
129
|
-
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
130
|
-
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
131
|
-
params: [
|
|
132
|
-
'clientCloseDate',
|
|
133
|
-
],
|
|
134
|
-
},
|
|
135
123
|
NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
|
|
136
124
|
message: `Adjust the close date to be after the date established.`,
|
|
137
125
|
},
|
|
@@ -158,8 +146,9 @@ exports.VALIDATION_MESSAGES = {
|
|
|
158
146
|
NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
|
|
159
147
|
message: `Filing type starting date needs to be before the ending date`,
|
|
160
148
|
},
|
|
161
|
-
|
|
162
|
-
message: `
|
|
149
|
+
NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
|
|
150
|
+
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.`,
|
|
151
|
+
params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
|
|
163
152
|
},
|
|
164
153
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
|
|
165
154
|
message: `Choose an Account ID`,
|
|
@@ -221,15 +210,30 @@ exports.VALIDATION_MESSAGES = {
|
|
|
221
210
|
CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
222
211
|
message: `This client cannot be deleted because it has contacts associated`,
|
|
223
212
|
},
|
|
213
|
+
STATES_IDS_DOES_NOT_EXIST: {
|
|
214
|
+
message: `States with ids '{ids}' do not exist`,
|
|
215
|
+
params: ['ids'],
|
|
216
|
+
},
|
|
224
217
|
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
225
218
|
message: `At least one domestic state should exist`,
|
|
226
219
|
},
|
|
227
220
|
STATES_STARTING_DATE_NOT_POPULATED: {
|
|
228
221
|
message: `States Starting Date cannot be Empty`,
|
|
229
222
|
},
|
|
230
|
-
|
|
231
|
-
message: `
|
|
232
|
-
|
|
223
|
+
NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
|
|
224
|
+
message: `Domestic state starting date needs to be before the ending date`,
|
|
225
|
+
},
|
|
226
|
+
NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
227
|
+
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
228
|
+
params: [
|
|
229
|
+
'clientStartDate',
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
233
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
234
|
+
params: [
|
|
235
|
+
'clientCloseDate',
|
|
236
|
+
],
|
|
233
237
|
},
|
|
234
238
|
DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
235
239
|
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
@@ -251,9 +255,8 @@ exports.VALIDATION_MESSAGES = {
|
|
|
251
255
|
message: `There cannot be two foreign states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing foreign state/s to avoid an overlap.`,
|
|
252
256
|
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
253
257
|
},
|
|
254
|
-
|
|
255
|
-
message: `Only the last
|
|
256
|
-
params: ['residence'],
|
|
258
|
+
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
259
|
+
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.`,
|
|
257
260
|
},
|
|
258
261
|
},
|
|
259
262
|
FILING_CATEGORY: {
|
package/package.json
CHANGED
|
@@ -117,18 +117,6 @@ export const VALIDATION_MESSAGES = {
|
|
|
117
117
|
'domesticStateStartingDate',
|
|
118
118
|
],
|
|
119
119
|
},
|
|
120
|
-
NOT_ALIGNED_DATE_ESTABLISHED__STATES_STARTING_DATE: {
|
|
121
|
-
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
122
|
-
params: [
|
|
123
|
-
'clientStartDate',
|
|
124
|
-
],
|
|
125
|
-
},
|
|
126
|
-
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
127
|
-
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
128
|
-
params: [
|
|
129
|
-
'clientCloseDate',
|
|
130
|
-
],
|
|
131
|
-
},
|
|
132
120
|
NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
|
|
133
121
|
message: `Adjust the close date to be after the date established.`,
|
|
134
122
|
},
|
|
@@ -155,8 +143,9 @@ export const VALIDATION_MESSAGES = {
|
|
|
155
143
|
NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
|
|
156
144
|
message: `Filing type starting date needs to be before the ending date`,
|
|
157
145
|
},
|
|
158
|
-
|
|
159
|
-
message: `
|
|
146
|
+
NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
|
|
147
|
+
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.`,
|
|
148
|
+
params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
|
|
160
149
|
},
|
|
161
150
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
|
|
162
151
|
message: `Choose an Account ID`,
|
|
@@ -218,15 +207,30 @@ export const VALIDATION_MESSAGES = {
|
|
|
218
207
|
CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
219
208
|
message: `This client cannot be deleted because it has contacts associated`,
|
|
220
209
|
},
|
|
210
|
+
STATES_IDS_DOES_NOT_EXIST: {
|
|
211
|
+
message: `States with ids '{ids}' do not exist`,
|
|
212
|
+
params: ['ids'],
|
|
213
|
+
},
|
|
221
214
|
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
222
215
|
message: `At least one domestic state should exist`,
|
|
223
216
|
},
|
|
224
217
|
STATES_STARTING_DATE_NOT_POPULATED: {
|
|
225
218
|
message: `States Starting Date cannot be Empty`,
|
|
226
219
|
},
|
|
227
|
-
|
|
228
|
-
message: `
|
|
229
|
-
|
|
220
|
+
NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
|
|
221
|
+
message: `Domestic state starting date needs to be before the ending date`,
|
|
222
|
+
},
|
|
223
|
+
NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
|
|
224
|
+
message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
|
|
225
|
+
params: [
|
|
226
|
+
'clientStartDate',
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
|
|
230
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
231
|
+
params: [
|
|
232
|
+
'clientCloseDate',
|
|
233
|
+
],
|
|
230
234
|
},
|
|
231
235
|
DOMESTIC_STATES_DATE_GAP_DETECTED: {
|
|
232
236
|
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
@@ -248,11 +252,9 @@ export const VALIDATION_MESSAGES = {
|
|
|
248
252
|
message: `There cannot be two foreign states in the same timeframe. The state of {state} has a timeframe starting {stateStartDate} and ending {stateEndDate}. Please adjust the dates on the new or existing foreign state/s to avoid an overlap.`,
|
|
249
253
|
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
250
254
|
},
|
|
251
|
-
|
|
252
|
-
message: `Only the last
|
|
253
|
-
params: ['residence'],
|
|
255
|
+
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
256
|
+
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.`,
|
|
254
257
|
},
|
|
255
|
-
|
|
256
258
|
},
|
|
257
259
|
FILING_CATEGORY: {
|
|
258
260
|
INVALID_REQUEST: {
|