@taxbit/react-sdk 0.6.2 → 1.0.0-beta.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 (250) hide show
  1. package/README.md +61 -53
  2. package/dist/src/components/Address/Address.d.ts +1 -2
  3. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +1 -2
  4. package/dist/src/components/Form/Form.d.ts +2 -1
  5. package/dist/src/components/Form/index.d.ts +1 -1
  6. package/dist/src/contexts/QuestionnaireUI/QuestionnaireUIProvider.d.ts +6 -0
  7. package/dist/src/contexts/QuestionnaireUI/getLocal.d.ts +19 -0
  8. package/dist/src/contexts/{FormUI → QuestionnaireUI}/index.d.ts +3 -3
  9. package/dist/src/contexts/{FormUI/useFormUI.d.ts → QuestionnaireUI/useQuestionnaireUI.d.ts} +6 -6
  10. package/dist/src/contexts/{FormUI/useFormUIContext.d.ts → QuestionnaireUI/useQuestionnaireUIContext.d.ts} +18 -18
  11. package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +7 -0
  12. package/dist/src/contexts/TaxDocumentation/index.d.ts +1 -1
  13. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +13 -15
  14. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +24 -30
  15. package/dist/src/contexts/index.d.ts +2 -2
  16. package/dist/src/entry/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +9 -0
  17. package/dist/src/entry/TaxbitQuestionnaire/index.d.ts +1 -0
  18. package/dist/src/entry/index.d.ts +4 -6
  19. package/dist/src/hooks/index.d.ts +1 -1
  20. package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +2 -0
  21. package/dist/src/hooks/{useTaxBit → useTaxbit}/__tests__/serverTaxDocumentation.d.ts +1 -1
  22. package/dist/src/hooks/useTaxbit/index.d.ts +1 -0
  23. package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +9 -0
  24. package/dist/src/hooks/useTaxbit/useTaxbitConnect.d.ts +8 -0
  25. package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +8 -0
  26. package/dist/src/i18n/index.d.ts +1 -1
  27. package/dist/src/i18n/locales/bg.d.ts +1 -0
  28. package/dist/src/i18n/locales/cs.d.ts +1 -0
  29. package/dist/src/i18n/locales/da.d.ts +1 -0
  30. package/dist/src/i18n/locales/de-at.d.ts +1 -2
  31. package/dist/src/i18n/locales/de.d.ts +3 -0
  32. package/dist/src/i18n/locales/el-cy.d.ts +3 -2
  33. package/dist/src/i18n/locales/el.d.ts +3 -0
  34. package/dist/src/i18n/locales/{bg-bg.d.ts → en-nz.d.ts} +1 -1
  35. package/dist/src/i18n/locales/{cs-cz.d.ts → en.d.ts} +1 -1
  36. package/dist/src/i18n/locales/{da-dk.d.ts → es.d.ts} +1 -1
  37. package/dist/src/i18n/locales/et.d.ts +1 -0
  38. package/dist/src/i18n/locales/fi.d.ts +1 -0
  39. package/dist/src/i18n/locales/{de-de.d.ts → fr-ca.d.ts} +1 -1
  40. package/dist/src/i18n/locales/fr-lu.d.ts +1 -2
  41. package/dist/src/i18n/locales/fr.d.ts +2 -0
  42. package/dist/src/i18n/locales/ga.d.ts +2 -0
  43. package/dist/src/i18n/locales/hr.d.ts +1 -0
  44. package/dist/src/i18n/locales/hu.d.ts +1 -0
  45. package/dist/src/i18n/locales/index.d.ts +33 -30
  46. package/dist/src/i18n/locales/it.d.ts +1 -0
  47. package/dist/src/i18n/locales/lt.d.ts +3 -0
  48. package/dist/src/i18n/locales/lv.d.ts +1 -0
  49. package/dist/src/i18n/locales/mergePropertyFiles.d.ts +6 -0
  50. package/dist/src/i18n/locales/mt.d.ts +1 -0
  51. package/dist/src/i18n/locales/nl-be.d.ts +3 -2
  52. package/dist/src/i18n/locales/nl.d.ts +1 -0
  53. package/dist/src/i18n/locales/no.d.ts +1 -0
  54. package/dist/src/i18n/locales/pl.d.ts +3 -0
  55. package/dist/src/i18n/locales/pt.d.ts +1 -0
  56. package/dist/src/i18n/locales/ro.d.ts +1 -0
  57. package/dist/src/i18n/locales/sk.d.ts +1 -0
  58. package/dist/src/i18n/locales/sl.d.ts +1 -0
  59. package/dist/src/i18n/locales/sv.d.ts +1 -0
  60. package/dist/src/i18n/locales/translation-missing.d.ts +5 -0
  61. package/dist/src/i18n/localizationFileMap.d.ts +7 -0
  62. package/dist/src/i18n/types/LocalizationKey.d.ts +8 -8
  63. package/dist/src/i18n/types/PropertyFile.d.ts +23 -19
  64. package/dist/src/i18n/utils/getText.d.ts +2 -9
  65. package/dist/src/lookups/countryOptions.d.ts +1 -7
  66. package/dist/src/lookups/dayOptions.d.ts +1 -1
  67. package/dist/src/lookups/fatcaCodeOptions.d.ts +2 -2
  68. package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +3 -15
  69. package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +3 -17
  70. package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +3 -11
  71. package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +3 -9
  72. package/dist/src/lookups/index.d.ts +13 -16
  73. package/dist/src/lookups/localeOptions.d.ts +5 -1
  74. package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
  75. package/dist/src/lookups/toOptions.d.ts +1 -1
  76. package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +3 -23
  77. package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +3 -9
  78. package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +3 -15
  79. package/dist/src/services/api.d.ts +7 -2
  80. package/dist/src/test/Wrapper.d.ts +3 -3
  81. package/dist/src/test/getWrapper.d.ts +3 -3
  82. package/dist/src/test/utils/helpers.d.ts +7 -2
  83. package/dist/src/types/InputStep.d.ts +2 -2
  84. package/dist/src/types/Locale.d.ts +1 -1
  85. package/dist/src/types/Questionnaire.d.ts +1 -0
  86. package/dist/src/types/StepId.d.ts +1 -1
  87. package/dist/src/types/TaxDocumentation.d.ts +30 -30
  88. package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +12 -3
  89. package/dist/src/types/client/index.d.ts +0 -1
  90. package/dist/src/types/index.d.ts +1 -6
  91. package/dist/src/types/server/TaxDocumentationStatus.d.ts +12 -3
  92. package/dist/src/types/server/index.d.ts +0 -1
  93. package/dist/src/ui/ActionButton/index.d.ts +1 -1
  94. package/dist/src/ui/CheckBox/CheckBox.d.ts +2 -1
  95. package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
  96. package/dist/src/ui/DateOfBirthInput/index.d.ts +1 -1
  97. package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +2 -2
  98. package/dist/src/ui/FormattedInput/FormattedInput.d.ts +11 -0
  99. package/dist/src/ui/FormattedInput/index.d.ts +1 -0
  100. package/dist/src/ui/PasswordInput/PasswordInput.d.ts +9 -0
  101. package/dist/src/ui/PasswordInput/index.d.ts +1 -0
  102. package/dist/src/ui/RadioButtons/index.d.ts +1 -1
  103. package/dist/src/ui/Select/index.d.ts +1 -1
  104. package/dist/src/ui/{MaskedInput/MaskedInput.d.ts → ShowHideInput/ShowHideInput.d.ts} +2 -3
  105. package/dist/src/ui/ShowHideInput/index.d.ts +1 -0
  106. package/dist/src/ui/TextInput/TextInput.d.ts +1 -2
  107. package/dist/src/ui/TextInput/index.d.ts +1 -1
  108. package/dist/src/ui/index.d.ts +3 -1
  109. package/dist/src/utils/formatUsTin.d.ts +5 -0
  110. package/dist/src/utils/getFieldsState.d.ts +16 -10
  111. package/dist/src/utils/getMaskedContent.d.ts +1 -0
  112. package/dist/src/utils/getPromptKeyMap.d.ts +22 -22
  113. package/dist/src/utils/index.d.ts +3 -2
  114. package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -1
  115. package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -1
  116. package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +2 -0
  117. package/dist/src/utils/transformForClient/index.d.ts +1 -1
  118. package/dist/src/utils/transformForClient/transformForClient.d.ts +3 -2
  119. package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +1 -53
  120. package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +1 -36
  121. package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +1 -1
  122. package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +1 -1
  123. package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +1 -1
  124. package/dist/src/utils/transformInbound/getLLCClassification.d.ts +1 -1
  125. package/dist/src/utils/transformInbound/getUsAccountType.d.ts +1 -1
  126. package/dist/src/utils/transformInbound/transformInbound.d.ts +3 -3
  127. package/dist/src/utils/uppercase.d.ts +1 -0
  128. package/dist/src/validations/getInvalidFields.d.ts +2 -2
  129. package/dist/src/validations/getRequiredFields.d.ts +2 -2
  130. package/dist/src/validations/getSupportedFields.d.ts +2 -2
  131. package/dist/src/validations/getVisibleFields.d.ts +2 -2
  132. package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +5 -0
  133. package/dist/src/widgets/TaxbitQuestionnairePersist/index.d.ts +2 -0
  134. package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +25 -0
  135. package/dist/src/widgets/index.d.ts +1 -1
  136. package/dist/src/wizard/AddressInput/AddressInput.d.ts +2 -1
  137. package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +4 -1
  138. package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +1 -2
  139. package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +2 -1
  140. package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +4 -3
  141. package/dist/src/wizard/RowInput/DateOfBirthRow/index.d.ts +1 -1
  142. package/dist/src/wizard/RowInput/ErrorRow/index.d.ts +1 -1
  143. package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +2 -2
  144. package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +11 -0
  145. package/dist/src/wizard/RowInput/ShowHideInputRow/index.d.ts +1 -0
  146. package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +3 -4
  147. package/dist/src/wizard/RowInput/index.d.ts +1 -1
  148. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/index.d.ts +1 -0
  149. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/index.d.ts +1 -0
  150. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/index.d.ts +1 -0
  151. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/index.d.ts +1 -0
  152. package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/index.d.ts +1 -0
  153. package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/index.d.ts +1 -0
  154. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/index.d.ts +1 -0
  155. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/index.d.ts +1 -0
  156. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/index.d.ts +1 -0
  157. package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +6 -0
  158. package/dist/src/wizard/TaxbitQuestionnaireUI/index.d.ts +1 -0
  159. package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/steps.d.ts +0 -1
  160. package/dist/src/wizard/index.d.ts +1 -1
  161. package/dist/taxbit-react-sdk.js +5805 -16660
  162. package/dist/taxbit-react-sdk.umd.cjs +10 -10
  163. package/package.json +10 -18
  164. package/style/basic.css +32 -13
  165. package/style/inline.css +32 -13
  166. package/dist/src/contexts/FormUI/FormUIProvider.d.ts +0 -6
  167. package/dist/src/contexts/FormUI/getLocal.d.ts +0 -20
  168. package/dist/src/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +0 -7
  169. package/dist/src/hooks/useTaxBit/__tests__/clientTaxDocumentation.d.ts +0 -2
  170. package/dist/src/hooks/useTaxBit/index.d.ts +0 -1
  171. package/dist/src/hooks/useTaxBit/useTaxBit.d.ts +0 -7
  172. package/dist/src/i18n/i18n.d.ts +0 -7
  173. package/dist/src/i18n/locales/el-gr.d.ts +0 -2
  174. package/dist/src/i18n/locales/es-es.d.ts +0 -2
  175. package/dist/src/i18n/locales/et-ee.d.ts +0 -2
  176. package/dist/src/i18n/locales/fi-fi.d.ts +0 -2
  177. package/dist/src/i18n/locales/fr-fr.d.ts +0 -2
  178. package/dist/src/i18n/locales/ga-ie.d.ts +0 -2
  179. package/dist/src/i18n/locales/hr-hr.d.ts +0 -2
  180. package/dist/src/i18n/locales/hu-hu.d.ts +0 -2
  181. package/dist/src/i18n/locales/it-it.d.ts +0 -2
  182. package/dist/src/i18n/locales/lt-lt.d.ts +0 -2
  183. package/dist/src/i18n/locales/lv-lv.d.ts +0 -2
  184. package/dist/src/i18n/locales/mt-mt.d.ts +0 -2
  185. package/dist/src/i18n/locales/nl-nl.d.ts +0 -2
  186. package/dist/src/i18n/locales/no-no.d.ts +0 -2
  187. package/dist/src/i18n/locales/pl-pl.d.ts +0 -2
  188. package/dist/src/i18n/locales/pt-pt.d.ts +0 -2
  189. package/dist/src/i18n/locales/ro-ro.d.ts +0 -2
  190. package/dist/src/i18n/locales/sk-sk.d.ts +0 -2
  191. package/dist/src/i18n/locales/sl-si.d.ts +0 -2
  192. package/dist/src/i18n/locales/sv-se.d.ts +0 -2
  193. package/dist/src/lookups/caProvinceOptions.d.ts +0 -4
  194. package/dist/src/lookups/monthOptions.d.ts +0 -4
  195. package/dist/src/lookups/usStateOptions.d.ts +0 -4
  196. package/dist/src/types/AccountType.d.ts +0 -6
  197. package/dist/src/types/CaProvinceCode.d.ts +0 -1
  198. package/dist/src/types/CountryCode.d.ts +0 -3
  199. package/dist/src/types/MonthCode.d.ts +0 -1
  200. package/dist/src/types/TaxForm.d.ts +0 -1
  201. package/dist/src/types/UsStateCode.d.ts +0 -1
  202. package/dist/src/types/client/ClientTaxDocumentation.d.ts +0 -84
  203. package/dist/src/types/server/ComprehensiveTaxDocumentation.d.ts +0 -84
  204. package/dist/src/ui/MaskedInput/index.d.ts +0 -1
  205. package/dist/src/ui/Password/Password.d.ts +0 -12
  206. package/dist/src/ui/Password/index.d.ts +0 -1
  207. package/dist/src/utils/date.d.ts +0 -4
  208. package/dist/src/utils/getHintKeyMap.d.ts +0 -113
  209. package/dist/src/utils/getVerboseDate.d.ts +0 -1
  210. package/dist/src/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +0 -4
  211. package/dist/src/widgets/TaxBitForm/TaxBitForm.d.ts +0 -5
  212. package/dist/src/widgets/TaxBitForm/index.d.ts +0 -2
  213. package/dist/src/widgets/TaxBitForm/useTaxBitForm.d.ts +0 -22
  214. package/dist/src/wizard/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +0 -2
  215. package/dist/src/wizard/PlaceOfBirthInput/index.d.ts +0 -1
  216. package/dist/src/wizard/RowInput/MaskedInputRow/MaskedInputRow.d.ts +0 -11
  217. package/dist/src/wizard/RowInput/MaskedInputRow/index.d.ts +0 -1
  218. package/dist/src/wizard/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -1
  219. package/dist/src/wizard/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -1
  220. package/dist/src/wizard/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -1
  221. package/dist/src/wizard/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -1
  222. package/dist/src/wizard/TaxBitFormUI/AppError/index.d.ts +0 -1
  223. package/dist/src/wizard/TaxBitFormUI/Exemptions/index.d.ts +0 -1
  224. package/dist/src/wizard/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +0 -2
  225. package/dist/src/wizard/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -1
  226. package/dist/src/wizard/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -1
  227. package/dist/src/wizard/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -1
  228. package/dist/src/wizard/TaxBitFormUI/Summary/index.d.ts +0 -1
  229. package/dist/src/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -4
  230. package/dist/src/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +0 -6
  231. package/dist/src/wizard/TaxBitFormUI/index.d.ts +0 -2
  232. /package/dist/src/contexts/{FormUI → QuestionnaireUI}/shiftResidence.d.ts +0 -0
  233. /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitDAC7Form.loaded.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts} +0 -0
  234. /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitForm.complete.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts} +0 -0
  235. /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitForm.loaded.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts} +0 -0
  236. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderClassification/AccountHolderClassification.d.ts +0 -0
  237. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderContact/AccountHolderContact.d.ts +0 -0
  238. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderTax/AccountHolderTax.d.ts +0 -0
  239. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -0
  240. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AppError/AppError.d.ts +0 -0
  241. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Confirmation/Confirmation.d.ts +0 -0
  242. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Confirmation/index.d.ts +0 -0
  243. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Exemptions/Exemptions.d.ts +0 -0
  244. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -0
  245. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -0
  246. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Summary/Recap.d.ts +0 -0
  247. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Summary/Summary.d.ts +0 -0
  248. /package/dist/src/{widgets/TaxBitForm/__tests__/TaxBitForm.loading.test.d.ts → wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts} +0 -0
  249. /package/dist/src/wizard/{TaxBitFormUI/__tests__/TaxBitDAC7FormUI.test.d.ts → TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts} +0 -0
  250. /package/dist/src/wizard/{TaxBitFormUI/__tests__/TaxBitFormUI.test.d.ts → TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts} +0 -0
