@forwardslashns/taskit-validation-messages 1.0.12 → 1.0.14
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.
- package/dist/validation/validation-message.formatter.js +1 -1
- package/dist/validation/validation-messages.d.ts +4 -1
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/dist/validation/validation-messages.js +4 -1
- package/package.json +1 -1
- package/src/validation/validation-message.formatter.ts +1 -1
- package/src/validation/validation-messages.ts +4 -1
|
@@ -35,7 +35,7 @@ const getValidationMessage = (feature, featureError, params) => {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
expectedParams.forEach((param) => {
|
|
38
|
-
message = message.
|
|
38
|
+
message = message.replaceAll(`{${param}}`, inputParams[param]);
|
|
39
39
|
});
|
|
40
40
|
return message;
|
|
41
41
|
};
|
|
@@ -231,9 +231,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
231
231
|
readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
|
|
232
232
|
};
|
|
233
233
|
readonly FOREIGN_STATES_DATES_OVERLAP: {
|
|
234
|
-
readonly message: "There
|
|
234
|
+
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.";
|
|
235
235
|
readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
|
|
236
236
|
};
|
|
237
|
+
readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
238
|
+
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.";
|
|
239
|
+
};
|
|
237
240
|
};
|
|
238
241
|
readonly FILING_CATEGORY: {
|
|
239
242
|
readonly INVALID_REQUEST: {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0VtB,CAAC"}
|
|
@@ -242,9 +242,12 @@ exports.VALIDATION_MESSAGES = {
|
|
|
242
242
|
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
243
243
|
},
|
|
244
244
|
FOREIGN_STATES_DATES_OVERLAP: {
|
|
245
|
-
message: `There
|
|
245
|
+
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.`,
|
|
246
246
|
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
247
247
|
},
|
|
248
|
+
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
249
|
+
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.`,
|
|
250
|
+
},
|
|
248
251
|
},
|
|
249
252
|
FILING_CATEGORY: {
|
|
250
253
|
INVALID_REQUEST: {
|
package/package.json
CHANGED
|
@@ -239,9 +239,12 @@ export const VALIDATION_MESSAGES = {
|
|
|
239
239
|
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
240
240
|
},
|
|
241
241
|
FOREIGN_STATES_DATES_OVERLAP: {
|
|
242
|
-
message: `There
|
|
242
|
+
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.`,
|
|
243
243
|
params: ['state', 'stateStartDate', 'stateEndDate'],
|
|
244
244
|
},
|
|
245
|
+
ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
|
|
246
|
+
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.`,
|
|
247
|
+
},
|
|
245
248
|
|
|
246
249
|
},
|
|
247
250
|
FILING_CATEGORY: {
|