@forwardslashns/taskit-validation-messages 1.10.99 → 1.10.100

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,67 @@
1
+ export declare const OPEN_ITEMS: {
2
+ PERIOD_REQUIRED: {
3
+ severity: "error";
4
+ message: string;
5
+ affectedFields: string[];
6
+ };
7
+ OPEN_ITEM_NOT_FOUND: {
8
+ severity: "error";
9
+ message: string;
10
+ params: string[];
11
+ };
12
+ OPEN_ITEM_TYPE_NOT_ALLOWED: {
13
+ severity: "error";
14
+ message: string;
15
+ };
16
+ ADD_TASK_CLOSED: {
17
+ severity: "error";
18
+ message: string;
19
+ };
20
+ EDIT_TASK_CLOSED: {
21
+ severity: "error";
22
+ message: string;
23
+ };
24
+ DELETE_TASK_CLOSED: {
25
+ severity: "error";
26
+ message: string;
27
+ };
28
+ DELETE_DONE: {
29
+ severity: "error";
30
+ message: string;
31
+ };
32
+ BLOCKS_ASSIGNMENT_INVALID: {
33
+ severity: "error";
34
+ message: string;
35
+ params: string[];
36
+ affectedFields: string[];
37
+ };
38
+ ASSIGNED_TO_NOT_FOUND: {
39
+ severity: "error";
40
+ message: string;
41
+ params: string[];
42
+ affectedFields: string[];
43
+ };
44
+ DONE_STATE_TASK_CLOSED: {
45
+ severity: "error";
46
+ message: string;
47
+ };
48
+ ASSIGNMENT_BLOCKED_BY_OPEN_ITEMS: {
49
+ severity: "error";
50
+ message: string;
51
+ };
52
+ TASK_CLOSE_BLOCKED_THIS_PERIOD: {
53
+ severity: "error";
54
+ message: string;
55
+ };
56
+ TASK_CLOSE_BLOCKED_PREVIOUS_PERIOD: {
57
+ severity: "error";
58
+ message: string;
59
+ params: string[];
60
+ };
61
+ UNDO_BLOCKED_BY_DONE_ASSIGNMENT: {
62
+ severity: "error";
63
+ message: string;
64
+ params: string[];
65
+ };
66
+ };
67
+ //# sourceMappingURL=open-items.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-items.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/open-items.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoErB,CAAC"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OPEN_ITEMS = void 0;
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.OPEN_ITEMS = (0, validation_message_types_1.defineValidationFeatureMessages)({
6
+ PERIOD_REQUIRED: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
8
+ message: 'Fill in this field to proceed.',
9
+ affectedFields: ['period'],
10
+ },
11
+ OPEN_ITEM_NOT_FOUND: {
12
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
+ message: 'Open item does not exist.',
14
+ params: ['id'],
15
+ },
16
+ OPEN_ITEM_TYPE_NOT_ALLOWED: {
17
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
18
+ message: "Open items can only be added to income tax filings where the Sub/Parent status is 'Files separately'.",
19
+ },
20
+ ADD_TASK_CLOSED: {
21
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
22
+ message: "An open item can't be added because this filing is closed.",
23
+ },
24
+ EDIT_TASK_CLOSED: {
25
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
26
+ message: "This open item can't be changed because the filing it was added on is closed.",
27
+ },
28
+ DELETE_TASK_CLOSED: {
29
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
30
+ message: "This open item can't be deleted because the filing it was added on is closed.",
31
+ },
32
+ DELETE_DONE: {
33
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
34
+ message: "This open item can't be deleted because it is done. Please reopen it before deleting it.",
35
+ },
36
+ BLOCKS_ASSIGNMENT_INVALID: {
37
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
38
+ message: "The selected assignment can't be blocked. Choose a workflow assignment on this task that is not done.",
39
+ params: ['blocksAssignmentId'],
40
+ affectedFields: ['blocksAssignmentId'],
41
+ },
42
+ ASSIGNED_TO_NOT_FOUND: {
43
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
44
+ message: 'The selected user does not exist.',
45
+ params: ['assignedToId'],
46
+ affectedFields: ['assignedToId'],
47
+ },
48
+ DONE_STATE_TASK_CLOSED: {
49
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
50
+ message: "The done state of this open item can't be changed because this task is closed.",
51
+ },
52
+ ASSIGNMENT_BLOCKED_BY_OPEN_ITEMS: {
53
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
54
+ message: "This assignment can't be marked done yet because it has open items that are not done. Please complete the open items linked to this assignment first.",
55
+ },
56
+ TASK_CLOSE_BLOCKED_THIS_PERIOD: {
57
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
58
+ message: "This task can't be closed yet because there is at least one open item for this period that has not been marked done. Please complete all open items before closing this task.",
59
+ },
60
+ TASK_CLOSE_BLOCKED_PREVIOUS_PERIOD: {
61
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
62
+ message: "This task can't be closed yet because the {year} filing has open items for this period that have not been marked done. Please complete those open items before closing this task.",
63
+ params: ['year'],
64
+ },
65
+ UNDO_BLOCKED_BY_DONE_ASSIGNMENT: {
66
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
67
+ message: "This open item can't be reopened because the '{assignment}' assignment it blocks is already done.",
68
+ params: ['assignment'],
69
+ },
70
+ });
@@ -2864,5 +2864,71 @@ export declare const VALIDATION_MESSAGES: {
2864
2864
  message: string;
2865
2865
  };
