@forwardslashns/taskit-validation-messages 1.10.96 → 1.10.99

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,50 @@
1
+ export declare const NOTES: {
2
+ NOTE_REQUIRED: {
3
+ severity: "error";
4
+ message: string;
5
+ affectedFields: string[];
6
+ };
7
+ NOTE_NOT_FOUND: {
8
+ severity: "error";
9
+ message: string;
10
+ params: string[];
11
+ };
12
+ ADD_TASK_CLOSED: {
13
+ severity: "error";
14
+ message: string;
15
+ };
16
+ ADD_TASK_TYPE_NOT_SUPPORTED: {
17
+ severity: "error";
18
+ message: string;
19
+ };
20
+ SPECIFIC_TEMPLATE_NOT_ON_CLIENT: {
21
+ severity: "error";
22
+ message: string;
23
+ params: string[];
24
+ affectedFields: string[];
25
+ };
26
+ RELATED_TO_INVALID: {
27
+ severity: "error";
28
+ message: string;
29
+ params: string[];
30
+ affectedFields: string[];
31
+ };
32
+ NOTE_TEXT_LOCKED_ON_CLOSED_TASK: {
33
+ severity: "error";
34
+ message: string;
35
+ affectedFields: string[];
36
+ };
37
+ DELETE_TASK_CLOSED: {
38
+ severity: "error";
39
+ message: string;
40
+ };
41
+ DELETE_IMPORTANT: {
42
+ severity: "error";
43
+ message: string;
44
+ };
45
+ TASK_DELETE_BLOCKED_BY_IMPORTANT_NOTE: {
46
+ severity: "error";
47
+ message: string;
48
+ };
49
+ };
50
+ //# sourceMappingURL=notes.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notes.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/notes.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDhB,CAAC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NOTES = void 0;
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.NOTES = (0, validation_message_types_1.defineValidationFeatureMessages)({
6
+ NOTE_REQUIRED: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
8
+ message: 'Fill in this field to proceed.',
9
+ affectedFields: ['note'],
10
+ },
11
+ NOTE_NOT_FOUND: {
12
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
13
+ message: 'Note does not exist.',
14
+ params: ['id'],
15
+ },
16
+ ADD_TASK_CLOSED: {
17
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
18
+ message: "A note can't be added because this task is closed.",
19
+ },
20
+ ADD_TASK_TYPE_NOT_SUPPORTED: {
21
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
22
+ message: 'Notes can only be added to Filing, Task, Tax payment and Setup tasks.',
23
+ },
24
+ SPECIFIC_TEMPLATE_NOT_ON_CLIENT: {
25
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
26
+ message: 'The selected template is not set up for this client.',
27
+ params: ['specificTemplateId'],
28
+ affectedFields: ['specificTemplateId'],
29
+ },
30
+ RELATED_TO_INVALID: {
31
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
32
+ message: "The selected 'Related to' filing type does not exist.",
33
+ params: ['relatedToFilingTypeId'],
34
+ affectedFields: ['relatedToFilingTypeId'],
35
+ },
36
+ NOTE_TEXT_LOCKED_ON_CLOSED_TASK: {
37
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
38
+ message: "The text of this note can't be changed because the task it was added on is closed.",
39
+ affectedFields: ['note'],
40
+ },
41
+ DELETE_TASK_CLOSED: {
42
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
43
+ message: "This note can't be deleted because the task it was added on is closed.",
44
+ },
45
+ DELETE_IMPORTANT: {
46
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
47
+ message: "This note is marked as important and can't be deleted. Please turn off 'Important' before deleting this note.",
48
+ },
49
+ TASK_DELETE_BLOCKED_BY_IMPORTANT_NOTE: {
50
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
51
+ message: "This task can't be deleted because it has an important note. Please turn off 'Important' on the note before deleting this task.",
52
+ },
53
+ });
@@ -300,6 +300,11 @@ export declare const TASKS: {
300
300
  params: string[];
301
301
  affectedFields: string[];
302
302
  };
303
+ TAX_PAYMENT_FILING_REQUIRED: {
304
+ severity: "error";
305
+ message: string;
306
+ affectedFields: string[];
307
+ };
303
308
  TAX_PAYMENT_FILING_NOT_VALID: {
304
309
  severity: "error";
305
310
  message: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqXhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0XhB,CAAC"}
@@ -304,6 +304,11 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
304
304
  params: ['templateId'],
305
305
  affectedFields: ['templateId'],
306
306
  },
