@forwardslashns/taskit-validation-messages 1.10.48 → 1.10.49
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-templates.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"client-templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-templates.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8R3B,CAAC"}
|
|
@@ -56,7 +56,7 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
56
56
|
AMOUNT_REQUIRED_WHEN_SEPARATELY_CHARGED: {
|
|
57
57
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
58
58
|
message: 'Amount is required when template is separately charged',
|
|
59
|
-
affectedFields: ['
|
|
59
|
+
affectedFields: ['templateInfo.amount'],
|
|
60
60
|
},
|
|
61
61
|
COMMISSION_RATE_REQUIRED_WHEN_SUBJECT_TO_COMMISSION: {
|
|
62
62
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -66,7 +66,7 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
66
66
|
ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
|
|
67
67
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
68
68
|
message: 'Estimate amount is required for tax payment templates',
|
|
69
|
-
affectedFields: ['
|
|
69
|
+
affectedFields: ['templateInfo.estimateAmount'],
|
|
70
70
|
},
|
|
71
71
|
FINAL_ALLOWED_ONLY_WITH_ENDING: {
|
|
72
72
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -81,7 +81,7 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
81
81
|
BILLING_MUST_BE_SEPARATELY_CHARGED: {
|
|
82
82
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
83
83
|
message: 'Billing templates must be separately charged',
|
|
84
|
-
affectedFields: ['
|
|
84
|
+
affectedFields: ['templateInfo.separatelyCharged'],
|
|
85
85
|
},
|
|
86
86
|
BILLING_MUST_BE_SUBJECT_TO_COMMISSION: {
|
|
87
87
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -91,7 +91,7 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
91
91
|
PAYMENT_CANNOT_BE_SEPARATELY_CHARGED: {
|
|
92
92
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
93
93
|
message: 'Payment templates cannot be separately charged',
|
|
94
|
-
affectedFields: ['
|
|
94
|
+
affectedFields: ['templateInfo.separatelyCharged'],
|
|
95
95
|
},
|
|
96
96
|
PAYMENT_CANNOT_BE_SUBJECT_TO_COMMISSION: {
|
|
97
97
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -202,22 +202,22 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
202
202
|
AMOUNT_MUST_BE_NULL_WHEN_NOT_SEPARATELY_CHARGED: {
|
|
203
203
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
204
204
|
message: "Amount must be empty when 'Separately charged' is No.",
|
|
205
|
-
affectedFields: ['
|
|
205
|
+
affectedFields: ['templateInfo.amount'],
|
|
206
206
|
},
|
|
207
207
|
AMOUNT_MUST_BE_ZERO_FOR_FIXED_FEE_BILLING: {
|
|
208
208
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
209
209
|
message: "Amount must be 0 for Billing templates when client billing type is 'Fixed annual fee'.",
|
|
210
|
-
affectedFields: ['
|
|
210
|
+
affectedFields: ['templateInfo.amount'],
|
|
211
211
|
},
|
|
212
212
|
AMOUNT_MUST_MATCH_TEMPLATE: {
|
|
213
213
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
214
214
|
message: "Amount must match the template's amount when 'Separately charged' is Yes.",
|
|
215
|
-
affectedFields: ['
|
|
215
|
+
affectedFields: ['templateInfo.amount'],
|
|
216
216
|
},
|
|
217
217
|
SEPARATELY_CHARGED_MUST_BE_NO_FOR_FIXED_FEE: {
|
|
218
218
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
219
219
|
message: "'Separately charged' must be No for this template type when client billing type is 'Fixed annual fee'.",
|
|
220
|
-
affectedFields: ['
|
|
220
|
+
affectedFields: ['templateInfo.separatelyCharged'],
|
|
221
221
|
},
|
|
222
222
|
SUBJECT_TO_COMMISSION_MUST_BE_NO: {
|
|
223
223
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
55
55
|
AMOUNT_REQUIRED_WHEN_SEPARATELY_CHARGED: {
|
|
56
56
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
57
57
|
message: 'Amount is required when template is separately charged',
|
|
58
|
-
affectedFields: ['
|
|
58
|
+
affectedFields: ['templateInfo.amount'],
|
|
59
59
|
},
|
|
60
60
|
COMMISSION_RATE_REQUIRED_WHEN_SUBJECT_TO_COMMISSION: {
|
|
61
61
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -65,7 +65,7 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
65
65
|
ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
|
|
66
66
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
67
67
|
message: 'Estimate amount is required for tax payment templates',
|
|
68
|
-
affectedFields: ['
|
|
68
|
+
affectedFields: ['templateInfo.estimateAmount'],
|
|
69
69
|
},
|
|
70
70
|
FINAL_ALLOWED_ONLY_WITH_ENDING: {
|
|
71
71
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -80,7 +80,7 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
80
80
|
BILLING_MUST_BE_SEPARATELY_CHARGED: {
|
|
81
81
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
82
82
|
message: 'Billing templates must be separately charged',
|
|
83
|
-
affectedFields: ['
|
|
83
|
+
affectedFields: ['templateInfo.separatelyCharged'],
|
|
84
84
|
},
|
|
85
85
|
BILLING_MUST_BE_SUBJECT_TO_COMMISSION: {
|
|
86
86
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -90,7 +90,7 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
90
90
|
PAYMENT_CANNOT_BE_SEPARATELY_CHARGED: {
|
|
91
91
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
92
92
|
message: 'Payment templates cannot be separately charged',
|
|
93
|
-
affectedFields: ['
|
|
93
|
+
affectedFields: ['templateInfo.separatelyCharged'],
|
|
94
94
|
},
|
|
95
95
|
PAYMENT_CANNOT_BE_SUBJECT_TO_COMMISSION: {
|
|
96
96
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -204,22 +204,22 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
204
204
|
AMOUNT_MUST_BE_NULL_WHEN_NOT_SEPARATELY_CHARGED: {
|
|
205
205
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
206
206
|
message: "Amount must be empty when 'Separately charged' is No.",
|
|
207
|
-
affectedFields: ['
|
|
207
|
+
affectedFields: ['templateInfo.amount'],
|
|
208
208
|
},
|
|
209
209
|
AMOUNT_MUST_BE_ZERO_FOR_FIXED_FEE_BILLING: {
|
|
210
210
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
211
211
|
message: "Amount must be 0 for Billing templates when client billing type is 'Fixed annual fee'.",
|
|
212
|
-
affectedFields: ['
|
|
212
|
+
affectedFields: ['templateInfo.amount'],
|
|
213
213
|
},
|
|
214
214
|
AMOUNT_MUST_MATCH_TEMPLATE: {
|
|
215
215
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
216
216
|
message: "Amount must match the template's amount when 'Separately charged' is Yes.",
|
|
217
|
-
affectedFields: ['
|
|
217
|
+
affectedFields: ['templateInfo.amount'],
|
|
218
218
|
},
|
|
219
219
|
SEPARATELY_CHARGED_MUST_BE_NO_FOR_FIXED_FEE: {
|
|
220
220
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
221
221
|
message: "'Separately charged' must be No for this template type when client billing type is 'Fixed annual fee'.",
|
|
222
|
-
affectedFields: ['
|
|
222
|
+
affectedFields: ['templateInfo.separatelyCharged'],
|
|
223
223
|
},
|
|
224
224
|
SUBJECT_TO_COMMISSION_MUST_BE_NO: {
|
|
225
225
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -238,26 +238,22 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
238
238
|
},
|
|
239
239
|
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
240
240
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
241
|
-
message:
|
|
242
|
-
'State sub-filings are only allowed for Filing template types.',
|
|
241
|
+
message: 'State sub-filings are only allowed for Filing template types.',
|
|
243
242
|
affectedFields: ['states'],
|
|
244
243
|
},
|
|
245
244
|
DUPLICATE_STATE_SUBFILING: {
|
|
246
245
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
247
|
-
message:
|
|
248
|
-
'A state sub-filing with the same template state and client state already exists.',
|
|
246
|
+
message: 'A state sub-filing with the same template state and client state already exists.',
|
|
249
247
|
affectedFields: ['states'],
|
|
250
248
|
},
|
|
251
249
|
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
252
250
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
253
|
-
message:
|
|
254
|
-
'Selected template state does not exist or does not belong to the selected template.',
|
|
251
|
+
message: 'Selected template state does not exist or does not belong to the selected template.',
|
|
255
252
|
affectedFields: ['states'],
|
|
256
253
|
},
|
|
257
254
|
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
258
255
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
259
|
-
message:
|
|
260
|
-
'Selected client entity state does not exist or does not belong to the client.',
|
|
256
|
+
message: 'Selected client entity state does not exist or does not belong to the client.',
|
|
261
257
|
affectedFields: ['states'],
|
|
262
258
|
},
|
|
263
259
|
STATE_ENDING_BEFORE_STARTING: {
|
|
@@ -267,8 +263,7 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
267
263
|
},
|
|
268
264
|
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
269
265
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
270
|
-
message:
|
|
271
|
-
'isFinal must be provided when an ending date is set on a state sub-filing.',
|
|
266
|
+
message: 'isFinal must be provided when an ending date is set on a state sub-filing.',
|
|
272
267
|
affectedFields: ['states'],
|
|
273
268
|
},
|
|
274
269
|
STATE_PAYMENT_METHOD_NOT_FOUND: {
|