@forwardslashns/taskit-validation-messages 1.9.7 → 1.9.9

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.
@@ -126,14 +126,6 @@ export declare const CLIENT_CURRENT_ENTITY_STATUS: {
126
126
  readonly message: "This client cannot be deleted because it has futures associated";
127
127
  readonly affectedFields: readonly [];
128
128
  };
129
- readonly CLIENT_COULD_NOT_BE_DELETED_PROJECTS_EXIST: {
130
- readonly message: "This client cannot be deleted because it has projects associated";
131
- readonly affectedFields: readonly [];
132
- };
133
- readonly CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
134
- readonly message: "This client cannot be deleted because it has tasks associated";
135
- readonly affectedFields: readonly [];
136
- };
137
129
  readonly CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
138
130
  readonly message: "This client cannot be deleted because it has addresses associated";
139
131
  readonly affectedFields: readonly [];
@@ -1 +1 @@
1
- {"version":3,"file":"client-current-entity-statuses.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-current-entity-statuses.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwK/B,CAAC"}
1
+ {"version":3,"file":"client-current-entity-statuses.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-current-entity-statuses.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgK/B,CAAC"}
@@ -129,14 +129,6 @@ exports.CLIENT_CURRENT_ENTITY_STATUS = {
129
129
  message: `This client cannot be deleted because it has futures associated`,
130
130
  affectedFields: [],
131
131
  },
132
- CLIENT_COULD_NOT_BE_DELETED_PROJECTS_EXIST: {
133
- message: `This client cannot be deleted because it has projects associated`,
134
- affectedFields: [],
135
- },
136
- CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
137
- message: `This client cannot be deleted because it has tasks associated`,
138
- affectedFields: [],
139
- },
140
132
  CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
141
133
  message: `This client cannot be deleted because it has addresses associated`,
142
134
  affectedFields: [],
@@ -70,7 +70,7 @@ export declare const CLIENT_RECORDS_FILING_TYPES: {
70
70
  readonly affectedFields: readonly ["filingType"];
71
71
  };
72
72
  readonly FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
73
- readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Sub/Parent status that begins on {dateEstablished}.";
73
+ readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). Please ensure that the status of one sub/parent status matches the client's date established.";
74
74
  readonly params: readonly ["dateEstablished", "earliestFilingType", "earliestFilingTypeStartDate"];
75
75
  readonly affectedFields: readonly ["filingType", "dateEstablished"];
76
76
  };
@@ -73,7 +73,7 @@ exports.CLIENT_RECORDS_FILING_TYPES = {
73
73
  affectedFields: ['filingType'],
74
74
  },
75
75
  FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
76
- message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Sub/Parent status that begins on {dateEstablished}.`,
76
+ message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). Please ensure that the status of one sub/parent status matches the client's date established.`,
77
77
  params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
78
78
  affectedFields: ['filingType', 'dateEstablished'],
79
79
  },
@@ -44,5 +44,14 @@ export declare const USERS: {
44
44
  readonly message: "User passwords do not match";
45
45
  readonly affectedFields: readonly ["password", "confirmPassword"];
46
46
  };
47
+ readonly USER_HAS_REFERENCED_DATA: {
48
+ readonly message: "User '{fullName}' cannot be deleted because they are referenced by existing records.";
49
+ readonly params: readonly ["fullName"];
50
+ readonly affectedFields: readonly ["userId"];
51
+ };
52
+ readonly USER_CANNOT_DELETE_SELF: {
53
+ readonly message: "You cannot delete your own account.";
54
+ readonly affectedFields: readonly ["userId"];
55
+ };
47
56
  };
48
57
  //# sourceMappingURL=users.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"users.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/users.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CR,CAAC"}
1
+ {"version":3,"file":"users.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/users.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDR,CAAC"}
@@ -47,4 +47,13 @@ exports.USERS = {
47
47
  message: `User passwords do not match`,
48
48
  affectedFields: ['password', 'confirmPassword'],
49
49
  },
