@forwardslashns/taskit-validation-messages 1.10.62 → 1.10.63
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/tasks.validation-messages.d.ts +26 -0
- package/dist/validation/features/tasks.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/tasks.validation-messages.js +30 -4
- package/dist/validation/validation-messages.d.ts +26 -0
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/tasks.validation-messages.ts +34 -4
|
@@ -123,5 +123,31 @@ export declare const TASKS: {
|
|
|
123
123
|
message: string;
|
|
124
124
|
affectedFields: string[];
|
|
125
125
|
};
|
|
126
|
+
CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_TASK: {
|
|
127
|
+
severity: "error";
|
|
128
|
+
message: string;
|
|
129
|
+
affectedFields: string[];
|
|
130
|
+
};
|
|
131
|
+
CANNOT_MARK_FINAL_HAS_LATER_STATE_SUB_FILING: {
|
|
132
|
+
severity: "error";
|
|
133
|
+
message: string;
|
|
134
|
+
affectedFields: string[];
|
|
135
|
+
};
|
|
136
|
+
CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_CT: {
|
|
137
|
+
severity: "error";
|
|
138
|
+
message: string;
|
|
139
|
+
affectedFields: string[];
|
|
140
|
+
};
|
|
141
|
+
CANNOT_MARK_FINAL_HAS_LATER_SUB_ENTITY_CT: {
|
|
142
|
+
severity: "error";
|
|
143
|
+
message: string;
|
|
144
|
+
affectedFields: string[];
|
|
145
|
+
};
|
|
146
|
+
TASK_FILING_NOT_FOUND: {
|
|
147
|
+
severity: "error";
|
|
148
|
+
message: string;
|
|
149
|
+
params: string[];
|
|
150
|
+
affectedFields: string[];
|
|
151
|
+
};
|
|
126
152
|
};
|
|
127
153
|
//# sourceMappingURL=tasks.validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/tasks.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"tasks.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/tasks.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkKhB,CAAC"}
|
|
@@ -5,13 +5,13 @@ const validation_message_types_1 = require("../validation-message.types");
|
|
|
5
5
|
exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)({
|
|
6
6
|
NOT_FOUND: {
|
|
7
7
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
8
|
-
message: 'Task
|
|
8
|
+
message: 'Task {taskId} does not exist or does not belong to this client.',
|
|
9
9
|
params: ['taskId'],
|
|
10
10
|
affectedFields: ['taskId'],
|
|
11
11
|
},
|
|
12
12
|
NOT_FILING_TYPE: {
|
|
13
13
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
14
|
-
message: 'Task
|
|
14
|
+
message: 'Task {taskId} is not a Filing type task. Only Filing tasks support this operation.',
|
|
15
15
|
params: ['taskId'],
|
|
16
16
|
affectedFields: ['taskId'],
|
|
17
17
|
},
|
|
@@ -22,7 +22,7 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
|
|
|
22
22
|
},
|
|
23
23
|
GENERATION_LOG_NOT_FOUND: {
|
|
24
24
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
25
|
-
message: 'Task generation log
|
|
25
|
+
message: 'Task generation log {logId} does not exist.',
|
|
26
26
|
params: ['logId'],
|
|
27
27
|
affectedFields: ['logId'],
|
|
28
28
|
},
|
|
@@ -63,7 +63,7 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
|
|
|
63
63
|
},
|
|
64
64
|
ASSIGNMENT_NOT_FOUND: {
|
|
65
65
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
66
|
-
message: 'Assignment
|
|
66
|
+
message: 'Assignment {assignmentId} does not exist or does not belong to this task.',
|
|
67
67
|
params: ['assignmentId'],
|
|
68
68
|
affectedFields: ['assignmentId'],
|
|
69
69
|
},
|
|
@@ -127,4 +127,30 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
|
|
|
127
127
|
message: 'The selected assignment status is not valid.',
|
|
128
128
|
affectedFields: ['statusId'],
|
|
129
129
|
},
|
|
130
|
+
CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_TASK: {
|
|
131
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
132
|
+
message: "This filing cannot be marked final since there is a tax payment associated with this filing, whose year is later than this filing period's ending year. Please resolve the later tax payment before marking this filing final.",
|
|
133
|
+
affectedFields: ['isFinalFiling'],
|
|
134
|
+
},
|
|
135
|
+
CANNOT_MARK_FINAL_HAS_LATER_STATE_SUB_FILING: {
|
|
136
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
137
|
+
message: "This filing cannot be marked final since a state sub-filing, or a tax payment associated with a state sub-filing, has a starting date or ending date later than this filing's period ending date. Please adjust the state sub-filing or tax payment dates before marking this filing final.",
|
|
138
|
+
affectedFields: ['isFinalFiling'],
|
|
139
|
+
},
|
|
140
|
+
CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_CT: {
|
|
141
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
142
|
+
message: "This filing cannot be marked final since a tax payment client template associated with this filing has a starting date or ending date later than this filing's period ending date. Please adjust the tax payment client template dates before marking this final.",
|
|
143
|
+
affectedFields: ['isFinalFiling'],
|
|
144
|
+
},
|
|
145
|
+
CANNOT_MARK_FINAL_HAS_LATER_SUB_ENTITY_CT: {
|
|
146
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
147
|
+
message: "This filing cannot be marked final since a sub-entity client template associated with this filing has a starting date or ending date later than this filing's period ending date. Please adjust the sub-entity filing client template dates before marking this filing final.",
|
|
148
|
+
affectedFields: ['isFinalFiling'],
|
|
149
|
+
},
|
|
150
|
+
TASK_FILING_NOT_FOUND: {
|
|
151
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
152
|
+
message: 'Task filing {filingId} does not exist or does not belong to this task.',
|
|
153
|
+
params: ['filingId'],
|
|
154
|
+
affectedFields: ['filingId'],
|
|
155
|
+
},
|
|
130
156
|
});
|
|
@@ -2493,6 +2493,32 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
2493
2493
|
message: string;
|
|
2494
2494
|
affectedFields: string[];
|
|
2495
2495
|
};
|
|
2496
|
+
CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_TASK: {
|
|
2497
|
+
severity: "error";
|
|
2498
|
+
message: string;
|
|
2499
|
+
affectedFields: string[];
|
|
2500
|
+
};
|
|
2501
|
+
CANNOT_MARK_FINAL_HAS_LATER_STATE_SUB_FILING: {
|
|
2502
|
+
severity: "error";
|
|
2503
|
+
message: string;
|
|
2504
|
+
affectedFields: string[];
|
|
2505
|
+
};
|
|
2506
|
+
CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_CT: {
|
|
2507
|
+
severity: "error";
|
|
2508
|
+
message: string;
|
|
2509
|
+
affectedFields: string[];
|
|
2510
|
+
};
|
|
2511
|
+
CANNOT_MARK_FINAL_HAS_LATER_SUB_ENTITY_CT: {
|
|
2512
|
+
severity: "error";
|
|
2513
|
+
message: string;
|
|
2514
|
+
affectedFields: string[];
|
|
2515
|
+
};
|
|
2516
|
+
TASK_FILING_NOT_FOUND: {
|
|
2517
|
+
severity: "error";
|
|
2518
|
+
message: string;
|
|
2519
|
+
params: string[];
|
|
2520
|
+
affectedFields: string[];
|
|
2521
|
+
};
|
|
2496
2522
|
};
|
|
2497
2523
|
};
|
|
2498
2524
|
//# sourceMappingURL=validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@ import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validat
|
|
|
3
3
|
export const TASKS = defineValidationFeatureMessages({
|
|
4
4
|
NOT_FOUND: {
|
|
5
5
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
6
|
-
message: 'Task
|
|
6
|
+
message: 'Task {taskId} does not exist or does not belong to this client.',
|
|
7
7
|
params: ['taskId'],
|
|
8
8
|
affectedFields: ['taskId'],
|
|
9
9
|
},
|
|
10
10
|
NOT_FILING_TYPE: {
|
|
11
11
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
|
-
message: 'Task
|
|
12
|
+
message: 'Task {taskId} is not a Filing type task. Only Filing tasks support this operation.',
|
|
13
13
|
params: ['taskId'],
|
|
14
14
|
affectedFields: ['taskId'],
|
|
15
15
|
},
|
|
@@ -21,7 +21,7 @@ export const TASKS = defineValidationFeatureMessages({
|
|
|
21
21
|
},
|
|
22
22
|
GENERATION_LOG_NOT_FOUND: {
|
|
23
23
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
24
|
-
message: 'Task generation log
|
|
24
|
+
message: 'Task generation log {logId} does not exist.',
|
|
25
25
|
params: ['logId'],
|
|
26
26
|
affectedFields: ['logId'],
|
|
27
27
|
},
|
|
@@ -64,7 +64,7 @@ export const TASKS = defineValidationFeatureMessages({
|
|
|
64
64
|
},
|
|
65
65
|
ASSIGNMENT_NOT_FOUND: {
|
|
66
66
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
67
|
-
message: 'Assignment
|
|
67
|
+
message: 'Assignment {assignmentId} does not exist or does not belong to this task.',
|
|
68
68
|
params: ['assignmentId'],
|
|
69
69
|
affectedFields: ['assignmentId'],
|
|
70
70
|
},
|
|
@@ -132,4 +132,34 @@ export const TASKS = defineValidationFeatureMessages({
|
|
|
132
132
|
message: 'The selected assignment status is not valid.',
|
|
133
133
|
affectedFields: ['statusId'],
|
|
134
134
|
},
|
|
135
|
+
CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_TASK: {
|
|
136
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
137
|
+
message:
|
|
138
|
+
"This filing cannot be marked final since there is a tax payment associated with this filing, whose year is later than this filing period's ending year. Please resolve the later tax payment before marking this filing final.",
|
|
139
|
+
affectedFields: ['isFinalFiling'],
|
|
140
|
+
},
|
|
141
|
+
CANNOT_MARK_FINAL_HAS_LATER_STATE_SUB_FILING: {
|
|
142
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
143
|
+
message:
|
|
144
|
+
"This filing cannot be marked final since a state sub-filing, or a tax payment associated with a state sub-filing, has a starting date or ending date later than this filing's period ending date. Please adjust the state sub-filing or tax payment dates before marking this filing final.",
|
|
145
|
+
affectedFields: ['isFinalFiling'],
|
|
146
|
+
},
|
|
147
|
+
CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_CT: {
|
|
148
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
149
|
+
message:
|
|
150
|
+
"This filing cannot be marked final since a tax payment client template associated with this filing has a starting date or ending date later than this filing's period ending date. Please adjust the tax payment client template dates before marking this final.",
|
|
151
|
+
affectedFields: ['isFinalFiling'],
|
|
152
|
+
},
|
|
153
|
+
CANNOT_MARK_FINAL_HAS_LATER_SUB_ENTITY_CT: {
|
|
154
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
155
|
+
message:
|
|
156
|
+
"This filing cannot be marked final since a sub-entity client template associated with this filing has a starting date or ending date later than this filing's period ending date. Please adjust the sub-entity filing client template dates before marking this filing final.",
|
|
157
|
+
affectedFields: ['isFinalFiling'],
|
|
158
|
+
},
|
|
159
|
+
TASK_FILING_NOT_FOUND: {
|
|
160
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
161
|
+
message: 'Task filing {filingId} does not exist or does not belong to this task.',
|
|
162
|
+
params: ['filingId'],
|
|
163
|
+
affectedFields: ['filingId'],
|
|
164
|
+
},
|
|
135
165
|
});
|