@forwardslashns/taskit-validation-messages 1.10.84 → 1.10.86

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.
@@ -44,6 +44,12 @@ export declare const CLIENT_TEMPLATES: {
44
44
  message: string;
45
45
  affectedFields: string[];
46
46
  };
47
+ STARTING_DATE_BEFORE_CLIENT_ESTABLISHED: {
48
+ severity: "error";
49
+ message: string;
50
+ params: string[];
51
+ affectedFields: string[];
52
+ };
47
53
  COMMISSION_RATE_OUT_OF_RANGE: {
48
54
  severity: "error";
49
55
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"client-templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-templates.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqS3B,CAAC"}
1
+ {"version":3,"file":"client-templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-templates.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2S3B,CAAC"}
@@ -48,6 +48,12 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
48
48
  message: 'Ending date cannot be earlier than starting date',
49
49
  affectedFields: ['templateInfo.endingDate'],
50
50
  },
51
+ STARTING_DATE_BEFORE_CLIENT_ESTABLISHED: {
52
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
53
+ message: "The starting date cannot be earlier than the client's date established ({dateEstablished}).",
54
+ params: ['dateEstablished'],
55
+ affectedFields: ['templateInfo.startingDate'],
56
+ },
51
57
  COMMISSION_RATE_OUT_OF_RANGE: {
52
58
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
53
59
  message: 'Commission rate must be a percentage between 0 and 100. Please adjust the percent before saving.',
@@ -217,5 +217,11 @@ export declare const TASKS: {
217
217
  message: string;
218
218
  affectedFields: string[];
219
219
  };
220
+ LINKED_ASSIGNMENT_NOT_FOUND: {
221
+ severity: "error";
222
+ message: string;
223
+ params: string[];
224
+ affectedFields: string[];
225
+ };
220
226
  };
221
227
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwOhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+OhB,CAAC"}
@@ -221,4 +221,10 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
221
221
  message: 'Reminders cannot be marked billable.',
222
222
  affectedFields: ['isBillable'],
223
223
  },
224
+ LINKED_ASSIGNMENT_NOT_FOUND: {
225
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
226
+ message: 'Linked assignment {assignmentId} does not exist, is not a workflow assignment, or does not belong to this task.',
227
+ params: ['assignmentId'],
228
+ affectedFields: ['linkedAssignmentId'],
229
+ },
224
230
  });
@@ -2123,6 +2123,12 @@ export declare const VALIDATION_MESSAGES: {
2123
2123
  message: string;
2124
2124
  affectedFields: string[];
2125
2125
  };
2126
+ STARTING_DATE_BEFORE_CLIENT_ESTABLISHED: {
2127
+ severity: "error";
2128
+ message: string;
2129
+ params: string[];
2130
+ affectedFields: string[];
2131
+ };
2126
2132
  COMMISSION_RATE_OUT_OF_RANGE: {
2127
2133
  severity: "error";
2128
2134
  message: string;
@@ -2659,6 +2665,12 @@ export declare const VALIDATION_MESSAGES: {
2659
2665
  message: string;
2660
2666
  affectedFields: string[];
2661
2667
  };
2668
+ LINKED_ASSIGNMENT_NOT_FOUND: {
2669
+ severity: "error";
2670
+ message: string;
2671
+ params: string[];
2672
+ affectedFields: string[];
2673
+ };
2662
2674
  };
2663
2675
  };
2664
2676
  //# sourceMappingURL=validation-messages.d.ts.map
@@ -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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.84",
3
+ "version": "1.10.86",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -47,6 +47,12 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
47
47
  message: 'Ending date cannot be earlier than starting date',
48
48
  affectedFields: ['templateInfo.endingDate'],
49
49
  },
50
+ STARTING_DATE_BEFORE_CLIENT_ESTABLISHED: {
51
+ severity: VALIDATION_SEVERITY.ERROR,
52
+ message: "The starting date cannot be earlier than the client's date established ({dateEstablished}).",
53
+ params: ['dateEstablished'],
54
+ affectedFields: ['templateInfo.startingDate'],
55
+ },
50
56
  COMMISSION_RATE_OUT_OF_RANGE: {
51
57
  severity: VALIDATION_SEVERITY.ERROR,
52
58
  message: 'Commission rate must be a percentage between 0 and 100. Please adjust the percent before saving.',
@@ -232,4 +232,11 @@ export const TASKS = defineValidationFeatureMessages({
232
232
  message: 'Reminders cannot be marked billable.',
233
233
  affectedFields: ['isBillable'],
234
234
  },
235
+ LINKED_ASSIGNMENT_NOT_FOUND: {
236
+ severity: VALIDATION_SEVERITY.ERROR,
237
+ message:
238
+ 'Linked assignment {assignmentId} does not exist, is not a workflow assignment, or does not belong to this task.',
239
+ params: ['assignmentId'],
240
+ affectedFields: ['linkedAssignmentId'],
241
+ },
235
242
  });