@forwardslashns/taskit-validation-messages 1.10.7 → 1.10.8

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 (28) 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/users.validation-messages.d.ts +2 -2
  24. package/dist/validation/features/users.validation-messages.js +2 -2
  25. package/dist/validation/validation-messages.d.ts +43 -49
  26. package/dist/validation/validation-messages.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/publish.js +36 -0
@@ -11,7 +11,7 @@ export declare const ACCOUNT_CATEGORIES: {
11
11
  readonly NAME_ALREADY_EXISTS: {
12
12
  readonly message: "Account category with the same name '{name}' already exists";
13
13
  readonly params: readonly ["name"];
14
- readonly affectedFields: readonly ["name"];
14
+ readonly affectedFields: readonly ["accountCategory"];
15
15
  };
16
16
  readonly OPTION_IN_USE: {
17
17
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -14,7 +14,7 @@ exports.ACCOUNT_CATEGORIES = {
14
14
  NAME_ALREADY_EXISTS: {
15
15
  message: `Account category with the same name '{name}' already exists`,
16
16
  params: ['name'],
17
- affectedFields: ['name'],
17
+ affectedFields: ['accountCategory'],
18
18
  },
19
19
  OPTION_IN_USE: {
20
20
  message: `This option is currently in use and cannot be deleted.`,
@@ -11,12 +11,12 @@ export declare const ACCOUNT_IDS: {
11
11
  readonly NAME_ALREADY_EXISTS: {
12
12
  readonly message: "Account id with the same name '{name}' already exists";
13
13
  readonly params: readonly ["name"];
14
- readonly affectedFields: readonly ["name"];
14
+ readonly affectedFields: readonly ["accountId"];
15
15
  };
16
16
  readonly ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
17
17
  readonly message: "Account category does not exist";
18
18
  readonly params: readonly ["id"];
19
- readonly affectedFields: readonly ["accountCategoryId"];
19
+ readonly affectedFields: readonly ["accountCategory"];
20
20
  };
21
21
  readonly OPTION_IN_USE: {
22
22
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -14,12 +14,12 @@ exports.ACCOUNT_IDS = {
14
14
  NAME_ALREADY_EXISTS: {
15
15
  message: `Account id with the same name '{name}' already exists`,
16
16
  params: ['name'],
17
- affectedFields: ['name'],
17
+ affectedFields: ['accountId'],
18
18
  },
19
19
  ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
20
20
  message: `Account category does not exist`,
21
21
  params: ['id'],
22
- affectedFields: ['accountCategoryId'],
22
+ affectedFields: ['accountCategory'],
23
23
  },
24
24
  OPTION_IN_USE: {
25
25
  message: `This option is currently in use and cannot be deleted.`,
@@ -11,7 +11,7 @@ export declare const BUSINESS_ACTIVITIES: {
11
11
  readonly NAME_ALREADY_EXISTS: {
12
12
  readonly message: "Business activity with the same name '{name}' already exists.";
13
13
  readonly params: readonly ["name"];
14
- readonly affectedFields: readonly ["name"];
14
+ readonly affectedFields: readonly ["bussinesActivity"];
15
15
  };
16
16
  readonly OPTION_IN_USE: {
17
17
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -14,7 +14,7 @@ exports.BUSINESS_ACTIVITIES = {
14
14
  NAME_ALREADY_EXISTS: {
15
15
  message: `Business activity with the same name '{name}' already exists.`,
16
16
  params: ['name'],
17
- affectedFields: ['name'],
17
+ affectedFields: ['bussinesActivity'],
18
18
  },
19
19
  OPTION_IN_USE: {
20
20
  message: `This option is currently in use and cannot be deleted.`,
@@ -4,14 +4,6 @@ export declare const CLIENT_RECORDS_FILING_STATUSES: {
4
4
  readonly params: readonly ["id"];
5
5
  readonly affectedFields: readonly ["filingStatus"];
6
6
  };
7
- readonly FILING_STATUS_PARENT_REQUIRED: {
8
- readonly message: "Parent needs to be specified for filing status 'Files under parent'";
9
- readonly affectedFields: readonly ["currentParent"];
10
- };
11
- readonly CURRENT_FILING_STATUS_PARENT_REQUIRED: {
12
- readonly message: "Parent needs to be specified for current filing status 'Files under parent'";
13
- readonly affectedFields: readonly ["currentParent"];
14
- };
15
7
  readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
16
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.";
17
9
  readonly params: readonly ["clientDateEstablished", "filingStatus", "filingStatusStartingDate"];
@@ -70,8 +62,8 @@ export declare const CLIENT_RECORDS_FILING_STATUSES: {
70
62
  readonly affectedFields: readonly ["filingStatus"];
71
63
  };
72
64
  readonly FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
73
- 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.";
74
- readonly params: readonly ["dateEstablished", "earliestFilingStatus", "earliestFilingStatusStartDate"];
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"];
75
67
  readonly affectedFields: readonly ["filingStatus", "dateEstablished"];
76
68
  };
77
69
  readonly FILING_STATUSES_DATES_OVERLAP: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFjC,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":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFjC,CAAC"}
@@ -7,14 +7,6 @@ exports.CLIENT_RECORDS_FILING_STATUSES = {
7
7
  params: ['id'],
8
8
  affectedFields: ['filingStatus'],
9
9
  },
10
- FILING_STATUS_PARENT_REQUIRED: {
11
- message: `Parent needs to be specified for filing status 'Files under parent'`,
12
- affectedFields: ['currentParent'],
13
- },
14
- CURRENT_FILING_STATUS_PARENT_REQUIRED: {
15
- message: `Parent needs to be specified for current filing status 'Files under parent'`,
16
- affectedFields: ['currentParent'],
17
- },
18
10
  NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
19
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.`,
20
12
  params: ['clientDateEstablished', 'filingStatus', 'filingStatusStartingDate'],
@@ -73,8 +65,8 @@ exports.CLIENT_RECORDS_FILING_STATUSES = {
73
65
  affectedFields: ['filingStatus'],
74
66
  },
75
67
  FILING_STATUS_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
76
- 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.`,
77
- params: ['dateEstablished', 'earliestFilingStatus', 'earliestFilingStatusStartDate'],
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.`,
69
+ params: ['dateEstablished', 'earliestFilingStatusStartDate'],
78
70
  affectedFields: ['filingStatus', 'dateEstablished'],
79
71
  },
80
72
  FILING_STATUSES_DATES_OVERLAP: {
@@ -1,12 +1,12 @@
1
1
  export declare const CLIENT_RELATIONSHIPS_COMMON: {
2
2
  readonly CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
3
3
  readonly message: "A client cannot have a relationship with itself.";
4
- readonly affectedFields: readonly ["relatedClientId"];
4
+ readonly affectedFields: readonly ["relatedClient"];
5
5
  };
6
6
  readonly INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
7
7
  readonly message: "{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.";
8
8
  readonly params: readonly ["clientName", "entityType", "relationshipType"];
9
- readonly affectedFields: readonly ["relationshipTypeId"];
9
+ readonly affectedFields: readonly ["relationshipType"];
10
10
  };
11
11
  readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
12
12
  readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
@@ -34,32 +34,34 @@ export declare const CLIENT_RELATIONSHIPS_COMMON: {
34
34
  readonly affectedFields: readonly ["endingDate"];
35
35
  };
36
36
  readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
37
- readonly message: "Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.";
38
- readonly params: readonly ["clientCloseDate"];
37
+ 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.";
38
+ readonly params: readonly ["clientName", "clientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
39
39
  readonly affectedFields: readonly ["endingDate"];
40
40
  };
41
41
  readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
42
- readonly message: "Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.";
43
- readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
42
+ 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.";
43
+ readonly params: readonly ["relatedClientName", "relatedClientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
44
44
  readonly affectedFields: readonly ["endingDate"];
45
45
  };
46
46
  readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
47
- 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.";
48
- readonly affectedFields: readonly ["final"];
47
+ 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.";
48
+ readonly params: readonly ["clientName", "relatedClientName", "clientCloseDate"];
49
+ readonly affectedFields: readonly ["endingDate", "final"];
49
50
  };
50
51
  readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
51
- 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.";
52
- readonly affectedFields: readonly ["final"];
52
+ 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.";
53
+ readonly params: readonly ["clientName", "relatedClientName", "relatedClientCloseDate"];
54
+ readonly affectedFields: readonly ["endingDate", "final"];
53
55
  };
54
56
  readonly CIRCULAR_RELATIONSHIP_DETECTED: {
55
57
  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.";
56
58
  readonly params: readonly ["clientName", "relatedClientName", "relationshipType"];
57
- readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
59
+ readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
58
60
  };
59
61
  readonly CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
60
62
  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.";
61
63
  readonly params: readonly ["relatedClientName", "clientName"];
62
- readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
64
+ readonly affectedFields: readonly ["relationshipType", "relatedClient", "startingDate", "endingDate"];
63
65
  };
64
66
  readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
65
67
  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.";
@@ -1 +1 @@
1
- {"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoE9B,CAAC"}
1
+ {"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsE9B,CAAC"}
@@ -4,12 +4,12 @@ exports.CLIENT_RELATIONSHIPS_COMMON = void 0;
4
4
  exports.CLIENT_RELATIONSHIPS_COMMON = {
5
5
  CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
6
6
  message: `A client cannot have a relationship with itself.`,
7
- affectedFields: ['relatedClientId'],
7
+ affectedFields: ['relatedClient'],
8
8
  },
9
9
  INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
10
10
  message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
11
11
  params: ['clientName', 'entityType', 'relationshipType'],
12
- affectedFields: ['relationshipTypeId'],
12
+ affectedFields: ['relationshipType'],
13
13
  },
14
14
  STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
15
15
  message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
@@ -37,32 +37,34 @@ exports.CLIENT_RELATIONSHIPS_COMMON = {
37
37
  affectedFields: ['endingDate'],
38
38
  },
39
39
  ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
40
- message: `Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.`,
41
- params: ['clientCloseDate'],
40
+ 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.`,
41
+ params: ['clientName', 'clientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
42
42
  affectedFields: ['endingDate'],
43
43
  },
44
44
  ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
45
- message: `Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.`,
46
- params: ['relatedClientName', 'relatedClientCloseDate'],
45
+ 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.`,
46
+ params: ['relatedClientName', 'relatedClientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
47
47
  affectedFields: ['endingDate'],
48
48
  },
49
49
  FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
50
- 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.`,
51
- affectedFields: ['final'],
50
+ 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.`,
51
+ params: ['clientName', 'relatedClientName', 'clientCloseDate'],
52
+ affectedFields: ['endingDate', 'final'],
52
53
  },
53
54
  FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
54
- 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.`,
55
- affectedFields: ['final'],
55
+ 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.`,
56
+ params: ['clientName', 'relatedClientName', 'relatedClientCloseDate'],
57
+ affectedFields: ['endingDate', 'final'],
56
58
  },
57
59
  CIRCULAR_RELATIONSHIP_DETECTED: {
58
60
  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.`,
59
61
  params: ['clientName', 'relatedClientName', 'relationshipType'],
60
- affectedFields: ['relationshipTypeId', 'relatedClientId', 'startingDate', 'endingDate'],
62
+ affectedFields: ['relationshipType', 'relatedClient', 'startingDate', 'endingDate'],
61
63
  },
62
64
  CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
63
65
  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.`,
64
66
  params: ['relatedClientName', 'clientName'],
65
- affectedFields: ['relationshipTypeId', 'relatedClientId', 'startingDate', 'endingDate'],
67
+ affectedFields: ['relationshipType', 'relatedClient', 'startingDate', 'endingDate'],
66
68
  },
67
69
  CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
68
70
  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.`,
@@ -2,27 +2,27 @@ export declare const CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
2
2
  readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
3
3
  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.";
4
4
  readonly params: readonly ["clientName", "parentClientName"];
5
- readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
5
+ readonly affectedFields: readonly ["relationshipType", "startingDate", "endingDate"];
6
6
  };
7
7
  readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
8
8
  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.";
9
- readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
9
+ readonly affectedFields: readonly ["relationshipType", "filingStatus"];
10
10
  };
11
11
  readonly SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
12
12
  readonly message: "A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.";
13
- readonly affectedFields: readonly ["profit", "relationshipTypeId"];
13
+ readonly affectedFields: readonly ["profit", "relationshipType"];
14
14
  };
15
15
  readonly SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
16
16
  readonly message: "A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.";
17
- readonly affectedFields: readonly ["loss", "relationshipTypeId"];
17
+ readonly affectedFields: readonly ["loss", "relationshipType"];
18
18
  };
19
19
  readonly SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
20
20
  readonly message: "A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.";
21
- readonly affectedFields: readonly ["capital", "relationshipTypeId"];
21
+ readonly affectedFields: readonly ["capital", "relationshipType"];
22
22
  };
23
23
  readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
24
24
  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.";
25
- readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
25
+ readonly affectedFields: readonly ["relatedClient", "relationshipType"];
26
26
  };
27
27
  readonly K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
28
28
  readonly message: "A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
@@ -51,7 +51,7 @@ export declare const CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
51
51
  readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
52
52
  readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
53
53
  readonly params: readonly ["relatedClient", "entityType"];
54
- readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
54
+ readonly affectedFields: readonly ["relatedClient", "relationshipType"];
55
55
  };
