@forwardslashns/taskit-validation-messages 1.10.16 → 1.10.19

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 (123) hide show
  1. package/dist/index.d.ts +2 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -1
  4. package/dist/validation/features/account-categories.validation-messages.d.ts +18 -14
  5. package/dist/validation/features/account-categories.validation-messages.d.ts.map +1 -1
  6. package/dist/validation/features/account-categories.validation-messages.js +7 -2
  7. package/dist/validation/features/account-ids.validation-messages.d.ts +23 -18
  8. package/dist/validation/features/account-ids.validation-messages.d.ts.map +1 -1
  9. package/dist/validation/features/account-ids.validation-messages.js +8 -2
  10. package/dist/validation/features/business-activities.validation-messages.d.ts +18 -14
  11. package/dist/validation/features/business-activities.validation-messages.d.ts.map +1 -1
  12. package/dist/validation/features/business-activities.validation-messages.js +7 -2
  13. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +195 -158
  14. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map +1 -1
  15. package/dist/validation/features/client-current-entity-statuses.validation-messages.js +45 -7
  16. package/dist/validation/features/client-records-addresses.validation-messages.d.ts +71 -58
  17. package/dist/validation/features/client-records-addresses.validation-messages.d.ts.map +1 -1
  18. package/dist/validation/features/client-records-addresses.validation-messages.js +16 -2
  19. package/dist/validation/features/client-records-banks.validation-messages.d.ts +20 -15
  20. package/dist/validation/features/client-records-banks.validation-messages.d.ts.map +1 -1
  21. package/dist/validation/features/client-records-banks.validation-messages.js +8 -2
  22. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +21 -16
  23. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts.map +1 -1
  24. package/dist/validation/features/client-records-commission-details.validation-messages.js +8 -2
  25. package/dist/validation/features/client-records-contacts.validation-messages.d.ts +41 -33
  26. package/dist/validation/features/client-records-contacts.validation-messages.d.ts.map +1 -1
  27. package/dist/validation/features/client-records-contacts.validation-messages.js +11 -2
  28. package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts +24 -18
  29. package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts.map +1 -1
  30. package/dist/validation/features/client-records-credit-cards.validation-messages.js +9 -2
  31. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +97 -80
  32. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts.map +1 -1
  33. package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +30 -12
  34. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +96 -79
  35. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts.map +1 -1
  36. package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +30 -12
  37. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +96 -79
  38. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts.map +1 -1
  39. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +30 -12
  40. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +10 -8
  41. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts.map +1 -1
  42. package/dist/validation/features/client-records-outside-providers.validation-messages.js +6 -3
  43. package/dist/validation/features/client-relationships-common.validation-messages.d.ts +69 -55
  44. package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
  45. package/dist/validation/features/client-relationships-common.validation-messages.js +30 -15
  46. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +84 -68
  47. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map +1 -1
  48. package/dist/validation/features/client-relationships-income-sources.validation-messages.js +21 -4
  49. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +86 -69
  50. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts.map +1 -1
  51. package/dist/validation/features/client-relationships-owners.validation-messages.js +22 -4
  52. package/dist/validation/features/data-filters.validation-messages.d.ts +16 -12
  53. package/dist/validation/features/data-filters.validation-messages.d.ts.map +1 -1
  54. package/dist/validation/features/data-filters.validation-messages.js +7 -2
  55. package/dist/validation/features/filing-categories.validation-messages.d.ts +18 -14
  56. package/dist/validation/features/filing-categories.validation-messages.d.ts.map +1 -1
  57. package/dist/validation/features/filing-categories.validation-messages.js +7 -2
  58. package/dist/validation/features/income-accounts.validation-messages.d.ts +17 -13
  59. package/dist/validation/features/income-accounts.validation-messages.d.ts.map +1 -1
  60. package/dist/validation/features/income-accounts.validation-messages.js +7 -2
  61. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +29 -23
  62. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts.map +1 -1
  63. package/dist/validation/features/roles-and-permissions.validation-messages.js +9 -2
  64. package/dist/validation/features/states.validation-messages.d.ts +55 -45
  65. package/dist/validation/features/states.validation-messages.d.ts.map +1 -1
  66. package/dist/validation/features/states.validation-messages.js +13 -2
  67. package/dist/validation/features/template-assignments.validation-messages.d.ts +85 -68
  68. package/dist/validation/features/template-assignments.validation-messages.d.ts.map +1 -1
  69. package/dist/validation/features/template-assignments.validation-messages.js +20 -2
  70. package/dist/validation/features/template-information.validation-messages.d.ts +218 -146
  71. package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
  72. package/dist/validation/features/template-information.validation-messages.js +75 -2
  73. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +164 -132
  74. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
  75. package/dist/validation/features/template-recurrence-settings.validation-messages.js +37 -4
  76. package/dist/validation/features/template-states.validation-messages.d.ts +49 -39
  77. package/dist/validation/features/template-states.validation-messages.d.ts.map +1 -1
  78. package/dist/validation/features/template-states.validation-messages.js +13 -2
  79. package/dist/validation/features/user-preferences.validation-messages.d.ts +17 -13
  80. package/dist/validation/features/user-preferences.validation-messages.d.ts.map +1 -1
  81. package/dist/validation/features/user-preferences.validation-messages.js +8 -3
  82. package/dist/validation/features/users.validation-messages.d.ts +65 -53
  83. package/dist/validation/features/users.validation-messages.d.ts.map +1 -1
  84. package/dist/validation/features/users.validation-messages.js +17 -4
  85. package/dist/validation/validation-message.formatter.d.ts +2 -0
  86. package/dist/validation/validation-message.formatter.d.ts.map +1 -1
  87. package/dist/validation/validation-message.formatter.js +1 -0
  88. package/dist/validation/validation-message.types.d.ts +30 -0
  89. package/dist/validation/validation-message.types.d.ts.map +1 -0
  90. package/dist/validation/validation-message.types.js +9 -0
  91. package/dist/validation/validation-messages.d.ts +1756 -1394
  92. package/dist/validation/validation-messages.d.ts.map +1 -1
  93. package/package.json +1 -1
  94. package/src/index.ts +14 -0
  95. package/src/validation/features/account-categories.validation-messages.ts +8 -2
  96. package/src/validation/features/account-ids.validation-messages.ts +9 -2
  97. package/src/validation/features/business-activities.validation-messages.ts +8 -2
  98. package/src/validation/features/client-current-entity-statuses.validation-messages.ts +46 -7
  99. package/src/validation/features/client-records-addresses.validation-messages.ts +17 -2
  100. package/src/validation/features/client-records-banks.validation-messages.ts +9 -2
  101. package/src/validation/features/client-records-commission-details.validation-messages.ts +9 -2
  102. package/src/validation/features/client-records-contacts.validation-messages.ts +12 -2
  103. package/src/validation/features/client-records-credit-cards.validation-messages.ts +10 -2
  104. package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +31 -12
  105. package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +31 -12
  106. package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts +31 -12
  107. package/src/validation/features/client-records-outside-providers.validation-messages.ts +7 -3
  108. package/src/validation/features/client-relationships-common.validation-messages.ts +31 -15
  109. package/src/validation/features/client-relationships-income-sources.validation-messages.ts +22 -4
  110. package/src/validation/features/client-relationships-owners.validation-messages.ts +23 -4
  111. package/src/validation/features/data-filters.validation-messages.ts +8 -2
  112. package/src/validation/features/filing-categories.validation-messages.ts +8 -2
  113. package/src/validation/features/income-accounts.validation-messages.ts +8 -2
  114. package/src/validation/features/roles-and-permissions.validation-messages.ts +10 -2
  115. package/src/validation/features/states.validation-messages.ts +14 -2
  116. package/src/validation/features/template-assignments.validation-messages.ts +21 -2
  117. package/src/validation/features/template-information.validation-messages.ts +83 -2
  118. package/src/validation/features/template-recurrence-settings.validation-messages.ts +38 -4
  119. package/src/validation/features/template-states.validation-messages.ts +14 -2
  120. package/src/validation/features/user-preferences.validation-messages.ts +9 -3
  121. package/src/validation/features/users.validation-messages.ts +18 -4
  122. package/src/validation/validation-message.formatter.ts +4 -6
  123. package/src/validation/validation-message.types.ts +36 -0
