@taxbit/react-sdk 3.1.0-beta.0 → 3.2.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 (344) hide show
  1. package/README.md +13 -0
  2. package/dist/index.d.ts +2 -1
  3. package/dist/src/App.d.ts +0 -1
  4. package/dist/src/components/Address/Address.d.ts +0 -1
  5. package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +0 -1
  6. package/dist/src/components/ErrorBoundary/ErrorBoundary.d.ts +0 -1
  7. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +0 -1
  8. package/dist/src/components/ErrorMessage/__tests__/ErrorMessage.test.d.ts +0 -1
  9. package/dist/src/components/Form/Form.d.ts +0 -1
  10. package/dist/src/components/InputStatus/InputStatus.d.ts +0 -1
  11. package/dist/src/components/JsxFromString/JsxFromString.d.ts +0 -1
  12. package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +0 -1
  13. package/dist/src/components/Row/Row.d.ts +0 -1
  14. package/dist/src/components/Section/Section.d.ts +0 -1
  15. package/dist/src/components/StatusMessage/StatusMessage.d.ts +0 -1
  16. package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +0 -1
  17. package/dist/src/contexts/QuestionnaireStep/getLocal.d.ts +0 -1
  18. package/dist/src/contexts/QuestionnaireStep/index.d.ts +0 -1
  19. package/dist/src/contexts/QuestionnaireStep/shiftControllingPerson.d.ts +0 -1
  20. package/dist/src/contexts/QuestionnaireStep/shiftResidence.d.ts +0 -1
  21. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStep.d.ts +1 -4
  22. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +2 -7
  23. package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +0 -1
  24. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +4 -5
  25. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +8 -8
  26. package/dist/src/hooks/useHandleError.d.ts +0 -1
  27. package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +0 -1
  28. package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +0 -1
  29. package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +0 -1
  30. package/dist/src/hooks/useTaxbit/types/v2.d.ts +0 -1
  31. package/dist/src/hooks/useTaxbit/types/w8.d.ts +0 -1
  32. package/dist/src/hooks/useTaxbit/types/w9.d.ts +0 -1
  33. package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +0 -1
  34. package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +0 -1
  35. package/dist/src/i18n/json/bg.json.d.ts +16 -6
  36. package/dist/src/i18n/json/cs.json.d.ts +15 -5
  37. package/dist/src/i18n/json/da.json.d.ts +15 -5
  38. package/dist/src/i18n/json/de-AT.json.d.ts +2 -2
  39. package/dist/src/i18n/json/de.json.d.ts +15 -2
  40. package/dist/src/i18n/json/el.json.d.ts +15 -5
  41. package/dist/src/i18n/json/en.json.d.ts +15 -2
  42. package/dist/src/i18n/json/es.json.d.ts +15 -2
  43. package/dist/src/i18n/json/et.json.d.ts +15 -5
  44. package/dist/src/i18n/json/fi.json.d.ts +15 -5
  45. package/dist/src/i18n/json/fr-LU.json.d.ts +2 -2
  46. package/dist/src/i18n/json/fr.json.d.ts +16 -3
  47. package/dist/src/i18n/json/ga.json.d.ts +15 -5
  48. package/dist/src/i18n/json/hr.json.d.ts +15 -5
  49. package/dist/src/i18n/json/hu.json.d.ts +15 -5
  50. package/dist/src/i18n/json/id.json.d.ts +14 -4
  51. package/dist/src/i18n/json/index.d.ts +10 -12
  52. package/dist/src/i18n/json/it.json.d.ts +15 -2
  53. package/dist/src/i18n/json/ja.json.d.ts +15 -2
  54. package/dist/src/i18n/json/ko.json.d.ts +15 -2
  55. package/dist/src/i18n/json/lt.json.d.ts +15 -5
  56. package/dist/src/i18n/json/lv.json.d.ts +15 -5
  57. package/dist/src/i18n/json/ms.json.d.ts +15 -2
  58. package/dist/src/i18n/json/mt.json.d.ts +15 -5
  59. package/dist/src/i18n/json/nl-BE.json.d.ts +2 -2
  60. package/dist/src/i18n/json/nl.json.d.ts +16 -3
  61. package/dist/src/i18n/json/no.json.d.ts +15 -5
  62. package/dist/src/i18n/json/pl.json.d.ts +15 -2
  63. package/dist/src/i18n/json/pt.json.d.ts +15 -2
  64. package/dist/src/i18n/json/ro.json.d.ts +16 -3
  65. package/dist/src/i18n/json/ru.json.d.ts +15 -2
  66. package/dist/src/i18n/json/sk.json.d.ts +15 -5
  67. package/dist/src/i18n/json/sl.json.d.ts +15 -5
  68. package/dist/src/i18n/json/sv.json.d.ts +15 -5
  69. package/dist/src/i18n/json/th.json.d.ts +15 -2
  70. package/dist/src/i18n/json/tr.json.d.ts +15 -2
  71. package/dist/src/i18n/json/uk.json.d.ts +15 -5
  72. package/dist/src/i18n/json/vi.json.d.ts +15 -2
  73. package/dist/src/i18n/json/zh-TW.json.d.ts +15 -2
  74. package/dist/src/i18n/json/zh.json.d.ts +406 -148
  75. package/dist/src/i18n/locales/bg.d.ts +1 -3
  76. package/dist/src/i18n/locales/cs.d.ts +1 -1
  77. package/dist/src/i18n/locales/da.d.ts +1 -1
  78. package/dist/src/i18n/locales/de-at.d.ts +1 -1
  79. package/dist/src/i18n/locales/de-de.d.ts +2 -0
  80. package/dist/src/i18n/locales/de.d.ts +2 -1
  81. package/dist/src/i18n/locales/el-cy.d.ts +1 -1
  82. package/dist/src/i18n/locales/el-el.d.ts +1 -0
  83. package/dist/src/i18n/locales/el.d.ts +1 -1
  84. package/dist/src/i18n/locales/en-dps.d.ts +2 -0
  85. package/dist/src/i18n/locales/en-gb.d.ts +1 -3
  86. package/dist/src/i18n/locales/en-nz.d.ts +1 -3
  87. package/dist/src/i18n/locales/en-us.d.ts +1 -3
  88. package/dist/src/i18n/locales/en.d.ts +2 -3
  89. package/dist/src/i18n/locales/es-es.d.ts +496 -0
  90. package/dist/src/i18n/locales/es-mx.d.ts +1 -3
  91. package/dist/src/i18n/locales/es.d.ts +2 -3
  92. package/dist/src/i18n/locales/et.d.ts +1 -1
  93. package/dist/src/i18n/locales/fi.d.ts +1 -1
  94. package/dist/src/i18n/locales/fr-ca.d.ts +1 -3
  95. package/dist/src/i18n/locales/fr-fr.d.ts +496 -0
  96. package/dist/src/i18n/locales/fr-lu.d.ts +1 -1
  97. package/dist/src/i18n/locales/fr.d.ts +2 -3
  98. package/dist/src/i18n/locales/ga.d.ts +1 -1
  99. package/dist/src/i18n/locales/hr.d.ts +1 -1
  100. package/dist/src/i18n/locales/hu.d.ts +1 -1
  101. package/dist/src/i18n/locales/id.d.ts +2 -3
  102. package/dist/src/i18n/locales/index.d.ts +5 -0
  103. package/dist/src/i18n/locales/it.d.ts +2 -1
  104. package/dist/src/i18n/locales/ja.d.ts +2 -3
  105. package/dist/src/i18n/locales/ko.d.ts +2 -3
  106. package/dist/src/i18n/locales/lt.d.ts +1 -1
  107. package/dist/src/i18n/locales/lv.d.ts +1 -1
  108. package/dist/src/i18n/locales/mergePropertyFiles.d.ts +2 -2
  109. package/dist/src/i18n/locales/ms.d.ts +2 -1
  110. package/dist/src/i18n/locales/mt.d.ts +1 -1
  111. package/dist/src/i18n/locales/nl-be.d.ts +1 -1
  112. package/dist/src/i18n/locales/nl-nl.d.ts +1 -0
  113. package/dist/src/i18n/locales/nl.d.ts +2 -1
  114. package/dist/src/i18n/locales/no.d.ts +1 -1
  115. package/dist/src/i18n/locales/pl.d.ts +2 -1
  116. package/dist/src/i18n/locales/pt-br.d.ts +1 -3
  117. package/dist/src/i18n/locales/pt-pt.d.ts +496 -0
  118. package/dist/src/i18n/locales/pt.d.ts +2 -1
  119. package/dist/src/i18n/locales/ro.d.ts +2 -1
  120. package/dist/src/i18n/locales/ru.d.ts +2 -3
  121. package/dist/src/i18n/locales/sk.d.ts +1 -1
  122. package/dist/src/i18n/locales/sl.d.ts +1 -1
  123. package/dist/src/i18n/locales/sv.d.ts +1 -1
  124. package/dist/src/i18n/locales/th.d.ts +2 -3
  125. package/dist/src/i18n/locales/tr.d.ts +2 -3
  126. package/dist/src/i18n/locales/translation-missing.d.ts +0 -1
  127. package/dist/src/i18n/locales/uk.d.ts +1 -3
  128. package/dist/src/i18n/locales/vi.d.ts +496 -3
  129. package/dist/src/i18n/locales/zh-cn.d.ts +496 -1
  130. package/dist/src/i18n/locales/zh-tw.d.ts +496 -1
  131. package/dist/src/i18n/locales/zh.d.ts +496 -3
  132. package/dist/src/i18n/localizationFileMap.d.ts +2 -3
  133. package/dist/src/i18n/types/LocalizationKey.d.ts +6 -6
  134. package/dist/src/i18n/types/PropertyFile.d.ts +15 -7
  135. package/dist/src/i18n/utils/getText.d.ts +1 -2
  136. package/dist/src/index.d.ts +0 -1
  137. package/dist/src/lookups/accountHolderEntityAccountTypeOptions.d.ts +1 -1
  138. package/dist/src/lookups/accountOwnerTypeOptions.d.ts +1 -1
  139. package/dist/src/lookups/activeNonFinancialEntityTypeOptions.d.ts +1 -1
  140. package/dist/src/lookups/controllingPersonRoleOptions.d.ts +1 -1
  141. package/dist/src/lookups/dayOptions.d.ts +1 -1
  142. package/dist/src/lookups/entityTypeOptions.d.ts +1 -1
  143. package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
  144. package/dist/src/lookups/financialInstitutionTypeOptions.d.ts +1 -1
  145. package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
  146. package/dist/src/lookups/getTreatyCountryLimitationOnBenefitOptions.d.ts +0 -1
  147. package/dist/src/lookups/intermediaryAccountTypeOptions.d.ts +1 -1
  148. package/dist/src/lookups/localeOptions.d.ts +0 -1
  149. package/dist/src/lookups/payeeCodeOptions.d.ts +1 -1
  150. package/dist/src/lookups/regardedOwnerEntityAccountTypeOptions.d.ts +1 -1
  151. package/dist/src/lookups/selfCertificationAccountTypeOptions.d.ts +1 -1
  152. package/dist/src/lookups/signatureCapacityOptions.d.ts +1 -1
  153. package/dist/src/lookups/tinNotRequiredReasonOptions.d.ts +1 -1
  154. package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
  155. package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
  156. package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
  157. package/dist/src/services/api.d.ts +0 -1
  158. package/dist/src/svg/Spinner.d.ts +0 -1
  159. package/dist/src/test/StepWrapper.d.ts +0 -1
  160. package/dist/src/test/Wrapper.d.ts +0 -1
  161. package/dist/src/test/getWrapper.d.ts +0 -1
  162. package/dist/src/test/renderWithWrapper.d.ts +0 -1
  163. package/dist/src/test/utils/helpers.d.ts +4 -2
  164. package/dist/src/types/InputStep.d.ts +1 -1
  165. package/dist/src/types/Locale.d.ts +1 -1
  166. package/dist/src/types/Progress.d.ts +0 -1
  167. package/dist/src/types/SchemaVersion.d.ts +2 -0
  168. package/dist/src/types/StepId.d.ts +1 -1
  169. package/dist/src/types/TaxDocumentation.d.ts +8 -4
  170. package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +1 -1
  171. package/dist/src/types/index.d.ts +1 -0
  172. package/dist/src/types/server/TaxDocumentationStatus.d.ts +1 -1
  173. package/dist/src/ui/Actions/Actions.d.ts +0 -1
  174. package/dist/src/ui/CheckBox/CheckBox.d.ts +0 -1
  175. package/dist/src/ui/CheckBox/__tests__/CheckBox.test.d.ts +0 -1
  176. package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +0 -1
  177. package/dist/src/ui/DateOfBirthInput/__tests__/DateOfBirthInput.test.d.ts +0 -1
  178. package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +1 -2
  179. package/dist/src/ui/FormattedInput/FormattedInput.d.ts +0 -1
  180. package/dist/src/ui/FormattedInput/__tests__/FormattedInput.test.d.ts +0 -1
  181. package/dist/src/ui/HideShowButton/HideShowButton.d.ts +0 -1
  182. package/dist/src/ui/InputValue/InputValue.d.ts +0 -1
  183. package/dist/src/ui/MaskedContent/MaskedContent.d.ts +0 -1
  184. package/dist/src/ui/PasswordInput/PasswordInput.d.ts +0 -1
  185. package/dist/src/ui/PasswordInput/__tests__/PasswordInput.test.d.ts +0 -1
  186. package/dist/src/ui/PhoneNumberInput/PhoneNumberInput.d.ts +0 -1
  187. package/dist/src/ui/PhoneNumberInput/__tests__/PhoneNumberInput.test.d.ts +0 -1
  188. package/dist/src/ui/RadioButtons/RadioButtons.d.ts +0 -1
  189. package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -1
  190. package/dist/src/ui/Select/Select.d.ts +0 -1
  191. package/dist/src/ui/Select/__tests__/Select.test.d.ts +0 -1
  192. package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +0 -1
  193. package/dist/src/ui/TextArea/TextArea.d.ts +0 -1
  194. package/dist/src/ui/TextArea/__tests__/TextArea.test.d.ts +0 -1
  195. package/dist/src/ui/TextInput/TextInput.d.ts +0 -1
  196. package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +0 -1
  197. package/dist/src/ui/ToggleButton/ToggleButton.d.ts +0 -1
  198. package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +0 -1
  199. package/dist/src/ui/useAriaAttributes.d.ts +0 -1
  200. package/dist/src/utils/getDataFields.d.ts +13 -1
  201. package/dist/src/utils/getErrorMessageId.d.ts +0 -1
  202. package/dist/src/utils/getFieldsState.d.ts +1 -1
  203. package/dist/src/utils/getFormStatus.d.ts +0 -1
  204. package/dist/src/utils/getLanguage.d.ts +0 -1
  205. package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +0 -1
  206. package/dist/src/utils/promptKeyMapping/getAddressPromptKeyMap.d.ts +0 -1
  207. package/dist/src/utils/promptKeyMapping/getControllingPersonPromptKeyMap.d.ts +0 -1
  208. package/dist/src/utils/promptKeyMapping/getPromptKeyMap.d.ts +0 -1
  209. package/dist/src/utils/promptKeyMapping/getTaxResidencesPromptKeyMap.d.ts +0 -1
  210. package/dist/src/utils/stepIds.d.ts +0 -1
  211. package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +0 -1
  212. package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +0 -1
  213. package/dist/src/utils/transformForClient/transformCertifications.d.ts +0 -1
  214. package/dist/src/utils/transformForClient/transformForClient.d.ts +0 -1
  215. package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +0 -1
  216. package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +0 -1
  217. package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +0 -1
  218. package/dist/src/utils/transformForClient/transformForClientTaxResidences.d.ts +0 -1
  219. package/dist/src/utils/transformForClient/transformForControllingPersons.d.ts +0 -1
  220. package/dist/src/utils/transformInbound/getAccountOwnerType.d.ts +0 -1
  221. package/dist/src/utils/transformInbound/getActiveNonFinancialEntityType.d.ts +0 -1
  222. package/dist/src/utils/transformInbound/getEntityAccountType.d.ts +0 -1
  223. package/dist/src/utils/transformInbound/getEntityType.d.ts +0 -1
  224. package/dist/src/utils/transformInbound/getFinancialInstitutionType.d.ts +0 -1
  225. package/dist/src/utils/transformInbound/getIntermediaryAccountType.d.ts +0 -1
  226. package/dist/src/utils/transformInbound/getLLCClassification.d.ts +0 -1
  227. package/dist/src/utils/transformInbound/getSelfCertificationAccountType.d.ts +0 -1
  228. package/dist/src/utils/transformInbound/getSignatureCapacity.d.ts +2 -0
  229. package/dist/src/utils/transformInbound/getUsAccountType.d.ts +0 -1
  230. package/dist/src/utils/transformInbound/transformInbound.d.ts +0 -1
  231. package/dist/src/utils/transformInbound/transformInboundAddress.d.ts +0 -1
  232. package/dist/src/utils/transformInbound/transformInboundControllingPersons.d.ts +13 -1
  233. package/dist/src/utils/transformInbound/transformInboundTaxResidencies.d.ts +0 -1
  234. package/dist/src/validations/getEditFields.d.ts +1 -2
  235. package/dist/src/validations/getSkipFields.d.ts +1 -2
  236. package/dist/src/validations/getSkipSteps.d.ts +0 -1
  237. package/dist/src/validations/getSteps.d.ts +1 -2
  238. package/dist/src/validations/invalidFields/getInvalidAddressFields.d.ts +0 -1
  239. package/dist/src/validations/invalidFields/getInvalidControllingPersonsFields.d.ts +0 -1
  240. package/dist/src/validations/invalidFields/getInvalidFields.d.ts +0 -1
  241. package/dist/src/validations/invalidFields/getInvalidTaxResidencyFields.d.ts +0 -1
  242. package/dist/src/validations/invalidFields/invalidFieldRules.d.ts +3 -3
  243. package/dist/src/validations/requiredFields/getRequiredAddressFields.d.ts +0 -1
  244. package/dist/src/validations/requiredFields/getRequiredControllingPersonFields.d.ts +0 -1
  245. package/dist/src/validations/requiredFields/getRequiredFields.d.ts +0 -1
  246. package/dist/src/validations/requiredFields/getRequiredTaxResidenceFields.d.ts +0 -1
  247. package/dist/src/validations/statusFields/getStatusFields.d.ts +0 -1
  248. package/dist/src/validations/statusFields/statusFieldRules.d.ts +0 -1
  249. package/dist/src/validations/supportedFields/getSupportedAddressFields.d.ts +0 -1
  250. package/dist/src/validations/supportedFields/getSupportedControllingPersonFields.d.ts +0 -1
  251. package/dist/src/validations/supportedFields/getSupportedFields.d.ts +0 -1
  252. package/dist/src/validations/supportedFields/getSupportedTaxResidenceFields.d.ts +0 -1
  253. package/dist/src/validations/visibleFields/__tests__/utils.d.ts +0 -1
  254. package/dist/src/validations/visibleFields/getVisibleAddressFields.d.ts +0 -1
  255. package/dist/src/validations/visibleFields/getVisibleControllingPersonFields.d.ts +2 -3
  256. package/dist/src/validations/visibleFields/getVisibleFields.d.ts +2 -4
  257. package/dist/src/validations/visibleFields/getVisibleTaxResidenceFields.d.ts +2 -3
  258. package/dist/src/widgets/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +0 -1
  259. package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +0 -1
  260. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +0 -1
  261. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +0 -1
  262. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +0 -1
  263. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +0 -1
  264. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +0 -1
  265. package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +0 -1
  266. package/dist/src/wizard/AddressInput/AddressInput.d.ts +0 -1
  267. package/dist/src/wizard/ControllingPersonInput/ControllingPersonInput.d.ts +0 -1
  268. package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +0 -1
  269. package/dist/src/wizard/LanguageSelector/__tests__/LanguageSelector.test.d.ts +0 -0
  270. package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +0 -1
  271. package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +0 -1
  272. package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +0 -1
  273. package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -1
  274. package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +0 -1
  275. package/dist/src/wizard/RowInput/ErrorRow/__tests__/ErrorRow.test.d.ts +0 -1
  276. package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +0 -1
  277. package/dist/src/wizard/RowInput/PercentInputRow/PercentInputRow.d.ts +0 -1
  278. package/dist/src/wizard/RowInput/PhoneNumberRow/PhoneNumberRow.d.ts +0 -1
  279. package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -1
  280. package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +0 -1
  281. package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +0 -1
  282. package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +0 -1
  283. package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +0 -1
  284. package/dist/src/wizard/RowInput/TinInputRow/TinInputRow.d.ts +0 -1
  285. package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -1
  286. package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +0 -1
  287. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderAdditionalInfo/AccountHolderAdditionalInfo.d.ts +0 -1
  288. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderCertifications/AccountHolderCertifications.d.ts +0 -1
  289. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +0 -1
  290. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +0 -1
  291. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +0 -1
  292. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxResidenciesConfirmation/AccountHolderTaxResidenciesConfirmation.d.ts +2 -0
  293. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxResidenciesConfirmation/index.d.ts +1 -0
  294. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +0 -1
  295. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderUsTinValidation/AccountHolderUsTinValidation.d.ts +0 -1
  296. package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +0 -1
  297. package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonDetails/ControllingPersonDetails.d.ts +0 -1
  298. package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonTaxResidenciesConfirmation/ControllingPersonTaxResidenciesConfirmation.d.ts +9 -0
  299. package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonTaxResidenciesConfirmation/index.d.ts +1 -0
  300. package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +0 -1
  301. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerCertifications/RegardedOwnerCertifications.d.ts +0 -1
  302. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -1
  303. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -1
  304. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +0 -1
  305. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerUsTinValidation/RegardedOwnerUsTinValidation.d.ts +0 -1
  306. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderClassificationSummary.d.ts +0 -1
  307. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderForeignClassificationSummary.d.ts +0 -1
  308. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderSelfCertificationClassificationSummary.d.ts +0 -1
  309. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderUsClassificationSummary.d.ts +0 -1
  310. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonRoleInputValue.d.ts +0 -1
  311. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonSummary.d.ts +0 -1
  312. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonTypeSummary.d.ts +0 -1
  313. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +0 -1
  314. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerClassificationSummary.d.ts +0 -1
  315. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerForeignClassificationSummary.d.ts +0 -1
  316. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerUsClassificationSummary.d.ts +0 -1
  317. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +0 -1
  318. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/TaxResidency/TaxResidenciesSummary.d.ts +0 -1
  319. package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +0 -1
  320. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DPS.test.d.ts +0 -1
  321. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.DPS.test.d.ts +0 -1
  322. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.SelfCert.Entity.test.d.ts +0 -0
  323. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.SelfCert.Individual.test.d.ts +0 -0
  324. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.W8.test.d.ts +0 -1
  325. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.W9.test.d.ts +0 -1
  326. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.LanguageSelector.test.d.ts +0 -0
  327. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.AccountClassification.test.d.ts +0 -1
  328. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.ControllingPerson.test.d.ts +0 -1
  329. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.NameAndAddress.test.d.ts +0 -1
  330. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.Summary.test.d.ts +0 -1
  331. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.TaxResidencies.test.d.ts +0 -1
  332. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.Skip.DPS.test.d.ts +0 -1
  333. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.Skip.SelfCert.test.d.ts +0 -1
  334. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.Skip.WForm.test.d.ts +0 -1
  335. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.WForm.Summary.test.d.ts +0 -1
  336. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.WForm.TreatyClaims.test.d.ts +0 -1
  337. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.WForm.test.d.ts +0 -1
  338. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +0 -1
  339. package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +2 -0
  340. package/dist/taxbit-react-sdk.js +5177 -20226
  341. package/dist/taxbit-react-sdk.umd.cjs +1 -1
  342. package/package.json +5 -5
  343. package/dist/src/i18n/json/zh-CN.json.d.ts +0 -486
  344. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.SelfCert.test.d.ts +0 -1
