@forwardslashns/taskit-validation-messages 1.7.0 → 1.8.0

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.
@@ -51,5 +51,10 @@ export declare const TEMPLATE_ASSIGNMENTS: {
51
51
  readonly message: "Invalid client category";
52
52
  readonly affectedFields: readonly ["clientCategoryId"];
53
53
  };
54
+ readonly ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
55
+ readonly message: "Assignment orders must be consecutive starting from 1. Expected orders: {expected}";
56
+ readonly params: readonly ["expected"];
57
+ readonly affectedFields: readonly ["assignments"];
58
+ };
54
59
  };
55
60
  //# 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":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDvB,CAAC"}
1
+ {"version":3,"file":"template-assignments.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-assignments.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DvB,CAAC"}
@@ -54,4 +54,9 @@ exports.TEMPLATE_ASSIGNMENTS = {
54
54
  message: 'Invalid client category',
55
55
  affectedFields: ['clientCategoryId'],
56
56
  },
57
+ ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
58
+ message: 'Assignment orders must be consecutive starting from 1. Expected orders: {expected}',
59
+ params: ['expected'],
60
+ affectedFields: ['assignments'],
61
+ },
57
62
  };
@@ -1133,6 +1133,11 @@ export declare const VALIDATION_MESSAGES: {
1133
1133
  readonly message: "Invalid client category";
1134
1134
  readonly affectedFields: readonly ["clientCategoryId"];
1135
1135
  };
1136
+ readonly ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
1137
+ readonly message: "Assignment orders must be consecutive starting from 1. Expected orders: {expected}";
1138
+ readonly params: readonly ["expected"];
1139
+ readonly affectedFields: readonly ["assignments"];
1140
+ };
1136
1141
  };
1137
1142
  readonly CLIENT_CATEGORIES: {
1138
1143
  readonly NAME_REQUIRED: {
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -4,8 +4,7 @@ export const TEMPLATE_ASSIGNMENTS = {
4
4
  affectedFields: ['name'],
5
5
  },
6
6
  NAME_ALREADY_EXISTS: {
7
- message:
8
- 'This name is already in use on this template. Please enter a different name',
7
+ message: 'This name is already in use on this template. Please enter a different name',
9
8
  affectedFields: ['name'],
10
9
  },
11
10
  DEFAULT_STAFF_REQUIRED: {
@@ -42,17 +41,20 @@ export const TEMPLATE_ASSIGNMENTS = {
42
41
  affectedFields: [],
43
42
  },
44
43
  CANNOT_EDIT_IN_USE: {
45
- message:
46
- 'This assignment is already being used by a client, and cannot be edited',
44
+ message: 'This assignment is already being used by a client, and cannot be edited',
47
45
  affectedFields: [],
48
46
  },
49
47
  CANNOT_DELETE_IN_USE: {
50
- message:
51
- 'This assignment is already being used by a client, and cannot be deleted',
48
+ message: 'This assignment is already being used by a client, and cannot be deleted',
52
49
  affectedFields: [],
53
50
  },
54
51
  INVALID_CLIENT_CATEGORY: {
55
52
  message: 'Invalid client category',
56
53
  affectedFields: ['clientCategoryId'],
57
54
  },
55
+ ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
56
+ message: 'Assignment orders must be consecutive starting from 1. Expected orders: {expected}',
57
+ params: ['expected'],
58
+ affectedFields: ['assignments'],
59
+ },
58
60
  } as const;