2866
2866
  };
2867
+ readonly OPEN_ITEMS: {
2868
+ PERIOD_REQUIRED: {
2869
+ severity: "error";
2870
+ message: string;
2871
+ affectedFields: string[];
2872
+ };
2873
+ OPEN_ITEM_NOT_FOUND: {
2874
+ severity: "error";
2875
+ message: string;
2876
+ params: string[];
2877
+ };
2878
+ OPEN_ITEM_TYPE_NOT_ALLOWED: {
2879
+ severity: "error";
2880
+ message: string;
2881
+ };
2882
+ ADD_TASK_CLOSED: {
2883
+ severity: "error";
2884
+ message: string;
2885
+ };
2886
+ EDIT_TASK_CLOSED: {
2887
+ severity: "error";
2888
+ message: string;
2889
+ };
2890
+ DELETE_TASK_CLOSED: {
2891
+ severity: "error";
2892
+ message: string;
2893
+ };
2894
+ DELETE_DONE: {
2895
+ severity: "error";
2896
+ message: string;
2897
+ };
2898
+ BLOCKS_ASSIGNMENT_INVALID: {
2899
+ severity: "error";
2900
+ message: string;
2901
+ params: string[];
2902
+ affectedFields: string[];
2903
+ };
2904
+ ASSIGNED_TO_NOT_FOUND: {
2905
+ severity: "error";
2906
+ message: string;
2907
+ params: string[];
2908
+ affectedFields: string[];
2909
+ };
2910
+ DONE_STATE_TASK_CLOSED: {
2911
+ severity: "error";
2912
+ message: string;
2913
+ };
2914
+ ASSIGNMENT_BLOCKED_BY_OPEN_ITEMS: {
2915
+ severity: "error";
2916
+ message: string;
2917
+ };
2918
+ TASK_CLOSE_BLOCKED_THIS_PERIOD: {
2919
+ severity: "error";
2920
+ message: string;
2921
+ };
2922
+ TASK_CLOSE_BLOCKED_PREVIOUS_PERIOD: {
2923
+ severity: "error";
2924
+ message: string;
2925
+ params: string[];
2926
+ };
2927
+ UNDO_BLOCKED_BY_DONE_ASSIGNMENT: {
2928
+ severity: "error";
2929
+ message: string;
2930
+ params: string[];
2931
+ };
2932
+ };
2867
2933
  };
2868
2934
  //# 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":"AAmCA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC"}
