@forwardslashns/taskit-validation-messages 1.10.57 → 1.10.58

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.
@@ -105,5 +105,15 @@ export declare const TEMPLATE_ASSIGNMENTS: {
105
105
  message: string;
106
106
  affectedFields: string[];
107
107
  };
108
+ FINAL_ASSIGNMENT_NAME_MISMATCH: {
109
+ severity: "error";
110
+ message: string;
111
+ affectedFields: string[];
112
+ };
113
+ FINAL_ASSIGNMENT_FLAG_REQUIRED: {
114
+ severity: "error";
115
+ message: string;
116
+ affectedFields: string[];
117
+ };
108
118
  };
109
119
  //# sourceMappingURL=template-assignments.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-assignments.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-assignments.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4G/B,CAAC"}
1
+ {"version":3,"file":"template-assignments.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-assignments.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsH/B,CAAC"}
@@ -109,4 +109,14 @@ exports.TEMPLATE_ASSIGNMENTS = (0, validation_message_types_1.defineValidationFe
109
109
  message: "The 'Final' assignment's default staff must match the template's default staff.",
110
110
  affectedFields: ['defaultStaffId'],
111
111
  },
112
+ FINAL_ASSIGNMENT_NAME_MISMATCH: {
113
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
114
+ message: "An assignment marked as final must be named 'Final'.",
115
+ affectedFields: ['name', 'isFinal'],
116
+ },
117
+ FINAL_ASSIGNMENT_FLAG_REQUIRED: {
118
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
119
+ message: "An assignment named 'Final' must be marked as final.",
120
+ affectedFields: ['name', 'isFinal'],
121
+ },
112
122
  });
@@ -1742,6 +1742,16 @@ export declare const VALIDATION_MESSAGES: {
1742
1742
  message: string;
1743
1743
  affectedFields: string[];
1744
1744
  };
1745
+ FINAL_ASSIGNMENT_NAME_MISMATCH: {
1746
+ severity: "error";
1747
+ message: string;
1748
+ affectedFields: string[];
1749
+ };
1750
+ FINAL_ASSIGNMENT_FLAG_REQUIRED: {
1751
+ severity: "error";
1752
+ message: string;
1753
+ affectedFields: string[];
1754
+ };
1745
1755
  };
1746
1756
  readonly TEMPLATE_STATES: {
1747
1757
  TEMPLATE_STATE_NOT_FOUND: {
@@ -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.57",
3
+ "version": "1.10.58",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -108,4 +108,14 @@ export const TEMPLATE_ASSIGNMENTS = defineValidationFeatureMessages({
108
108
  message: "The 'Final' assignment's default staff must match the template's default staff.",
109
109
  affectedFields: ['defaultStaffId'],
110
110
  },
111
+ FINAL_ASSIGNMENT_NAME_MISMATCH: {
112
+ severity: VALIDATION_SEVERITY.ERROR,
113
+ message: "An assignment marked as final must be named 'Final'.",
114
+ affectedFields: ['name', 'isFinal'],
115
+ },
116
+ FINAL_ASSIGNMENT_FLAG_REQUIRED: {
117
+ severity: VALIDATION_SEVERITY.ERROR,
118
+ message: "An assignment named 'Final' must be marked as final.",
119
+ affectedFields: ['name', 'isFinal'],
120
+ },
111
121
  });