@@ -1,13 +1,15 @@
1
1
  export declare const CLIENT_RECORDS_OUTSIDE_PROVIDERS: {
2
- readonly INVALID_TYPE: {
3
- readonly message: "Outside provider types do not exist";
4
- readonly params: readonly ["ids"];
5
- readonly affectedFields: readonly ["type"];
2
+ INVALID_TYPE: {
3
+ severity: "error";
4
+ message: string;
5
+ params: string[];
6
+ affectedFields: string[];
6
7
  };
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 ["starting", "ending"];
8
+ SAME_TYPE_TIMELINE_OVERLAP: {
9
+ severity: "error";
10
+ message: string;
11
+ params: string[];
12
+ affectedFields: string[];
11
13
  };
12
14
  };
13
15
  //# sourceMappingURL=client-records-outside-providers.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-records-outside-providers.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-outside-providers.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;;;;;;;CAWnC,CAAC"}
1
+ {"version":3,"file":"client-records-outside-providers.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-outside-providers.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;CAa3C,CAAC"}
@@ -1,15 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_RECORDS_OUTSIDE_PROVIDERS = void 0;
4
- exports.CLIENT_RECORDS_OUTSIDE_PROVIDERS = {
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.CLIENT_RECORDS_OUTSIDE_PROVIDERS = (0, validation_message_types_1.defineValidationFeatureMessages)({
5
6
  INVALID_TYPE: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
6
8
  message: `Outside provider types do not exist`,
7
9
  params: ['ids'],
8
10
  affectedFields: ['type'],
9
11
  },
10
12
  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.`,
13
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
14
+ 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
15
  params: ['outsideProviderType', 'startDate'],
13
16
  affectedFields: ['starting', 'ending'],
14
17
  },
15
- };
18
+ });
@@ -1,72 +1,86 @@
1
1
  export declare const CLIENT_RELATIONSHIPS_COMMON: {
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 ["relatedClient"];
2
+ CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
3
+ severity: "error";
4
+ message: string;
5
+ affectedFields: string[];
5
6
  };
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 ["relationshipType"];
7
+ INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
8
+ severity: "error";
9
+ message: string;
10
+ params: string[];
11
+ affectedFields: string[];
10
12
  };
11
- readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
12
- readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
13
- readonly params: readonly ["clientName", "clientDateEstablished"];
14
- readonly affectedFields: readonly ["startingDate"];
13
+ STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
14
+ severity: "error";
15
+ message: string;
16
+ params: string[];
17
+ affectedFields: string[];
15
18
  };
16
- readonly STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
17
- readonly message: "This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.";
18
- readonly params: readonly ["clientName", "clientCloseDate"];
19
- readonly affectedFields: readonly ["startingDate"];
19
+ STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
20
+ severity: "error";
21
+ message: string;
22
+ params: string[];
23
+ affectedFields: string[];
20
24
  };
21
- readonly STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
22
- readonly message: "This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.";
23
- readonly params: readonly ["relatedClientName", "relatedClientDateEstablished"];
24
- readonly affectedFields: readonly ["startingDate"];
25
+ STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
26
+ severity: "error";
27
+ message: string;
28
+ params: string[];
29
+ affectedFields: string[];
25
30
  };
26
- readonly STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
27
- readonly message: "This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.";
28
- readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
29
- readonly affectedFields: readonly ["startingDate"];
31
+ STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
32
+ severity: "error";
33
+ message: string;
34
+ params: string[];
35
+ affectedFields: string[];
30
36
  };
31
- readonly ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
32
- readonly message: "Please update the relationship ending date to be after the starting date, {startingDate}.";
33
- readonly params: readonly ["startingDate"];
34
- readonly affectedFields: readonly ["endingDate"];
37
+ ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
38
+ severity: "error";
39
+ message: string;
40
+ params: string[];
41
+ affectedFields: string[];
35
42
  };
36
- readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
37
- readonly message: "{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.";
38
- readonly params: readonly ["clientName", "clientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
39
- readonly affectedFields: readonly ["endingDate"];
43
+ ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
44
+ severity: "error";
45
+ message: string;
46
+ params: string[];
47
+ affectedFields: string[];
40
48
  };
41
- readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
42
- readonly message: "{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.";
43
- readonly params: readonly ["relatedClientName", "relatedClientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
44
- readonly affectedFields: readonly ["endingDate"];
49
+ ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
50
+ severity: "error";
51
+ message: string;
52
+ params: string[];
53
+ affectedFields: string[];
45
54
  };
46
- readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
47
- readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.";
48
- readonly params: readonly ["clientName", "relatedClientName", "clientCloseDate"];
49
- readonly affectedFields: readonly ["endingDate", "final"];
55
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
56
+ severity: "error";
57
+ message: string;
58
+ params: string[];
59
+ affectedFields: string[];
50
60
  };
51
- readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
52
- readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.";
53
- readonly params: readonly ["clientName", "relatedClientName", "relatedClientCloseDate"];
54
- readonly affectedFields: readonly ["endingDate", "final"];
61
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
62
+ severity: "error";
63
+ message: string;
64
+ params: string[];
65
+ affectedFields: string[];
55
66
  };
56
- readonly CIRCULAR_RELATIONSHIP_DETECTED: {
57
- readonly message: "{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.";
58
- readonly params: readonly ["clientName", "relatedClientName", "relationshipType"];
59
- readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
67
+ CIRCULAR_RELATIONSHIP_DETECTED: {
68
+ severity: "error";
69
+ message: string;
70
+ params: string[];
71
+ affectedFields: string[];
60
72
  };
61
- readonly CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
62
- readonly message: "{relatedClientName} cannot be associated with {clientName} more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.";
63
- readonly params: readonly ["relatedClientName", "clientName"];
64
- readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
73
+ CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
74
+ severity: "error";
75
+ message: string;
76
+ params: string[];
77
+ affectedFields: string[];
65
78
  };
66
- readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
67
- readonly message: "There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.";
68
- readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
69
- readonly affectedFields: readonly ["startingDate", "endingDate"];
79
+ CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
80
+ severity: "error";
81
+ message: string;
82
+ params: string[];
83
+ affectedFields: string[];
70
84
  };
71
85
  };
72
86
  //# sourceMappingURL=client-relationships-common.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsE9B,CAAC"}
1
+ {"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFtC,CAAC"}
@@ -1,74 +1,89 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_RELATIONSHIPS_COMMON = void 0;
4
- exports.CLIENT_RELATIONSHIPS_COMMON = {
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.CLIENT_RELATIONSHIPS_COMMON = (0, validation_message_types_1.defineValidationFeatureMessages)({
5
6
  CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
6
8
  message: `A client cannot have a relationship with itself.`,
7
9
  affectedFields: ['relatedClient'],
8
10
  },
9
11
  INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
10
- message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
12
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
+ message: `'{clientName}' is a/an '{entityType}', which can't have '{relationshipType}'s. Please update the relationship type.`,
11
14
  params: ['clientName', 'entityType', 'relationshipType'],
12
15
  affectedFields: ['relationshipType'],
13
16
  },
14
17
  STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
15
- message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
18
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
19
+ message: `This relationship's start date cannot be before {clientName}'s date established, '{clientDateEstablished}'. Please adjust the dates to proceed.`,
16
20
  params: ['clientName', 'clientDateEstablished'],
17
21
  affectedFields: ['startingDate'],
18
22
  },
19
23
  STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
20
- message: `This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.`,
24
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
25
+ message: `This relationship's start date cannot be on or after {clientName}'s close date, '{clientCloseDate}'. Please adjust the dates to proceed.`,
21
26
  params: ['clientName', 'clientCloseDate'],
22
27
  affectedFields: ['startingDate'],
23
28
  },
