@forwardslashns/taskit-validation-messages 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/PUBLISHING.md +3 -0
  2. package/dist/validation/features/client-current-entity-status.validation-messages.d.ts +138 -0
  3. package/dist/validation/features/client-current-entity-status.validation-messages.d.ts.map +1 -0
  4. package/dist/validation/features/client-current-entity-status.validation-messages.js +140 -0
  5. package/dist/validation/features/{address.validation-messages.d.ts → client-record-address.validation-messages.d.ts} +2 -2
  6. package/dist/validation/features/client-record-address.validation-messages.d.ts.map +1 -0
  7. package/dist/validation/features/{address.validation-messages.js → client-record-address.validation-messages.js} +2 -2
  8. package/dist/validation/features/{bank-and-credit-card.validation-messages.d.ts → client-record-bank-and-credit-card.validation-messages.d.ts} +14 -2
  9. package/dist/validation/features/client-record-bank-and-credit-card.validation-messages.d.ts.map +1 -0
  10. package/dist/validation/features/{bank-and-credit-card.validation-messages.js → client-record-bank-and-credit-card.validation-messages.js} +14 -2
  11. package/dist/validation/features/{commission-detail.validation-messages.d.ts → client-record-commission-detail.validation-messages.d.ts} +2 -2
  12. package/dist/validation/features/client-record-commission-detail.validation-messages.d.ts.map +1 -0
  13. package/dist/validation/features/{commission-detail.validation-messages.js → client-record-commission-detail.validation-messages.js} +2 -2
  14. package/dist/validation/features/{contact.validation-messages.d.ts → client-record-contact.validation-messages.d.ts} +2 -2
  15. package/dist/validation/features/client-record-contact.validation-messages.d.ts.map +1 -0
  16. package/dist/validation/features/{contact.validation-messages.js → client-record-contact.validation-messages.js} +2 -2
  17. package/dist/validation/features/client-record-entity-state-history.validation-messages.d.ts +84 -0
  18. package/dist/validation/features/client-record-entity-state-history.validation-messages.d.ts.map +1 -0
  19. package/dist/validation/features/client-record-entity-state-history.validation-messages.js +86 -0
  20. package/dist/validation/features/client-record-entity-type-history.validation-messages.d.ts +83 -0
  21. package/dist/validation/features/client-record-entity-type-history.validation-messages.d.ts.map +1 -0
  22. package/dist/validation/features/client-record-entity-type-history.validation-messages.js +85 -0
  23. package/dist/validation/features/client-record-filing-type-history.validation-messages.d.ts +91 -0
  24. package/dist/validation/features/client-record-filing-type-history.validation-messages.d.ts.map +1 -0
  25. package/dist/validation/features/client-record-filing-type-history.validation-messages.js +93 -0
  26. package/dist/validation/features/{outside-provider.validation-messages.d.ts → client-record-outside-provider.validation-messages.d.ts} +2 -2
  27. package/dist/validation/features/client-record-outside-provider.validation-messages.d.ts.map +1 -0
  28. package/dist/validation/features/{outside-provider.validation-messages.js → client-record-outside-provider.validation-messages.js} +2 -2
  29. package/dist/validation/validation-messages.d.ts +93 -91
  30. package/dist/validation/validation-messages.d.ts.map +1 -1
  31. package/dist/validation/validation-messages.js +18 -16
  32. package/package.json +1 -1
  33. package/src/validation/features/client-current-entity-status.validation-messages.ts +137 -0
  34. package/src/validation/features/{address.validation-messages.ts → client-record-address.validation-messages.ts} +1 -1
  35. package/src/validation/features/{bank-and-credit-card.validation-messages.ts → client-record-bank-and-credit-card.validation-messages.ts} +13 -1
  36. package/src/validation/features/{commission-detail.validation-messages.ts → client-record-commission-detail.validation-messages.ts} +1 -1
  37. package/src/validation/features/{contact.validation-messages.ts → client-record-contact.validation-messages.ts} +1 -1
  38. package/src/validation/features/client-record-entity-state-history.validation-messages.ts +83 -0
  39. package/src/validation/features/client-record-entity-type-history.validation-messages.ts +82 -0
  40. package/src/validation/features/client-record-filing-type-history.validation-messages.ts +90 -0
  41. package/src/validation/features/{outside-provider.validation-messages.ts → client-record-outside-provider.validation-messages.ts} +1 -1
  42. package/src/validation/validation-messages.ts +18 -16
  43. package/dist/validation/features/address.validation-messages.d.ts.map +0 -1
  44. package/dist/validation/features/bank-and-credit-card.validation-messages.d.ts.map +0 -1
  45. package/dist/validation/features/bank.validation-messages.d.ts +0 -7
  46. package/dist/validation/features/bank.validation-messages.d.ts.map +0 -1
  47. package/dist/validation/features/bank.validation-messages.js +0 -9
  48. package/dist/validation/features/client.validation-messages.d.ts +0 -387
  49. package/dist/validation/features/client.validation-messages.d.ts.map +0 -1
  50. package/dist/validation/features/client.validation-messages.js +0 -389
  51. package/dist/validation/features/commission-detail.validation-messages.d.ts.map +0 -1
  52. package/dist/validation/features/contact.validation-messages.d.ts.map +0 -1
  53. package/dist/validation/features/credit-card.validation-messages.d.ts +0 -11
  54. package/dist/validation/features/credit-card.validation-messages.d.ts.map +0 -1
  55. package/dist/validation/features/credit-card.validation-messages.js +0 -13
  56. package/dist/validation/features/outside-provider.validation-messages.d.ts.map +0 -1
  57. package/src/validation/features/bank.validation-messages.ts +0 -6
  58. package/src/validation/features/client.validation-messages.ts +0 -386
  59. package/src/validation/features/credit-card.validation-messages.ts +0 -10
