@taxbit/react-sdk 0.1.0 → 0.2.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 (129) hide show
  1. package/README.md +79 -243
  2. package/dist/App.d.ts +1 -1
  3. package/dist/basic.css +1 -1
  4. package/dist/components/ErrorMessage/ErrorMessage.d.ts +2 -2
  5. package/dist/components/Form/Form.d.ts +8 -0
  6. package/dist/components/Form/index.d.ts +1 -0
  7. package/dist/components/Notification/Notification.d.ts +2 -2
  8. package/dist/components/Row/Row.d.ts +2 -2
  9. package/dist/components/index.d.ts +7 -7
  10. package/dist/contexts/FormUI/index.d.ts +3 -3
  11. package/dist/contexts/FormUI/useFormUI.d.ts +17 -117
  12. package/dist/contexts/FormUI/useFormUIContext.d.ts +30 -626
  13. package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +6 -4
  14. package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +11 -10
  15. package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +194 -110
  16. package/dist/entry/index.d.ts +5 -5
  17. package/dist/hooks/useTaxBit/useTaxBit.d.ts +108 -4
  18. package/dist/i18n/locales/bg-bg.d.ts +1 -1
  19. package/dist/i18n/locales/cs-cz.d.ts +1 -1
  20. package/dist/i18n/locales/da-dk.d.ts +2 -0
  21. package/dist/i18n/locales/de-at.d.ts +2 -0
  22. package/dist/i18n/locales/de-de.d.ts +1 -1
  23. package/dist/i18n/locales/el-cy.d.ts +2 -0
  24. package/dist/i18n/locales/el-gr.d.ts +1 -1
  25. package/dist/i18n/locales/en-gb.d.ts +1 -1
  26. package/dist/i18n/locales/en-us.d.ts +1 -1
  27. package/dist/i18n/locales/es-es.d.ts +1 -1
  28. package/dist/i18n/locales/et-ee.d.ts +1 -1
  29. package/dist/i18n/locales/fi-fi.d.ts +2 -0
  30. package/dist/i18n/locales/fr-fr.d.ts +1 -1
  31. package/dist/i18n/locales/fr-lu.d.ts +2 -0
  32. package/dist/i18n/locales/ga-ie.d.ts +2 -0
  33. package/dist/i18n/locales/hr-hr.d.ts +2 -0
  34. package/dist/i18n/locales/hu-hu.d.ts +1 -1
  35. package/dist/i18n/locales/index.d.ts +18 -7
  36. package/dist/i18n/locales/it-it.d.ts +1 -1
  37. package/dist/i18n/locales/lt-lt.d.ts +2 -0
  38. package/dist/i18n/locales/lv-lv.d.ts +2 -0
  39. package/dist/i18n/locales/mt-mt.d.ts +1 -1
  40. package/dist/i18n/locales/nl-be.d.ts +2 -0
  41. package/dist/i18n/locales/nl-nl.d.ts +1 -1
  42. package/dist/i18n/locales/no-no.d.ts +1 -1
  43. package/dist/i18n/locales/pl-pl.d.ts +2 -0
  44. package/dist/i18n/locales/pt-pt.d.ts +1 -1
  45. package/dist/i18n/locales/ro-ro.d.ts +1 -1
  46. package/dist/i18n/locales/sk-sk.d.ts +1 -1
  47. package/dist/i18n/locales/sl-si.d.ts +1 -1
  48. package/dist/i18n/locales/sv-se.d.ts +1 -1
  49. package/dist/i18n/types/LocalizationKey.d.ts +10 -11
  50. package/dist/inline.css +1 -1
  51. package/dist/lookups/toOptions.d.ts +3 -0
  52. package/dist/services/api.d.ts +3 -2
  53. package/dist/taxbit-react-sdk.es.js +16961 -10199
  54. package/dist/taxbit-react-sdk.umd.js +10 -10
  55. package/dist/test/Wrapper.d.ts +7 -0
  56. package/dist/test/getWrapper.d.ts +4 -0
  57. package/dist/test/index.d.ts +2 -0
  58. package/dist/types/Locale.d.ts +1 -1
  59. package/dist/types/TaxDocumentation.d.ts +8 -4
  60. package/dist/types/client/index.d.ts +6 -0
  61. package/dist/types/{external → server}/ComprehensiveTaxDocumentation.d.ts +3 -14
  62. package/dist/types/server/TaxDocumentationStatus.d.ts +9 -0
  63. package/dist/types/server/enums.d.ts +13 -0
  64. package/dist/types/server/index.d.ts +3 -0
  65. package/dist/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
  66. package/dist/ui/DateOfBirthInput/__tests__/useDateOfBirthInput.test.d.ts +1 -0
  67. package/dist/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +20 -0
  68. package/dist/ui/Password/Password.d.ts +2 -3
  69. package/dist/ui/RadioButtons/RadioButtons.d.ts +3 -3
  70. package/dist/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -0
  71. package/dist/utils/getFieldsState.d.ts +4 -3
  72. package/dist/utils/getHintKeyMap.d.ts +4 -2
  73. package/dist/utils/getPromptKeyMap.d.ts +6 -4
  74. package/dist/utils/index.d.ts +10 -15
  75. package/dist/utils/kebabCase.d.ts +1 -0
  76. package/dist/utils/{getForeignAccountType.d.ts → transformInbound/getForeignAccountType.d.ts} +1 -1
  77. package/dist/utils/{getForeignOtherClassification.d.ts → transformInbound/getForeignOtherClassification.d.ts} +1 -1
  78. package/dist/utils/{getForeignTrustClassification.d.ts → transformInbound/getForeignTrustClassification.d.ts} +1 -1
  79. package/dist/utils/{getLLCClassification.d.ts → transformInbound/getLLCClassification.d.ts} +1 -1
  80. package/dist/utils/{getUsAccountType.d.ts → transformInbound/getUsAccountType.d.ts} +1 -1
  81. package/dist/utils/transformInbound/index.d.ts +6 -0
  82. package/dist/utils/transformInbound/transformInbound.d.ts +3 -0
  83. package/dist/utils/transformOutbound/index.d.ts +6 -0
  84. package/dist/utils/transformOutbound/transformOutbound.d.ts +2 -2
  85. package/dist/utils/transformOutbound/transformToOutboundAccoutHolder.d.ts +3 -3
  86. package/dist/utils/transformOutbound/transformToOutboundAddress.d.ts +2 -2
  87. package/dist/utils/transformOutbound/transformToOutboundRegardedOwner.d.ts +2 -2
  88. package/dist/utils/transformOutbound/transformToOutboundTaxResidenceFields.d.ts +3 -4
  89. package/dist/validations/getInvalidFields.d.ts +3 -0
  90. package/dist/validations/getNotifiedFields.d.ts +10 -0
  91. package/dist/validations/getRequiredFields.d.ts +3 -0
  92. package/dist/validations/getSubmittableFields.d.ts +3 -0
  93. package/dist/{utils → validations}/getSupportedFields.d.ts +1 -1
  94. package/dist/validations/getVisibleFields.d.ts +3 -0
  95. package/dist/validations/index.d.ts +7 -2
  96. package/dist/validations/invalidFieldRules.d.ts +7 -0
  97. package/dist/validations/{requiredFields.d.ts → requiredFieldRules.d.ts} +3 -3
  98. package/dist/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +4 -11
  99. package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +7 -6
  100. package/dist/wizard/AddressInput/AddressInput.d.ts +3 -3
  101. package/dist/wizard/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +1 -1
  102. package/dist/wizard/ResidenceInput/ResidenceInput.d.ts +3 -3
  103. package/dist/wizard/RowInput/ErrorRow/ErrorRow.d.ts +6 -0
  104. package/dist/wizard/RowInput/ErrorRow/index.d.ts +1 -0
  105. package/dist/wizard/RowInput/VisibleRow/VisibleRow.d.ts +2 -2
  106. package/dist/wizard/RowInput/index.d.ts +7 -6
  107. package/dist/wizard/TaxBitFormUI/AccountHolderClassification/AccountHolderClassification.d.ts +1 -1
  108. package/dist/wizard/TaxBitFormUI/AccountHolderContact/AccountHolderContact.d.ts +1 -1
  109. package/dist/wizard/TaxBitFormUI/AccountHolderTax/AccountHolderTax.d.ts +1 -1
  110. package/dist/wizard/TaxBitFormUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +1 -1
  111. package/dist/wizard/TaxBitFormUI/Exemptions/Exemptions.d.ts +1 -1
  112. package/dist/wizard/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +1 -1
  113. package/dist/wizard/TaxBitFormUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +1 -1
  114. package/dist/wizard/TaxBitFormUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +1 -1
  115. package/dist/wizard/TaxBitFormUI/Summary/Recap.d.ts +1 -1
  116. package/dist/wizard/TaxBitFormUI/Summary/Summary.d.ts +1 -1
  117. package/dist/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +3 -9
  118. package/dist/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +6 -6
  119. package/package.json +17 -10
  120. package/dist/components/Page/Page.d.ts +0 -8
  121. package/dist/components/Page/index.d.ts +0 -1
  122. package/dist/types/external/index.d.ts +0 -1
  123. package/dist/utils/getNotifications.d.ts +0 -10
  124. package/dist/utils/getRequiredFields.d.ts +0 -103
  125. package/dist/utils/getValidationMessages.d.ts +0 -104
  126. package/dist/utils/getVisibleQuestions.d.ts +0 -6
  127. package/dist/utils/transformInbound.d.ts +0 -3
  128. package/dist/validations/validations.d.ts +0 -7
  129. /package/dist/{taxbit-react-sdk.es.d.ts → index.d.ts} +0 -0
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export declare const Contents: () => React.JSX.Element;
3
3
  export declare const Summary: () => React.JSX.Element;