24
29
  STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
25
- message: `This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.`,
30
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
31
+ message: `This relationship's start date cannot be before {relatedClientName}'s date established, '{relatedClientDateEstablished}'. Please adjust the dates to proceed.`,
26
32
  params: ['relatedClientName', 'relatedClientDateEstablished'],
27
33
  affectedFields: ['startingDate'],
28
34
  },
29
35
  STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
30
- message: `This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.`,
36
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
37
+ message: `This relationship's start date cannot be on or after {relatedClientName}'s close date, '{relatedClientCloseDate}'. Please adjust the dates to proceed.`,
31
38
  params: ['relatedClientName', 'relatedClientCloseDate'],
32
39
  affectedFields: ['startingDate'],
33
40
  },
34
41
  ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
35
- message: `Please update the relationship ending date to be after the starting date, {startingDate}.`,
42
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
43
+ message: `Please update the relationship ending date to be after the starting date, '{startingDate}'.`,
36
44
  params: ['startingDate'],
37
45
  affectedFields: ['endingDate'],
38
46
  },
39
47
  ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
40
- message: `{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.`,
48
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
49
+ message: `{clientName}'s close date is '{clientCloseDate}'. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before '{clientCloseDate}': '{relationshipsWithEndingDateAfterCloseDate}', or update {clientName}'s close date.`,
41
50
  params: ['clientName', 'clientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
42
51
  affectedFields: ['endingDate'],
43
52
  },
