@forwardslashns/taskit-validation-messages 1.0.10 → 1.0.12
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.
|
@@ -117,6 +117,10 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
117
117
|
readonly message: "Adjust the start date to be on or after the client's date established, {domesticStateStartingDate}.";
|
|
118
118
|
readonly params: readonly ["domesticStateStartingDate"];
|
|
119
119
|
};
|
|
120
|
+
readonly NOT_ALIGNED_CLOSE_DATE_DOMESTIC_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
|
+
};
|
|
120
124
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
|
|
121
125
|
readonly message: "Adjust the close date to be after the date established.";
|
|
122
126
|
};
|
|
@@ -128,10 +132,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
128
132
|
readonly message: "One or more filing type statuses have a start date which is after the client’s close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client’s close date, or update the client's close date.";
|
|
129
133
|
readonly params: readonly ["clientCloseDate", "filingType", "filingTypeStartingDate"];
|
|
130
134
|
};
|
|
131
|
-
readonly NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
|
|
132
|
-
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.";
|
|
133
|
-
readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
|
|
134
|
-
};
|
|
135
135
|
readonly ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
|
|
136
136
|
readonly message: "Current Entity Type Starting Date cannot be Empty";
|
|
137
137
|
};
|
|
@@ -210,21 +210,29 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
210
210
|
readonly CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
211
211
|
readonly message: "This client cannot be deleted because it has contacts associated";
|
|
212
212
|
};
|
|
213
|
-
readonly
|
|
214
|
-
readonly message: "
|
|
215
|
-
readonly params: readonly ["
|
|
213
|
+
readonly NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
|
|
214
|
+
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.";
|
|
215
|
+
readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
|
|
216
216
|
};
|
|
217
217
|
readonly DOMESTIC_STATE_DATE_GAP_DETECTED: {
|
|
218
218
|
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.";
|
|
219
219
|
readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
|
|
220
220
|
};
|
|
221
|
+
readonly DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
222
|
+
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}. ";
|
|
223
|
+
readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
|
|
224
|
+
};
|
|
221
225
|
readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
222
226
|
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}.";
|
|
223
227
|
readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
|
|
224
228
|
};
|
|
225
|
-
readonly
|
|
226
|
-
readonly message: "There
|
|
227
|
-
readonly params: readonly ["state", "
|
|
229
|
+
readonly DOMESTIC_STATES_DATES_OVERLAP: {
|
|
230
|
+
readonly message: "There cannot be two domestic 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 domestic state/s to avoid an overlap.";
|
|
231
|
+
readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
|
|
232
|
+
};
|
|
233
|
+
readonly FOREIGN_STATES_DATES_OVERLAP: {
|
|
234
|
+
readonly message: "There is already a foreign state, {state}, with a date of {stateStartDate}. There cannot be an overlap of dates between state entries. Please update the starting date to be after {stateEndDate}.";
|
|
235
|
+
readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
|
|
228
236
|
};
|
|
229
237
|
};
|
|
230
238
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuVtB,CAAC"}
|
|
@@ -126,6 +126,12 @@ exports.VALIDATION_MESSAGES = {
|
|
|
126
126
|
'domesticStateStartingDate',
|
|
127
127
|
],
|
|
128
128
|
},
|
|
129
|
+
NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATES_STARTING_DATE: {
|
|
130
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
131
|
+
params: [
|
|
132
|
+
'clientCloseDate',
|
|
133
|
+
],
|
|
134
|
+
},
|
|
129
135
|
NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
|
|
130
136
|
message: `Adjust the close date to be after the date established.`,
|
|
131
137
|
},
|
|
@@ -137,10 +143,6 @@ exports.VALIDATION_MESSAGES = {
|
|
|
137
143
|
message: `One or more filing type statuses have a start date which is after the client’s close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client’s close date, or update the client's close date.`,
|
|
138
144
|
params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
|
|
139
145
|
},
|
|
140
|
-
NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
|
|
141
|
-
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.`,
|
|
142
|
-
params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
|
|
143
|
-
},
|
|
144
146
|
ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
|
|
145
147
|
message: `Current Entity Type Starting Date cannot be Empty`,
|
|
146
148
|
},
|
|
@@ -219,21 +221,29 @@ exports.VALIDATION_MESSAGES = {
|
|
|
219
221
|
CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
220
222
|
message: `This client cannot be deleted because it has contacts associated`,
|
|
221
223
|
},
|
|
222
|
-
|
|
223
|
-
message: `
|
|
224
|
-
params: ['
|
|
224
|
+
NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
|
|
225
|
+
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.`,
|
|
226
|
+
params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
|
|
225
227
|
},
|
|
226
228
|
DOMESTIC_STATE_DATE_GAP_DETECTED: {
|
|
227
229
|
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
228
230
|
params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
|
|
229
231
|
},
|
|
232
|
+
DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
233
|
+
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}. `,
|
|
234
|
+
params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
235
|
+
},
|
|
230
236
|
DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
231
237
|
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}.`,
|
|
232
238
|
params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
|
|
233
239
|
},
|
|
234
|
-
|
|
235
|
-
message: `There
|
|
236
|
-
params: ['state', '
|
|
240
|
+
DOMESTIC_STATES_DATES_OVERLAP: {
|
|
241
|
+
message: `There cannot be two domestic 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 domestic state/s to avoid an overlap.`,
|
|
242
|
+
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
243
|
+
},
|
|
244
|
+
FOREIGN_STATES_DATES_OVERLAP: {
|
|
245
|
+
message: `There is already a foreign state, {state}, with a date of {stateStartDate}. There cannot be an overlap of dates between state entries. Please update the starting date to be after {stateEndDate}.`,
|
|
246
|
+
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
237
247
|
},
|
|
238
248
|
},
|
|
239
249
|
FILING_CATEGORY: {
|
package/package.json
CHANGED
|
@@ -123,6 +123,12 @@ export const VALIDATION_MESSAGES = {
|
|
|
123
123
|
'domesticStateStartingDate',
|
|
124
124
|
],
|
|
125
125
|
},
|
|
126
|
+
NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATES_STARTING_DATE: {
|
|
127
|
+
message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
|
|
128
|
+
params: [
|
|
129
|
+
'clientCloseDate',
|
|
130
|
+
],
|
|
131
|
+
},
|
|
126
132
|
NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
|
|
127
133
|
message: `Adjust the close date to be after the date established.`,
|
|
128
134
|
},
|
|
@@ -134,10 +140,6 @@ export const VALIDATION_MESSAGES = {
|
|
|
134
140
|
message: `One or more filing type statuses have a start date which is after the client’s close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client’s close date, or update the client's close date.`,
|
|
135
141
|
params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
|
|
136
142
|
},
|
|
137
|
-
NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
|
|
138
|
-
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.`,
|
|
139
|
-
params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
|
|
140
|
-
},
|
|
141
143
|
ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
|
|
142
144
|
message: `Current Entity Type Starting Date cannot be Empty`,
|
|
143
145
|
},
|
|
@@ -216,22 +218,31 @@ export const VALIDATION_MESSAGES = {
|
|
|
216
218
|
CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
|
|
217
219
|
message: `This client cannot be deleted because it has contacts associated`,
|
|
218
220
|
},
|
|
219
|
-
|
|
220
|
-
message: `
|
|
221
|
-
params: ['
|
|
221
|
+
NOT_ALIGNED_CLOSE_DATE_DOMEASTIC_STATE_STARTING_DATE: {
|
|
222
|
+
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.`,
|
|
223
|
+
params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
|
|
222
224
|
},
|
|
223
225
|
DOMESTIC_STATE_DATE_GAP_DETECTED: {
|
|
224
226
|
message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
|
|
225
227
|
params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
|
|
226
228
|
},
|
|
229
|
+
DOMESTIC_STATE_CONSECUTIVE_DUPLICATES_DETECTED: {
|
|
230
|
+
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}. `,
|
|
231
|
+
params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
|
|
232
|
+
},
|
|
227
233
|
DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
228
234
|
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}.`,
|
|
229
235
|
params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
|
|
230
236
|
},
|
|
231
|
-
|
|
232
|
-
message: `There
|
|
233
|
-
params: ['state', '
|
|
237
|
+
DOMESTIC_STATES_DATES_OVERLAP: {
|
|
238
|
+
message: `There cannot be two domestic 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 domestic state/s to avoid an overlap.`,
|
|
239
|
+
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
240
|
+
},
|
|
241
|
+
FOREIGN_STATES_DATES_OVERLAP: {
|
|
242
|
+
message: `There is already a foreign state, {state}, with a date of {stateStartDate}. There cannot be an overlap of dates between state entries. Please update the starting date to be after {stateEndDate}.`,
|
|
243
|
+
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
234
244
|
},
|
|
245
|
+
|
|
235
246
|
},
|
|
236
247
|
FILING_CATEGORY: {
|
|
237
248
|
INVALID_REQUEST: {
|