@forwardslashns/taskit-validation-messages 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/validation/validation-constants.d.ts +5 -0
- package/dist/validation/validation-constants.d.ts.map +1 -1
- package/dist/validation/validation-constants.js +11 -1
- package/package.json +1 -1
- package/src/index.ts +22 -3
- package/src/validation/validation-constants.ts +13 -0
- package/dist/validation/features/client-relationships.validation-messages.d.ts +0 -209
- package/dist/validation/features/client-relationships.validation-messages.d.ts.map +0 -1
- package/dist/validation/features/client-relationships.validation-messages.js +0 -211
- package/src/validation/features/client-relationships.validation-messages.ts +0 -208
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { getValidationMessage, ValidationMessageResult } from './validation/validation-message.formatter';
|
|
2
|
-
import { VALIDATION } from './validation/validation-constants';
|
|
3
|
-
export { VALIDATION, getValidationMessage, ValidationMessageResult };
|
|
2
|
+
import { VALIDATION, RELATED_CLIENT_PREFIX, RELATED_CLIENT_SUFFIX, RELATED_CLIENT_REGEX, getRelatedClientMessagePrefix, extractRelatedClientName } from './validation/validation-constants';
|
|
3
|
+
export { VALIDATION, getValidationMessage, ValidationMessageResult, RELATED_CLIENT_PREFIX, RELATED_CLIENT_SUFFIX, RELATED_CLIENT_REGEX, getRelatedClientMessagePrefix, extractRelatedClientName, };
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,EAC7B,wBAAwB,GACzB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getValidationMessage = exports.VALIDATION = void 0;
|
|
3
|
+
exports.extractRelatedClientName = exports.getRelatedClientMessagePrefix = exports.RELATED_CLIENT_REGEX = exports.RELATED_CLIENT_SUFFIX = exports.RELATED_CLIENT_PREFIX = exports.getValidationMessage = exports.VALIDATION = void 0;
|
|
4
4
|
const validation_message_formatter_1 = require("./validation/validation-message.formatter");
|
|
5
5
|
Object.defineProperty(exports, "getValidationMessage", { enumerable: true, get: function () { return validation_message_formatter_1.getValidationMessage; } });
|
|
6
6
|
const validation_constants_1 = require("./validation/validation-constants");
|
|
7
7
|
Object.defineProperty(exports, "VALIDATION", { enumerable: true, get: function () { return validation_constants_1.VALIDATION; } });
|
|
8
|
+
Object.defineProperty(exports, "RELATED_CLIENT_PREFIX", { enumerable: true, get: function () { return validation_constants_1.RELATED_CLIENT_PREFIX; } });
|
|
9
|
+
Object.defineProperty(exports, "RELATED_CLIENT_SUFFIX", { enumerable: true, get: function () { return validation_constants_1.RELATED_CLIENT_SUFFIX; } });
|
|
10
|
+
Object.defineProperty(exports, "RELATED_CLIENT_REGEX", { enumerable: true, get: function () { return validation_constants_1.RELATED_CLIENT_REGEX; } });
|
|
11
|
+
Object.defineProperty(exports, "getRelatedClientMessagePrefix", { enumerable: true, get: function () { return validation_constants_1.getRelatedClientMessagePrefix; } });
|
|
12
|
+
Object.defineProperty(exports, "extractRelatedClientName", { enumerable: true, get: function () { return validation_constants_1.extractRelatedClientName; } });
|
|
@@ -2,4 +2,9 @@ import { VALIDATION_MESSAGES } from './validation-messages';
|
|
|
2
2
|
export declare const VALIDATION: { [F in keyof typeof VALIDATION_MESSAGES]: {
|
|
3
3
|
readonly FEATURE: F;
|
|
4
4
|
} & { [K in keyof (typeof VALIDATION_MESSAGES)[F]]: `${F}.${K & string}`; }; };
|
|
5
|
+
export declare const RELATED_CLIENT_PREFIX = "[Related Client \"";
|
|
6
|
+
export declare const RELATED_CLIENT_SUFFIX = "\"] ";
|
|
7
|
+
export declare const getRelatedClientMessagePrefix: (clientName: string) => string;
|
|
8
|
+
export declare const RELATED_CLIENT_REGEX: RegExp;
|
|
9
|
+
export declare const extractRelatedClientName: (message: string) => string | null;
|
|
5
10
|
//# sourceMappingURL=validation-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-constants.d.ts","sourceRoot":"","sources":["../../src/validation/validation-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAmB5D,eAAO,MAAM,UAAU,EAAkC,GACtD,CAAC,IAAI,MAAM,OAAO,mBAAmB,GAAG;IACvC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;CACrB,GAAG,GACD,CAAC,IAAI,MAAM,CAAC,OAAO,mBAAmB,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GACnE,GACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"validation-constants.d.ts","sourceRoot":"","sources":["../../src/validation/validation-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAmB5D,eAAO,MAAM,UAAU,EAAkC,GACtD,CAAC,IAAI,MAAM,OAAO,mBAAmB,GAAG;IACvC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;CACrB,GAAG,GACD,CAAC,IAAI,MAAM,CAAC,OAAO,mBAAmB,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GACnE,GACF,CAAC;AAEF,eAAO,MAAM,qBAAqB,uBAAsB,CAAC;AACzD,eAAO,MAAM,qBAAqB,SAAQ,CAAC;AAE3C,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,KAAG,MACF,CAAC;AAElE,eAAO,MAAM,oBAAoB,QAAsC,CAAC;AAExE,eAAO,MAAM,wBAAwB,GAAI,SAAS,MAAM,KAAG,MAAM,GAAG,IAGnE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VALIDATION = void 0;
|
|
3
|
+
exports.extractRelatedClientName = exports.RELATED_CLIENT_REGEX = exports.getRelatedClientMessagePrefix = exports.RELATED_CLIENT_SUFFIX = exports.RELATED_CLIENT_PREFIX = exports.VALIDATION = void 0;
|
|
4
4
|
const validation_messages_1 = require("./validation-messages");
|
|
5
5
|
const createValidationConstants = () => {
|
|
6
6
|
const result = {};
|
|
@@ -16,3 +16,13 @@ const createValidationConstants = () => {
|
|
|
16
16
|
return result;
|
|
17
17
|
};
|
|
18
18
|
exports.VALIDATION = createValidationConstants();
|
|
19
|
+
exports.RELATED_CLIENT_PREFIX = '[Related Client "';
|
|
20
|
+
exports.RELATED_CLIENT_SUFFIX = '"] ';
|
|
21
|
+
const getRelatedClientMessagePrefix = (clientName) => `${exports.RELATED_CLIENT_PREFIX}${clientName}${exports.RELATED_CLIENT_SUFFIX}`;
|
|
22
|
+
exports.getRelatedClientMessagePrefix = getRelatedClientMessagePrefix;
|
|
23
|
+
exports.RELATED_CLIENT_REGEX = /^\[Related Client "([^"]+)"\]\s+/i;
|
|
24
|
+
const extractRelatedClientName = (message) => {
|
|
25
|
+
const match = message.match(exports.RELATED_CLIENT_REGEX);
|
|
26
|
+
return match ? match[1] : null;
|
|
27
|
+
};
|
|
28
|
+
exports.extractRelatedClientName = extractRelatedClientName;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
getValidationMessage,
|
|
3
|
+
ValidationMessageResult,
|
|
4
|
+
} from './validation/validation-message.formatter';
|
|
5
|
+
import {
|
|
6
|
+
VALIDATION,
|
|
7
|
+
RELATED_CLIENT_PREFIX,
|
|
8
|
+
RELATED_CLIENT_SUFFIX,
|
|
9
|
+
RELATED_CLIENT_REGEX,
|
|
10
|
+
getRelatedClientMessagePrefix,
|
|
11
|
+
extractRelatedClientName,
|
|
12
|
+
} from './validation/validation-constants';
|
|
3
13
|
|
|
4
|
-
export {
|
|
14
|
+
export {
|
|
15
|
+
VALIDATION,
|
|
16
|
+
getValidationMessage,
|
|
17
|
+
ValidationMessageResult,
|
|
18
|
+
RELATED_CLIENT_PREFIX,
|
|
19
|
+
RELATED_CLIENT_SUFFIX,
|
|
20
|
+
RELATED_CLIENT_REGEX,
|
|
21
|
+
getRelatedClientMessagePrefix,
|
|
22
|
+
extractRelatedClientName,
|
|
23
|
+
};
|
|
@@ -24,3 +24,16 @@ export const VALIDATION = createValidationConstants() as {
|
|
|
24
24
|
[K in keyof (typeof VALIDATION_MESSAGES)[F]]: `${F}.${K & string}`;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
|
|
28
|
+
export const RELATED_CLIENT_PREFIX = '[Related Client "';
|
|
29
|
+
export const RELATED_CLIENT_SUFFIX = '"] ';
|
|
30
|
+
|
|
31
|
+
export const getRelatedClientMessagePrefix = (clientName: string): string =>
|
|
32
|
+
`${RELATED_CLIENT_PREFIX}${clientName}${RELATED_CLIENT_SUFFIX}`;
|
|
33
|
+
|
|
34
|
+
export const RELATED_CLIENT_REGEX = /^\[Related Client "([^"]+)"\]\s+/i;
|
|
35
|
+
|
|
36
|
+
export const extractRelatedClientName = (message: string): string | null => {
|
|
37
|
+
const match = message.match(RELATED_CLIENT_REGEX);
|
|
38
|
+
return match ? match[1] : null;
|
|
39
|
+
};
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
export declare const CLIENT_RELATIONSHIPS: {
|
|
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
|
-
readonly CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
63
|
-
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.";
|
|
64
|
-
readonly params: readonly ["clientName", "relatedClientName", "relationshipType"];
|
|
65
|
-
readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
|
|
66
|
-
};
|
|
67
|
-
readonly CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
68
|
-
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.";
|
|
69
|
-
readonly params: readonly ["relatedClientName", "clientName"];
|
|
70
|
-
readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
|
|
71
|
-
};
|
|
72
|
-
readonly MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
73
|
-
readonly message: "There can only be one parent relationship associated to a client during the same timeframe. There is a current parent relationship with {parentRelatedClientName} starting {relationshipStarting}. Please add an end date to that relationship before adding a new one.";
|
|
74
|
-
readonly params: readonly ["parentRelatedClientName", "relationshipStarting"];
|
|
75
|
-
readonly affectedFields: readonly ["relationshipTypeId", "startingDate"];
|
|
76
|
-
};
|
|
77
|
-
readonly PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
78
|
-
readonly message: "{relatedClientName} cannot be the parent of {clientName}, since it is filing as a sub-entity under another parent during this timeframe. Please adjust the timeframe or select a different relationship type.";
|
|
79
|
-
readonly params: readonly ["relatedClientName", "clientName"];
|
|
80
|
-
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId", "startingDate", "endingDate"];
|
|
81
|
-
};
|
|
82
|
-
readonly PARENT_ENTITY_TYPE_MISMATCH: {
|
|
83
|
-
readonly message: "A parent entity must be the same entity type as the client during the relationship's timeframe. Please select a different relationship type or update either client's entity type.";
|
|
84
|
-
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
85
|
-
};
|
|
86
|
-
readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
87
|
-
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.";
|
|
88
|
-
readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
|
|
89
|
-
readonly affectedFields: readonly ["startingDate", "endingDate"];
|
|
90
|
-
};
|
|
91
|
-
readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
92
|
-
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.";
|
|
93
|
-
readonly params: readonly ["clientName", "parentClientName"];
|
|
94
|
-
readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
|
|
95
|
-
};
|
|
96
|
-
readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
97
|
-
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.";
|
|
98
|
-
readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
|
|
99
|
-
};
|
|
100
|
-
readonly PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
101
|
-
readonly message: "A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
102
|
-
readonly affectedFields: readonly ["profit", "relationshipTypeId"];
|
|
103
|
-
};
|
|
104
|
-
readonly PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
105
|
-
readonly message: "A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
106
|
-
readonly affectedFields: readonly ["loss", "relationshipTypeId"];
|
|
107
|
-
};
|
|
108
|
-
readonly PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
109
|
-
readonly message: "A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
110
|
-
readonly affectedFields: readonly ["capital", "relationshipTypeId"];
|
|
111
|
-
};
|
|
112
|
-
readonly SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
113
|
-
readonly message: "A shareholder relationship that issues a K1 must have a profit percentage greater than 0%. Please enter a profit percentage, or change Issues K1 to 'No'.";
|
|
114
|
-
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
115
|
-
};
|
|
116
|
-
readonly SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
117
|
-
readonly message: "A shareholder relationship that issues a K1 must have a loss percentage greater than 0%. Please enter a loss percentage, or change Issues K1 to 'No'.";
|
|
118
|
-
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
119
|
-
};
|
|
120
|
-
readonly SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
121
|
-
readonly message: "A shareholder relationship that issues a K1 must have a capital percentage greater than 0%. Please enter a capital percentage, or change Issues K1 to 'No'.";
|
|
122
|
-
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
123
|
-
};
|
|
124
|
-
readonly TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
125
|
-
readonly message: "The total profit percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
|
|
126
|
-
readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
|
|
127
|
-
};
|
|
128
|
-
readonly TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
129
|
-
readonly message: "The total loss percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
|
|
130
|
-
readonly affectedFields: readonly ["loss", "startingDate", "endingDate"];
|
|
131
|
-
};
|
|
132
|
-
readonly TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
133
|
-
readonly message: "The total capital percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
|
|
134
|
-
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
135
|
-
};
|
|
136
|
-
readonly SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
137
|
-
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% profit percentage. Please update the profit percentage, or change Issues K1 to 'Yes'.";
|
|
138
|
-
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
139
|
-
};
|
|
140
|
-
readonly SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
141
|
-
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% loss percentage. Please update the loss percentage, or change Issues K1 to 'Yes'.";
|
|
142
|
-
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
143
|
-
};
|
|
144
|
-
readonly SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
145
|
-
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% capital percentage. Please update the capital percentage, or change Issues K1 to 'Yes'.";
|
|
146
|
-
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
147
|
-
};
|
|
148
|
-
readonly SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
149
|
-
readonly message: "A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
150
|
-
readonly affectedFields: readonly ["profit", "relationshipTypeId"];
|
|
151
|
-
};
|
|
152
|
-
readonly SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
153
|
-
readonly message: "A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
154
|
-
readonly affectedFields: readonly ["loss", "relationshipTypeId"];
|
|
155
|
-
};
|
|
156
|
-
readonly SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
157
|
-
readonly message: "A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
158
|
-
readonly affectedFields: readonly ["capital", "relationshipTypeId"];
|
|
159
|
-
};
|
|
160
|
-
readonly K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
161
|
-
readonly message: "A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
|
|
162
|
-
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
163
|
-
};
|
|
164
|
-
readonly K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
165
|
-
readonly message: "A K1 issuer must allocate a loss percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
|
|
166
|
-
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
167
|
-
};
|
|
168
|
-
readonly K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
169
|
-
readonly message: "A K1 issuer must allocate a capital percentage greater than 0%. Please enter a capital percentage, or change Receives K1 to 'No'.";
|
|
170
|
-
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
171
|
-
};
|
|
172
|
-
readonly K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
173
|
-
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'.";
|
|
174
|
-
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
175
|
-
};
|
|
176
|
-
readonly K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
177
|
-
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'.";
|
|
178
|
-
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
179
|
-
};
|
|
180
|
-
readonly K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
181
|
-
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'.";
|
|
182
|
-
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
183
|
-
};
|
|
184
|
-
readonly INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
185
|
-
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%.";
|
|
186
|
-
readonly params: readonly ["relatedClient"];
|
|
187
|
-
readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
|
|
188
|
-
};
|
|
189
|
-
readonly INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
190
|
-
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%.";
|
|
191
|
-
readonly params: readonly ["relatedClient"];
|
|
192
|
-
readonly affectedFields: readonly ["loss", "startingDate", "endingDate"];
|
|
193
|
-
};
|
|
194
|
-
readonly INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
195
|
-
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%.";
|
|
196
|
-
readonly params: readonly ["relatedClient"];
|
|
197
|
-
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
198
|
-
};
|
|
199
|
-
readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
200
|
-
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.";
|
|
201
|
-
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
202
|
-
};
|
|
203
|
-
readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
204
|
-
readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
|
|
205
|
-
readonly params: readonly ["relatedClient", "entityType"];
|
|
206
|
-
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
//# sourceMappingURL=client-relationships.validation-messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-relationships.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+MvB,CAAC"}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CLIENT_RELATIONSHIPS = void 0;
|
|
4
|
-
exports.CLIENT_RELATIONSHIPS = {
|
|
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
|
-
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
66
|
-
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.`,
|
|
67
|
-
params: ['clientName', 'relatedClientName', 'relationshipType'],
|
|
68
|
-
affectedFields: ['relationshipTypeId', 'relatedClientId', 'startingDate', 'endingDate'],
|
|
69
|
-
},
|
|
70
|
-
CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
71
|
-
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.`,
|
|
72
|
-
params: ['relatedClientName', 'clientName'],
|
|
73
|
-
affectedFields: ['relationshipTypeId', 'relatedClientId', 'startingDate', 'endingDate'],
|
|
74
|
-
},
|
|
75
|
-
MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
76
|
-
message: `There can only be one parent relationship associated to a client during the same timeframe. There is a current parent relationship with {parentRelatedClientName} starting {relationshipStarting}. Please add an end date to that relationship before adding a new one.`,
|
|
77
|
-
params: ['parentRelatedClientName', 'relationshipStarting'],
|
|
78
|
-
affectedFields: ['relationshipTypeId', 'startingDate'],
|
|
79
|
-
},
|
|
80
|
-
PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
81
|
-
message: `{relatedClientName} cannot be the parent of {clientName}, since it is filing as a sub-entity under another parent during this timeframe. Please adjust the timeframe or select a different relationship type.`,
|
|
82
|
-
params: ['relatedClientName', 'clientName'],
|
|
83
|
-
affectedFields: ['relatedClientId', 'relationshipTypeId', 'startingDate', 'endingDate'],
|
|
84
|
-
},
|
|
85
|
-
PARENT_ENTITY_TYPE_MISMATCH: {
|
|
86
|
-
message: `A parent entity must be the same entity type as the client during the relationship's timeframe. Please select a different relationship type or update either client's entity type.`,
|
|
87
|
-
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
88
|
-
},
|
|
89
|
-
CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
90
|
-
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.`,
|
|
91
|
-
params: ['relationshipType', 'relatedClientName', 'clientName', 'relationshipEnding'],
|
|
92
|
-
affectedFields: ['startingDate', 'endingDate'],
|
|
93
|
-
},
|
|
94
|
-
SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
95
|
-
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.`,
|
|
96
|
-
params: ['clientName', 'parentClientName'],
|
|
97
|
-
affectedFields: ['relationshipTypeId', 'startingDate', 'endingDate'],
|
|
98
|
-
},
|
|
99
|
-
SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
100
|
-
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.`,
|
|
101
|
-
affectedFields: ['relationshipTypeId', 'filingTypeId'],
|
|
102
|
-
},
|
|
103
|
-
PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
104
|
-
message: `A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
105
|
-
affectedFields: ['profit', 'relationshipTypeId'],
|
|
106
|
-
},
|
|
107
|
-
PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
108
|
-
message: `A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
109
|
-
affectedFields: ['loss', 'relationshipTypeId'],
|
|
110
|
-
},
|
|
111
|
-
PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
112
|
-
message: `A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
113
|
-
affectedFields: ['capital', 'relationshipTypeId'],
|
|
114
|
-
},
|
|
115
|
-
SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
116
|
-
message: `A shareholder relationship that issues a K1 must have a profit percentage greater than 0%. Please enter a profit percentage, or change Issues K1 to 'No'.`,
|
|
117
|
-
affectedFields: ['profit', 'k1Applicable'],
|
|
118
|
-
},
|
|
119
|
-
SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
120
|
-
message: `A shareholder relationship that issues a K1 must have a loss percentage greater than 0%. Please enter a loss percentage, or change Issues K1 to 'No'.`,
|
|
121
|
-
affectedFields: ['loss', 'k1Applicable'],
|
|
122
|
-
},
|
|
123
|
-
SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
124
|
-
message: `A shareholder relationship that issues a K1 must have a capital percentage greater than 0%. Please enter a capital percentage, or change Issues K1 to 'No'.`,
|
|
125
|
-
affectedFields: ['capital', 'k1Applicable'],
|
|
126
|
-
},
|
|
127
|
-
TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
128
|
-
message: `The total profit percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
129
|
-
affectedFields: ['profit', 'startingDate', 'endingDate'],
|
|
130
|
-
},
|
|
131
|
-
TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
132
|
-
message: `The total loss percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
133
|
-
affectedFields: ['loss', 'startingDate', 'endingDate'],
|
|
134
|
-
},
|
|
135
|
-
TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
136
|
-
message: `The total capital percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
137
|
-
affectedFields: ['capital', 'startingDate', 'endingDate'],
|
|
138
|
-
},
|
|
139
|
-
SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
140
|
-
message: `A shareholder relationship that does not issue a K1 must have a 0% profit percentage. Please update the profit percentage, or change Issues K1 to 'Yes'.`,
|
|
141
|
-
affectedFields: ['profit', 'k1Applicable'],
|
|
142
|
-
},
|
|
143
|
-
SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
144
|
-
message: `A shareholder relationship that does not issue a K1 must have a 0% loss percentage. Please update the loss percentage, or change Issues K1 to 'Yes'.`,
|
|
145
|
-
affectedFields: ['loss', 'k1Applicable'],
|
|
146
|
-
},
|
|
147
|
-
SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
148
|
-
message: `A shareholder relationship that does not issue a K1 must have a 0% capital percentage. Please update the capital percentage, or change Issues K1 to 'Yes'.`,
|
|
149
|
-
affectedFields: ['capital', 'k1Applicable'],
|
|
150
|
-
},
|
|
151
|
-
SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
152
|
-
message: `A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
153
|
-
affectedFields: ['profit', 'relationshipTypeId'],
|
|
154
|
-
},
|
|
155
|
-
SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
156
|
-
message: `A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
157
|
-
affectedFields: ['loss', 'relationshipTypeId'],
|
|
158
|
-
},
|
|
159
|
-
SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
160
|
-
message: `A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
161
|
-
affectedFields: ['capital', 'relationshipTypeId'],
|
|
162
|
-
},
|
|
163
|
-
K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
164
|
-
message: `A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
|
|
165
|
-
affectedFields: ['profit', 'k1Applicable'],
|
|
166
|
-
},
|
|
167
|
-
K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
168
|
-
message: `A K1 issuer must allocate a loss percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
|
|
169
|
-
affectedFields: ['loss', 'k1Applicable'],
|
|
170
|
-
},
|
|
171
|
-
K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
172
|
-
message: `A K1 issuer must allocate a capital percentage greater than 0%. Please enter a capital percentage, or change Receives K1 to 'No'.`,
|
|
173
|
-
affectedFields: ['capital', 'k1Applicable'],
|
|
174
|
-
},
|
|
175
|
-
K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
176
|
-
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'.`,
|
|
177
|
-
affectedFields: ['profit', 'k1Applicable'],
|
|
178
|
-
},
|
|
179
|
-
K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
180
|
-
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'.`,
|
|
181
|
-
affectedFields: ['loss', 'k1Applicable'],
|
|
182
|
-
},
|
|
183
|
-
K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
184
|
-
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'.`,
|
|
185
|
-
affectedFields: ['capital', 'k1Applicable'],
|
|
186
|
-
},
|
|
187
|
-
INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
188
|
-
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%.`,
|
|
189
|
-
params: ['relatedClient'],
|
|
190
|
-
affectedFields: ['profit', 'startingDate', 'endingDate'],
|
|
191
|
-
},
|
|
192
|
-
INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
193
|
-
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%.`,
|
|
194
|
-
params: ['relatedClient'],
|
|
195
|
-
affectedFields: ['loss', 'startingDate', 'endingDate'],
|
|
196
|
-
},
|
|
197
|
-
INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
198
|
-
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%.`,
|
|
199
|
-
params: ['relatedClient'],
|
|
200
|
-
affectedFields: ['capital', 'startingDate', 'endingDate'],
|
|
201
|
-
},
|
|
202
|
-
SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
203
|
-
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.`,
|
|
204
|
-
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
205
|
-
},
|
|
206
|
-
K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
207
|
-
message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
|
|
208
|
-
params: ['relatedClient', 'entityType'],
|
|
209
|
-
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
210
|
-
},
|
|
211
|
-
};
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
export const CLIENT_RELATIONSHIPS = {
|
|
2
|
-
CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
3
|
-
message: `A client cannot have a relationship with itself.`,
|
|
4
|
-
affectedFields: ['relatedClientId'],
|
|
5
|
-
},
|
|
6
|
-
INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
|
|
7
|
-
message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
|
|
8
|
-
params: ['clientName', 'entityType', 'relationshipType'],
|
|
9
|
-
affectedFields: ['relationshipTypeId'],
|
|
10
|
-
},
|
|
11
|
-
PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
12
|
-
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
|
-
affectedFields: ['relationshipTypeId', 'filingTypeId'],
|
|
14
|
-
},
|
|
15
|
-
STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
16
|
-
message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
|
|
17
|
-
params: ['clientName', 'clientDateEstablished'],
|
|
18
|
-
affectedFields: ['startingDate'],
|
|
19
|
-
},
|
|
20
|
-
STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
|
|
21
|
-
message: `This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.`,
|
|
22
|
-
params: ['clientName', 'clientCloseDate'],
|
|
23
|
-
affectedFields: ['startingDate'],
|
|
24
|
-
},
|
|
25
|
-
STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
|
|
26
|
-
message: `This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.`,
|
|
27
|
-
params: ['relatedClientName', 'relatedClientDateEstablished'],
|
|
28
|
-
affectedFields: ['startingDate'],
|
|
29
|
-
},
|
|
30
|
-
STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
31
|
-
message: `This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.`,
|
|
32
|
-
params: ['relatedClientName', 'relatedClientCloseDate'],
|
|
33
|
-
affectedFields: ['startingDate'],
|
|
34
|
-
},
|
|
35
|
-
ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
|
|
36
|
-
message: `Please update the relationship ending date to be after the starting date, {startingDate}.`,
|
|
37
|
-
params: ['startingDate'],
|
|
38
|
-
affectedFields: ['endingDate'],
|
|
39
|
-
},
|
|
40
|
-
ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
41
|
-
message: `Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.`,
|
|
42
|
-
params: ['clientCloseDate'],
|
|
43
|
-
affectedFields: ['endingDate'],
|
|
44
|
-
},
|
|
45
|
-
ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
46
|
-
message: `Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.`,
|
|
47
|
-
params: ['relatedClientName', 'relatedClientCloseDate'],
|
|
48
|
-
affectedFields: ['endingDate'],
|
|
49
|
-
},
|
|
50
|
-
MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
51
|
-
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
|
-
affectedFields: ['endingDate'],
|
|
53
|
-
},
|
|
54
|
-
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
55
|
-
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
|
-
affectedFields: ['isFinal'],
|
|
57
|
-
},
|
|
58
|
-
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
59
|
-
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
|
-
affectedFields: ['isFinal'],
|
|
61
|
-
},
|
|
62
|
-
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
63
|
-
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.`,
|
|
64
|
-
params: ['clientName', 'relatedClientName', 'relationshipType'],
|
|
65
|
-
affectedFields: ['relationshipTypeId', 'relatedClientId', 'startingDate', 'endingDate'],
|
|
66
|
-
},
|
|
67
|
-
CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
68
|
-
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.`,
|
|
69
|
-
params: ['relatedClientName', 'clientName'],
|
|
70
|
-
affectedFields: ['relationshipTypeId', 'relatedClientId', 'startingDate', 'endingDate'],
|
|
71
|
-
},
|
|
72
|
-
MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
73
|
-
message: `There can only be one parent relationship associated to a client during the same timeframe. There is a current parent relationship with {parentRelatedClientName} starting {relationshipStarting}. Please add an end date to that relationship before adding a new one.`,
|
|
74
|
-
params: ['parentRelatedClientName', 'relationshipStarting'],
|
|
75
|
-
affectedFields: ['relationshipTypeId', 'startingDate'],
|
|
76
|
-
},
|
|
77
|
-
PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
78
|
-
message: `{relatedClientName} cannot be the parent of {clientName}, since it is filing as a sub-entity under another parent during this timeframe. Please adjust the timeframe or select a different relationship type.`,
|
|
79
|
-
params: ['relatedClientName', 'clientName'],
|
|
80
|
-
affectedFields: ['relatedClientId', 'relationshipTypeId', 'startingDate', 'endingDate'],
|
|
81
|
-
},
|
|
82
|
-
PARENT_ENTITY_TYPE_MISMATCH: {
|
|
83
|
-
message: `A parent entity must be the same entity type as the client during the relationship's timeframe. Please select a different relationship type or update either client's entity type.`,
|
|
84
|
-
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
85
|
-
},
|
|
86
|
-
CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
87
|
-
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.`,
|
|
88
|
-
params: ['relationshipType', 'relatedClientName', 'clientName', 'relationshipEnding'],
|
|
89
|
-
affectedFields: ['startingDate', 'endingDate'],
|
|
90
|
-
},
|
|
91
|
-
SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
92
|
-
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.`,
|
|
93
|
-
params: ['clientName', 'parentClientName'],
|
|
94
|
-
affectedFields: ['relationshipTypeId', 'startingDate', 'endingDate'],
|
|
95
|
-
},
|
|
96
|
-
SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
97
|
-
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.`,
|
|
98
|
-
affectedFields: ['relationshipTypeId', 'filingTypeId'],
|
|
99
|
-
},
|
|
100
|
-
PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
101
|
-
message: `A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
102
|
-
affectedFields: ['profit', 'relationshipTypeId'],
|
|
103
|
-
},
|
|
104
|
-
PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
105
|
-
message: `A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
106
|
-
affectedFields: ['loss', 'relationshipTypeId'],
|
|
107
|
-
},
|
|
108
|
-
PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
109
|
-
message: `A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
110
|
-
affectedFields: ['capital', 'relationshipTypeId'],
|
|
111
|
-
},
|
|
112
|
-
SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
113
|
-
message: `A shareholder relationship that issues a K1 must have a profit percentage greater than 0%. Please enter a profit percentage, or change Issues K1 to 'No'.`,
|
|
114
|
-
affectedFields: ['profit', 'k1Applicable'],
|
|
115
|
-
},
|
|
116
|
-
SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
117
|
-
message: `A shareholder relationship that issues a K1 must have a loss percentage greater than 0%. Please enter a loss percentage, or change Issues K1 to 'No'.`,
|
|
118
|
-
affectedFields: ['loss', 'k1Applicable'],
|
|
119
|
-
},
|
|
120
|
-
SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
121
|
-
message: `A shareholder relationship that issues a K1 must have a capital percentage greater than 0%. Please enter a capital percentage, or change Issues K1 to 'No'.`,
|
|
122
|
-
affectedFields: ['capital', 'k1Applicable'],
|
|
123
|
-
},
|
|
124
|
-
TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
125
|
-
message: `The total profit percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
126
|
-
affectedFields: ['profit', 'startingDate', 'endingDate'],
|
|
127
|
-
},
|
|
128
|
-
TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
129
|
-
message: `The total loss percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
130
|
-
affectedFields: ['loss', 'startingDate', 'endingDate'],
|
|
131
|
-
},
|
|
132
|
-
TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
133
|
-
message: `The total capital percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
134
|
-
affectedFields: ['capital', 'startingDate', 'endingDate'],
|
|
135
|
-
},
|
|
136
|
-
SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
137
|
-
message: `A shareholder relationship that does not issue a K1 must have a 0% profit percentage. Please update the profit percentage, or change Issues K1 to 'Yes'.`,
|
|
138
|
-
affectedFields: ['profit', 'k1Applicable'],
|
|
139
|
-
},
|
|
140
|
-
SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
141
|
-
message: `A shareholder relationship that does not issue a K1 must have a 0% loss percentage. Please update the loss percentage, or change Issues K1 to 'Yes'.`,
|
|
142
|
-
affectedFields: ['loss', 'k1Applicable'],
|
|
143
|
-
},
|
|
144
|
-
SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
145
|
-
message: `A shareholder relationship that does not issue a K1 must have a 0% capital percentage. Please update the capital percentage, or change Issues K1 to 'Yes'.`,
|
|
146
|
-
affectedFields: ['capital', 'k1Applicable'],
|
|
147
|
-
},
|
|
148
|
-
SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
149
|
-
message: `A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
150
|
-
affectedFields: ['profit', 'relationshipTypeId'],
|
|
151
|
-
},
|
|
152
|
-
SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
153
|
-
message: `A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
154
|
-
affectedFields: ['loss', 'relationshipTypeId'],
|
|
155
|
-
},
|
|
156
|
-
SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
157
|
-
message: `A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
158
|
-
affectedFields: ['capital', 'relationshipTypeId'],
|
|
159
|
-
},
|
|
160
|
-
K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
161
|
-
message: `A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
|
|
162
|
-
affectedFields: ['profit', 'k1Applicable'],
|
|
163
|
-
},
|
|
164
|
-
K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
165
|
-
message: `A K1 issuer must allocate a loss percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
|
|
166
|
-
affectedFields: ['loss', 'k1Applicable'],
|
|
167
|
-
},
|
|
168
|
-
K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
169
|
-
message: `A K1 issuer must allocate a capital percentage greater than 0%. Please enter a capital percentage, or change Receives K1 to 'No'.`,
|
|
170
|
-
affectedFields: ['capital', 'k1Applicable'],
|
|
171
|
-
},
|
|
172
|
-
K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
173
|
-
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'.`,
|
|
174
|
-
affectedFields: ['profit', 'k1Applicable'],
|
|
175
|
-
},
|
|
176
|
-
K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
177
|
-
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'.`,
|
|
178
|
-
affectedFields: ['loss', 'k1Applicable'],
|
|
179
|
-
},
|
|
180
|
-
K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
181
|
-
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'.`,
|
|
182
|
-
affectedFields: ['capital', 'k1Applicable'],
|
|
183
|
-
},
|
|
184
|
-
INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
185
|
-
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%.`,
|
|
186
|
-
params: ['relatedClient'],
|
|
187
|
-
affectedFields: ['profit', 'startingDate', 'endingDate'],
|
|
188
|
-
},
|
|
189
|
-
INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
190
|
-
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%.`,
|
|
191
|
-
params: ['relatedClient'],
|
|
192
|
-
affectedFields: ['loss', 'startingDate', 'endingDate'],
|
|
193
|
-
},
|
|
194
|
-
INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
195
|
-
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%.`,
|
|
196
|
-
params: ['relatedClient'],
|
|
197
|
-
affectedFields: ['capital', 'startingDate', 'endingDate'],
|
|
198
|
-
},
|
|
199
|
-
SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
200
|
-
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.`,
|
|
201
|
-
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
202
|
-
},
|
|
203
|
-
K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
204
|
-
message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
|
|
205
|
-
params: ['relatedClient', 'entityType'],
|
|
206
|
-
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
207
|
-
},
|
|
208
|
-
} as const;
|