@forwardslashns/taskit-validation-messages 1.10.18 → 1.10.20
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,179 +1,222 @@
|
|
|
1
1
|
export declare const TEMPLATE_INFORMATION: {
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
2
|
+
NAME_REQUIRED: {
|
|
3
|
+
severity: "error";
|
|
4
|
+
message: string;
|
|
5
|
+
affectedFields: string[];
|
|
6
|
+
};
|
|
7
|
+
NAME_ALREADY_EXISTS: {
|
|
8
|
+
severity: "error";
|
|
9
|
+
message: string;
|
|
10
|
+
params: string[];
|
|
11
|
+
affectedFields: string[];
|
|
12
|
+
};
|
|
13
|
+
TYPE_REQUIRED: {
|
|
14
|
+
severity: "error";
|
|
15
|
+
message: string;
|
|
16
|
+
affectedFields: string[];
|
|
17
|
+
};
|
|
18
|
+
INVALID_TYPE: {
|
|
19
|
+
severity: "error";
|
|
20
|
+
message: string;
|
|
21
|
+
affectedFields: string[];
|
|
22
|
+
};
|
|
23
|
+
DEFAULT_STAFF_REQUIRED: {
|
|
24
|
+
severity: "error";
|
|
25
|
+
message: string;
|
|
26
|
+
affectedFields: string[];
|
|
27
|
+
};
|
|
28
|
+
INVALID_STAFF: {
|
|
29
|
+
severity: "error";
|
|
30
|
+
message: string;
|
|
31
|
+
affectedFields: string[];
|
|
32
|
+
};
|
|
33
|
+
INCOME_ACCOUNT_REQUIRED: {
|
|
34
|
+
severity: "error";
|
|
35
|
+
message: string;
|
|
36
|
+
affectedFields: string[];
|
|
37
|
+
};
|
|
38
|
+
INVALID_INCOME_ACCOUNT: {
|
|
39
|
+
severity: "error";
|
|
40
|
+
message: string;
|
|
41
|
+
affectedFields: string[];
|
|
42
|
+
};
|
|
43
|
+
AMOUNT_REQUIRED: {
|
|
44
|
+
severity: "error";
|
|
45
|
+
message: string;
|
|
46
|
+
affectedFields: string[];
|
|
47
|
+
};
|
|
48
|
+
COMMISSION_RATE_REQUIRED: {
|
|
49
|
+
severity: "error";
|
|
50
|
+
message: string;
|
|
51
|
+
affectedFields: string[];
|
|
52
|
+
};
|
|
53
|
+
COMMISSION_RATE_OUT_OF_RANGE: {
|
|
54
|
+
severity: "error";
|
|
55
|
+
message: string;
|
|
56
|
+
affectedFields: string[];
|
|
57
|
+
};
|
|
58
|
+
SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
|
|
59
|
+
severity: "error";
|
|
60
|
+
message: string;
|
|
61
|
+
affectedFields: string[];
|
|
62
|
+
};
|
|
63
|
+
SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
|
|
64
|
+
severity: "error";
|
|
65
|
+
message: string;
|
|
66
|
+
affectedFields: string[];
|
|
67
|
+
};
|
|
68
|
+
SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
|
|
69
|
+
severity: "error";
|
|
70
|
+
message: string;
|
|
71
|
+
affectedFields: string[];
|
|
72
|
+
};
|
|
73
|
+
SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
|
|
74
|
+
severity: "error";
|
|
75
|
+
message: string;
|
|
76
|
+
affectedFields: string[];
|
|
77
|
+
};
|
|
78
|
+
ENTITY_TYPE_REQUIRED: {
|
|
79
|
+
severity: "error";
|
|
80
|
+
message: string;
|
|
81
|
+
affectedFields: string[];
|
|
82
|
+
};
|
|
83
|
+
INVALID_ENTITY_TYPE: {
|
|
84
|
+
severity: "error";
|
|
85
|
+
message: string;
|
|
86
|
+
affectedFields: string[];
|
|
87
|
+
};
|
|
88
|
+
INVALID_CLASSIFICATION: {
|
|
89
|
+
severity: "error";
|
|
90
|
+
message: string;
|
|
91
|
+
affectedFields: string[];
|
|
92
|
+
};
|
|
93
|
+
INVALID_SETUP_TEMPLATE: {
|
|
94
|
+
severity: "error";
|
|
95
|
+
message: string;
|
|
96
|
+
affectedFields: string[];
|
|
97
|
+
};
|
|
98
|
+
FILING_TYPE_REQUIRED: {
|
|
99
|
+
severity: "error";
|
|
100
|
+
message: string;
|
|
101
|
+
affectedFields: string[];
|
|
102
|
+
};
|
|
103
|
+
INVALID_FILING_TYPE: {
|
|
104
|
+
severity: "error";
|
|
105
|
+
message: string;
|
|
106
|
+
affectedFields: string[];
|
|
107
|
+
};
|
|
108
|
+
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
109
|
+
severity: "error";
|
|
110
|
+
message: string;
|
|
111
|
+
affectedFields: string[];
|
|
112
|
+
};
|
|
113
|
+
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
|
|
114
|
+
severity: "error";
|
|
115
|
+
message: string;
|
|
116
|
+
affectedFields: string[];
|
|
117
|
+
};
|
|
118
|
+
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
|
|
119
|
+
severity: "error";
|
|
120
|
+
message: string;
|
|
121
|
+
affectedFields: string[];
|
|
122
|
+
};
|
|
123
|
+
STATE_REQUIRED: {
|
|
124
|
+
severity: "error";
|
|
125
|
+
message: string;
|
|
126
|
+
affectedFields: string[];
|
|
127
|
+
};
|
|
128
|
+
INVALID_STATE: {
|
|
129
|
+
severity: "error";
|
|
130
|
+
message: string;
|
|
131
|
+
affectedFields: string[];
|
|
132
|
+
};
|
|
133
|
+
STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
|
|
134
|
+
severity: "error";
|
|
135
|
+
message: string;
|
|
136
|
+
params: string[];
|
|
137
|
+
affectedFields: string[];
|
|
138
|
+
};
|
|
139
|
+
FILING_STATUS_REQUIRED: {
|
|
140
|
+
severity: "error";
|
|
141
|
+
message: string;
|
|
142
|
+
affectedFields: string[];
|
|
143
|
+
};
|
|
144
|
+
INVALID_FILING_STATUS: {
|
|
145
|
+
severity: "error";
|
|
146
|
+
message: string;
|
|
147
|
+
affectedFields: string[];
|
|
148
|
+
};
|
|
149
|
+
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
150
|
+
severity: "error";
|
|
151
|
+
message: string;
|
|
152
|
+
affectedFields: string[];
|
|
153
|
+
};
|
|
154
|
+
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
|
|
155
|
+
severity: "error";
|
|
156
|
+
message: string;
|
|
157
|
+
affectedFields: string[];
|
|
158
|
+
};
|
|
159
|
+
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
|
|
160
|
+
severity: "error";
|
|
161
|
+
message: string;
|
|
162
|
+
affectedFields: string[];
|
|
163
|
+
};
|
|
164
|
+
FILES_UNDER_REQUIRED: {
|
|
165
|
+
severity: "error";
|
|
166
|
+
message: string;
|
|
167
|
+
affectedFields: string[];
|
|
168
|
+
};
|
|
169
|
+
INVALID_FILES_UNDER: {
|
|
170
|
+
severity: "error";
|
|
171
|
+
message: string;
|
|
172
|
+
affectedFields: string[];
|
|
173
|
+
};
|
|
174
|
+
FILES_UNDER_MUST_BE_FILING: {
|
|
175
|
+
severity: "error";
|
|
176
|
+
message: string;
|
|
177
|
+
affectedFields: string[];
|
|
178
|
+
};
|
|
179
|
+
FILES_UNDER_MUST_BE_INCOME_TAX: {
|
|
180
|
+
severity: "error";
|
|
181
|
+
message: string;
|
|
182
|
+
params: string[];
|
|
183
|
+
affectedFields: string[];
|
|
184
|
+
};
|
|
185
|
+
FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
|
|
186
|
+
severity: "error";
|
|
187
|
+
message: string;
|
|
188
|
+
params: string[];
|
|
189
|
+
affectedFields: string[];
|
|
190
|
+
};
|
|
191
|
+
TAX_PAYMENT_FILING_REQUIRED: {
|
|
192
|
+
severity: "error";
|
|
193
|
+
message: string;
|
|
194
|
+
affectedFields: string[];
|
|
195
|
+
};
|
|
196
|
+
INVALID_TAX_PAYMENT_FILING: {
|
|
197
|
+
severity: "error";
|
|
198
|
+
message: string;
|
|
199
|
+
affectedFields: string[];
|
|
200
|
+
};
|
|
201
|
+
TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
|
|
202
|
+
severity: "error";
|
|
203
|
+
message: string;
|
|
204
|
+
affectedFields: string[];
|
|
205
|
+
};
|
|
206
|
+
SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
|
|
207
|
+
severity: "error";
|
|
208
|
+
message: string;
|
|
209
|
+
affectedFields: string[];
|
|
210
|
+
};
|
|
211
|
+
OPTION_IN_USE: {
|
|
212
|
+
severity: "error";
|
|
213
|
+
message: string;
|
|
214
|
+
affectedFields: never[];
|
|
215
|
+
};
|
|
216
|
+
TEMPLATE_NOT_FOUND: {
|
|
217
|
+
severity: "error";
|
|
218
|
+
message: string;
|
|
219
|
+
affectedFields: never[];
|
|
177
220
|
};
|
|
178
221
|
};
|
|
179
222
|
//# sourceMappingURL=template-information.validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-information.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-information.validation-messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-information.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-information.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqO/B,CAAC"}
|
|
@@ -1,181 +1,225 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TEMPLATE_INFORMATION = void 0;
|
|
4
|
-
|
|
4
|
+
const validation_message_types_1 = require("../validation-message.types");
|
|
5
|
+
exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFeatureMessages)({
|
|
5
6
|
NAME_REQUIRED: {
|
|
7
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
6
8
|
message: 'Template name is required',
|
|
7
9
|
affectedFields: ['name'],
|
|
8
10
|
},
|
|
9
11
|
NAME_ALREADY_EXISTS: {
|
|
12
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
10
13
|
message: "Template with the name '{name}' already exists",
|
|
11
14
|
params: ['name'],
|
|
12
15
|
affectedFields: ['name'],
|
|
13
16
|
},
|
|
14
17
|
TYPE_REQUIRED: {
|
|
18
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
15
19
|
message: 'Template type is required',
|
|
16
20
|
affectedFields: ['type'],
|
|
17
21
|
},
|
|
18
22
|
INVALID_TYPE: {
|
|
23
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
19
24
|
message: 'Invalid template type',
|
|
20
25
|
affectedFields: ['type'],
|
|
21
26
|
},
|
|
22
27
|
DEFAULT_STAFF_REQUIRED: {
|
|
28
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
23
29
|
message: 'Default staff is required',
|
|
24
30
|
affectedFields: ['defaultStaff'],
|
|
25
31
|
},
|
|
26
32
|
INVALID_STAFF: {
|
|
33
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
27
34
|
message: 'Invalid staff member',
|
|
28
35
|
affectedFields: ['defaultStaff'],
|
|
29
36
|
},
|
|
30
37
|
INCOME_ACCOUNT_REQUIRED: {
|
|
38
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
31
39
|
message: 'Income account is required',
|
|
32
40
|
affectedFields: ['incomeAccount'],
|
|
33
41
|
},
|
|
34
42
|
INVALID_INCOME_ACCOUNT: {
|
|
43
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
35
44
|
message: 'Invalid income account',
|
|
36
45
|
affectedFields: ['incomeAccount'],
|
|
37
46
|
},
|
|
38
47
|
AMOUNT_REQUIRED: {
|
|
48
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
39
49
|
message: 'Amount is required when separately charged',
|
|
40
50
|
affectedFields: ['amount'],
|
|
41
51
|
},
|
|
42
52
|
COMMISSION_RATE_REQUIRED: {
|
|
53
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
43
54
|
message: 'Commission rate is required when subject to commission',
|
|
44
55
|
affectedFields: ['commissionRate'],
|
|
45
56
|
},
|
|
46
57
|
COMMISSION_RATE_OUT_OF_RANGE: {
|
|
58
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
47
59
|
message: 'Commission rate must be a percentage between 0 and 100. Please adjust the percent before saving.',
|
|
48
60
|
affectedFields: ['commissionRate'],
|
|
49
61
|
},
|
|
50
62
|
SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
|
|
63
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
51
64
|
message: "Separately charged must be 'Yes' for Billing templates",
|
|
52
65
|
affectedFields: ['isSeparatelyCharged'],
|
|
53
66
|
},
|
|
54
67
|
SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
|
|
68
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
55
69
|
message: "Separately charged must be 'No' for Payment templates",
|
|
56
70
|
affectedFields: ['isSeparatelyCharged'],
|
|
57
71
|
},
|
|
58
72
|
SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
|
|
73
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
59
74
|
message: "Subject to commission can only be 'Yes' when separately charged is 'Yes'",
|
|
60
75
|
affectedFields: ['isSubjectToCommission'],
|
|
61
76
|
},
|
|
62
77
|
SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
|
|
78
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
63
79
|
message: "Subject to commission must be 'Yes' for Billing templates",
|
|
64
80
|
affectedFields: ['isSubjectToCommission'],
|
|
65
81
|
},
|
|
66
82
|
ENTITY_TYPE_REQUIRED: {
|
|
83
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
67
84
|
message: 'At least one associated entity is required',
|
|
68
85
|
affectedFields: ['associatedEntities'],
|
|
69
86
|
},
|
|
70
87
|
INVALID_ENTITY_TYPE: {
|
|
88
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
71
89
|
message: 'Invalid entity type',
|
|
72
90
|
affectedFields: ['associatedEntities'],
|
|
73
91
|
},
|
|
74
92
|
INVALID_CLASSIFICATION: {
|
|
93
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
75
94
|
message: 'Invalid classification',
|
|
76
95
|
affectedFields: ['classification'],
|
|
77
96
|
},
|
|
78
97
|
INVALID_SETUP_TEMPLATE: {
|
|
98
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
79
99
|
message: 'Invalid associated setup template',
|
|
80
100
|
affectedFields: ['associatedSetupTemplate'],
|
|
81
101
|
},
|
|
82
102
|
FILING_TYPE_REQUIRED: {
|
|
103
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
83
104
|
message: 'Filing type is required',
|
|
84
105
|
affectedFields: ['filingTypeId'],
|
|
85
106
|
},
|
|
86
107
|
INVALID_FILING_TYPE: {
|
|
108
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
87
109
|
message: 'Invalid filing type',
|
|
88
110
|
affectedFields: ['filingTypeId'],
|
|
89
111
|
},
|
|
90
112
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
113
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
91
114
|
message: "A filing template that has state sub-filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated state sub-filings before saving.",
|
|
92
115
|
affectedFields: ['filingTypeId'],
|
|
93
116
|
},
|
|
94
117
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
|
|
118
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
95
119
|
message: "A filing template that has associated sub-entity filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated sub-entity filing before saving.",
|
|
96
120
|
affectedFields: ['filingTypeId'],
|
|
97
121
|
},
|
|
98
122
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
|
|
123
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
99
124
|
message: "A filing template that has associated tax payments must be 'Income tax' filing type. Please select 'Income tax' or remove the associated tax payments before saving.",
|
|
100
125
|
affectedFields: ['filingTypeId'],
|
|
101
126
|
},
|
|
102
127
|
STATE_REQUIRED: {
|
|
128
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
103
129
|
message: 'State is required',
|
|
104
130
|
affectedFields: ['stateId'],
|
|
105
131
|
},
|
|
106
132
|
INVALID_STATE: {
|
|
133
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
107
134
|
message: 'Invalid state',
|
|
108
135
|
affectedFields: ['stateId'],
|
|
109
136
|
},
|
|
110
137
|
STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
|
|
138
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
111
139
|
message: 'This template is linked to sub-entity filing templates that are set to {SubEntityTemplateState} state, which conflicts with the selected state. Please update the state before saving.',
|
|
112
140
|
params: ['SubEntityTemplateState'],
|
|
113
141
|
affectedFields: ['stateId'],
|
|
114
142
|
},
|
|
115
143
|
FILING_STATUS_REQUIRED: {
|
|
144
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
116
145
|
message: 'Sub/Parent status is required when filing type is Income tax',
|
|
117
146
|
affectedFields: ['filingStatusId'],
|
|
118
147
|
},
|
|
119
148
|
INVALID_FILING_STATUS: {
|
|
149
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
120
150
|
message: 'Invalid filing status',
|
|
121
151
|
affectedFields: ['filingStatusId'],
|
|
122
152
|
},
|
|
123
153
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
154
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
124
155
|
message: 'A filing template with state sub-filings cannot file under a parent. Please select Files separately or remove the associated state sub-filings before saving.',
|
|
125
156
|
affectedFields: ['filingStatusId'],
|
|
126
157
|
},
|
|
127
158
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
|
|
159
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
128
160
|
message: 'A filing template with sub entity filings cannot file under a parent. Please select Files separately or remove the associated sub entity filings before saving.',
|
|
129
161
|
affectedFields: ['filingStatusId'],
|
|
130
162
|
},
|
|
131
163
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
|
|
164
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
132
165
|
message: 'A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.',
|
|
133
166
|
affectedFields: ['filingStatusId'],
|
|
134
167
|
},
|
|
135
168
|
FILES_UNDER_REQUIRED: {
|
|
169
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
136
170
|
message: 'Files under is required when Sub/Parent status is "Files under parent"',
|
|
137
171
|
affectedFields: ['filesUnder'],
|
|
138
172
|
},
|
|
139
173
|
INVALID_FILES_UNDER: {
|
|
174
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
140
175
|
message: 'The selected parent filing does not exist',
|
|
141
176
|
affectedFields: ['filesUnder'],
|
|
142
177
|
},
|
|
143
178
|
FILES_UNDER_MUST_BE_FILING: {
|
|
179
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
144
180
|
message: 'The selected parent must be a Filing template',
|
|
145
181
|
affectedFields: ['filesUnder'],
|
|
146
182
|
},
|
|
147
183
|
FILES_UNDER_MUST_BE_INCOME_TAX: {
|
|
184
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
148
185
|
message: "A parent filing must be an 'Income tax' filing. {parentName} is set to {parentFilingType}. Please select a parent filing with 'Filing type' set to 'Income tax'.",
|
|
149
186
|
params: ['parentName', 'parentFilingType'],
|
|
150
187
|
affectedFields: ['filesUnder'],
|
|
151
188
|
},
|
|
152
189
|
FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
|
|
190
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
153
191
|
message: 'A parent filing must be on an annual recurrence. {parentName} does not have an annual recurrence setup. Please add an annual recurrence for {parentName}, or select a different parent filing.',
|
|
154
192
|
params: ['parentName'],
|
|
155
193
|
affectedFields: ['filesUnder'],
|
|
156
194
|
},
|
|
157
195
|
TAX_PAYMENT_FILING_REQUIRED: {
|
|
196
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
158
197
|
message: 'Tax payment filing is required',
|
|
159
198
|
affectedFields: ['taxPaymentFilingId'],
|
|
160
199
|
},
|
|
161
200
|
INVALID_TAX_PAYMENT_FILING: {
|
|
201
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
162
202
|
message: 'The selected tax payment filing does not exist',
|
|
163
203
|
affectedFields: ['taxPaymentFilingId'],
|
|
164
204
|
},
|
|
165
205
|
TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
|
|
206
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
166
207
|
message: 'The selected tax payment filing must be a Filing type template',
|
|
167
208
|
affectedFields: ['taxPaymentFilingId'],
|
|
168
209
|
},
|
|
169
210
|
SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
|
|
211
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
170
212
|
message: 'The selected associated setup template must be a Setup type template',
|
|
171
213
|
affectedFields: ['associatedSetupTemplateId'],
|
|
172
214
|
},
|
|
173
215
|
OPTION_IN_USE: {
|
|
216
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
174
217
|
message: 'This template is currently in use and cannot be deleted',
|
|
175
218
|
affectedFields: [],
|
|
176
219
|
},
|
|
177
220
|
TEMPLATE_NOT_FOUND: {
|
|
221
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
178
222
|
message: 'Template not found',
|
|
179
223
|
affectedFields: [],
|
|
180
224
|
},
|
|
181
|
-
};
|
|
225
|
+
});
|