@forwardslashns/taskit-validation-messages 1.10.106 → 1.10.108

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.
@@ -75,6 +75,18 @@ export declare const CLIENT_TEMPLATE_ASSIGNMENTS: {
75
75
  message: string;
76
76
  affectedFields: string[];
77
77
  };
78
+ ASSIGNMENT_LOCKED_HAS_TASKS: {
79
+ severity: "error";
80
+ message: string;
81
+ params: string[];
82
+ affectedFields: string[];
83
+ };
84
+ ASSIGNMENT_LOCKED_INHERITED: {
85
+ severity: "error";
86
+ message: string;
87
+ params: string[];
88
+ affectedFields: string[];
89
+ };
78
90
  CANNOT_REIMPORT_ASSIGNMENTS_CLIENT_TEMPLATE_ENDED: {
79
91
  severity: "error";
80
92
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"client-template-assignments.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-template-assignments.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFtC,CAAC"}
1
+ {"version":3,"file":"client-template-assignments.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-template-assignments.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FtC,CAAC"}
@@ -79,6 +79,18 @@ exports.CLIENT_TEMPLATE_ASSIGNMENTS = (0, validation_message_types_1.defineValid
79
79
  message: "The 'Final' assignment cannot be modified.",
80
80
  affectedFields: ['assignments'],
81
81
  },
82
+ ASSIGNMENT_LOCKED_HAS_TASKS: {
83
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
84
+ message: `Tasks have been generated from the assignment '{name}', so only its default staff can be changed.`,
85
+ params: ['name'],
86
+ affectedFields: ['assignments'],
87
+ },
88
+ ASSIGNMENT_LOCKED_INHERITED: {
89
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
90
+ message: `The assignment '{name}' was inherited from the template, so only its amount and default staff can be changed.`,
91
+ params: ['name'],
92
+ affectedFields: ['assignments'],
93
+ },
82
94
  CANNOT_REIMPORT_ASSIGNMENTS_CLIENT_TEMPLATE_ENDED: {
83
95
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
84
96
  message: 'Assignments cannot be re-imported once this client template has ended.',
@@ -44,6 +44,12 @@ export declare const TEMPLATE_STATES: {
44
44
  message: string;
45
45
  affectedFields: never[];
46
46
  };
47
+ STATE_IN_USE_BY_TAX_PAYMENT_TEMPLATE_CANNOT_DELETE: {
48
+ severity: "error";
49
+ message: string;
50
+ params: string[];
51
+ affectedFields: never[];
52
+ };
47
53
  TEMPLATE_MUST_BE_FILING_TYPE: {
48
54
  severity: "error";
49
55
  message: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsF1B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6F1B,CAAC"}
@@ -48,6 +48,12 @@ exports.TEMPLATE_STATES = (0, validation_message_types_1.defineValidationFeature
48
48
  message: 'This state is currently in use and cannot be deleted.',
49
49
  affectedFields: [],
50
50
  },
51
+ STATE_IN_USE_BY_TAX_PAYMENT_TEMPLATE_CANNOT_DELETE: {
52
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
53
+ message: 'This state sub-filing cannot be deleted because {associatedTaxPaymentName} is a tax payment template associated with it. Please remove the association or delete the tax payment template first.',
54
+ params: ['associatedTaxPaymentName'],
55
+ affectedFields: [],
56
+ },
51
57
  TEMPLATE_MUST_BE_FILING_TYPE: {
52
58
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
53
59
  message: 'States can only be added to Filing type templates.',
@@ -1902,6 +1902,12 @@ export declare const VALIDATION_MESSAGES: {
1902
1902
  message: string;
1903
1903
  affectedFields: never[];
1904
1904
  };
1905
+ STATE_IN_USE_BY_TAX_PAYMENT_TEMPLATE_CANNOT_DELETE: {
1906
+ severity: "error";
1907
+ message: string;
1908
+ params: string[];
1909
+ affectedFields: never[];
1910
+ };
1905
1911
  TEMPLATE_MUST_BE_FILING_TYPE: {
1906
1912
  severity: "error";
1907
1913
  message: string;
@@ -2528,6 +2534,18 @@ export declare const VALIDATION_MESSAGES: {
2528
2534
  message: string;
2529
2535
  affectedFields: string[];
2530
2536
  };
2537
+ ASSIGNMENT_LOCKED_HAS_TASKS: {
2538
+ severity: "error";
2539
+ message: string;
2540
+ params: string[];
2541
+ affectedFields: string[];
2542
+ };
2543
+ ASSIGNMENT_LOCKED_INHERITED: {
2544
+ severity: "error";
2545
+ message: string;
2546
+ params: string[];
2547
+ affectedFields: string[];
2548
+ };
2531
2549
  CANNOT_REIMPORT_ASSIGNMENTS_CLIENT_TEMPLATE_ENDED: {
2532
2550
  severity: "error";
2533
2551
  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.106",
3
+ "version": "1.10.108",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -77,6 +77,18 @@ export const CLIENT_TEMPLATE_ASSIGNMENTS = defineValidationFeatureMessages({
77
77
  message: "The 'Final' assignment cannot be modified.",
78
78
  affectedFields: ['assignments'],
79
79
  },
80
+ ASSIGNMENT_LOCKED_HAS_TASKS: {
81
+ severity: VALIDATION_SEVERITY.ERROR,
82
+ message: `Tasks have been generated from the assignment '{name}', so only its default staff can be changed.`,
83
+ params: ['name'],
84
+ affectedFields: ['assignments'],
85
+ },
86
+ ASSIGNMENT_LOCKED_INHERITED: {
87
+ severity: VALIDATION_SEVERITY.ERROR,
88
+ message: `The assignment '{name}' was inherited from the template, so only its amount and default staff can be changed.`,
89
+ params: ['name'],
90
+ affectedFields: ['assignments'],
91
+ },
80
92
  CANNOT_REIMPORT_ASSIGNMENTS_CLIENT_TEMPLATE_ENDED: {
81
93
  severity: VALIDATION_SEVERITY.ERROR,
82
94
  message: 'Assignments cannot be re-imported once this client template has ended.',
@@ -46,6 +46,13 @@ export const TEMPLATE_STATES = defineValidationFeatureMessages({
46
46
  message: 'This state is currently in use and cannot be deleted.',
47
47
  affectedFields: [],
48
48
  },
49
+ STATE_IN_USE_BY_TAX_PAYMENT_TEMPLATE_CANNOT_DELETE: {
50
+ severity: VALIDATION_SEVERITY.ERROR,
51
+ message:
52
+ 'This state sub-filing cannot be deleted because {associatedTaxPaymentName} is a tax payment template associated with it. Please remove the association or delete the tax payment template first.',
53
+ params: ['associatedTaxPaymentName'],
54
+ affectedFields: [],
55
+ },
49
56
  TEMPLATE_MUST_BE_FILING_TYPE: {
50
57
  severity: VALIDATION_SEVERITY.ERROR,
51
58
  message: 'States can only be added to Filing type templates.',