44
53
  ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
45
- message: `{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.`,
54
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
55
+ message: `{relatedClientName}'s close date is '{relatedClientCloseDate}'. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before '{relatedClientCloseDate}': '{relationshipsWithEndingDateAfterCloseDate}', or update {relatedClientName}'s close date.`,
46
56
  params: ['relatedClientName', 'relatedClientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
47
57
  affectedFields: ['endingDate'],
48
58
  },
49
59
  FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
50
- message: `The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.`,
60
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
61
+ message: `The relationship between '{clientName}' and '{relatedClientName}' has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of '{clientCloseDate}', or mark the relationship as final.`,
51
62
  params: ['clientName', 'relatedClientName', 'clientCloseDate'],
52
63
  affectedFields: ['endingDate', 'final'],
53
64
  },
54
65
  FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
55
- message: `The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.`,
66
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
67
+ message: `The relationship between '{clientName}' and '{relatedClientName}' has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of '{relatedClientCloseDate}', or mark the relationship as final.`,
56
68
  params: ['clientName', 'relatedClientName', 'relatedClientCloseDate'],
57
69
  affectedFields: ['endingDate', 'final'],
58
70
  },
59
71
  CIRCULAR_RELATIONSHIP_DETECTED: {
60
- message: `{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.`,
72
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
73
+ message: `'{clientName}' is listed as a '{relationshipType}' of '{relatedClientName}', during the same timeframe that '{relatedClientName}' is listed as a '{relationshipType}' of '{clientName}'. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.`,
61
74
  params: ['clientName', 'relatedClientName', 'relationshipType'],
62
75
  affectedFields: ['relationshipType', 'relatedClient', 'startingDate', 'endingDate'],
63
76
  },