56
56
  readonly INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
57
57
  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%.";
@@ -5,27 +5,27 @@ exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = {
5
5
  SUBSIDIARY_CANNOT_HAVE_PARENT: {
6
6
  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.`,
7
7
  params: ['clientName', 'parentClientName'],
8
- affectedFields: ['relationshipTypeId', 'startingDate', 'endingDate'],
8
+ affectedFields: ['relationshipType', 'startingDate', 'endingDate'],
9
9
  },
10
10
  SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
11
11
  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.`,
12
- affectedFields: ['relationshipTypeId', 'filingTypeId'],
12
+ affectedFields: ['relationshipType', 'filingStatus'],
13
13
  },
14
14
  SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
15
15
  message: `A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.`,
16
- affectedFields: ['profit', 'relationshipTypeId'],
16
+ affectedFields: ['profit', 'relationshipType'],
17
17
  },
18
18
  SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
19
19
  message: `A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.`,
20
- affectedFields: ['loss', 'relationshipTypeId'],
20
+ affectedFields: ['loss', 'relationshipType'],
21
21
  },
22
22
  SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
23
23
  message: `A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.`,
24
- affectedFields: ['capital', 'relationshipTypeId'],
24
+ affectedFields: ['capital', 'relationshipType'],
25
25
  },
