@forwardslashns/taskit-validation-messages 1.10.103 → 1.10.105
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-templates.validation-messages.d.ts +6 -0
- package/dist/validation/features/client-templates.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-templates.validation-messages.js +6 -0
- package/dist/validation/features/template-information.validation-messages.d.ts +42 -0
- package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-information.validation-messages.js +42 -0
- package/dist/validation/features/template-states.validation-messages.d.ts +30 -0
- package/dist/validation/features/template-states.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-states.validation-messages.js +30 -0
- package/dist/validation/validation-messages.d.ts +78 -0
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/client-templates.validation-messages.ts +7 -0
- package/src/validation/features/template-information.validation-messages.ts +48 -0
- package/src/validation/features/template-states.validation-messages.ts +35 -0
|
@@ -105,6 +105,12 @@ export declare const CLIENT_TEMPLATES: {
|
|
|
105
105
|
message: string;
|
|
106
106
|
affectedFields: string[];
|
|
107
107
|
};
|
|
108
|
+
DELETE_WITH_DEPENDENT_CLIENT_TEMPLATES: {
|
|
109
|
+
severity: "warning";
|
|
110
|
+
message: string;
|
|
111
|
+
params: string[];
|
|
112
|
+
affectedFields: string[];
|
|
113
|
+
};
|
|
108
114
|
OVERRIDE_RECURRENCE_NOT_ALLOWED: {
|
|
109
115
|
severity: "error";
|
|
110
116
|
message: string;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkT3B,CAAC"}
|
|
@@ -109,6 +109,12 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
109
109
|
message: 'This client template cannot be deleted because there are associated tasks already',
|
|
110
110
|
affectedFields: ['clientTemplateId'],
|
|
111
111
|
},
|
|
112
|
+
DELETE_WITH_DEPENDENT_CLIENT_TEMPLATES: {
|
|
113
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.WARNING,
|
|
114
|
+
message: 'Are you sure you want to delete this client template? The following client templates will be deleted as well: {clientTemplateNames}',
|
|
115
|
+
params: ['clientTemplateNames'],
|
|
116
|
+
affectedFields: ['clientTemplateId'],
|
|
117
|
+
},
|
|
112
118
|
OVERRIDE_RECURRENCE_NOT_ALLOWED: {
|
|
113
119
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
114
120
|
message: 'This template does not allow overriding recurrence dates.',
|
|
@@ -325,5 +325,47 @@ export declare const TEMPLATE_INFORMATION: {
|
|
|
325
325
|
message: string;
|
|
326
326
|
affectedFields: never[];
|
|
327
327
|
};
|
|
328
|
+
TEMPLATE_IN_USE_CANNOT_DELETE: {
|
|
329
|
+
severity: "error";
|
|
330
|
+
message: string;
|
|
331
|
+
params: string[];
|
|
332
|
+
affectedFields: never[];
|
|
333
|
+
};
|
|
334
|
+
STOP_DATE_CLIENT_TEMPLATES_IN_USE: {
|
|
335
|
+
severity: "error";
|
|
336
|
+
message: string;
|
|
337
|
+
params: string[];
|
|
338
|
+
affectedFields: string[];
|
|
339
|
+
};
|
|
340
|
+
STOP_DATE_ASSOCIATED_TEMPLATE_ACTIVE: {
|
|
341
|
+
severity: "error";
|
|
342
|
+
message: string;
|
|
343
|
+
params: string[];
|
|
344
|
+
affectedFields: string[];
|
|
345
|
+
};
|
|
346
|
+
STOP_DATE_ASSOCIATED_TEMPLATE_IN_USE: {
|
|
347
|
+
severity: "error";
|
|
348
|
+
message: string;
|
|
349
|
+
params: string[];
|
|
350
|
+
affectedFields: string[];
|
|
351
|
+
};
|
|
352
|
+
STOP_DATE_AFTER_TAX_PAYMENT_FILING: {
|
|
353
|
+
severity: "error";
|
|
354
|
+
message: string;
|
|
355
|
+
params: string[];
|
|
356
|
+
affectedFields: string[];
|
|
357
|
+
};
|
|
358
|
+
STOP_DATE_AFTER_PARENT_FILING: {
|
|
359
|
+
severity: "error";
|
|
360
|
+
message: string;
|
|
361
|
+
params: string[];
|
|
362
|
+
affectedFields: string[];
|
|
363
|
+
};
|
|
364
|
+
TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_TEMPLATE: {
|
|
365
|
+
severity: "warning";
|
|
366
|
+
message: string;
|
|
367
|
+
params: string[];
|
|
368
|
+
affectedFields: never[];
|
|
369
|
+
};
|
|
328
370
|
};
|
|
329
371
|
//# 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":"AAEA,eAAO,MAAM,oBAAoB
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6X/B,CAAC"}
|
|
@@ -329,4 +329,46 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
329
329
|
message: 'Template not found',
|
|
330
330
|
affectedFields: [],
|
|
331
331
|
},
|
|
332
|
+
TEMPLATE_IN_USE_CANNOT_DELETE: {
|
|
333
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
334
|
+
message: 'This template cannot be deleted because it is in use by: {dependencyTypes}.',
|
|
335
|
+
params: ['dependencyTypes'],
|
|
336
|
+
affectedFields: [],
|
|
337
|
+
},
|
|
338
|
+
STOP_DATE_CLIENT_TEMPLATES_IN_USE: {
|
|
339
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
340
|
+
message: '{templateName} is still in use by one or more clients. Please end those client templates on or before the stop date, or remove the stop date before saving.',
|
|
341
|
+
params: ['templateName'],
|
|
342
|
+
affectedFields: ['stoppedAt'],
|
|
343
|
+
},
|
|
344
|
+
STOP_DATE_ASSOCIATED_TEMPLATE_ACTIVE: {
|
|
345
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
346
|
+
message: '{associatedTemplateName} is associated with this template and is still active. Please deactivate it before deactivating this template.',
|
|
347
|
+
params: ['associatedTemplateName'],
|
|
348
|
+
affectedFields: ['stoppedAt'],
|
|
349
|
+
},
|
|
350
|
+
STOP_DATE_ASSOCIATED_TEMPLATE_IN_USE: {
|
|
351
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
352
|
+
message: '{associatedTemplateName} is still in use by one or more clients. Please end those client templates on or before its stop date before saving.',
|
|
353
|
+
params: ['associatedTemplateName'],
|
|
354
|
+
affectedFields: ['stoppedAt'],
|
|
355
|
+
},
|
|
356
|
+
STOP_DATE_AFTER_TAX_PAYMENT_FILING: {
|
|
357
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
358
|
+
message: 'This template is a tax payment associated with {filingTemplateName}, which is stopped on {filingTemplateDateStopped}. Please set the stop date on or before that date before saving.',
|
|
359
|
+
params: ['filingTemplateName', 'filingTemplateDateStopped'],
|
|
360
|
+
affectedFields: ['stoppedAt'],
|
|
361
|
+
},
|
|
362
|
+
STOP_DATE_AFTER_PARENT_FILING: {
|
|
363
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
364
|
+
message: 'This template files under {parentFilingTemplateName}, which is stopped on {parentFilingDateStopped}. Please set the stop date on or before that date before saving.',
|
|
365
|
+
params: ['parentFilingTemplateName', 'parentFilingDateStopped'],
|
|
366
|
+
affectedFields: ['stoppedAt'],
|
|
367
|
+
},
|
|
368
|
+
TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_TEMPLATE: {
|
|
369
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.WARNING,
|
|
370
|
+
message: 'Deactivating this template will also deactivate the following associated tax payment templates: {taxPaymentTemplateNames}',
|
|
371
|
+
params: ['taxPaymentTemplateNames'],
|
|
372
|
+
affectedFields: [],
|
|
373
|
+
},
|
|
332
374
|
});
|
|
@@ -49,5 +49,35 @@ export declare const TEMPLATE_STATES: {
|
|
|
49
49
|
message: string;
|
|
50
50
|
affectedFields: never[];
|
|
51
51
|
};
|
|
52
|
+
DATE_STOPPED_AFTER_FILING_STOP_DATE: {
|
|
53
|
+
severity: "error";
|
|
54
|
+
message: string;
|
|
55
|
+
params: string[];
|
|
56
|
+
affectedFields: string[];
|
|
57
|
+
};
|
|
58
|
+
IN_USE_BY_CLIENTS_CANNOT_DEACTIVATE: {
|
|
59
|
+
severity: "error";
|
|
60
|
+
message: string;
|
|
61
|
+
params: string[];
|
|
62
|
+
affectedFields: string[];
|
|
63
|
+
};
|
|
64
|
+
TAX_PAYMENT_TEMPLATE_ACTIVE_CANNOT_DEACTIVATE: {
|
|
65
|
+
severity: "error";
|
|
66
|
+
message: string;
|
|
67
|
+
params: string[];
|
|
68
|
+
affectedFields: string[];
|
|
69
|
+
};
|
|
70
|
+
CANNOT_REACTIVATE_FILING_STOPPED: {
|
|
71
|
+
severity: "error";
|
|
72
|
+
message: string;
|
|
73
|
+
params: string[];
|
|
74
|
+
affectedFields: string[];
|
|
75
|
+
};
|
|
76
|
+
TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_STATE: {
|
|
77
|
+
severity: "warning";
|
|
78
|
+
message: string;
|
|
79
|
+
params: string[];
|
|
80
|
+
affectedFields: never[];
|
|
81
|
+
};
|
|
52
82
|
};
|
|
53
83
|
//# sourceMappingURL=template-states.validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-states.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-states.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"template-states.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-states.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsF1B,CAAC"}
|
|
@@ -53,4 +53,34 @@ exports.TEMPLATE_STATES = (0, validation_message_types_1.defineValidationFeature
|
|
|
53
53
|
message: 'States can only be added to Filing type templates.',
|
|
54
54
|
affectedFields: [],
|
|
55
55
|
},
|
|
56
|
+
DATE_STOPPED_AFTER_FILING_STOP_DATE: {
|
|
57
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
58
|
+
message: '{stateSubFilingName} cannot be deactivated after {filingTemplateName} stop date {filingTemplateStoppedDate}. Please adjust the date here or on the filing template before saving.',
|
|
59
|
+
params: ['stateSubFilingName', 'filingTemplateName', 'filingTemplateStoppedDate'],
|
|
60
|
+
affectedFields: ['dateStopped'],
|
|
61
|
+
},
|
|
62
|
+
IN_USE_BY_CLIENTS_CANNOT_DEACTIVATE: {
|
|
63
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
64
|
+
message: '{stateSubFilingName} is still in use by one or more clients. Please end those client templates before deactivating this state sub-filing.',
|
|
65
|
+
params: ['stateSubFilingName'],
|
|
66
|
+
affectedFields: ['dateStopped'],
|
|
67
|
+
},
|
|
68
|
+
TAX_PAYMENT_TEMPLATE_ACTIVE_CANNOT_DEACTIVATE: {
|
|
69
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
70
|
+
message: '{associatedTemplateName} is a tax payment template associated with {stateSubFilingName}, and is still active. Please deactivate it first.',
|
|
71
|
+
params: ['associatedTemplateName', 'stateSubFilingName'],
|
|
72
|
+
affectedFields: ['dateStopped'],
|
|
73
|
+
},
|
|
74
|
+
CANNOT_REACTIVATE_FILING_STOPPED: {
|
|
75
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
76
|
+
message: '{stateSubFilingName} cannot be reactivated while {filingTemplateName} is deactivated. Please reactivate {filingTemplateName} first.',
|
|
77
|
+
params: ['stateSubFilingName', 'filingTemplateName'],
|
|
78
|
+
affectedFields: ['active'],
|
|
79
|
+
},
|
|
80
|
+
TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_STATE: {
|
|
81
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.WARNING,
|
|
82
|
+
message: 'Deactivating this state sub-filing will also deactivate the following associated tax payment templates: {taxPaymentTemplateNames}',
|
|
83
|
+
params: ['taxPaymentTemplateNames'],
|
|
84
|
+
affectedFields: [],
|
|
85
|
+
},
|
|
56
86
|
});
|
|
@@ -1690,6 +1690,48 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1690
1690
|
message: string;
|
|
1691
1691
|
affectedFields: never[];
|
|
1692
1692
|
};
|
|
1693
|
+
TEMPLATE_IN_USE_CANNOT_DELETE: {
|
|
1694
|
+
severity: "error";
|
|
1695
|
+
message: string;
|
|
1696
|
+
params: string[];
|
|
1697
|
+
affectedFields: never[];
|
|
1698
|
+
};
|
|
1699
|
+
STOP_DATE_CLIENT_TEMPLATES_IN_USE: {
|
|
1700
|
+
severity: "error";
|
|
1701
|
+
message: string;
|
|
1702
|
+
params: string[];
|
|
1703
|
+
affectedFields: string[];
|
|
1704
|
+
};
|
|
1705
|
+
STOP_DATE_ASSOCIATED_TEMPLATE_ACTIVE: {
|
|
1706
|
+
severity: "error";
|
|
1707
|
+
message: string;
|
|
1708
|
+
params: string[];
|
|
1709
|
+
affectedFields: string[];
|
|
1710
|
+
};
|
|
1711
|
+
STOP_DATE_ASSOCIATED_TEMPLATE_IN_USE: {
|
|
1712
|
+
severity: "error";
|
|
1713
|
+
message: string;
|
|
1714
|
+
params: string[];
|
|
1715
|
+
affectedFields: string[];
|
|
1716
|
+
};
|
|
1717
|
+
STOP_DATE_AFTER_TAX_PAYMENT_FILING: {
|
|
1718
|
+
severity: "error";
|
|
1719
|
+
message: string;
|
|
1720
|
+
params: string[];
|
|
1721
|
+
affectedFields: string[];
|
|
1722
|
+
};
|
|
1723
|
+
STOP_DATE_AFTER_PARENT_FILING: {
|
|
1724
|
+
severity: "error";
|
|
1725
|
+
message: string;
|
|
1726
|
+
params: string[];
|
|
1727
|
+
affectedFields: string[];
|
|
1728
|
+
};
|
|
1729
|
+
TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_TEMPLATE: {
|
|
1730
|
+
severity: "warning";
|
|
1731
|
+
message: string;
|
|
1732
|
+
params: string[];
|
|
1733
|
+
affectedFields: never[];
|
|
1734
|
+
};
|
|
1693
1735
|
};
|
|
1694
1736
|
readonly TEMPLATE_ASSIGNMENTS: {
|
|
1695
1737
|
NAME_REQUIRED: {
|
|
@@ -1865,6 +1907,36 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1865
1907
|
message: string;
|
|
1866
1908
|
affectedFields: never[];
|
|
1867
1909
|
};
|
|
1910
|
+
DATE_STOPPED_AFTER_FILING_STOP_DATE: {
|
|
1911
|
+
severity: "error";
|
|
1912
|
+
message: string;
|
|
1913
|
+
params: string[];
|
|
1914
|
+
affectedFields: string[];
|
|
1915
|
+
};
|
|
1916
|
+
IN_USE_BY_CLIENTS_CANNOT_DEACTIVATE: {
|
|
1917
|
+
severity: "error";
|
|
1918
|
+
message: string;
|
|
1919
|
+
params: string[];
|
|
1920
|
+
affectedFields: string[];
|
|
1921
|
+
};
|
|
1922
|
+
TAX_PAYMENT_TEMPLATE_ACTIVE_CANNOT_DEACTIVATE: {
|
|
1923
|
+
severity: "error";
|
|
1924
|
+
message: string;
|
|
1925
|
+
params: string[];
|
|
1926
|
+
affectedFields: string[];
|
|
1927
|
+
};
|
|
1928
|
+
CANNOT_REACTIVATE_FILING_STOPPED: {
|
|
1929
|
+
severity: "error";
|
|
1930
|
+
message: string;
|
|
1931
|
+
params: string[];
|
|
1932
|
+
affectedFields: string[];
|
|
1933
|
+
};
|
|
1934
|
+
TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_STATE: {
|
|
1935
|
+
severity: "warning";
|
|
1936
|
+
message: string;
|
|
1937
|
+
params: string[];
|
|
1938
|
+
affectedFields: never[];
|
|
1939
|
+
};
|
|
1868
1940
|
};
|
|
1869
1941
|
readonly INCOME_ACCOUNTS: {
|
|
1870
1942
|
NAME_REQUIRED: {
|
|
@@ -2184,6 +2256,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
2184
2256
|
message: string;
|
|
2185
2257
|
affectedFields: string[];
|
|
2186
2258
|
};
|
|
2259
|
+
DELETE_WITH_DEPENDENT_CLIENT_TEMPLATES: {
|
|
2260
|
+
severity: "warning";
|
|
2261
|
+
message: string;
|
|
2262
|
+
params: string[];
|
|
2263
|
+
affectedFields: string[];
|
|
2264
|
+
};
|
|
2187
2265
|
OVERRIDE_RECURRENCE_NOT_ALLOWED: {
|
|
2188
2266
|
severity: "error";
|
|
2189
2267
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -108,6 +108,13 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
108
108
|
message: 'This client template cannot be deleted because there are associated tasks already',
|
|
109
109
|
affectedFields: ['clientTemplateId'],
|
|
110
110
|
},
|
|
111
|
+
DELETE_WITH_DEPENDENT_CLIENT_TEMPLATES: {
|
|
112
|
+
severity: VALIDATION_SEVERITY.WARNING,
|
|
113
|
+
message:
|
|
114
|
+
'Are you sure you want to delete this client template? The following client templates will be deleted as well: {clientTemplateNames}',
|
|
115
|
+
params: ['clientTemplateNames'],
|
|
116
|
+
affectedFields: ['clientTemplateId'],
|
|
117
|
+
},
|
|
111
118
|
OVERRIDE_RECURRENCE_NOT_ALLOWED: {
|
|
112
119
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
113
120
|
message: 'This template does not allow overriding recurrence dates.',
|
|
@@ -333,4 +333,52 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
|
|
|
333
333
|
message: 'Template not found',
|
|
334
334
|
affectedFields: [],
|
|
335
335
|
},
|
|
336
|
+
TEMPLATE_IN_USE_CANNOT_DELETE: {
|
|
337
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
338
|
+
message: 'This template cannot be deleted because it is in use by: {dependencyTypes}.',
|
|
339
|
+
params: ['dependencyTypes'],
|
|
340
|
+
affectedFields: [],
|
|
341
|
+
},
|
|
342
|
+
STOP_DATE_CLIENT_TEMPLATES_IN_USE: {
|
|
343
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
344
|
+
message:
|
|
345
|
+
'{templateName} is still in use by one or more clients. Please end those client templates on or before the stop date, or remove the stop date before saving.',
|
|
346
|
+
params: ['templateName'],
|
|
347
|
+
affectedFields: ['stoppedAt'],
|
|
348
|
+
},
|
|
349
|
+
STOP_DATE_ASSOCIATED_TEMPLATE_ACTIVE: {
|
|
350
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
351
|
+
message:
|
|
352
|
+
'{associatedTemplateName} is associated with this template and is still active. Please deactivate it before deactivating this template.',
|
|
353
|
+
params: ['associatedTemplateName'],
|
|
354
|
+
affectedFields: ['stoppedAt'],
|
|
355
|
+
},
|
|
356
|
+
STOP_DATE_ASSOCIATED_TEMPLATE_IN_USE: {
|
|
357
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
358
|
+
message:
|
|
359
|
+
'{associatedTemplateName} is still in use by one or more clients. Please end those client templates on or before its stop date before saving.',
|
|
360
|
+
params: ['associatedTemplateName'],
|
|
361
|
+
affectedFields: ['stoppedAt'],
|
|
362
|
+
},
|
|
363
|
+
STOP_DATE_AFTER_TAX_PAYMENT_FILING: {
|
|
364
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
365
|
+
message:
|
|
366
|
+
'This template is a tax payment associated with {filingTemplateName}, which is stopped on {filingTemplateDateStopped}. Please set the stop date on or before that date before saving.',
|
|
367
|
+
params: ['filingTemplateName', 'filingTemplateDateStopped'],
|
|
368
|
+
affectedFields: ['stoppedAt'],
|
|
369
|
+
},
|
|
370
|
+
STOP_DATE_AFTER_PARENT_FILING: {
|
|
371
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
372
|
+
message:
|
|
373
|
+
'This template files under {parentFilingTemplateName}, which is stopped on {parentFilingDateStopped}. Please set the stop date on or before that date before saving.',
|
|
374
|
+
params: ['parentFilingTemplateName', 'parentFilingDateStopped'],
|
|
375
|
+
affectedFields: ['stoppedAt'],
|
|
376
|
+
},
|
|
377
|
+
TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_TEMPLATE: {
|
|
378
|
+
severity: VALIDATION_SEVERITY.WARNING,
|
|
379
|
+
message:
|
|
380
|
+
'Deactivating this template will also deactivate the following associated tax payment templates: {taxPaymentTemplateNames}',
|
|
381
|
+
params: ['taxPaymentTemplateNames'],
|
|
382
|
+
affectedFields: [],
|
|
383
|
+
},
|
|
336
384
|
});
|
|
@@ -51,4 +51,39 @@ export const TEMPLATE_STATES = defineValidationFeatureMessages({
|
|
|
51
51
|
message: 'States can only be added to Filing type templates.',
|
|
52
52
|
affectedFields: [],
|
|
53
53
|
},
|
|
54
|
+
DATE_STOPPED_AFTER_FILING_STOP_DATE: {
|
|
55
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
56
|
+
message:
|
|
57
|
+
'{stateSubFilingName} cannot be deactivated after {filingTemplateName} stop date {filingTemplateStoppedDate}. Please adjust the date here or on the filing template before saving.',
|
|
58
|
+
params: ['stateSubFilingName', 'filingTemplateName', 'filingTemplateStoppedDate'],
|
|
59
|
+
affectedFields: ['dateStopped'],
|
|
60
|
+
},
|
|
61
|
+
IN_USE_BY_CLIENTS_CANNOT_DEACTIVATE: {
|
|
62
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
63
|
+
message:
|
|
64
|
+
'{stateSubFilingName} is still in use by one or more clients. Please end those client templates before deactivating this state sub-filing.',
|
|
65
|
+
params: ['stateSubFilingName'],
|
|
66
|
+
affectedFields: ['dateStopped'],
|
|
67
|
+
},
|
|
68
|
+
TAX_PAYMENT_TEMPLATE_ACTIVE_CANNOT_DEACTIVATE: {
|
|
69
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
70
|
+
message:
|
|
71
|
+
'{associatedTemplateName} is a tax payment template associated with {stateSubFilingName}, and is still active. Please deactivate it first.',
|
|
72
|
+
params: ['associatedTemplateName', 'stateSubFilingName'],
|
|
73
|
+
affectedFields: ['dateStopped'],
|
|
74
|
+
},
|
|
75
|
+
CANNOT_REACTIVATE_FILING_STOPPED: {
|
|
76
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
77
|
+
message:
|
|
78
|
+
'{stateSubFilingName} cannot be reactivated while {filingTemplateName} is deactivated. Please reactivate {filingTemplateName} first.',
|
|
79
|
+
params: ['stateSubFilingName', 'filingTemplateName'],
|
|
80
|
+
affectedFields: ['active'],
|
|
81
|
+
},
|
|
82
|
+
TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_STATE: {
|
|
83
|
+
severity: VALIDATION_SEVERITY.WARNING,
|
|
84
|
+
message:
|
|
85
|
+
'Deactivating this state sub-filing will also deactivate the following associated tax payment templates: {taxPaymentTemplateNames}',
|
|
86
|
+
params: ['taxPaymentTemplateNames'],
|
|
87
|
+
affectedFields: [],
|
|
88
|
+
},
|
|
54
89
|
});
|