@forwardslashns/taskit-validation-messages 1.10.62 → 1.10.64

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.
@@ -0,0 +1,25 @@
1
+ export declare const DETAIL_TYPES: {
2
+ INVALID_REQUEST: {
3
+ severity: "error";
4
+ message: string;
5
+ affectedFields: never[];
6
+ };
7
+ ID_DOES_NOT_EXIST: {
8
+ severity: "error";
9
+ message: string;
10
+ params: string[];
11
+ affectedFields: string[];
12
+ };
13
+ NAME_ALREADY_EXISTS: {
14
+ severity: "error";
15
+ message: string;
16
+ params: string[];
17
+ affectedFields: string[];
18
+ };
19
+ OPTION_IN_USE: {
20
+ severity: "error";
21
+ message: string;
22
+ affectedFields: never[];
23
+ };
24
+ };
25
+ //# sourceMappingURL=detail-types.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detail-types.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/detail-types.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;CAuBvB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DETAIL_TYPES = void 0;
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.DETAIL_TYPES = (0, validation_message_types_1.defineValidationFeatureMessages)({
6
+ INVALID_REQUEST: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
8
+ message: 'Missing detail type id in request.',
9
+ affectedFields: [],
10
+ },
11
+ ID_DOES_NOT_EXIST: {
12
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
+ message: `Detail type does not exist.`,
14
+ params: ['id'],
15
+ affectedFields: ['detailType'],
16
+ },
17
+ NAME_ALREADY_EXISTS: {
18
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
19
+ message: `Detail type with the same name {name} already exists.`,
20
+ params: ['name'],
21
+ affectedFields: ['detailType'],
22
+ },
23
+ OPTION_IN_USE: {
24
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
25
+ message: `This option is currently in use and cannot be deleted.`,
26
+ affectedFields: [],
27
+ },
28
+ });
@@ -0,0 +1,25 @@
1
+ export declare const TASK_RELATED: {
2
+ INVALID_REQUEST: {
3
+ severity: "error";
4
+ message: string;
5
+ affectedFields: never[];
6
+ };
7
+ ID_DOES_NOT_EXIST: {
8
+ severity: "error";
9
+ message: string;
10
+ params: string[];
11
+ affectedFields: string[];
12
+ };
13
+ NAME_ALREADY_EXISTS: {
14
+ severity: "error";
15
+ message: string;
16
+ params: string[];
17
+ affectedFields: string[];
18
+ };
19
+ OPTION_IN_USE: {
20
+ severity: "error";
21
+ message: string;
22
+ affectedFields: never[];
23
+ };
24
+ };
25
+ //# sourceMappingURL=task-related.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-related.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/task-related.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;CAuBvB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TASK_RELATED = void 0;
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.TASK_RELATED = (0, validation_message_types_1.defineValidationFeatureMessages)({
6
+ INVALID_REQUEST: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
8
+ message: 'Missing task related id in request.',
9
+ affectedFields: [],
10
+ },
11
+ ID_DOES_NOT_EXIST: {
12
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
+ message: `Task related does not exist.`,
14
+ params: ['id'],
15
+ affectedFields: ['taskRelated'],
16
+ },
17
+ NAME_ALREADY_EXISTS: {
18
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
19
+ message: `Task related with the same name {name} already exists.`,
20
+ params: ['name'],
21
+ affectedFields: ['taskRelated'],
22
+ },
23
+ OPTION_IN_USE: {
24
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
25
+ message: `This option is currently in use and cannot be deleted.`,
26
+ affectedFields: [],
27
+ },
28
+ });
@@ -123,5 +123,31 @@ export declare const TASKS: {
123
123
  message: string;
124
124
  affectedFields: string[];
125
125
  };
