@forwardslashns/taskit-validation-messages 1.10.7 → 1.10.9

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 (32) hide show
  1. package/dist/validation/features/account-categories.validation-messages.d.ts +1 -1
  2. package/dist/validation/features/account-categories.validation-messages.js +1 -1
  3. package/dist/validation/features/account-ids.validation-messages.d.ts +2 -2
  4. package/dist/validation/features/account-ids.validation-messages.js +2 -2
  5. package/dist/validation/features/business-activities.validation-messages.d.ts +1 -1
  6. package/dist/validation/features/business-activities.validation-messages.js +1 -1
  7. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +2 -10
  8. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts.map +1 -1
  9. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +2 -10
  10. package/dist/validation/features/client-relationships-common.validation-messages.d.ts +14 -12
  11. package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
  12. package/dist/validation/features/client-relationships-common.validation-messages.js +14 -12
  13. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +7 -7
  14. package/dist/validation/features/client-relationships-income-sources.validation-messages.js +7 -7
  15. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +7 -7
  16. package/dist/validation/features/client-relationships-owners.validation-messages.js +7 -7
  17. package/dist/validation/features/filing-categories.validation-messages.d.ts +1 -1
  18. package/dist/validation/features/filing-categories.validation-messages.js +1 -1
  19. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +1 -1
  20. package/dist/validation/features/roles-and-permissions.validation-messages.js +1 -1
  21. package/dist/validation/features/states.validation-messages.d.ts +5 -5
  22. package/dist/validation/features/states.validation-messages.js +5 -5
  23. package/dist/validation/features/templates.validation-messages.d.ts +62 -0
  24. package/dist/validation/features/templates.validation-messages.d.ts.map +1 -1
  25. package/dist/validation/features/templates.validation-messages.js +62 -0
  26. package/dist/validation/features/users.validation-messages.d.ts +2 -2
  27. package/dist/validation/features/users.validation-messages.js +2 -2
  28. package/dist/validation/validation-messages.d.ts +105 -49
  29. package/dist/validation/validation-messages.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/publish.js +36 -0
  32. package/src/validation/features/templates.validation-messages.ts +64 -0
@@ -56,6 +56,68 @@ export declare const TEMPLATES: {
56
56
  readonly message: "Invalid associated setup template";
57
57
  readonly affectedFields: readonly ["associatedSetupTemplate"];
58
58
  };