@@ -1,17 +1,3 @@
1
- export declare const foreignOtherClassificationOptions: readonly [{
2
- readonly value: "taxExemptOrganization";
3
- }, {
4
- readonly value: "privateFoundation";
5
- }, {
6
- readonly value: "internationalOrganization";
7
- }, {
8
- readonly value: "centralBankOfIssue";
9
- }, {
10
- readonly value: "foreignGovernmentControlledEntity";
11
- }, {
12
- readonly value: "foreignGovernmentIntegralPart";
13
- }, {
14
- readonly value: "estate";
15
- }];
16
- export declare const foreignOtherClassifications: ("estate" | "taxExemptOrganization" | "privateFoundation" | "internationalOrganization" | "centralBankOfIssue" | "foreignGovernmentControlledEntity" | "foreignGovernmentIntegralPart")[];
17
- export type ForeignOtherClassification = (typeof foreignOtherClassificationOptions)[number]["value"];
1
+ export declare const foreignOtherClassificationOptions: {
2
+ value: "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE";
3
+ }[];
@@ -1,11 +1,3 @@
1
- export declare const foreignRegardedOwnerAccountTypeOptions: readonly [{
2
- readonly value: "individual";
3
- }, {
4
- readonly value: "corporation";
5
- }, {
6
- readonly value: "partnership";
7
- }, {
8
- readonly value: "trust";
9
- }, {
10
- readonly value: "other";
11
- }];
1
+ export declare const foreignRegardedOwnerAccountTypeOptions: {
2
+ value: "INDIVIDUAL" | "CORPORATION" | "PARTNERSHIP" | "TRUST" | "OTHER";
3
+ }[];
@@ -1,9 +1,3 @@
1
- export declare const foreignTrustClassificationOptions: readonly [{
2
- readonly value: "simpleTrust";
3
- }, {
4
- readonly value: "complexTrust";
5
- }, {
6
- readonly value: "grantorTrust";
7
- }];
8
- export declare const foreignTrustClassifications: ("simpleTrust" | "complexTrust" | "grantorTrust")[];
9
- export type ForeignTrustClassification = (typeof foreignTrustClassificationOptions)[number]["value"];
1
+ export declare const foreignTrustClassificationOptions: {
2
+ value: "SIMPLE_TRUST" | "COMPLEX_TRUST" | "GRANTOR_TRUST";
3
+ }[];
@@ -1,16 +1,13 @@
1
- export * from "./caProvinceOptions";
2
- export * from "./countryOptions";
3
- export * from "./dayOptions";
4
- export * from "./fatcaCodeOptions";
5
- export * from "./foreignAccountHolderAccountTypeOptions";
6
- export * from "./foreignOtherClassificationOptions";
7
- export * from "./foreignRegardedOwnerAccountTypeOptions";
8
- export * from "./foreignTrustClassificationOptions";
9
- export * from "./localeOptions";
10
- export * from "./monthOptions";
11
- export * from "./payeeCodeOptions";
12
- export * from "./usAccountHolderAccountTypeOptions";
13
- export * from "./usLlcAccountTypeOptions";
14
- export * from "./usRegardedOwnerAccountTypeOptions";
15
- export * from "./usStateOptions";
16
- export * from "./yearOptions";
1
+ export * from './countryOptions';
2
+ export * from './dayOptions';
3
+ export * from './fatcaCodeOptions';
4
+ export * from './foreignAccountHolderAccountTypeOptions';
5
+ export * from './foreignOtherClassificationOptions';
6
+ export * from './foreignRegardedOwnerAccountTypeOptions';
7
+ export * from './foreignTrustClassificationOptions';
8
+ export * from './localeOptions';
9
+ export * from './payeeCodeOptions';
10
+ export * from './usAccountHolderAccountTypeOptions';
11
+ export * from './usLlcAccountTypeOptions';
12
+ export * from './usRegardedOwnerAccountTypeOptions';
13
+ export * from './yearOptions';
@@ -1,5 +1,9 @@
1
1
  import { Locale } from 'types';