26
26
  SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
27
27
  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.`,
28
- affectedFields: ['relatedClientId', 'relationshipTypeId'],
28
+ affectedFields: ['relatedClient', 'relationshipType'],
29
29
  },
30
30
  K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
31
31
  message: `A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
@@ -54,7 +54,7 @@ exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = {
54
54
  K1_ISSUER_INVALID_ENTITY_TYPE: {
55
55
  message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
56
56
  params: ['relatedClient', 'entityType'],
57
- affectedFields: ['relatedClientId', 'relationshipTypeId'],
57
+ affectedFields: ['relatedClient', 'relationshipType'],
58
58
  },
59
59
  INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
60
60
  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%.`,
@@ -1,7 +1,7 @@
1
1
  export declare const CLIENT_RELATIONSHIPS_OWNERS: {
2
2
  readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
3
3
  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.";
4
- readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
4
+ readonly affectedFields: readonly ["relationshipType", "filingStatus"];
5
5
  };
6
6
  readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
7
7
  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.";
@@ -10,28 +10,28 @@ export declare const CLIENT_RELATIONSHIPS_OWNERS: {
10
10
  readonly MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
11
11
  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.";
12
12
  readonly params: readonly ["parentRelatedClientName", "relationshipStarting"];
13
- readonly affectedFields: readonly ["relationshipTypeId", "startingDate"];
13
+ readonly affectedFields: readonly ["relationshipType", "startingDate"];
14
14
  };
15
15
  readonly PARENT_CANNOT_BE_SUB_ENTITY: {
16
16
  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.";
17
17
  readonly params: readonly ["relatedClientName", "clientName"];
18
- readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId", "startingDate", "endingDate"];
18
+ readonly affectedFields: readonly ["relatedClient", "relationshipType", "startingDate", "endingDate"];
19
19
  };
20
20
  readonly PARENT_ENTITY_TYPE_MISMATCH: {
21
21
  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.";
22
- readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
22
+ readonly affectedFields: readonly ["relatedClient", "relationshipType"];
23
23
  };
24
24
  readonly PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
25
25
  readonly message: "A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.";
26
- readonly affectedFields: readonly ["profit", "relationshipTypeId"];
26
+ readonly affectedFields: readonly ["profit", "relationshipType"];
27
27
  };
28
28
  readonly PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
29
29
  readonly message: "A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.";
30
- readonly affectedFields: readonly ["loss", "relationshipTypeId"];
30
+ readonly affectedFields: readonly ["loss", "relationshipType"];
31
31
  };
32
32
  readonly PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
33
33
  readonly message: "A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.";
34
- readonly affectedFields: readonly ["capital", "relationshipTypeId"];
34
+ readonly affectedFields: readonly ["capital", "relationshipType"];
35
35
  };
36
36
  readonly SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
37
37
  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'.";
@@ -4,7 +4,7 @@ exports.CLIENT_RELATIONSHIPS_OWNERS = void 0;
4
4
  exports.CLIENT_RELATIONSHIPS_OWNERS = {
5
5
  PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
6
6
  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.`,
7
- affectedFields: ['relationshipTypeId', 'filingTypeId'],
7
+ affectedFields: ['relationshipType', 'filingStatus'],
8
8
  },