307
+ TAX_PAYMENT_FILING_REQUIRED: {
308
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
309
+ message: 'Tax payment filing is required.',
310
+ affectedFields: ['clientFilingTemplateId'],
311
+ },
307
312
  TAX_PAYMENT_FILING_NOT_VALID: {
308
313
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
309
314
  message: 'The selected tax payment filing is not available for this client.',
@@ -2753,6 +2753,11 @@ export declare const VALIDATION_MESSAGES: {
2753
2753
  params: string[];
2754
2754
  affectedFields: string[];
2755
2755
  };
2756
+ TAX_PAYMENT_FILING_REQUIRED: {
2757
+ severity: "error";
2758
+ message: string;
2759
+ affectedFields: string[];
2760
+ };
2756
2761
  TAX_PAYMENT_FILING_NOT_VALID: {
2757
2762
  severity: "error";
2758
2763
  message: string;
@@ -2810,5 +2815,54 @@ export declare const VALIDATION_MESSAGES: {
2810
2815
  affectedFields: string[];
2811
2816
  };
2812
2817
  };
2818
+ readonly NOTES: {
2819
+ NOTE_REQUIRED: {
2820
+ severity: "error";
2821
+ message: string;
2822
+ affectedFields: string[];
2823
+ };
2824
+ NOTE_NOT_FOUND: {
2825
+ severity: "error";
2826
+ message: string;
2827
+ params: string[];
2828
+ };
2829
+ ADD_TASK_CLOSED: {
2830
+ severity: "error";
2831
+ message: string;
2832
+ };
2833
+ ADD_TASK_TYPE_NOT_SUPPORTED: {
2834
+ severity: "error";
2835
+ message: string;
2836
+ };
2837
+ SPECIFIC_TEMPLATE_NOT_ON_CLIENT: {
2838
+ severity: "error";
2839
+ message: string;
2840
+ params: string[];
2841
+ affectedFields: string[];
2842
+ };
2843
+ RELATED_TO_INVALID: {
2844
+ severity: "error";
2845
+ message: string;
2846
+ params: string[];
2847
+ affectedFields: string[];
2848
+ };
2849
+ NOTE_TEXT_LOCKED_ON_CLOSED_TASK: {
2850
+ severity: "error";
2851
+ message: string;
2852
+ affectedFields: string[];
2853
+ };
2854
+ DELETE_TASK_CLOSED: {
2855
+ severity: "error";
2856
+ message: string;
2857
+ };
2858
+ DELETE_IMPORTANT: {
2859
+ severity: "error";
2860
+ message: string;
2861
+ };
2862
+ TASK_DELETE_BLOCKED_BY_IMPORTANT_NOTE: {
2863
+ severity: "error";
2864
+ message: string;
2865
+ };
2866
+ };
2813
2867
  };
2814
2868
  //# 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":"AAkCA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCtB,CAAC"}