2
- export declare const localeOptions: {
2
+ export declare const localeDPSOptions: {
3
+ value: Locale;
4
+ label: string;
5
+ }[];
6
+ export declare const localeWFormOptions: {
3
7
  value: Locale;
4
8
  label: string;
5
9
  }[];
@@ -1,4 +1,4 @@
1
- export type PayeeCode = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
2
1
  export declare const payeeCodeOptions: {
3
- value: PayeeCode;
2
+ label: "10" | "11" | "12" | "13" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
3
+ value: "10" | "11" | "12" | "13" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
4
4
  }[];
@@ -1,3 +1,3 @@
1
- export declare const toOptions: <T extends string | number>(values: readonly T[]) => {
1
+ export declare const toOptions: <T>(values: readonly T[]) => {
2
2
  value: T;
3
3
  }[];
@@ -1,23 +1,3 @@
1
- export declare const usAccountHolderAccountTypeOptions: readonly [{
2
- readonly value: "individual";
3
- }, {
4
- readonly value: "soleProprietor";
5
- }, {
6
- readonly value: "llc";
7
- }, {
8
- readonly value: "smllc";
9
- }, {
10
- readonly value: "cCorporation";
11
- }, {
12
- readonly value: "sCorporation";
13
- }, {
14
- readonly value: "partnership";
15
- }, {
16
- readonly value: "trustEstate";
17
- }, {
18
- readonly value: "other";
19
- }, {
20
- readonly value: "disregardedEntity";
21
- }];
22
- export declare const usAccountHolderAccountTypes: ("individual" | "smllc" | "llc" | "other" | "partnership" | "disregardedEntity" | "soleProprietor" | "cCorporation" | "sCorporation" | "trustEstate")[];
23
- export type UsAccountHolderAccountType = (typeof usAccountHolderAccountTypeOptions)[number]["value"];
1
+ export declare const usAccountHolderAccountTypeOptions: {
2
+ value: "INDIVIDUAL" | "PARTNERSHIP" | "OTHER" | "DISREGARDED_ENTITY" | "SOLE_PROPRIETOR" | "LLC" | "SM_LLC" | "C_CORPORATION" | "S_CORPORATION" | "TRUST_ESTATE";
3
+ }[];
@@ -1,9 +1,3 @@
1
- export declare const usLlcAccountTypeOptions: readonly [{
2
- readonly value: "cCorporation";
3
- }, {
4
- readonly value: "sCorporation";
5
- }, {
6
- readonly value: "partnership";
7
- }];
8
- export declare const usLlcAccountTypes: ("partnership" | "cCorporation" | "sCorporation")[];
9
- export type UsLLCAccountType = (typeof usLlcAccountTypeOptions)[number]["value"];
1
+ export declare const usLlcAccountTypeOptions: {
2
+ value: "PARTNERSHIP" | "C_CORPORATION" | "S_CORPORATION";
3
+ }[];
@@ -1,15 +1,3 @@
1
- export declare const usRegardedOwnerAccountTypeOptions: readonly [{
2
- readonly value: "individual";
3
- }, {
4
- readonly value: "llc";
5
- }, {
6
- readonly value: "cCorporation";
7
- }, {
8
- readonly value: "sCorporation";
9
- }, {
10
- readonly value: "partnership";
11
- }, {
12
- readonly value: "trustEstate";
13
- }, {
14
- readonly value: "other";
15
- }];
1
+ export declare const usRegardedOwnerAccountTypeOptions: {
2
+ value: "INDIVIDUAL" | "PARTNERSHIP" | "OTHER" | "LLC" | "C_CORPORATION" | "S_CORPORATION" | "TRUST_ESTATE";
3
+ }[];
@@ -1,9 +1,14 @@
1
+ import { Questionnaire } from 'types';
1
2
  export declare const api: {
2
- taxDocumentation: {
3
+ taxDocumentationSubmissions: {
3
4
  post: (environment: 'PRODUCTION' | 'STAGING') => string;
4
- get: (environment: 'PRODUCTION' | 'STAGING') => string;
5
+ get: (environment: 'PRODUCTION' | 'STAGING', questionnaire: Questionnaire) => string;
5
6
  };
6
7
  taxDocumentationStatus: {
7
8
  get: (environment: 'PRODUCTION' | 'STAGING') => string;
8
9
  };
10
+ taxDocument: {
11
+ post: (environment: 'PRODUCTION' | 'STAGING') => string;
12
+ get: (documentId: string, environment: 'PRODUCTION' | 'STAGING') => string;
13
+ };
9
14
  };
@@ -1,7 +1,7 @@
1
+ import { ClientTaxDocumentation } from '@taxbit/utilities';
1
2
  import React from 'react';
2
- import { ClientTaxDocumentation } from 'types/client';
3
- import { TaxForm } from '../types';
3
+ import { Questionnaire } from '../types';
4
4
  export declare const Wrapper: React.FC<React.PropsWithChildren & {
5
5
  initialData?: ClientTaxDocumentation;
6
- taxForms?: TaxForm[];
6
+ questionnaire?: Questionnaire;
7
7
  }>;
@@ -1,4 +1,4 @@
1
+ import { ClientTaxDocumentation } from '@taxbit/utilities';
1
2
  import React from 'react';
2
- import { TaxForm } from '../types';
3
- import { ClientTaxDocumentation } from '../types/client';
4
- export declare const getWrapper: (initialData?: ClientTaxDocumentation, taxForms?: TaxForm[]) => ({ children }: React.PropsWithChildren) => React.ReactNode;
3
+ import { Questionnaire } from '../types';
4
+ export declare const getWrapper: (initialData?: ClientTaxDocumentation, questionnaire?: Questionnaire) => ({ children }: React.PropsWithChildren) => React.ReactNode;
@@ -3,8 +3,10 @@ export declare const expectRowErrorText: (prompt: string, text: string) => void;
3
3
  export declare const expectNoRowError: (prompt: string) => void;
4
4
  export declare const expectText: (text: string, length?: number) => void;
5
5
  export declare const expectNullInput: (ariaLabel: string) => void;
6
+ export declare const expectDisabledInput: (ariaLabel: string) => void;
6
7
  export declare const expectInputValue: (ariaLabel: string, value: string) => void;
7
8
  export declare const clickLabel: (ariaLabel: string) => void;
9
+ export declare const clickShow: (text: string) => void;
8
10
  export declare const changeInput: (ariaLabel: string, value: string) => void;
9
11
  export declare const clickInput: (ariaLabel: string) => void;
10
12
  export declare const clickEdit: (ariaLabel: string) => void;
@@ -12,5 +14,8 @@ export declare const clickBack: () => void;
12
14
  export declare const clickNext: () => void;
13
15
  export declare const clickSubmit: () => void;
14
16
  export declare const clickAddAdditionalResidence: () => void;
15
- export declare const setBusinessNameAndAddress: () => void;
16
- export declare const setIndividualNameAndAddress: () => void;
17
+ export declare const setBusinessNameAndAddress: (prefix?: string) => void;
18
+ export declare const setIndividualNameAndAddress: (prefix?: string) => void;
19
+ export declare const setUSIndividualNameAndAddress: (prefix?: string) => void;
20
+ export declare const setIndividualNameAndAddressAndBirthDate: (prefix?: string) => void;
21
+ export declare const setUSIndividualNameAndAddressAndBirthDate: (prefix?: string) => void;
@@ -1,5 +1,5 @@
1
- declare const inputSteps: readonly ["AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderTaxClarification", "Confirmation", "Exemptions", "RegardedOwnerClassification", "RegardedOwnerContact", "RegardedOwnerTax", "Summary"];
1
+ declare const inputSteps: readonly ["AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderTaxClarification", "Confirmation", "Exemptions", "RegardedOwnerContact", "RegardedOwnerTax", "Summary"];
2
2
  export type InputStep = (typeof inputSteps)[number];
3
- export declare const isInputStep: (step: string) => step is "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
3
+ export declare const isInputStep: (step: string) => step is "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
4
4
  export declare const confirmInputStep: (step: string) => InputStep;
5
5
  export {};
@@ -1 +1 @@
1
- export type Locale = "bg-bg" | "cs-cz" | "da-dk" | "de-at" | "de-de" | "el-cy" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fi-fi" | "fr-fr" | "fr-lu" | "ga-ie" | "hr-hr" | "hu-hu" | "it-it" | "lt-lt" | "lv-lv" | "mt-mt" | "nl-be" | "nl-nl" | "no-no" | "pl-pl" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se";
1
+ export type Locale = 'bg' | 'cs' | 'da' | 'de' | 'de-at' | 'el' | 'el-cy' | 'en' | 'en-gb' | 'en-nz' | 'en-us' | 'es' | 'et' | 'fi' | 'fr' | 'fr-ca' | 'fr-lu' | 'ga' | 'hr' | 'hu' | 'it' | 'lt' | 'lv' | 'mt' | 'nl' | 'nl-be' | 'no' | 'pl' | 'pt' | 'ro' | 'sk' | 'sl' | 'sv';
@@ -0,0 +1 @@
1
+ export type Questionnaire = 'W-FORM' | 'DPS';
@@ -1 +1 @@
1
- export type StepId = 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxClarification' | 'accountHolderClassification' | 'confirmation' | 'exemptions' | 'regardedOwnerClassification' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'summary';
1
+ export type StepId = 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderClassification' | 'accountHolderTaxClarification' | 'confirmation' | 'exemptions' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'summary';
@@ -1,18 +1,18 @@
1
- import type { ForeignAccountType, ForeignOtherAccountType, ForeignTrustAccountType, UsAccountType, UsLlcAccountType } from './AccountType';
1
+ import type { ForeignAccountHolderAccountType, ForeignOtherClassification, ForeignRegardedOwnerAccountType, ForeignTrustClassification, UsAccountHolderAccountType, UsLLCAccountType, UsRegardedOwnerAccountType } from '@taxbit/utilities';
2
2
  import type { Yes } from './Yes';
3
3
  import type { YesNo } from './YesNo';
4
4
  export type AccountHolderClassificationData = {
5
5
  accountHolderIsIndividual?: YesNo;
6
- accountHolderIsEuResident?: YesNo;
7
6
  accountHolderUsPerson?: YesNo;
8
- accountHolderUsAccountType?: UsAccountType;
7
+ accountHolderUsAccountType?: UsAccountHolderAccountType;
9
8
  accountHolderUsSmllcElection?: YesNo;
10
- accountHolderUsLlcClassification?: UsLlcAccountType;
9
+ accountHolderUsLlcClassification?: UsLLCAccountType;
11
10
  accountHolderUsOtherClassification?: string;
12
11
  accountHolderUsTrustEstateEin?: YesNo;
13
- accountHolderForeignAccountType?: ForeignAccountType;
14
- accountHolderForeignTrustClassification?: ForeignTrustAccountType;
15
- accountHolderForeignOtherClassification?: ForeignOtherAccountType;
12
+ accountHolderUsSoleProprietorEin?: YesNo;
13
+ accountHolderForeignAccountType?: ForeignAccountHolderAccountType;
14
+ accountHolderForeignTrustClassification?: ForeignTrustClassification;
15
+ accountHolderForeignOtherClassification?: ForeignOtherClassification;
16
16
  };
17
17
  export type AccountHolderContactData = {
18
18
  accountHolderAddressCity?: string;
@@ -36,30 +36,30 @@ export type AccountHolderContactData = {
36
36
  accountHolderName?: string;
37
37
  };
38
38
  export type AccountHolderTaxData = {
39
- accountHolderFinancialAccountIdentifier?: string;
40
- accountHolderFinancialAccountName?: string;
41
39
  accountHolderForeignTin?: string;
42
40
  accountHolderForeignTinIsNotRequired?: Yes;
41
+ accountHolderUsTin?: string;
42
+ accountHolderFinancialAccountIdentifier?: string;
43
+ accountHolderFinancialAccountName?: string;
43
44
  accountHolderTaxResidenceCountry1?: string;
44
- accountHolderTaxResidenceForeignTin1?: string;
45
- accountHolderTaxResidenceForeignTin1IsNotRequired?: Yes;
45
+ accountHolderTaxResidenceTin1?: string;
46
+ accountHolderTaxResidenceTin1IsNotRequired?: Yes;
46
47
  accountHolderTaxResidenceCountry2?: string;
47
- accountHolderTaxResidenceForeignTin2?: string;
48
- accountHolderTaxResidenceForeignTin2IsNotRequired?: Yes;
48
+ accountHolderTaxResidenceTin2?: string;
49
+ accountHolderTaxResidenceTin2IsNotRequired?: Yes;
49
50
  accountHolderTaxResidenceCountry3?: string;
50
- accountHolderTaxResidenceForeignTin3?: string;
51
- accountHolderTaxResidenceForeignTin3IsNotRequired?: Yes;
51
+ accountHolderTaxResidenceTin3?: string;
52
+ accountHolderTaxResidenceTin3IsNotRequired?: Yes;
52
53
  accountHolderTaxResidenceCountry4?: string;
53
- accountHolderTaxResidenceForeignTin4?: string;
54
- accountHolderTaxResidenceForeignTin4IsNotRequired?: Yes;
54
+ accountHolderTaxResidenceTin4?: string;
55
+ accountHolderTaxResidenceTin4IsNotRequired?: Yes;
55
56
  accountHolderTaxResidenceCountry5?: string;
56
- accountHolderTaxResidenceForeignTin5?: string;
57
- accountHolderTaxResidenceForeignTin5IsNotRequired?: Yes;
57
+ accountHolderTaxResidenceTin5?: string;
58
+ accountHolderTaxResidenceTin5IsNotRequired?: Yes;
58
59
  accountHolderShowTaxResidence2?: YesNo;
59
60
  accountHolderShowTaxResidence3?: YesNo;
60
61
  accountHolderShowTaxResidence4?: YesNo;
61
62
  accountHolderShowTaxResidence5?: YesNo;
62
- accountHolderUsTin?: string;
63
63
  accountHolderVatIdentificationNumber?: string;
64
64
  accountHolderVatIsNotRequired?: Yes;
65
65
  accountHolderVatCountry?: string;
@@ -68,13 +68,12 @@ export type AccountHolderTaxData = {
68
68
  };
69
69
  export type RegardedOwnerClassificationData = {
70
70
  regardedOwnerUsPerson?: YesNo;
71
- regardedOwnerUsAccountType?: UsAccountType;
72
- regardedOwnerUsLlcClassification?: UsLlcAccountType;
71
+ regardedOwnerUsAccountType?: UsRegardedOwnerAccountType;
72
+ regardedOwnerUsLlcClassification?: UsLLCAccountType;
73
73
  regardedOwnerUsOtherClassification?: string;
74
- regardedOwnerUsTrustEstateEin?: YesNo;
75
- regardedOwnerForeignAccountType?: ForeignAccountType;
76
- regardedOwnerForeignTrustClassification?: ForeignTrustAccountType;
77
- regardedOwnerForeignOtherClassification?: ForeignOtherAccountType;
74
+ regardedOwnerForeignAccountType?: ForeignRegardedOwnerAccountType;
75
+ regardedOwnerForeignTrustClassification?: ForeignTrustClassification;
76
+ regardedOwnerForeignOtherClassification?: ForeignOtherClassification;
78
77
  };
79
78
  export type RegardedOwnerContactData = {
80
79
  regardedOwnerAddressCity?: string;
@@ -103,7 +102,7 @@ export type RegardedOwnerTaxData = {
103
102
  export type SummaryData = {
104
103
  exemptFatcaCode?: string;
105
104
  exemptPayeeCode?: string;
106
- iAcknowlegeESignIsOk?: Yes;
105
+ iAcknowledgeESignIsOk?: Yes;
107
106
  iAmACitizenOfTheUs?: Yes;
108
107
  iAmExemptFromFatcaReporting?: Yes;
109
108
  iAmNotSubjectToBackupWithholding?: Yes;
@@ -111,11 +110,12 @@ export type SummaryData = {
111
110
  iCertifyToAll?: Yes;
112
111
  iConfirmIncomeIsNonUs?: Yes;
113
112
  iConfirmTheBeneficialOwnerIsExempt?: Yes;
114
- iConfirmTheEntityIsNotAUsPerson?: Yes;
115
- iConfirmTheEntityIsTheBeneficialOwner?: Yes;
113
+ iConfirmNotAUsPerson?: Yes;
114
+ iConfirmTheBeneficialOwner?: Yes;
115
+ iConfirmTheIndividualIsResidentOfTreatyCountry?: Yes;
116
116
  iConfirmTheInformationIsCorrectComplete?: Yes;
117
117
  iConfirmTheTaxIdIsCorrect?: Yes;
118
- iHaveLegalCapacityToSign?: Yes;
118
+ iHaveCapacityToSign?: Yes;
119
119
  signature?: string;
120
120
  source?: string;
121
121
  };
@@ -1,9 +1,18 @@
1
1
  export type ClientTaxDocumentationStatus = {
2
2
  status: 'UNDOCUMENTED' | 'UNDETERMINED';
3
3
  submissionStatus: 'SUBMITTED' | 'NOT_SUBMITTED';
4
- DAC7Interview?: {
4
+ dpsQuestionnaire?: {
5
5
  dataCollectionStatus: 'COMPLETE' | 'INCOMPLETE';
6
- vatStatus: 'PENDING' | 'VALID' | 'INVALID' | 'INSUFFICIENT_DATA' | 'NOT_REQUIRED';
7
- expirationDate: string;
6
+ vatStatus?: 'PENDING' | 'VALID' | 'INVALID' | 'INSUFFICIENT_DATA' | 'NOT_REQUIRED';
7
+ vatValidationDate?: string;
8
+ expirationDate?: string;
9
+ };
10
+ wFormQuestionnaire?: {
11
+ dataCollectionStatus: 'COMPLETE' | 'INCOMPLETE';
12
+ type: 'W-9' | 'W-8BEN' | 'W-8BEN-E';
13
+ expirationDate?: string;
14
+ tinStatus?: string;
15
+ tinValidationDate?: string;
16
+ needsResubmission: boolean;
8
17
  };
9
18
  };
@@ -1,3 +1,2 @@
1
- export type * from './ClientTaxDocumentation';
2
1
  export type * from './ClientTaxDocumentationStatus';
3
2
  export type * from './ExternalValidations';
@@ -1,14 +1,9 @@
1
- export * from './AccountType';
2
- export * from './CaProvinceCode';
3
1
  export * from './CamelCaseKeys';
4
- export * from './CountryCode';
5
2
  export * from './InputStep';
6
3
  export * from './Locale';
7
- export * from './MonthCode';
8
4
  export * from './Progress';
5
+ export * from './Questionnaire';
9
6
  export * from './TaxDocumentation';
10
- export * from './TaxForm';
11
- export * from './UsStateCode';
12
7
  export * from './Utilities';
13
8
  export * from './Yes';
14
9
  export * from './YesNo';
@@ -1,9 +1,18 @@
1
1
  export type TaxDocumentationStatus = {
2
2
  status: 'UNDOCUMENTED' | 'UNDETERMINED';
3
3
  submission_status: 'SUBMITTED' | 'NOT_SUBMITTED';
4
- DAC7_interview?: {
4
+ dps_questionnaire?: {
5
5
  data_collection_status: 'COMPLETE' | 'INCOMPLETE';
6
- vat_status: 'PENDING' | 'VALID' | 'INVALID' | 'INSUFFICIENT_DATA' | 'NOT_REQUIRED';
7
- expiration_date: string;
6
+ vat_status?: 'PENDING' | 'VALID' | 'INVALID' | 'INSUFFICIENT_DATA' | 'NOT_REQUIRED';
7
+ vat_validation_date?: string;
8
+ expiration_date?: string;
9
+ };
10
+ w_form_questionnaire?: {
11
+ data_collection_status: 'COMPLETE' | 'INCOMPLETE';
12
+ type: 'W-9' | 'W-8BEN' | 'W-8BEN-E';
13
+ expiration_date?: string;
14
+ tin_status?: string;
15
+ tin_validation_date?: string;
16
+ needs_resubmission: boolean;
8
17
  };
9
18
  };
@@ -1,3 +1,2 @@
1
- export * from './ComprehensiveTaxDocumentation';
2
1
  export * from './TaxDocumentationStatus';
3
2
  export * from './enums';
@@ -1 +1 @@
1
- export * from "./ActionButton.tsx";
1
+ export * from './ActionButton';
@@ -6,5 +6,6 @@ export type CheckBoxProps = {
6
6
  subLabel?: boolean;
7
7
  name: TaxDocumentationKey;
8
8
  onClick?: (val: Yes | undefined) => void;
9
+ disabled?: boolean;
9
10
  };
10
- export declare const CheckBox: ({ label, subLabel, name, onClick }: CheckBoxProps) => React.JSX.Element;
11
+ export declare const CheckBox: ({ label, subLabel, name, onClick, disabled, }: CheckBoxProps) => React.JSX.Element;
@@ -3,6 +3,5 @@ import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
3
  export type DateOfBirthInputProps = {
4
4
  name: TaxDocumentationKey;
5
5
  className?: string;
6
- hint?: true;
7
6
  };
8
- export declare const DateOfBirthInput: ({ name, className, hint, }: DateOfBirthInputProps) => React.JSX.Element;
7
+ export declare const DateOfBirthInput: ({ name, className, }: DateOfBirthInputProps) => React.JSX.Element;
@@ -1 +1 @@
1
- export * from "./DateOfBirthInput.tsx";
1
+ export * from './DateOfBirthInput';
@@ -8,13 +8,13 @@ export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
8
8
  handleMonthChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
9
9
  handleYearChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
10
10
  dayOptions: {
11
- value: "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09";
11
+ value: "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31";
12
12
  }[];
13
13
  birthYearOptions: {
14
14
  value: number;
15
15
  }[];
16
16
  monthOptions: {
17
+ value: string;
17
18
  label: string;
18
- value: import("types").MonthCode;
19
19
  }[];
20
20
  };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { TaxDocumentationKey } from '../../types';
3
+ type FormattedInputProps = {
4
+ name: TaxDocumentationKey;
5
+ format: (s: string) => string;
6
+ unformat: (s: string) => string;
7
+ formatUnpadded: (s: string) => string;
8
+ onChange?: (val: string) => string;
9
+ };
10
+ export declare const FormattedInput: ({ name, onChange, format, formatUnpadded, unformat, }: FormattedInputProps) => React.JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './FormattedInput';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { TaxDocumentationKey } from 'types';
3
+ export type PasswordInputProps = {
4
+ name: TaxDocumentationKey;
5
+ className?: string;
6
+ onChange?: (val: string) => string;
7
+ disabled?: boolean;
8
+ };
9
+ export declare const PasswordInput: ({ name, className, onChange, disabled, }: PasswordInputProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './PasswordInput';
@@ -1 +1 @@
1
- export * from './RadioButtons.tsx';
1
+ export * from './RadioButtons';
@@ -1 +1 @@
1
- export * from './Select.tsx';
1
+ export * from './Select';
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
- export type MaskedInputProps = {
3
+ export type ShowHideInputProps = {
4
4
  name: TaxDocumentationKey;
5
5
  className?: string;
6
6
  onChange?: (val: string) => string;
7
- hint?: true;
8
7
  children?: React.ReactNode;
9
8
  disabled?: boolean;
10
9
  };
11
- export declare const MaskedInput: ({ name, className, onChange, hint, children, disabled, }: MaskedInputProps) => React.JSX.Element;
10
+ export declare const ShowHideInput: ({ name, className, onChange, children, disabled, }: ShowHideInputProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ShowHideInput';
@@ -4,9 +4,8 @@ export type TextInputProps = {
4
4
  name: TaxDocumentationKey;
5
5
  className?: string;
6
6
  onChange?: (val: string) => string;
7
- hint?: true;
8
7
  disabled?: boolean;
9
8
  children?: React.ReactNode;
10
9
  defaultValue?: string;
11
10
  };
12
- export declare const TextInput: ({ name, className, onChange, hint, children, disabled, defaultValue, }: TextInputProps) => React.JSX.Element;
11
+ export declare const TextInput: ({ name, className, onChange, children, disabled, defaultValue, }: TextInputProps) => React.JSX.Element;
@@ -1 +1 @@
1
- export * from './TextInput.tsx';
1
+ export * from './TextInput';
@@ -2,11 +2,13 @@ export * from './ActionButton';
2
2
  export * from './Actions';
3
3
  export * from './CheckBox';
4
4
  export * from './DateOfBirthInput';
5
+ export * from './FormattedInput';
5
6
  export * from './HideShowButton';
6
7
  export * from './InputValue';
7
8
  export * from './MaskedContent';
8
- export * from './MaskedInput';
9
+ export * from './PasswordInput';
9
10
  export * from './RadioButtons';
10
11
  export * from './Select';
12
+ export * from './ShowHideInput';
11
13
  export * from './TextInput';
12
14
  export * from './ToggleButton';
@@ -0,0 +1,5 @@
1
+ export declare const formatSSN: (str: string, padChar?: string) => string;
2
+ export declare const formatSSNUnpadded: (str: string) => string;
3
+ export declare const formatEIN: (str: string, padChar?: string) => string;
4
+ export declare const formatEINUnpadded: (str: string) => string;
5
+ export declare const normalizeUSTin: (str: string) => string;
@@ -1,13 +1,19 @@
1
1
  import { TaxDocumentation } from 'types/TaxDocumentation';
2
- import { TaxForm } from '../types';
3
- export declare const getFieldsState: (fields: TaxDocumentation, supportedForms?: TaxForm[]) => {
4
- accountHolderIsDisregarded: boolean;
5
- hasNoEUTaxId: boolean;
6
- hasTaxResidence: boolean;
7
- isDac7: boolean;
8
- isW9: boolean;
9
- isW8: boolean;
10
- isW8Ben: boolean;
11
- isW8BenE: boolean;
2
+ export declare const getFieldsState: (fields: TaxDocumentation) => {
3
+ hasNoEuTaxId: boolean;
4
+ hasEuResidence: boolean;
5
+ isBuildingDPS: boolean;
6
+ isBuildingW9: boolean;
7
+ isBuildingW8: boolean;
8
+ isBuildingW8Ben: boolean;
9
+ isBuildingW8BenE: boolean;
10
+ isBuildingWForm: boolean;
11
+ isDre: boolean;
12
12
  isIndividual: boolean;
13
+ residenceCountryCodes: string[];
14
+ residences: {
15
+ country: string | undefined;
16
+ tin: string | undefined;
17
+ tinNotRequired: "yes" | undefined;
18
+ }[];
13
19
  };
@@ -0,0 +1 @@
1
+ export declare const getMaskedContent: (text: string | undefined) => string;