126
+ CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_TASK: {
127
+ severity: "error";
128
+ message: string;
129
+ affectedFields: string[];
130
+ };
131
+ CANNOT_MARK_FINAL_HAS_LATER_STATE_SUB_FILING: {
132
+ severity: "error";
133
+ message: string;
134
+ affectedFields: string[];
135
+ };
136
+ CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_CT: {
137
+ severity: "error";
138
+ message: string;
139
+ affectedFields: string[];
140
+ };
141
+ CANNOT_MARK_FINAL_HAS_LATER_SUB_ENTITY_CT: {
142
+ severity: "error";
143
+ message: string;
144
+ affectedFields: string[];
145
+ };
146
+ TASK_FILING_NOT_FOUND: {
147
+ severity: "error";
148
+ message: string;
149
+ params: string[];
150
+ affectedFields: string[];
151
+ };
126
152
  };
127
153
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkKhB,CAAC"}
@@ -5,13 +5,13 @@ const validation_message_types_1 = require("../validation-message.types");
5
5
  exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)({
6
6
  NOT_FOUND: {
7
7
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
8
- message: 'Task <b>{taskId}</b> does not exist or does not belong to this client.',
8
+ message: 'Task {taskId} does not exist or does not belong to this client.',
9
9
  params: ['taskId'],
10
10
  affectedFields: ['taskId'],
11
11
  },
12
12
  NOT_FILING_TYPE: {
13
13
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
14
- message: 'Task <b>{taskId}</b> is not a Filing type task. Only Filing tasks support this operation.',
14
+ message: 'Task {taskId} is not a Filing type task. Only Filing tasks support this operation.',
15
15
  params: ['taskId'],
16
16
  affectedFields: ['taskId'],
17
17
  },
@@ -22,7 +22,7 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
22
22
  },
23
23
  GENERATION_LOG_NOT_FOUND: {
24
24
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
25
- message: 'Task generation log <b>{logId}</b> does not exist.',
25
+ message: 'Task generation log {logId} does not exist.',
26
26
  params: ['logId'],
27
27
  affectedFields: ['logId'],
28
28
  },
@@ -63,7 +63,7 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
63
63
  },
64
64
  ASSIGNMENT_NOT_FOUND: {
65
65
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
66
- message: 'Assignment <b>{assignmentId}</b> does not exist or does not belong to this task.',
66
+ message: 'Assignment {assignmentId} does not exist or does not belong to this task.',
67
67
  params: ['assignmentId'],
68
68
  affectedFields: ['assignmentId'],
69
69
  },
@@ -127,4 +127,30 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
127
127
  message: 'The selected assignment status is not valid.',
128
128
  affectedFields: ['statusId'],
129
129
  },
130
+ CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_TASK: {
131
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
132
+ message: "This filing cannot be marked final since there is a tax payment associated with this filing, whose year is later than this filing period's ending year. Please resolve the later tax payment before marking this filing final.",
133
+ affectedFields: ['isFinalFiling'],
134
+ },
135
+ CANNOT_MARK_FINAL_HAS_LATER_STATE_SUB_FILING: {
136
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
137
+ message: "This filing cannot be marked final since a state sub-filing, or a tax payment associated with a state sub-filing, has a starting date or ending date later than this filing's period ending date. Please adjust the state sub-filing or tax payment dates before marking this filing final.",
138
+ affectedFields: ['isFinalFiling'],
139
+ },
140
+ CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_CT: {
141
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
142
+ message: "This filing cannot be marked final since a tax payment client template associated with this filing has a starting date or ending date later than this filing's period ending date. Please adjust the tax payment client template dates before marking this final.",
143
+ affectedFields: ['isFinalFiling'],
144
+ },
145
+ CANNOT_MARK_FINAL_HAS_LATER_SUB_ENTITY_CT: {
146
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
147
+ message: "This filing cannot be marked final since a sub-entity client template associated with this filing has a starting date or ending date later than this filing's period ending date. Please adjust the sub-entity filing client template dates before marking this filing final.",
148
+ affectedFields: ['isFinalFiling'],
149
+ },
150
+ TASK_FILING_NOT_FOUND: {
151
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
152
+ message: 'Task filing {filingId} does not exist or does not belong to this task.',
153
+ params: ['filingId'],
154
+ affectedFields: ['filingId'],
155
+ },
130
156
  });
@@ -53,6 +53,54 @@ export declare const VALIDATION_MESSAGES: {
53
53
  affectedFields: never[];
54
54
  };