64
77
  CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
65
- message: `{relatedClientName} cannot be associated with {clientName} more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.`,
78
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
79
+ message: `'{relatedClientName}' cannot be associated with '{clientName}' more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.`,
66
80
  params: ['relatedClientName', 'clientName'],
67
81
  affectedFields: ['relationshipType', 'relatedClient', 'startingDate', 'endingDate'],
68
82
  },
69
83
  CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
70
- message: `There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.`,
84
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
85
+ message: `There is another '{relationshipType}' relationship between '{relatedClientName}' and '{clientName}' ending on '{relationshipEnding}'. Please review and adjust the dates to track this relationship in one record.`,
71
86
  params: ['relationshipType', 'relatedClientName', 'clientName', 'relationshipEnding'],
72
87
  affectedFields: ['startingDate', 'endingDate'],
73
88
  },
74
- };
89
+ });
@@ -1,72 +1,88 @@
1
1
  export declare const CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
2
- readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
3
- readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
4
- readonly params: readonly ["clientName", "parentClientName"];
5
- readonly affectedFields: readonly ["relationshipType", "startingDate", "endingDate"];
6
- };
7
- readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
8
- readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
9
- readonly affectedFields: readonly ["relationshipType", "filingStatus"];
10
- };
11
- readonly SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
12
- readonly message: "A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.";
13
- readonly affectedFields: readonly ["profit", "relationshipType"];
14
- };
15
- readonly SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
16
- readonly message: "A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.";
17
- readonly affectedFields: readonly ["loss", "relationshipType"];
18
- };
19
- readonly SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
20
- readonly message: "A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.";
21
- readonly affectedFields: readonly ["capital", "relationshipType"];
22
- };
23
- readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
24
- readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
25
- readonly affectedFields: readonly ["relatedClient", "relationshipType"];
26
- };
27
- readonly K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
28
- readonly message: "A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
29
- readonly affectedFields: readonly ["profit", "k1Applicable"];
30
- };
31
- readonly K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
32
- readonly message: "A K1 issuer must allocate a loss percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
33
- readonly affectedFields: readonly ["loss", "k1Applicable"];
34
- };
35
- readonly K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
36
- readonly message: "A K1 issuer must allocate a capital percentage greater than 0%. Please enter a capital percentage, or change Receives K1 to 'No'.";
37
- readonly affectedFields: readonly ["capital", "k1Applicable"];
38
- };
39
- readonly K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
40
- readonly message: "A K1 issuer that does not issue a K1 cannot allocate a profit percentage. Please update the profit percentage to 0%, or change Receives K1 to 'Yes'.";
41
- readonly affectedFields: readonly ["profit", "k1Applicable"];
42
- };
43
- readonly K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
44
- readonly message: "A K1 issuer that does not issue a K1 cannot allocate a loss percentage. Please update the loss percentage to 0%, or change Receives K1 to 'Yes'.";
45
- readonly affectedFields: readonly ["loss", "k1Applicable"];
46
- };
47
- readonly K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
48
- readonly message: "A K1 issuer that does not issue a K1 cannot allocate a capital percentage. Please update the capital percentage to 0%, or change Receives K1 to 'Yes'.";
49
- readonly affectedFields: readonly ["capital", "k1Applicable"];
50
- };
51
- readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
52
- readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
53
- readonly params: readonly ["relatedClient", "entityType"];
54
- readonly affectedFields: readonly ["relatedClient", "relationshipType"];
55
- };
56
- readonly INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
57
- readonly message: "The ownership percentages for {relatedClient}'s profit exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
58
- readonly params: readonly ["relatedClient"];
59
- readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
60
- };
61
- readonly INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
62
- readonly message: "The ownership percentages for {relatedClient}'s loss exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
63
- readonly params: readonly ["relatedClient"];
64
- readonly affectedFields: readonly ["loss", "startingDate", "endingDate"];
65
- };
66
- readonly INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
67
- readonly message: "The ownership percentages for {relatedClient}'s capital exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
68
- readonly params: readonly ["relatedClient"];
69
- readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
2
+ SUBSIDIARY_CANNOT_HAVE_PARENT: {
3
+ severity: "error";
4
+ message: string;
5
+ params: string[];
6
+ affectedFields: string[];
7
+ };
8
+ SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
9
+ severity: "error";
10
+ message: string;
11
+ affectedFields: string[];
12
+ };
13
+ SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
14
+ severity: "error";
15
+ message: string;
16
+ affectedFields: string[];
17
+ };
18
+ SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
19
+ severity: "error";
20
+ message: string;
21
+ affectedFields: string[];
22
+ };
23
+ SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
24
+ severity: "error";
25
+ message: string;
26
+ affectedFields: string[];
27
+ };
28
+ SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
29
+ severity: "error";
30
+ message: string;
31
+ affectedFields: string[];
32
+ };
33
+ K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
34
+ severity: "error";
35
+ message: string;
36
+ affectedFields: string[];
37
+ };
38
+ K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
39
+ severity: "error";
40
+ message: string;
41
+ affectedFields: string[];
42
+ };
43
+ K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
44
+ severity: "error";
45
+ message: string;
46
+ affectedFields: string[];
47
+ };
48
+ K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
49
+ severity: "error";
50
+ message: string;
51
+ affectedFields: string[];
52
+ };
53
+ K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
54
+ severity: "error";
55
+ message: string;
56
+ affectedFields: string[];
57
+ };
58
+ K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
59
+ severity: "error";
60
+ message: string;
61
+ affectedFields: string[];
62
+ };
63
+ K1_ISSUER_INVALID_ENTITY_TYPE: {
64
+ severity: "error";
65
+ message: string;
66
+ params: string[];
67
+ affectedFields: string[];
68
+ };
69
+ INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
70
+ severity: "error";
71
+ message: string;
72
+ params: string[];
73
+ affectedFields: string[];
74
+ };
75
+ INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
76
+ severity: "error";
77
+ message: string;
78
+ params: string[];
79
+ affectedFields: string[];
80
+ };
81
+ INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
82
+ severity: "error";
83
+ message: string;
84
+ params: string[];
85
+ affectedFields: string[];
70
86
  };
