@forwardslashns/taskit-validation-messages 1.10.18 → 1.10.19

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.
Files changed (123) hide show
  1. package/dist/index.d.ts +2 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -1
  4. package/dist/validation/features/account-categories.validation-messages.d.ts +18 -14
  5. package/dist/validation/features/account-categories.validation-messages.d.ts.map +1 -1
  6. package/dist/validation/features/account-categories.validation-messages.js +7 -2
  7. package/dist/validation/features/account-ids.validation-messages.d.ts +23 -18
  8. package/dist/validation/features/account-ids.validation-messages.d.ts.map +1 -1
  9. package/dist/validation/features/account-ids.validation-messages.js +8 -2
  10. package/dist/validation/features/business-activities.validation-messages.d.ts +18 -14
  11. package/dist/validation/features/business-activities.validation-messages.d.ts.map +1 -1
  12. package/dist/validation/features/business-activities.validation-messages.js +7 -2
  13. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +195 -158
  14. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map +1 -1
  15. package/dist/validation/features/client-current-entity-statuses.validation-messages.js +45 -7
  16. package/dist/validation/features/client-records-addresses.validation-messages.d.ts +71 -58
  17. package/dist/validation/features/client-records-addresses.validation-messages.d.ts.map +1 -1
  18. package/dist/validation/features/client-records-addresses.validation-messages.js +16 -2
  19. package/dist/validation/features/client-records-banks.validation-messages.d.ts +20 -15
  20. package/dist/validation/features/client-records-banks.validation-messages.d.ts.map +1 -1
  21. package/dist/validation/features/client-records-banks.validation-messages.js +8 -2
  22. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +21 -16
  23. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts.map +1 -1
  24. package/dist/validation/features/client-records-commission-details.validation-messages.js +8 -2
  25. package/dist/validation/features/client-records-contacts.validation-messages.d.ts +41 -33
  26. package/dist/validation/features/client-records-contacts.validation-messages.d.ts.map +1 -1
  27. package/dist/validation/features/client-records-contacts.validation-messages.js +11 -2
  28. package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts +24 -18
  29. package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts.map +1 -1
  30. package/dist/validation/features/client-records-credit-cards.validation-messages.js +9 -2
  31. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +97 -80
  32. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts.map +1 -1
  33. package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +30 -12
  34. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +96 -79
  35. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts.map +1 -1
  36. package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +30 -12
  37. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +96 -79
  38. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts.map +1 -1
  39. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +30 -12
  40. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +10 -8
  41. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts.map +1 -1
  42. package/dist/validation/features/client-records-outside-providers.validation-messages.js +6 -3
  43. package/dist/validation/features/client-relationships-common.validation-messages.d.ts +69 -55
  44. package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
  45. package/dist/validation/features/client-relationships-common.validation-messages.js +30 -15
  46. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +84 -68
  47. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map +1 -1
  48. package/dist/validation/features/client-relationships-income-sources.validation-messages.js +21 -4
  49. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +86 -69
  50. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts.map +1 -1
  51. package/dist/validation/features/client-relationships-owners.validation-messages.js +22 -4
  52. package/dist/validation/features/data-filters.validation-messages.d.ts +16 -12
  53. package/dist/validation/features/data-filters.validation-messages.d.ts.map +1 -1
  54. package/dist/validation/features/data-filters.validation-messages.js +7 -2
  55. package/dist/validation/features/filing-categories.validation-messages.d.ts +18 -14
  56. package/dist/validation/features/filing-categories.validation-messages.d.ts.map +1 -1
  57. package/dist/validation/features/filing-categories.validation-messages.js +7 -2
  58. package/dist/validation/features/income-accounts.validation-messages.d.ts +17 -13
  59. package/dist/validation/features/income-accounts.validation-messages.d.ts.map +1 -1
  60. package/dist/validation/features/income-accounts.validation-messages.js +7 -2
  61. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +29 -23
  62. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts.map +1 -1
  63. package/dist/validation/features/roles-and-permissions.validation-messages.js +9 -2
  64. package/dist/validation/features/states.validation-messages.d.ts +55 -45
  65. package/dist/validation/features/states.validation-messages.d.ts.map +1 -1
  66. package/dist/validation/features/states.validation-messages.js +13 -2
  67. package/dist/validation/features/template-assignments.validation-messages.d.ts +85 -68
  68. package/dist/validation/features/template-assignments.validation-messages.d.ts.map +1 -1
  69. package/dist/validation/features/template-assignments.validation-messages.js +20 -2
  70. package/dist/validation/features/template-information.validation-messages.d.ts +218 -175
  71. package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
  72. package/dist/validation/features/template-information.validation-messages.js +46 -2
  73. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +164 -132
  74. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
  75. package/dist/validation/features/template-recurrence-settings.validation-messages.js +37 -4
  76. package/dist/validation/features/template-states.validation-messages.d.ts +49 -39
  77. package/dist/validation/features/template-states.validation-messages.d.ts.map +1 -1
  78. package/dist/validation/features/template-states.validation-messages.js +13 -2
  79. package/dist/validation/features/user-preferences.validation-messages.d.ts +17 -13
  80. package/dist/validation/features/user-preferences.validation-messages.d.ts.map +1 -1
  81. package/dist/validation/features/user-preferences.validation-messages.js +8 -3
  82. package/dist/validation/features/users.validation-messages.d.ts +65 -53
  83. package/dist/validation/features/users.validation-messages.d.ts.map +1 -1
  84. package/dist/validation/features/users.validation-messages.js +17 -4
  85. package/dist/validation/validation-message.formatter.d.ts +2 -0
  86. package/dist/validation/validation-message.formatter.d.ts.map +1 -1
  87. package/dist/validation/validation-message.formatter.js +1 -0
  88. package/dist/validation/validation-message.types.d.ts +30 -0
  89. package/dist/validation/validation-message.types.d.ts.map +1 -0
  90. package/dist/validation/validation-message.types.js +9 -0
  91. package/dist/validation/validation-messages.d.ts +1756 -1423
  92. package/dist/validation/validation-messages.d.ts.map +1 -1
  93. package/package.json +1 -1
  94. package/src/index.ts +14 -0
  95. package/src/validation/features/account-categories.validation-messages.ts +8 -2
  96. package/src/validation/features/account-ids.validation-messages.ts +9 -2
  97. package/src/validation/features/business-activities.validation-messages.ts +8 -2
  98. package/src/validation/features/client-current-entity-statuses.validation-messages.ts +46 -7
  99. package/src/validation/features/client-records-addresses.validation-messages.ts +17 -2
  100. package/src/validation/features/client-records-banks.validation-messages.ts +9 -2
  101. package/src/validation/features/client-records-commission-details.validation-messages.ts +9 -2
  102. package/src/validation/features/client-records-contacts.validation-messages.ts +12 -2
  103. package/src/validation/features/client-records-credit-cards.validation-messages.ts +10 -2
  104. package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +31 -12
  105. package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +31 -12
  106. package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts +31 -12
  107. package/src/validation/features/client-records-outside-providers.validation-messages.ts +7 -3
  108. package/src/validation/features/client-relationships-common.validation-messages.ts +31 -15
  109. package/src/validation/features/client-relationships-income-sources.validation-messages.ts +22 -4
  110. package/src/validation/features/client-relationships-owners.validation-messages.ts +23 -4
  111. package/src/validation/features/data-filters.validation-messages.ts +8 -2
  112. package/src/validation/features/filing-categories.validation-messages.ts +8 -2
  113. package/src/validation/features/income-accounts.validation-messages.ts +8 -2
  114. package/src/validation/features/roles-and-permissions.validation-messages.ts +10 -2
  115. package/src/validation/features/states.validation-messages.ts +14 -2
  116. package/src/validation/features/template-assignments.validation-messages.ts +21 -2
  117. package/src/validation/features/template-information.validation-messages.ts +47 -2
  118. package/src/validation/features/template-recurrence-settings.validation-messages.ts +38 -4
  119. package/src/validation/features/template-states.validation-messages.ts +14 -2
  120. package/src/validation/features/user-preferences.validation-messages.ts +9 -3
  121. package/src/validation/features/users.validation-messages.ts +18 -4
  122. package/src/validation/validation-message.formatter.ts +4 -6
  123. package/src/validation/validation-message.types.ts +36 -0