55
55
  };
56
+ readonly TASK_RELATED: {
57
+ INVALID_REQUEST: {
58
+ severity: "error";
59
+ message: string;
60
+ affectedFields: never[];
61
+ };
62
+ ID_DOES_NOT_EXIST: {
63
+ severity: "error";
64
+ message: string;
65
+ params: string[];
66
+ affectedFields: string[];
67
+ };
68
+ NAME_ALREADY_EXISTS: {
69
+ severity: "error";
70
+ message: string;
71
+ params: string[];
72
+ affectedFields: string[];
73
+ };
74
+ OPTION_IN_USE: {
75
+ severity: "error";
76
+ message: string;
77
+ affectedFields: never[];
78
+ };
79
+ };
80
+ readonly DETAIL_TYPES: {
81
+ INVALID_REQUEST: {
82
+ severity: "error";
83
+ message: string;
84
+ affectedFields: never[];
85
+ };
86
+ ID_DOES_NOT_EXIST: {
87
+ severity: "error";
88
+ message: string;
89
+ params: string[];
90
+ affectedFields: string[];
91
+ };
92
+ NAME_ALREADY_EXISTS: {
93
+ severity: "error";
94
+ message: string;
95
+ params: string[];
96
+ affectedFields: string[];
97
+ };
98
+ OPTION_IN_USE: {
99
+ severity: "error";
100
+ message: string;
101
+ affectedFields: never[];
102
+ };
103
+ };
56
104
  readonly CLIENT_RECORDS_ADDRESSES: {
57
105
  STATES_NOT_FOUND: {
58
106
  severity: "error";
@@ -2493,6 +2541,32 @@ export declare const VALIDATION_MESSAGES: {
2493
2541
  message: string;
2494
2542
  affectedFields: string[];
2495
2543
  };
2544
+ CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_TASK: {
2545
+ severity: "error";
2546
+ message: string;
2547
+ affectedFields: string[];
2548
+ };
2549
+ CANNOT_MARK_FINAL_HAS_LATER_STATE_SUB_FILING: {
2550
+ severity: "error";
2551
+ message: string;
2552
+ affectedFields: string[];
2553
+ };
2554
+ CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_CT: {
2555
+ severity: "error";
2556
+ message: string;
2557
+ affectedFields: string[];
2558
+ };
2559
+ CANNOT_MARK_FINAL_HAS_LATER_SUB_ENTITY_CT: {
2560
+ severity: "error";
2561
+ message: string;
2562
+ affectedFields: string[];
2563
+ };
2564
+ TASK_FILING_NOT_FOUND: {
2565
+ severity: "error";
2566
+ message: string;
2567
+ params: string[];
2568
+ affectedFields: string[];
2569
+ };
2496
2570
  };
2497
2571
  };
2498
2572
  //# 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":"AA+BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC"}
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VALIDATION_MESSAGES = void 0;
4
4
  const account_categories_validation_messages_1 = require("./features/account-categories.validation-messages");
5
5
  const account_ids_validation_messages_1 = require("./features/account-ids.validation-messages");
6
+ const task_related_validation_messages_1 = require("./features/task-related.validation-messages");
7
+ const detail_types_validation_messages_1 = require("./features/detail-types.validation-messages");
6
8
  const client_records_addresses_validation_messages_1 = require("./features/client-records-addresses.validation-messages");
7
9
  const business_activities_validation_messages_1 = require("./features/business-activities.validation-messages");
8
10
  const client_records_banks_validation_messages_1 = require("./features/client-records-banks.validation-messages");
