@forwardslashns/taskit-validation-messages 1.0.22 → 1.0.24

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 NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
151
- readonly message: "Domestic state starting date needs to be before the ending date";
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 NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
220
- 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.";
221
- readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
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.";
@@ -232,13 +236,9 @@ export declare const VALIDATION_MESSAGES: {
232
236
  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}.";
233
237
  readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
234
238
  };
235
- readonly DOMESTIC_STATES_DATES_OVERLAP: {
236
- 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.";
237
- readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
238
- };
239
- readonly FOREIGN_STATES_DATES_OVERLAP: {
240
- 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
- readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
239
+ readonly STATES_DATES_OVERLAP: {
240
+ readonly message: "There cannot be two {residence} 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.";
241
+ readonly params: readonly ["state", "stateStartDate", "stateEndDate", "residence"];
242
242
  };
243
243
  readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
244
244
  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.";
@@ -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
- NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
162
- message: `Domestic state starting date needs to be before the ending date`,
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
- NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
231
- 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.`,
232
- params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
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.`,
@@ -243,13 +247,9 @@ exports.VALIDATION_MESSAGES = {
243
247
  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}.`,
244
248
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
245
249
  },
246
- DOMESTIC_STATES_DATES_OVERLAP: {
247
- 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.`,
248
- params: ['state', 'stateStartDate', 'stateEndDate'],
249
- },
250
- FOREIGN_STATES_DATES_OVERLAP: {
251
- 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
- params: ['state', 'stateStartDate', 'stateEndDate'],
250
+ STATES_DATES_OVERLAP: {
251
+ message: `There cannot be two {residence} 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.`,
252
+ params: ['state', 'stateStartDate', 'stateEndDate', 'residence'],
253
253
  },
254
254
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
255
255
  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.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -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
- NOT_ALIGNED_STATE_STARTING_ENDING_DATE: {
159
- message: `Domestic state starting date needs to be before the ending date`,
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
- NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
228
- 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.`,
229
- params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
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.`,
@@ -240,13 +244,9 @@ export const VALIDATION_MESSAGES = {
240
244
  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}.`,
241
245
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
242
246
  },
243
- DOMESTIC_STATES_DATES_OVERLAP: {
244
- 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.`,
245
- params: ['state', 'stateStartDate', 'stateEndDate'],
246
- },
247
- FOREIGN_STATES_DATES_OVERLAP: {
248
- 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
- params: ['state', 'stateStartDate', 'stateEndDate'],
247
+ STATES_DATES_OVERLAP: {
248
+ message: `There cannot be two {residence} 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.`,
249
+ params: ['state', 'stateStartDate', 'stateEndDate', 'residence'],
250
250
  },
251
251
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
252
252
  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.`,