71
87
  };
72
88
  //# sourceMappingURL=client-relationships-income-sources.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-relationships-income-sources.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-income-sources.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEtC,CAAC"}
1
+ {"version":3,"file":"client-relationships-income-sources.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-income-sources.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsF9C,CAAC"}
@@ -1,74 +1,91 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = void 0;
4
- exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = {
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = (0, validation_message_types_1.defineValidationFeatureMessages)({
5
6
  SUBSIDIARY_CANNOT_HAVE_PARENT: {
6
- message: `{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.`,
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
8
+ message: `'{clientName}' cannot have subsidiary relationships since it is filing as a subsidiary under '{parentClientName}' during this timeframe. Please adjust the timeframe or select a different relationship type.`,
7
9
  params: ['clientName', 'parentClientName'],
8
10
  affectedFields: ['relationshipType', 'startingDate', 'endingDate'],
9
11
  },
10
12
  SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
13
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
11
14
  message: `A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.`,
12
15
  affectedFields: ['relationshipType', 'filingStatus'],
13
16
  },
14
17
  SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
18
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
15
19
  message: `A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.`,
16
20
  affectedFields: ['profit', 'relationshipType'],
17
21
  },
18
22
  SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
23
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
19
24
  message: `A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.`,
20
25
  affectedFields: ['loss', 'relationshipType'],
21
26
  },
