@forwardslashns/taskit-validation-messages 1.3.9 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/.github/.workflows/npm-publish.yml +27 -27
  2. package/.prettierrc +8 -8
  3. package/dist/validation/features/account-categories.validation-messages.d.ts +1 -1
  4. package/dist/validation/features/account-categories.validation-messages.js +1 -1
  5. package/dist/validation/features/account-ids.validation-messages.d.ts +2 -2
  6. package/dist/validation/features/account-ids.validation-messages.js +2 -2
  7. package/dist/validation/features/business-activities.validation-messages.d.ts +1 -1
  8. package/dist/validation/features/business-activities.validation-messages.js +1 -1
  9. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +7 -7
  10. package/dist/validation/features/client-current-entity-statuses.validation-messages.js +7 -7
  11. package/dist/validation/features/client-records-addresses.validation-messages.d.ts +7 -7
  12. package/dist/validation/features/client-records-addresses.validation-messages.js +7 -7
  13. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +1 -1
  14. package/dist/validation/features/client-records-commission-details.validation-messages.js +1 -1
  15. package/dist/validation/features/client-records-contacts.validation-messages.d.ts +2 -2
  16. package/dist/validation/features/client-records-contacts.validation-messages.js +2 -2
  17. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +3 -3
  18. package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +3 -3
  19. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +2 -2
  20. package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +2 -2
  21. package/dist/validation/features/client-records-filing-types-histories.validation-messages.d.ts +10 -10
  22. package/dist/validation/features/client-records-filing-types-histories.validation-messages.js +10 -10
  23. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +1 -1
  24. package/dist/validation/features/client-records-outside-providers.validation-messages.js +1 -1
  25. package/dist/validation/features/client-relationships.validation-messages.d.ts +9 -0
  26. package/dist/validation/features/client-relationships.validation-messages.d.ts.map +1 -1
  27. package/dist/validation/features/client-relationships.validation-messages.js +9 -0
  28. package/dist/validation/features/filing-categories.validation-messages.d.ts +1 -1
  29. package/dist/validation/features/filing-categories.validation-messages.js +1 -1
  30. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +3 -3
  31. package/dist/validation/features/roles-and-permissions.validation-messages.js +3 -3
  32. package/dist/validation/features/states.validation-messages.d.ts +3 -3
  33. package/dist/validation/features/states.validation-messages.js +3 -3
  34. package/dist/validation/features/users.validation-messages.d.ts +2 -2
  35. package/dist/validation/features/users.validation-messages.js +2 -2
  36. package/dist/validation/validation-messages.d.ts +55 -46
  37. package/dist/validation/validation-messages.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/src/validation/features/account-categories.validation-messages.ts +1 -1
  40. package/src/validation/features/account-ids.validation-messages.ts +2 -2
  41. package/src/validation/features/business-activities.validation-messages.ts +1 -1
  42. package/src/validation/features/client-current-entity-statuses.validation-messages.ts +7 -7
  43. package/src/validation/features/client-records-addresses.validation-messages.ts +7 -7
  44. package/src/validation/features/client-records-commission-details.validation-messages.ts +1 -1
  45. package/src/validation/features/client-records-contacts.validation-messages.ts +2 -2
  46. package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +3 -3
  47. package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +2 -2
  48. package/src/validation/features/client-records-filing-types-histories.validation-messages.ts +10 -10
  49. package/src/validation/features/client-records-outside-providers.validation-messages.ts +1 -1
  50. package/src/validation/features/client-relationships.validation-messages.ts +9 -0
  51. package/src/validation/features/filing-categories.validation-messages.ts +1 -1
  52. package/src/validation/features/roles-and-permissions.validation-messages.ts +3 -3
  53. package/src/validation/features/states.validation-messages.ts +3 -3
  54. package/src/validation/features/users.validation-messages.ts +2 -2
  55. package/tsconfig.json +17 -17