@@ -1,83 +1,100 @@
1
1
  export declare const CLIENT_RECORDS_ENTITY_TYPES: {
2
- readonly ENTITY_TYPE_ID_DOES_NOT_EXIST: {
3
- readonly message: "Entity type does not exist";
4
- readonly params: readonly ["id"];
5
- readonly affectedFields: readonly ["entityType"];
6
- };
7
- readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
8
- readonly message: "One or more entity types have a start date that is before the client's date established, {clientDateEstablished}. ({entityType} starting {entityTypeStartingDate}). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.";
9
- readonly params: readonly ["clientDateEstablished", "entityType", "entityTypeStartingDate"];
10
- readonly affectedFields: readonly ["dateEstablished", "entityType"];
11
- };
12
- readonly NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
13
- readonly message: "One or more entity types have start dates that are after the client's close date, {clientCloseDate}. {entityType} starting {entityTypeStartingDate}. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.";
14
- readonly params: readonly ["clientCloseDate", "entityType", "entityTypeStartingDate"];
15
- readonly affectedFields: readonly ["closeDate", "entityType"];
16
- };
17
- readonly ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
18
- readonly message: "Current Entity Type Starting Date cannot be Empty";
19
- readonly affectedFields: readonly ["entityTypeStartingDate"];
20
- };
21
- readonly NOT_ALIGNED_ENTITY_TYPE_STARTING_ENDING_DATE: {
22
- readonly message: "Entity type starting date needs to be before the ending date";
23
- readonly affectedFields: readonly ["entityTypeStartingDate", "entityTypeEndingDate"];
24
- };
25
- readonly ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
26
- readonly message: "Entity types do not exist";
27
- readonly params: readonly ["ids"];
28
- readonly affectedFields: readonly ["entityType"];
29
- };
30
- readonly AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
31
- readonly message: "At least one entity type should exist";
32
- readonly affectedFields: readonly ["entityType"];
33
- };
34
- readonly ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
35
- readonly message: "Starting date for {entityType} cannot be empty";
36
- readonly params: readonly ["entityType"];
37
- readonly affectedFields: readonly ["entityTypeStartingDate"];
38
- };
39
- readonly NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
40
- readonly message: "The ending date for {entityType} must be after its starting date";
41
- readonly params: readonly ["entityType"];
42
- readonly affectedFields: readonly ["entityTypeStartingDate", "entityTypeEndingDate"];
43
- };
44
- readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPES_STARTING_DATE: {
45
- readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
46
- readonly params: readonly ["clientStartDate"];
47
- readonly affectedFields: readonly ["entityTypeStartingDate", "dateEstablished"];
48
- };
49
- readonly NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
50
- readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
51
- readonly params: readonly ["clientCloseDate"];
52
- readonly affectedFields: readonly ["entityTypeStartingDate", "closeDate"];
53
- };
54
- readonly ENTITY_TYPES_DATE_GAP_DETECTED: {
55
- readonly message: "There is a gap in the timeframes between {currentEntityType}, ending {currentEntityTypeEndDate}, and {nextEntityType}, starting {nextEntityTypeStartDate}. Please adjust the dates to fill this gap.";
56
- readonly params: readonly ["currentEntityType", "currentEntityTypeEndDate", "nextEntityType", "nextEntityTypeStartDate"];
57
- readonly affectedFields: readonly ["entityType"];
58
- };
59
- readonly ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
60
- readonly message: "There are two entries for {entityType} with timeframes that immediately follow each other. {entityType} ending {firstPeriodEnd}, and {entityType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {entityType}. ";
61
- readonly params: readonly ["entityType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
62
- readonly affectedFields: readonly ["entityType"];
63
- };
64
- readonly ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
65
- readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first entity type ({earliestEntityType} starting {earliestEntityTypeStartDate}). There must be an entity type that begins on {dateEstablished}.";
66
- readonly params: readonly ["dateEstablished", "earliestEntityType", "earliestEntityTypeStartDate"];
67
- readonly affectedFields: readonly ["entityType", "dateEstablished"];
68
- };
69
- readonly ENTITY_TYPES_DATES_OVERLAP: {
70
- readonly message: "The client already has {entityType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
71
- readonly params: readonly ["entityType", "startDate1", "endDate1", "startDate2", "endDate2"];
72
- readonly affectedFields: readonly ["entityType"];
73
- };
74
- readonly ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
75
- readonly message: "Only the last entity type can be open without an end date. Add an ending date to the existing entity type before adding a start date for a new entity type.";
76
- readonly affectedFields: readonly ["entityTypeEndingDate"];
77
- };
78
- readonly CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
79
- readonly message: "The current entity type cannot have an end date. Please remove the end date for this state.";
80
- readonly affectedFields: readonly ["entityTypeEndingDate"];
2
+ ENTITY_TYPE_ID_DOES_NOT_EXIST: {
3
+ severity: "error";
4
+ message: string;
5
+ params: string[];
6
+ affectedFields: string[];
7
+ };
8
+ NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
9
+ severity: "error";
10
+ message: string;
11
+ params: string[];
12
+ affectedFields: string[];
13
+ };
14
+ NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
15
+ severity: "error";
16
+ message: string;
17
+ params: string[];
18
+ affectedFields: string[];
19
+ };
20
+ ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
21
+ severity: "error";
22
+ message: string;
23
+ affectedFields: string[];
24
+ };
25
+ NOT_ALIGNED_ENTITY_TYPE_STARTING_ENDING_DATE: {
26
+ severity: "error";
27
+ message: string;
28
+ affectedFields: string[];
29
+ };
30
+ ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
31
+ severity: "error";
32
+ message: string;
33
+ params: string[];
34
+ affectedFields: string[];
35
+ };
36
+ AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
37
+ severity: "error";
38
+ message: string;
39
+ affectedFields: string[];
40
+ };
41
+ ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
42
+ severity: "error";
43
+ message: string;
44
+ params: string[];
45
+ affectedFields: string[];
46
+ };
47
+ NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
48
+ severity: "error";
49
+ message: string;
50
+ params: string[];
51
+ affectedFields: string[];
52
+ };
53
+ NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPES_STARTING_DATE: {
54
+ severity: "error";
55
+ message: string;
56
+ params: string[];
57
+ affectedFields: string[];
58
+ };
59
+ NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
60
+ severity: "error";
61
+ message: string;
62
+ params: string[];
63
+ affectedFields: string[];
64
+ };
65
+ ENTITY_TYPES_DATE_GAP_DETECTED: {
66
+ severity: "error";
67
+ message: string;
68
+ params: string[];
69
+ affectedFields: string[];
70
+ };
71
+ ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
72
+ severity: "error";
73
+ message: string;
74
+ params: string[];
75
+ affectedFields: string[];
76
+ };
77
+ ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
78
+ severity: "error";
79
+ message: string;
80
+ params: string[];
81
+ affectedFields: string[];
82
+ };
83
+ ENTITY_TYPES_DATES_OVERLAP: {
84
+ severity: "error";
85
+ message: string;
86
+ params: string[];
87
+ affectedFields: string[];
88
+ };
89
+ ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
90
+ severity: "error";
91
+ message: string;
92
+ affectedFields: string[];
93
+ };
94
+ CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
95
+ severity: "error";
96
+ message: string;
97
+ affectedFields: string[];
81
98
  };
