@forwardslashns/taskit-validation-messages 1.10.15 → 1.10.18

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.
@@ -84,6 +84,18 @@ export declare const TEMPLATE_INFORMATION: {
84
84
  readonly message: "Invalid filing type";
85
85
  readonly affectedFields: readonly ["filingTypeId"];
86
86
  };
87
+ readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
88
+ readonly 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.";
89
+ readonly affectedFields: readonly ["filingTypeId"];
90
+ };
91
+ readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
92
+ readonly 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.";
93
+ readonly affectedFields: readonly ["filingTypeId"];
94
+ };
95
+ readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
96
+ readonly 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.";
97
+ readonly affectedFields: readonly ["filingTypeId"];
98
+ };
87
99
  readonly STATE_REQUIRED: {
88
100
  readonly message: "State is required";
89
101
  readonly affectedFields: readonly ["stateId"];
@@ -92,6 +104,11 @@ export declare const TEMPLATE_INFORMATION: {
92
104
  readonly message: "Invalid state";
93
105
  readonly affectedFields: readonly ["stateId"];
94
106
  };
107
+ readonly STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
108
+ readonly 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.";
109
+ readonly params: readonly ["SubEntityTemplateState"];
110
+ readonly affectedFields: readonly ["stateId"];
111
+ };
95
112
  readonly FILING_STATUS_REQUIRED: {
96
113
  readonly message: "Sub/Parent status is required when filing type is Income tax";
97
114
  readonly affectedFields: readonly ["filingStatusId"];
@@ -100,6 +117,18 @@ export declare const TEMPLATE_INFORMATION: {
100
117
  readonly message: "Invalid filing status";
101
118
  readonly affectedFields: readonly ["filingStatusId"];
102
119
  };
120
+ readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
121
+ readonly 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.";
122
+ readonly affectedFields: readonly ["filingStatusId"];
123
+ };
124
+ readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
125
+ readonly 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.";
126
+ readonly affectedFields: readonly ["filingStatusId"];
127
+ };
128
+ readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
129
+ readonly message: "A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.";
130
+ readonly affectedFields: readonly ["filingStatusId"];
131
+ };
103
132
  readonly FILES_UNDER_REQUIRED: {
104
133
  readonly message: "Files under is required when Sub/Parent status is \"Files under parent\"";
105
134
  readonly affectedFields: readonly ["filesUnder"];
@@ -1 +1 @@
1
- {"version":3,"file":"template-information.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-information.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsJvB,CAAC"}
1
+ {"version":3,"file":"template-information.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-information.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0LvB,CAAC"}
@@ -87,6 +87,18 @@ exports.TEMPLATE_INFORMATION = {
87
87
  message: 'Invalid filing type',
88
88
  affectedFields: ['filingTypeId'],
89
89
  },
90
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
91
+ 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
+ affectedFields: ['filingTypeId'],
93
+ },
94
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
95
+ 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
+ affectedFields: ['filingTypeId'],
97
+ },
98
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
99
+ 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
+ affectedFields: ['filingTypeId'],
101
+ },
90
102
  STATE_REQUIRED: {
91
103
  message: 'State is required',
92
104
  affectedFields: ['stateId'],
@@ -95,6 +107,11 @@ exports.TEMPLATE_INFORMATION = {
95
107
  message: 'Invalid state',
96
108
  affectedFields: ['stateId'],
97
109
  },
110
+ STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
111
+ 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
+ params: ['SubEntityTemplateState'],
113
+ affectedFields: ['stateId'],
114
+ },
98
115
  FILING_STATUS_REQUIRED: {
99
116
  message: 'Sub/Parent status is required when filing type is Income tax',
100
117
  affectedFields: ['filingStatusId'],
@@ -103,6 +120,18 @@ exports.TEMPLATE_INFORMATION = {
103
120
  message: 'Invalid filing status',
104
121
  affectedFields: ['filingStatusId'],
105
122
  },
123
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
124
+ 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
+ affectedFields: ['filingStatusId'],
126
+ },
127
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
128
+ 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
+ affectedFields: ['filingStatusId'],
130
+ },
131
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
132
+ 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
+ affectedFields: ['filingStatusId'],
134
+ },
106
135
  FILES_UNDER_REQUIRED: {
107
136
  message: 'Files under is required when Sub/Parent status is "Files under parent"',
108
137
  affectedFields: ['filesUnder'],
@@ -38,34 +38,66 @@ export declare const TEMPLATE_RECURRENCE_SETTINGS: {
38
38
  readonly message: "First month is required";
39
39
  readonly affectedFields: readonly ["firstMonth"];
40
40
  };
41
+ readonly FIRST_MONTH_INVALID: {
42
+ readonly message: "First month must be a value between 1 and 12.";
43
+ readonly affectedFields: readonly ["firstMonth"];
44
+ };
41
45
  readonly SECOND_MONTH_REQUIRED: {
42
46
  readonly message: "Second month is required";
43
47
  readonly affectedFields: readonly ["secondMonth"];
44
48
  };
49
+ readonly SECOND_MONTH_INVALID: {
50
+ readonly message: "Second month must be a value between 1 and 12.";
51
+ readonly affectedFields: readonly ["secondMonth"];
52
+ };
45
53
  readonly THIRD_MONTH_REQUIRED: {
46
54
  readonly message: "Third month is required";
47
55
  readonly affectedFields: readonly ["thirdMonth"];
48
56
  };
57
+ readonly THIRD_MONTH_INVALID: {
58
+ readonly message: "Third month must be a value between 1 and 12.";
59
+ readonly affectedFields: readonly ["thirdMonth"];
60
+ };
49
61
  readonly FOURTH_MONTH_REQUIRED: {
50
62
  readonly message: "Fourth month is required";
51
63
  readonly affectedFields: readonly ["fourthMonth"];
52
64
  };
65
+ readonly FOURTH_MONTH_INVALID: {
66
+ readonly message: "Fourth month must be a value between 1 and 12.";
67
+ readonly affectedFields: readonly ["fourthMonth"];
68
+ };
53
69
  readonly DAY_OF_MONTH_REQUIRED: {
54
70
  readonly message: "Day of month is required";
55
71
  readonly affectedFields: readonly ["dayOfMonth"];
56
72
  };
73
+ readonly DAY_OF_MONTH_INVALID: {
74
+ readonly message: "Day of month must be a value between 1 and 31.";
75
+ readonly affectedFields: readonly ["dayOfMonth"];
76
+ };
57
77
  readonly DUE_MONTH_REQUIRED: {
58
78
  readonly message: "Due month is required";
59
79
  readonly affectedFields: readonly ["dueMonth"];
60
80
  };
81
+ readonly DUE_MONTH_INVALID: {
82
+ readonly message: "Due month must be a value between 0 and 12.";
83
+ readonly affectedFields: readonly ["dueMonth"];
84
+ };
61
85
  readonly DUE_DAY_REQUIRED: {
62
86
  readonly message: "Due day is required";
63
87
  readonly affectedFields: readonly ["dueDay"];
64
88
  };
89
+ readonly DUE_DAY_INVALID: {
90
+ readonly message: "Due day must be a value between 0 and 31.";
91
+ readonly affectedFields: readonly ["dueDay"];
92
+ };
65
93
  readonly EXTEND_MONTH_REQUIRED: {
66
94
  readonly message: "Extend month is required";
67
95
  readonly affectedFields: readonly ["extendMonth"];
68
96
  };
97
+ readonly EXTEND_MONTH_INVALID: {
98
+ readonly message: "Extend month cannot be a negative number.";
99
+ readonly affectedFields: readonly ["extendMonth"];
100
+ };
69
101
  readonly GENERATE_BEFORE_REQUIRED: {
70
102
  readonly message: "Before is required";
71
103
  readonly affectedFields: readonly ["generateBeforeId"];
@@ -1 +1 @@
1
- {"version":3,"file":"template-recurrence-settings.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-recurrence-settings.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;iCAGf,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyFR,MAAM,EAAE;;;;iCAIR,MAAM,EAAE;;;;;;;;;;;CAWxB,CAAC"}
1
+ {"version":3,"file":"template-recurrence-settings.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-recurrence-settings.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;iCAGf,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyHR,MAAM,EAAE;;;;iCAIR,MAAM,EAAE;;;;;;;;;;;CAWxB,CAAC"}
@@ -41,34 +41,66 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = {
41
41
  message: 'First month is required',
42
42
  affectedFields: ['firstMonth'],
43
43
  },
44
+ FIRST_MONTH_INVALID: {
45
+ message: 'First month must be a value between 1 and 12.',
46
+ affectedFields: ['firstMonth'],
47
+ },
44
48
  SECOND_MONTH_REQUIRED: {
45
49
  message: 'Second month is required',
46
50
  affectedFields: ['secondMonth'],
47
51
  },
52
+ SECOND_MONTH_INVALID: {
53
+ message: 'Second month must be a value between 1 and 12.',
54
+ affectedFields: ['secondMonth'],
55
+ },
48
56
  THIRD_MONTH_REQUIRED: {
49
57
  message: 'Third month is required',
50
58
  affectedFields: ['thirdMonth'],
51
59
  },
60
+ THIRD_MONTH_INVALID: {
61
+ message: 'Third month must be a value between 1 and 12.',
62
+ affectedFields: ['thirdMonth'],
63
+ },
52
64
  FOURTH_MONTH_REQUIRED: {
53
65
  message: 'Fourth month is required',
54
66
  affectedFields: ['fourthMonth'],
55
67
  },
68
+ FOURTH_MONTH_INVALID: {
69
+ message: 'Fourth month must be a value between 1 and 12.',
70
+ affectedFields: ['fourthMonth'],
71
+ },
56
72
  DAY_OF_MONTH_REQUIRED: {
57
73
  message: 'Day of month is required',
58
74
  affectedFields: ['dayOfMonth'],
59
75
  },
76
+ DAY_OF_MONTH_INVALID: {
77
+ message: 'Day of month must be a value between 1 and 31.',
78
+ affectedFields: ['dayOfMonth'],
79
+ },
60
80
  DUE_MONTH_REQUIRED: {
61
81
  message: 'Due month is required',
62
82
  affectedFields: ['dueMonth'],
63
83
  },
84
+ DUE_MONTH_INVALID: {
85
+ message: 'Due month must be a value between 0 and 12.',
86
+ affectedFields: ['dueMonth'],
87
+ },
64
88
  DUE_DAY_REQUIRED: {
65
89
  message: 'Due day is required',
66
90
  affectedFields: ['dueDay'],
67
91
  },
92
+ DUE_DAY_INVALID: {
93
+ message: 'Due day must be a value between 0 and 31.',
94
+ affectedFields: ['dueDay'],
95
+ },
68
96
  EXTEND_MONTH_REQUIRED: {
69
97
  message: 'Extend month is required',
70
98
  affectedFields: ['extendMonth'],
71
99
  },
100
+ EXTEND_MONTH_INVALID: {
101
+ message: 'Extend month cannot be a negative number.',
102
+ affectedFields: ['extendMonth'],
103
+ },
72
104
  GENERATE_BEFORE_REQUIRED: {
73
105
  message: 'Before is required',
74
106
  affectedFields: ['generateBeforeId'],
@@ -1144,6 +1144,18 @@ export declare const VALIDATION_MESSAGES: {
1144
1144
  readonly message: "Invalid filing type";
1145
1145
  readonly affectedFields: readonly ["filingTypeId"];
1146
1146
  };
1147
+ readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
1148
+ readonly 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.";
1149
+ readonly affectedFields: readonly ["filingTypeId"];
1150
+ };
1151
+ readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
1152
+ readonly 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.";
1153
+ readonly affectedFields: readonly ["filingTypeId"];
1154
+ };
1155
+ readonly FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
1156
+ readonly 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.";
1157
+ readonly affectedFields: readonly ["filingTypeId"];
1158
+ };
1147
1159
  readonly STATE_REQUIRED: {
1148
1160
  readonly message: "State is required";
1149
1161
  readonly affectedFields: readonly ["stateId"];
@@ -1152,6 +1164,11 @@ export declare const VALIDATION_MESSAGES: {
1152
1164
  readonly message: "Invalid state";
1153
1165
  readonly affectedFields: readonly ["stateId"];
1154
1166
  };
1167
+ readonly STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
1168
+ readonly 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.";
1169
+ readonly params: readonly ["SubEntityTemplateState"];
1170
+ readonly affectedFields: readonly ["stateId"];
1171
+ };
1155
1172
  readonly FILING_STATUS_REQUIRED: {
1156
1173
  readonly message: "Sub/Parent status is required when filing type is Income tax";
1157
1174
  readonly affectedFields: readonly ["filingStatusId"];
@@ -1160,6 +1177,18 @@ export declare const VALIDATION_MESSAGES: {
1160
1177
  readonly message: "Invalid filing status";
1161
1178
  readonly affectedFields: readonly ["filingStatusId"];
1162
1179
  };
1180
+ readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
1181
+ readonly 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.";
1182
+ readonly affectedFields: readonly ["filingStatusId"];
1183
+ };
1184
+ readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
1185
+ readonly 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.";
1186
+ readonly affectedFields: readonly ["filingStatusId"];
1187
+ };
1188
+ readonly FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
1189
+ readonly message: "A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.";
1190
+ readonly affectedFields: readonly ["filingStatusId"];
1191
+ };
1163
1192
  readonly FILES_UNDER_REQUIRED: {
1164
1193
  readonly message: "Files under is required when Sub/Parent status is \"Files under parent\"";
1165
1194
  readonly affectedFields: readonly ["filesUnder"];
@@ -1379,34 +1408,66 @@ export declare const VALIDATION_MESSAGES: {
1379
1408
  readonly message: "First month is required";
1380
1409
  readonly affectedFields: readonly ["firstMonth"];
1381
1410
  };
1411
+ readonly FIRST_MONTH_INVALID: {
1412
+ readonly message: "First month must be a value between 1 and 12.";
1413
+ readonly affectedFields: readonly ["firstMonth"];
1414
+ };
1382
1415
  readonly SECOND_MONTH_REQUIRED: {
1383
1416
  readonly message: "Second month is required";
1384
1417
  readonly affectedFields: readonly ["secondMonth"];
1385
1418
  };
1419
+ readonly SECOND_MONTH_INVALID: {
1420
+ readonly message: "Second month must be a value between 1 and 12.";
1421
+ readonly affectedFields: readonly ["secondMonth"];
1422
+ };
1386
1423
  readonly THIRD_MONTH_REQUIRED: {
1387
1424
  readonly message: "Third month is required";
1388
1425
  readonly affectedFields: readonly ["thirdMonth"];
1389
1426
  };
1427
+ readonly THIRD_MONTH_INVALID: {
1428
+ readonly message: "Third month must be a value between 1 and 12.";
1429
+ readonly affectedFields: readonly ["thirdMonth"];
1430
+ };
1390
1431
  readonly FOURTH_MONTH_REQUIRED: {
1391
1432
  readonly message: "Fourth month is required";
1392
1433
  readonly affectedFields: readonly ["fourthMonth"];
1393
1434
  };
1435
+ readonly FOURTH_MONTH_INVALID: {
1436
+ readonly message: "Fourth month must be a value between 1 and 12.";
1437
+ readonly affectedFields: readonly ["fourthMonth"];
1438
+ };
1394
1439
  readonly DAY_OF_MONTH_REQUIRED: {
1395
1440
  readonly message: "Day of month is required";
1396
1441
  readonly affectedFields: readonly ["dayOfMonth"];
1397
1442
  };
1443
+ readonly DAY_OF_MONTH_INVALID: {
1444
+ readonly message: "Day of month must be a value between 1 and 31.";
1445
+ readonly affectedFields: readonly ["dayOfMonth"];
1446
+ };
1398
1447
  readonly DUE_MONTH_REQUIRED: {
1399
1448
  readonly message: "Due month is required";
1400
1449
  readonly affectedFields: readonly ["dueMonth"];
1401
1450
  };
1451
+ readonly DUE_MONTH_INVALID: {
1452
+ readonly message: "Due month must be a value between 0 and 12.";
1453
+ readonly affectedFields: readonly ["dueMonth"];
1454
+ };
1402
1455
  readonly DUE_DAY_REQUIRED: {
1403
1456
  readonly message: "Due day is required";
1404
1457
  readonly affectedFields: readonly ["dueDay"];
1405
1458
  };
1459
+ readonly DUE_DAY_INVALID: {
1460
+ readonly message: "Due day must be a value between 0 and 31.";
1461
+ readonly affectedFields: readonly ["dueDay"];
1462
+ };
1406
1463
  readonly EXTEND_MONTH_REQUIRED: {
1407
1464
  readonly message: "Extend month is required";
1408
1465
  readonly affectedFields: readonly ["extendMonth"];
1409
1466
  };
1467
+ readonly EXTEND_MONTH_INVALID: {
1468
+ readonly message: "Extend month cannot be a negative number.";
1469
+ readonly affectedFields: readonly ["extendMonth"];
1470
+ };
1410
1471
  readonly GENERATE_BEFORE_REQUIRED: {
1411
1472
  readonly message: "Before is required";
1412
1473
  readonly affectedFields: readonly ["generateBeforeId"];
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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10.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -84,6 +84,21 @@ export const TEMPLATE_INFORMATION = {
84
84
  message: 'Invalid filing type',
85
85
  affectedFields: ['filingTypeId'],
86
86
  },
87
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
88
+ message:
89
+ "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.",
90
+ affectedFields: ['filingTypeId'],
91
+ },
92
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
93
+ message:
94
+ "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.",
95
+ affectedFields: ['filingTypeId'],
96
+ },
97
+ FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
98
+ message:
99
+ "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
+ affectedFields: ['filingTypeId'],
101
+ },
87
102
  STATE_REQUIRED: {
88
103
  message: 'State is required',
89
104
  affectedFields: ['stateId'],
@@ -92,6 +107,12 @@ export const TEMPLATE_INFORMATION = {
92
107
  message: 'Invalid state',
93
108
  affectedFields: ['stateId'],
94
109
  },
110
+ STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
111
+ message:
112
+ '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.',
113
+ params: ['SubEntityTemplateState'],
114
+ affectedFields: ['stateId'],
115
+ },
95
116
  FILING_STATUS_REQUIRED: {
96
117
  message: 'Sub/Parent status is required when filing type is Income tax',
97
118
  affectedFields: ['filingStatusId'],
@@ -100,6 +121,21 @@ export const TEMPLATE_INFORMATION = {
100
121
  message: 'Invalid filing status',
101
122
  affectedFields: ['filingStatusId'],
102
123
  },
124
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
125
+ message:
126
+ '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.',
127
+ affectedFields: ['filingStatusId'],
128
+ },
129
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
130
+ message:
131
+ '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.',
132
+ affectedFields: ['filingStatusId'],
133
+ },
134
+ FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
135
+ message:
136
+ 'A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.',
137
+ affectedFields: ['filingStatusId'],
138
+ },
103
139
  FILES_UNDER_REQUIRED: {
104
140
  message: 'Files under is required when Sub/Parent status is "Files under parent"',
105
141
  affectedFields: ['filesUnder'],
@@ -42,34 +42,66 @@ export const TEMPLATE_RECURRENCE_SETTINGS = {
42
42
  message: 'First month is required',
43
43
  affectedFields: ['firstMonth'],
44
44
  },
45
+ FIRST_MONTH_INVALID: {
46
+ message: 'First month must be a value between 1 and 12.',
47
+ affectedFields: ['firstMonth'],
48
+ },
45
49
  SECOND_MONTH_REQUIRED: {
46
50
  message: 'Second month is required',
47
51
  affectedFields: ['secondMonth'],
48
52
  },
53
+ SECOND_MONTH_INVALID: {
54
+ message: 'Second month must be a value between 1 and 12.',
55
+ affectedFields: ['secondMonth'],
56
+ },
49
57
  THIRD_MONTH_REQUIRED: {
50
58
  message: 'Third month is required',
51
59
  affectedFields: ['thirdMonth'],
52
60
  },
61
+ THIRD_MONTH_INVALID: {
62
+ message: 'Third month must be a value between 1 and 12.',
63
+ affectedFields: ['thirdMonth'],
64
+ },
53
65
  FOURTH_MONTH_REQUIRED: {
54
66
  message: 'Fourth month is required',
55
67
  affectedFields: ['fourthMonth'],
56
68
  },
69
+ FOURTH_MONTH_INVALID: {
70
+ message: 'Fourth month must be a value between 1 and 12.',
71
+ affectedFields: ['fourthMonth'],
72
+ },
57
73
  DAY_OF_MONTH_REQUIRED: {
58
74
  message: 'Day of month is required',
59
75
  affectedFields: ['dayOfMonth'],
60
76
  },
77
+ DAY_OF_MONTH_INVALID: {
78
+ message: 'Day of month must be a value between 1 and 31.',
79
+ affectedFields: ['dayOfMonth'],
80
+ },
61
81
  DUE_MONTH_REQUIRED: {
62
82
  message: 'Due month is required',
63
83
  affectedFields: ['dueMonth'],
64
84
  },
85
+ DUE_MONTH_INVALID: {
86
+ message: 'Due month must be a value between 0 and 12.',
87
+ affectedFields: ['dueMonth'],
88
+ },
65
89
  DUE_DAY_REQUIRED: {
66
90
  message: 'Due day is required',
67
91
  affectedFields: ['dueDay'],
68
92
  },
93
+ DUE_DAY_INVALID: {
94
+ message: 'Due day must be a value between 0 and 31.',
95
+ affectedFields: ['dueDay'],
96
+ },
69
97
  EXTEND_MONTH_REQUIRED: {
70
98
  message: 'Extend month is required',
71
99
  affectedFields: ['extendMonth'],
72
100
  },
101
+ EXTEND_MONTH_INVALID: {
102
+ message: 'Extend month cannot be a negative number.',
103
+ affectedFields: ['extendMonth'],
104
+ },
73
105
  GENERATE_BEFORE_REQUIRED: {
74
106
  message: 'Before is required',
75
107
  affectedFields: ['generateBeforeId'],