@@ -1,9 +1,8 @@
1
1
  import { Locale, TaxDocumentation } from '../../types';
2
2
  import { ButtonKey, OptionKey, PromptKey, StatusKey, SubOptionKey, SubPromptKey } from '../types';
3
-
4
3
  export declare const getPromptText: (key: PromptKey, locale: Locale | undefined, fields?: TaxDocumentation) => string;
5
4
  export declare const getSubPromptText: (key: SubPromptKey, locale: Locale | undefined) => string;
6
- export declare const getStatusText: (key: StatusKey, locale: Locale | undefined) => string;
5
+ export declare const getStatusText: (key: StatusKey, locale: Locale | undefined, fields?: TaxDocumentation) => string;
7
6
  export declare const getBadgeText: (key: string, locale: Locale | undefined) => string;
8
7
  export declare const getTextText: (key: string, locale: Locale | undefined) => string;
9
8
  export declare const getTitleText: (key: string, locale: Locale | undefined) => string;
@@ -1,5 +1,4 @@
1
1
  import { ClientTaxDocumentation } from '@taxbit/utilities';
2
-
3
2
  export * from './hooks/useTaxbit/useTaxbit';
4
3
  export * from './types/client/ClientTaxDocumentationStatus';
5
4
  export * from './types/Locale';