82
99
  };
83
100
  //# sourceMappingURL=client-records-entity-types-histories.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-records-entity-types-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-entity-types-histories.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF9B,CAAC"}
1
+ {"version":3,"file":"client-records-entity-types-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-entity-types-histories.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGtC,CAAC"}
@@ -1,85 +1,103 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_RECORDS_ENTITY_TYPES = void 0;
4
- exports.CLIENT_RECORDS_ENTITY_TYPES = {
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.CLIENT_RECORDS_ENTITY_TYPES = (0, validation_message_types_1.defineValidationFeatureMessages)({
5
6
  ENTITY_TYPE_ID_DOES_NOT_EXIST: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
6
8
  message: `Entity type does not exist`,
7
9
  params: ['id'],
8
10
  affectedFields: ['entityType'],
9
11
  },
10
12
  NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
11
- message: `One or more entity types have a start date that is before the client's date established, {clientDateEstablished}. ({entityType} starting {entityTypeStartingDate}). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.`,
13
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
14
+ message: `One or more entity types have a start date that is before the client's date established, '{clientDateEstablished}'. ('{entityType}' starting '{entityTypeStartingDate}'). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.`,
12
15
  params: ['clientDateEstablished', 'entityType', 'entityTypeStartingDate'],
13
16
  affectedFields: ['dateEstablished', 'entityType'],
14
17
  },
15
18
  NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
16
- message: `One or more entity types have start dates that are after the client's close date, {clientCloseDate}. {entityType} starting {entityTypeStartingDate}. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.`,
19
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
20
+ message: `One or more entity types have start dates that are after the client's close date, '{clientCloseDate}'. '{entityType}' starting '{entityTypeStartingDate}'. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.`,
17
21
  params: ['clientCloseDate', 'entityType', 'entityTypeStartingDate'],
18
22
  affectedFields: ['closeDate', 'entityType'],
19
23
  },
