@taxbit/react-sdk 1.2.0-beta.1 → 1.2.0-beta.2

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 (203) hide show
  1. package/README.md +4 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/src/App.d.ts +1 -0
  4. package/dist/src/components/Address/Address.d.ts +1 -0
  5. package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +1 -0
  6. package/dist/src/components/ErrorBoundary/ErrorBoundary.d.ts +1 -0
  7. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +1 -0
  8. package/dist/src/components/Form/Form.d.ts +1 -0
  9. package/dist/src/components/InputStatus/InputStatus.d.ts +1 -0
  10. package/dist/src/components/JsxFromString/JsxFromString.d.ts +1 -0
  11. package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +1 -0
  12. package/dist/src/components/Row/Row.d.ts +1 -0
  13. package/dist/src/components/Section/Section.d.ts +1 -0
  14. package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +1 -0
  15. package/dist/src/contexts/QuestionnaireStep/getLocal.d.ts +1 -0
  16. package/dist/src/contexts/QuestionnaireStep/index.d.ts +1 -0
  17. package/dist/src/contexts/QuestionnaireStep/shiftControllingPerson.d.ts +1 -0
  18. package/dist/src/contexts/QuestionnaireStep/shiftResidence.d.ts +1 -0
  19. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStep.d.ts +1 -0
  20. package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +1 -0
  21. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +1 -0
  22. package/dist/src/hooks/useHandleError.d.ts +1 -0
  23. package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +1 -0
  24. package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +1 -0
  25. package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +1 -0
  26. package/dist/src/hooks/useTaxbit/types/w8.d.ts +1 -0
  27. package/dist/src/hooks/useTaxbit/types/w9.d.ts +1 -0
  28. package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +1 -0
  29. package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +1 -0
  30. package/dist/src/i18n/locales/de.d.ts +1 -0
  31. package/dist/src/i18n/locales/el-cy.d.ts +1 -0
  32. package/dist/src/i18n/locales/el.d.ts +1 -0
  33. package/dist/src/i18n/locales/en-gb.d.ts +1 -0
  34. package/dist/src/i18n/locales/en-nz.d.ts +1 -0
  35. package/dist/src/i18n/locales/en-us.d.ts +1 -0
  36. package/dist/src/i18n/locales/en.d.ts +1 -0
  37. package/dist/src/i18n/locales/es.d.ts +1 -0
  38. package/dist/src/i18n/locales/fr-ca.d.ts +1 -0
  39. package/dist/src/i18n/locales/fr.d.ts +1 -0
  40. package/dist/src/i18n/locales/lt.d.ts +1 -0
  41. package/dist/src/i18n/locales/mergePropertyFiles.d.ts +1 -0
  42. package/dist/src/i18n/locales/nl-be.d.ts +1 -0
  43. package/dist/src/i18n/locales/pl.d.ts +1 -0
  44. package/dist/src/i18n/locales/translation-missing.d.ts +1 -0
  45. package/dist/src/i18n/localizationFileMap.d.ts +1 -0
  46. package/dist/src/i18n/types/PropertyFile.d.ts +1 -0
  47. package/dist/src/i18n/utils/getText.d.ts +1 -0
  48. package/dist/src/index.d.ts +1 -0
  49. package/dist/src/lookups/activeNonFinancialEntityTypeOptions.d.ts +1 -1
  50. package/dist/src/lookups/controllingPersonRoleOptions.d.ts +1 -1
  51. package/dist/src/lookups/dayOptions.d.ts +1 -1
  52. package/dist/src/lookups/entityTypeOptions.d.ts +1 -1
  53. package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
  54. package/dist/src/lookups/financialInstitutionTypeOptions.d.ts +1 -1
  55. package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +1 -1
  56. package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +1 -1
  57. package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
  58. package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +1 -1
  59. package/dist/src/lookups/getTreatyCountryLimitationOnBenefitOptions.d.ts +1 -0
  60. package/dist/src/lookups/localeOptions.d.ts +1 -0
  61. package/dist/src/lookups/payeeCodeOptions.d.ts +1 -1
  62. package/dist/src/lookups/selfCertificationAccountTypeOptions.d.ts +1 -1
  63. package/dist/src/lookups/signatureCapacityOptions.d.ts +1 -1
  64. package/dist/src/lookups/tinNotRequiredReasonOptions.d.ts +1 -1
  65. package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
  66. package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
  67. package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
  68. package/dist/src/services/api.d.ts +1 -0
  69. package/dist/src/test/Wrapper.d.ts +1 -0
  70. package/dist/src/test/getWrapper.d.ts +1 -0
  71. package/dist/src/types/Progress.d.ts +1 -0
  72. package/dist/src/types/TaxDocumentation.d.ts +1 -0
  73. package/dist/src/ui/ActionButton/ActionButton.d.ts +1 -0
  74. package/dist/src/ui/Actions/Actions.d.ts +1 -0
  75. package/dist/src/ui/CheckBox/CheckBox.d.ts +1 -0
  76. package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -0
  77. package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +2 -1
  78. package/dist/src/ui/FormattedInput/FormattedInput.d.ts +1 -0
  79. package/dist/src/ui/HideShowButton/HideShowButton.d.ts +1 -0
  80. package/dist/src/ui/InputValue/InputValue.d.ts +1 -0
  81. package/dist/src/ui/MaskedContent/MaskedContent.d.ts +1 -0
  82. package/dist/src/ui/PasswordInput/PasswordInput.d.ts +1 -0
  83. package/dist/src/ui/RadioButtons/RadioButtons.d.ts +1 -0
  84. package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +1 -0
  85. package/dist/src/ui/Select/Select.d.ts +1 -0
  86. package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +1 -0
  87. package/dist/src/ui/TextArea/TextArea.d.ts +1 -0
  88. package/dist/src/ui/TextArea/__tests__/TextInput.test.d.ts +1 -0
  89. package/dist/src/ui/TextInput/TextInput.d.ts +1 -0
  90. package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +1 -0
  91. package/dist/src/ui/ToggleButton/ToggleButton.d.ts +1 -0
  92. package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +1 -0
  93. package/dist/src/utils/camelCaseKeys.d.ts +1 -0
  94. package/dist/src/utils/getFieldsState.d.ts +1 -0
  95. package/dist/src/utils/getFormStatus.d.ts +1 -0
  96. package/dist/src/utils/getLanguage.d.ts +1 -0
  97. package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -0
  98. package/dist/src/utils/promptKeyMapping/getAddressPromptKeyMap.d.ts +1 -0
  99. package/dist/src/utils/promptKeyMapping/getControllingPersonPromptKeyMap.d.ts +1 -0
  100. package/dist/src/utils/promptKeyMapping/getPromptKeyMap.d.ts +1 -0
  101. package/dist/src/utils/promptKeyMapping/getTaxResidencesPromptKeyMap.d.ts +1 -0
  102. package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -0
  103. package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +1 -0
  104. package/dist/src/utils/transformForClient/transformForClient.d.ts +1 -0
  105. package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +1 -0
  106. package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +1 -0
  107. package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +1 -0
  108. package/dist/src/utils/transformForClient/transformForClientTaxResidences.d.ts +1 -0
  109. package/dist/src/utils/transformForClient/transformForControllingPersons.d.ts +1 -0
  110. package/dist/src/utils/transformInbound/getActiveNonFinancialEntityType.d.ts +1 -0
  111. package/dist/src/utils/transformInbound/getEntityType.d.ts +1 -0
  112. package/dist/src/utils/transformInbound/getFinancialInstitutionType.d.ts +1 -0
  113. package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +1 -0
  114. package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +1 -0
  115. package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +1 -0
  116. package/dist/src/utils/transformInbound/getLLCClassification.d.ts +1 -0
  117. package/dist/src/utils/transformInbound/getSelfCertificationAccountType.d.ts +1 -0
  118. package/dist/src/utils/transformInbound/getUsAccountType.d.ts +1 -0
  119. package/dist/src/utils/transformInbound/transformInbound.d.ts +1 -0
  120. package/dist/src/utils/transformInbound/transformInboundAddress.d.ts +1 -0
  121. package/dist/src/utils/transformInbound/transformInboundControllingPersons.d.ts +1 -0
  122. package/dist/src/utils/transformInbound/transformInboundTaxResidencies.d.ts +1 -0
  123. package/dist/src/validations/getSteps.d.ts +1 -0
  124. package/dist/src/validations/invalidFields/getInvalidAddressFields.d.ts +1 -0
  125. package/dist/src/validations/invalidFields/getInvalidControllingPersonsFields.d.ts +1 -0
  126. package/dist/src/validations/invalidFields/getInvalidFields.d.ts +1 -0
  127. package/dist/src/validations/invalidFields/getInvalidTaxResidencyFields.d.ts +1 -0
  128. package/dist/src/validations/invalidFields/invalidFieldRules.d.ts +1 -0
  129. package/dist/src/validations/requiredFields/getRequiredAddressFields.d.ts +1 -0
  130. package/dist/src/validations/requiredFields/getRequiredControllingPersonFields.d.ts +1 -0
  131. package/dist/src/validations/requiredFields/getRequiredFields.d.ts +1 -0
  132. package/dist/src/validations/requiredFields/getRequiredTaxResidenceFields.d.ts +1 -0
  133. package/dist/src/validations/supportedFields/getSupportedAddressFields.d.ts +1 -0
  134. package/dist/src/validations/supportedFields/getSupportedControllingPersonFields.d.ts +1 -0
  135. package/dist/src/validations/supportedFields/getSupportedFields.d.ts +1 -0
  136. package/dist/src/validations/supportedFields/getSupportedTaxResidenceFields.d.ts +1 -0
  137. package/dist/src/validations/visibleFields/getVisibleAddressFields.d.ts +1 -0
  138. package/dist/src/validations/visibleFields/getVisibleControllingPersonFields.d.ts +1 -0
  139. package/dist/src/validations/visibleFields/getVisibleFields.d.ts +1 -0
  140. package/dist/src/validations/visibleFields/getVisibleTaxResidenceFields.d.ts +1 -0
  141. package/dist/src/widgets/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +1 -0
  142. package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +1 -0
  143. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +1 -0
  144. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +1 -0
  145. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +1 -0
  146. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +1 -0
  147. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +1 -0
  148. package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +1 -0
  149. package/dist/src/wizard/AddressInput/AddressInput.d.ts +1 -0
  150. package/dist/src/wizard/ControllingPersonInput/ControllingPersonInput.d.ts +1 -0
  151. package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +1 -0
  152. package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +1 -0
  153. package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +1 -0
  154. package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +1 -0
  155. package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +1 -0
  156. package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +1 -0
  157. package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +1 -0
  158. package/dist/src/wizard/RowInput/PercentInputRow/PercentInputRow.d.ts +1 -0
  159. package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +1 -0
  160. package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +1 -0
  161. package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +1 -0
  162. package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +1 -0
  163. package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +1 -0
  164. package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +1 -0
  165. package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +1 -0
  166. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +1 -0
  167. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +1 -0
  168. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +1 -0
  169. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +1 -0
  170. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +1 -0
  171. package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +1 -0
  172. package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonDetails/ControllingPersonDetails.d.ts +1 -0
  173. package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +1 -0
  174. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +1 -0
  175. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +1 -0
  176. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +1 -0
  177. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderClassificationSummary.d.ts +1 -0
  178. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderForeignClassificationSummary.d.ts +2 -1
  179. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderSelfCertificationClassificationSummary.d.ts +1 -0
  180. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderUsClassificationSummary.d.ts +1 -0
  181. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonRoleInputValue.d.ts +1 -0
  182. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonSummary.d.ts +1 -0
  183. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonTypeSummary.d.ts +1 -0
  184. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +1 -0
  185. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerClassificationSummary.d.ts +1 -0
  186. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerForeignClassificationSummary.d.ts +1 -0
  187. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerUsClassificationSummary.d.ts +1 -0
  188. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +1 -0
  189. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/TaxResidency/TaxResidenciesSummary.d.ts +1 -0
  190. package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +1 -0
  191. package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/W8imyInstructions.d.ts +1 -0
  192. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts +1 -0
  193. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.AccountClassification.test.d.ts +1 -0
  194. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.ControllingPerson.test.d.ts +1 -0
  195. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.NameAndAddress.test.d.ts +1 -0
  196. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.Summary.test.d.ts +1 -0
  197. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.TaxResidencies.test.d.ts +1 -0
  198. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +1 -0
  199. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts +1 -0
  200. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.treatyClaims.test.d.ts +1 -0
  201. package/dist/taxbit-react-sdk.js +3669 -1488
  202. package/dist/taxbit-react-sdk.umd.cjs +1 -1
  203. package/package.json +1 -1