@@ -1,36 +1,36 @@
1
1
  export const CLIENT_RECORDS_ADDRESSES = {
2
2
  STATES_NOT_FOUND: {
3
- message: 'States with ids {ids} do not exist',
3
+ message: 'States do not exist',
4
4
  params: ['ids'],
5
5
  affectedFields: ['stateId'],
6
6
  },
7
7
  INVALID_STATE_TYPE: {
8
- message: `States with ids {ids} are not of type 'State'`,
8
+ message: `States are not of type 'State'`,
9
9
  params: ['ids'],
10
10
  affectedFields: ['stateId'],
11
11
  },
12
12
  CITIES_NOT_FOUND: {
13
- message: `Cities with ids {ids} do not exist`,
13
+ message: `Cities do not exist`,
14
14
  params: ['ids'],
15
15
  affectedFields: ['cityId'],
16
16
  },
17
17
  INVALID_CITY_TYPE: {
18
- message: `Cities with ids {ids} are not of type 'City'`,
18
+ message: `Cities are not of type 'City'`,
19
19
  params: ['ids'],
20
20
  affectedFields: ['cityId'],
21
21
  },
22
22
  ZIP_CODES_NOT_FOUND: {
23
- message: `Zip codes with ids {ids} do not exist`,
23
+ message: `Zip codes do not exist`,
24
24
  params: ['ids'],
25
25
  affectedFields: ['zipCode'],
26
26
  },
27
27
  CONTACT_ROLES_NOT_FOUND: {
28
- message: `Contact roles with ids {ids} do not exist`,
28
+ message: `Contact roles do not exist`,
29
29
  params: ['ids'],
30
30
  affectedFields: ['contactRoleId'],
31
31
  },
32
32
  CONTACT_TYPES_NOT_FOUND: {
33
- message: `Contact types with ids {ids} do not exist`,
33
+ message: `Contact types do not exist`,
34
34
  params: ['ids'],
35
35
  affectedFields: ['contactTypeId'],
36
36
  },
@@ -8,7 +8,7 @@ export const CLIENT_RECORDS_COMMISSION_DETAILS = {
8
8
  affectedFields: ['isSubjectToCommission', 'salesRepresentativeId', 'commissionRate'],
9
9
  },
10
10
  SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
11
- message: `Sales representative with id '{id}' does not exist`,
11
+ message: `Sales representative does not exist`,
12
12
  params: ['id'],
13
13
  affectedFields: ['salesRepresentativeId'],
14
14
  },