9
9
  MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
10
10
  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.`,
@@ -13,28 +13,28 @@ exports.CLIENT_RELATIONSHIPS_OWNERS = {
13
13
  MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
14
14
  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.`,
15
15
  params: ['parentRelatedClientName', 'relationshipStarting'],
16
- affectedFields: ['relationshipTypeId', 'startingDate'],
16
+ affectedFields: ['relationshipType', 'startingDate'],
17
17
  },
18
18
  PARENT_CANNOT_BE_SUB_ENTITY: {
19
19
  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.`,
20
20
  params: ['relatedClientName', 'clientName'],
21
- affectedFields: ['relatedClientId', 'relationshipTypeId', 'startingDate', 'endingDate'],
21
+ affectedFields: ['relatedClient', 'relationshipType', 'startingDate', 'endingDate'],
22
22
  },
23
23
  PARENT_ENTITY_TYPE_MISMATCH: {
24
24
  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.`,
25
- affectedFields: ['relatedClientId', 'relationshipTypeId'],
25
+ affectedFields: ['relatedClient', 'relationshipType'],
26
26
  },
27
27
  PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
28
28
  message: `A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
29
- affectedFields: ['profit', 'relationshipTypeId'],
29
+ affectedFields: ['profit', 'relationshipType'],
30
30
  },
31
31
  PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
32
32
  message: `A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