@@ -1,3 +1,3 @@
1
1
  export declare const accountHolderEntityAccountTypeOptions: {
2
- value: T;
2
+ value: "DISREGARDED_ENTITY" | "CORPORATION" | "COMPLEX_TRUST" | "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const accountOwnerTypeOptions: {
2
- value: T;
2
+ value: "INDIVIDUAL" | "ENTITY" | "INTERMEDIARY";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const activeNonFinancialEntityTypeOptions: {
2
- value: T;
2
+ value: "OTHER" | "INTERNATIONAL_ORGANIZATION" | "GOVERNMENT_ENTITY" | "PUBLIC_CORPORATION";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const getControllingPersonRoleOptions: (entityType: string | undefined) => {
2
- value: T;
2
+ value: "OTHER" | "SETTLOR" | "TRUSTEE" | "PROTECTOR" | "BENEFICIARY" | "SETTLOR_EQUIVALENT" | "TRUSTEE_EQUIVALENT" | "PROTECTOR_EQUIVALENT" | "BENEFICIARY_EQUIVALENT" | "OTHER_EQUIVALENT" | "OWNER" | "OTHER_MEANS" | "SENIOR_MANAGING_OFFICIAL";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const dayOptions: {
2
- value: T;
2
+ 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";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const entityTypeOptions: {
2
- value: T;
2
+ value: "OTHER" | "TRUST" | "SIMILAR_TO_TRUST";
3
3
  }[];
@@ -1,4 +1,4 @@
1
1
  export declare const fatcaCodeOptions: {
2
2
  label: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
3
- value: T;
3
+ value: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
4
4
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const financialInstitutionTypeOptions: {
2
- value: T;
2
+ value: "DEPOSITORY_INSTITUTION" | "CUSTODIAL_INSTITUTION" | "INSURANCE_COMPANY" | "INVESTMENT_ENTITY" | "NON_REPORTING_FINANCIAL_INSTITUTION";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const foreignRegardedOwnerAccountTypeOptions: {
2
- value: T;
2
+ value: "CORPORATION" | "COMPLEX_TRUST" | "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE" | "QUALIFIED_INTERMEDIARY" | "NONQUALIFIED_INTERMEDIARY" | "TERRITORY_FINANCIAL_INSTITUTION" | "US_BRANCH" | "WITHHOLDING_FOREIGN_PARTNERSHIP" | "WITHHOLDING_FOREIGN_TRUST" | "NONWITHHOLDING_FOREIGN_PARTNERSHIP" | "NONWITHHOLDING_FOREIGN_SIMPLE_TRUST" | "NONWITHHOLDING_FOREIGN_GRANTOR_TRUST";
3
3
  }[];
@@ -1,5 +1,4 @@
1
1
  import { LimitationOnBenefit } from '@taxbit/utilities';
2
-
3
2
  export declare const getTreatyCountryLimitationOnBenefitOptions: (country?: string) => Array<{
4
3
  value: LimitationOnBenefit;
5
4
  }>;
@@ -1,3 +1,3 @@
1
1
  export declare const intermediaryAccountTypeOptions: {
2
- value: T;
2
+ value: "QUALIFIED_INTERMEDIARY" | "NONQUALIFIED_INTERMEDIARY" | "TERRITORY_FINANCIAL_INSTITUTION" | "US_BRANCH" | "WITHHOLDING_FOREIGN_PARTNERSHIP" | "WITHHOLDING_FOREIGN_TRUST" | "NONWITHHOLDING_FOREIGN_PARTNERSHIP" | "NONWITHHOLDING_FOREIGN_SIMPLE_TRUST" | "NONWITHHOLDING_FOREIGN_GRANTOR_TRUST";
3
3
  }[];
@@ -1,5 +1,4 @@
1
1
  import { Locale } from 'types';
2
-
3
2
  export declare const localeDPSOptions: {
4
3
  value: Locale;
5
4
  label: string;
@@ -1,4 +1,4 @@
1
1
  export declare const payeeCodeOptions: {
2
2
  label: "1" | "2" | "3" | "4" | "5" | "10" | "11" | "12" | "13" | "6" | "7" | "8" | "9";
3
- value: T;
3
+ value: "1" | "2" | "3" | "4" | "5" | "10" | "11" | "12" | "13" | "6" | "7" | "8" | "9";
4
4
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const regardedOwnerEntityAccountTypeOptions: {
2
- value: T;
2
+ value: "CORPORATION" | "COMPLEX_TRUST" | "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const selfCertificationAccountTypeOptions: {
2
- value: T;
2
+ value: "FINANCIAL_INSTITUTION" | "ACTIVE_NON_FINANCIAL_ENTITY" | "PASSIVE_NON_FINANCIAL_ENTITY";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const signatureCapacityOptions: {
2
- value: T;
2
+ value: "OFFICER" | "EXECUTOR" | "OTHER_CAPACITY";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const tinNotRequiredReasonOptions: {
2
- value: T;
2
+ value: "OTHER" | "NOT_ISSUED" | "NOT_REQUIRED";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const usAccountHolderAccountTypeOptions: {
2
- value: T;
2
+ value: "INDIVIDUAL" | "SOLE_PROPRIETOR" | "LLC" | "SM_LLC" | "C_CORPORATION" | "S_CORPORATION" | "PARTNERSHIP" | "TRUST_ESTATE" | "OTHER" | "DISREGARDED_ENTITY";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const usLlcAccountTypeOptions: {
2
- value: T;
2
+ value: "C_CORPORATION" | "S_CORPORATION" | "PARTNERSHIP";
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const usRegardedOwnerAccountTypeOptions: {
2
- value: T;
2
+ value: "INDIVIDUAL" | "LLC" | "C_CORPORATION" | "S_CORPORATION" | "PARTNERSHIP" | "TRUST_ESTATE" | "OTHER";
3
3
  }[];
@@ -1,5 +1,4 @@
1
1
  import { QuestionnaireProp } from 'types';
2
-
3
2
  type Environment = 'PRODUCTION' | 'STAGING';
4
3
  type Region = 'US' | 'EU' | string;
5
4
  export declare const TAX_DOCUMENTATION_SUBMISSIONS_PATH = "tax-documentation/submissions";
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const Spinner: ({ size, className, }: {
4
3
  size: number;
5
4
  className?: string;
@@ -1,6 +1,5 @@
1
1
  import { QuestionnaireStepContextValue } from 'contexts/QuestionnaireStep/useQuestionnaireStepContext';
2
2
  import { default as React } from 'react';
3
-
4
3
  /**
5
4
  * A wrapper for unit testing questionnaire components that combines a real value from the
6
5
  * `useQuestionnaireStep` hook with the provided context value overrides.
@@ -2,7 +2,6 @@ import { ClientTaxDocumentation } from '@taxbit/utilities';
2
2
  import { QuestionnaireStepContextValue } from 'contexts';
3
3
  import { default as React } from 'react';
4
4
  import { QuestionnaireProp } from '../types';
5
-
6
5
  export type WrapperProps = React.PropsWithChildren<{
7
6
  /**
8
7
  * Initial data for the questionnaire.
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { WrapperProps } from './Wrapper';
3
-
4
3
  /**
5
4
  * A helper function to create a test wrapper for unit testing questionnaire components.
6
5
  */
@@ -1,3 +1,2 @@
1
1
  import { WrapperProps } from './Wrapper';
2
-
3
2
  export declare const renderWithWrapper: ({ contextValue, children, initialData, questionnaire, }: WrapperProps) => import('@testing-library/react').RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
@@ -1,7 +1,7 @@
1
1
  import { TaxDocumentation } from '../../types';
2
-
3
2
  export declare const expectRowError: (prompt: string) => void;
4
3
  export declare const expectRowErrorText: (prompt: string, text: string) => void;
4
+ export declare const expectCheckboxErrorText: (prompt: string, text: string) => void;
5
5
  export declare const expectNoRowError: (prompt: string) => void;
6
6
  export declare const expectQuestionCount: (count: number) => void;
7
7
  export declare const expectText: (text: string, length?: number, exact?: boolean) => void;
@@ -10,7 +10,8 @@ export declare const expectNullInput: (ariaLabel: string) => void;
10
10
  export declare const expectVisibleQuestion: (prompt: string) => void;
11
11
  export declare const expectNoQuestion: (prompt: string) => void;
12
12
  export declare const expectCheckbox: (prompt: string) => void;
13
- export declare const expectNoCheckbox: (prompt: string) => void;
13
+ export declare const expectWarningMessage: (prompt: string) => void;
14
+ export declare const expectNoWarningMessage: (prompt: string) => void;
14
15
  export declare const expectSection: (title: string) => void;
15
16
  export declare const expectNoSection: (title: string) => void;
16
17
  export declare const expectDisabledInput: (ariaLabel: string) => void;
@@ -39,5 +40,6 @@ export declare const setUSIndividualNameAndAddressAndBirthDate: (prefix?: string
39
40
  export declare const setIndividualCountryNameAndAddressAndBirthDate: (prefix?: string) => void;
40
41
  export declare const setBirthDateAndCitizenship: (prefix?: string) => void;
41
42
  export declare const setBirthDate: (prefix?: string) => void;
43
+ export declare const log: (message: string) => void;
42
44
  export declare const setControllingPersonDetails: (prefix: string) => void;
43
45
  export declare const expectNoErrors: () => void;
@@ -1,4 +1,4 @@
1
- declare const inputSteps: readonly ["AccountHolderCertifications", "AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderAdditionalInfo", "AccountHolderTreatyClaims", "AccountHolderUsTinValidation", "ControllingPersonDetails1", "ControllingPersonDetails2", "ControllingPersonDetails3", "ControllingPersonDetails4", "ControllingPersonDetails5", "Exemptions", "RegardedOwnerCertifications", "RegardedOwnerContact", "RegardedOwnerTax", "RegardedOwnerTreatyClaims", "RegardedOwnerUsTinValidation", "Summary"];
1
+ declare const inputSteps: readonly ["AccountHolderCertifications", "AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderTaxResidenciesConfirmation", "AccountHolderAdditionalInfo", "AccountHolderTreatyClaims", "AccountHolderUsTinValidation", "ControllingPersonDetails1", "ControllingPersonDetails2", "ControllingPersonDetails3", "ControllingPersonDetails4", "ControllingPersonDetails5", "ControllingPerson1TaxResidenciesConfirmation", "ControllingPerson2TaxResidenciesConfirmation", "ControllingPerson3TaxResidenciesConfirmation", "ControllingPerson4TaxResidenciesConfirmation", "ControllingPerson5TaxResidenciesConfirmation", "Exemptions", "RegardedOwnerCertifications", "RegardedOwnerContact", "RegardedOwnerTax", "RegardedOwnerTreatyClaims", "RegardedOwnerUsTinValidation", "Summary"];
2
2
  export type InputStep = (typeof inputSteps)[number];
3
3
  export declare const isInputStep: (step: string) => step is InputStep;
4
4
  export declare const confirmInputStep: (step: string) => InputStep;
@@ -1 +1 @@
1
- export type Locale = 'bg' | 'cs' | 'da' | 'de' | 'de-at' | 'el' | 'el-cy' | 'en' | 'en-gb' | 'en-nz' | 'en-us' | 'es' | 'es-mx' | 'et' | 'fi' | 'fr' | 'fr-ca' | 'fr-lu' | 'ga' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'mt' | 'nl' | 'nl-be' | 'no' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh' | 'zh-cn' | 'zh-tw';
1
+ export type Locale = 'bg' | 'cs' | 'da' | 'de' | 'de-at' | 'de-de' | 'el' | 'el-cy' | 'el-el' | 'en' | 'en-gb' | 'en-nz' | 'en-us' | 'es' | 'es-es' | 'es-mx' | 'et' | 'fi' | 'fr' | 'fr-ca' | 'fr-lu' | 'fr-fr' | 'ga' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'mt' | 'nl' | 'nl-be' | 'nl-nl' | 'no' | 'pl' | 'pt' | 'pt-br' | 'pt-pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh' | 'zh-cn' | 'zh-tw';
@@ -1,6 +1,5 @@
1
1
  import { Locale } from './Locale';
2
2
  import { StepId } from './StepId';
3
-
4
3
  export type Progress = {
5
4
  language: Locale;
6
5
  percentComplete: number;
@@ -0,0 +1,2 @@
1
+ export type SchemaVersion = '1.0' | '1.1' | '2.0' | '3.0' | '3.1';
2
+ export declare const CURRENT_SCHEMA_VERSION: SchemaVersion;
@@ -1 +1 @@
1
- export type StepId = 'accountHolderCertifications' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderClassification' | 'accountHolderAdditionalInfo' | 'accountHolderTreatyClaims' | 'accountHolderUsTinValidation' | 'confirmation' | 'controllingPersonDetails1' | 'controllingPersonDetails2' | 'controllingPersonDetails3' | 'controllingPersonDetails4' | 'controllingPersonDetails5' | 'exemptions' | 'regardedOwnerCertifications' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'regardedOwnerTreatyClaims' | 'regardedOwnerUsTinValidation' | 'summary';
1
+ export type StepId = 'accountHolderCertifications' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxResidenciesConfirmation' | 'controllingPerson1TaxResidenciesConfirmation' | 'controllingPerson2TaxResidenciesConfirmation' | 'controllingPerson3TaxResidenciesConfirmation' | 'controllingPerson4TaxResidenciesConfirmation' | 'controllingPerson5TaxResidenciesConfirmation' | 'accountHolderClassification' | 'accountHolderAdditionalInfo' | 'accountHolderTreatyClaims' | 'accountHolderUsTinValidation' | 'confirmation' | 'controllingPersonDetails1' | 'controllingPersonDetails2' | 'controllingPersonDetails3' | 'controllingPersonDetails4' | 'controllingPersonDetails5' | 'exemptions' | 'regardedOwnerCertifications' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'regardedOwnerTreatyClaims' | 'regardedOwnerUsTinValidation' | 'summary';
@@ -1,7 +1,6 @@
1
1
  import { AccountOwnerType, ActiveNonFinancialEntityType, EntityAccountHolderAccountType, EntityRegardedOwnerAccountType, EntityType, FinancialInstitutionType, IntermediaryAccountType, SelfCertificationAccountType, UsAccountHolderAccountType, UsLLCAccountType, UsRegardedOwnerAccountType } from '@taxbit/utilities';
2
2
  import { Yes } from './Yes';
3
3
  import { YesNo } from './YesNo';
4
-
5
4
  export type AccountHolderClassificationData = {
6
5
  accountHolderIsIndividual?: YesNo;
7
6
  accountHolderUsPerson?: YesNo;
@@ -92,7 +91,6 @@ export type RegardedOwnerTreatyClaimData = {
92
91
  regardedOwnerTreatyClaimHasAdditionalConditions?: Yes;
93
92
  };
94
93
  type Iterate1_5 = '1' | '2' | '3' | '4' | '5';
95
- type ResidencesKey<Prefix extends string> = `${Prefix}TaxResidences`;
96
94
  type ResidenceCountryKey<Prefix extends string> = `${Prefix}TaxResidenceCountry${Iterate1_5}`;
97
95
  type ResidenceTinKey<Prefix extends string> = `${Prefix}TaxResidenceTin${Iterate1_5}`;
98
96
  type ResidenceTinNotRequiredKey<Prefix extends string> = `${Prefix}TaxResidenceTinIsNotRequired${Iterate1_5}`;
@@ -100,7 +98,9 @@ type ResidenceTinNotRequiredReasonKey<Prefix extends string> = `${Prefix}TaxResi
100
98
  type ResidenceTinNotRequiredReasonOtherKey<Prefix extends string> = `${Prefix}TaxResidenceTinIsNotRequiredReasonOther${Iterate1_5}`;
101
99
  type ResidenceShowKey<Prefix extends string> = `${Prefix}ShowTaxResidence${Iterate1_5}`;
102
100
  type Residences<Prefix extends string> = {
103
- [key in ResidencesKey<Prefix>]?: YesNo;
101
+ [key in `${Prefix}IConfirmNoOtherTaxResidencies`]?: Yes;
102
+ } & {
103
+ [key in `${Prefix}TaxResidences`]?: YesNo;
104
104
  } & {
105
105
  [key in ResidenceCountryKey<Prefix>]?: string;
106
106
  } & {
@@ -132,6 +132,8 @@ export type AccountHolderTaxData = Residences<'accountHolder'> & {
132
132
  accountHolderEntityType?: EntityType;
133
133
  accountHolderSecuritiesMarket?: string;
134
134
  accountHolderRelatedCorporation?: string;
135
+ accountHolderResidenceByInvestmentConfirmed?: Yes;
136
+ accountHolderGiin?: string;
135
137
  };
136
138
  type ControllingPersonPrefix = `controllingPerson${Iterate1_5}`;
137
139
  type ControllingPerson = {
@@ -156,7 +158,9 @@ type ControllingPerson = {
156
158
  [key in `${ControllingPersonPrefix}CountryOfCitizenship`]?: string;
157
159
  } & {
158
160
  [key in `${ControllingPersonPrefix}MailingAddressIsDifferent`]?: Yes;
159
- } & Address<ControllingPersonPrefix> & Address<`${ControllingPersonPrefix}Mailing`>;
161
+ } & Address<ControllingPersonPrefix> & Address<`${ControllingPersonPrefix}Mailing`> & {
162
+ [key in `${ControllingPersonPrefix}ResidenceByInvestmentConfirmed`]?: Yes;
163
+ };
160
164
  export type ControllingPersonClassificationData = Residences<ControllingPersonPrefix> & ControllingPerson;
161
165
  export type RegardedOwnerClassificationData = {
162
166
  regardedOwnerUsPerson?: YesNo;
@@ -3,7 +3,7 @@ type IssueDetail = {
3
3
  description: string;
4
4
  };
5
5
  type QuestionnaireIssue = {
6
- issueType: 'CARE_OF_PERMANENT_ADDRESS' | 'CHANGE_IN_CIRCUMSTANCES' | 'INCOMPLETE_DATA' | 'INCONSISTENT_DATA' | 'INCOMPLETE_ADDRESS' | 'INCOMPLETE_CLASSIFICATION' | 'INCOMPLETE_US_TIN' | 'INCOMPLETE_TREATY_CLAIM' | 'PO_BOX_PERMANENT_ADDRESS' | 'TREATY_COUNTRY_MISMATCH' | 'US_INDICIA' | 'US_PERMANENT_ADDRESS' | 'WITHHOLDING_DOCUMENTATION';
6
+ issueType: 'CARE_OF_PERMANENT_ADDRESS' | 'CHANGE_IN_CIRCUMSTANCES' | 'INCOMPLETE_DATA' | 'INCONSISTENT_DATA' | 'INCOMPLETE_ADDRESS' | 'INCOMPLETE_CLASSIFICATION' | 'INCOMPLETE_US_TIN' | 'INCOMPLETE_TREATY_CLAIM' | 'PO_BOX_PERMANENT_ADDRESS' | 'TREATY_COUNTRY_MISMATCH' | 'US_INDICIA' | 'US_PERMANENT_ADDRESS' | 'WITHHOLDING_DOCUMENTATION' | 'CBI_RBI_CONFIRMATION' | 'INCOMPLETE_GIIN';
7
7
  createdAt: string;
8
8
  details: IssueDetail[];
9
9
  };
@@ -3,6 +3,7 @@ export * from './InputStep';
3
3
  export * from './Locale';
4
4
  export * from './Progress';
5
5
  export * from './QuestionnaireProp';
6
+ export * from './SchemaVersion';
6
7
  export * from './StepId';
7
8
  export * from './TaxDocumentation';
8
9
  export * from './Utilities';
@@ -3,7 +3,7 @@ type IssueDetail = {
3
3
  description: string;
4
4
  };
5
5
  type Issue = {
6
- issue_type: 'CARE_OF_PERMANENT_ADDRESS' | 'CHANGE_IN_CIRCUMSTANCES' | 'INCOMPLETE_DATA' | 'INCONSISTENT_DATA' | 'INCOMPLETE_ADDRESS' | 'INCOMPLETE_CLASSIFICATION' | 'INCOMPLETE_US_TIN' | 'INCOMPLETE_TREATY_CLAIM' | 'PO_BOX_PERMANENT_ADDRESS' | 'TREATY_COUNTRY_MISMATCH' | 'US_INDICIA' | 'US_PERMANENT_ADDRESS' | 'WITHHOLDING_DOCUMENTATION';
6
+ issue_type: 'CARE_OF_PERMANENT_ADDRESS' | 'CHANGE_IN_CIRCUMSTANCES' | 'INCOMPLETE_DATA' | 'INCONSISTENT_DATA' | 'INCOMPLETE_ADDRESS' | 'INCOMPLETE_CLASSIFICATION' | 'INCOMPLETE_US_TIN' | 'INCOMPLETE_TREATY_CLAIM' | 'PO_BOX_PERMANENT_ADDRESS' | 'TREATY_COUNTRY_MISMATCH' | 'US_INDICIA' | 'US_PERMANENT_ADDRESS' | 'WITHHOLDING_DOCUMENTATION' | 'CBI_RBI_CONFIRMATION' | 'INCOMPLETE_GIIN';
7
7
  created_at: string;
8
8
  details: IssueDetail[];
9
9
  };
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  type ActionsProps = {
4
3
  onBack?: () => void;
5
4
  onNext?: () => void;
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
3
  import { Yes } from 'types/Yes';
4
-
5
4
  export type CheckBoxProps = {
6
5
  label: boolean;
7
6
  subLabel?: boolean;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
-
4
3
  export type DateOfBirthInputProps = {
5
4
  name: TaxDocumentationKey;
6
5
  className?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types';
3
-
4
3
  export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
5
4
  mm: string;
6
5
  dd: string;
@@ -9,7 +8,7 @@ export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
9
8
  handleMonthChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
10
9
  handleYearChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
11
10
  dayOptions: {
12
- value: T;
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";
13
12
  }[];
14
13
  birthYearOptions: {
15
14
  value: number;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from '../../types';
3
-
4
3
  type FormattedInputProps = {
5
4
  name: TaxDocumentationKey;
6
5
  format: (s: string) => string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type HideShowButtonProps = {
4
3
  onClick: () => void;
5
4
  };
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
-
4
3
  export type InputValueProps = {
5
4
  name: TaxDocumentationKey;
6
5
  value?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from '../../types';
3
-
4
3
  export declare const MaskedContent: ({ name }: {
5
4
  name: TaxDocumentationKey;
6
5
  }) => React.JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types';
3
-
4
3
  export type PasswordInputProps = {
5
4
  name: TaxDocumentationKey;
6
5
  className?: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type PhoneNumberInputProps = {
4
3
  name: 'accountHolderPhoneNumber';
5
4
  className?: string;
@@ -1,7 +1,6 @@
1
1
  import { OptionKey } from 'i18n/types';
2
2
  import { default as React } from 'react';
3
3
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
4
-
5
4
  type RadioOption = {
6
5
  value: string;
7
6
  label?: string;
@@ -1,7 +1,6 @@
1
1
  import { OptionKey } from 'i18n/types';
2
2
  import { default as React } from 'react';
3
3
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
4
-
5
4
  type ValueOption = {
6
5
  value: string;
7
6
  label?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
-
4
3
  export type ShowHideInputProps = {
5
4
  name: TaxDocumentationKey;
6
5
  className?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
-
4
3
  export type TextAreaProps = {
5
4
  name: TaxDocumentationKey;
6
5
  className?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
-
4
3
  export type TextInputProps = {
5
4
  name: TaxDocumentationKey;
6
5
  className?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
-
4
3
  export type ToggleButtonProps = {
5
4
  name: TaxDocumentationKey;
6
5
  };
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type WithholdingInputProps = {
4
3
  prefix: 'accountHolder' | 'regardedOwner';
5
4
  country?: string;
@@ -1,5 +1,4 @@
1
1
  import { TaxDocumentationKey } from '../types/TaxDocumentation';
2
-
3
2
  /**
4
3
  * Hook that returns any aria attributes needed to properly set up the given
5
4
  * field for assistive technologies.
@@ -1,5 +1,4 @@
1
1
  import { TaxDocumentation } from '../types';
2
-
3
2
  export declare const getDataFields: (fields: TaxDocumentation) => {
4
3
  iConfirmTheTaxIdIsCorrect: undefined;
5
4
  iAmNotSubjectToBackupWithholding: undefined;
@@ -66,6 +65,7 @@ export declare const getDataFields: (fields: TaxDocumentation) => {
66
65
  accountHolderIsCompliantCertified?: import('../types').Yes;
67
66
  accountHolderEntityPaymentsCertified?: import('../types').Yes;
68
67
  accountHolderProvidesWithholdingStatementCertified?: import('../types').Yes;
68
+ accountHolderIConfirmNoOtherTaxResidencies?: "yes" | undefined;
69
69
  accountHolderTaxResidences?: import('../types').YesNo;
70
70
  accountHolderTaxResidenceCountry1?: string | undefined;
71
71
  accountHolderTaxResidenceCountry2?: string | undefined;
@@ -114,6 +114,8 @@ export declare const getDataFields: (fields: TaxDocumentation) => {
114
114
  accountHolderEntityType?: import('@taxbit/utilities').EntityType;
115
115
  accountHolderSecuritiesMarket?: string;
116
116
  accountHolderRelatedCorporation?: string;
117
+ accountHolderResidenceByInvestmentConfirmed?: import('../types').Yes;
118
+ accountHolderGiin?: string;
117
119
  accountHolderIsIndividual?: import('../types').YesNo;
118
120
  accountHolderUsPerson?: import('../types').YesNo;
119
121
  accountHolderAccountOwnerType?: import('@taxbit/utilities').AccountOwnerType;
@@ -204,6 +206,11 @@ export declare const getDataFields: (fields: TaxDocumentation) => {
204
206
  regardedOwnerTreatyClaimTypeOfIncome?: string;
205
207
  regardedOwnerTreatyClaimWithholding?: string;
206
208
  regardedOwnerTreatyClaimHasAdditionalConditions?: import('../types').Yes;
209
+ controllingPerson1IConfirmNoOtherTaxResidencies?: "yes" | undefined;
210
+ controllingPerson2IConfirmNoOtherTaxResidencies?: "yes" | undefined;
211
+ controllingPerson3IConfirmNoOtherTaxResidencies?: "yes" | undefined;
212
+ controllingPerson4IConfirmNoOtherTaxResidencies?: "yes" | undefined;
213
+ controllingPerson5IConfirmNoOtherTaxResidencies?: "yes" | undefined;
207
214
  controllingPerson1TaxResidences?: "no" | "yes" | undefined;
208
215
  controllingPerson2TaxResidences?: "no" | "yes" | undefined;
209
216
  controllingPerson3TaxResidences?: "no" | "yes" | undefined;
@@ -484,6 +491,11 @@ export declare const getDataFields: (fields: TaxDocumentation) => {
484
491
  controllingPerson3MailingAddressZip?: string | undefined;
485
492
  controllingPerson4MailingAddressZip?: string | undefined;
486
493
  controllingPerson5MailingAddressZip?: string | undefined;
494
+ controllingPerson1ResidenceByInvestmentConfirmed?: "yes" | undefined;
495
+ controllingPerson2ResidenceByInvestmentConfirmed?: "yes" | undefined;
496
+ controllingPerson3ResidenceByInvestmentConfirmed?: "yes" | undefined;
497
+ controllingPerson4ResidenceByInvestmentConfirmed?: "yes" | undefined;
498
+ controllingPerson5ResidenceByInvestmentConfirmed?: "yes" | undefined;
487
499
  subjectToBackupWithholding?: undefined;
488
500
  irsRequiresBackupWithholdingConsent?: undefined;
489
501
  };
@@ -1,3 +1,2 @@
1
1
  import { TaxDocumentationKey } from 'types';
2
-
3
2
  export declare const getErrorMessageId: (name: TaxDocumentationKey) => string;
@@ -1,6 +1,5 @@
1
1
  import { TaxDocumentation } from 'types/TaxDocumentation';
2
2
  import { QuestionnaireProp } from '../types';
3
-
4
3
  export declare const getFieldsState: (fields?: TaxDocumentation, questionnaire?: QuestionnaireProp) => {
5
4
  hasNoEuTaxId: boolean;
6
5
  hasEuResidence: boolean;
@@ -40,6 +39,7 @@ export declare const getFieldsState: (fields?: TaxDocumentation, questionnaire?:
40
39
  tin: string | undefined;
41
40
  tinNotRequired: "yes" | undefined;
42
41
  }[];
42
+ hasHighRiskTaxResidenciesOnly: (prefix: "accountHolder" | "controllingPerson1" | "controllingPerson2" | "controllingPerson3" | "controllingPerson4" | "controllingPerson5") => boolean;
43
43
  accountHolderIntermediaryWhereUsTinIsRequired: boolean;
44
44
  accountHolderTreatyClaim: boolean;
45
45
  accountHolderUsTinRequiredSpecialSituations: boolean;
@@ -1,4 +1,3 @@
1
1
  import { QuestionnaireProp } from '../types';
2
2
  import { ClientTaxDocumentationStatus } from '../types/client';
3
-
4
3
  export declare const getFormStatus: (statusData: ClientTaxDocumentationStatus | undefined, questionnaire: QuestionnaireProp) => "COMPLETE" | "INCOMPLETE" | undefined;
@@ -1,3 +1,2 @@
1
1
  import { Locale, QuestionnaireProp } from '../types';
2
-
3
2
  export declare const getLanguage: (language: string | undefined, questionnaire: QuestionnaireProp) => Locale;
@@ -1,3 +1,2 @@
1
1
  import { ClientTaxDocumentation } from '@taxbit/utilities';
2
-
3
2
  export declare const mergeClientTaxDocumentationData: (serverData: ClientTaxDocumentation | undefined, clientData: ClientTaxDocumentation | undefined) => ClientTaxDocumentation;