20
24
  ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
25
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
21
26
  message: `Current Entity Type Starting Date cannot be Empty`,
22
27
  affectedFields: ['entityTypeStartingDate'],
23
28
  },
24
29
  NOT_ALIGNED_ENTITY_TYPE_STARTING_ENDING_DATE: {
30
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
25
31
  message: `Entity type starting date needs to be before the ending date`,
26
32
  affectedFields: ['entityTypeStartingDate', 'entityTypeEndingDate'],
27
33
  },
28
34
  ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
35
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
29
36
  message: `Entity types do not exist`,
30
37
  params: ['ids'],
31
38
  affectedFields: ['entityType'],
32
39
  },
33
40
  AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
41
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
34
42
  message: `At least one entity type should exist`,
35
43
  affectedFields: ['entityType'],
36
44
  },
37
45
  ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
38
- message: `Starting date for {entityType} cannot be empty`,
46
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
47
+ message: `Starting date for '{entityType}' cannot be empty`,
39
48
  params: ['entityType'],
40
49
  affectedFields: ['entityTypeStartingDate'],
41
50
  },
42
51
  NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
43
- message: `The ending date for {entityType} must be after its starting date`,
52
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
53
+ message: `The ending date for '{entityType}' must be after its starting date`,
44
54
  params: ['entityType'],
45
55
  affectedFields: ['entityTypeStartingDate', 'entityTypeEndingDate'],
46
56
  },
47
57
  NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPES_STARTING_DATE: {
48
- message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
58
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
59
+ message: `Adjust the start date to be on or after the client's date established, '{clientStartDate}'.`,
49
60
  params: ['clientStartDate'],
50
61
  affectedFields: ['entityTypeStartingDate', 'dateEstablished'],
51
62
  },
52
63
  NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
53
- message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
64
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
65
+ message: `Adjust the start date to be before the client's close date, '{clientCloseDate}'.`,
54
66
  params: ['clientCloseDate'],