@@ -35,6 +35,7 @@ const client_templates_validation_messages_1 = require("./features/client-templa
35
35
  const client_template_assignments_validation_messages_1 = require("./features/client-template-assignments.validation-messages");
36
36
  const tasks_validation_messages_1 = require("./features/tasks.validation-messages");
37
37
  const notes_validation_messages_1 = require("./features/notes.validation-messages");
38
+ const open_items_validation_messages_1 = require("./features/open-items.validation-messages");
38
39
  exports.VALIDATION_MESSAGES = {
39
40
  ACCOUNT_CATEGORIES: account_categories_validation_messages_1.ACCOUNT_CATEGORIES,
40
41
  ACCOUNT_IDS: account_ids_validation_messages_1.ACCOUNT_IDS,
@@ -70,4 +71,5 @@ exports.VALIDATION_MESSAGES = {
70
71
  CLIENT_TEMPLATE_ASSIGNMENTS: client_template_assignments_validation_messages_1.CLIENT_TEMPLATE_ASSIGNMENTS,
71
72
  TASKS: tasks_validation_messages_1.TASKS,
72
73
  NOTES: notes_validation_messages_1.NOTES,
74
+ OPEN_ITEMS: open_items_validation_messages_1.OPEN_ITEMS,
73
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.99",
3
+ "version": "1.10.100",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -0,0 +1,71 @@
1
+ import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
2
+
3
+ export const OPEN_ITEMS = defineValidationFeatureMessages({
4
+ PERIOD_REQUIRED: {
5
+ severity: VALIDATION_SEVERITY.ERROR,
6
+ message: 'Fill in this field to proceed.',
7
+ affectedFields: ['period'],
8
+ },
9
+ OPEN_ITEM_NOT_FOUND: {
10
+ severity: VALIDATION_SEVERITY.ERROR,
11
+ message: 'Open item does not exist.',
12
+ params: ['id'],
13
+ },
14
+ OPEN_ITEM_TYPE_NOT_ALLOWED: {
15
+ severity: VALIDATION_SEVERITY.ERROR,
16
+ message: "Open items can only be added to income tax filings where the Sub/Parent status is 'Files separately'.",
17
+ },
18
+ ADD_TASK_CLOSED: {
19
+ severity: VALIDATION_SEVERITY.ERROR,
20
+ message: "An open item can't be added because this filing is closed.",
21
+ },
22
+ EDIT_TASK_CLOSED: {
23
+ severity: VALIDATION_SEVERITY.ERROR,
24
+ message: "This open item can't be changed because the filing it was added on is closed.",
25
+ },
26
+ DELETE_TASK_CLOSED: {
27
+ severity: VALIDATION_SEVERITY.ERROR,
28
+ message: "This open item can't be deleted because the filing it was added on is closed.",
29
+ },
30
+ DELETE_DONE: {
31
+ severity: VALIDATION_SEVERITY.ERROR,
32
+ message: "This open item can't be deleted because it is done. Please reopen it before deleting it.",
33
+ },
34
+ BLOCKS_ASSIGNMENT_INVALID: {
35
+ severity: VALIDATION_SEVERITY.ERROR,
36
+ message: "The selected assignment can't be blocked. Choose a workflow assignment on this task that is not done.",
37
+ params: ['blocksAssignmentId'],
38
+ affectedFields: ['blocksAssignmentId'],
39
+ },
40
+ ASSIGNED_TO_NOT_FOUND: {
41
+ severity: VALIDATION_SEVERITY.ERROR,
42
+ message: 'The selected user does not exist.',
43
+ params: ['assignedToId'],
44
+ affectedFields: ['assignedToId'],
45
+ },
46
+ DONE_STATE_TASK_CLOSED: {
47
+ severity: VALIDATION_SEVERITY.ERROR,
48
+ message: "The done state of this open item can't be changed because this task is closed.",
49
+ },
50
+ ASSIGNMENT_BLOCKED_BY_OPEN_ITEMS: {
51
+ severity: VALIDATION_SEVERITY.ERROR,
52
+ message:
53
+ "This assignment can't be marked done yet because it has open items that are not done. Please complete the open items linked to this assignment first.",
54
+ },
55
+ TASK_CLOSE_BLOCKED_THIS_PERIOD: {
56
+ severity: VALIDATION_SEVERITY.ERROR,
57
+ message:
58
+ "This task can't be closed yet because there is at least one open item for this period that has not been marked done. Please complete all open items before closing this task.",
59
+ },
60
+ TASK_CLOSE_BLOCKED_PREVIOUS_PERIOD: {
61
+ severity: VALIDATION_SEVERITY.ERROR,
62
+ message:
63
+ "This task can't be closed yet because the {year} filing has open items for this period that have not been marked done. Please complete those open items before closing this task.",
64
+ params: ['year'],
65
+ },
66
+ UNDO_BLOCKED_BY_DONE_ASSIGNMENT: {
67
+ severity: VALIDATION_SEVERITY.ERROR,
68
+ message: "This open item can't be reopened because the '{assignment}' assignment it blocks is already done.",
69
+ params: ['assignment'],
70
+ },
71
+ });
@@ -32,6 +32,7 @@ import { CLIENT_TEMPLATES } from './features/client-templates.validation-message
32
32
  import { CLIENT_TEMPLATE_ASSIGNMENTS } from './features/client-template-assignments.validation-messages';
33
33
  import { TASKS } from './features/tasks.validation-messages';
34
34
  import { NOTES } from './features/notes.validation-messages';
35
+ import { OPEN_ITEMS } from './features/open-items.validation-messages';
35
36
 
36
37
  export const VALIDATION_MESSAGES = {
37
38
  ACCOUNT_CATEGORIES,
@@ -68,4 +69,5 @@ export const VALIDATION_MESSAGES = {
68
69
  CLIENT_TEMPLATE_ASSIGNMENTS,
69
70
  TASKS,
70
71
  NOTES,
72
+ OPEN_ITEMS,
71
73
  } as const;