@@ -34,6 +36,8 @@ const tasks_validation_messages_1 = require("./features/tasks.validation-message
34
36
  exports.VALIDATION_MESSAGES = {
35
37
  ACCOUNT_CATEGORIES: account_categories_validation_messages_1.ACCOUNT_CATEGORIES,
36
38
  ACCOUNT_IDS: account_ids_validation_messages_1.ACCOUNT_IDS,
39
+ TASK_RELATED: task_related_validation_messages_1.TASK_RELATED,
40
+ DETAIL_TYPES: detail_types_validation_messages_1.DETAIL_TYPES,
37
41
  CLIENT_RECORDS_ADDRESSES: client_records_addresses_validation_messages_1.CLIENT_RECORDS_ADDRESSES,
38
42
  BUSINESS_ACTIVITIES: business_activities_validation_messages_1.BUSINESS_ACTIVITIES,
39
43
  CLIENT_RECORDS_BANKS: client_records_banks_validation_messages_1.CLIENT_RECORDS_BANKS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.62",
3
+ "version": "1.10.64",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -0,0 +1,26 @@
1
+ import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
2
+
3
+ export const DETAIL_TYPES = defineValidationFeatureMessages({
4
+ INVALID_REQUEST: {
5
+ severity: VALIDATION_SEVERITY.ERROR,
6
+ message: 'Missing detail type id in request.',
7
+ affectedFields: [],
8
+ },
9
+ ID_DOES_NOT_EXIST: {
10
+ severity: VALIDATION_SEVERITY.ERROR,
11
+ message: `Detail type does not exist.`,
12
+ params: ['id'],
13
+ affectedFields: ['detailType'],
14
+ },
15
+ NAME_ALREADY_EXISTS: {
16
+ severity: VALIDATION_SEVERITY.ERROR,
17
+ message: `Detail type with the same name {name} already exists.`,
18
+ params: ['name'],
19
+ affectedFields: ['detailType'],
20
+ },
21
+ OPTION_IN_USE: {
22
+ severity: VALIDATION_SEVERITY.ERROR,
23
+ message: `This option is currently in use and cannot be deleted.`,
24
+ affectedFields: [],
25
+ },
26
+ });
@@ -0,0 +1,26 @@
1
+ import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
2
+
3
+ export const TASK_RELATED = defineValidationFeatureMessages({
4
+ INVALID_REQUEST: {
5
+ severity: VALIDATION_SEVERITY.ERROR,
6
+ message: 'Missing task related id in request.',
7
+ affectedFields: [],
8
+ },
9
+ ID_DOES_NOT_EXIST: {
10
+ severity: VALIDATION_SEVERITY.ERROR,
11
+ message: `Task related does not exist.`,
12
+ params: ['id'],
13
+ affectedFields: ['taskRelated'],
14
+ },
15
+ NAME_ALREADY_EXISTS: {
16
+ severity: VALIDATION_SEVERITY.ERROR,
17
+ message: `Task related with the same name {name} already exists.`,
18
+ params: ['name'],
19
+ affectedFields: ['taskRelated'],
20
+ },
21
+ OPTION_IN_USE: {
22
+ severity: VALIDATION_SEVERITY.ERROR,
23
+ message: `This option is currently in use and cannot be deleted.`,
24
+ affectedFields: [],
25
+ },
26
+ });
@@ -3,13 +3,13 @@ import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validat
3
3
  export const TASKS = defineValidationFeatureMessages({
4
4
  NOT_FOUND: {
5
5
  severity: VALIDATION_SEVERITY.ERROR,
6
- message: 'Task <b>{taskId}</b> does not exist or does not belong to this client.',
6
+ message: 'Task {taskId} does not exist or does not belong to this client.',
7
7
  params: ['taskId'],
8
8
  affectedFields: ['taskId'],
9
9
  },
10
10
  NOT_FILING_TYPE: {
11
11
  severity: VALIDATION_SEVERITY.ERROR,
12
- message: 'Task <b>{taskId}</b> is not a Filing type task. Only Filing tasks support this operation.',
12
+ message: 'Task {taskId} is not a Filing type task. Only Filing tasks support this operation.',
13
13
  params: ['taskId'],
14
14
  affectedFields: ['taskId'],
15
15
  },
@@ -21,7 +21,7 @@ export const TASKS = defineValidationFeatureMessages({
21
21
  },
22
22
  GENERATION_LOG_NOT_FOUND: {
23
23
  severity: VALIDATION_SEVERITY.ERROR,
24
- message: 'Task generation log <b>{logId}</b> does not exist.',
24
+ message: 'Task generation log {logId} does not exist.',
25
25
  params: ['logId'],
26
26
  affectedFields: ['logId'],
27
27
  },
@@ -64,7 +64,7 @@ export const TASKS = defineValidationFeatureMessages({
64
64
  },
65
65
  ASSIGNMENT_NOT_FOUND: {
66
66
  severity: VALIDATION_SEVERITY.ERROR,
67
- message: 'Assignment <b>{assignmentId}</b> does not exist or does not belong to this task.',
67
+ message: 'Assignment {assignmentId} does not exist or does not belong to this task.',
68
68
  params: ['assignmentId'],
69
69
  affectedFields: ['assignmentId'],
70
70
  },
@@ -132,4 +132,34 @@ export const TASKS = defineValidationFeatureMessages({
132
132
  message: 'The selected assignment status is not valid.',
133
133
  affectedFields: ['statusId'],
134
134
  },
135
+ CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_TASK: {
136
+ severity: VALIDATION_SEVERITY.ERROR,
137
+ message:
138
+ "This filing cannot be marked final since there is a tax payment associated with this filing, whose year is later than this filing period's ending year. Please resolve the later tax payment before marking this filing final.",
139
+ affectedFields: ['isFinalFiling'],
140
+ },
141
+ CANNOT_MARK_FINAL_HAS_LATER_STATE_SUB_FILING: {
142
+ severity: VALIDATION_SEVERITY.ERROR,
143
+ message:
144
+ "This filing cannot be marked final since a state sub-filing, or a tax payment associated with a state sub-filing, has a starting date or ending date later than this filing's period ending date. Please adjust the state sub-filing or tax payment dates before marking this filing final.",
145
+ affectedFields: ['isFinalFiling'],
146
+ },
147
+ CANNOT_MARK_FINAL_HAS_LATER_TAX_PAYMENT_CT: {
148
+ severity: VALIDATION_SEVERITY.ERROR,
149
+ message:
150
+ "This filing cannot be marked final since a tax payment client template associated with this filing has a starting date or ending date later than this filing's period ending date. Please adjust the tax payment client template dates before marking this final.",
151
+ affectedFields: ['isFinalFiling'],
152
+ },
153
+ CANNOT_MARK_FINAL_HAS_LATER_SUB_ENTITY_CT: {
154
+ severity: VALIDATION_SEVERITY.ERROR,
155
+ message:
156
+ "This filing cannot be marked final since a sub-entity client template associated with this filing has a starting date or ending date later than this filing's period ending date. Please adjust the sub-entity filing client template dates before marking this filing final.",
157
+ affectedFields: ['isFinalFiling'],
158
+ },
159
+ TASK_FILING_NOT_FOUND: {
160
+ severity: VALIDATION_SEVERITY.ERROR,
161
+ message: 'Task filing {filingId} does not exist or does not belong to this task.',
162
+ params: ['filingId'],
163
+ affectedFields: ['filingId'],
164
+ },
135
165
  });
@@ -1,5 +1,7 @@
1
1
  import { ACCOUNT_CATEGORIES } from './features/account-categories.validation-messages';
2
2
  import { ACCOUNT_IDS } from './features/account-ids.validation-messages';
3
+ import { TASK_RELATED } from './features/task-related.validation-messages';
4
+ import { DETAIL_TYPES } from './features/detail-types.validation-messages';
3
5
  import { CLIENT_RECORDS_ADDRESSES } from './features/client-records-addresses.validation-messages';
4
6
  import { BUSINESS_ACTIVITIES } from './features/business-activities.validation-messages';
5
7
  import { CLIENT_RECORDS_BANKS } from './features/client-records-banks.validation-messages';
@@ -32,6 +34,8 @@ import { TASKS } from './features/tasks.validation-messages';
32
34
  export const VALIDATION_MESSAGES = {
33
35
  ACCOUNT_CATEGORIES,
34
36
  ACCOUNT_IDS,
37
+ TASK_RELATED,
38
+ DETAIL_TYPES,
35
39
  CLIENT_RECORDS_ADDRESSES,
36
40
  BUSINESS_ACTIVITIES,
37
41
  CLIENT_RECORDS_BANKS,