@forwardslashns/taskit-validation-messages 1.10.79 → 1.10.81

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.
@@ -65,5 +65,10 @@ export declare const CLIENT_TEMPLATE_ASSIGNMENTS: {
65
65
  message: string;
66
66
  affectedFields: string[];
67
67
  };
68
+ FINAL_ASSIGNMENT_CANNOT_BE_MODIFIED: {
69
+ severity: "error";
70
+ message: string;
71
+ affectedFields: string[];
72
+ };
68
73
  };
69
74
  //# sourceMappingURL=client-template-assignments.validation-messages.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEtC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEtC,CAAC"}
@@ -69,4 +69,9 @@ exports.CLIENT_TEMPLATE_ASSIGNMENTS = (0, validation_message_types_1.defineValid
69
69
  message: "Default staff cannot be set when the assignment type is 'To do'",
70
70
  affectedFields: ['assignments.defaultStaffId'],
71
71
  },
72
+ FINAL_ASSIGNMENT_CANNOT_BE_MODIFIED: {
73
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
74
+ message: "The 'Final' assignment cannot be modified.",
75
+ affectedFields: ['assignments'],
76
+ },
72
77
  });
@@ -190,5 +190,11 @@ export declare const TASKS: {
190
190
  message: string;
191
191
  affectedFields: never[];
192
192
  };
193
+ CANNOT_MODIFY_FINAL_ASSIGNMENT: {
194
+ severity: "error";
195
+ message: string;
196
+ params: string[];
197
+ affectedFields: string[];
198
+ };
193
199
  };
194
200
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2MhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiNhB,CAAC"}
@@ -194,4 +194,10 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
194
194
  message: 'Assignments cannot be re-imported once this task has been closed.',
195
195
  affectedFields: [],
196
196
  },
197
+ CANNOT_MODIFY_FINAL_ASSIGNMENT: {
198
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
199
+ message: 'Assignment "{assignmentName}" is final and cannot be modified.',
200
+ params: ['assignmentName'],
201
+ affectedFields: ['assignments'],
202
+ },
197
203
  });
@@ -115,5 +115,10 @@ export declare const TEMPLATE_ASSIGNMENTS: {
115
115
  message: string;
116
116
  affectedFields: string[];
117
117
  };
118
+ FINAL_ASSIGNMENT_CANNOT_BE_MODIFIED: {
119
+ severity: "error";
120
+ message: string;
121
+ affectedFields: string[];
122
+ };
118
123
  };
119
124
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsH/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2H/B,CAAC"}
@@ -119,4 +119,9 @@ exports.TEMPLATE_ASSIGNMENTS = (0, validation_message_types_1.defineValidationFe
119
119
  message: "An assignment named 'Final' must be marked as final.",
120
120
  affectedFields: ['name', 'isFinal'],
121
121
  },
122
+ FINAL_ASSIGNMENT_CANNOT_BE_MODIFIED: {
123
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
124
+ message: "The 'Final' assignment cannot be modified.",
125
+ affectedFields: ['assignments'],
126
+ },
122
127
  });
@@ -1808,6 +1808,11 @@ export declare const VALIDATION_MESSAGES: {
1808
1808
  message: string;
1809
1809
  affectedFields: string[];
1810
1810
  };
1811
+ FINAL_ASSIGNMENT_CANNOT_BE_MODIFIED: {
1812
+ severity: "error";
1813
+ message: string;
1814
+ affectedFields: string[];
1815
+ };
1811
1816
  };
1812
1817
  readonly TEMPLATE_STATES: {
1813
1818
  TEMPLATE_STATE_NOT_FOUND: {
@@ -2429,6 +2434,11 @@ export declare const VALIDATION_MESSAGES: {
2429
2434
  message: string;
2430
2435
  affectedFields: string[];
2431
2436
  };
2437
+ FINAL_ASSIGNMENT_CANNOT_BE_MODIFIED: {
2438
+ severity: "error";
2439
+ message: string;
2440
+ affectedFields: string[];
2441
+ };
2432
2442
  };
2433
2443
  readonly TASKS: {
2434
2444
  NOT_FOUND: {
@@ -2622,6 +2632,12 @@ export declare const VALIDATION_MESSAGES: {
2622
2632
  message: string;
2623
2633
  affectedFields: never[];
2624
2634
  };
2635
+ CANNOT_MODIFY_FINAL_ASSIGNMENT: {
2636
+ severity: "error";
2637
+ message: string;
2638
+ params: string[];
2639
+ affectedFields: string[];
2640
+ };
2625
2641
  };
2626
2642
  };
2627
2643
  //# 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.79",
3
+ "version": "1.10.81",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -67,4 +67,9 @@ export const CLIENT_TEMPLATE_ASSIGNMENTS = defineValidationFeatureMessages({
67
67
  message: "Default staff cannot be set when the assignment type is 'To do'",
68
68
  affectedFields: ['assignments.defaultStaffId'],
69
69
  },
70
+ FINAL_ASSIGNMENT_CANNOT_BE_MODIFIED: {
71
+ severity: VALIDATION_SEVERITY.ERROR,
72
+ message: "The 'Final' assignment cannot be modified.",
73
+ affectedFields: ['assignments'],
74
+ },
70
75
  });
@@ -203,4 +203,10 @@ export const TASKS = defineValidationFeatureMessages({
203
203
  message: 'Assignments cannot be re-imported once this task has been closed.',
204
204
  affectedFields: [],
205
205
  },
206
+ CANNOT_MODIFY_FINAL_ASSIGNMENT: {
207
+ severity: VALIDATION_SEVERITY.ERROR,
208
+ message: 'Assignment "{assignmentName}" is final and cannot be modified.',
209
+ params: ['assignmentName'],
210
+ affectedFields: ['assignments'],
211
+ },
206
212
  });
@@ -118,4 +118,9 @@ export const TEMPLATE_ASSIGNMENTS = defineValidationFeatureMessages({
118
118
  message: "An assignment named 'Final' must be marked as final.",
119
119
  affectedFields: ['name', 'isFinal'],
120
120
  },
121
+ FINAL_ASSIGNMENT_CANNOT_BE_MODIFIED: {
122
+ severity: VALIDATION_SEVERITY.ERROR,
123
+ message: "The 'Final' assignment cannot be modified.",
124
+ affectedFields: ['assignments'],
125
+ },
121
126
  });