@@ -34,6 +34,7 @@ const template_recurrence_settings_validation_messages_1 = require("./features/t
34
34
  const client_templates_validation_messages_1 = require("./features/client-templates.validation-messages");
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
+ const notes_validation_messages_1 = require("./features/notes.validation-messages");
37
38
  exports.VALIDATION_MESSAGES = {
38
39
  ACCOUNT_CATEGORIES: account_categories_validation_messages_1.ACCOUNT_CATEGORIES,
39
40
  ACCOUNT_IDS: account_ids_validation_messages_1.ACCOUNT_IDS,
@@ -68,4 +69,5 @@ exports.VALIDATION_MESSAGES = {
68
69
  CLIENT_TEMPLATES: client_templates_validation_messages_1.CLIENT_TEMPLATES,
69
70
  CLIENT_TEMPLATE_ASSIGNMENTS: client_template_assignments_validation_messages_1.CLIENT_TEMPLATE_ASSIGNMENTS,
70
71
  TASKS: tasks_validation_messages_1.TASKS,
72
+ NOTES: notes_validation_messages_1.NOTES,
71
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.96",
3
+ "version": "1.10.99",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -0,0 +1,53 @@
1
+ import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
2
+
3
+ export const NOTES = defineValidationFeatureMessages({
4
+ NOTE_REQUIRED: {
5
+ severity: VALIDATION_SEVERITY.ERROR,
6
+ message: 'Fill in this field to proceed.',
7
+ affectedFields: ['note'],
8
+ },
9
+ NOTE_NOT_FOUND: {
10
+ severity: VALIDATION_SEVERITY.ERROR,
11
+ message: 'Note does not exist.',
12
+ params: ['id'],
13
+ },
14
+ ADD_TASK_CLOSED: {
15
+ severity: VALIDATION_SEVERITY.ERROR,
16
+ message: "A note can't be added because this task is closed.",
17
+ },
18
+ ADD_TASK_TYPE_NOT_SUPPORTED: {
19
+ severity: VALIDATION_SEVERITY.ERROR,
20
+ message: 'Notes can only be added to Filing, Task, Tax payment and Setup tasks.',
21
+ },
22
+ SPECIFIC_TEMPLATE_NOT_ON_CLIENT: {
23
+ severity: VALIDATION_SEVERITY.ERROR,
24
+ message: 'The selected template is not set up for this client.',
25
+ params: ['specificTemplateId'],
26
+ affectedFields: ['specificTemplateId'],
27
+ },
28
+ RELATED_TO_INVALID: {
29
+ severity: VALIDATION_SEVERITY.ERROR,
30
+ message: "The selected 'Related to' filing type does not exist.",
31
+ params: ['relatedToFilingTypeId'],
32
+ affectedFields: ['relatedToFilingTypeId'],
33
+ },
34
+ NOTE_TEXT_LOCKED_ON_CLOSED_TASK: {
35
+ severity: VALIDATION_SEVERITY.ERROR,
36
+ message: "The text of this note can't be changed because the task it was added on is closed.",
37
+ affectedFields: ['note'],
38
+ },
39
+ DELETE_TASK_CLOSED: {
40
+ severity: VALIDATION_SEVERITY.ERROR,
41
+ message: "This note can't be deleted because the task it was added on is closed.",
42
+ },
43
+ DELETE_IMPORTANT: {
44
+ severity: VALIDATION_SEVERITY.ERROR,
45
+ message:
46
+ "This note is marked as important and can't be deleted. Please turn off 'Important' before deleting this note.",
47
+ },
48
+ TASK_DELETE_BLOCKED_BY_IMPORTANT_NOTE: {
49
+ severity: VALIDATION_SEVERITY.ERROR,
50
+ message:
51
+ "This task can't be deleted because it has an important note. Please turn off 'Important' on the note before deleting this task.",
52
+ },
53
+ });
@@ -317,6 +317,11 @@ export const TASKS = defineValidationFeatureMessages({
317
317
  params: ['templateId'],
318
318
  affectedFields: ['templateId'],
319
319
  },
320
+ TAX_PAYMENT_FILING_REQUIRED: {
321
+ severity: VALIDATION_SEVERITY.ERROR,
322
+ message: 'Tax payment filing is required.',
323
+ affectedFields: ['clientFilingTemplateId'],
324
+ },
320
325
  TAX_PAYMENT_FILING_NOT_VALID: {
321
326
  severity: VALIDATION_SEVERITY.ERROR,
322
327
  message: 'The selected tax payment filing is not available for this client.',
@@ -31,6 +31,7 @@ import { TEMPLATE_RECURRENCE_SETTINGS } from './features/template-recurrence-set
31
31
  import { CLIENT_TEMPLATES } from './features/client-templates.validation-messages';
32
32
  import { CLIENT_TEMPLATE_ASSIGNMENTS } from './features/client-template-assignments.validation-messages';
33
33
  import { TASKS } from './features/tasks.validation-messages';
34
+ import { NOTES } from './features/notes.validation-messages';
34
35
 
35
36
  export const VALIDATION_MESSAGES = {
36
37
  ACCOUNT_CATEGORIES,
@@ -66,4 +67,5 @@ export const VALIDATION_MESSAGES = {
66
67
  CLIENT_TEMPLATES,
67
68
  CLIENT_TEMPLATE_ASSIGNMENTS,
68
69
  TASKS,
70
+ NOTES,
69
71
  } as const;