package/README.md CHANGED
@@ -322,6 +322,10 @@ type QuestionnaireType = 'DPS' | 'W-FORM' | 'SELF-CERT';
322
322
 
323
323
  ## Changelog
324
324
 
325
+ ### Version 1.2.0-beta.2
326
+
327
+ 1. React 17 issue fixed.
328
+
325
329
  ### Version 1.2.0-beta.0
326
330
 
327
331
  1. Self-Certification support
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export {}
1
+ export * from './src'
package/dist/src/App.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  export declare const App: () => React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  type AddressParts = {
3
4
  street?: string;
4
5
  street2?: string;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  export declare const ErrorAlert: ({ message }: {
3
4
  message?: string;
4
5
  }) => React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { default as React, Component, ReactNode } from 'react';
2
+
2
3
  interface Props {
3
4
  children?: ReactNode;
4
5
  }
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types';
3
+
3
4
  export declare const ErrorMessage: ({ name }: {
4
5
  name: TaxDocumentationKey;
5
6
  }) => React.JSX.Element | null;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  type FormProps = {
3
4
  title: string;
4
5
  subTitle?: string;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  export declare const InputStatus: ({ children, className, }: {
3
4
  className?: string;
4
5
  children: React.ReactNode;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  export declare const JsxFromString: ({ val }: {
3
4
  val?: string;
4
5
  }) => React.ReactNode[] | null;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { Progress } from '../../types';
3
+
3
4
  export declare const ProgressStatus: ({ progress }: {
4
5
  progress?: Progress;
5
6
  }) => React.JSX.Element | null;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
+
3
4
  export type RowProps = {
4
5
  label?: string;
5
6
  subLabel?: string;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  type SectionProps = {
3
4
  title?: string;
4
5
  subTitle?: string;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  type FormUIProviderProps = {
3
4
  children: React.ReactNode;
4
5
  };
@@ -1,5 +1,6 @@
1
1
  import { ButtonKey, ErrorKey, PromptKey, SubPromptKey, SubTitleKey, TextKey } from '../../i18n/types';
2
2
  import { Locale, QuestionnaireProp, TaxDocumentation, TaxDocumentationKey } from '../../types';
3
+
3
4
  export declare const getLocal: (fields: TaxDocumentation, language: Locale, questionnaire: QuestionnaireProp) => {
4
5
  getLocalText: (key: TextKey) => string;
5
6
  getLocalTitle: (key: string) => string;
@@ -1,4 +1,5 @@
1
1
  import { TaxDocumentationErrorFile, TaxDocumentationPropertyFile } from './useQuestionnaireStep';
2
+
2
3
  export * from './QuestionnaireStepProvider';
3
4
  export * from './useQuestionnaireStepContext';
4
5
  export { TaxDocumentationErrorFile, TaxDocumentationPropertyFile };
@@ -1,2 +1,3 @@
1
1
  import { TaxDocumentation } from '../../types';
2
+
2
3
  export declare const shiftControllingPerson: (fields: TaxDocumentation, index: 1 | 2 | 3 | 4) => TaxDocumentation;
@@ -1,2 +1,3 @@
1
1
  import { TaxDocumentation } from '../../types';
2
+
2
3
  export declare const shiftResidence: (fields: TaxDocumentation, prefix: string, index: string) => TaxDocumentation;
@@ -1,6 +1,7 @@
1
1
  import { ErrorKey } from 'i18n/types';
2
2
  import { Yes } from 'types';
3
3
  import { TaxDocumentation, TaxDocumentationKey } from 'types/TaxDocumentation';
4
+
4
5
  export type TaxDocumentationPropertyFile = {
5
6
  [key in TaxDocumentationKey]: boolean;
6
7
  };
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { UseTaxDocumentationProps } from './useTaxDocumentation';
3
+
3
4
  type TaxDocumentationProviderProps = UseTaxDocumentationProps & {
4
5
  children: React.ReactNode;
5
6
  treatyClaims?: boolean;
@@ -1,6 +1,7 @@
1
1
  import { ClientTaxDocumentation } from '@taxbit/utilities';
2
2
  import { InputStep, Locale, Progress, QuestionnaireProp, TaxDocumentation } from 'types';
3
3
  import { ExternalValidations } from 'types/client';
4
+
4
5
  type InterviewConfig = {
5
6
  minimumAge: number;
6
7
  };
@@ -1,4 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
+
2
3
  export declare const useHandleError: (onError: ((error: Error) => void | Promise<void>) | undefined, setError?: Dispatch<SetStateAction<Error | undefined>>) => {
3
4
  handleError: (error: Error) => void;
4
5
  };
@@ -1,2 +1,3 @@
1
1
  import { SignedClientTaxDocumentation } from '@taxbit/utilities';
2
+
2
3
  export declare const clientTaxDocumentation: SignedClientTaxDocumentation;
@@ -1,2 +1,3 @@
1
1
  import { SignedDatedComprehensiveTaxDocumentation } from '@taxbit/utilities';
2
+
2
3
  export declare const serverTaxDocumentation: SignedDatedComprehensiveTaxDocumentation;
@@ -1,4 +1,5 @@
1
1
  import { SignedDatedComprehensiveTaxDocumentation } from '@taxbit/utilities';
2
+
2
3
  export type Comprehensive = {
3
4
  account_holder: SignedDatedComprehensiveTaxDocumentation['account_holder'];
4
5
  regarded_owner?: SignedDatedComprehensiveTaxDocumentation['regarded_owner'];
@@ -1,5 +1,6 @@
1
1
  import { Comprehensive } from './comprehensive';
2
2
  import { W9 } from './w9';
3
+
3
4
  export type W8 = {
4
5
  name?: string;
5
6
  country?: string;
@@ -1,5 +1,6 @@
1
1
  import { Comprehensive } from './comprehensive';
2
2
  import { W8 } from './w8';
3
+
3
4
  export type W9 = {
4
5
  name?: string;
5
6
  tin?: string;
@@ -1,4 +1,5 @@
1
1
  import { QuestionnaireProp } from 'types';
2
+
2
3
  type UseTaxbitProps = {
3
4
  bearerToken: string;
4
5
  questionnaire: QuestionnaireProp;
@@ -1,6 +1,7 @@
1
1
  import { SignedClientTaxDocumentation } from '@taxbit/utilities';
2
2
  import { QuestionnaireProp } from '../../types';
3
3
  import { ClientTaxDocumentationStatus } from '../../types/client';
4
+
4
5
  type UseTaxbitStatusProps = {
5
6
  bearerToken?: string;
6
7
  onError?: (error: Error) => void | Promise<void>;
@@ -1,3 +1,4 @@
1
1
  import { ForeignPropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const deTranslations: ForeignPropertyFile;
3
4
  export declare const de: import('../types/PropertyFile').PropertyFile;
@@ -1,3 +1,4 @@
1
1
  import { PartialDPSPropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const elCyTranslations: PartialDPSPropertyFile;
3
4
  export declare const elCy: import('../types/PropertyFile').PropertyFile;
@@ -1,3 +1,4 @@
1
1
  import { ForeignPropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const elTranslations: ForeignPropertyFile;
3
4
  export declare const el: import('../types/PropertyFile').PropertyFile;
@@ -1,2 +1,3 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const enGb: PropertyFile;
@@ -1,2 +1,3 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const enNz: PropertyFile;
@@ -1,2 +1,3 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const enUs: PropertyFile;
@@ -1,2 +1,3 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const en: PropertyFile;
@@ -1,2 +1,3 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const es: PropertyFile;
@@ -1,2 +1,3 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const frCa: PropertyFile;
@@ -1,2 +1,3 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const fr: PropertyFile;
@@ -1,3 +1,4 @@
1
1
  import { ForeignPropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const ltTranslations: ForeignPropertyFile;
3
4
  export declare const lt: import('../types/PropertyFile').PropertyFile;
@@ -1,4 +1,5 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  type DeepPartial<T> = T extends object ? {
3
4
  [P in keyof T]?: DeepPartial<T[P]>;
4
5
  } : T;
@@ -1,3 +1,4 @@
1
1
  import { PartialDPSPropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const nlBeTranslations: PartialDPSPropertyFile;
3
4
  export declare const nlBe: import('../types/PropertyFile').PropertyFile;
@@ -1,3 +1,4 @@
1
1
  import { ForeignPropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const plTranslations: ForeignPropertyFile;
3
4
  export declare const pl: import('../types/PropertyFile').PropertyFile;
@@ -1,4 +1,5 @@
1
1
  import { PropertyFile } from '../types/PropertyFile';
2
+
2
3
  export declare const translationRequired = "translation required";
3
4
  export declare const translationRequiredForDPS = "translation required for DPS";
4
5
  export declare const translationRequiredForWForm = "translation required for W-Form";
@@ -1,5 +1,6 @@
1
1
  import { Locale } from 'types';
2
2
  import { PropertyFile } from './types/PropertyFile';
3
+
3
4
  type LocalizationFile = {
4
5
  [locale in Locale]: PropertyFile;
5
6
  };
@@ -1,4 +1,5 @@
1
1
  import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubOptionKey, SubPromptKey, SubTitleKey, TextKey, TitleKey } from './LocalizationKey';
2
+
2
3
  export type PropertyFile = {
3
4
  button: {
4
5
  [key in ButtonKey]: string;
@@ -1,5 +1,6 @@
1
1
  import { Locale } from '../../types';
2
2
  import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubOptionKey, SubPromptKey, SubTitleKey, TextKey } from '../types';
3
+
3
4
  export declare const getPromptText: (key: PromptKey, locale: Locale | undefined) => string;
4
5
  export declare const getSubPromptText: (key: SubPromptKey, locale: Locale | undefined) => string;
5
6
  export declare const getErrorText: (key: ErrorKey, locale: Locale | undefined) => string;
@@ -1,4 +1,5 @@
1
1
  import { ClientTaxDocumentation } from '@taxbit/utilities';
2
+
2
3
  export * from './hooks/useTaxbit/useTaxbit';
3
4
  export * from './types/client/ClientTaxDocumentationStatus';
4
5
  export * from './types/Locale';
@@ -1,3 +1,3 @@
1
1
  export declare const activeNonFinancialEntityTypeOptions: {
2
- value: "OTHER" | "INTERNATIONAL_ORGANIZATION" | "GOVERNMENT_ENTITY" | "PUBLIC_CORPORATION";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const getControllingPersonRoleOptions: (entityType: string | undefined) => {
2
- value: "OTHER" | "SETTLOR" | "TRUSTEE" | "PROTECTOR" | "BENEFICIARY" | "SETTLOR_EQUIVALENT" | "TRUSTEE_EQUIVALENT" | "PROTECTOR_EQUIVALENT" | "BENEFICIARY_EQUIVALENT" | "OTHER_EQUIVALENT" | "OWNER" | "OTHER_MEANS" | "SENIOR_MANAGING_OFFICIAL";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const dayOptions: {
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";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const entityTypeOptions: {
2
- value: "OTHER" | "TRUST" | "SIMILAR_TO_TRUST";
2
+ value: T;
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: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
3
+ value: T;
4
4
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const financialInstitutionTypeOptions: {
2
- value: "DEPOSITORY_INSTITUTION" | "CUSTODIAL_INSTITUTION" | "INSURANCE_COMPANY" | "INVESTMENT_ENTITY";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const foreignAccountHolderAccountTypeOptions: {
2
- value: "INDIVIDUAL" | "PARTNERSHIP" | "OTHER" | "DISREGARDED_ENTITY" | "CORPORATION" | "TRUST";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const foreignOtherClassificationOptions: {
2
- value: "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const foreignRegardedOwnerAccountTypeOptions: {
2
- value: "INDIVIDUAL" | "PARTNERSHIP" | "OTHER" | "CORPORATION" | "TRUST";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const foreignTrustClassificationOptions: {
2
- value: "SIMPLE_TRUST" | "COMPLEX_TRUST" | "GRANTOR_TRUST";
2
+ value: T;
3
3
  }[];
@@ -1,4 +1,5 @@
1
1
  import { LimitationOnBenefit } from '@taxbit/utilities';
2
+
2
3
  export declare const getTreatyCountryLimitationOnBenefitOptions: (country?: string) => Array<{
3
4
  value: LimitationOnBenefit;
4
5
  }>;
@@ -1,4 +1,5 @@
1
1
  import { Locale } from 'types';
2
+
2
3
  export declare const localeDPSOptions: {
3
4
  value: Locale;
4
5
  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: "1" | "2" | "3" | "4" | "5" | "10" | "11" | "12" | "13" | "6" | "7" | "8" | "9";
3
+ value: T;
4
4
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const selfCertificationAccountTypeOptions: {
2
- value: "FINANCIAL_INSTITUTION" | "ACTIVE_NON_FINANCIAL_ENTITY" | "PASSIVE_NON_FINANCIAL_ENTITY";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const signatureCapacityOptions: {
2
- value: "OFFICER" | "EXECUTOR" | "OTHER_CAPACITY";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const tinNotRequiredReasonOptions: {
2
- value: "OTHER" | "NOT_ISSUED" | "NOT_REQUIRED";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const usAccountHolderAccountTypeOptions: {
2
- value: "INDIVIDUAL" | "SOLE_PROPRIETOR" | "LLC" | "SM_LLC" | "C_CORPORATION" | "S_CORPORATION" | "PARTNERSHIP" | "TRUST_ESTATE" | "OTHER" | "DISREGARDED_ENTITY";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const usLlcAccountTypeOptions: {
2
- value: "C_CORPORATION" | "S_CORPORATION" | "PARTNERSHIP";
2
+ value: T;
3
3
  }[];
@@ -1,3 +1,3 @@
1
1
  export declare const usRegardedOwnerAccountTypeOptions: {
2
- value: "INDIVIDUAL" | "LLC" | "C_CORPORATION" | "S_CORPORATION" | "PARTNERSHIP" | "TRUST_ESTATE" | "OTHER";
2
+ value: T;
3
3
  }[];
@@ -1,4 +1,5 @@
1
1
  import { QuestionnaireProp } from 'types';
2
+
2
3
  export declare const TAX_DOCUMENTATION_SUBMISSIONS_PATH = "tax-documentation/submissions";
3
4
  export declare const TAX_DOCUMENTATION_STATUS_PATH = "tax-documentation-status";
4
5
  export declare const TAX_DOCUMENT_PATH = "tax-documentation/document";
@@ -1,6 +1,7 @@
1
1
  import { ClientTaxDocumentation } from '@taxbit/utilities';
2
2
  import { default as React } from 'react';
3
3
  import { QuestionnaireProp } from '../types';
4
+
4
5
  export declare const Wrapper: React.FC<React.PropsWithChildren & {
5
6
  initialData?: ClientTaxDocumentation;
6
7
  questionnaire?: QuestionnaireProp;
@@ -1,4 +1,5 @@
1
1
  import { ClientTaxDocumentation } from '@taxbit/utilities';
2
2
  import { default as React } from 'react';
3
3
  import { QuestionnaireProp } from '../types';
4
+
4
5
  export declare const getWrapper: (initialData?: ClientTaxDocumentation, questionnaire?: QuestionnaireProp) => ({ children }: React.PropsWithChildren) => React.ReactNode | Promise<React.ReactNode>;
@@ -1,5 +1,6 @@
1
1
  import { Locale } from './Locale';
2
2
  import { StepId } from './StepId';
3
+
3
4
  export type Progress = {
4
5
  language: Locale;
5
6
  percentComplete: number;
@@ -1,6 +1,7 @@
1
1
  import { ActiveNonFinancialEntityType, EntityType, FinancialInstitutionType, ForeignAccountHolderAccountType, ForeignOtherClassification, ForeignRegardedOwnerAccountType, ForeignTrustClassification, SelfCertificationAccountType, UsAccountHolderAccountType, UsLLCAccountType, UsRegardedOwnerAccountType } from '@taxbit/utilities';
2
2
  import { Yes } from './Yes';
3
3
  import { YesNo } from './YesNo';
4
+
4
5
  export type AccountHolderClassificationData = {
5
6
  accountHolderIsIndividual?: YesNo;
6
7
  accountHolderUsPerson?: YesNo;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
+
3
4
  export type ActionButtonProps = {
4
5
  name: TaxDocumentationKey;
5
6
  onClick: () => void;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  type ActionsProps = {
3
4
  onBack?: (data: unknown) => void;
4
5
  onNext?: (data: unknown) => void;
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
3
  import { Yes } from 'types/Yes';
4
+
4
5
  export type CheckBoxProps = {
5
6
  label: boolean;
6
7
  subLabel?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
+
3
4
  export type DateOfBirthInputProps = {
4
5
  name: TaxDocumentationKey;
5
6
  className?: string;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types';
3
+
3
4
  export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
4
5
  mm: string;
5
6
  dd: string;
@@ -8,7 +9,7 @@ export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
8
9
  handleMonthChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
9
10
  handleYearChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
10
11
  dayOptions: {
11
- value: "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31";
12
+ value: T;
12
13
  }[];
13
14
  birthYearOptions: {
14
15
  value: number;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from '../../types';
3
+
3
4
  type FormattedInputProps = {
4
5
  name: TaxDocumentationKey;
5
6
  format: (s: string) => string;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  export type HideShowButtonProps = {
3
4
  onClick: () => void;
4
5
  };
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
+
3
4
  export type InputValueProps = {
4
5
  name: TaxDocumentationKey;
5
6
  value?: string;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from '../../types';
3
+
3
4
  export declare const MaskedContent: ({ name }: {
4
5
  name: TaxDocumentationKey;
5
6
  }) => React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TaxDocumentationKey } from 'types';
3
+
3
4
  export type PasswordInputProps = {
4
5
  name: TaxDocumentationKey;
5
6
  className?: string;
@@ -1,6 +1,7 @@
1
1
  import { OptionKey } from 'i18n/types';
2
2
  import { default as React } from 'react';
3
3
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
4
+
4
5
  type RadioOption = {
5
6
  value: string;
6
7
  label?: string;
@@ -1,6 +1,7 @@
1
1
  import { OptionKey } from 'i18n/types';
2
2
  import { default as React } from 'react';
3
3
  import { TaxDocumentationKey } from 'types/TaxDocumentation';
4
+
4
5
  type ValueOption = {
5
6
  value: string;
6
7
  label?: string;