55
67
  affectedFields: ['entityTypeStartingDate', 'closeDate'],
56
68
  },
57
69
  ENTITY_TYPES_DATE_GAP_DETECTED: {
58
- message: `There is a gap in the timeframes between {currentEntityType}, ending {currentEntityTypeEndDate}, and {nextEntityType}, starting {nextEntityTypeStartDate}. Please adjust the dates to fill this gap.`,
70
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
71
+ message: `There is a gap in the timeframes between '{currentEntityType}', ending '{currentEntityTypeEndDate}', and '{nextEntityType}', starting '{nextEntityTypeStartDate}'. Please adjust the dates to fill this gap.`,
59
72
  params: ['currentEntityType', 'currentEntityTypeEndDate', 'nextEntityType', 'nextEntityTypeStartDate'],
60
73
  affectedFields: ['entityType'],
61
74
  },
62
75
  ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
63
- message: `There are two entries for {entityType} with timeframes that immediately follow each other. {entityType} ending {firstPeriodEnd}, and {entityType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {entityType}. `,
76
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
77
+ message: `There are two entries for '{entityType}' with timeframes that immediately follow each other. '{entityType}' ending '{firstPeriodEnd}', and '{entityType}' starting '{secondPeriodStart}'. Please update one entry to include the entire timeframe for '{entityType}'. `,
64
78
  params: ['entityType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
65
79
  affectedFields: ['entityType'],
66
80
  },
67
81
  ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
68
- message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first entity type ({earliestEntityType} starting {earliestEntityTypeStartDate}). There must be an entity type that begins on {dateEstablished}.`,
82
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
83
+ message: `There is a gap between the client's date established ('{dateEstablished}') and the start of its first entity type ('{earliestEntityType}' starting '{earliestEntityTypeStartDate}'). There must be an entity type that begins on '{dateEstablished}'.`,
69
84
  params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
70
85
  affectedFields: ['entityType', 'dateEstablished'],
71
86
  },
72
87
  ENTITY_TYPES_DATES_OVERLAP: {
73
- message: `The client already has {entityType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
88
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
89
+ message: `The client already has '{entityType}' starting from '{startDate2}' to '{endDate2}'. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
74
90
  params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
75
91
  affectedFields: ['entityType'],
76
92
  },
77
93
  ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
94
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
78
95
  message: `Only the last entity type can be open without an end date. Add an ending date to the existing entity type before adding a start date for a new entity type.`,
79
96
  affectedFields: ['entityTypeEndingDate'],
80
97
  },
81
98
  CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
99
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
82
100
  message: `The current entity type cannot have an end date. Please remove the end date for this state.`,
83
101
  affectedFields: ['entityTypeEndingDate'],
84
102
  },
