@forwardslashns/taskit-validation-messages 1.10.7 → 1.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/validation/features/account-categories.validation-messages.d.ts +1 -1
- package/dist/validation/features/account-categories.validation-messages.js +1 -1
- package/dist/validation/features/account-ids.validation-messages.d.ts +2 -2
- package/dist/validation/features/account-ids.validation-messages.js +2 -2
- package/dist/validation/features/business-activities.validation-messages.d.ts +1 -1
- package/dist/validation/features/business-activities.validation-messages.js +1 -1
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +2 -10
- 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 +2 -10
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts +14 -12
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships-common.validation-messages.js +14 -12
- package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +7 -7
- package/dist/validation/features/client-relationships-income-sources.validation-messages.js +7 -7
- package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +7 -7
- package/dist/validation/features/client-relationships-owners.validation-messages.js +7 -7
- package/dist/validation/features/filing-categories.validation-messages.d.ts +1 -1
- package/dist/validation/features/filing-categories.validation-messages.js +1 -1
- package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +1 -1
- package/dist/validation/features/roles-and-permissions.validation-messages.js +1 -1
- package/dist/validation/features/states.validation-messages.d.ts +5 -5
- package/dist/validation/features/states.validation-messages.js +5 -5
- package/dist/validation/features/templates.validation-messages.d.ts +62 -0
- package/dist/validation/features/templates.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/templates.validation-messages.js +62 -0
- package/dist/validation/features/users.validation-messages.d.ts +2 -2
- package/dist/validation/features/users.validation-messages.js +2 -2
- package/dist/validation/validation-messages.d.ts +105 -49
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/publish.js +36 -0
- package/src/validation/features/templates.validation-messages.ts +64 -0
|
@@ -11,7 +11,7 @@ export declare const ACCOUNT_CATEGORIES: {
|
|
|
11
11
|
readonly NAME_ALREADY_EXISTS: {
|
|
12
12
|
readonly message: "Account category with the same name '{name}' already exists";
|
|
13
13
|
readonly params: readonly ["name"];
|
|
14
|
-
readonly affectedFields: readonly ["
|
|
14
|
+
readonly affectedFields: readonly ["accountCategory"];
|
|
15
15
|
};
|
|
16
16
|
readonly OPTION_IN_USE: {
|
|
17
17
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -14,7 +14,7 @@ exports.ACCOUNT_CATEGORIES = {
|
|
|
14
14
|
NAME_ALREADY_EXISTS: {
|
|
15
15
|
message: `Account category with the same name '{name}' already exists`,
|
|
16
16
|
params: ['name'],
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['accountCategory'],
|
|
18
18
|
},
|
|
19
19
|
OPTION_IN_USE: {
|
|
20
20
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -11,12 +11,12 @@ export declare const ACCOUNT_IDS: {
|
|
|
11
11
|
readonly NAME_ALREADY_EXISTS: {
|
|
12
12
|
readonly message: "Account id with the same name '{name}' already exists";
|
|
13
13
|
readonly params: readonly ["name"];
|
|
14
|
-
readonly affectedFields: readonly ["
|
|
14
|
+
readonly affectedFields: readonly ["accountId"];
|
|
15
15
|
};
|
|
16
16
|
readonly ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
17
17
|
readonly message: "Account category does not exist";
|
|
18
18
|
readonly params: readonly ["id"];
|
|
19
|
-
readonly affectedFields: readonly ["
|
|
19
|
+
readonly affectedFields: readonly ["accountCategory"];
|
|
20
20
|
};
|
|
21
21
|
readonly OPTION_IN_USE: {
|
|
22
22
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -14,12 +14,12 @@ exports.ACCOUNT_IDS = {
|
|
|
14
14
|
NAME_ALREADY_EXISTS: {
|
|
15
15
|
message: `Account id with the same name '{name}' already exists`,
|
|
16
16
|
params: ['name'],
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['accountId'],
|
|
18
18
|
},
|
|
19
19
|
ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
20
20
|
message: `Account category does not exist`,
|
|
21
21
|
params: ['id'],
|
|
22
|
-
affectedFields: ['
|
|
22
|
+
affectedFields: ['accountCategory'],
|
|
23
23
|
},
|
|
24
24
|
OPTION_IN_USE: {
|
|
25
25
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -11,7 +11,7 @@ export declare const BUSINESS_ACTIVITIES: {
|
|
|
11
11
|
readonly NAME_ALREADY_EXISTS: {
|
|
12
12
|
readonly message: "Business activity with the same name '{name}' already exists.";
|
|
13
13
|
readonly params: readonly ["name"];
|
|
14
|
-
readonly affectedFields: readonly ["
|
|
14
|
+
readonly affectedFields: readonly ["bussinesActivity"];
|
|
15
15
|
};
|
|
16
16
|
readonly OPTION_IN_USE: {
|
|
17
17
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -14,7 +14,7 @@ exports.BUSINESS_ACTIVITIES = {
|
|
|
14
14
|
NAME_ALREADY_EXISTS: {
|
|
15
15
|
message: `Business activity with the same name '{name}' already exists.`,
|
|
16
16
|
params: ['name'],
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['bussinesActivity'],
|
|
18
18
|
},
|
|
19
19
|
OPTION_IN_USE: {
|
|
20
20
|
message: `This option is currently in use and cannot be deleted.`,
|
package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts
CHANGED
|
@@ -4,14 +4,6 @@ export declare const CLIENT_RECORDS_FILING_STATUSES: {
|
|
|
4
4
|
readonly params: readonly ["id"];
|
|
5
5
|
readonly affectedFields: readonly ["filingStatus"];
|
|
6
6
|
};
|
|
7
|
-
readonly FILING_STATUS_PARENT_REQUIRED: {
|
|
8
|
-
readonly message: "Parent needs to be specified for filing status 'Files under parent'";
|
|
9
|
-
readonly affectedFields: readonly ["currentParent"];
|
|
10
|
-
};
|
|
11
|
-
readonly CURRENT_FILING_STATUS_PARENT_REQUIRED: {
|
|
12
|
-
readonly message: "Parent needs to be specified for current filing status 'Files under parent'";
|
|
13
|
-
readonly affectedFields: readonly ["currentParent"];
|
|
14
|
-
};
|
|
15
7
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
|
|
16
8
|
readonly message: "The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.";
|
|
17
9
|
readonly params: readonly ["clientDateEstablished", "filingStatus", "filingStatusStartingDate"];
|
|
@@ -70,8 +62,8 @@ export declare const CLIENT_RECORDS_FILING_STATUSES: {
|
|
|
70
62
|
readonly affectedFields: readonly ["filingStatus"];
|
|
71
63
|
};
|
|
72
64
|
readonly FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
73
|
-
readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start date of
|
|
74
|
-
readonly params: readonly ["dateEstablished", "
|
|
65
|
+
readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start date of the first Sub/Parent status ({earliestFilingStatusStartDate}). Please ensure that the status of one Sub/Parent status matches the client's date established.";
|
|
66
|
+
readonly params: readonly ["dateEstablished", "earliestFilingStatusStartDate"];
|
|
75
67
|
readonly affectedFields: readonly ["filingStatus", "dateEstablished"];
|
|
76
68
|
};
|
|
77
69
|
readonly FILING_STATUSES_DATES_OVERLAP: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-records-filing-statuses-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-filing-statuses-histories.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"client-records-filing-statuses-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-filing-statuses-histories.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFjC,CAAC"}
|
package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js
CHANGED
|
@@ -7,14 +7,6 @@ exports.CLIENT_RECORDS_FILING_STATUSES = {
|
|
|
7
7
|
params: ['id'],
|
|
8
8
|
affectedFields: ['filingStatus'],
|
|
9
9
|
},
|
|
10
|
-
FILING_STATUS_PARENT_REQUIRED: {
|
|
11
|
-
message: `Parent needs to be specified for filing status 'Files under parent'`,
|
|
12
|
-
affectedFields: ['currentParent'],
|
|
13
|
-
},
|
|
14
|
-
CURRENT_FILING_STATUS_PARENT_REQUIRED: {
|
|
15
|
-
message: `Parent needs to be specified for current filing status 'Files under parent'`,
|
|
16
|
-
affectedFields: ['currentParent'],
|
|
17
|
-
},
|
|
18
10
|
NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
|
|
19
11
|
message: `The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.`,
|
|
20
12
|
params: ['clientDateEstablished', 'filingStatus', 'filingStatusStartingDate'],
|
|
@@ -73,8 +65,8 @@ exports.CLIENT_RECORDS_FILING_STATUSES = {
|
|
|
73
65
|
affectedFields: ['filingStatus'],
|
|
74
66
|
},
|
|
75
67
|
FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
|
|
76
|
-
message: `There is a gap between the client's date established ({dateEstablished}) and the start date of
|
|
77
|
-
params: ['dateEstablished', '
|
|
68
|
+
message: `There is a gap between the client's date established ({dateEstablished}) and the start date of the first Sub/Parent status ({earliestFilingStatusStartDate}). Please ensure that the status of one Sub/Parent status matches the client's date established.`,
|
|
69
|
+
params: ['dateEstablished', 'earliestFilingStatusStartDate'],
|
|
78
70
|
affectedFields: ['filingStatus', 'dateEstablished'],
|
|
79
71
|
},
|
|
80
72
|
FILING_STATUSES_DATES_OVERLAP: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const CLIENT_RELATIONSHIPS_COMMON: {
|
|
2
2
|
readonly CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
3
3
|
readonly message: "A client cannot have a relationship with itself.";
|
|
4
|
-
readonly affectedFields: readonly ["
|
|
4
|
+
readonly affectedFields: readonly ["relatedClient"];
|
|
5
5
|
};
|
|
6
6
|
readonly INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
|
|
7
7
|
readonly message: "{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.";
|
|
8
8
|
readonly params: readonly ["clientName", "entityType", "relationshipType"];
|
|
9
|
-
readonly affectedFields: readonly ["
|
|
9
|
+
readonly affectedFields: readonly ["relationshipType"];
|
|
10
10
|
};
|
|
11
11
|
readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
12
12
|
readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
|
|
@@ -34,32 +34,34 @@ export declare const CLIENT_RELATIONSHIPS_COMMON: {
|
|
|
34
34
|
readonly affectedFields: readonly ["endingDate"];
|
|
35
35
|
};
|
|
36
36
|
readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
37
|
-
readonly message: "Please update the relationship
|
|
38
|
-
readonly params: readonly ["clientCloseDate"];
|
|
37
|
+
readonly message: "{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.";
|
|
38
|
+
readonly params: readonly ["clientName", "clientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
|
|
39
39
|
readonly affectedFields: readonly ["endingDate"];
|
|
40
40
|
};
|
|
41
41
|
readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
42
|
-
readonly message: "Please update the relationship
|
|
43
|
-
readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
|
|
42
|
+
readonly message: "{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.";
|
|
43
|
+
readonly params: readonly ["relatedClientName", "relatedClientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
|
|
44
44
|
readonly affectedFields: readonly ["endingDate"];
|
|
45
45
|
};
|
|
46
46
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
47
|
-
readonly message: "The
|
|
48
|
-
readonly
|
|
47
|
+
readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.";
|
|
48
|
+
readonly params: readonly ["clientName", "relatedClientName", "clientCloseDate"];
|
|
49
|
+
readonly affectedFields: readonly ["endingDate", "final"];
|
|
49
50
|
};
|
|
50
51
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
51
|
-
readonly message: "The
|
|
52
|
-
readonly
|
|
52
|
+
readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.";
|
|
53
|
+
readonly params: readonly ["clientName", "relatedClientName", "relatedClientCloseDate"];
|
|
54
|
+
readonly affectedFields: readonly ["endingDate", "final"];
|
|
53
55
|
};
|
|
54
56
|
readonly CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
55
57
|
readonly message: "{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.";
|
|
56
58
|
readonly params: readonly ["clientName", "relatedClientName", "relationshipType"];
|
|
57
|
-
readonly affectedFields: readonly ["
|
|
59
|
+
readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
|
|
58
60
|
};
|
|
59
61
|
readonly CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
60
62
|
readonly message: "{relatedClientName} cannot be associated with {clientName} more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.";
|
|
61
63
|
readonly params: readonly ["relatedClientName", "clientName"];
|
|
62
|
-
readonly affectedFields: readonly ["
|
|
64
|
+
readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
|
|
63
65
|
};
|
|
64
66
|
readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
65
67
|
readonly message: "There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsE9B,CAAC"}
|
|
@@ -4,12 +4,12 @@ exports.CLIENT_RELATIONSHIPS_COMMON = void 0;
|
|
|
4
4
|
exports.CLIENT_RELATIONSHIPS_COMMON = {
|
|
5
5
|
CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
6
6
|
message: `A client cannot have a relationship with itself.`,
|
|
7
|
-
affectedFields: ['
|
|
7
|
+
affectedFields: ['relatedClient'],
|
|
8
8
|
},
|
|
9
9
|
INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
|
|
10
10
|
message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
|
|
11
11
|
params: ['clientName', 'entityType', 'relationshipType'],
|
|
12
|
-
affectedFields: ['
|
|
12
|
+
affectedFields: ['relationshipType'],
|
|
13
13
|
},
|
|
14
14
|
STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
15
15
|
message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
|
|
@@ -37,32 +37,34 @@ exports.CLIENT_RELATIONSHIPS_COMMON = {
|
|
|
37
37
|
affectedFields: ['endingDate'],
|
|
38
38
|
},
|
|
39
39
|
ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
40
|
-
message: `Please update the relationship
|
|
41
|
-
params: ['clientCloseDate'],
|
|
40
|
+
message: `{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.`,
|
|
41
|
+
params: ['clientName', 'clientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
|
|
42
42
|
affectedFields: ['endingDate'],
|
|
43
43
|
},
|
|
44
44
|
ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
45
|
-
message: `Please update the relationship
|
|
46
|
-
params: ['relatedClientName', 'relatedClientCloseDate'],
|
|
45
|
+
message: `{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.`,
|
|
46
|
+
params: ['relatedClientName', 'relatedClientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
|
|
47
47
|
affectedFields: ['endingDate'],
|
|
48
48
|
},
|
|
49
49
|
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
50
|
-
message: `The
|
|
51
|
-
|
|
50
|
+
message: `The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.`,
|
|
51
|
+
params: ['clientName', 'relatedClientName', 'clientCloseDate'],
|
|
52
|
+
affectedFields: ['endingDate', 'final'],
|
|
52
53
|
},
|
|
53
54
|
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
54
|
-
message: `The
|
|
55
|
-
|
|
55
|
+
message: `The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.`,
|
|
56
|
+
params: ['clientName', 'relatedClientName', 'relatedClientCloseDate'],
|
|
57
|
+
affectedFields: ['endingDate', 'final'],
|
|
56
58
|
},
|
|
57
59
|
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
58
60
|
message: `{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.`,
|
|
59
61
|
params: ['clientName', 'relatedClientName', 'relationshipType'],
|
|
60
|
-
affectedFields: ['
|
|
62
|
+
affectedFields: ['relationshipType', 'relatedClient', 'startingDate', 'endingDate'],
|
|
61
63
|
},
|
|
62
64
|
CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
63
65
|
message: `{relatedClientName} cannot be associated with {clientName} more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.`,
|
|
64
66
|
params: ['relatedClientName', 'clientName'],
|
|
65
|
-
affectedFields: ['
|
|
67
|
+
affectedFields: ['relationshipType', 'relatedClient', 'startingDate', 'endingDate'],
|
|
66
68
|
},
|
|
67
69
|
CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
68
70
|
message: `There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.`,
|
package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts
CHANGED
|
@@ -2,27 +2,27 @@ export declare const CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
|
|
|
2
2
|
readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
3
3
|
readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
|
|
4
4
|
readonly params: readonly ["clientName", "parentClientName"];
|
|
5
|
-
readonly affectedFields: readonly ["
|
|
5
|
+
readonly affectedFields: readonly ["relationshipType", "startingDate", "endingDate"];
|
|
6
6
|
};
|
|
7
7
|
readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
8
8
|
readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
|
|
9
|
-
readonly affectedFields: readonly ["
|
|
9
|
+
readonly affectedFields: readonly ["relationshipType", "filingStatus"];
|
|
10
10
|
};
|
|
11
11
|
readonly SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
12
12
|
readonly message: "A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
13
|
-
readonly affectedFields: readonly ["profit", "
|
|
13
|
+
readonly affectedFields: readonly ["profit", "relationshipType"];
|
|
14
14
|
};
|
|
15
15
|
readonly SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
16
16
|
readonly message: "A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
17
|
-
readonly affectedFields: readonly ["loss", "
|
|
17
|
+
readonly affectedFields: readonly ["loss", "relationshipType"];
|
|
18
18
|
};
|
|
19
19
|
readonly SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
20
20
|
readonly message: "A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
21
|
-
readonly affectedFields: readonly ["capital", "
|
|
21
|
+
readonly affectedFields: readonly ["capital", "relationshipType"];
|
|
22
22
|
};
|
|
23
23
|
readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
24
24
|
readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
|
|
25
|
-
readonly affectedFields: readonly ["
|
|
25
|
+
readonly affectedFields: readonly ["relatedClient", "relationshipType"];
|
|
26
26
|
};
|
|
27
27
|
readonly K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
28
28
|
readonly message: "A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
|
|
@@ -51,7 +51,7 @@ export declare const CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
|
|
|
51
51
|
readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
52
52
|
readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
|
|
53
53
|
readonly params: readonly ["relatedClient", "entityType"];
|
|
54
|
-
readonly affectedFields: readonly ["
|
|
54
|
+
readonly affectedFields: readonly ["relatedClient", "relationshipType"];
|
|
55
55
|
};
|
|
56
56
|
readonly INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
57
57
|
readonly message: "The ownership percentages for {relatedClient}'s profit exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
|
|
@@ -5,27 +5,27 @@ exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = {
|
|
|
5
5
|
SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
6
6
|
message: `{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.`,
|
|
7
7
|
params: ['clientName', 'parentClientName'],
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['relationshipType', 'startingDate', 'endingDate'],
|
|
9
9
|
},
|
|
10
10
|
SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
11
11
|
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
|
-
affectedFields: ['
|
|
12
|
+
affectedFields: ['relationshipType', 'filingStatus'],
|
|
13
13
|
},
|
|
14
14
|
SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
15
15
|
message: `A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
16
|
-
affectedFields: ['profit', '
|
|
16
|
+
affectedFields: ['profit', 'relationshipType'],
|
|
17
17
|
},
|
|
18
18
|
SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
19
19
|
message: `A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
20
|
-
affectedFields: ['loss', '
|
|
20
|
+
affectedFields: ['loss', 'relationshipType'],
|
|
21
21
|
},
|
|
22
22
|
SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
23
23
|
message: `A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
24
|
-
affectedFields: ['capital', '
|
|
24
|
+
affectedFields: ['capital', 'relationshipType'],
|
|
25
25
|
},
|
|
26
26
|
SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
27
27
|
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
|
-
affectedFields: ['
|
|
28
|
+
affectedFields: ['relatedClient', 'relationshipType'],
|
|
29
29
|
},
|
|
30
30
|
K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
31
31
|
message: `A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
|
|
@@ -54,7 +54,7 @@ exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = {
|
|
|
54
54
|
K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
55
55
|
message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
|
|
56
56
|
params: ['relatedClient', 'entityType'],
|
|
57
|
-
affectedFields: ['
|
|
57
|
+
affectedFields: ['relatedClient', 'relationshipType'],
|
|
58
58
|
},
|
|
59
59
|
INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
60
60
|
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%.`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const CLIENT_RELATIONSHIPS_OWNERS: {
|
|
2
2
|
readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
3
3
|
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.";
|
|
4
|
-
readonly affectedFields: readonly ["
|
|
4
|
+
readonly affectedFields: readonly ["relationshipType", "filingStatus"];
|
|
5
5
|
};
|
|
6
6
|
readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
7
7
|
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.";
|
|
@@ -10,28 +10,28 @@ export declare const CLIENT_RELATIONSHIPS_OWNERS: {
|
|
|
10
10
|
readonly MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
11
11
|
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.";
|
|
12
12
|
readonly params: readonly ["parentRelatedClientName", "relationshipStarting"];
|
|
13
|
-
readonly affectedFields: readonly ["
|
|
13
|
+
readonly affectedFields: readonly ["relationshipType", "startingDate"];
|
|
14
14
|
};
|
|
15
15
|
readonly PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
16
16
|
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.";
|
|
17
17
|
readonly params: readonly ["relatedClientName", "clientName"];
|
|
18
|
-
readonly affectedFields: readonly ["
|
|
18
|
+
readonly affectedFields: readonly ["relatedClient", "relationshipType", "startingDate", "endingDate"];
|
|
19
19
|
};
|
|
20
20
|
readonly PARENT_ENTITY_TYPE_MISMATCH: {
|
|
21
21
|
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.";
|
|
22
|
-
readonly affectedFields: readonly ["
|
|
22
|
+
readonly affectedFields: readonly ["relatedClient", "relationshipType"];
|
|
23
23
|
};
|
|
24
24
|
readonly PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
25
25
|
readonly message: "A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
26
|
-
readonly affectedFields: readonly ["profit", "
|
|
26
|
+
readonly affectedFields: readonly ["profit", "relationshipType"];
|
|
27
27
|
};
|
|
28
28
|
readonly PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
29
29
|
readonly message: "A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
30
|
-
readonly affectedFields: readonly ["loss", "
|
|
30
|
+
readonly affectedFields: readonly ["loss", "relationshipType"];
|
|
31
31
|
};
|
|
32
32
|
readonly PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
33
33
|
readonly message: "A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
34
|
-
readonly affectedFields: readonly ["capital", "
|
|
34
|
+
readonly affectedFields: readonly ["capital", "relationshipType"];
|
|
35
35
|
};
|
|
36
36
|
readonly SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
37
37
|
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'.";
|
|
@@ -4,7 +4,7 @@ exports.CLIENT_RELATIONSHIPS_OWNERS = void 0;
|
|
|
4
4
|
exports.CLIENT_RELATIONSHIPS_OWNERS = {
|
|
5
5
|
PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
6
6
|
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.`,
|
|
7
|
-
affectedFields: ['
|
|
7
|
+
affectedFields: ['relationshipType', 'filingStatus'],
|
|
8
8
|
},
|
|
9
9
|
MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
10
10
|
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.`,
|
|
@@ -13,28 +13,28 @@ exports.CLIENT_RELATIONSHIPS_OWNERS = {
|
|
|
13
13
|
MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
14
14
|
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.`,
|
|
15
15
|
params: ['parentRelatedClientName', 'relationshipStarting'],
|
|
16
|
-
affectedFields: ['
|
|
16
|
+
affectedFields: ['relationshipType', 'startingDate'],
|
|
17
17
|
},
|
|
18
18
|
PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
19
19
|
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.`,
|
|
20
20
|
params: ['relatedClientName', 'clientName'],
|
|
21
|
-
affectedFields: ['
|
|
21
|
+
affectedFields: ['relatedClient', 'relationshipType', 'startingDate', 'endingDate'],
|
|
22
22
|
},
|
|
23
23
|
PARENT_ENTITY_TYPE_MISMATCH: {
|
|
24
24
|
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.`,
|
|
25
|
-
affectedFields: ['
|
|
25
|
+
affectedFields: ['relatedClient', 'relationshipType'],
|
|
26
26
|
},
|
|
27
27
|
PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
28
28
|
message: `A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
29
|
-
affectedFields: ['profit', '
|
|
29
|
+
affectedFields: ['profit', 'relationshipType'],
|
|
30
30
|
},
|
|
31
31
|
PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
32
32
|
message: `A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
33
|
-
affectedFields: ['loss', '
|
|
33
|
+
affectedFields: ['loss', 'relationshipType'],
|
|
34
34
|
},
|
|
35
35
|
PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
36
36
|
message: `A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
37
|
-
affectedFields: ['capital', '
|
|
37
|
+
affectedFields: ['capital', 'relationshipType'],
|
|
38
38
|
},
|
|
39
39
|
SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
40
40
|
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'.`,
|
|
@@ -11,7 +11,7 @@ export declare const FILING_CATEGORIES: {
|
|
|
11
11
|
readonly NAME_ALREADY_EXISTS: {
|
|
12
12
|
readonly message: "Filing category with the same name '{name}' already exists";
|
|
13
13
|
readonly params: readonly ["name"];
|
|
14
|
-
readonly affectedFields: readonly ["
|
|
14
|
+
readonly affectedFields: readonly ["filingCategory"];
|
|
15
15
|
};
|
|
16
16
|
readonly OPTION_IN_USE: {
|
|
17
17
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -14,7 +14,7 @@ exports.FILING_CATEGORIES = {
|
|
|
14
14
|
NAME_ALREADY_EXISTS: {
|
|
15
15
|
message: `Filing category with the same name '{name}' already exists`,
|
|
16
16
|
params: ['name'],
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['filingCategory'],
|
|
18
18
|
},
|
|
19
19
|
OPTION_IN_USE: {
|
|
20
20
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -21,7 +21,7 @@ export declare const ROLES_AND_PERMISSIONS: {
|
|
|
21
21
|
readonly PERMISSION_DOES_NOT_EXIST: {
|
|
22
22
|
readonly message: "Permission does not exist";
|
|
23
23
|
readonly params: readonly ["permissionId"];
|
|
24
|
-
readonly affectedFields: readonly ["
|
|
24
|
+
readonly affectedFields: readonly ["permissionIds"];
|
|
25
25
|
};
|
|
26
26
|
readonly ROLE_HAS_ASSIGNED_USERS: {
|
|
27
27
|
readonly message: "Cannot delete role with name '{roleName}' because it has users assigned to it";
|
|
@@ -24,7 +24,7 @@ exports.ROLES_AND_PERMISSIONS = {
|
|
|
24
24
|
PERMISSION_DOES_NOT_EXIST: {
|
|
25
25
|
message: `Permission does not exist`,
|
|
26
26
|
params: ['permissionId'],
|
|
27
|
-
affectedFields: ['
|
|
27
|
+
affectedFields: ['permissionIds'],
|
|
28
28
|
},
|
|
29
29
|
ROLE_HAS_ASSIGNED_USERS: {
|
|
30
30
|
message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
|
|
@@ -16,7 +16,7 @@ export declare const STATES: {
|
|
|
16
16
|
readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
17
17
|
readonly message: "State type does not exist";
|
|
18
18
|
readonly params: readonly ["id"];
|
|
19
|
-
readonly affectedFields: readonly ["
|
|
19
|
+
readonly affectedFields: readonly ["stateType"];
|
|
20
20
|
};
|
|
21
21
|
readonly IS_PARENT_OF_OTHER_STATES: {
|
|
22
22
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -25,21 +25,21 @@ export declare const STATES: {
|
|
|
25
25
|
readonly PARENT_ID_DOES_NOT_EXIST: {
|
|
26
26
|
readonly message: "Parent state does not exist";
|
|
27
27
|
readonly params: readonly ["id"];
|
|
28
|
-
readonly affectedFields: readonly ["
|
|
28
|
+
readonly affectedFields: readonly ["parent"];
|
|
29
29
|
};
|
|
30
30
|
readonly NATION_PARENT_TYPE_NOT_ALLOWED: {
|
|
31
31
|
readonly message: "Nation cannot have associated parent.";
|
|
32
|
-
readonly affectedFields: readonly ["
|
|
32
|
+
readonly affectedFields: readonly ["parent"];
|
|
33
33
|
};
|
|
34
34
|
readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
|
|
35
35
|
readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
|
|
36
36
|
readonly params: readonly ["stateName"];
|
|
37
|
-
readonly affectedFields: readonly ["
|
|
37
|
+
readonly affectedFields: readonly ["parent"];
|
|
38
38
|
};
|
|
39
39
|
readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
|
|
40
40
|
readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
|
|
41
41
|
readonly params: readonly ["cityName"];
|
|
42
|
-
readonly affectedFields: readonly ["
|
|
42
|
+
readonly affectedFields: readonly ["parent"];
|
|
43
43
|
};
|
|
44
44
|
readonly OPTION_IN_USE: {
|
|
45
45
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -19,7 +19,7 @@ exports.STATES = {
|
|
|
19
19
|
STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
20
20
|
message: `State type does not exist`,
|
|
21
21
|
params: ['id'],
|
|
22
|
-
affectedFields: ['
|
|
22
|
+
affectedFields: ['stateType'],
|
|
23
23
|
},
|
|
24
24
|
IS_PARENT_OF_OTHER_STATES: {
|
|
25
25
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -28,21 +28,21 @@ exports.STATES = {
|
|
|
28
28
|
PARENT_ID_DOES_NOT_EXIST: {
|
|
29
29
|
message: `Parent state does not exist`,
|
|
30
30
|
params: ['id'],
|
|
31
|
-
affectedFields: ['
|
|
31
|
+
affectedFields: ['parent'],
|
|
32
32
|
},
|
|
33
33
|
NATION_PARENT_TYPE_NOT_ALLOWED: {
|
|
34
34
|
message: `Nation cannot have associated parent.`,
|
|
35
|
-
affectedFields: ['
|
|
35
|
+
affectedFields: ['parent'],
|
|
36
36
|
},
|
|
37
37
|
STATE_PARENT_TYPE_NOT_ALLOWED: {
|
|
38
38
|
message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
|
|
39
39
|
params: ['stateName'],
|
|
40
|
-
affectedFields: ['
|
|
40
|
+
affectedFields: ['parent'],
|
|
41
41
|
},
|
|
42
42
|
CITY_PARENT_TYPE_NOT_ALLOWED: {
|
|
43
43
|
message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
|
|
44
44
|
params: ['cityName'],
|
|
45
|
-
affectedFields: ['
|
|
45
|
+
affectedFields: ['parent'],
|
|
46
46
|
},
|
|
47
47
|
OPTION_IN_USE: {
|
|
48
48
|
message: `This option is currently in use and cannot be deleted.`,
|