@forwardslashns/taskit-validation-messages 1.1.0 → 1.3.0

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.
Files changed (82) hide show
  1. package/PUBLISHING.md +3 -0
  2. package/dist/validation/features/account-category.validation-messages.d.ts +21 -0
  3. package/dist/validation/features/account-category.validation-messages.d.ts.map +1 -0
  4. package/dist/validation/features/account-category.validation-messages.js +23 -0
  5. package/dist/validation/features/account-id.validation-messages.d.ts +26 -0
  6. package/dist/validation/features/account-id.validation-messages.d.ts.map +1 -0
  7. package/dist/validation/features/account-id.validation-messages.js +28 -0
  8. package/dist/validation/features/business-activity.validation-messages.d.ts +21 -0
  9. package/dist/validation/features/business-activity.validation-messages.d.ts.map +1 -0
  10. package/dist/validation/features/business-activity.validation-messages.js +23 -0
  11. package/dist/validation/features/client-current-entity-status.validation-messages.d.ts +138 -0
  12. package/dist/validation/features/client-current-entity-status.validation-messages.d.ts.map +1 -0
  13. package/dist/validation/features/client-current-entity-status.validation-messages.js +140 -0
  14. package/dist/validation/features/client-record-address.validation-messages.d.ts +62 -0
  15. package/dist/validation/features/client-record-address.validation-messages.d.ts.map +1 -0
  16. package/dist/validation/features/client-record-address.validation-messages.js +64 -0
  17. package/dist/validation/features/client-record-bank-and-credit-card.validation-messages.d.ts +31 -0
  18. package/dist/validation/features/client-record-bank-and-credit-card.validation-messages.d.ts.map +1 -0
  19. package/dist/validation/features/client-record-bank-and-credit-card.validation-messages.js +33 -0
  20. package/dist/validation/features/client-record-commission-detail.validation-messages.d.ts +24 -0
  21. package/dist/validation/features/client-record-commission-detail.validation-messages.d.ts.map +1 -0
  22. package/dist/validation/features/client-record-commission-detail.validation-messages.js +26 -0
  23. package/dist/validation/features/client-record-contact.validation-messages.d.ts +37 -0
  24. package/dist/validation/features/client-record-contact.validation-messages.d.ts.map +1 -0
  25. package/dist/validation/features/client-record-contact.validation-messages.js +39 -0
  26. package/dist/validation/features/client-record-entity-state-history.validation-messages.d.ts +84 -0
  27. package/dist/validation/features/client-record-entity-state-history.validation-messages.d.ts.map +1 -0
  28. package/dist/validation/features/client-record-entity-state-history.validation-messages.js +86 -0
  29. package/dist/validation/features/client-record-entity-type-history.validation-messages.d.ts +83 -0
  30. package/dist/validation/features/client-record-entity-type-history.validation-messages.d.ts.map +1 -0
  31. package/dist/validation/features/client-record-entity-type-history.validation-messages.js +85 -0
  32. package/dist/validation/features/client-record-filing-type-history.validation-messages.d.ts +91 -0
  33. package/dist/validation/features/client-record-filing-type-history.validation-messages.d.ts.map +1 -0
  34. package/dist/validation/features/client-record-filing-type-history.validation-messages.js +93 -0
  35. package/dist/validation/features/client-record-outside-provider.validation-messages.d.ts +13 -0
  36. package/dist/validation/features/client-record-outside-provider.validation-messages.d.ts.map +1 -0
  37. package/dist/validation/features/client-record-outside-provider.validation-messages.js +15 -0
  38. package/dist/validation/features/client-relationship.validation-messages.d.ts +63 -0
  39. package/dist/validation/features/client-relationship.validation-messages.d.ts.map +1 -0
  40. package/dist/validation/features/client-relationship.validation-messages.js +65 -0
  41. package/dist/validation/features/data-filter.validation-messages.d.ts +19 -0
  42. package/dist/validation/features/data-filter.validation-messages.d.ts.map +1 -0
  43. package/dist/validation/features/data-filter.validation-messages.js +21 -0
  44. package/dist/validation/features/filing-category.validation-messages.d.ts +21 -0
  45. package/dist/validation/features/filing-category.validation-messages.d.ts.map +1 -0
  46. package/dist/validation/features/filing-category.validation-messages.js +23 -0
  47. package/dist/validation/features/role-and-permission.validation-messages.d.ts +32 -0
  48. package/dist/validation/features/role-and-permission.validation-messages.d.ts.map +1 -0
  49. package/dist/validation/features/role-and-permission.validation-messages.js +34 -0
  50. package/dist/validation/features/state.validation-messages.d.ts +49 -0
  51. package/dist/validation/features/state.validation-messages.d.ts.map +1 -0
  52. package/dist/validation/features/state.validation-messages.js +51 -0
  53. package/dist/validation/features/user-preference.validation-messages.d.ts +20 -0
  54. package/dist/validation/features/user-preference.validation-messages.d.ts.map +1 -0
  55. package/dist/validation/features/user-preference.validation-messages.js +22 -0
  56. package/dist/validation/features/user.validation-messages.d.ts +48 -0
  57. package/dist/validation/features/user.validation-messages.d.ts.map +1 -0
  58. package/dist/validation/features/user.validation-messages.js +50 -0
  59. package/dist/validation/validation-messages.d.ts +93 -91
  60. package/dist/validation/validation-messages.d.ts.map +1 -1
  61. package/dist/validation/validation-messages.js +38 -866
  62. package/package.json +1 -1
  63. package/src/validation/features/account-category.validation-messages.ts +20 -0
  64. package/src/validation/features/account-id.validation-messages.ts +25 -0
  65. package/src/validation/features/business-activity.validation-messages.ts +20 -0
  66. package/src/validation/features/client-current-entity-status.validation-messages.ts +137 -0
  67. package/src/validation/features/client-record-address.validation-messages.ts +61 -0
  68. package/src/validation/features/client-record-bank-and-credit-card.validation-messages.ts +32 -0
  69. package/src/validation/features/client-record-commission-detail.validation-messages.ts +23 -0
  70. package/src/validation/features/client-record-contact.validation-messages.ts +36 -0
  71. package/src/validation/features/client-record-entity-state-history.validation-messages.ts +83 -0
  72. package/src/validation/features/client-record-entity-type-history.validation-messages.ts +82 -0
  73. package/src/validation/features/client-record-filing-type-history.validation-messages.ts +90 -0
  74. package/src/validation/features/client-record-outside-provider.validation-messages.ts +12 -0
  75. package/src/validation/features/client-relationship.validation-messages.ts +62 -0
  76. package/src/validation/features/data-filter.validation-messages.ts +18 -0
  77. package/src/validation/features/filing-category.validation-messages.ts +20 -0
  78. package/src/validation/features/role-and-permission.validation-messages.ts +31 -0
  79. package/src/validation/features/state.validation-messages.ts +48 -0
  80. package/src/validation/features/user-preference.validation-messages.ts +19 -0
  81. package/src/validation/features/user.validation-messages.ts +47 -0
  82. package/src/validation/validation-messages.ts +39 -868
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLIENT_RECORD_FILING_TYPE_HISTORY = void 0;
4
+ exports.CLIENT_RECORD_FILING_TYPE_HISTORY = {
5
+ FILING_TYPE_ID_DOES_NOT_EXIST: {
6
+ message: `Parent/Sub status with id '{id}' does not exist`,
7
+ params: ['id'],
8
+ affectedFields: ['filingTypeId'],
9
+ },
10
+ FILING_TYPE_PARENT_REQUIRED: {
11
+ message: `Parent needs to be specified for filing type 'Files under parent'`,
12
+ affectedFields: ['parentClientId'],
13
+ },
14
+ CURRENT_FILING_TYPE_PARENT_REQUIRED: {
15
+ message: `Parent needs to be specified for current filing type 'Files under parent'`,
16
+ affectedFields: ['parentClientId'],
17
+ },
18
+ NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
19
+ message: `The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.`,
20
+ params: ['clientDateEstablished', 'filingType', 'filingTypeStartingDate'],
21
+ affectedFields: ['dateEstablished', 'filingTypes'],
22
+ },
23
+ NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
24
+ message: `One or more Parent/Sub status 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.`,
25
+ params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
26
+ affectedFields: ['closeDate', 'filingTypes'],
27
+ },
28
+ FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
29
+ message: `Current Parent/Sub status Starting Date cannot be Empty`,
30
+ affectedFields: ['filingTypeStartingDate'],
31
+ },
32
+ NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
33
+ message: `Parent/Sub status starting date needs to be before the ending date`,
34
+ affectedFields: ['filingTypeStartingDate', 'filingTypeEndingDate'],
35
+ },
36
+ FILING_TYPES_IDS_DOES_NOT_EXIST: {
37
+ message: `Parent/Sub status with ids '{ids}' do not exist`,
38
+ params: ['ids'],
39
+ affectedFields: ['filingTypeId'],
40
+ },
41
+ AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
42
+ message: `At least one Parent/Sub status should exist`,
43
+ affectedFields: ['filingTypes'],
44
+ },
45
+ FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
46
+ message: `Starting date for {filingType} cannot be empty`,
47
+ params: ['filingType'],
48
+ affectedFields: ['filingTypeStartingDate'],
49
+ },
50
+ NOT_ALIGNED_FILING_TYPES_STARTING_ENDING_DATE: {
51
+ message: `The ending date for {filingType} must be after its starting date`,
52
+ params: ['filingType'],
53
+ affectedFields: ['filingTypeStartingDate', 'filingTypeEndingDate'],
54
+ },
55
+ NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPES_STARTING_DATE: {
56
+ message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
57
+ params: ['clientStartDate'],
58
+ affectedFields: ['filingTypeStartingDate', 'dateEstablished'],
59
+ },
60
+ NOT_ALIGNED_CLOSE_DATE_FILING_TYPES_STARTING_DATE: {
61
+ message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
62
+ params: ['clientCloseDate'],
63
+ affectedFields: ['filingTypeStartingDate', 'closeDate'],
64
+ },
65
+ FILING_TYPES_DATE_GAP_DETECTED: {
66
+ message: `There is a gap in the timeframes between {currentFilingType}, ending {currentFilingTypeEndDate}, and {nextFilingType}, starting {nextFilingTypeStartDate}. Please adjust the dates to fill this gap.`,
67
+ params: ['currentFilingType', 'currentFilingTypeEndDate', 'nextFilingType', 'nextFilingTypeStartDate'],
68
+ affectedFields: ['filingTypes'],
69
+ },
70
+ FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
71
+ message: `There are two entries for {filingType} with timeframes that immediately follow each other. {filingType} ending {firstPeriodEnd}, and {filingType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingType}. `,
72
+ params: ['filingType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
73
+ affectedFields: ['filingTypes'],
74
+ },
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 Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.`,
77
+ params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
78
+ affectedFields: ['filingTypes', 'dateEstablished'],
79
+ },
80
+ FILING_TYPES_DATES_OVERLAP: {
81
+ message: `The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
82
+ params: ['filingType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
83
+ affectedFields: ['filingTypes'],
84
+ },
85
+ ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
86
+ message: `Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.`,
87
+ affectedFields: ['filingTypeEndingDate'],
88
+ },
89
+ CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
90
+ message: `The current Parent/Sub status cannot have an end date. Please remove the end date for this state.`,
91
+ affectedFields: ['filingTypeEndingDate'],
92
+ },
93
+ };
@@ -0,0 +1,13 @@
1
+ export declare const CLIENT_RECORD_OUTSIDE_PROVIDER: {
2
+ readonly INVALID_TYPE: {
3
+ readonly message: "Outside provider types with ids '{ids}' do not exist";
4
+ readonly params: readonly ["ids"];
5
+ readonly affectedFields: readonly ["outsideProviderTypeId"];
6
+ };
7
+ readonly SAME_TYPE_TIMELINE_OVERLAP: {
8
+ readonly message: "The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.";
9
+ readonly params: readonly ["outsideProviderType", "startDate"];
10
+ readonly affectedFields: readonly ["startDate", "endDate"];
11
+ };
12
+ };
13
+ //# sourceMappingURL=client-record-outside-provider.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-outside-provider.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-outside-provider.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;CAWjC,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLIENT_RECORD_OUTSIDE_PROVIDER = void 0;
4
+ exports.CLIENT_RECORD_OUTSIDE_PROVIDER = {
5
+ INVALID_TYPE: {
6
+ message: `Outside provider types with ids '{ids}' do not exist`,
7
+ params: ['ids'],
8
+ affectedFields: ['outsideProviderTypeId'],
9
+ },
10
+ SAME_TYPE_TIMELINE_OVERLAP: {
11
+ message: `The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.`,
12
+ params: ['outsideProviderType', 'startDate'],
13
+ affectedFields: ['startDate', 'endDate'],
14
+ },
15
+ };
@@ -0,0 +1,63 @@
1
+ export declare const CLIENT_RELATIONSHIP: {
2
+ readonly CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
3
+ readonly message: "A client cannot have a relationship with itself.";
4
+ readonly affectedFields: readonly ["relatedClientId"];
5
+ };
6
+ readonly INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
7
+ readonly message: "{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.";
8
+ readonly params: readonly ["clientName", "entityType", "relationshipType"];
9
+ readonly affectedFields: readonly ["relationshipTypeId"];
10
+ };
11
+ readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
12
+ readonly message: "A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.";
13
+ readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
14
+ };
15
+ readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
16
+ readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
17
+ readonly params: readonly ["clientName", "clientDateEstablished"];
18
+ readonly affectedFields: readonly ["startingDate"];
19
+ };
20
+ readonly STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
21
+ readonly message: "This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.";
22
+ readonly params: readonly ["clientName", "clientCloseDate"];
23
+ readonly affectedFields: readonly ["startingDate"];
24
+ };
25
+ readonly STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
26
+ readonly message: "This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.";
27
+ readonly params: readonly ["relatedClientName", "relatedClientDateEstablished"];
28
+ readonly affectedFields: readonly ["startingDate"];
29
+ };
30
+ readonly STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
31
+ readonly message: "This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.";
32
+ readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
33
+ readonly affectedFields: readonly ["startingDate"];
34
+ };
35
+ readonly ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
36
+ readonly message: "Please update the relationship ending date to be after the starting date, {startingDate}.";
37
+ readonly params: readonly ["startingDate"];
38
+ readonly affectedFields: readonly ["endingDate"];
39
+ };
40
+ readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
41
+ readonly message: "Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.";
42
+ readonly params: readonly ["clientCloseDate"];
43
+ readonly affectedFields: readonly ["endingDate"];
44
+ };
45
+ readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
46
+ readonly message: "Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.";
47
+ readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
48
+ readonly affectedFields: readonly ["endingDate"];
49
+ };
50
+ readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
51
+ readonly message: "All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.";
52
+ readonly affectedFields: readonly ["endingDate"];
53
+ };
54
+ readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
55
+ readonly message: "The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
56
+ readonly affectedFields: readonly ["isFinal"];
57
+ };
58
+ readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
59
+ readonly message: "The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
60
+ readonly affectedFields: readonly ["isFinal"];
61
+ };
62
+ };
63
+ //# sourceMappingURL=client-relationship.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-relationship.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationship.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DtB,CAAC"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLIENT_RELATIONSHIP = void 0;
4
+ exports.CLIENT_RELATIONSHIP = {
5
+ CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
6
+ message: `A client cannot have a relationship with itself.`,
7
+ affectedFields: ['relatedClientId'],
8
+ },
9
+ INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
10
+ message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
11
+ params: ['clientName', 'entityType', 'relationshipType'],
12
+ affectedFields: ['relationshipTypeId'],
13
+ },
14
+ PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
15
+ message: `A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.`,
16
+ affectedFields: ['relationshipTypeId', 'filingTypeId'],
17
+ },
18
+ STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
19
+ message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
20
+ params: ['clientName', 'clientDateEstablished'],
21
+ affectedFields: ['startingDate'],
22
+ },
23
+ STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
24
+ message: `This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.`,
25
+ params: ['clientName', 'clientCloseDate'],
26
+ affectedFields: ['startingDate'],
27
+ },
28
+ STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
29
+ message: `This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.`,
30
+ params: ['relatedClientName', 'relatedClientDateEstablished'],
31
+ affectedFields: ['startingDate'],
32
+ },
33
+ STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
34
+ message: `This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.`,
35
+ params: ['relatedClientName', 'relatedClientCloseDate'],
36
+ affectedFields: ['startingDate'],
37
+ },
38
+ ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
39
+ message: `Please update the relationship ending date to be after the starting date, {startingDate}.`,
40
+ params: ['startingDate'],
41
+ affectedFields: ['endingDate'],
42
+ },
43
+ ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
44
+ message: `Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.`,
45
+ params: ['clientCloseDate'],
46
+ affectedFields: ['endingDate'],
47
+ },
48
+ ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
49
+ message: `Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.`,
50
+ params: ['relatedClientName', 'relatedClientCloseDate'],
51
+ affectedFields: ['endingDate'],
52
+ },
53
+ MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
54
+ message: `All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.`,
55
+ affectedFields: ['endingDate'],
56
+ },
57
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
58
+ message: `The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
59
+ affectedFields: ['isFinal'],
60
+ },
61
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
62
+ message: `The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
63
+ affectedFields: ['isFinal'],
64
+ },
65
+ };
@@ -0,0 +1,19 @@
1
+ export declare const DATA_FILTER: {
2
+ readonly MISSING_PAGE_SIZE: {
3
+ readonly message: "Request is invalid, 'pageSize' must exist if 'pageNumber' exists";
4
+ readonly affectedFields: readonly ["pageSize"];
5
+ };
6
+ readonly MISSING_PAGE_NUMBER: {
7
+ readonly message: "Request is invalid, 'pageNumber' must exist if 'pageSize' exists";
8
+ readonly affectedFields: readonly ["pageNumber"];
9
+ };
10
+ readonly MISSING_SORT_BY: {
11
+ readonly message: "Request is invalid, 'sortBy' must exist if 'sortType' exists";
12
+ readonly affectedFields: readonly ["sortBy"];
13
+ };
14
+ readonly MISSING_SORT_TYPE: {
15
+ readonly message: "Request is invalid, 'sortType' must exist if 'sortBy' exists";
16
+ readonly affectedFields: readonly ["sortType"];
17
+ };
18
+ };
19
+ //# sourceMappingURL=data-filter.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-filter.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/data-filter.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAiBd,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DATA_FILTER = void 0;
4
+ exports.DATA_FILTER = {
5
+ MISSING_PAGE_SIZE: {
6
+ message: `Request is invalid, 'pageSize' must exist if 'pageNumber' exists`,
7
+ affectedFields: ['pageSize'],
8
+ },
9
+ MISSING_PAGE_NUMBER: {
10
+ message: `Request is invalid, 'pageNumber' must exist if 'pageSize' exists`,
11
+ affectedFields: ['pageNumber'],
12
+ },
13
+ MISSING_SORT_BY: {
14
+ message: `Request is invalid, 'sortBy' must exist if 'sortType' exists`,
15
+ affectedFields: ['sortBy'],
16
+ },
17
+ MISSING_SORT_TYPE: {
18
+ message: `Request is invalid, 'sortType' must exist if 'sortBy' exists`,
19
+ affectedFields: ['sortType'],
20
+ },
21
+ };
@@ -0,0 +1,21 @@
1
+ export declare const FILING_CATEGORY: {
2
+ readonly INVALID_REQUEST: {
3
+ readonly message: "Missing filing category id in request";
4
+ readonly affectedFields: readonly [];
5
+ };
6
+ readonly ID_DOES_NOT_EXIST: {
7
+ readonly message: "Filing category with id '{id}' does not exist";
8
+ readonly params: readonly ["id"];
9
+ readonly affectedFields: readonly ["filingCategoryId"];
10
+ };
11
+ readonly NAME_ALREADY_EXISTS: {
12
+ readonly message: "Filing category with the same name '{name}' already exists";
13
+ readonly params: readonly ["name"];
14
+ readonly affectedFields: readonly ["name"];
15
+ };
16
+ readonly OPTION_IN_USE: {
17
+ readonly message: "This option is currently in use and cannot be deleted.";
18
+ readonly affectedFields: readonly [];
19
+ };
20
+ };
21
+ //# sourceMappingURL=filing-category.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filing-category.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/filing-category.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;CAmBlB,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FILING_CATEGORY = void 0;
4
+ exports.FILING_CATEGORY = {
5
+ INVALID_REQUEST: {
6
+ message: 'Missing filing category id in request',
7
+ affectedFields: [],
8
+ },
9
+ ID_DOES_NOT_EXIST: {
10
+ message: `Filing category with id '{id}' does not exist`,
11
+ params: ['id'],
12
+ affectedFields: ['filingCategoryId'],
13
+ },
14
+ NAME_ALREADY_EXISTS: {
15
+ message: `Filing category with the same name '{name}' already exists`,
16
+ params: ['name'],
17
+ affectedFields: ['name'],
18
+ },
19
+ OPTION_IN_USE: {
20
+ message: `This option is currently in use and cannot be deleted.`,
21
+ affectedFields: [],
22
+ },
23
+ };
@@ -0,0 +1,32 @@
1
+ export declare const ROLE_AND_PERMISSION: {
2
+ readonly ROLE_ALREADY_EXISTS: {
3
+ readonly message: "Role with name '{name}' already exists";
4
+ readonly params: readonly ["name"];
5
+ readonly affectedFields: readonly ["name"];
6
+ };
7
+ readonly PERMISSION_ALREADY_EXISTS: {
8
+ readonly message: "Permission with name '{name}' already exists";
9
+ readonly params: readonly ["name"];
10
+ readonly affectedFields: readonly ["name"];
11
+ };
12
+ readonly PERMISSIONS_DO_NOT_EXIST: {
13
+ readonly message: "Permissions with ids '{ids}' do not exist";
14
+ readonly params: readonly ["ids"];
15
+ readonly affectedFields: readonly ["permissionIds"];
16
+ };
17
+ readonly ROLE_DOES_NOT_EXIST: {
18
+ readonly message: "Role with id '{roleId}' does not exist";
19
+ readonly params: readonly ["roleId"];
20
+ };
21
+ readonly PERMISSION_DOES_NOT_EXIST: {
22
+ readonly message: "Permission with id '{permissionId}' does not exist";
23
+ readonly params: readonly ["permissionId"];
24
+ readonly affectedFields: readonly ["permissionId"];
25
+ };
26
+ readonly ROLE_HAS_ASSIGNED_USERS: {
27
+ readonly message: "Cannot delete role with name '{roleName}' because it has users assigned to it";
28
+ readonly params: readonly ["roleName"];
29
+ readonly affectedFields: readonly [];
30
+ };
31
+ };
32
+ //# sourceMappingURL=role-and-permission.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-and-permission.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/role-and-permission.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BtB,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ROLE_AND_PERMISSION = void 0;
4
+ exports.ROLE_AND_PERMISSION = {
5
+ ROLE_ALREADY_EXISTS: {
6
+ message: `Role with name '{name}' already exists`,
7
+ params: ['name'],
8
+ affectedFields: ['name'],
9
+ },
10
+ PERMISSION_ALREADY_EXISTS: {
11
+ message: `Permission with name '{name}' already exists`,
12
+ params: ['name'],
13
+ affectedFields: ['name'],
14
+ },
15
+ PERMISSIONS_DO_NOT_EXIST: {
16
+ message: `Permissions with ids '{ids}' do not exist`,
17
+ params: ['ids'],
18
+ affectedFields: ['permissionIds'],
19
+ },
20
+ ROLE_DOES_NOT_EXIST: {
21
+ message: `Role with id '{roleId}' does not exist`,
22
+ params: ['roleId'],
23
+ },
24
+ PERMISSION_DOES_NOT_EXIST: {
25
+ message: `Permission with id '{permissionId}' does not exist`,
26
+ params: ['permissionId'],
27
+ affectedFields: ['permissionId'],
28
+ },
29
+ ROLE_HAS_ASSIGNED_USERS: {
30
+ message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
31
+ params: ['roleName'],
32
+ affectedFields: [],
33
+ },
34
+ };
@@ -0,0 +1,49 @@
1
+ export declare const STATE: {
2
+ readonly INVALID_REQUEST: {
3
+ readonly message: "Missing state id in request";
4
+ readonly affectedFields: readonly [];
5
+ };
6
+ readonly ID_DOES_NOT_EXIST: {
7
+ readonly message: "State with id '{id}' does not exist";
8
+ readonly params: readonly ["id"];
9
+ readonly affectedFields: readonly ["stateId"];
10
+ };
11
+ readonly NAME_ALREADY_EXISTS: {
12
+ readonly message: "State with the same name '{name}' already exists";
13
+ readonly params: readonly ["name"];
14
+ readonly affectedFields: readonly ["name"];
15
+ };
16
+ readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
17
+ readonly message: "State type with id '{id}' does not exist";
18
+ readonly params: readonly ["id"];
19
+ readonly affectedFields: readonly ["stateTypeId"];
20
+ };
21
+ readonly IS_PARENT_OF_OTHER_STATES: {
22
+ readonly message: "This option is currently in use and cannot be deleted.";
23
+ readonly affectedFields: readonly [];
24
+ };
25
+ readonly PARENT_ID_DOES_NOT_EXIST: {
26
+ readonly message: "Parent state with id '{id}' does not exist";
27
+ readonly params: readonly ["id"];
28
+ readonly affectedFields: readonly ["parentId"];
29
+ };
30
+ readonly NATION_PARENT_TYPE_NOT_ALLOWED: {
31
+ readonly message: "Nation cannot have associated parent.";
32
+ readonly affectedFields: readonly ["parentId"];
33
+ };
34
+ readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
35
+ readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
36
+ readonly params: readonly ["stateName"];
37
+ readonly affectedFields: readonly ["parentId"];
38
+ };
39
+ readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
40
+ readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
41
+ readonly params: readonly ["cityName"];
42
+ readonly affectedFields: readonly ["parentId"];
43
+ };
44
+ readonly OPTION_IN_USE: {
45
+ readonly message: "This option is currently in use and cannot be deleted.";
46
+ readonly affectedFields: readonly [];
47
+ };
48
+ };
49
+ //# sourceMappingURL=state.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/state.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CR,CAAC"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.STATE = void 0;
4
+ exports.STATE = {
5
+ INVALID_REQUEST: {
6
+ message: 'Missing state id in request',
7
+ affectedFields: [],
8
+ },
9
+ ID_DOES_NOT_EXIST: {
10
+ message: `State with id '{id}' does not exist`,
11
+ params: ['id'],
12
+ affectedFields: ['stateId'],
13
+ },
14
+ NAME_ALREADY_EXISTS: {
15
+ message: `State with the same name '{name}' already exists`,
16
+ params: ['name'],
17
+ affectedFields: ['name'],
18
+ },
19
+ STATE_TYPE_ID_DOES_NOT_EXIST: {
20
+ message: `State type with id '{id}' does not exist`,
21
+ params: ['id'],
22
+ affectedFields: ['stateTypeId'],
23
+ },
24
+ IS_PARENT_OF_OTHER_STATES: {
25
+ message: `This option is currently in use and cannot be deleted.`,
26
+ affectedFields: [],
27
+ },
28
+ PARENT_ID_DOES_NOT_EXIST: {
29
+ message: `Parent state with id '{id}' does not exist`,
30
+ params: ['id'],
31
+ affectedFields: ['parentId'],
32
+ },
33
+ NATION_PARENT_TYPE_NOT_ALLOWED: {
34
+ message: `Nation cannot have associated parent.`,
35
+ affectedFields: ['parentId'],
36
+ },
37
+ STATE_PARENT_TYPE_NOT_ALLOWED: {
38
+ message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
39
+ params: ['stateName'],
40
+ affectedFields: ['parentId'],
41
+ },
42
+ CITY_PARENT_TYPE_NOT_ALLOWED: {
43
+ message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
44
+ params: ['cityName'],
45
+ affectedFields: ['parentId'],
46
+ },
47
+ OPTION_IN_USE: {
48
+ message: `This option is currently in use and cannot be deleted.`,
49
+ affectedFields: [],
50
+ },
51
+ };
@@ -0,0 +1,20 @@
1
+ export declare const USER_PREFERENCE: {
2
+ readonly FEATURE_DOES_NOT_EXIST: {
3
+ readonly message: "Feature with name {feature} does not exist";
4
+ readonly params: readonly ["feature"];
5
+ readonly affectedFields: readonly ["feature"];
6
+ };
7
+ readonly INVALID_REQUEST: {
8
+ readonly message: "Request is invalid";
9
+ readonly affectedFields: readonly [];
10
+ };
11
+ readonly PREFERENCE_DOES_NOT_BELONG_TO_USER: {
12
+ readonly message: "Preference does not belong to the user";
13
+ readonly affectedFields: readonly [];
14
+ };
15
+ readonly INVALID_COLUMN_ORDER: {
16
+ readonly message: "Invalid columnOrder values";
17
+ readonly affectedFields: readonly ["columnOrder"];
18
+ };
19
+ };
20
+ //# sourceMappingURL=user-preference.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-preference.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/user-preference.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAkBlB,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USER_PREFERENCE = void 0;
4
+ exports.USER_PREFERENCE = {
5
+ FEATURE_DOES_NOT_EXIST: {
6
+ message: `Feature with name {feature} does not exist`,
7
+ params: ['feature'],
8
+ affectedFields: ['feature'],
9
+ },
10
+ INVALID_REQUEST: {
11
+ message: 'Request is invalid',
12
+ affectedFields: [],
13
+ },
14
+ PREFERENCE_DOES_NOT_BELONG_TO_USER: {
15
+ message: 'Preference does not belong to the user',
16
+ affectedFields: [],
17
+ },
18
+ INVALID_COLUMN_ORDER: {
19
+ message: 'Invalid columnOrder values',
20
+ affectedFields: ['columnOrder'],
21
+ },
22
+ };
@@ -0,0 +1,48 @@
1
+ export declare const USER: {
2
+ readonly USERNAME_DOES_NOT_EXIST: {
3
+ readonly message: "User with username {username} does not exist.";
4
+ readonly params: readonly ["username"];
5
+ readonly affectedFields: readonly ["username"];
6
+ };
7
+ readonly INVALID_PASSWORD: {
8
+ readonly message: "User with username {username} password does not match.";
9
+ readonly params: readonly ["username"];
10
+ readonly affectedFields: readonly ["password"];
11
+ };
12
+ readonly INVALID_RESET_PASSWORD_TOKEN: {
13
+ readonly message: "Invalid or expired reset token.";
14
+ readonly affectedFields: readonly ["resetToken"];
15
+ };
16
+ readonly RESET_PASSWORD_LINK_ALREADY_USED: {
17
+ readonly message: "Reset password link has already been used. Please request a new one.";
18
+ readonly affectedFields: readonly ["resetToken"];
19
+ };
20
+ readonly RESET_PASSWORD_LINK_NOT_LATEST: {
21
+ readonly message: "Reset password link is no longer valid. Please use the most recent one.";
22
+ readonly affectedFields: readonly ["resetToken"];
23
+ };
24
+ readonly USERNAME_ALREADY_EXISTS: {
25
+ readonly message: "User with username '{username}' already exists";
26
+ readonly params: readonly ["username"];
27
+ readonly affectedFields: readonly ["username"];
28
+ };
29
+ readonly EMAIL_ALREADY_EXISTS: {
30
+ readonly message: "User with email '{email}' already exists";
31
+ readonly params: readonly ["email"];
32
+ readonly affectedFields: readonly ["email"];
33
+ };
34
+ readonly ROLE_DOES_NOT_EXIST: {
35
+ readonly message: "Role with id '{roleId}' does not exist";
36
+ readonly params: readonly ["roleId"];
37
+ };
38
+ readonly USER_DOES_NOT_EXIST: {
39
+ readonly message: "User with id '{userId}' does not exist";
40
+ readonly params: readonly ["userId"];
41
+ readonly affectedFields: readonly ["userId"];
42
+ };
43
+ readonly USER_PASSWORDS_DO_NOT_MATCH: {
44
+ readonly message: "User passwords do not match";
45
+ readonly affectedFields: readonly ["password", "confirmPassword"];
46
+ };
47
+ };
48
+ //# sourceMappingURL=user.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/user.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CP,CAAC"}