@@ -0,0 +1,83 @@
1
+ export declare const CLIENT_RECORD_ENTITY_TYPE_HISTORY: {
2
+ readonly ENTITY_TYPE_ID_DOES_NOT_EXIST: {
3
+ readonly message: "Entity type with id '{id}' does not exist";
4
+ readonly params: readonly ["id"];
5
+ readonly affectedFields: readonly ["entityTypeId"];
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", "entityTypes"];
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", "entityTypes"];
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 with ids '{ids}' do not exist";
27
+ readonly params: readonly ["ids"];
28
+ readonly affectedFields: readonly ["entityTypeId"];
29
+ };
30
+ readonly AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
31
+ readonly message: "At least one entity type should exist";
32
+ readonly affectedFields: readonly ["entityTypes"];
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 ["entityTypes"];
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 ["entityTypes"];
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 ["entityTypes", "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 ["entityTypes"];
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"];
81
+ };
82
+ };
83
+ //# sourceMappingURL=client-record-entity-type-history.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-entity-type-history.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-entity-type-history.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFpC,CAAC"}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLIENT_RECORD_ENTITY_TYPE_HISTORY = void 0;
4
+ exports.CLIENT_RECORD_ENTITY_TYPE_HISTORY = {
5
+ ENTITY_TYPE_ID_DOES_NOT_EXIST: {
6
+ message: `Entity type with id '{id}' does not exist`,
7
+ params: ['id'],
8
+ affectedFields: ['entityTypeId'],
9
+ },
10
+ 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.`,
12
+ params: ['clientDateEstablished', 'entityType', 'entityTypeStartingDate'],
13
+ affectedFields: ['dateEstablished', 'entityTypes'],
14
+ },
15
+ 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.`,
17
+ params: ['clientCloseDate', 'entityType', 'entityTypeStartingDate'],
18
+ affectedFields: ['closeDate', 'entityTypes'],
19
+ },
20
+ ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
21
+ message: `Current Entity Type Starting Date cannot be Empty`,
22
+ affectedFields: ['entityTypeStartingDate'],
23
+ },
24
+ NOT_ALIGNED_ENTITY_TYPE_STARTING_ENDING_DATE: {
25
+ message: `Entity type starting date needs to be before the ending date`,
26
+ affectedFields: ['entityTypeStartingDate', 'entityTypeEndingDate'],
27
+ },
28
+ ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
29
+ message: `Entity types with ids '{ids}' do not exist`,
30
+ params: ['ids'],
31
+ affectedFields: ['entityTypeId'],
32
+ },
33
+ AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
34
+ message: `At least one entity type should exist`,
35
+ affectedFields: ['entityTypes'],
36
+ },
37
+ ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
38
+ message: `Starting date for {entityType} cannot be empty`,
39
+ params: ['entityType'],
40
+ affectedFields: ['entityTypeStartingDate'],
41
+ },
42
+ NOT_ALIGNED_ENTITY_TYPES_STARTING_ENDING_DATE: {
43
+ message: `The ending date for {entityType} must be after its starting date`,
44
+ params: ['entityType'],
45
+ affectedFields: ['entityTypeStartingDate', 'entityTypeEndingDate'],
46
+ },
47
+ 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}.`,
49
+ params: ['clientStartDate'],
50
+ affectedFields: ['entityTypeStartingDate', 'dateEstablished'],
51
+ },
52
+ NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPES_STARTING_DATE: {
53
+ message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
54
+ params: ['clientCloseDate'],
55
+ affectedFields: ['entityTypeStartingDate', 'closeDate'],
56
+ },
57
+ 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.`,
59
+ params: ['currentEntityType', 'currentEntityTypeEndDate', 'nextEntityType', 'nextEntityTypeStartDate'],
60
+ affectedFields: ['entityTypes'],
61
+ },
62
+ 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}. `,
64
+ params: ['entityType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
65
+ affectedFields: ['entityTypes'],
66
+ },
67
+ 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}.`,
69
+ params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
70
+ affectedFields: ['entityTypes', 'dateEstablished'],
71
+ },
72
+ 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.`,
74
+ params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
75
+ affectedFields: ['entityTypes'],
76
+ },
77
+ ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
78
+ 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
+ affectedFields: ['entityTypeEndingDate'],
80
+ },
81
+ CURRENT_ENTITY_TYPE_CANNOT_HAVE_ENDING_DATE: {
82
+ message: `The current entity type cannot have an end date. Please remove the end date for this state.`,
83
+ affectedFields: ['entityTypeEndingDate'],
84
+ },
85
+ };
@@ -0,0 +1,91 @@
1
+ export declare const CLIENT_RECORD_FILING_TYPE_HISTORY: {
2
+ readonly FILING_TYPE_ID_DOES_NOT_EXIST: {
3
+ readonly message: "Parent/Sub status with id '{id}' does not exist";
4
+ readonly params: readonly ["id"];
5
+ readonly affectedFields: readonly ["filingTypeId"];
6
+ };
7
+ readonly FILING_TYPE_PARENT_REQUIRED: {
8
+ readonly message: "Parent needs to be specified for filing type 'Files under parent'";
9
+ readonly affectedFields: readonly ["parentClientId"];
10
+ };
11
+ readonly CURRENT_FILING_TYPE_PARENT_REQUIRED: {
12
+ readonly message: "Parent needs to be specified for current filing type 'Files under parent'";
13
+ readonly affectedFields: readonly ["parentClientId"];
14
+ };
15
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
16
+ readonly message: "The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.";
17
+ readonly params: readonly ["clientDateEstablished", "filingType", "filingTypeStartingDate"];
18
+ readonly affectedFields: readonly ["dateEstablished", "filingTypes"];
19
+ };
20
+ readonly NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
21
+ readonly message: "One or more Parent/Sub status have a start date which is after the client's close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.";
22
+ readonly params: readonly ["clientCloseDate", "filingType", "filingTypeStartingDate"];
23
+ readonly affectedFields: readonly ["closeDate", "filingTypes"];
24
+ };
25
+ readonly FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
26
+ readonly message: "Current Parent/Sub status Starting Date cannot be Empty";
27
+ readonly affectedFields: readonly ["filingTypeStartingDate"];
28
+ };
29
+ readonly NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
30
+ readonly message: "Parent/Sub status starting date needs to be before the ending date";
31
+ readonly affectedFields: readonly ["filingTypeStartingDate", "filingTypeEndingDate"];
32
+ };
33
+ readonly FILING_TYPES_IDS_DOES_NOT_EXIST: {
34
+ readonly message: "Parent/Sub status with ids '{ids}' do not exist";
35
+ readonly params: readonly ["ids"];
36
+ readonly affectedFields: readonly ["filingTypeId"];
37
+ };
38
+ readonly AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
39
+ readonly message: "At least one Parent/Sub status should exist";
40
+ readonly affectedFields: readonly ["filingTypes"];
41
+ };
42
+ readonly FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
43
+ readonly message: "Starting date for {filingType} cannot be empty";
44
+ readonly params: readonly ["filingType"];
45
+ readonly affectedFields: readonly ["filingTypeStartingDate"];
46
+ };
47
+ readonly NOT_ALIGNED_FILING_TYPES_STARTING_ENDING_DATE: {
48
+ readonly message: "The ending date for {filingType} must be after its starting date";
49
+ readonly params: readonly ["filingType"];
50
+ readonly affectedFields: readonly ["filingTypeStartingDate", "filingTypeEndingDate"];
51
+ };
52
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPES_STARTING_DATE: {
53
+ readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
54
+ readonly params: readonly ["clientStartDate"];
55
+ readonly affectedFields: readonly ["filingTypeStartingDate", "dateEstablished"];
56
+ };
57
+ readonly NOT_ALIGNED_CLOSE_DATE_FILING_TYPES_STARTING_DATE: {
58
+ readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
59
+ readonly params: readonly ["clientCloseDate"];
60
+ readonly affectedFields: readonly ["filingTypeStartingDate", "closeDate"];
61
+ };
62
+ readonly FILING_TYPES_DATE_GAP_DETECTED: {
63
+ readonly message: "There is a gap in the timeframes between {currentFilingType}, ending {currentFilingTypeEndDate}, and {nextFilingType}, starting {nextFilingTypeStartDate}. Please adjust the dates to fill this gap.";
64
+ readonly params: readonly ["currentFilingType", "currentFilingTypeEndDate", "nextFilingType", "nextFilingTypeStartDate"];
65
+ readonly affectedFields: readonly ["filingTypes"];
66
+ };
67
+ readonly FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
68
+ readonly message: "There are two entries for {filingType} with timeframes that immediately follow each other. {filingType} ending {firstPeriodEnd}, and {filingType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingType}. ";
69
+ readonly params: readonly ["filingType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
70
+ readonly affectedFields: readonly ["filingTypes"];
71
+ };
72
+ readonly FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
73
+ readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.";
74
+ readonly params: readonly ["dateEstablished", "earliestFilingType", "earliestFilingTypeStartDate"];
75
+ readonly affectedFields: readonly ["filingTypes", "dateEstablished"];
76
+ };
77
+ readonly FILING_TYPES_DATES_OVERLAP: {
78
+ readonly message: "The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
79
+ readonly params: readonly ["filingType", "startDate1", "endDate1", "startDate2", "endDate2"];
80
+ readonly affectedFields: readonly ["filingTypes"];
81
+ };
82
+ readonly ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
83
+ readonly message: "Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.";
84
+ readonly affectedFields: readonly ["filingTypeEndingDate"];
85
+ };
86
+ readonly CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
87
+ readonly message: "The current Parent/Sub status cannot have an end date. Please remove the end date for this state.";
88
+ readonly affectedFields: readonly ["filingTypeEndingDate"];
89
+ };
90
+ };
91
+ //# sourceMappingURL=client-record-filing-type-history.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-filing-type-history.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-filing-type-history.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFpC,CAAC"}
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLIENT_RECORD_FILING_TYPE_HISTORY = void 0;
4
+ exports.CLIENT_RECORD_FILING_TYPE_HISTORY = {
5
+ FILING_TYPE_ID_DOES_NOT_EXIST: {
6
+ message: `Parent/Sub status with id '{id}' does not exist`,
7
+ params: ['id'],
8
+ affectedFields: ['filingTypeId'],
9
+ },
10
+ FILING_TYPE_PARENT_REQUIRED: {
11
+ message: `Parent needs to be specified for filing type 'Files under parent'`,
12
+ affectedFields: ['parentClientId'],
13
+ },
14
+ CURRENT_FILING_TYPE_PARENT_REQUIRED: {
15
+ message: `Parent needs to be specified for current filing type 'Files under parent'`,
16
+ affectedFields: ['parentClientId'],
17
+ },
18
+ NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
19
+ message: `The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.`,
20
+ params: ['clientDateEstablished', 'filingType', 'filingTypeStartingDate'],
21
+ affectedFields: ['dateEstablished', 'filingTypes'],
22
+ },
23
+ NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
24
+ message: `One or more Parent/Sub status have a start date which is after the client's close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.`,
25
+ params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
26
+ affectedFields: ['closeDate', 'filingTypes'],
27
+ },
28
+ FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
29
+ message: `Current Parent/Sub status Starting Date cannot be Empty`,
30
+ affectedFields: ['filingTypeStartingDate'],
31
+ },
32
+ NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
33
+ message: `Parent/Sub status starting date needs to be before the ending date`,
34
+ affectedFields: ['filingTypeStartingDate', 'filingTypeEndingDate'],
35
+ },
36
+ FILING_TYPES_IDS_DOES_NOT_EXIST: {
37
+ message: `Parent/Sub status with ids '{ids}' do not exist`,
38
+ params: ['ids'],
39
+ affectedFields: ['filingTypeId'],
40
+ },
41
+ AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
42
+ message: `At least one Parent/Sub status should exist`,
43
+ affectedFields: ['filingTypes'],
44
+ },
45
+ FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
46
+ message: `Starting date for {filingType} cannot be empty`,
47
+ params: ['filingType'],
48
+ affectedFields: ['filingTypeStartingDate'],
49
+ },
50
+ NOT_ALIGNED_FILING_TYPES_STARTING_ENDING_DATE: {
51
+ message: `The ending date for {filingType} must be after its starting date`,
52
+ params: ['filingType'],
53
+ affectedFields: ['filingTypeStartingDate', 'filingTypeEndingDate'],
54
+ },
55
+ NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPES_STARTING_DATE: {
56
+ message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
57
+ params: ['clientStartDate'],
58
+ affectedFields: ['filingTypeStartingDate', 'dateEstablished'],
59
+ },
60
+ NOT_ALIGNED_CLOSE_DATE_FILING_TYPES_STARTING_DATE: {
61
+ message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
62
+ params: ['clientCloseDate'],
63
+ affectedFields: ['filingTypeStartingDate', 'closeDate'],
64
+ },
65
+ FILING_TYPES_DATE_GAP_DETECTED: {
66
+ message: `There is a gap in the timeframes between {currentFilingType}, ending {currentFilingTypeEndDate}, and {nextFilingType}, starting {nextFilingTypeStartDate}. Please adjust the dates to fill this gap.`,
67
+ params: ['currentFilingType', 'currentFilingTypeEndDate', 'nextFilingType', 'nextFilingTypeStartDate'],
68
+ affectedFields: ['filingTypes'],
69
+ },
70
+ FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
71
+ message: `There are two entries for {filingType} with timeframes that immediately follow each other. {filingType} ending {firstPeriodEnd}, and {filingType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingType}. `,
72
+ params: ['filingType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
73
+ affectedFields: ['filingTypes'],
74
+ },
75
+ FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
76
+ message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.`,
77
+ params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
78
+ affectedFields: ['filingTypes', 'dateEstablished'],
79
+ },
80
+ FILING_TYPES_DATES_OVERLAP: {
81
+ message: `The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
82
+ params: ['filingType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
83
+ affectedFields: ['filingTypes'],
84
+ },
85
+ ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
86
+ message: `Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.`,
87
+ affectedFields: ['filingTypeEndingDate'],
88
+ },
89
+ CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
90
+ message: `The current Parent/Sub status cannot have an end date. Please remove the end date for this state.`,
91
+ affectedFields: ['filingTypeEndingDate'],
92
+ },
93
+ };
@@ -1,4 +1,4 @@
1
- export declare const OUTSIDE_PROVIDER: {
1
+ export declare const CLIENT_RECORD_OUTSIDE_PROVIDER: {
2
2
  readonly INVALID_TYPE: {
3
3
  readonly message: "Outside provider types with ids '{ids}' do not exist";
4
4
  readonly params: readonly ["ids"];
@@ -10,4 +10,4 @@ export declare const OUTSIDE_PROVIDER: {
10
10
  readonly affectedFields: readonly ["startDate", "endDate"];
11
11
  };
12
12
  };
13
- //# sourceMappingURL=outside-provider.validation-messages.d.ts.map
13
+ //# sourceMappingURL=client-record-outside-provider.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-outside-provider.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-outside-provider.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;CAWjC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OUTSIDE_PROVIDER = void 0;
4
- exports.OUTSIDE_PROVIDER = {
3
+ exports.CLIENT_RECORD_OUTSIDE_PROVIDER = void 0;
4
+ exports.CLIENT_RECORD_OUTSIDE_PROVIDER = {
5
5
  INVALID_TYPE: {
6
6
  message: `Outside provider types with ids '{ids}' do not exist`,
7
7
  params: ['ids'],