@forwardslashns/taskit-validation-messages 1.10.102 → 1.10.104

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.
@@ -42,6 +42,28 @@ export declare const NOTES: {
42
42
  severity: "error";
43
43
  message: string;
44
44
  };
45
+ DELETE_ACTIVE_ALERT: {
46
+ severity: "error";
47
+ message: string;
48
+ params: string[];
49
+ };
50
+ ALERT_ASSIGNMENT_INVALID: {
51
+ severity: "error";
52
+ message: string;
53
+ params: string[];
54
+ affectedFields: string[];
55
+ };
56
+ ALERT_REPLACES_EXISTING: {
57
+ severity: "warning";
58
+ message: string;
59
+ params: string[];
60
+ affectedFields: string[];
61
+ };
62
+ ASSIGNMENT_ALERT_ACTIVE: {
63
+ severity: "error";
64
+ message: string;
65
+ params: string[];
66
+ };
45
67
  TASK_DELETE_BLOCKED_BY_IMPORTANT_NOTE: {
46
68
  severity: "error";
47
69
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"notes.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/notes.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDhB,CAAC"}
1
+ {"version":3,"file":"notes.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/notes.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2EhB,CAAC"}
@@ -46,6 +46,28 @@ exports.NOTES = (0, validation_message_types_1.defineValidationFeatureMessages)(
46
46
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
47
47
  message: "This note is marked as important and can't be deleted. Please turn off 'Important' before deleting this note.",
48
48
  },
49
+ DELETE_ACTIVE_ALERT: {
50
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
51
+ message: "This note is an active alert on the '{assignment}' assignment and can't be deleted. Please dismiss the alert before deleting this note.",
52
+ params: ['assignment'],
53
+ },
54
+ ALERT_ASSIGNMENT_INVALID: {
55
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
56
+ message: "The selected assignment can't have an alert. Choose a workflow assignment on this task that is not done.",
57
+ params: ['alertAssignmentId'],
58
+ affectedFields: ['alertAssignmentId'],
59
+ },
60
+ ALERT_REPLACES_EXISTING: {
61
+ severity: validation_message_types_1.VALIDATION_SEVERITY.WARNING,
62
+ message: 'Another note is already selected as the alert for {assignment}. Do you want to change this note to be the alert?',
63
+ params: ['assignment'],
64
+ affectedFields: ['alertAssignmentId'],
65
+ },
66
+ ASSIGNMENT_ALERT_ACTIVE: {
67
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
68
+ message: "The '{assignment}' assignment can't be marked done yet because it has an active alert. Please read and dismiss the alert first.",
69
+ params: ['assignment'],
70
+ },
49
71
  TASK_DELETE_BLOCKED_BY_IMPORTANT_NOTE: {
50
72
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
51
73
  message: "This task can't be deleted because it has an important note. Please turn off 'Important' on the note before deleting this task.",
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6U/B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD1B,CAAC"}
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: {
@@ -2859,6 +2931,28 @@ export declare const VALIDATION_MESSAGES: {
2859
2931
  severity: "error";
2860
2932
  message: string;
2861
2933
  };
2934
+ DELETE_ACTIVE_ALERT: {
2935
+ severity: "error";
2936
+ message: string;
2937
+ params: string[];
2938
+ };
2939
+ ALERT_ASSIGNMENT_INVALID: {
2940
+ severity: "error";
2941
+ message: string;
2942
+ params: string[];
2943
+ affectedFields: string[];
2944
+ };
2945
+ ALERT_REPLACES_EXISTING: {
2946
+ severity: "warning";
2947
+ message: string;
2948
+ params: string[];
2949
+ affectedFields: string[];
2950
+ };
2951
+ ASSIGNMENT_ALERT_ACTIVE: {
2952
+ severity: "error";
2953
+ message: string;
2954
+ params: string[];
2955
+ };
2862
2956
  TASK_DELETE_BLOCKED_BY_IMPORTANT_NOTE: {
2863
2957
  severity: "error";
2864
2958
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.102",
3
+ "version": "1.10.104",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -45,6 +45,31 @@ export const NOTES = defineValidationFeatureMessages({
45
45
  message:
46
46
  "This note is marked as important and can't be deleted. Please turn off 'Important' before deleting this note.",
47
47
  },
48
+ DELETE_ACTIVE_ALERT: {
49
+ severity: VALIDATION_SEVERITY.ERROR,
50
+ message:
51
+ "This note is an active alert on the '{assignment}' assignment and can't be deleted. Please dismiss the alert before deleting this note.",
52
+ params: ['assignment'],
53
+ },
54
+ ALERT_ASSIGNMENT_INVALID: {
55
+ severity: VALIDATION_SEVERITY.ERROR,
56
+ message: "The selected assignment can't have an alert. Choose a workflow assignment on this task that is not done.",
57
+ params: ['alertAssignmentId'],
58
+ affectedFields: ['alertAssignmentId'],
59
+ },
60
+ ALERT_REPLACES_EXISTING: {
61
+ severity: VALIDATION_SEVERITY.WARNING,
62
+ message:
63
+ 'Another note is already selected as the alert for {assignment}. Do you want to change this note to be the alert?',
64
+ params: ['assignment'],
65
+ affectedFields: ['alertAssignmentId'],
66
+ },
67
+ ASSIGNMENT_ALERT_ACTIVE: {
68
+ severity: VALIDATION_SEVERITY.ERROR,
69
+ message:
70
+ "The '{assignment}' assignment can't be marked done yet because it has an active alert. Please read and dismiss the alert first.",
71
+ params: ['assignment'],
72
+ },
48
73
  TASK_DELETE_BLOCKED_BY_IMPORTANT_NOTE: {
49
74
  severity: VALIDATION_SEVERITY.ERROR,
50
75
  message:
@@ -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
  });