@forwardslashns/taskit-validation-messages 1.10.18 → 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.
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/validation/features/account-categories.validation-messages.d.ts +18 -14
- package/dist/validation/features/account-categories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/account-categories.validation-messages.js +7 -2
- package/dist/validation/features/account-ids.validation-messages.d.ts +23 -18
- package/dist/validation/features/account-ids.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/account-ids.validation-messages.js +8 -2
- package/dist/validation/features/business-activities.validation-messages.d.ts +18 -14
- package/dist/validation/features/business-activities.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/business-activities.validation-messages.js +7 -2
- package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +195 -158
- package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-current-entity-statuses.validation-messages.js +45 -7
- package/dist/validation/features/client-records-addresses.validation-messages.d.ts +71 -58
- package/dist/validation/features/client-records-addresses.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-addresses.validation-messages.js +16 -2
- package/dist/validation/features/client-records-banks.validation-messages.d.ts +20 -15
- package/dist/validation/features/client-records-banks.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-banks.validation-messages.js +8 -2
- package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +21 -16
- package/dist/validation/features/client-records-commission-details.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-commission-details.validation-messages.js +8 -2
- package/dist/validation/features/client-records-contacts.validation-messages.d.ts +41 -33
- package/dist/validation/features/client-records-contacts.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-contacts.validation-messages.js +11 -2
- package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts +24 -18
- package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-credit-cards.validation-messages.js +9 -2
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +97 -80
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +30 -12
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +96 -79
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +30 -12
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +96 -79
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +30 -12
- package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +10 -8
- package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-outside-providers.validation-messages.js +6 -3
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts +69 -55
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships-common.validation-messages.js +30 -15
- package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +84 -68
- package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships-income-sources.validation-messages.js +21 -4
- package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +86 -69
- package/dist/validation/features/client-relationships-owners.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships-owners.validation-messages.js +22 -4
- package/dist/validation/features/data-filters.validation-messages.d.ts +16 -12
- package/dist/validation/features/data-filters.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/data-filters.validation-messages.js +7 -2
- package/dist/validation/features/filing-categories.validation-messages.d.ts +18 -14
- package/dist/validation/features/filing-categories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/filing-categories.validation-messages.js +7 -2
- package/dist/validation/features/income-accounts.validation-messages.d.ts +17 -13
- package/dist/validation/features/income-accounts.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/income-accounts.validation-messages.js +7 -2
- package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +29 -23
- package/dist/validation/features/roles-and-permissions.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/roles-and-permissions.validation-messages.js +9 -2
- package/dist/validation/features/states.validation-messages.d.ts +55 -45
- package/dist/validation/features/states.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/states.validation-messages.js +13 -2
- package/dist/validation/features/template-assignments.validation-messages.d.ts +85 -68
- package/dist/validation/features/template-assignments.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-assignments.validation-messages.js +20 -2
- package/dist/validation/features/template-information.validation-messages.d.ts +218 -175
- package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-information.validation-messages.js +46 -2
- package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +164 -132
- package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-recurrence-settings.validation-messages.js +37 -4
- package/dist/validation/features/template-states.validation-messages.d.ts +49 -39
- package/dist/validation/features/template-states.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-states.validation-messages.js +13 -2
- package/dist/validation/features/user-preferences.validation-messages.d.ts +17 -13
- package/dist/validation/features/user-preferences.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/user-preferences.validation-messages.js +8 -3
- package/dist/validation/features/users.validation-messages.d.ts +65 -53
- package/dist/validation/features/users.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/users.validation-messages.js +17 -4
- package/dist/validation/validation-message.formatter.d.ts +2 -0
- package/dist/validation/validation-message.formatter.d.ts.map +1 -1
- package/dist/validation/validation-message.formatter.js +1 -0
- package/dist/validation/validation-message.types.d.ts +30 -0
- package/dist/validation/validation-message.types.d.ts.map +1 -0
- package/dist/validation/validation-message.types.js +9 -0
- package/dist/validation/validation-messages.d.ts +1756 -1423
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +14 -0
- package/src/validation/features/account-categories.validation-messages.ts +8 -2
- package/src/validation/features/account-ids.validation-messages.ts +9 -2
- package/src/validation/features/business-activities.validation-messages.ts +8 -2
- package/src/validation/features/client-current-entity-statuses.validation-messages.ts +46 -7
- package/src/validation/features/client-records-addresses.validation-messages.ts +17 -2
- package/src/validation/features/client-records-banks.validation-messages.ts +9 -2
- package/src/validation/features/client-records-commission-details.validation-messages.ts +9 -2
- package/src/validation/features/client-records-contacts.validation-messages.ts +12 -2
- package/src/validation/features/client-records-credit-cards.validation-messages.ts +10 -2
- package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +31 -12
- package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +31 -12
- package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts +31 -12
- package/src/validation/features/client-records-outside-providers.validation-messages.ts +7 -3
- package/src/validation/features/client-relationships-common.validation-messages.ts +31 -15
- package/src/validation/features/client-relationships-income-sources.validation-messages.ts +22 -4
- package/src/validation/features/client-relationships-owners.validation-messages.ts +23 -4
- package/src/validation/features/data-filters.validation-messages.ts +8 -2
- package/src/validation/features/filing-categories.validation-messages.ts +8 -2
- package/src/validation/features/income-accounts.validation-messages.ts +8 -2
- package/src/validation/features/roles-and-permissions.validation-messages.ts +10 -2
- package/src/validation/features/states.validation-messages.ts +14 -2
- package/src/validation/features/template-assignments.validation-messages.ts +21 -2
- package/src/validation/features/template-information.validation-messages.ts +47 -2
- package/src/validation/features/template-recurrence-settings.validation-messages.ts +38 -4
- package/src/validation/features/template-states.validation-messages.ts +14 -2
- package/src/validation/features/user-preferences.validation-messages.ts +9 -3
- package/src/validation/features/users.validation-messages.ts +18 -4
- package/src/validation/validation-message.formatter.ts +4 -6
- package/src/validation/validation-message.types.ts +36 -0
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export declare const CLIENT_RECORDS_OUTSIDE_PROVIDERS: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
INVALID_TYPE: {
|
|
3
|
+
severity: "error";
|
|
4
|
+
message: string;
|
|
5
|
+
params: string[];
|
|
6
|
+
affectedFields: string[];
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts.map
CHANGED
|
@@ -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":"
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
3
|
+
severity: "error";
|
|
4
|
+
message: string;
|
|
5
|
+
affectedFields: string[];
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
|
|
8
|
+
severity: "error";
|
|
9
|
+
message: string;
|
|
10
|
+
params: string[];
|
|
11
|
+
affectedFields: string[];
|
|
10
12
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
14
|
+
severity: "error";
|
|
15
|
+
message: string;
|
|
16
|
+
params: string[];
|
|
17
|
+
affectedFields: string[];
|
|
15
18
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
|
|
20
|
+
severity: "error";
|
|
21
|
+
message: string;
|
|
22
|
+
params: string[];
|
|
23
|
+
affectedFields: string[];
|
|
20
24
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
|
|
26
|
+
severity: "error";
|
|
27
|
+
message: string;
|
|
28
|
+
params: string[];
|
|
29
|
+
affectedFields: string[];
|
|
25
30
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
|
|
38
|
+
severity: "error";
|
|
39
|
+
message: string;
|
|
40
|
+
params: string[];
|
|
41
|
+
affectedFields: string[];
|
|
35
42
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
44
|
+
severity: "error";
|
|
45
|
+
message: string;
|
|
46
|
+
params: string[];
|
|
47
|
+
affectedFields: string[];
|
|
40
48
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
50
|
+
severity: "error";
|
|
51
|
+
message: string;
|
|
52
|
+
params: string[];
|
|
53
|
+
affectedFields: string[];
|
|
45
54
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
67
|
+
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
68
|
+
severity: "error";
|
|
69
|
+
message: string;
|
|
70
|
+
params: string[];
|
|
71
|
+
affectedFields: string[];
|
|
60
72
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
73
|
+
CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
74
|
+
severity: "error";
|
|
75
|
+
message: string;
|
|
76
|
+
params: string[];
|
|
77
|
+
affectedFields: string[];
|
|
65
78
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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":"
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
});
|
package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts
CHANGED
|
@@ -1,72 +1,88 @@
|
|
|
1
1
|
export declare const CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map
CHANGED
|
@@ -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":"
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
});
|