@forwardslashns/taskit-validation-messages 1.0.1 → 1.0.3

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.
@@ -206,6 +206,14 @@ export declare const VALIDATION_MESSAGES: {
206
206
  readonly CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
207
207
  readonly message: "This client cannot be deleted because it has contacts associated";
208
208
  };
209
+ readonly DOMESTIC_STATE_DATES_OVERLAP: {
210
+ readonly message: "The entry already has {state} starting from {stateStartDate} to {stateEndDate}. Your current state overlaps with that time. Please adjust the dates so the state timeframes do not overlap.";
211
+ readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
212
+ };
213
+ readonly DOMESTIC_STATE_DATE_GAP_DETECTED: {
214
+ readonly message: "There is a gap in the timeframes between {state}, ending {stateEndDate}, and {state}, starting {stateStartDate}. Please adjust the dates to fill this gap.";
215
+ readonly params: readonly ["state", "stateStartDate", "stateEndDate"];
216
+ };
209
217
  };
210
218
  readonly FILING_CATEGORY: {
211
219
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsTtB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8TtB,CAAC"}
@@ -213,6 +213,14 @@ exports.VALIDATION_MESSAGES = {
213
213
  CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
214
214
  message: `This client cannot be deleted because it has contacts associated`,
215
215
  },
216
+ DOMESTIC_STATE_DATES_OVERLAP: {
217
+ message: `The entry already has {state} starting from {stateStartDate} to {stateEndDate}. Your current state overlaps with that time. Please adjust the dates so the state timeframes do not overlap.`,
218
+ params: ['state', 'stateStartDate', 'stateEndDate'],
219
+ },
220
+ DOMESTIC_STATE_DATE_GAP_DETECTED: {
221
+ message: `There is a gap in the timeframes between {state}, ending {stateEndDate}, and {state}, starting {stateStartDate}. Please adjust the dates to fill this gap.`,
222
+ params: ['state', 'stateStartDate', 'stateEndDate'],
223
+ },
216
224
  },
217
225
  FILING_CATEGORY: {
218
226
  INVALID_REQUEST: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -210,6 +210,14 @@ export const VALIDATION_MESSAGES = {
210
210
  CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
211
211
  message: `This client cannot be deleted because it has contacts associated`,
212
212
  },
213
+ DOMESTIC_STATE_DATES_OVERLAP: {
214
+ message: `The entry already has {state} starting from {stateStartDate} to {stateEndDate}. Your current state overlaps with that time. Please adjust the dates so the state timeframes do not overlap.`,
215
+ params: ['state', 'stateStartDate', 'stateEndDate'],
216
+ },
217
+ DOMESTIC_STATE_DATE_GAP_DETECTED: {
218
+ message: `There is a gap in the timeframes between {state}, ending {stateEndDate}, and {state}, starting {stateStartDate}. Please adjust the dates to fill this gap.`,
219
+ params: ['state', 'stateStartDate', 'stateEndDate'],
220
+ },
213
221
  },
214
222
  FILING_CATEGORY: {
215
223
  INVALID_REQUEST: {