85
- };
103
+ });
@@ -1,83 +1,100 @@
1
1
  export declare const CLIENT_RECORDS_FILING_STATUSES: {
2
- readonly FILING_STATUS_ID_DOES_NOT_EXIST: {
3
- readonly message: "Sub/Parent status does not exist";
4
- readonly params: readonly ["id"];
5
- readonly affectedFields: readonly ["filingStatus"];
6
- };
7
- readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
8
- readonly message: "The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.";
9
- readonly params: readonly ["clientDateEstablished", "filingStatus", "filingStatusStartingDate"];
10
- readonly affectedFields: readonly ["dateEstablished", "filingStatus"];
11
- };
12
- readonly NOT_ALIGNED_CLOSE_DATE_FILING_STATUS_STARTING_DATE: {
13
- readonly message: "One or more Sub/Parent status have a start date which is after the client's close date of {clientCloseDate}. {filingStatus}, starting {filingStatusStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.";
14
- readonly params: readonly ["clientCloseDate", "filingStatus", "filingStatusStartingDate"];
15
- readonly affectedFields: readonly ["closeDate", "filingStatus"];
16
- };
17
- readonly FILING_STATUS_STARTING_DATE_NOT_POPULATED: {
18
- readonly message: "Current Sub/Parent status Starting Date cannot be Empty";
19
- readonly affectedFields: readonly ["filingStatusStartingDate"];
20
- };
21
- readonly NOT_ALIGNED_FILING_STATUS_STARTING_ENDING_DATE: {
22
- readonly message: "Sub/Parent status starting date needs to be before the ending date";
23
- readonly affectedFields: readonly ["filingStatusStartingDate", "filingStatusEndingDate"];
24
- };
25
- readonly FILING_STATUSES_IDS_DOES_NOT_EXIST: {
26
- readonly message: "Sub/Parent status do not exist";
27
- readonly params: readonly ["ids"];
28
- readonly affectedFields: readonly ["filingStatus"];
29
- };
30
- readonly AT_LEAST_ONE_FILING_STATUS_SHOULD_EXIST: {
31
- readonly message: "At least one Sub/Parent status should exist";
32
- readonly affectedFields: readonly ["filingStatus"];
33
- };
34
- readonly FILING_STATUSES_STARTING_DATE_NOT_POPULATED: {
35
- readonly message: "Starting date for {filingStatus} cannot be empty";
36
- readonly params: readonly ["filingStatus"];
37
- readonly affectedFields: readonly ["filingStatusStartingDate"];
38
- };
39
- readonly NOT_ALIGNED_FILING_STATUSES_STARTING_ENDING_DATE: {
40
- readonly message: "The ending date for {filingStatus} must be after its starting date";
41
- readonly params: readonly ["filingStatus"];
42
- readonly affectedFields: readonly ["filingStatusStartingDate", "filingStatusEndingDate"];
43
- };
44
- readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUSES_STARTING_DATE: {
45
- readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
46
- readonly params: readonly ["clientStartDate"];
47
- readonly affectedFields: readonly ["filingStatusStartingDate", "dateEstablished"];
48
- };
49
- readonly NOT_ALIGNED_CLOSE_DATE_FILING_STATUSES_STARTING_DATE: {
50
- readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
51
- readonly params: readonly ["clientCloseDate"];
52
- readonly affectedFields: readonly ["filingStatusStartingDate", "closeDate"];
53
- };
54
- readonly FILING_STATUSES_DATE_GAP_DETECTED: {
55
- readonly message: "There is a gap in the timeframes between {currentFilingStatus}, ending {currentFilingStatusEndDate}, and {nextFilingStatus}, starting {nextFilingStatusStartDate}. Please adjust the dates to fill this gap.";
56
- readonly params: readonly ["currentFilingStatus", "currentFilingStatusEndDate", "nextFilingStatus", "nextFilingStatusStartDate"];
57
- readonly affectedFields: readonly ["filingStatus"];
58
- };
59
- readonly FILING_STATUSES_CONSECUTIVE_DUPLICATES_DETECTED: {
60
- readonly message: "There are two entries for {filingStatus} with timeframes that immediately follow each other. {filingStatus} ending {firstPeriodEnd}, and {filingStatus} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingStatus}. ";
61
- readonly params: readonly ["filingStatus", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
62
- readonly affectedFields: readonly ["filingStatus"];
63
- };
64
- readonly FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
65
- readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start date of the first Sub/Parent status ({earliestFilingStatusStartDate}). Please ensure that the status of one Sub/Parent status matches the client's date established.";
66
- readonly params: readonly ["dateEstablished", "earliestFilingStatusStartDate"];
67
- readonly affectedFields: readonly ["filingStatus", "dateEstablished"];
68
- };
69
- readonly FILING_STATUSES_DATES_OVERLAP: {
70
- readonly message: "The client already has {filingStatus} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
71
- readonly params: readonly ["filingStatus", "startDate1", "endDate1", "startDate2", "endDate2"];
72
- readonly affectedFields: readonly ["filingStatus"];
73
- };
74
- readonly ALL_NON_LAST_FILING_STATUSES_REQUIRE_ENDING_DATE: {
75
- readonly message: "Only the last Sub/Parent status can be open without an end date. Add an ending date to the existing Sub/Parent status before adding a start date for a new Sub/Parent status.";
76
- readonly affectedFields: readonly ["filingStatusEndingDate"];
77
- };
78
- readonly CURRENT_FILING_STATUS_CANNOT_HAVE_ENDING_DATE: {
79
- readonly message: "The current Sub/Parent status cannot have an end date. Please remove the end date for this state.";
80
- readonly affectedFields: readonly ["filingStatusEndingDate"];
2
+ FILING_STATUS_ID_DOES_NOT_EXIST: {
3
+ severity: "error";
4
+ message: string;
5
+ params: string[];
6
+ affectedFields: string[];
7
+ };
8
+ NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
9
+ severity: "error";
10
+ message: string;
11
+ params: string[];
12
+ affectedFields: string[];
13
+ };
14
+ NOT_ALIGNED_CLOSE_DATE_FILING_STATUS_STARTING_DATE: {
15
+ severity: "error";
16
+ message: string;
17
+ params: string[];
18
+ affectedFields: string[];
19
+ };
20
+ FILING_STATUS_STARTING_DATE_NOT_POPULATED: {
21
+ severity: "error";
22
+ message: string;
23
+ affectedFields: string[];
24
+ };
25
+ NOT_ALIGNED_FILING_STATUS_STARTING_ENDING_DATE: {
26
+ severity: "error";
27
+ message: string;
28
+ affectedFields: string[];
29
+ };
30
+ FILING_STATUSES_IDS_DOES_NOT_EXIST: {
31
+ severity: "error";
32
+ message: string;
33
+ params: string[];
34
+ affectedFields: string[];
35
+ };
36
+ AT_LEAST_ONE_FILING_STATUS_SHOULD_EXIST: {
37
+ severity: "error";
38
+ message: string;
39
+ affectedFields: string[];
40
+ };
41
+ FILING_STATUSES_STARTING_DATE_NOT_POPULATED: {
42
+ severity: "error";
43
+ message: string;
44
+ params: string[];
45
+ affectedFields: string[];
46
+ };
47
+ NOT_ALIGNED_FILING_STATUSES_STARTING_ENDING_DATE: {
48
+ severity: "error";
49
+ message: string;
50
+ params: string[];
51
+ affectedFields: string[];
52
+ };
53
+ NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUSES_STARTING_DATE: {
54
+ severity: "error";
55
+ message: string;
56
+ params: string[];
57
+ affectedFields: string[];
58
+ };
59
+ NOT_ALIGNED_CLOSE_DATE_FILING_STATUSES_STARTING_DATE: {
60
+ severity: "error";
61
+ message: string;
62
+ params: string[];
63
+ affectedFields: string[];
64
+ };
65
+ FILING_STATUSES_DATE_GAP_DETECTED: {
66
+ severity: "error";
67
+ message: string;
68
+ params: string[];
69
+ affectedFields: string[];
70
+ };
71
+ FILING_STATUSES_CONSECUTIVE_DUPLICATES_DETECTED: {
72
+ severity: "error";
73
+ message: string;
74
+ params: string[];
75
+ affectedFields: string[];
76
+ };
77
+ FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
78
+ severity: "error";
79
+ message: string;
80
+ params: string[];
81
+ affectedFields: string[];
82
+ };
83
+ FILING_STATUSES_DATES_OVERLAP: {
84
+ severity: "error";
85
+ message: string;
86
+ params: string[];
87
+ affectedFields: string[];
88
+ };
89
+ ALL_NON_LAST_FILING_STATUSES_REQUIRE_ENDING_DATE: {
90
+ severity: "error";
91
+ message: string;
92
+ affectedFields: string[];
93
+ };
94
+ CURRENT_FILING_STATUS_CANNOT_HAVE_ENDING_DATE: {
95
+ severity: "error";
96
+ message: string;
97
+ affectedFields: string[];
81
98
  };