@@ -1,10 +1,4 @@
1
- import React from "react";
2
- import type { Locale, TaxDocumentation } from "../../types";
3
- import { ClientTaxDocumentation } from "../../types/external";
4
- type TaxDocumentationDAC7PathProps = {
5
- data?: ClientTaxDocumentation;
6
- onSubmit: (data: TaxDocumentation) => void;
7
- language?: Locale;
8
- };
1
+ import React from 'react';
2
+ import { TaxBitFormUIProps } from './TaxBitFormUI';
3
+ export type TaxDocumentationDAC7PathProps = Omit<TaxBitFormUIProps, 'taxForms'>;
9
4
  export declare const TaxBitDAC7FormUI: ({ data, onSubmit, language, }: TaxDocumentationDAC7PathProps) => React.JSX.Element;
10
- export {};
@@ -1,11 +1,11 @@
1
- import React from "react";
2
- import type { Locale, TaxForm, TaxDocumentation } from "../../types";
3
- import { ClientTaxDocumentation } from "../../types/external";
4
- type TaxBitFormUIProps = {
1
+ import React from 'react';
2
+ import type { Locale, TaxDocumentation, TaxForm } from '../../types';
3
+ import { ClientTaxDocumentation } from '../../types/client';
4
+ export type TaxBitFormUIProps = {
5
5
  data?: ClientTaxDocumentation;
6
6
  onSubmit: (data: TaxDocumentation) => void;
7
7
  language?: Locale;
8
8
  taxForms?: TaxForm[];
9
+ complete?: boolean;
9
10
  };
10
- export declare const TaxBitFormUI: ({ data, onSubmit, language, taxForms, }: TaxBitFormUIProps) => React.JSX.Element;
11
- export {};
11
+ export declare const TaxBitFormUI: ({ data, onSubmit, language, taxForms, complete, }: TaxBitFormUIProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taxbit/react-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "TaxBit Tax Documentation",
5
5
  "author": "TaxBit",
6
6
  "type": "module",
@@ -8,17 +8,19 @@
8
8
  "dist",
9
9
  "dist/widget.css"
10
10
  ],
11
- "main": "./dist/taxbit-react-sdk.es.js",
11
+ "main": "./dist/taxbit-react-sdk.umd.js",
12
12
  "module": "./dist/taxbit-react-sdk.es.js",
13
13
  "exports": {
14
14
  "./style/basic.css": "./dist/basic.css",
15
15
  "./style/inline.css": "./dist/inline.css",
16
16
  "./style/minimal.css": "./dist/minimal.css",
17
17
  ".": {
18
+ "types": "./dist/index.d.ts",
18
19
  "import": "./dist/taxbit-react-sdk.es.js",
19
20
  "require": "./dist/taxbit-react-sdk.umd.js"
20
21
  }
21
22
  },
23
+ "types": "./dist/index.d.ts",
22
24
  "publishConfig": {
23
25
  "@taxbit:registry": "https://registry.npmjs.org",
24
26
  "access": "public"
@@ -31,16 +33,19 @@
31
33
  "test": "vitest"
32
34
  },
33
35
  "dependencies": {
34
- "react": "^18.2.0",
35
- "react-dom": "^18.2.0",
36
- "react-input-mask": "^2.0.4",
37
- "type-fest": "^4.3.2"
38
- },
39
- "devDependencies": {
40
36
  "@types/node": "^18.17.0",
41
37
  "@types/react": "^18.2.15",
42
- "@types/react-better-password": "^1.0.3",
43
38
  "@types/react-dom": "^18.2.7",
39
+ "type-fest": "^4.3.2",
40
+ "camelcase-keys": "^9.1.2"
41
+ },
42
+ "peerDependencies": {
43
+ "react": "^18.0.0",
44
+ "react-dom": "^18.0.0"
45
+ },
46
+ "devDependencies": {
47
+ "@testing-library/react": "^14.0.0",
48
+ "@testing-library/jest-dom": "^6.1.4",
44
49
  "@typescript-eslint/eslint-plugin": "^6.0.0",
45
50
  "@typescript-eslint/parser": "^6.0.0",
46
51
  "@vitejs/plugin-react": "^4.0.3",
@@ -48,7 +53,9 @@
48
53
  "eslint-plugin-import": "^2.25.3",
49
54
  "eslint-plugin-react-hooks": "^4.6.0",
50
55
  "eslint-plugin-react-refresh": "^0.4.3",
51
- "prettier": "^3.0.0",
56
+ "happy-dom": "^12.9.1",
57
+ "react": "^18.0.0",
58
+ "react-dom": "^18.0.0",
52
59
  "typescript": "^5.0.2",
53
60
  "vite": "^4.4.5",
54
61
  "vite-plugin-dts": "^3.3.1",
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- type PageProps = {
3
- title?: string;
4
- children: React.ReactNode;
5
- actions?: React.ReactNode;
6
- };
7
- export declare const Page: ({ children, title, actions }: PageProps) => React.JSX.Element;
8
- export {};
@@ -1 +0,0 @@
1
- export * from "./Page";
@@ -1 +0,0 @@
1
- export * from "./ComprehensiveTaxDocumentation";
@@ -1,10 +0,0 @@
1
- import { TaxDocumentation, TaxDocumentationKey } from "../types";
2
- import { NotificationKey } from "../i18n/types";
3
- export type NotificationRule = ((value: string | undefined, fields: TaxDocumentation) => NotificationKey | undefined) | ((value: string | undefined) => NotificationKey | undefined);
4
- export type Notifications = {
5
- [key in TaxDocumentationKey]?: NotificationKey;
6
- };
7
- export type NotificationRules = {
8
- [key in TaxDocumentationKey]?: NotificationRule;
9
- };
10
- export declare const getNotifications: (shownFields: Set<TaxDocumentationKey>, fields: TaxDocumentation) => Notifications;
@@ -1,103 +0,0 @@
1
- import { TaxDocumentation, TaxDocumentationKey } from "../types";
2
- export declare const getRequiredFields: (fields: TaxDocumentation) => {
3
- exemptPayeeCode: boolean | undefined;
4
- exemptFatcaCode: boolean | undefined;
5
- iAcknowlegeESignIsOk: boolean | undefined;
6
- iAmACitizenOfTheUs: boolean | undefined;
7
- iAmExemptFromFatcaReporting: boolean | undefined;
8
- iAmNotSubjectToBackupWithholding: boolean | undefined;
9
- iAuthorizeWithholdingAgent: boolean | undefined;
10
- iCertifyToAll: boolean | undefined;
11
- iConfirmIncomeIsNonUs: boolean | undefined;
12
- iConfirmTheBeneficialOwnerIsExempt: boolean | undefined;
13
- iConfirmTheEntityIsNotAUsPerson: boolean | undefined;
14
- iConfirmTheEntityIsTheBeneficialOwner: boolean | undefined;
15
- iConfirmTheTaxIdIsCorrect: boolean | undefined;
16
- iHaveLegalCapacityToSign: boolean | undefined;
17
- regardedOwnerUsPerson: boolean | undefined;
18
- signature: boolean | undefined;
19
- accountHolderAddressCity: boolean | undefined;
20
- accountHolderAddressCountry: boolean | undefined;
21
- accountHolderAddressState: boolean | undefined;
22
- accountHolderAddressStreet2: boolean | undefined;
23
- accountHolderAddressStreet: boolean | undefined;
24
- accountHolderAddressZip: boolean | undefined;
25
- accountHolderCityOfBirth: boolean | undefined;
26
- accountHolderCountryOfBirth: boolean | undefined;
27
- accountHolderCountryOfCitizenship: boolean | undefined;
28
- accountHolderDateOfBirth: boolean | undefined;
29
- accountHolderDbaName: boolean | undefined;
30
- accountHolderMailingAddressCity: boolean | undefined;
31
- accountHolderMailingAddressCountry: boolean | undefined;
32
- accountHolderMailingAddressIsDifferent: boolean | undefined;
33
- accountHolderMailingAddressState: boolean | undefined;
34
- accountHolderMailingAddressStreet2: boolean | undefined;
35
- accountHolderMailingAddressStreet: boolean | undefined;
36
- accountHolderMailingAddressZip: boolean | undefined;
37
- accountHolderName: boolean | undefined;
38
- accountHolderFinancialAccountIdentifier: boolean | undefined;
39
- accountHolderFinancialAccountName: boolean | undefined;
40
- accountHolderForeignTin: boolean | undefined;
41
- accountHolderForeignTinIsNotRequired: boolean | undefined;
42
- accountHolderTaxResidenceCountry1: boolean | undefined;
43
- accountHolderTaxResidenceForeignTin1: boolean | undefined;
44
- accountHolderTaxResidenceForeignTin1IsNotRequired: boolean | undefined;
45
- accountHolderTaxResidenceCountry2: boolean | undefined;
46
- accountHolderTaxResidenceForeignTin2: boolean | undefined;
47
- accountHolderTaxResidenceForeignTin2IsNotRequired: boolean | undefined;
48
- accountHolderTaxResidenceCountry3: boolean | undefined;
49
- accountHolderTaxResidenceForeignTin3: boolean | undefined;
50
- accountHolderTaxResidenceForeignTin3IsNotRequired: boolean | undefined;
51
- accountHolderTaxResidenceCountry4: boolean | undefined;
52
- accountHolderTaxResidenceForeignTin4: boolean | undefined;
53
- accountHolderTaxResidenceForeignTin4IsNotRequired: boolean | undefined;
54
- accountHolderTaxResidenceCountry5: boolean | undefined;
55
- accountHolderTaxResidenceForeignTin5: boolean | undefined;
56
- accountHolderTaxResidenceForeignTin5IsNotRequired: boolean | undefined;
57
- accountHolderShowTaxResidence2: boolean | undefined;
58
- accountHolderShowTaxResidence3: boolean | undefined;
59
- accountHolderShowTaxResidence4: boolean | undefined;
60
- accountHolderShowTaxResidence5: boolean | undefined;
61
- accountHolderUsTin: boolean | undefined;
62
- accountHolderVatIdentificationNumber: boolean | undefined;
63
- accountHolderVatIdentificationNumberIsNotRequired: boolean | undefined;
64
- accountHolderVatCountry: boolean | undefined;
65
- accountHolderIsIndividual: boolean | undefined;
66
- accountHolderIsEuResident: boolean | undefined;
67
- accountHolderUsPerson: boolean | undefined;
68
- accountHolderUsAccountType: boolean | undefined;
69
- accountHolderUsSmllcElection: boolean | undefined;
70
- accountHolderUsLlcClassification: boolean | undefined;
71
- accountHolderUsOtherClassification: boolean | undefined;
72
- accountHolderUsTrustEstateEin: boolean | undefined;
73
- accountHolderForeignAccountType: boolean | undefined;
74
- accountHolderForeignTrustClassification: boolean | undefined;
75
- accountHolderForeignOtherClassification: boolean | undefined;
76
- regardedOwnerAddressCity: boolean | undefined;
77
- regardedOwnerAddressCountry: boolean | undefined;
78
- regardedOwnerAddressState: boolean | undefined;
79
- regardedOwnerAddressStreet2: boolean | undefined;
80
- regardedOwnerAddressStreet: boolean | undefined;
81
- regardedOwnerAddressZip: boolean | undefined;
82
- regardedOwnerCountryOfCitizenship: boolean | undefined;
83
- regardedOwnerDateOfBirth: boolean | undefined;
84
- regardedOwnerDbaName: boolean | undefined;
85
- regardedOwnerMailingAddressCity: boolean | undefined;
86
- regardedOwnerMailingAddressCountry: boolean | undefined;
87
- regardedOwnerMailingAddressIsDifferent: boolean | undefined;
88
- regardedOwnerMailingAddressState: boolean | undefined;
89
- regardedOwnerMailingAddressStreet2: boolean | undefined;
90
- regardedOwnerMailingAddressStreet: boolean | undefined;
91
- regardedOwnerMailingAddressZip: boolean | undefined;
92
- regardedOwnerName: boolean | undefined;
93
- regardedOwnerUsAccountType: boolean | undefined;
94
- regardedOwnerUsLlcClassification: boolean | undefined;
95
- regardedOwnerUsOtherClassification: boolean | undefined;
96
- regardedOwnerUsTrustEstateEin: boolean | undefined;
97
- regardedOwnerForeignAccountType: boolean | undefined;
98
- regardedOwnerForeignTrustClassification: boolean | undefined;
99
- regardedOwnerForeignOtherClassification: boolean | undefined;
100
- regardedOwnerForeignTin: boolean | undefined;
101
- regardedOwnerForeignTinIsNotRequired: boolean | undefined;
102
- regardedOwnerUsTin: boolean | undefined;
103
- };
@@ -1,104 +0,0 @@
1
- import { TaxDocumentation, TaxDocumentationKey } from "../types";
2
- import { ErrorKey } from "../i18n/types";
3
- export declare const getValidationMessages: (fields: TaxDocumentation) => {
4
- exemptPayeeCode: ErrorKey | undefined;
5
- exemptFatcaCode: ErrorKey | undefined;
6
- iAcknowlegeESignIsOk: ErrorKey | undefined;
7
- iAmACitizenOfTheUs: ErrorKey | undefined;
8
- iAmExemptFromFatcaReporting: ErrorKey | undefined;
9
- iAmNotSubjectToBackupWithholding: ErrorKey | undefined;
10
- iAuthorizeWithholdingAgent: ErrorKey | undefined;
11
- iCertifyToAll: ErrorKey | undefined;
12
- iConfirmIncomeIsNonUs: ErrorKey | undefined;
13
- iConfirmTheBeneficialOwnerIsExempt: ErrorKey | undefined;
14
- iConfirmTheEntityIsNotAUsPerson: ErrorKey | undefined;
15
- iConfirmTheEntityIsTheBeneficialOwner: ErrorKey | undefined;
16
- iConfirmTheTaxIdIsCorrect: ErrorKey | undefined;
17
- iHaveLegalCapacityToSign: ErrorKey | undefined;
18
- regardedOwnerUsPerson: ErrorKey | undefined;
19
- signature: ErrorKey | undefined;
20
- accountHolderAddressCity: ErrorKey | undefined;
21
- accountHolderAddressCountry: ErrorKey | undefined;
22
- accountHolderAddressState: ErrorKey | undefined;
23
- accountHolderAddressStreet2: ErrorKey | undefined;
24
- accountHolderAddressStreet: ErrorKey | undefined;
25
- accountHolderAddressZip: ErrorKey | undefined;
26
- accountHolderCityOfBirth: ErrorKey | undefined;
27
- accountHolderCountryOfBirth: ErrorKey | undefined;
28
- accountHolderCountryOfCitizenship: ErrorKey | undefined;
29
- accountHolderDateOfBirth: ErrorKey | undefined;
30
- accountHolderDbaName: ErrorKey | undefined;
31
- accountHolderMailingAddressCity: ErrorKey | undefined;
32
- accountHolderMailingAddressCountry: ErrorKey | undefined;
33
- accountHolderMailingAddressIsDifferent: ErrorKey | undefined;
34
- accountHolderMailingAddressState: ErrorKey | undefined;
35
- accountHolderMailingAddressStreet2: ErrorKey | undefined;
36
- accountHolderMailingAddressStreet: ErrorKey | undefined;
37
- accountHolderMailingAddressZip: ErrorKey | undefined;
38
- accountHolderName: ErrorKey | undefined;
39
- accountHolderFinancialAccountIdentifier: ErrorKey | undefined;
40
- accountHolderFinancialAccountName: ErrorKey | undefined;
41
- accountHolderForeignTin: ErrorKey | undefined;
42
- accountHolderForeignTinIsNotRequired: ErrorKey | undefined;
43
- accountHolderTaxResidenceCountry1: ErrorKey | undefined;
44
- accountHolderTaxResidenceForeignTin1: ErrorKey | undefined;
45
- accountHolderTaxResidenceForeignTin1IsNotRequired: ErrorKey | undefined;
46
- accountHolderTaxResidenceCountry2: ErrorKey | undefined;
47
- accountHolderTaxResidenceForeignTin2: ErrorKey | undefined;
48
- accountHolderTaxResidenceForeignTin2IsNotRequired: ErrorKey | undefined;
49
- accountHolderTaxResidenceCountry3: ErrorKey | undefined;
50
- accountHolderTaxResidenceForeignTin3: ErrorKey | undefined;
51
- accountHolderTaxResidenceForeignTin3IsNotRequired: ErrorKey | undefined;
52
- accountHolderTaxResidenceCountry4: ErrorKey | undefined;
53
- accountHolderTaxResidenceForeignTin4: ErrorKey | undefined;
54
- accountHolderTaxResidenceForeignTin4IsNotRequired: ErrorKey | undefined;
55
- accountHolderTaxResidenceCountry5: ErrorKey | undefined;
56
- accountHolderTaxResidenceForeignTin5: ErrorKey | undefined;
57
- accountHolderTaxResidenceForeignTin5IsNotRequired: ErrorKey | undefined;
58
- accountHolderShowTaxResidence2: ErrorKey | undefined;
59
- accountHolderShowTaxResidence3: ErrorKey | undefined;
60
- accountHolderShowTaxResidence4: ErrorKey | undefined;
61
- accountHolderShowTaxResidence5: ErrorKey | undefined;
62
- accountHolderUsTin: ErrorKey | undefined;
63
- accountHolderVatIdentificationNumber: ErrorKey | undefined;
64
- accountHolderVatIdentificationNumberIsNotRequired: ErrorKey | undefined;
65
- accountHolderVatCountry: ErrorKey | undefined;
66
- accountHolderIsIndividual: ErrorKey | undefined;
67
- accountHolderIsEuResident: ErrorKey | undefined;
68
- accountHolderUsPerson: ErrorKey | undefined;
69
- accountHolderUsAccountType: ErrorKey | undefined;
70
- accountHolderUsSmllcElection: ErrorKey | undefined;
71
- accountHolderUsLlcClassification: ErrorKey | undefined;
72
- accountHolderUsOtherClassification: ErrorKey | undefined;
73
- accountHolderUsTrustEstateEin: ErrorKey | undefined;
74
- accountHolderForeignAccountType: ErrorKey | undefined;
75
- accountHolderForeignTrustClassification: ErrorKey | undefined;
76
- accountHolderForeignOtherClassification: ErrorKey | undefined;
77
- regardedOwnerAddressCity: ErrorKey | undefined;
78
- regardedOwnerAddressCountry: ErrorKey | undefined;
79
- regardedOwnerAddressState: ErrorKey | undefined;
80
- regardedOwnerAddressStreet2: ErrorKey | undefined;
81
- regardedOwnerAddressStreet: ErrorKey | undefined;
82
- regardedOwnerAddressZip: ErrorKey | undefined;
83
- regardedOwnerCountryOfCitizenship: ErrorKey | undefined;
84
- regardedOwnerDateOfBirth: ErrorKey | undefined;
85
- regardedOwnerDbaName: ErrorKey | undefined;
86
- regardedOwnerMailingAddressCity: ErrorKey | undefined;
87
- regardedOwnerMailingAddressCountry: ErrorKey | undefined;
88
- regardedOwnerMailingAddressIsDifferent: ErrorKey | undefined;
89
- regardedOwnerMailingAddressState: ErrorKey | undefined;
90
- regardedOwnerMailingAddressStreet2: ErrorKey | undefined;
91
- regardedOwnerMailingAddressStreet: ErrorKey | undefined;
92
- regardedOwnerMailingAddressZip: ErrorKey | undefined;
93
- regardedOwnerName: ErrorKey | undefined;
94
- regardedOwnerUsAccountType: ErrorKey | undefined;
95
- regardedOwnerUsLlcClassification: ErrorKey | undefined;
96
- regardedOwnerUsOtherClassification: ErrorKey | undefined;
97
- regardedOwnerUsTrustEstateEin: ErrorKey | undefined;
98
- regardedOwnerForeignAccountType: ErrorKey | undefined;
99
- regardedOwnerForeignTrustClassification: ErrorKey | undefined;
100
- regardedOwnerForeignOtherClassification: ErrorKey | undefined;
101
- regardedOwnerForeignTin: ErrorKey | undefined;
102
- regardedOwnerForeignTinIsNotRequired: ErrorKey | undefined;
103
- regardedOwnerUsTin: ErrorKey | undefined;
104
- };
@@ -1,6 +0,0 @@
1
- import type { TaxForm, TaxDocumentation, TaxDocumentationKey } from "types";
2
- type TaxDocumentationPropertyFile = {
3
- [key in TaxDocumentationKey]: boolean;
4
- };
5
- export declare const getVisibleQuestions: (fields: TaxDocumentation, supportedForms: TaxForm[]) => TaxDocumentationPropertyFile;
6
- export {};
@@ -1,3 +0,0 @@
1
- import { TaxDocumentation } from "types";
2
- import { ClientTaxDocumentation } from "../types/external";
3
- export declare const transformInbound: (data: ClientTaxDocumentation) => TaxDocumentation;
@@ -1,7 +0,0 @@
1
- import { TaxDocumentation, TaxDocumentationKey } from "types/TaxDocumentation";
2
- import { ErrorKey } from "i18n/types";
3
- export type FormUIValidation = ((value: string | undefined, fields: TaxDocumentation) => ErrorKey | undefined) | ((value: string | undefined) => ErrorKey | undefined);
4
- export type FormUIValidations = {
5
- [key in TaxDocumentationKey]?: FormUIValidation;
6
- };
7
- export declare const validations: FormUIValidations;
File without changes