33
- affectedFields: ['loss', 'relationshipTypeId'],
33
+ affectedFields: ['loss', 'relationshipType'],
34
34
  },
35
35
  PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
36
36
  message: `A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
37
- affectedFields: ['capital', 'relationshipTypeId'],
37
+ affectedFields: ['capital', 'relationshipType'],
38
38
  },
39
39
  SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
40
40
  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'.`,
@@ -11,7 +11,7 @@ export declare const FILING_CATEGORIES: {
11
11
  readonly NAME_ALREADY_EXISTS: {
12
12
  readonly message: "Filing category with the same name '{name}' already exists";
13
13
  readonly params: readonly ["name"];
14
- readonly affectedFields: readonly ["name"];
14
+ readonly affectedFields: readonly ["filingCategory"];
15
15
  };
16
16
  readonly OPTION_IN_USE: {
17
17
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -14,7 +14,7 @@ exports.FILING_CATEGORIES = {
14
14
  NAME_ALREADY_EXISTS: {
15
15
  message: `Filing category with the same name '{name}' already exists`,
16
16
  params: ['name'],
17
- affectedFields: ['name'],
17
+ affectedFields: ['filingCategory'],
18
18
  },
19
19
  OPTION_IN_USE: {
20
20
  message: `This option is currently in use and cannot be deleted.`,
@@ -21,7 +21,7 @@ export declare const ROLES_AND_PERMISSIONS: {
21
21
  readonly PERMISSION_DOES_NOT_EXIST: {
22
22
  readonly message: "Permission does not exist";
23
23
  readonly params: readonly ["permissionId"];
24
- readonly affectedFields: readonly ["permissionId"];
24
+ readonly affectedFields: readonly ["permissionIds"];
25
25
  };
26
26
  readonly ROLE_HAS_ASSIGNED_USERS: {
27
27
  readonly message: "Cannot delete role with name '{roleName}' because it has users assigned to it";
@@ -24,7 +24,7 @@ exports.ROLES_AND_PERMISSIONS = {
24
24
  PERMISSION_DOES_NOT_EXIST: {
25
25
  message: `Permission does not exist`,
26
26
  params: ['permissionId'],
27
- affectedFields: ['permissionId'],
27
+ affectedFields: ['permissionIds'],
28
28
  },
29
29
  ROLE_HAS_ASSIGNED_USERS: {
30
30
  message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
@@ -16,7 +16,7 @@ export declare const STATES: {
16
16
  readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
17
17
  readonly message: "State type does not exist";
18
18
  readonly params: readonly ["id"];
19
- readonly affectedFields: readonly ["stateTypeId"];
19
+ readonly affectedFields: readonly ["stateType"];
20
20
  };
21
21
  readonly IS_PARENT_OF_OTHER_STATES: {
22
22
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -25,21 +25,21 @@ export declare const STATES: {
25
25
  readonly PARENT_ID_DOES_NOT_EXIST: {
26
26
  readonly message: "Parent state does not exist";
27
27
  readonly params: readonly ["id"];
28
- readonly affectedFields: readonly ["parentId"];
28
+ readonly affectedFields: readonly ["parent"];
29
29
  };
30
30
  readonly NATION_PARENT_TYPE_NOT_ALLOWED: {
31
31
  readonly message: "Nation cannot have associated parent.";
32
- readonly affectedFields: readonly ["parentId"];
32
+ readonly affectedFields: readonly ["parent"];
33
33
  };
34
34
  readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
35
35
  readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
36
36
  readonly params: readonly ["stateName"];
37
- readonly affectedFields: readonly ["parentId"];
37
+ readonly affectedFields: readonly ["parent"];
38
38
  };
39
39
  readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
40
40
  readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
41
41
  readonly params: readonly ["cityName"];
42
- readonly affectedFields: readonly ["parentId"];
42
+ readonly affectedFields: readonly ["parent"];
43
43
  };
44
44
  readonly OPTION_IN_USE: {
45
45
  readonly message: "This option is currently in use and cannot be deleted.";
@@ -19,7 +19,7 @@ exports.STATES = {
19
19
  STATE_TYPE_ID_DOES_NOT_EXIST: {
20
20
  message: `State type does not exist`,
21
21
  params: ['id'],
22
- affectedFields: ['stateTypeId'],
22
+ affectedFields: ['stateType'],
23
23
  },
24
24
  IS_PARENT_OF_OTHER_STATES: {
25
25
  message: `This option is currently in use and cannot be deleted.`,
@@ -28,21 +28,21 @@ exports.STATES = {
28
28
  PARENT_ID_DOES_NOT_EXIST: {
29
29
  message: `Parent state does not exist`,
30
30
  params: ['id'],
31
- affectedFields: ['parentId'],
31
+ affectedFields: ['parent'],
32
32
  },
33
33
  NATION_PARENT_TYPE_NOT_ALLOWED: {
34
34
  message: `Nation cannot have associated parent.`,
35
- affectedFields: ['parentId'],
35
+ affectedFields: ['parent'],
36
36
  },
37
37
  STATE_PARENT_TYPE_NOT_ALLOWED: {
38
38
  message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
39
39
  params: ['stateName'],
40
- affectedFields: ['parentId'],
40
+ affectedFields: ['parent'],
41
41
  },
42
42
  CITY_PARENT_TYPE_NOT_ALLOWED: {
43
43
  message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
44
44
  params: ['cityName'],
45
- affectedFields: ['parentId'],
45
+ affectedFields: ['parent'],
46
46
  },
47
47
  OPTION_IN_USE: {
48
48
  message: `This option is currently in use and cannot be deleted.`,
@@ -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";
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.8",
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();