@forwardslashns/taskit-validation-messages 1.10.94 → 1.10.95

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.
@@ -217,6 +217,18 @@ export declare const TASKS: {
217
217
  params: string[];
218
218
  affectedFields: string[];
219
219
  };
220
+ TASK_FILING_DUPLICATED_IN_SNAPSHOT: {
221
+ severity: "error";
222
+ message: string;
223
+ params: string[];
224
+ affectedFields: string[];
225
+ };
226
+ TASK_FILING_STATE_MISMATCH: {
227
+ severity: "error";
228
+ message: string;
229
+ params: string[];
230
+ affectedFields: string[];
231
+ };
220
232
  CANNOT_MODIFY_FINAL_ASSIGNMENT: {
221
233
  severity: "error";
222
234
  message: string;
@@ -323,5 +335,15 @@ export declare const TASKS: {
323
335
  message: string;
324
336
  affectedFields: string[];
325
337
  };
338
+ TAX_YEAR_DIGITS_INVALID: {
339
+ severity: "error";
340
+ message: string;
341
+ affectedFields: string[];
342
+ };
343
+ TAX_YEAR_PREFIX_INVALID: {
344
+ severity: "error";
345
+ message: string;
346
+ affectedFields: string[];
347
+ };
326
348
  };
327
349
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoVhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0WhB,CAAC"}
@@ -221,6 +221,18 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
221
221
  params: ['clientTemplateStateId'],
222
222
  affectedFields: ['filings'],
223
223
  },
224
+ TASK_FILING_DUPLICATED_IN_SNAPSHOT: {
225
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
226
+ message: 'Task filing {filingId} appears more than once in the request.',
227
+ params: ['filingId'],
228
+ affectedFields: ['filings'],
229
+ },
230
+ TASK_FILING_STATE_MISMATCH: {
231
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
232
+ message: 'Task filing {filingId} does not belong to state sub-filing {clientTemplateStateId}.',
233
+ params: ['filingId', 'clientTemplateStateId'],
234
+ affectedFields: ['filings'],
235
+ },
224
236
  CANNOT_MODIFY_FINAL_ASSIGNMENT: {
225
237
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
226
238
  message: 'Assignment "{assignmentName}" is final and cannot be modified.',
@@ -327,4 +339,14 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
327
339
  message: 'Tax year must have 4 digits and start with 20.',
328
340
  affectedFields: ['year'],
329
341
  },
342
+ TAX_YEAR_DIGITS_INVALID: {
343
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
344
+ message: 'Please enter a 4 digit year.',
345
+ affectedFields: ['year'],
346
+ },
347
+ TAX_YEAR_PREFIX_INVALID: {
348
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
349
+ message: 'Please enter a valid 4-digit year.',
350
+ affectedFields: ['year'],
351
+ },
330
352
  });
@@ -2670,6 +2670,18 @@ export declare const VALIDATION_MESSAGES: {
2670
2670
  params: string[];
2671
2671
  affectedFields: string[];
2672
2672
  };
2673
+ TASK_FILING_DUPLICATED_IN_SNAPSHOT: {
2674
+ severity: "error";
2675
+ message: string;
2676
+ params: string[];
2677
+ affectedFields: string[];
2678
+ };
2679
+ TASK_FILING_STATE_MISMATCH: {
2680
+ severity: "error";
2681
+ message: string;
2682
+ params: string[];
2683
+ affectedFields: string[];
2684
+ };
2673
2685
  CANNOT_MODIFY_FINAL_ASSIGNMENT: {
2674
2686
  severity: "error";
2675
2687
  message: string;
@@ -2776,6 +2788,16 @@ export declare const VALIDATION_MESSAGES: {
2776
2788
  message: string;
2777
2789
  affectedFields: string[];
2778
2790
  };
2791
+ TAX_YEAR_DIGITS_INVALID: {
2792
+ severity: "error";
2793
+ message: string;
2794
+ affectedFields: string[];
2795
+ };
2796
+ TAX_YEAR_PREFIX_INVALID: {
2797
+ severity: "error";
2798
+ message: string;
2799
+ affectedFields: string[];
2800
+ };
2779
2801
  };
2780
2802
  };
2781
2803
  //# 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":"AAkCA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.94",
3
+ "version": "1.10.95",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -231,6 +231,18 @@ export const TASKS = defineValidationFeatureMessages({
231
231
  params: ['clientTemplateStateId'],
232
232
  affectedFields: ['filings'],
233
233
  },
234
+ TASK_FILING_DUPLICATED_IN_SNAPSHOT: {
235
+ severity: VALIDATION_SEVERITY.ERROR,
236
+ message: 'Task filing {filingId} appears more than once in the request.',
237
+ params: ['filingId'],
238
+ affectedFields: ['filings'],
239
+ },
240
+ TASK_FILING_STATE_MISMATCH: {
241
+ severity: VALIDATION_SEVERITY.ERROR,
242
+ message: 'Task filing {filingId} does not belong to state sub-filing {clientTemplateStateId}.',
243
+ params: ['filingId', 'clientTemplateStateId'],
244
+ affectedFields: ['filings'],
245
+ },
234
246
  CANNOT_MODIFY_FINAL_ASSIGNMENT: {
235
247
  severity: VALIDATION_SEVERITY.ERROR,
236
248
  message: 'Assignment "{assignmentName}" is final and cannot be modified.',
@@ -340,4 +352,14 @@ export const TASKS = defineValidationFeatureMessages({
340
352
  message: 'Tax year must have 4 digits and start with 20.',
341
353
  affectedFields: ['year'],
342
354
  },
355
+ TAX_YEAR_DIGITS_INVALID: {
356
+ severity: VALIDATION_SEVERITY.ERROR,
357
+ message: 'Please enter a 4 digit year.',
358
+ affectedFields: ['year'],
359
+ },
360
+ TAX_YEAR_PREFIX_INVALID: {
361
+ severity: VALIDATION_SEVERITY.ERROR,
362
+ message: 'Please enter a valid 4-digit year.',
363
+ affectedFields: ['year'],
364
+ },
343
365
  });