22
27
  SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
28
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
23
29
  message: `A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.`,
24
30
  affectedFields: ['capital', 'relationshipType'],
25
31
  },
26
32
  SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
33
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
27
34
  message: `A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.`,
28
35
  affectedFields: ['relatedClient', 'relationshipType'],
29
36
  },
30
37
  K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
38
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
31
39
  message: `A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
32
40
  affectedFields: ['profit', 'k1Applicable'],
33
41
  },
34
42
  K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
43
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
35
44
  message: `A K1 issuer must allocate a loss percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
36
45
  affectedFields: ['loss', 'k1Applicable'],
37
46
  },
38
47
  K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
48
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
39
49
  message: `A K1 issuer must allocate a capital percentage greater than 0%. Please enter a capital percentage, or change Receives K1 to 'No'.`,
40
50
  affectedFields: ['capital', 'k1Applicable'],
41
51
  },
42
52
  K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
53
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
43
54
  message: `A K1 issuer that does not issue a K1 cannot allocate a profit percentage. Please update the profit percentage to 0%, or change Receives K1 to 'Yes'.`,
44
55
  affectedFields: ['profit', 'k1Applicable'],
45
56
  },
46
57
  K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
58
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
47
59
  message: `A K1 issuer that does not issue a K1 cannot allocate a loss percentage. Please update the loss percentage to 0%, or change Receives K1 to 'Yes'.`,
48
60
  affectedFields: ['loss', 'k1Applicable'],
49
61
  },
50
62
  K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
63
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
51
64
  message: `A K1 issuer that does not issue a K1 cannot allocate a capital percentage. Please update the capital percentage to 0%, or change Receives K1 to 'Yes'.`,
52
65
  affectedFields: ['capital', 'k1Applicable'],
53
66
  },
54
67
  K1_ISSUER_INVALID_ENTITY_TYPE: {
55
- message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
68
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
69
+ message: `'{relatedClient}' is a/an '{entityType}', which cannot issue K1s. Please select a different client or choose a different relationship type.`,
56
70
  params: ['relatedClient', 'entityType'],
57
71
  affectedFields: ['relatedClient', 'relationshipType'],
58
72
  },
59
73
  INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
74
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
60
75
  message: `The ownership percentages for {relatedClient}'s profit exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.`,
61
76
  params: ['relatedClient'],
62
77
  affectedFields: ['profit', 'startingDate', 'endingDate'],
63
78
  },
64
79
  INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
80
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
65
81
  message: `The ownership percentages for {relatedClient}'s loss exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.`,
66
82
  params: ['relatedClient'],
67
83
  affectedFields: ['loss', 'startingDate', 'endingDate'],
68
84
  },
69
85
  INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
86
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
70
87
  message: `The ownership percentages for {relatedClient}'s capital exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.`,
71
88
  params: ['relatedClient'],
72
89
  affectedFields: ['capital', 'startingDate', 'endingDate'],
73
90
  },
74
- };
91
+ });