82
99
  };
83
100
  //# sourceMappingURL=client-records-filing-statuses-histories.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-records-filing-statuses-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-filing-statuses-histories.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFjC,CAAC"}
1
+ {"version":3,"file":"client-records-filing-statuses-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-filing-statuses-histories.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGzC,CAAC"}
@@ -1,85 +1,103 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_RECORDS_FILING_STATUSES = void 0;
4
- exports.CLIENT_RECORDS_FILING_STATUSES = {
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.CLIENT_RECORDS_FILING_STATUSES = (0, validation_message_types_1.defineValidationFeatureMessages)({
5
6
  FILING_STATUS_ID_DOES_NOT_EXIST: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
6
8
  message: `Sub/Parent status does not exist`,
7
9
  params: ['id'],
8
10
  affectedFields: ['filingStatus'],
9
11
  },
10
12
  NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
11
- message: `The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.`,
13
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
14
+ message: `The Sub/Parent status '{filingStatus}' starts on '{filingStatusStartingDate}' which is earlier than the client's date established, '{clientDateEstablished}'. Please adjust the start date of the Sub/Parent status or the client's date established.`,
12
15
  params: ['clientDateEstablished', 'filingStatus', 'filingStatusStartingDate'],
13
16
  affectedFields: ['dateEstablished', 'filingStatus'],
14
17
  },
15
18
  NOT_ALIGNED_CLOSE_DATE_FILING_STATUS_STARTING_DATE: {
16
- message: `One or more Sub/Parent status have a start date which is after the client's close date of {clientCloseDate}. {filingStatus}, starting {filingStatusStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.`,
19
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
20
+ message: `One or more Sub/Parent status have a start date which is after the client's close date of '{clientCloseDate}'. '{filingStatus}', starting '{filingStatusStartingDate}'. Please update the start date to be earlier than the client's close date, or update the client's close date.`,
17
21
  params: ['clientCloseDate', 'filingStatus', 'filingStatusStartingDate'],
18
22
  affectedFields: ['closeDate', 'filingStatus'],
19
23
  },
20
24
  FILING_STATUS_STARTING_DATE_NOT_POPULATED: {
25
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
21
26
  message: `Current Sub/Parent status Starting Date cannot be Empty`,
22
27
  affectedFields: ['filingStatusStartingDate'],
23
28
  },
24
29
  NOT_ALIGNED_FILING_STATUS_STARTING_ENDING_DATE: {
30
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
25
31
  message: `Sub/Parent status starting date needs to be before the ending date`,
26
32
  affectedFields: ['filingStatusStartingDate', 'filingStatusEndingDate'],
27
33
  },
28
34
  FILING_STATUSES_IDS_DOES_NOT_EXIST: {
35
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
29
36
  message: `Sub/Parent status do not exist`,
30
37
  params: ['ids'],
31
38
  affectedFields: ['filingStatus'],
32
39
  },
33
40
  AT_LEAST_ONE_FILING_STATUS_SHOULD_EXIST: {
41
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
34
42
  message: `At least one Sub/Parent status should exist`,
35
43
  affectedFields: ['filingStatus'],
36
44
  },
37
45
  FILING_STATUSES_STARTING_DATE_NOT_POPULATED: {
38
- message: `Starting date for {filingStatus} cannot be empty`,
46
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
47
+ message: `Starting date for '{filingStatus}' cannot be empty`,
39
48
  params: ['filingStatus'],
40
49
  affectedFields: ['filingStatusStartingDate'],
41
50
  },
42
51
  NOT_ALIGNED_FILING_STATUSES_STARTING_ENDING_DATE: {
43
- message: `The ending date for {filingStatus} must be after its starting date`,
52
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
53
+ message: `The ending date for '{filingStatus}' must be after its starting date`,
44
54
  params: ['filingStatus'],
45
55
  affectedFields: ['filingStatusStartingDate', 'filingStatusEndingDate'],
46
56
  },
47
57
  NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUSES_STARTING_DATE: {
48
- message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
58
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
59
+ message: `Adjust the start date to be on or after the client's date established, '{clientStartDate}'.`,
49
60
  params: ['clientStartDate'],
50
61
  affectedFields: ['filingStatusStartingDate', 'dateEstablished'],
51
62
  },
52
63
  NOT_ALIGNED_CLOSE_DATE_FILING_STATUSES_STARTING_DATE: {
53
- message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
64
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
65
+ message: `Adjust the start date to be before the client's close date, '{clientCloseDate}'.`,
54
66
  params: ['clientCloseDate'],
55
67
  affectedFields: ['filingStatusStartingDate', 'closeDate'],
56
68
  },
57
69
  FILING_STATUSES_DATE_GAP_DETECTED: {
58
- message: `There is a gap in the timeframes between {currentFilingStatus}, ending {currentFilingStatusEndDate}, and {nextFilingStatus}, starting {nextFilingStatusStartDate}. Please adjust the dates to fill this gap.`,
70
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
71
+ message: `There is a gap in the timeframes between '{currentFilingStatus}', ending '{currentFilingStatusEndDate}', and '{nextFilingStatus}', starting '{nextFilingStatusStartDate}'. Please adjust the dates to fill this gap.`,
59
72
  params: ['currentFilingStatus', 'currentFilingStatusEndDate', 'nextFilingStatus', 'nextFilingStatusStartDate'],
60
73
  affectedFields: ['filingStatus'],
61
74
  },
62
75
  FILING_STATUSES_CONSECUTIVE_DUPLICATES_DETECTED: {
63
- message: `There are two entries for {filingStatus} with timeframes that immediately follow each other. {filingStatus} ending {firstPeriodEnd}, and {filingStatus} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingStatus}. `,
76
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
77
+ message: `There are two entries for '{filingStatus}' with timeframes that immediately follow each other. '{filingStatus}' ending '{firstPeriodEnd}', and '{filingStatus}' starting '{secondPeriodStart}'. Please update one entry to include the entire timeframe for '{filingStatus}'. `,
64
78
  params: ['filingStatus', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
65
79
  affectedFields: ['filingStatus'],
66
80
  },
67
81
  FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
68
- message: `There is a gap between the client's date established ({dateEstablished}) and the start date of the first Sub/Parent status ({earliestFilingStatusStartDate}). Please ensure that the status of one Sub/Parent status matches the client's date established.`,
82
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
83
+ message: `There is a gap between the client's date established ('{dateEstablished}') and the start date of the first Sub/Parent status ('{earliestFilingStatusStartDate}'). Please ensure that the status of one Sub/Parent status matches the client's date established.`,
69
84
  params: ['dateEstablished', 'earliestFilingStatusStartDate'],
70
85
  affectedFields: ['filingStatus', 'dateEstablished'],
71
86
  },
72
87
  FILING_STATUSES_DATES_OVERLAP: {
73
- message: `The client already has {filingStatus} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
88
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
89
+ message: `The client already has '{filingStatus}' starting from '{startDate2}' to '{endDate2}'. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
74
90
  params: ['filingStatus', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
75
91
  affectedFields: ['filingStatus'],
76
92
  },
77
93
  ALL_NON_LAST_FILING_STATUSES_REQUIRE_ENDING_DATE: {
94
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
78
95
  message: `Only the last Sub/Parent status can be open without an end date. Add an ending date to the existing Sub/Parent status before adding a start date for a new Sub/Parent status.`,
79
96
  affectedFields: ['filingStatusEndingDate'],
80
97
  },
81
98
  CURRENT_FILING_STATUS_CANNOT_HAVE_ENDING_DATE: {
99
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
82
100
  message: `The current Sub/Parent status cannot have an end date. Please remove the end date for this state.`,
83
101
  affectedFields: ['filingStatusEndingDate'],
84
102
  },
85
- };
103
+ });