59
+ readonly FILING_TYPE_REQUIRED: {
60
+ readonly message: "Filing type is required";
61
+ readonly affectedFields: readonly ["filingTypeId"];
62
+ };
63
+ readonly INVALID_FILING_TYPE: {
64
+ readonly message: "Invalid filing type";
65
+ readonly affectedFields: readonly ["filingTypeId"];
66
+ };
67
+ readonly STATE_REQUIRED: {
68
+ readonly message: "State is required";
69
+ readonly affectedFields: readonly ["stateId"];
70
+ };
71
+ readonly INVALID_STATE: {
72
+ readonly message: "Invalid state";
73
+ readonly affectedFields: readonly ["stateId"];
74
+ };
75
+ readonly FILING_STATUS_REQUIRED: {
76
+ readonly message: "Sub/Parent status is required when filing type is Income tax";
77
+ readonly affectedFields: readonly ["filingStatusId"];
78
+ };
79
+ readonly INVALID_FILING_STATUS: {
80
+ readonly message: "Invalid filing status";
81
+ readonly affectedFields: readonly ["filingStatusId"];
82
+ };
83
+ readonly FILES_UNDER_REQUIRED: {
84
+ readonly message: "Files under is required when Sub/Parent status is \"Files under parent\"";
85
+ readonly affectedFields: readonly ["filesUnder"];
86
+ };
87
+ readonly INVALID_FILES_UNDER: {
88
+ readonly message: "The selected parent filing does not exist";
89
+ readonly affectedFields: readonly ["filesUnder"];
90
+ };
91
+ readonly FILES_UNDER_MUST_BE_FILING: {
92
+ readonly message: "The selected parent must be a Filing template";
93
+ readonly affectedFields: readonly ["filesUnder"];
94
+ };
95
+ readonly FILES_UNDER_MUST_BE_INCOME_TAX: {
96
+ readonly message: "A parent filing must be an 'Income tax' filing. {parentName} is set to {parentFilingType}. Please select a parent filing with 'Filing type' set to 'Income tax'.";
97
+ readonly params: readonly ["parentName", "parentFilingType"];
98
+ readonly affectedFields: readonly ["filesUnder"];
99
+ };
100
+ readonly FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
101
+ readonly message: "A parent filing must be on an annual recurrence. {parentName} does not have an annual recurrence setup. Please add an annual recurrence for {parentName}, or select a different parent filing.";
102
+ readonly params: readonly ["parentName"];
103
+ readonly affectedFields: readonly ["filesUnder"];
104
+ };
105
+ readonly TAX_PAYMENT_FILING_REQUIRED: {
106
+ readonly message: "Tax payment filing is required";
107
+ readonly affectedFields: readonly ["taxPaymentFilingId"];
108
+ };
109
+ readonly INVALID_TAX_PAYMENT_FILING: {
110
+ readonly message: "The selected tax payment filing does not exist";
111
+ readonly affectedFields: readonly ["taxPaymentFilingId"];
112
+ };
113
+ readonly TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
114
+ readonly message: "The selected tax payment filing must be a Filing type template";
115
+ readonly affectedFields: readonly ["taxPaymentFilingId"];
116
+ };
117
+ readonly SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
118
+ readonly message: "The selected associated setup template must be a Setup type template";
119
+ readonly affectedFields: readonly ["associatedSetupTemplateId"];
120
+ };
59
121
  readonly OPTION_IN_USE: {
60
122
  readonly message: "This template is currently in use and cannot be deleted";
61
123
  readonly affectedFields: readonly [];
@@ -1 +1 @@
1
- {"version":3,"file":"templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/templates.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEZ,CAAC"}
1
+ {"version":3,"file":"templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/templates.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkIZ,CAAC"}
@@ -59,6 +59,68 @@ exports.TEMPLATES = {
59
59
  message: 'Invalid associated setup template',
60
60
  affectedFields: ['associatedSetupTemplate'],
61
61
  },
62
+ FILING_TYPE_REQUIRED: {
63
+ message: 'Filing type is required',
64
+ affectedFields: ['filingTypeId'],
65
+ },
66
+ INVALID_FILING_TYPE: {
67
+ message: 'Invalid filing type',
68
+ affectedFields: ['filingTypeId'],
69
+ },
70
+ STATE_REQUIRED: {
71
+ message: 'State is required',
72
+ affectedFields: ['stateId'],
73
+ },
74
+ INVALID_STATE: {
75
+ message: 'Invalid state',
76
+ affectedFields: ['stateId'],
77
+ },
78
+ FILING_STATUS_REQUIRED: {
79
+ message: 'Sub/Parent status is required when filing type is Income tax',
80
+ affectedFields: ['filingStatusId'],
81
+ },
82
+ INVALID_FILING_STATUS: {
83
+ message: 'Invalid filing status',
84
+ affectedFields: ['filingStatusId'],
85
+ },
86
+ FILES_UNDER_REQUIRED: {
87
+ message: 'Files under is required when Sub/Parent status is "Files under parent"',
88
+ affectedFields: ['filesUnder'],
89
+ },
90
+ INVALID_FILES_UNDER: {
91
+ message: 'The selected parent filing does not exist',
92
+ affectedFields: ['filesUnder'],
93
+ },
94
+ FILES_UNDER_MUST_BE_FILING: {
95
+ message: 'The selected parent must be a Filing template',
96
+ affectedFields: ['filesUnder'],
97
+ },
98
+ FILES_UNDER_MUST_BE_INCOME_TAX: {
99
+ message: "A parent filing must be an 'Income tax' filing. {parentName} is set to {parentFilingType}. Please select a parent filing with 'Filing type' set to 'Income tax'.",
100
+ params: ['parentName', 'parentFilingType'],
101
+ affectedFields: ['filesUnder'],
102
+ },
103
+ FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
104
+ message: 'A parent filing must be on an annual recurrence. {parentName} does not have an annual recurrence setup. Please add an annual recurrence for {parentName}, or select a different parent filing.',
105
+ params: ['parentName'],
106
+ affectedFields: ['filesUnder'],
107
+ },
108
+ TAX_PAYMENT_FILING_REQUIRED: {
109
+ message: 'Tax payment filing is required',
110
+ affectedFields: ['taxPaymentFilingId'],
111
+ },
112
+ INVALID_TAX_PAYMENT_FILING: {
113
+ message: 'The selected tax payment filing does not exist',
114
+ affectedFields: ['taxPaymentFilingId'],
115
+ },
116
+ TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
117
+ message: 'The selected tax payment filing must be a Filing type template',
118
+ affectedFields: ['taxPaymentFilingId'],
119
+ },
120
+ SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
121
+ message: 'The selected associated setup template must be a Setup type template',
122
+ affectedFields: ['associatedSetupTemplateId'],
123
+ },
62
124
  OPTION_IN_USE: {
63
125
  message: 'This template is currently in use and cannot be deleted',
64
126
  affectedFields: [],
@@ -2,7 +2,7 @@ export declare const USERS: {
2
2
  readonly USERNAME_DOES_NOT_EXIST: {
3
3
  readonly message: "User with username {username} does not exist.";
4
4
  readonly params: readonly ["username"];
5
- readonly affectedFields: readonly ["username"];
5
+ readonly affectedFields: readonly ["userName"];
6
6
  };
7
7
  readonly INVALID_PASSWORD: {
8
8
  readonly message: "User with username {username} password does not match.";
@@ -24,7 +24,7 @@ export declare const USERS: {
24
24
  readonly USERNAME_ALREADY_EXISTS: {
25
25
  readonly message: "User with username '{username}' already exists";
26
26
  readonly params: readonly ["username"];
27
- readonly affectedFields: readonly ["username"];
27
+ readonly affectedFields: readonly ["userName"];
28
28
  };
29
29
  readonly EMAIL_ALREADY_EXISTS: {
30
30
  readonly message: "User with email '{email}' already exists";
@@ -5,7 +5,7 @@ exports.USERS = {
5
5
  USERNAME_DOES_NOT_EXIST: {
6
6
  message: `User with username {username} does not exist.`,
7
7
  params: ['username'],
8
- affectedFields: ['username'],
8
+ affectedFields: ['userName'],
9
9
  },
10
10
  INVALID_PASSWORD: {
11
11
  message: `User with username {username} password does not match.`,
@@ -27,7 +27,7 @@ exports.USERS = {
27
27
  USERNAME_ALREADY_EXISTS: {
28
28
  message: `User with username '{username}' already exists`,
29
29
  params: ['username'],
30
- affectedFields: ['username'],
30
+ affectedFields: ['userName'],
31
31
  },
32
32
  EMAIL_ALREADY_EXISTS: {
33
33
  message: `User with email '{email}' already exists`,
@@ -12,7 +12,7 @@ export declare const VALIDATION_MESSAGES: {
12
12
  readonly NAME_ALREADY_EXISTS: {
13
13
  readonly message: "Account category with the same name '{name}' already exists";
14
14
  readonly params: readonly ["name"];
15
- readonly affectedFields: readonly ["name"];
15
+ readonly affectedFields: readonly ["accountCategory"];
16
16
  };
17
17
  readonly OPTION_IN_USE: {
18
18
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -32,12 +32,12 @@ export declare const VALIDATION_MESSAGES: {
32
32
  readonly NAME_ALREADY_EXISTS: {
33
33
  readonly message: "Account id with the same name '{name}' already exists";
34
34
  readonly params: readonly ["name"];
35
- readonly affectedFields: readonly ["name"];
35
+ readonly affectedFields: readonly ["accountId"];
36
36
  };
37
37
  readonly ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
38
38
  readonly message: "Account category does not exist";
39
39
  readonly params: readonly ["id"];
40
- readonly affectedFields: readonly ["accountCategoryId"];
40
+ readonly affectedFields: readonly ["accountCategory"];
41
41
  };
42
42
  readonly OPTION_IN_USE: {
43
43
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -118,7 +118,7 @@ export declare const VALIDATION_MESSAGES: {
118
118
  readonly NAME_ALREADY_EXISTS: {
119
119
  readonly message: "Business activity with the same name '{name}' already exists.";
120
120
  readonly params: readonly ["name"];
121
- readonly affectedFields: readonly ["name"];
121
+ readonly affectedFields: readonly ["bussinesActivity"];
122
122
  };
123
123
  readonly OPTION_IN_USE: {
124
124
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -481,14 +481,6 @@ export declare const VALIDATION_MESSAGES: {
481
481
  readonly params: readonly ["id"];
482
482
  readonly affectedFields: readonly ["filingStatus"];
483
483
  };
484
- readonly FILING_STATUS_PARENT_REQUIRED: {
485
- readonly message: "Parent needs to be specified for filing status 'Files under parent'";
486
- readonly affectedFields: readonly ["currentParent"];
487
- };
488
- readonly CURRENT_FILING_STATUS_PARENT_REQUIRED: {
489
- readonly message: "Parent needs to be specified for current filing status 'Files under parent'";
490
- readonly affectedFields: readonly ["currentParent"];
491
- };
492
484
  readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
493
485
  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.";
494
486
  readonly params: readonly ["clientDateEstablished", "filingStatus", "filingStatusStartingDate"];
@@ -547,8 +539,8 @@ export declare const VALIDATION_MESSAGES: {
547
539
  readonly affectedFields: readonly ["filingStatus"];
548
540
  };
549
541
  readonly FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
550
- readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start date of {earliestFilingStatus} ({earliestFilingStatusStartDate}). Please ensure that the status of one Sub/Parent status matches the client's date established.";
551
- readonly params: readonly ["dateEstablished", "earliestFilingStatus", "earliestFilingStatusStartDate"];
542
+ 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.";
543
+ readonly params: readonly ["dateEstablished", "earliestFilingStatusStartDate"];
552
544
  readonly affectedFields: readonly ["filingStatus", "dateEstablished"];
553
545
  };
554
546
  readonly FILING_STATUSES_DATES_OVERLAP: {
@@ -651,12 +643,12 @@ export declare const VALIDATION_MESSAGES: {
651
643
  readonly CLIENT_RELATIONSHIPS_COMMON: {
652
644
  readonly CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
653
645
  readonly message: "A client cannot have a relationship with itself.";
654
- readonly affectedFields: readonly ["relatedClientId"];
646
+ readonly affectedFields: readonly ["relatedClient"];
655
647
  };
656
648
  readonly INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
657
649
  readonly message: "{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.";
658
650
  readonly params: readonly ["clientName", "entityType", "relationshipType"];
659
- readonly affectedFields: readonly ["relationshipTypeId"];
651
+ readonly affectedFields: readonly ["relationshipType"];
660
652
  };
661
653
  readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
662
654
  readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
@@ -684,32 +676,34 @@ export declare const VALIDATION_MESSAGES: {
684
676
  readonly affectedFields: readonly ["endingDate"];
685
677
  };
686
678
  readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
687
- readonly message: "Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.";
688
- readonly params: readonly ["clientCloseDate"];
679
+ readonly message: "{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.";
680
+ readonly params: readonly ["clientName", "clientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
689
681
  readonly affectedFields: readonly ["endingDate"];
690
682
  };
691
683
  readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
692
- readonly message: "Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.";
693
- readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
684
+ readonly message: "{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.";
685
+ readonly params: readonly ["relatedClientName", "relatedClientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
694
686
  readonly affectedFields: readonly ["endingDate"];
695
687
  };
696
688
  readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
697
- readonly message: "The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
698
- readonly affectedFields: readonly ["final"];
689
+ readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.";
690
+ readonly params: readonly ["clientName", "relatedClientName", "clientCloseDate"];
691
+ readonly affectedFields: readonly ["endingDate", "final"];
699
692
  };
700
693
  readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
701
- readonly message: "The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
702
- readonly affectedFields: readonly ["final"];
694
+ readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.";
695
+ readonly params: readonly ["clientName", "relatedClientName", "relatedClientCloseDate"];
696
+ readonly affectedFields: readonly ["endingDate", "final"];
703
697
  };
704
698
  readonly CIRCULAR_RELATIONSHIP_DETECTED: {
705
699
  readonly message: "{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.";
706
700
  readonly params: readonly ["clientName", "relatedClientName", "relationshipType"];
707
- readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
701
+ readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
708
702
  };
709
703
  readonly CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
710
704
  readonly message: "{relatedClientName} cannot be associated with {clientName} more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.";
711
705
  readonly params: readonly ["relatedClientName", "clientName"];
712
- readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
706
+ readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
713
707
  };
714
708
  readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
715
709
  readonly message: "There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.";
@@ -720,7 +714,7 @@ export declare const VALIDATION_MESSAGES: {
720
714
  readonly CLIENT_RELATIONSHIPS_OWNERS: {
721
715
  readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
722
716
  readonly message: "A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.";
723
- readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
717
+ readonly affectedFields: readonly ["relationshipType", "filingStatus"];
724
718
  };
725
719
  readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
726
720
  readonly message: "All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.";
@@ -729,28 +723,28 @@ export declare const VALIDATION_MESSAGES: {
729
723
  readonly MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
730
724
  readonly message: "There can only be one parent relationship associated to a client during the same timeframe. There is a current parent relationship with {parentRelatedClientName} starting {relationshipStarting}. Please add an end date to that relationship before adding a new one.";
731
725
  readonly params: readonly ["parentRelatedClientName", "relationshipStarting"];
732
- readonly affectedFields: readonly ["relationshipTypeId", "startingDate"];
726
+ readonly affectedFields: readonly ["relationshipType", "startingDate"];
733
727
  };
734
728
  readonly PARENT_CANNOT_BE_SUB_ENTITY: {
735
729
  readonly message: "{relatedClientName} cannot be the parent of {clientName}, since it is filing as a sub-entity under another parent during this timeframe. Please adjust the timeframe or select a different relationship type.";
736
730
  readonly params: readonly ["relatedClientName", "clientName"];
737
- readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId", "startingDate", "endingDate"];
731
+ readonly affectedFields: readonly ["relatedClient", "relationshipType", "startingDate", "endingDate"];
738
732
  };
739
733
  readonly PARENT_ENTITY_TYPE_MISMATCH: {
740
734
  readonly message: "A parent entity must be the same entity type as the client during the relationship's timeframe. Please select a different relationship type or update either client's entity type.";
741
- readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
735
+ readonly affectedFields: readonly ["relatedClient", "relationshipType"];
742
736
  };
743
737
  readonly PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
744
738
  readonly message: "A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.";
745
- readonly affectedFields: readonly ["profit", "relationshipTypeId"];
739
+ readonly affectedFields: readonly ["profit", "relationshipType"];
746
740
  };
747
741
  readonly PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
748
742
  readonly message: "A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.";
749
- readonly affectedFields: readonly ["loss", "relationshipTypeId"];
743
+ readonly affectedFields: readonly ["loss", "relationshipType"];
750
744
  };
751
745
  readonly PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
752
746
  readonly message: "A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.";
753
- readonly affectedFields: readonly ["capital", "relationshipTypeId"];
747
+ readonly affectedFields: readonly ["capital", "relationshipType"];
754
748
  };
755
749
  readonly SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
756
750
  readonly message: "A shareholder relationship that issues a K1 must have a profit percentage greater than 0%. Please enter a profit percentage, or change Issues K1 to 'No'.";
@@ -793,27 +787,27 @@ export declare const VALIDATION_MESSAGES: {
793
787
  readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
794
788
  readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
795
789
  readonly params: readonly ["clientName", "parentClientName"];
796
- readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
790
+ readonly affectedFields: readonly ["relationshipType", "startingDate", "endingDate"];
797
791
  };
798
792
  readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
799
793
  readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
800
- readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
794
+ readonly affectedFields: readonly ["relationshipType", "filingStatus"];
801
795
  };
802
796
  readonly SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
803
797
  readonly message: "A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.";
804
- readonly affectedFields: readonly ["profit", "relationshipTypeId"];
798
+ readonly affectedFields: readonly ["profit", "relationshipType"];
805
799
  };
806
800
  readonly SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
807
801
  readonly message: "A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.";
808
- readonly affectedFields: readonly ["loss", "relationshipTypeId"];
802
+ readonly affectedFields: readonly ["loss", "relationshipType"];
809
803
  };
810
804
  readonly SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
811
805
  readonly message: "A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.";
812
- readonly affectedFields: readonly ["capital", "relationshipTypeId"];
806
+ readonly affectedFields: readonly ["capital", "relationshipType"];
813
807
  };
814
808
  readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
815
809
  readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
816
- readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
810
+ readonly affectedFields: readonly ["relatedClient", "relationshipType"];
817
811
  };
818
812
  readonly K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
819
813
  readonly message: "A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
@@ -842,7 +836,7 @@ export declare const VALIDATION_MESSAGES: {
842
836
  readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
843
837
  readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
844
838
  readonly params: readonly ["relatedClient", "entityType"];
845
- readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
839
+ readonly affectedFields: readonly ["relatedClient", "relationshipType"];
846
840
  };
847
841
  readonly INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
848
842
  readonly message: "The ownership percentages for {relatedClient}'s profit exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
@@ -873,7 +867,7 @@ export declare const VALIDATION_MESSAGES: {
873
867
  readonly NAME_ALREADY_EXISTS: {
874
868
  readonly message: "Filing category with the same name '{name}' already exists";
875
869
  readonly params: readonly ["name"];
876
- readonly affectedFields: readonly ["name"];
870
+ readonly affectedFields: readonly ["filingCategory"];
877
871
  };
878
872
  readonly OPTION_IN_USE: {
879
873
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -898,7 +892,7 @@ export declare const VALIDATION_MESSAGES: {
898
892
  readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
899
893
  readonly message: "State type does not exist";
900
894
  readonly params: readonly ["id"];
901
- readonly affectedFields: readonly ["stateTypeId"];
895
+ readonly affectedFields: readonly ["stateType"];
902
896
  };
903
897
  readonly IS_PARENT_OF_OTHER_STATES: {
904
898
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -907,21 +901,21 @@ export declare const VALIDATION_MESSAGES: {
907
901
  readonly PARENT_ID_DOES_NOT_EXIST: {
908
902
  readonly message: "Parent state does not exist";
909
903
  readonly params: readonly ["id"];
910
- readonly affectedFields: readonly ["parentId"];
904
+ readonly affectedFields: readonly ["parent"];
911
905
  };
912
906
  readonly NATION_PARENT_TYPE_NOT_ALLOWED: {
913
907
  readonly message: "Nation cannot have associated parent.";
914
- readonly affectedFields: readonly ["parentId"];
908
+ readonly affectedFields: readonly ["parent"];
915
909
  };
916
910
  readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
917
911
  readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
918
912
  readonly params: readonly ["stateName"];
919
- readonly affectedFields: readonly ["parentId"];
913
+ readonly affectedFields: readonly ["parent"];
920
914
  };
921
915
  readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
922
916
  readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
923
917
  readonly params: readonly ["cityName"];
924
- readonly affectedFields: readonly ["parentId"];
918
+ readonly affectedFields: readonly ["parent"];
925
919
  };
926
920
  readonly OPTION_IN_USE: {
927
921
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -932,7 +926,7 @@ export declare const VALIDATION_MESSAGES: {
932
926
  readonly USERNAME_DOES_NOT_EXIST: {
933
927
  readonly message: "User with username {username} does not exist.";
934
928
  readonly params: readonly ["username"];
935
- readonly affectedFields: readonly ["username"];
929
+ readonly affectedFields: readonly ["userName"];
936
930
  };
937
931
  readonly INVALID_PASSWORD: {
938
932
  readonly message: "User with username {username} password does not match.";
@@ -954,7 +948,7 @@ export declare const VALIDATION_MESSAGES: {
954
948
  readonly USERNAME_ALREADY_EXISTS: {
955
949
  readonly message: "User with username '{username}' already exists";
956
950
  readonly params: readonly ["username"];
957
- readonly affectedFields: readonly ["username"];
951
+ readonly affectedFields: readonly ["userName"];
958
952
  };
959
953
  readonly EMAIL_ALREADY_EXISTS: {
960
954
  readonly message: "User with email '{email}' already exists";
@@ -1007,7 +1001,7 @@ export declare const VALIDATION_MESSAGES: {
1007
1001
  readonly PERMISSION_DOES_NOT_EXIST: {
1008
1002
  readonly message: "Permission does not exist";
1009
1003
  readonly params: readonly ["permissionId"];
1010
- readonly affectedFields: readonly ["permissionId"];
1004
+ readonly affectedFields: readonly ["permissionIds"];
1011
1005
  };
1012
1006
  readonly ROLE_HAS_ASSIGNED_USERS: {
1013
1007
  readonly message: "Cannot delete role with name '{roleName}' because it has users assigned to it";
@@ -1122,6 +1116,68 @@ export declare const VALIDATION_MESSAGES: {
1122
1116
  readonly message: "Invalid associated setup template";
1123
1117
  readonly affectedFields: readonly ["associatedSetupTemplate"];
1124
1118
  };
1119
+ readonly FILING_TYPE_REQUIRED: {
1120
+ readonly message: "Filing type is required";
1121
+ readonly affectedFields: readonly ["filingTypeId"];
1122
+ };
1123
+ readonly INVALID_FILING_TYPE: {
1124
+ readonly message: "Invalid filing type";
1125
+ readonly affectedFields: readonly ["filingTypeId"];
1126
+ };
1127
+ readonly STATE_REQUIRED: {
1128
+ readonly message: "State is required";
1129
+ readonly affectedFields: readonly ["stateId"];
1130
+ };
1131
+ readonly INVALID_STATE: {
1132
+ readonly message: "Invalid state";
1133
+ readonly affectedFields: readonly ["stateId"];
1134
+ };
1135
+ readonly FILING_STATUS_REQUIRED: {
1136
+ readonly message: "Sub/Parent status is required when filing type is Income tax";
1137
+ readonly affectedFields: readonly ["filingStatusId"];
1138
+ };
1139
+ readonly INVALID_FILING_STATUS: {
1140
+ readonly message: "Invalid filing status";
1141
+ readonly affectedFields: readonly ["filingStatusId"];
1142
+ };
1143
+ readonly FILES_UNDER_REQUIRED: {
1144
+ readonly message: "Files under is required when Sub/Parent status is \"Files under parent\"";
1145
+ readonly affectedFields: readonly ["filesUnder"];
1146
+ };
1147
+ readonly INVALID_FILES_UNDER: {
1148
+ readonly message: "The selected parent filing does not exist";
1149
+ readonly affectedFields: readonly ["filesUnder"];
1150
+ };
1151
+ readonly FILES_UNDER_MUST_BE_FILING: {
1152
+ readonly message: "The selected parent must be a Filing template";
1153
+ readonly affectedFields: readonly ["filesUnder"];
1154
+ };
1155
+ readonly FILES_UNDER_MUST_BE_INCOME_TAX: {
1156
+ readonly message: "A parent filing must be an 'Income tax' filing. {parentName} is set to {parentFilingType}. Please select a parent filing with 'Filing type' set to 'Income tax'.";
1157
+ readonly params: readonly ["parentName", "parentFilingType"];
1158
+ readonly affectedFields: readonly ["filesUnder"];
1159
+ };
1160
+ readonly FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
1161
+ readonly message: "A parent filing must be on an annual recurrence. {parentName} does not have an annual recurrence setup. Please add an annual recurrence for {parentName}, or select a different parent filing.";
1162
+ readonly params: readonly ["parentName"];
1163
+ readonly affectedFields: readonly ["filesUnder"];
1164
+ };
1165
+ readonly TAX_PAYMENT_FILING_REQUIRED: {
1166
+ readonly message: "Tax payment filing is required";
1167
+ readonly affectedFields: readonly ["taxPaymentFilingId"];
1168
+ };
1169
+ readonly INVALID_TAX_PAYMENT_FILING: {
1170
+ readonly message: "The selected tax payment filing does not exist";
1171
+ readonly affectedFields: readonly ["taxPaymentFilingId"];
1172
+ };
1173
+ readonly TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
1174
+ readonly message: "The selected tax payment filing must be a Filing type template";
1175
+ readonly affectedFields: readonly ["taxPaymentFilingId"];
1176
+ };
1177
+ readonly SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
1178
+ readonly message: "The selected associated setup template must be a Setup type template";
1179
+ readonly affectedFields: readonly ["associatedSetupTemplateId"];
1180
+ };
1125
1181
  readonly OPTION_IN_USE: {
1126
1182
  readonly message: "This template is currently in use and cannot be deleted";
1127
1183
  readonly affectedFields: readonly [];
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.7",
3
+ "version": "1.10.9",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
package/publish.js CHANGED
@@ -2,6 +2,16 @@ const { execSync } = require('child_process');
2
2
  const fs = require('fs');
3
3
  const path = require('path');
4
4
 
5
+ const bumpPatchVersion = () => {
6
+ const pkgPath = path.resolve(__dirname, 'package.json');
7
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
8
+ const [major, minor, patch] = pkg.version.split('.').map(Number);
9
+ pkg.version = `${major}.${minor}.${patch + 1}`;
10
+ fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
11
+ console.log(`Version bumped to ${pkg.version}`);
12
+ return pkg.version;
13
+ };
14
+
5
15
  const loadEnvironmentVariables = () => {
6
16
  const envPath = path.resolve(__dirname, '.env');
7
17
  if (fs.existsSync(envPath)) {
@@ -33,6 +43,28 @@ const validateToken = () => {
33
43
  console.log('NPM_TOKEN verified.');
34
44
  };
35
45
 
46
+ const updateLockFile = () => {
47
+ try {
48
+ console.log('Updating package-lock.json...');
49
+ execSync('npm install', { stdio: 'inherit', cwd: __dirname });
50
+ console.log('package-lock.json updated.');
51
+ } catch (error) {
52
+ console.error('\x1b[31mFailed to update package-lock.json.\x1b[0m');
53
+ process.exit(1);
54
+ }
55
+ };
56
+
57
+ const executeBuild = () => {
58
+ try {
59
+ console.log('Building dist...');
60
+ execSync('pnpm build', { stdio: 'inherit', cwd: __dirname });
61
+ console.log('Build complete.');
62
+ } catch (error) {
63
+ console.error('\x1b[31mBuild failed.\x1b[0m');
64
+ process.exit(1);
65
+ }
66
+ };
67
+
36
68
  const executePublish = () => {
37
69
  try {
38
70
  console.log('Starting publish process (skipping git checks)...');
@@ -50,7 +82,11 @@ const executePublish = () => {
50
82
  const main = () => {
51
83
  loadEnvironmentVariables();
52
84
  validateToken();
85
+ const newVersion = bumpPatchVersion();
86
+ updateLockFile();
87
+ executeBuild();
53
88
  executePublish();
89
+ console.log(`\x1b[32mPublished version ${newVersion}. Run "pnpm install" in consuming projects to update.\x1b[0m`);
54
90
  };
55
91
 
56
92
  main();