@@ -1,11 +1,11 @@
1
1
  export const CLIENT_RECORDS_CONTACTS = {
2
2
  CONTACT_ROLES_NOT_FOUND: {
3
- message: `Contact roles with ids {ids} do not exist`,
3
+ message: `Contact roles do not exist`,
4
4
  params: ['ids'],
5
5
  affectedFields: ['contactRoleId'],
6
6
  },
7
7
  CONTACT_TYPES_NOT_FOUND: {
8
- message: `Contact types with ids {ids} do not exist`,
8
+ message: `Contact types do not exist`,
9
9
  params: ['ids'],
10
10
  affectedFields: ['contactTypeId'],
11
11
  },
@@ -1,6 +1,6 @@
1
1
  export const CLIENT_RECORDS_ENTITY_STATES = {
2
2
  STATE_ID_DOES_NOT_EXIST: {
3
- message: `State with id '{id}' does not exist`,
3
+ message: `State does not exist`,
4
4
  params: ['id'],
5
5
  affectedFields: ['stateId'],
6
6
  },
@@ -19,12 +19,12 @@ export const CLIENT_RECORDS_ENTITY_STATES = {
19
19
  affectedFields: ['domesticStateStartingDate'],
20
20
  },
21
21
  STATES_IDS_DOES_NOT_EXIST: {
22
- message: `States with ids '{ids}' do not exist`,
22
+ message: `States do not exist`,
23
23
  params: ['ids'],
24
24
  affectedFields: ['stateId'],
25
25
  },
26
26
  RESIDENCE_TYPE_DOES_NOT_EXIST: {
27
- message: `Residence type with ids '{ids}' does not exist`,
27
+ message: `Residence type does not exist`,
28
28
  params: ['ids'],
29
29
  affectedFields: ['residenceTypeId'],
30
30
  },
@@ -1,6 +1,6 @@
1
1
  export const CLIENT_RECORDS_ENTITY_TYPES = {
2
2
  ENTITY_TYPE_ID_DOES_NOT_EXIST: {
3
- message: `Entity type with id '{id}' does not exist`,
3
+ message: `Entity type does not exist`,
4
4
  params: ['id'],
5
5
  affectedFields: ['entityTypeId'],
6
6
  },
@@ -23,7 +23,7 @@ export const CLIENT_RECORDS_ENTITY_TYPES = {
23
23
  affectedFields: ['entityTypeStartingDate', 'entityTypeEndingDate'],
24
24
  },
25
25
  ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
26
- message: `Entity types with ids '{ids}' do not exist`,
26
+ message: `Entity types do not exist`,
27
27
  params: ['ids'],
28
28
  affectedFields: ['entityTypeId'],
29
29
  },
@@ -1,6 +1,6 @@
1
1
  export const CLIENT_RECORDS_FILING_TYPES = {
2
2
  FILING_TYPE_ID_DOES_NOT_EXIST: {
3
- message: `Parent/Sub status with id '{id}' does not exist`,
3
+ message: `Sub/Parent status does not exist`,
4
4
  params: ['id'],
5
5
  affectedFields: ['filingTypeId'],
6
6
  },
@@ -13,30 +13,30 @@ export const CLIENT_RECORDS_FILING_TYPES = {
13
13
  affectedFields: ['parentClientId'],
14
14
  },
15
15
  NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
16
- message: `The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.`,
16
+ message: `The Sub/Parent status {filingType} starts on {filingTypeStartingDate} 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
17
  params: ['clientDateEstablished', 'filingType', 'filingTypeStartingDate'],
18
18
  affectedFields: ['dateEstablished', 'filingType'],
19
19
  },
20
20
  NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
21
- message: `One or more Parent/Sub status have a start date which is after the client's close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.`,
21
+ message: `One or more Sub/Parent status have a start date which is after the client's close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.`,
22
22
  params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
23
23
  affectedFields: ['closeDate', 'filingType'],
24
24
  },
25
25
  FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
26
- message: `Current Parent/Sub status Starting Date cannot be Empty`,
26
+ message: `Current Sub/Parent status Starting Date cannot be Empty`,
27
27
  affectedFields: ['filingTypeStartingDate'],
28
28
  },
29
29
  NOT_ALIGNED_FILING_TYPE_STARTING_ENDING_DATE: {
30
- message: `Parent/Sub status starting date needs to be before the ending date`,
30
+ message: `Sub/Parent status starting date needs to be before the ending date`,
31
31
  affectedFields: ['filingTypeStartingDate', 'filingTypeEndingDate'],
32
32
  },
33
33
  FILING_TYPES_IDS_DOES_NOT_EXIST: {
34
- message: `Parent/Sub status with ids '{ids}' do not exist`,
34
+ message: `Sub/Parent status do not exist`,
35
35
  params: ['ids'],
36
36
  affectedFields: ['filingTypeId'],
37
37
  },
38
38
  AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
39
- message: `At least one Parent/Sub status should exist`,
39
+ message: `At least one Sub/Parent status should exist`,
40
40
  affectedFields: ['filingType'],
41
41
  },
42
42
  FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
@@ -70,7 +70,7 @@ export const CLIENT_RECORDS_FILING_TYPES = {
70
70
  affectedFields: ['filingType'],
71
71
  },
72
72
  FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
73
- message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.`,
73
+ message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Sub/Parent status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Sub/Parent status that begins on {dateEstablished}.`,
74
74
  params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
75
75
  affectedFields: ['filingType', 'dateEstablished'],
76
76
  },
@@ -80,11 +80,11 @@ export const CLIENT_RECORDS_FILING_TYPES = {
80
80
  affectedFields: ['filingType'],
81
81
  },
82
82
  ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
83
- message: `Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.`,
83
+ message: `Only the last Sub/Parent status can be open without an end date. Add an ending date to the existing Sub/Parent status before adding a start date for a new Sub/Parent status.`,
84
84
  affectedFields: ['filingTypeEndingDate'],
85
85
  },
86
86
  CURRENT_FILING_TYPE_CANNOT_HAVE_ENDING_DATE: {
87
- message: `The current Parent/Sub status cannot have an end date. Please remove the end date for this state.`,
87
+ message: `The current Sub/Parent status cannot have an end date. Please remove the end date for this state.`,
88
88
  affectedFields: ['filingTypeEndingDate'],
89
89
  },
90
90
  } as const;
