@forwardslashns/taskit-validation-messages 1.3.4 → 1.3.6
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/client-relationships.validation-messages.d.ts +45 -0
- package/dist/validation/features/client-relationships.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships.validation-messages.js +45 -0
- package/dist/validation/validation-messages.d.ts +45 -0
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/client-relationships.validation-messages.ts +45 -0
|
@@ -88,5 +88,50 @@ export declare const CLIENT_RELATIONSHIPS: {
|
|
|
88
88
|
readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
|
|
89
89
|
readonly affectedFields: readonly ["startingDate", "endingDate"];
|
|
90
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
|
+
};
|
|
91
136
|
};
|
|
92
137
|
//# sourceMappingURL=client-relationships.validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuIvB,CAAC"}
|
|
@@ -91,4 +91,49 @@ exports.CLIENT_RELATIONSHIPS = {
|
|
|
91
91
|
params: ['relationshipType', 'relatedClientName', 'clientName', 'relationshipEnding'],
|
|
92
92
|
affectedFields: ['startingDate', 'endingDate'],
|
|
93
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
|
+
},
|
|
94
139
|
};
|
|
@@ -696,6 +696,51 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
696
696
|
readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
|
|
697
697
|
readonly affectedFields: readonly ["startingDate", "endingDate"];
|
|
698
698
|
};
|
|
699
|
+
readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
700
|
+
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.";
|
|
701
|
+
readonly params: readonly ["clientName", "parentClientName"];
|
|
702
|
+
readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
|
|
703
|
+
};
|
|
704
|
+
readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
705
|
+
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.";
|
|
706
|
+
readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
|
|
707
|
+
};
|
|
708
|
+
readonly PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
709
|
+
readonly message: "A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
710
|
+
readonly affectedFields: readonly ["profit", "relationshipTypeId"];
|
|
711
|
+
};
|
|
712
|
+
readonly PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
713
|
+
readonly message: "A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
714
|
+
readonly affectedFields: readonly ["loss", "relationshipTypeId"];
|
|
715
|
+
};
|
|
716
|
+
readonly PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
717
|
+
readonly message: "A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
718
|
+
readonly affectedFields: readonly ["capital", "relationshipTypeId"];
|
|
719
|
+
};
|
|
720
|
+
readonly SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
721
|
+
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'.";
|
|
722
|
+
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
723
|
+
};
|
|
724
|
+
readonly SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
725
|
+
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'.";
|
|
726
|
+
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
727
|
+
};
|
|
728
|
+
readonly SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
729
|
+
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'.";
|
|
730
|
+
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
731
|
+
};
|
|
732
|
+
readonly TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
733
|
+
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.";
|
|
734
|
+
readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
|
|
735
|
+
};
|
|
736
|
+
readonly TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
737
|
+
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.";
|
|
738
|
+
readonly affectedFields: readonly ["loss", "startingDate", "endingDate"];
|
|
739
|
+
};
|
|
740
|
+
readonly TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
741
|
+
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.";
|
|
742
|
+
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
743
|
+
};
|
|
699
744
|
};
|
|
700
745
|
readonly FILING_CATEGORIES: {
|
|
701
746
|
readonly INVALID_REQUEST: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -88,4 +88,49 @@ export const CLIENT_RELATIONSHIPS = {
|
|
|
88
88
|
params: ['relationshipType', 'relatedClientName', 'clientName', 'relationshipEnding'],
|
|
89
89
|
affectedFields: ['startingDate', 'endingDate'],
|
|
90
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
|
+
},
|
|
91
136
|
} as const;
|