50
+ USER_HAS_REFERENCED_DATA: {
51
+ message: `User '{fullName}' cannot be deleted because they are referenced by existing records.`,
52
+ params: ['fullName'],
53
+ affectedFields: ['userId'],
54
+ },
55
+ USER_CANNOT_DELETE_SELF: {
56
+ message: `You cannot delete your own account.`,
57
+ affectedFields: ['userId'],
58
+ },
50
59
  };
@@ -360,14 +360,6 @@ export declare const VALIDATION_MESSAGES: {
360
360
  readonly message: "This client cannot be deleted because it has futures associated";
361
361
  readonly affectedFields: readonly [];
362
362
  };
363
- readonly CLIENT_COULD_NOT_BE_DELETED_PROJECTS_EXIST: {
364
- readonly message: "This client cannot be deleted because it has projects associated";
365
- readonly affectedFields: readonly [];
366
- };
367
- readonly CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
368
- readonly message: "This client cannot be deleted because it has tasks associated";
369
- readonly affectedFields: readonly [];
370
- };
371
363
  readonly CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
372
364
  readonly message: "This client cannot be deleted because it has addresses associated";
373
365
  readonly affectedFields: readonly [];
@@ -555,7 +547,7 @@ export declare const VALIDATION_MESSAGES: {
555
547
  readonly affectedFields: readonly ["filingType"];
556
548
  };
557
549
  readonly FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
558
- readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Sub/Parent status that begins on {dateEstablished}.";
550
+ readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). Please ensure that the status of one sub/parent status matches the client's date established.";
559
551
  readonly params: readonly ["dateEstablished", "earliestFilingType", "earliestFilingTypeStartDate"];
560
552
  readonly affectedFields: readonly ["filingType", "dateEstablished"];
561
553
  };
@@ -982,6 +974,15 @@ export declare const VALIDATION_MESSAGES: {
982
974
  readonly message: "User passwords do not match";
983
975
  readonly affectedFields: readonly ["password", "confirmPassword"];
984
976
  };
977
+ readonly USER_HAS_REFERENCED_DATA: {
978
+ readonly message: "User '{fullName}' cannot be deleted because they are referenced by existing records.";
979
+ readonly params: readonly ["fullName"];
980
+ readonly affectedFields: readonly ["userId"];
981
+ };
982
+ readonly USER_CANNOT_DELETE_SELF: {
983
+ readonly message: "You cannot delete your own account.";
984
+ readonly affectedFields: readonly ["userId"];
985
+ };
985
986
  };
986
987
  readonly ROLES_AND_PERMISSIONS: {
987
988
  readonly ROLE_ALREADY_EXISTS: {
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.9.7",
3
+ "version": "1.9.9",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -70,7 +70,7 @@ export const CLIENT_RECORDS_FILING_TYPES = {
70
70
  affectedFields: ['filingType'],
71
71
  },
72
72
  FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
73
- message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Sub/Parent status that begins on {dateEstablished}.`,
73
+ message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). Please ensure that the status of one sub/parent status matches the client's date established.`,
74
74
  params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
75
75
  affectedFields: ['filingType', 'dateEstablished'],
76
76
  },
@@ -44,4 +44,13 @@ export const USERS = {
44
44
  message: `User passwords do not match`,
45
45
  affectedFields: ['password', 'confirmPassword'],
46
46
  },
47
+ USER_HAS_REFERENCED_DATA: {
48
+ message: `User '{fullName}' cannot be deleted because they are referenced by existing records.`,
49
+ params: ['fullName'],
50
+ affectedFields: ['userId'],
51
+ },
52
+ USER_CANNOT_DELETE_SELF: {
53
+ message: `You cannot delete your own account.`,
54
+ affectedFields: ['userId'],
55
+ },
47
56
  } as const;