@@ -1,6 +1,6 @@
1
1
  export const CLIENT_RECORDS_OUTSIDE_PROVIDERS = {
2
2
  INVALID_TYPE: {
3
- message: `Outside provider types with ids '{ids}' do not exist`,
3
+ message: `Outside provider types do not exist`,
4
4
  params: ['ids'],
5
5
  affectedFields: ['outsideProviderTypeId'],
6
6
  },
@@ -196,4 +196,13 @@ export const CLIENT_RELATIONSHIPS = {
196
196
  params: ['relatedClient'],
197
197
  affectedFields: ['capital', 'startingDate', 'endingDate'],
198
198
  },
199
+ SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
200
+ 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.`,
201
+ affectedFields: ['relatedClientId', 'relationshipTypeId'],
202
+ },
203
+ K1_ISSUER_INVALID_ENTITY_TYPE: {
204
+ message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
205
+ params: ['relatedClient', 'entityType'],
206
+ affectedFields: ['relatedClientId', 'relationshipTypeId'],
207
+ },
199
208
  } as const;
@@ -4,7 +4,7 @@ export const FILING_CATEGORIES = {
4
4
  affectedFields: [],
5
5
  },
6
6
  ID_DOES_NOT_EXIST: {
7
- message: `Filing category with id '{id}' does not exist`,
7
+ message: `Filing category does not exist`,
8
8
  params: ['id'],
9
9
  affectedFields: ['filingCategoryId'],
10
10
  },
@@ -10,16 +10,16 @@ export const ROLES_AND_PERMISSIONS = {
10
10
  affectedFields: ['name'],
11
11
  },
12
12
  PERMISSIONS_DO_NOT_EXIST: {
13
- message: `Permissions with ids '{ids}' do not exist`,
13
+ message: `Permissions do not exist`,
14
14
  params: ['ids'],
15
15
  affectedFields: ['permissionIds'],
16
16
  },
17
17
  ROLE_DOES_NOT_EXIST: {
18
- message: `Role with id '{roleId}' does not exist`,
18
+ message: `Role does not exist`,
19
19
  params: ['roleId'],
20
20
  },
21
21
  PERMISSION_DOES_NOT_EXIST: {
22
- message: `Permission with id '{permissionId}' does not exist`,
22
+ message: `Permission does not exist`,
23
23
  params: ['permissionId'],
24
24
  affectedFields: ['permissionId'],
25
25
  },
@@ -4,7 +4,7 @@ export const STATES = {
4
4
  affectedFields: [],
5
5
  },
6
6
  ID_DOES_NOT_EXIST: {
7
- message: `State with id '{id}' does not exist`,
7
+ message: `State does not exist`,
8
8
  params: ['id'],
9
9
  affectedFields: ['stateId'],
10
10
  },
@@ -14,7 +14,7 @@ export const STATES = {
14
14
  affectedFields: ['name'],
15
15
  },
16
16
  STATE_TYPE_ID_DOES_NOT_EXIST: {
17
- message: `State type with id '{id}' does not exist`,
17
+ message: `State type does not exist`,
18
18
  params: ['id'],
19
19
  affectedFields: ['stateTypeId'],
20
20
  },
@@ -23,7 +23,7 @@ export const STATES = {
23
23
  affectedFields: [],
24
24
  },
25
25
  PARENT_ID_DOES_NOT_EXIST: {
26
- message: `Parent state with id '{id}' does not exist`,
26
+ message: `Parent state does not exist`,
27
27
  params: ['id'],
28
28
  affectedFields: ['parentId'],
29
29
  },
@@ -32,11 +32,11 @@ export const USERS = {
32
32
  affectedFields: ['email'],
33
33
  },
34
34
  ROLE_DOES_NOT_EXIST: {
35
- message: `Role with id '{roleId}' does not exist`,
35
+ message: `Role does not exist`,
36
36
  params: ['roleId'],
37
37
  },
38
38
  USER_DOES_NOT_EXIST: {
39
- message: `User with id '{userId}' does not exist`,
39
+ message: `User does not exist`,
40
40
  params: ['userId'],
41
41
  affectedFields: ['userId'],
42
42
  },
package/tsconfig.json CHANGED
@@ -1,17 +1,17 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "module": "Node16",
5
- "moduleResolution": "node16",
6
- "strict": true,
7
- "esModuleInterop": true,
8
- "declaration": true,
9
- "declarationMap": true,
10
- "skipLibCheck": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "outDir": "./dist",
13
- "rootDir": "./src"
14
- },
15
- "include": ["src/**/*", "types/**/*"],
16
- "exclude": ["node_modules"]
17
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "Node16",
5
+ "moduleResolution": "node16",
6
+ "strict": true,
7
+ "esModuleInterop": true,
8
+ "declaration": true,
9
+ "declarationMap": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "outDir": "./dist",
13
+ "rootDir": "./src"
14
+ },
15
+ "include": ["src/**/*", "types/**/*"],
16
+ "exclude": ["node_modules"]
17
+ }