@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,58 +1,52 @@
1
1
  /// <reference types="react" />
2
2
  export declare const useTaxDocumentationContext: () => {
3
- isW9: boolean;
4
- isW8: boolean;
5
- isW8Ben: boolean;
6
- isW8BenE: boolean;
7
- isDac7: boolean;
8
- onPersistAccountHolderData: (newData: import("../../types").TaxDocumentation) => void;
3
+ isBuildingW9: boolean;
4
+ isBuildingW8: boolean;
9
5
  onPersistCollectedData: (newData: import("../../types").TaxDocumentation) => void;
10
6
  onSubmitTaxDocumentation: (data: import("../../types").TaxDocumentation) => void;
11
7
  error: string | undefined;
12
- editTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
8
+ editTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
13
9
  onCancel: (() => void) | undefined;
14
- getStepId: (key: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => import("../../entry").StepId;
15
- goTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
10
+ getStepId: (key: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => import("../../types/StepId").StepId;
11
+ goTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
16
12
  goBack: (() => void) | undefined;
17
13
  goToNext: (data: import("../../types").TaxDocumentation) => void;
18
14
  progress: import("../../types").Progress | undefined;
19
- stepName: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
15
+ stepName: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
20
16
  data: import("../../types").TaxDocumentation;
21
17
  originalClientData: import("../../types").TaxDocumentation;
22
- initialStep: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
23
- setLanguage: import("react").Dispatch<import("react").SetStateAction<"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">>;
24
- language: "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";
25
- supportedForms: import("../../types").TaxForm[];
26
- externalValidations: import("../../entry").ExternalValidations | undefined;
18
+ initialStep: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
19
+ setLanguage: import("react").Dispatch<import("react").SetStateAction<"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">>;
20
+ language: "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";
21
+ questionnaire: import("../../types").Questionnaire;
22
+ externalValidations: import("../../types/client").ExternalValidations | undefined;
27
23
  config: {
28
24
  minimumAge: number;
29
25
  } | undefined;
26
+ isSubmitting: boolean;
30
27
  }, TaxDocumentationContextProvider: import("react").Provider<{
31
- isW9: boolean;
32
- isW8: boolean;
33
- isW8Ben: boolean;
34
- isW8BenE: boolean;
35
- isDac7: boolean;
36
- onPersistAccountHolderData: (newData: import("../../types").TaxDocumentation) => void;
28
+ isBuildingW9: boolean;
29
+ isBuildingW8: boolean;
37
30
  onPersistCollectedData: (newData: import("../../types").TaxDocumentation) => void;
38
31
  onSubmitTaxDocumentation: (data: import("../../types").TaxDocumentation) => void;
39
32
  error: string | undefined;
40
- editTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
33
+ editTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
41
34
  onCancel: (() => void) | undefined;
42
- getStepId: (key: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => import("../../entry").StepId;
43
- goTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
35
+ getStepId: (key: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => import("../../types/StepId").StepId;
36
+ goTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
44
37
  goBack: (() => void) | undefined;
45
38
  goToNext: (data: import("../../types").TaxDocumentation) => void;
46
39
  progress: import("../../types").Progress | undefined;
47
- stepName: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
40
+ stepName: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
48
41
  data: import("../../types").TaxDocumentation;
49
42
  originalClientData: import("../../types").TaxDocumentation;
50
- initialStep: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
51
- setLanguage: import("react").Dispatch<import("react").SetStateAction<"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">>;
52
- language: "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";
53
- supportedForms: import("../../types").TaxForm[];
54
- externalValidations: import("../../entry").ExternalValidations | undefined;
43
+ initialStep: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
44
+ setLanguage: import("react").Dispatch<import("react").SetStateAction<"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">>;
45
+ language: "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";
46
+ questionnaire: import("../../types").Questionnaire;
47
+ externalValidations: import("../../types/client").ExternalValidations | undefined;
55
48
  config: {
56
49
  minimumAge: number;
57
50
  } | undefined;
51
+ isSubmitting: boolean;
58
52
  } | undefined>;
@@ -1,2 +1,2 @@
1
- export * from "./TaxDocumentation";
2
- export * from "./FormUI";
1
+ export * from './QuestionnaireUI';
2
+ export * from './TaxDocumentation';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { TaxbitQuestionnairePersistProps } from 'widgets';
3
+ import { TaxbitQuestionnaireUIProps } from 'wizard';
4
+ export type TaxbitQuestionnaireProps = (TaxbitQuestionnaireUIProps & {
5
+ demoMode: true;
6
+ }) | (TaxbitQuestionnairePersistProps & {
7
+ demoMode?: false | undefined;
8
+ });
9
+ export declare const TaxbitQuestionnaire: ({ ...props }: TaxbitQuestionnaireProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TaxbitQuestionnaire';
@@ -1,8 +1,6 @@
1
- export * from '../hooks/useTaxBit';
1
+ export * from '../hooks/useTaxbit';
2
2
  export * from '../types/Locale';
3
3
  export * from '../types/Progress';
4
- export * from '../types/StepId';
5
- export * from '../types/TaxForm';
6
- export * from '../types/client';
7
- export * from '../widgets/TaxBitForm';
8
- export * from '../wizard/TaxBitFormUI';
4
+ export * from '../types/Questionnaire';
5
+ export * from '../types/client/ClientTaxDocumentationStatus';
6
+ export * from './TaxbitQuestionnaire';
@@ -1 +1 @@
1
- export * from "./useTaxBit";
1
+ export * from './useTaxbit';
@@ -0,0 +1,2 @@
1
+ import { SignedClientTaxDocumentation } from '@taxbit/utilities';
2
+ export declare const clientTaxDocumentation: SignedClientTaxDocumentation;
@@ -1,2 +1,2 @@
1
- import { SignedDatedComprehensiveTaxDocumentation } from '../../../types/server';
1
+ import { SignedDatedComprehensiveTaxDocumentation } from '@taxbit/utilities';
2
2
  export declare const serverTaxDocumentation: SignedDatedComprehensiveTaxDocumentation;
@@ -0,0 +1 @@
1
+ export * from './useTaxbit';
@@ -0,0 +1,9 @@
1
+ import { Questionnaire } from 'types';
2
+ export declare const useTaxbit: (bearerToken: string, questionnaire: Questionnaire, staging?: boolean) => {
3
+ serverData: import("@taxbit/utilities").SignedClientTaxDocumentation | undefined;
4
+ statusData: import("../../entry").ClientTaxDocumentationStatus | undefined;
5
+ canGetDocumentUrl: boolean;
6
+ getNewDocumentUrl: () => void;
7
+ isGettingDocumentUrl: boolean;
8
+ documentUrl: string | undefined;
9
+ };
@@ -0,0 +1,8 @@
1
+ import type { SignedClientTaxDocumentation } from '@taxbit/utilities';
2
+ import { Questionnaire } from 'types';
3
+ export declare const useTaxbitConnect: (bearerToken: string, questionnaire: Questionnaire, staging?: boolean) => {
4
+ doPostData: (data: SignedClientTaxDocumentation) => Promise<Response>;
5
+ formStatus: "COMPLETE" | "INCOMPLETE" | undefined;
6
+ serverData: SignedClientTaxDocumentation | undefined;
7
+ statusData: import("../../entry").ClientTaxDocumentationStatus | undefined;
8
+ };
@@ -0,0 +1,8 @@
1
+ import type { SignedClientTaxDocumentation } from '@taxbit/utilities';
2
+ import { Questionnaire } from 'types';
3
+ import type { ClientTaxDocumentationStatus } from 'types/client';
4
+ export declare const useTaxbitStatus: (bearerToken: string, questionnaire: Questionnaire, staging?: boolean) => {
5
+ formStatus: "COMPLETE" | "INCOMPLETE" | undefined;
6
+ serverData: SignedClientTaxDocumentation | undefined;
7
+ statusData: ClientTaxDocumentationStatus | undefined;
8
+ };
@@ -1 +1 @@
1
- export { getButtonText, getCaProvinceText, getCountryText, getErrorText, getHintText, getMonthText, getOptionText, getPromptText, getSubPromptText, getSubTitleText, getTitleText, getUsStateText, } from './utils';
1
+ export { getButtonText, getErrorText, getOptionText, getPromptText, getSubPromptText, getSubTitleText, getTitleText, } from './utils';
@@ -0,0 +1 @@
1
+ export declare const bg: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const cs: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const da: import("../types/PropertyFile").PropertyFile;
@@ -1,2 +1 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const deAt: PropertyFile;
1
+ export declare const deAt: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1,3 @@
1
+ import { DPSPropertyFile } from '../types/PropertyFile';
2
+ export declare const deTranslations: DPSPropertyFile;
3
+ export declare const de: import("../types/PropertyFile").PropertyFile;
@@ -1,2 +1,3 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const elCy: PropertyFile;
1
+ import { PartialDPSPropertyFile } from '../types/PropertyFile';
2
+ export declare const elCyTranslations: PartialDPSPropertyFile;
3
+ export declare const elCy: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1,3 @@
1
+ import { DPSPropertyFile } from '../types/PropertyFile';
2
+ export declare const elTranslations: DPSPropertyFile;
3
+ export declare const el: import("../types/PropertyFile").PropertyFile;
@@ -1,2 +1,2 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
- export declare const bgBg: PropertyFile;
2
+ export declare const enNz: PropertyFile;
@@ -1,2 +1,2 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
- export declare const csCz: PropertyFile;
2
+ export declare const en: PropertyFile;
@@ -1,2 +1,2 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
- export declare const daDk: PropertyFile;
2
+ export declare const es: PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const et: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const fi: import("../types/PropertyFile").PropertyFile;
@@ -1,2 +1,2 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
- export declare const deDe: PropertyFile;
2
+ export declare const frCa: PropertyFile;
@@ -1,2 +1 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const frLu: PropertyFile;
1
+ export declare const frLu: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const fr: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const ga: PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const hr: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const hu: import("../types/PropertyFile").PropertyFile;
@@ -1,30 +1,33 @@
1
- export * from "./bg-bg";
2
- export * from "./cs-cz";
3
- export * from "./da-dk";
4
- export * from "./de-at";
5
- export * from "./de-de";
6
- export * from "./el-cy";
7
- export * from "./el-gr";
8
- export * from "./en-gb";
9
- export * from "./en-us";
10
- export * from "./es-es";
11
- export * from "./et-ee";
12
- export * from "./fi-fi";
13
- export * from "./fr-fr";
14
- export * from "./fr-lu";
15
- export * from "./ga-ie";
16
- export * from "./hr-hr";
17
- export * from "./hu-hu";
18
- export * from "./it-it";
19
- export * from "./lt-lt";
20
- export * from "./lv-lv";
21
- export * from "./mt-mt";
22
- export * from "./nl-be";
23
- export * from "./nl-nl";
24
- export * from "./no-no";
25
- export * from "./pl-pl";
26
- export * from "./pt-pt";
27
- export * from "./ro-ro";
28
- export * from "./sk-sk";
29
- export * from "./sl-si";
30
- export * from "./sv-se";
1
+ export * from './bg';
2
+ export * from './cs';
3
+ export * from './da';
4
+ export * from './de';
5
+ export * from './de-at';
6
+ export * from './el';
7
+ export * from './el-cy';
8
+ export * from './en';
9
+ export * from './en-gb';
10
+ export * from './en-nz';
11
+ export * from './en-us';
12
+ export * from './es';
13
+ export * from './et';
14
+ export * from './fi';
15
+ export * from './fr';
16
+ export * from './fr-ca';
17
+ export * from './fr-lu';
18
+ export * from './ga';
19
+ export * from './hr';
20
+ export * from './hu';
21
+ export * from './it';
22
+ export * from './lt';
23
+ export * from './lv';
24
+ export * from './mt';
25
+ export * from './nl';
26
+ export * from './nl-be';
27
+ export * from './no';
28
+ export * from './pl';
29
+ export * from './pt';
30
+ export * from './ro';
31
+ export * from './sk';
32
+ export * from './sl';
33
+ export * from './sv';
@@ -0,0 +1 @@
1
+ export declare const it: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1,3 @@
1
+ import { DPSPropertyFile } from '../types/PropertyFile';
2
+ export declare const ltTranslations: DPSPropertyFile;
3
+ export declare const lt: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const lv: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1,6 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ type DeepPartial<T> = T extends object ? {
3
+ [P in keyof T]?: DeepPartial<T[P]>;
4
+ } : T;
5
+ export declare const mergePropertyFiles: (a: PropertyFile, b: DeepPartial<PropertyFile> | Array<DeepPartial<PropertyFile>>) => PropertyFile;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const mt: import("../types/PropertyFile").PropertyFile;
@@ -1,2 +1,3 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const nlBe: PropertyFile;
1
+ import { PartialDPSPropertyFile } from '../types/PropertyFile';
2
+ export declare const nlBeTranslations: PartialDPSPropertyFile;
3
+ export declare const nlBe: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const nl: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const no: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1,3 @@
1
+ import { DPSPropertyFile } from '../types/PropertyFile';
2
+ export declare const plTranslations: DPSPropertyFile;
3
+ export declare const pl: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const pt: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const ro: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const sk: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const sl: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1 @@
1
+ export declare const sv: import("../types/PropertyFile").PropertyFile;
@@ -0,0 +1,5 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const translationRequired = "translation required";
3
+ export declare const translationRequiredForDPS = "translation required for DPS";
4
+ export declare const translationRequiredForWForm = "translation required for W-Form";
5
+ export declare const translationMissing: PropertyFile;
@@ -0,0 +1,7 @@
1
+ import type { Locale } from 'types';
2
+ import type { PropertyFile } from './types/PropertyFile';
3
+ type LocalizationFile = {
4
+ [locale in Locale]: PropertyFile;
5
+ };
6
+ export declare const localizationFileMap: LocalizationFile;
7
+ export {};
@@ -1,9 +1,9 @@
1
1
  export type ButtonKey = 'edit' | 'back' | 'next' | 'reset' | 'submit' | 'cancel' | 'hide' | 'show';
2
- export type ErrorKey = 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeNineDigits' | 'mustBeSixCharacters' | 'mustBeValidBirthDate' | 'mustBeAtLeast18' | 'mustMatchName' | 'mustNotMatchVatin' | 'required' | 'residencesMustIncludeAddressCountry' | 'residencesMustIncludeAnEUCountry' | 'residencesMustIncludeVatCountry';
3
- export type OptionKey = 'usPerson_yes' | 'usPerson_no' | 'regardedOwnerUsPerson_yes' | 'regardedOwnerUsPerson_no' | 'isIndividual_yes' | 'isIndividual_no' | 'cCorporation' | 'centralBankOfIssue' | 'complexTrust' | 'corporation' | 'disregardedEntity' | 'estate' | 'foreignGovernmentControlledEntity' | 'foreignGovernmentIntegralPart' | 'grantorTrust' | 'individual' | 'internationalOrganization' | 'llc' | 'no' | 'other' | 'partnership' | 'privateFoundation' | 'sCorporation' | 'simpleTrust' | 'smllc' | 'soleProprietor' | 'taxExemptOrganization' | 'trust' | 'trustEstate' | 'yes';
4
- export type PromptKey = 'addAdditional' | 'address' | 'businessRegistrationNumber' | 'businessRegistrationCountry' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'countryOfCitizenship' | 'dateOfBirth' | 'day' | 'dbaName' | 'exemptPayeeCode' | 'exemptFatcaCode' | 'financialAccountIdentifier' | 'financialAccountName' | 'foreignAccountType' | 'foreignOtherClassification' | 'foreignTin' | 'foreignTinIsNotRequired' | 'foreignTrustClassification' | 'isEuResident' | 'isIndividual' | 'iAcknowlegeESignIsOk' | 'iAmACitizenOfTheUs' | 'iAmExemptFromFatcaReporting' | 'iAmNotSubjectToBackupWithholding' | 'iAuthorizeWithholdingAgent' | 'iCertifyToAll' | 'iConfirmIncomeIsNonUs' | 'iConfirmTheBeneficialOwnerIsExempt' | 'iConfirmTheInformationIsCorrectComplete' | 'iConfirmTheEntityIsNotAUsPerson' | 'iConfirmTheEntityIsTheBeneficialOwner' | 'iConfirmTheTaxIdIsCorrect' | 'iHaveLegalCapacityToSign' | 'mailingAddress' | 'mailingAddressIsDifferent' | 'month' | 'name' | 'nameOfEntity' | 'nameOfCCorporation' | 'nameOfCorporation' | 'nameOfIndividual' | 'nameOfLlc' | 'nameOfOrganization' | 'nameOfPartnership' | 'nameOfSCorporation' | 'nameOfSoleProprietor' | 'nameOfTrustEstate' | 'nameOfTrust' | 'province' | 'regardedOwnerUsPerson' | 'removeResidence' | 'signature' | 'smllcElection' | 'state' | 'stateProvince' | 'street' | 'street2' | 'taxIdNumber' | 'taxIdNumberIsNotRequired' | 'tin' | 'usAccountType' | 'usLlcClassification' | 'usOtherClassification' | 'usPerson' | 'usEin' | 'usSsn' | 'usTin' | 'usTrustEstateEin' | 'vatIdentificationNumber' | 'vatIsNotRequired' | 'vatCountry' | 'year' | 'zip';
5
- export type SubPromptKey = 'smllcElection' | 'iConfirmIncomeIsNonUs' | 'isEuResident' | 'isIndividual' | 'financialAccountIdentifier' | 'financialAccountName' | 'vatIdentificationNumber' | 'placeOfBirth';
6
- export type TitleKey = 'accountHolder' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxClarification' | 'address' | 'confirmation' | 'exemptions' | 'mailingAddress' | 'primaryAddress' | 'placeOfBirth' | 'regardedOwner' | 'regardedOwnerClassification' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'signature' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5';
7
- export type SubTitleKey = 'taxResidences';
8
- export type TextKey = 'eSignActReference' | 'notRequired' | 'interviewIsComplete' | 'retrievingInterviewStatus' | 'taxDocumentationSaved';
9
- export type HintKey = 'dateOfBirth';
2
+ export type ErrorKey = 'countryMustBeAResidenceCountry' | 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeNineDigits' | 'mustBeNinoFormat' | 'mustBeCaPostalCodeFormat' | 'mustBeInVatinFormat' | 'mustBeValidBirthDate' | 'mustBeAtLeast18' | 'mustMatchName' | 'mustNotMatchVatin' | 'required' | 'residencesMustIncludeAddressCountry' | 'residencesMustIncludeAnEUCountry' | 'residencesMustIncludeVatCountry' | 'tooLong' | 'tooShort' | 'vatinMustNotMatchResidencyTin';
3
+ export type SubOptionKey = 'accountHolderUsAccountType_SOLE_PROPRIETOR' | 'accountHolderUsAccountType_SM_LLC' | 'accountHolderUsAccountType_DISREGARDED_ENTITY';
4
+ export type OptionKey = 'accountHolderUsPerson_yes' | 'accountHolderUsPerson_no' | 'usTrustEstateEin_yes' | 'usTrustEstateEin_no' | 'usSoleProprietorEin_yes' | 'usSoleProprietorEin_no' | 'regardedOwnerUsPerson_yes' | 'regardedOwnerUsPerson_no' | 'smllcOwnerUsPerson_yes' | 'smllcOwnerUsPerson_no' | 'smllcElection_yes' | 'smllcElection_no' | 'isIndividual_yes' | 'isIndividual_no' | 'no' | 'yes' | 'CENTRAL_BANK_OF_ISSUE' | 'COMPLEX_TRUST' | 'CORPORATION' | 'C_CORPORATION' | 'DISREGARDED_ENTITY' | 'ESTATE' | 'FOREIGN_GOVERNMENT_CONTROLLED_ENTITY' | 'FOREIGN_GOVERNMENT_INTEGRAL_PART' | 'GRANTOR_TRUST' | 'INDIVIDUAL' | 'INTERNATIONAL_ORGANIZATION' | 'LLC' | 'OTHER' | 'PARTNERSHIP' | 'PRIVATE_FOUNDATION' | 'SIMPLE_TRUST' | 'SM_LLC' | 'SOLE_PROPRIETOR' | 'S_CORPORATION' | 'TAX_EXEMPT_ORGANIZATION' | 'TRUST' | 'TRUST_ESTATE';
5
+ export type PromptKey = 'addAdditional' | 'address' | 'businessRegistrationNumber' | 'businessRegistrationCountry' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'dbaName' | 'exemptPayeeCode' | 'exemptFatcaCode' | 'financialAccountIdentifier' | 'financialAccountName' | 'foreignAccountType' | 'foreignOtherClassification' | 'foreignTin' | 'foreignTinIsNotRequired' | 'foreignTrustClassification' | 'isIndividual' | 'iAcknowledgeESignIsOk' | 'iAmACitizenOfTheUs' | 'iAmExemptFromFatcaReporting' | 'iAmNotSubjectToBackupWithholding' | 'iAuthorizeWithholdingAgent' | 'iCertifyToAll' | 'iConfirmIncomeIsNonUs' | 'iConfirmTheBeneficialOwnerIsExempt' | 'iConfirmTheInformationIsCorrectComplete' | 'iConfirmTheEntityIsNotAUsPerson' | 'iConfirmTheEntityIsTheBeneficialOwner' | 'iConfirmTheIndividualIsNotAUsPerson' | 'iConfirmTheIndividualIsTheBeneficialOwner' | 'iConfirmTheIndividualIsResidentOfTreatyCountry' | 'iConfirmTheTaxIdIsCorrect' | 'iHaveCapacityToSignForEntity' | 'iHaveCapacityToSignForIndividual' | 'mailingAddress' | 'mailingAddressIsDifferent' | 'month' | 'name' | 'nameOfDisregardedEntity' | 'nameOfEntity' | 'nameOfCCorporation' | 'nameOfCorporation' | 'nameOfIndividual' | 'nameOfIndividualSoleProprietor' | 'nameOfLlc' | 'nameOfOrganization' | 'nameOfPartnership' | 'nameOfSCorporation' | 'nameOfSmllc' | 'nameOfSmllcOwner' | 'nameOfSoleProprietor' | 'nameOfTrustEstate' | 'nameOfTrust' | 'province' | 'referenceNumbers' | 'regardedOwnerUsPerson' | 'regardedOwnerAccountType' | 'removeResidence' | 'signature' | 'smllcElection' | 'smllcOwnerAccountType' | 'smllcOwnerUsPerson' | 'state' | 'stateProvince' | 'street' | 'street2' | 'taxIdNumber' | 'taxIdNumberIsNotRequired' | 'tin' | 'tinUkCrn' | 'tinUkNino' | 'usAccountType' | 'usLlcClassification' | 'usOtherClassification' | 'usPerson' | 'usEin' | 'usSoleProprietorEin' | 'usSsn' | 'usTin' | 'usTrustEstateEin' | 'vatIdentificationNumber' | 'vatIsNotRequired' | 'vatCountry' | 'year' | 'zip';
6
+ export type SubPromptKey = 'smllcElection' | 'iConfirmIncomeIsNonUs' | 'isIndividual' | 'financialAccountIdentifier' | 'financialAccountName' | 'vatIdentificationNumber' | 'placeOfBirth' | 'referenceNumbers' | 'signature' | 'streetIsPermanent' | 'usPerson';
7
+ export type TitleKey = 'accountHolder' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxClarification' | 'address' | 'acknowledge' | 'certify' | 'confirmation' | 'countryOfCitizenship' | 'countryOfIncorporation' | 'exemptions' | 'mailingAddress' | 'primaryAddress' | 'permanentAddress' | 'placeOfBirth' | 'regardedOwner' | 'regardedOwnerClassification' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'signature' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5';
8
+ export type SubTitleKey = 'taxResidences' | 'permanentAddress';
9
+ export type TextKey = 'eSignActReference' | 'notRequired' | 'notRequiredOrNotIssued' | 'interviewIsComplete' | 'penaltyOfPerjury' | 'penaltiesOfPerjury' | 'retrievingInterviewStatus' | 'taxDocumentationSaved';
@@ -1,8 +1,4 @@
1
- import { CaProvinceCode } from 'types/CaProvinceCode';
2
- import { CountryCode } from 'types/CountryCode';
3
- import { MonthCode } from 'types/MonthCode';
4
- import { UsStateCode } from 'types/UsStateCode';
5
- import { ButtonKey, ErrorKey, HintKey, OptionKey, PromptKey, SubPromptKey, SubTitleKey, TextKey, TitleKey } from './LocalizationKey';
1
+ import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubOptionKey, SubPromptKey, SubTitleKey, TextKey, TitleKey } from './LocalizationKey';
6
2
  export type PropertyFile = {
7
3
  button: {
8
4
  [key in ButtonKey]: string;
@@ -25,22 +21,30 @@ export type PropertyFile = {
25
21
  option: {
26
22
  [key in OptionKey]: string;
27
23
  };
28
- country: {
29
- [key in CountryCode]: string;
30
- };
31
- usState: {
32
- [key in UsStateCode]: string;
33
- };
34
- caProvince: {
35
- [key in CaProvinceCode]: string;
24
+ subOption: {
25
+ [key in SubOptionKey]: string;
36
26
  };
37
27
  text: {
38
28
  [key in TextKey]: string;
39
29
  };
40
- hint: {
41
- [key in HintKey]: string;
42
- };
43
- month: {
44
- [key in MonthCode]: string;
45
- };
30
+ };
31
+ export type DPSPropertyFile = {
32
+ button: PropertyFile['button'];
33
+ prompt: Pick<PropertyFile['prompt'], 'addAdditional' | 'address' | 'businessRegistrationCountry' | 'businessRegistrationNumber' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'financialAccountIdentifier' | 'financialAccountName' | 'iConfirmTheInformationIsCorrectComplete' | 'isIndividual' | 'month' | 'name' | 'nameOfEntity' | 'nameOfIndividual' | 'province' | 'removeResidence' | 'state' | 'stateProvince' | 'street' | 'street2' | 'taxIdNumber' | 'taxIdNumberIsNotRequired' | 'tin' | 'tinUkCrn' | 'tinUkNino' | 'usTin' | 'vatCountry' | 'vatIdentificationNumber' | 'vatIsNotRequired' | 'year' | 'zip'>;
34
+ subPrompt: Pick<PropertyFile['subPrompt'], 'financialAccountIdentifier' | 'financialAccountName' | 'isIndividual' | 'placeOfBirth' | 'streetIsPermanent' | 'vatIdentificationNumber'>;
35
+ subTitle: Pick<PropertyFile['subTitle'], 'taxResidences'>;
36
+ title: Pick<PropertyFile['title'], 'accountHolder' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxClarification' | 'address' | 'confirmation' | 'countryOfCitizenship' | 'countryOfIncorporation' | 'permanentAddress' | 'placeOfBirth' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5'>;
37
+ text: Pick<PropertyFile['text'], 'interviewIsComplete' | 'notRequired' | 'notRequiredOrNotIssued' | 'retrievingInterviewStatus' | 'taxDocumentationSaved'>;
38
+ error: Pick<PropertyFile['error'], 'countryMustBeAResidenceCountry' | 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeAtLeast18' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeInVatinFormat' | 'mustBeNineDigits' | 'mustBeNinoFormat' | 'mustBeCaPostalCodeFormat' | 'mustBeValidBirthDate' | 'mustNotMatchVatin' | 'required' | 'residencesMustIncludeAddressCountry' | 'residencesMustIncludeAnEUCountry' | 'residencesMustIncludeVatCountry' | 'tooLong' | 'tooShort' | 'vatinMustNotMatchResidencyTin'>;
39
+ option: Pick<PropertyFile['option'], 'no' | 'yes' | 'isIndividual_yes' | 'isIndividual_no'>;
40
+ };
41
+ export type PartialDPSPropertyFile = {
42
+ button?: Partial<DPSPropertyFile['button']>;
43
+ prompt?: Partial<DPSPropertyFile['prompt']>;
44
+ subPrompt?: Partial<DPSPropertyFile['subPrompt']>;
45
+ subTitle?: Partial<DPSPropertyFile['subTitle']>;
46
+ title?: Partial<DPSPropertyFile['title']>;
47
+ text?: Partial<DPSPropertyFile['text']>;
48
+ error?: Partial<DPSPropertyFile['error']>;
49
+ option?: Partial<DPSPropertyFile['option']>;
46
50
  };
@@ -1,18 +1,11 @@
1
- import { CaProvinceCode } from 'types/CaProvinceCode';
2
- import { CountryCode } from 'types/CountryCode';
3
- import { UsStateCode } from 'types/UsStateCode';
4
1
  import { Locale } from '../../types';
5
- import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubPromptKey, SubTitleKey, TextKey } from '../types';
2
+ import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubOptionKey, SubPromptKey, SubTitleKey, TextKey } from '../types';
6
3
  export declare const getPromptText: (key: PromptKey, locale: Locale | undefined) => string;
7
4
  export declare const getSubPromptText: (key: SubPromptKey, locale: Locale | undefined) => string;
8
5
  export declare const getErrorText: (key: ErrorKey, locale: Locale | undefined) => string;
9
- export declare const getHintText: (key: string | undefined, locale: Locale | undefined) => string | undefined;
10
6
  export declare const getTextText: (key: TextKey, locale: Locale | undefined) => string;
11
7
  export declare const getTitleText: (key: string, locale: Locale | undefined) => string;
12
8
  export declare const getSubTitleText: (key: SubTitleKey, locale: Locale | undefined) => string;
13
9
  export declare const getButtonText: (key: ButtonKey, locale: Locale | undefined) => string;
14
10
  export declare const getOptionText: (key: OptionKey | undefined, locale: Locale | undefined) => string;
15
- export declare const getCountryText: (key: CountryCode, locale: Locale | undefined) => string;
16
- export declare const getUsStateText: (key: UsStateCode, locale: Locale | undefined) => string;
17
- export declare const getCaProvinceText: (key: CaProvinceCode, locale: Locale | undefined) => string;
18
- export declare const getMonthText: (key: string, locale: Locale | undefined) => string;
11
+ export declare const getSubOptionText: (key: SubOptionKey | undefined, locale: Locale | undefined) => string | undefined;
@@ -1,8 +1,2 @@
1
- import { CountryCode } from 'types/CountryCode';
2
- export declare const countryOptions: {
3
- value: CountryCode;
4
- }[];
5
- export declare const eUCountryOptions: {
6
- value: "NL" | "SK" | "AT" | "BE" | "BG" | "CY" | "CZ" | "DE" | "DK" | "EE" | "ES" | "FI" | "FR" | "GR" | "HR" | "HU" | "IE" | "IT" | "LT" | "LU" | "LV" | "MT" | "PL" | "PT" | "RO" | "SE" | "SI";
7
- }[];
1
+ export declare const euCountryCodes: string[];
8
2
  export declare const isEuCountryCode: (countryCode: string | undefined) => boolean;
@@ -1,3 +1,3 @@
1
1
  export declare const dayOptions: {
2
- 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";
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,4 +1,4 @@
1
- export type FatcaCode = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
2
1
  export declare const fatcaCodeOptions: {
3
- value: FatcaCode;
2
+ label: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
3
+ value: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
4
4
  }[];
@@ -1,15 +1,3 @@
1
- export declare const foreignAccountHolderAccountTypeOptions: 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
- }, {
12
- readonly value: "disregardedEntity";
13
- }];
14
- export declare const foreignAccountHolderAccountTypes: ("individual" | "other" | "trust" | "corporation" | "partnership" | "disregardedEntity")[];
15
- export type ForeignAccountHolderAccountType = (typeof foreignAccountHolderAccountTypeOptions)[number]["value"];
1
+ export declare const foreignAccountHolderAccountTypeOptions: {
2
+ value: "INDIVIDUAL" | "CORPORATION" | "PARTNERSHIP" | "TRUST" | "OTHER" | "DISREGARDED_ENTITY";
3
+ }[];