@forwardslashns/taskit-validation-messages 1.10.83 → 1.10.85

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.',
@@ -212,5 +212,10 @@ export declare const TASKS: {
212
212
  params: string[];
213
213
  affectedFields: string[];
214
214
  };
215
+ IS_BILLABLE_NOT_ALLOWED_FOR_REMINDER: {
216
+ severity: "error";
217
+ message: string;
218
+ affectedFields: string[];
219
+ };
215
220
  };
216
221
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmOhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwOhB,CAAC"}
@@ -216,4 +216,9 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
216
216
  params: ['templateEntityTypes', 'clientEntityType'],
217
217
  affectedFields: ['templateId'],
218
218
  },
219
+ IS_BILLABLE_NOT_ALLOWED_FOR_REMINDER: {
220
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
221
+ message: 'Reminders cannot be marked billable.',
222
+ affectedFields: ['isBillable'],
223
+ },
219
224
  });
@@ -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;
@@ -2654,6 +2660,11 @@ export declare const VALIDATION_MESSAGES: {
2654
2660
  params: string[];
2655
2661
  affectedFields: string[];
2656
2662
  };
2663
+ IS_BILLABLE_NOT_ALLOWED_FOR_REMINDER: {
2664
+ severity: "error";
2665
+ message: string;
2666
+ affectedFields: string[];
2667
+ };
2657
2668
  };
2658
2669
  };
2659
2670
  //# sourceMappingURL=validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/valid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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.83",
3
+ "version": "1.10.85",
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.',
@@ -227,4 +227,9 @@ export const TASKS = defineValidationFeatureMessages({
227
227
  params: ['templateEntityTypes', 'clientEntityType'],
228
228
  affectedFields: ['templateId'],
229
229
  },
230
+ IS_BILLABLE_NOT_ALLOWED_FOR_REMINDER: {
231
+ severity: VALIDATION_SEVERITY.ERROR,
232
+ message: 'Reminders cannot be marked billable.',
233
+ affectedFields: ['isBillable'],
234
+ },
230
235
  });