@forwardslashns/taskit-validation-messages 1.10.61 → 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.
@@ -103,6 +103,11 @@ export declare const TASKS: {
103
103
  message: string;
104
104
  affectedFields: string[];
105
105
  };
106
+ GENERATION_ALREADY_IN_PROGRESS: {
107
+ severity: "error";
108
+ message: string;
109
+ affectedFields: never[];
110
+ };
106
111
  ASSIGNMENT_NAME_REQUIRED: {
107
112
  severity: "error";
108
113
  message: string;
@@ -118,5 +123,31 @@ export declare const TASKS: {
118
123
  message: string;
119
124
  affectedFields: string[];
120
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
+ };
121
152
  };
122
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8HhB,CAAC"}
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 <b>{taskId}</b> does not exist or does not belong to this client.',
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 <b>{taskId}</b> is not a Filing type task. Only Filing tasks support this operation.',
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 <b>{logId}</b> does not exist.',
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 <b>{assignmentId}</b> does not exist or does not belong to this task.',
66
+ message: 'Assignment {assignmentId} does not exist or does not belong to this task.',
67
67
  params: ['assignmentId'],
68
68
  affectedFields: ['assignmentId'],
69
69
  },
@@ -107,6 +107,11 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
107
107
  message: 'A retry is already in progress for this generation log. Please wait for it to complete.',
108
108
  affectedFields: ['logId'],
109
109
  },
110
+ GENERATION_ALREADY_IN_PROGRESS: {
111
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
112
+ message: 'A task generation is already in progress. Please wait for it to complete, or use force-generate to interrupt it.',
113
+ affectedFields: [],
114
+ },
110
115
  ASSIGNMENT_NAME_REQUIRED: {
111
116
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
112
117
  message: 'Assignment name is required.',
@@ -122,4 +127,30 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
122
127
  message: 'The selected assignment status is not valid.',
123
128
  affectedFields: ['statusId'],
124
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
+ },
125
156
  });
@@ -2473,6 +2473,11 @@ export declare const VALIDATION_MESSAGES: {
2473
2473
  message: string;
2474
2474
  affectedFields: string[];
2475
2475
  };
2476
+ GENERATION_ALREADY_IN_PROGRESS: {
2477
+ severity: "error";
2478
+ message: string;
2479
+ affectedFields: never[];
2480
+ };
2476
2481
  ASSIGNMENT_NAME_REQUIRED: {
2477
2482
  severity: "error";
2478
2483
  message: string;
@@ -2488,6 +2493,32 @@ export declare const VALIDATION_MESSAGES: {
2488
2493
  message: string;
2489
2494
  affectedFields: string[];
2490
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
+ };
2491
2522
  };
2492
2523
  };
2493
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.61",
3
+ "version": "1.10.63",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -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 <b>{taskId}</b> does not exist or does not belong to this client.',
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 <b>{taskId}</b> is not a Filing type task. Only Filing tasks support this operation.',
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 <b>{logId}</b> does not exist.',
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 <b>{assignmentId}</b> does not exist or does not belong to this task.',
67
+ message: 'Assignment {assignmentId} does not exist or does not belong to this task.',
68
68
  params: ['assignmentId'],
69
69
  affectedFields: ['assignmentId'],
70
70
  },
@@ -111,6 +111,12 @@ export const TASKS = defineValidationFeatureMessages({
111
111
  message: 'A retry is already in progress for this generation log. Please wait for it to complete.',
112
112
  affectedFields: ['logId'],
113
113
  },
114
+ GENERATION_ALREADY_IN_PROGRESS: {
115
+ severity: VALIDATION_SEVERITY.ERROR,
116
+ message:
117
+ 'A task generation is already in progress. Please wait for it to complete, or use force-generate to interrupt it.',
118
+ affectedFields: [],
119
+ },
114
120
  ASSIGNMENT_NAME_REQUIRED: {
115
121
  severity: VALIDATION_SEVERITY.ERROR,
116
122
  message: 'Assignment name is required.',
@@ -126,4 +132,34 @@ export const TASKS = defineValidationFeatureMessages({
126
132
  message: 'The selected assignment status is not valid.',
127
133
  affectedFields: ['statusId'],
128
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
+ },
129
165
  });