@forwardslashns/taskit-validation-messages 1.8.0 → 1.9.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.
@@ -47,9 +47,9 @@ export declare const TEMPLATE_ASSIGNMENTS: {
47
47
  readonly message: "This assignment is already being used by a client, and cannot be deleted";
48
48
  readonly affectedFields: readonly [];
49
49
  };
50
- readonly INVALID_CLIENT_CATEGORY: {
51
- readonly message: "Invalid client category";
52
- readonly affectedFields: readonly ["clientCategoryId"];
50
+ readonly INVALID_FILING_CATEGORY: {
51
+ readonly message: "Invalid filing category";
52
+ readonly affectedFields: readonly ["filingCategoryId"];
53
53
  };
54
54
  readonly ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
55
55
  readonly message: "Assignment orders must be consecutive starting from 1. Expected orders: {expected}";
@@ -50,9 +50,9 @@ exports.TEMPLATE_ASSIGNMENTS = {
50
50
  message: 'This assignment is already being used by a client, and cannot be deleted',
51
51
  affectedFields: [],
52
52
  },
53
- INVALID_CLIENT_CATEGORY: {
54
- message: 'Invalid client category',
55
- affectedFields: ['clientCategoryId'],
53
+ INVALID_FILING_CATEGORY: {
54
+ message: 'Invalid filing category',
55
+ affectedFields: ['filingCategoryId'],
56
56
  },
57
57
  ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
58
58
  message: 'Assignment orders must be consecutive starting from 1. Expected orders: {expected}',
@@ -1129,9 +1129,9 @@ export declare const VALIDATION_MESSAGES: {
1129
1129
  readonly message: "This assignment is already being used by a client, and cannot be deleted";
1130
1130
  readonly affectedFields: readonly [];
1131
1131
  };
1132
- readonly INVALID_CLIENT_CATEGORY: {
1133
- readonly message: "Invalid client category";
1134
- readonly affectedFields: readonly ["clientCategoryId"];
1132
+ readonly INVALID_FILING_CATEGORY: {
1133
+ readonly message: "Invalid filing category";
1134
+ readonly affectedFields: readonly ["filingCategoryId"];
1135
1135
  };
1136
1136
  readonly ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
1137
1137
  readonly message: "Assignment orders must be consecutive starting from 1. Expected orders: {expected}";
@@ -1139,25 +1139,6 @@ export declare const VALIDATION_MESSAGES: {
1139
1139
  readonly affectedFields: readonly ["assignments"];
1140
1140
  };
1141
1141
  };
1142
- readonly CLIENT_CATEGORIES: {
1143
- readonly NAME_REQUIRED: {
1144
- readonly message: "Client category name is required";
1145
- readonly affectedFields: readonly ["name"];
1146
- };
1147
- readonly NAME_ALREADY_EXISTS: {
1148
- readonly message: "Client category with the name '{name}' already exists";
1149
- readonly params: readonly ["name"];
1150
- readonly affectedFields: readonly ["name"];
1151
- };
1152
- readonly OPTION_IN_USE: {
1153
- readonly message: "This option is currently in use and cannot be deleted";
1154
- readonly affectedFields: readonly [];
1155
- };
1156
- readonly CLIENT_CATEGORY_NOT_FOUND: {
1157
- readonly message: "Client category not found";
1158
- readonly affectedFields: readonly [];
1159
- };
1160
- };
1161
1142
  readonly INCOME_ACCOUNTS: {
1162
1143
  readonly NAME_REQUIRED: {
1163
1144
  readonly message: "Income account name is 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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;;;;;;;CAyBtB,CAAC"}
@@ -24,7 +24,6 @@ const user_preferences_validation_messages_1 = require("./features/user-preferen
24
24
  const client_records_outside_providers_validation_messages_1 = require("./features/client-records-outside-providers.validation-messages");
25
25
  const templates_validation_messages_1 = require("./features/templates.validation-messages");
26
26
  const template_assignments_validation_messages_1 = require("./features/template-assignments.validation-messages");
27
- const client_categories_validation_messages_1 = require("./features/client-categories.validation-messages");
28
27
  const income_accounts_validation_messages_1 = require("./features/income-accounts.validation-messages");
29
28
  exports.VALIDATION_MESSAGES = {
30
29
  ACCOUNT_CATEGORIES: account_categories_validation_messages_1.ACCOUNT_CATEGORIES,
@@ -50,6 +49,5 @@ exports.VALIDATION_MESSAGES = {
50
49
  CLIENT_RECORDS_OUTSIDE_PROVIDERS: client_records_outside_providers_validation_messages_1.CLIENT_RECORDS_OUTSIDE_PROVIDERS,
51
50
  TEMPLATES: templates_validation_messages_1.TEMPLATES,
52
51
  TEMPLATE_ASSIGNMENTS: template_assignments_validation_messages_1.TEMPLATE_ASSIGNMENTS,
53
- CLIENT_CATEGORIES: client_categories_validation_messages_1.CLIENT_CATEGORIES,
54
52
  INCOME_ACCOUNTS: income_accounts_validation_messages_1.INCOME_ACCOUNTS,
55
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -48,9 +48,9 @@ export const TEMPLATE_ASSIGNMENTS = {
48
48
  message: 'This assignment is already being used by a client, and cannot be deleted',
49
49
  affectedFields: [],
50
50
  },
51
- INVALID_CLIENT_CATEGORY: {
52
- message: 'Invalid client category',
53
- affectedFields: ['clientCategoryId'],
51
+ INVALID_FILING_CATEGORY: {
52
+ message: 'Invalid filing category',
53
+ affectedFields: ['filingCategoryId'],
54
54
  },
55
55
  ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
56
56
  message: 'Assignment orders must be consecutive starting from 1. Expected orders: {expected}',
@@ -21,7 +21,6 @@ import { USER_PREFERENCES } from './features/user-preferences.validation-message
21
21
  import { CLIENT_RECORDS_OUTSIDE_PROVIDERS } from './features/client-records-outside-providers.validation-messages';
22
22
  import { TEMPLATES } from './features/templates.validation-messages';
23
23
  import { TEMPLATE_ASSIGNMENTS } from './features/template-assignments.validation-messages';
24
- import { CLIENT_CATEGORIES } from './features/client-categories.validation-messages';
25
24
  import { INCOME_ACCOUNTS } from './features/income-accounts.validation-messages';
26
25
 
27
26
  export const VALIDATION_MESSAGES = {
@@ -48,6 +47,5 @@ export const VALIDATION_MESSAGES = {
48
47
  CLIENT_RECORDS_OUTSIDE_PROVIDERS,
49
48
  TEMPLATES,
50
49
  TEMPLATE_ASSIGNMENTS,
51
- CLIENT_CATEGORIES,
52
50
  INCOME_ACCOUNTS,
53
51
  } as const;
@@ -1,20 +0,0 @@
1
- export declare const CLIENT_CATEGORIES: {
2
- readonly NAME_REQUIRED: {
3
- readonly message: "Client category name is required";
4
- readonly affectedFields: readonly ["name"];
5
- };
6
- readonly NAME_ALREADY_EXISTS: {
7
- readonly message: "Client category with the name '{name}' already exists";
8
- readonly params: readonly ["name"];
9
- readonly affectedFields: readonly ["name"];
10
- };
11
- readonly OPTION_IN_USE: {
12
- readonly message: "This option is currently in use and cannot be deleted";
13
- readonly affectedFields: readonly [];
14
- };
15
- readonly CLIENT_CATEGORY_NOT_FOUND: {
16
- readonly message: "Client category not found";
17
- readonly affectedFields: readonly [];
18
- };
19
- };
20
- //# sourceMappingURL=client-categories.validation-messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-categories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-categories.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;CAkBpB,CAAC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CLIENT_CATEGORIES = void 0;
4
- exports.CLIENT_CATEGORIES = {
5
- NAME_REQUIRED: {
6
- message: 'Client category name is required',
7
- affectedFields: ['name'],
8
- },
9
- NAME_ALREADY_EXISTS: {
10
- message: "Client category with the name '{name}' already exists",
11
- params: ['name'],
12
- affectedFields: ['name'],
13
- },
14
- OPTION_IN_USE: {
15
- message: 'This option is currently in use and cannot be deleted',
16
- affectedFields: [],
17
- },
18
- CLIENT_CATEGORY_NOT_FOUND: {
19
- message: 'Client category not found',
20
- affectedFields: [],
21
- },
22
- };
@@ -1,19 +0,0 @@
1
- export const CLIENT_CATEGORIES = {
2
- NAME_REQUIRED: {
3
- message: 'Client category name is required',
4
- affectedFields: ['name'],
5
- },
6
- NAME_ALREADY_EXISTS: {
7
- message: "Client category with the name '{name}' already exists",
8
- params: ['name'],
9
- affectedFields: ['name'],
10
- },
11
- OPTION_IN_USE: {
12
- message: 'This option is currently in use and cannot be deleted',
13
- affectedFields: [],
14
- },
15
- CLIENT_CATEGORY_NOT_FOUND: {
16
- message: 'Client category not found',
17
- affectedFields: [],
18
- },
19
- } as const;