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

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 (235) hide show
  1. package/README.md +13 -4
  2. package/dist/index.d.ts +1 -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/Form/Form.d.ts +0 -1
  9. package/dist/src/components/InputStatus/InputStatus.d.ts +0 -1
  10. package/dist/src/components/JsxFromString/JsxFromString.d.ts +0 -1
  11. package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +0 -1
  12. package/dist/src/components/Row/Row.d.ts +0 -1
  13. package/dist/src/components/Section/Section.d.ts +0 -1
  14. package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +0 -1
  15. package/dist/src/contexts/QuestionnaireStep/getLocal.d.ts +4 -4
  16. package/dist/src/contexts/QuestionnaireStep/index.d.ts +0 -1
  17. package/dist/src/contexts/QuestionnaireStep/shiftControllingPerson.d.ts +2 -0
  18. package/dist/src/contexts/QuestionnaireStep/shiftResidence.d.ts +1 -2
  19. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStep.d.ts +2 -2
  20. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +4 -2
  21. package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +0 -1
  22. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +5 -6
  23. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +6 -6
  24. package/dist/src/hooks/useHandleError.d.ts +0 -1
  25. package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +0 -1
  26. package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +0 -1
  27. package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +0 -1
  28. package/dist/src/hooks/useTaxbit/types/w8.d.ts +0 -1
  29. package/dist/src/hooks/useTaxbit/types/w9.d.ts +0 -1
  30. package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +2 -3
  31. package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +2 -3
  32. package/dist/src/i18n/locales/de.d.ts +2 -3
  33. package/dist/src/i18n/locales/el-cy.d.ts +0 -1
  34. package/dist/src/i18n/locales/el.d.ts +2 -3
  35. package/dist/src/i18n/locales/en-gb.d.ts +0 -1
  36. package/dist/src/i18n/locales/en-nz.d.ts +0 -1
  37. package/dist/src/i18n/locales/en-us.d.ts +0 -1
  38. package/dist/src/i18n/locales/en.d.ts +0 -1
  39. package/dist/src/i18n/locales/es.d.ts +0 -1
  40. package/dist/src/i18n/locales/fr-ca.d.ts +0 -1
  41. package/dist/src/i18n/locales/fr.d.ts +0 -1
  42. package/dist/src/i18n/locales/ga.d.ts +1 -3
  43. package/dist/src/i18n/locales/lt.d.ts +2 -3
  44. package/dist/src/i18n/locales/mergePropertyFiles.d.ts +0 -1
  45. package/dist/src/i18n/locales/nl-be.d.ts +0 -1
  46. package/dist/src/i18n/locales/pl.d.ts +2 -3
  47. package/dist/src/i18n/locales/translation-missing.d.ts +0 -1
  48. package/dist/src/i18n/localizationFileMap.d.ts +0 -1
  49. package/dist/src/i18n/types/LocalizationKey.d.ts +6 -6
  50. package/dist/src/i18n/types/PropertyFile.d.ts +15 -15
  51. package/dist/src/i18n/utils/getText.d.ts +0 -1
  52. package/dist/src/index.d.ts +2 -3
  53. package/dist/src/lookups/activeNonFinancialEntityTypeOptions.d.ts +3 -0
  54. package/dist/src/lookups/controllingPersonRoleOptions.d.ts +3 -0
  55. package/dist/src/lookups/dayOptions.d.ts +1 -1
  56. package/dist/src/lookups/entityTypeOptions.d.ts +3 -0
  57. package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
  58. package/dist/src/lookups/financialInstitutionTypeOptions.d.ts +3 -0
  59. package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +1 -1
  60. package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +1 -1
  61. package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
  62. package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +1 -1
  63. package/dist/src/lookups/getTreatyCountryLimitationOnBenefitOptions.d.ts +0 -1
  64. package/dist/src/lookups/index.d.ts +7 -0
  65. package/dist/src/lookups/localeOptions.d.ts +0 -1
  66. package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
  67. package/dist/src/lookups/selfCertificationAccountTypeOptions.d.ts +3 -0
  68. package/dist/src/lookups/signatureCapacityOptions.d.ts +3 -0
  69. package/dist/src/lookups/tinNotRequiredReasonOptions.d.ts +3 -0
  70. package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
  71. package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
  72. package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
  73. package/dist/src/services/api.d.ts +5 -3
  74. package/dist/src/services/msw.d.ts +33 -0
  75. package/dist/src/test/Wrapper.d.ts +2 -3
  76. package/dist/src/test/getWrapper.d.ts +2 -3
  77. package/dist/src/test/utils/helpers.d.ts +10 -0
  78. package/dist/src/types/InputStep.d.ts +1 -1
  79. package/dist/src/types/Progress.d.ts +0 -1
  80. package/dist/src/types/QuestionnaireProp.d.ts +1 -0
  81. package/dist/src/types/StepId.d.ts +1 -1
  82. package/dist/src/types/TaxDocumentation.d.ts +87 -51
  83. package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +4 -0
  84. package/dist/src/types/index.d.ts +1 -1
  85. package/dist/src/types/server/TaxDocumentationStatus.d.ts +4 -0
  86. package/dist/src/ui/ActionButton/ActionButton.d.ts +0 -1
  87. package/dist/src/ui/Actions/Actions.d.ts +0 -1
  88. package/dist/src/ui/CheckBox/CheckBox.d.ts +0 -1
  89. package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +0 -1
  90. package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +1 -2
  91. package/dist/src/ui/FormattedInput/FormattedInput.d.ts +0 -1
  92. package/dist/src/ui/HideShowButton/HideShowButton.d.ts +0 -1
  93. package/dist/src/ui/InputValue/InputValue.d.ts +2 -2
  94. package/dist/src/ui/MaskedContent/MaskedContent.d.ts +0 -1
  95. package/dist/src/ui/PasswordInput/PasswordInput.d.ts +0 -1
  96. package/dist/src/ui/RadioButtons/RadioButtons.d.ts +0 -1
  97. package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -1
  98. package/dist/src/ui/Select/Select.d.ts +0 -2
  99. package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +0 -1
  100. package/dist/src/ui/TextArea/TextArea.d.ts +0 -1
  101. package/dist/src/ui/TextArea/__tests__/TextInput.test.d.ts +0 -1
  102. package/dist/src/ui/TextInput/TextInput.d.ts +0 -1
  103. package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +0 -1
  104. package/dist/src/ui/ToggleButton/ToggleButton.d.ts +0 -1
  105. package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +0 -1
  106. package/dist/src/utils/camelCaseKeys.d.ts +0 -1
  107. package/dist/src/utils/getFieldsState.d.ts +7 -3
  108. package/dist/src/utils/getFormStatus.d.ts +2 -2
  109. package/dist/src/utils/getLanguage.d.ts +2 -3
  110. package/dist/src/utils/index.d.ts +1 -1
  111. package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +0 -1
  112. package/dist/src/utils/promptKeyMapping/getAddressPromptKeyMap.d.ts +5 -0
  113. package/dist/src/utils/promptKeyMapping/getControllingPersonPromptKeyMap.d.ts +3 -0
  114. package/dist/src/utils/{getPromptKeyMap.d.ts → promptKeyMapping/getPromptKeyMap.d.ts} +0 -1
  115. package/dist/src/utils/promptKeyMapping/getTaxResidencesPromptKeyMap.d.ts +5 -0
  116. package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +0 -1
  117. package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +0 -1
  118. package/dist/src/utils/transformForClient/transformForClient.d.ts +2 -3
  119. package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +0 -1
  120. package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +4 -33
  121. package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +0 -1
  122. package/dist/src/utils/transformForClient/transformForClientTaxResidences.d.ts +10 -0
  123. package/dist/src/utils/transformForClient/transformForControllingPersons.d.ts +3 -0
  124. package/dist/src/utils/transformInbound/getActiveNonFinancialEntityType.d.ts +2 -0
  125. package/dist/src/utils/transformInbound/getCountryCode.d.ts +1 -0
  126. package/dist/src/utils/transformInbound/getEntityType.d.ts +2 -0
  127. package/dist/src/utils/transformInbound/getFinancialInstitutionType.d.ts +2 -0
  128. package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +0 -1
  129. package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +0 -1
  130. package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +0 -1
  131. package/dist/src/utils/transformInbound/getLLCClassification.d.ts +0 -1
  132. package/dist/src/utils/transformInbound/getSelfCertificationAccountType.d.ts +2 -0
  133. package/dist/src/utils/transformInbound/getUsAccountType.d.ts +0 -1
  134. package/dist/src/utils/transformInbound/transformInbound.d.ts +2 -3
  135. package/dist/src/utils/transformInbound/transformInboundAddress.d.ts +5 -0
  136. package/dist/src/utils/transformInbound/transformInboundControllingPersons.d.ts +439 -0
  137. package/dist/src/utils/transformInbound/transformInboundTaxResidencies.d.ts +6 -0
  138. package/dist/src/validations/getSteps.d.ts +2 -3
  139. package/dist/src/validations/index.d.ts +5 -5
  140. package/dist/src/validations/invalidFields/getInvalidAddressFields.d.ts +4 -0
  141. package/dist/src/validations/invalidFields/getInvalidControllingPersonsFields.d.ts +2 -0
  142. package/dist/src/validations/invalidFields/getInvalidFields.d.ts +4 -0
  143. package/dist/src/validations/invalidFields/getInvalidTaxResidencyFields.d.ts +4 -0
  144. package/dist/src/validations/{invalidFieldRules.d.ts → invalidFields/invalidFieldRules.d.ts} +1 -2
  145. package/dist/src/validations/requiredFields/getRequiredAddressFields.d.ts +6 -0
  146. package/dist/src/validations/requiredFields/getRequiredControllingPersonFields.d.ts +3 -0
  147. package/dist/src/validations/requiredFields/getRequiredFields.d.ts +3 -0
  148. package/dist/src/validations/requiredFields/getRequiredTaxResidenceFields.d.ts +6 -0
  149. package/dist/src/validations/supportedFields/__tests__/generateStrings.d.ts +5 -0
  150. package/dist/src/validations/supportedFields/getSupportedAddressFields.d.ts +7 -0
  151. package/dist/src/validations/supportedFields/getSupportedControllingPersonFields.d.ts +6 -0
  152. package/dist/src/validations/supportedFields/getSupportedFields.d.ts +3 -0
  153. package/dist/src/validations/supportedFields/getSupportedTaxResidenceFields.d.ts +7 -0
  154. package/dist/src/validations/supportedFields/getSupportedTreatyClaimFields.d.ts +3 -0
  155. package/dist/src/validations/visibleFields/getVisibleAddressFields.d.ts +4 -0
  156. package/dist/src/validations/visibleFields/getVisibleControllingPersonFields.d.ts +3 -0
  157. package/dist/src/validations/visibleFields/getVisibleFields.d.ts +3 -0
  158. package/dist/src/validations/visibleFields/getVisibleTaxResidenceFields.d.ts +8 -0
  159. package/dist/src/{entry → widgets}/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +3 -4
  160. package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +0 -1
  161. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +0 -1
  162. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +0 -1
  163. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +0 -1
  164. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +0 -1
  165. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +0 -1
  166. package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +2 -3
  167. package/dist/src/wizard/AddressInput/AddressInput.d.ts +1 -2
  168. package/dist/src/wizard/ControllingPersonInput/ControllingPersonInput.d.ts +10 -0
  169. package/dist/src/wizard/ControllingPersonInput/index.d.ts +1 -0
  170. package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +2 -3
  171. package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +2 -2
  172. package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +1 -2
  173. package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +0 -1
  174. package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -1
  175. package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +0 -1
  176. package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +0 -1
  177. package/dist/src/wizard/RowInput/PercentInputRow/PercentInputRow.d.ts +8 -0
  178. package/dist/src/wizard/RowInput/PercentInputRow/index.d.ts +1 -0
  179. package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -1
  180. package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +2 -2
  181. package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +0 -1
  182. package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +0 -1
  183. package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +0 -1
  184. package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -1
  185. package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +0 -1
  186. package/dist/src/wizard/RowInput/index.d.ts +1 -0
  187. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +0 -1
  188. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +0 -1
  189. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +0 -1
  190. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -1
  191. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +0 -1
  192. package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +0 -1
  193. package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonDetails/ControllingPersonDetails.d.ts +6 -0
  194. package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonDetails/index.d.ts +1 -0
  195. package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +0 -1
  196. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -1
  197. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -1
  198. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +0 -1
  199. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderClassificationSummary.d.ts +2 -0
  200. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderForeignClassificationSummary.d.ts +5 -0
  201. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderSelfCertificationClassificationSummary.d.ts +5 -0
  202. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderUsClassificationSummary.d.ts +5 -0
  203. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonRoleInputValue.d.ts +6 -0
  204. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonSummary.d.ts +6 -0
  205. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonTypeSummary.d.ts +6 -0
  206. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +0 -1
  207. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerClassificationSummary.d.ts +2 -0
  208. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerForeignClassificationSummary.d.ts +5 -0
  209. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerUsClassificationSummary.d.ts +5 -0
  210. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +0 -1
  211. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/TaxResidency/TaxResidenciesSummary.d.ts +10 -0
  212. package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +0 -1
  213. package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/W8imyInstructions.d.ts +0 -1
  214. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts +0 -1
  215. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.AccountClassification.test.d.ts +0 -0
  216. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.ControllingPerson.test.d.ts +0 -0
  217. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.NameAndAddress.test.d.ts +0 -0
  218. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.Summary.test.d.ts +0 -0
  219. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.TaxResidencies.test.d.ts +0 -0
  220. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +0 -1
  221. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts +0 -1
  222. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.treatyClaims.test.d.ts +0 -1
  223. package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +1 -0
  224. package/dist/taxbit-react-sdk.js +7290 -6619
  225. package/dist/taxbit-react-sdk.umd.cjs +1 -1
  226. package/package.json +7 -6
  227. package/style/basic.css +4 -0
  228. package/style/inline.css +1 -0
  229. package/dist/src/types/Questionnaire.d.ts +0 -1
  230. package/dist/src/utils/transformForClient/transformForClientTaxResidenceFields.d.ts +0 -7
  231. package/dist/src/validations/getInvalidFields.d.ts +0 -5
  232. package/dist/src/validations/getRequiredFields.d.ts +0 -4
  233. package/dist/src/validations/getSupportedFields.d.ts +0 -7
  234. package/dist/src/validations/getVisibleFields.d.ts +0 -4
  235. /package/dist/src/{entry → widgets}/TaxbitQuestionnaire/index.d.ts +0 -0
@@ -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,8 +1,8 @@
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;
6
+ children?: React.ReactNode;
7
7
  };
8
- export declare const InputValue: ({ name, value }: InputValueProps) => React.JSX.Element;
8
+ export declare const InputValue: ({ name, value, children }: InputValueProps) => 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 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,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,13 +1,11 @@
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;
8
7
  };
9
8
  export type SelectProps = {
10
- prompt?: string;
11
9
  name: TaxDocumentationKey;
12
10
  options: ReadonlyArray<ValueOption>;
13
11
  addBlank?: 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 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,4 +1,3 @@
1
1
  import { CamelCase, CamelCaseKeys } from '../types';
2
-
3
2
  export declare const camelCase: (str: string) => CamelCase<string>;
4
3
  export declare const camelCaseKeys: <T, U>(item: T) => CamelCaseKeys<T>;
@@ -1,9 +1,13 @@
1
1
  import { TaxDocumentation } from 'types/TaxDocumentation';
2
-
3
2
  export declare const getFieldsState: (fields: TaxDocumentation) => {
4
3
  hasNoEuTaxId: boolean;
5
4
  hasEuResidence: boolean;
6
- isBuildingDPS: boolean;
5
+ hasControllingPerson1: boolean;
6
+ hasControllingPerson2: boolean;
7
+ hasControllingPerson3: boolean;
8
+ hasControllingPerson4: boolean;
9
+ hasControllingPerson5: boolean;
10
+ requiresControllingPersons: boolean;
7
11
  isBuildingW9: boolean;
8
12
  isBuildingW8: boolean;
9
13
  isBuildingW8Ben: boolean;
@@ -14,7 +18,7 @@ export declare const getFieldsState: (fields: TaxDocumentation) => {
14
18
  isMakingTreatyClaim: boolean;
15
19
  isPartnership: boolean;
16
20
  residenceCountryCodes: string[];
17
- residences: {
21
+ getResidences: (prefix: "accountHolder" | "controllingPerson1" | "controllingPerson2" | "controllingPerson3" | "controllingPerson4" | "controllingPerson5") => {
18
22
  country: string | undefined;
19
23
  tin: string | undefined;
20
24
  tinNotRequired: "yes" | undefined;
@@ -1,3 +1,3 @@
1
+ import { QuestionnaireProp } from '../types';
1
2
  import { ClientTaxDocumentationStatus } from '../types/client';
2
-
3
- export declare const getFormStatus: (statusData: ClientTaxDocumentationStatus | undefined, questionnaire: string) => "COMPLETE" | "INCOMPLETE" | undefined;
3
+ export declare const getFormStatus: (statusData: ClientTaxDocumentationStatus | undefined, questionnaire: QuestionnaireProp) => "COMPLETE" | "INCOMPLETE" | undefined;
@@ -1,3 +1,2 @@
1
- import { Locale, Questionnaire } from '../types';
2
-
3
- export declare const getLanguage: (language: string | undefined, questionnaire: Questionnaire) => Locale;
1
+ import { Locale, QuestionnaireProp } from '../types';
2
+ export declare const getLanguage: (language: string | undefined, questionnaire: QuestionnaireProp) => Locale;
@@ -8,12 +8,12 @@ export * from './getHeaders';
8
8
  export * from './getLanguage';
9
9
  export * from './getMaskedContent';
10
10
  export * from './getMonthlyDayCount';
11
- export * from './getPromptKeyMap';
12
11
  export * from './getTreatyClaimDetails';
13
12
  export * from './handleFetch';
14
13
  export * from './isBlank';
15
14
  export * from './kebabCase';
16
15
  export * from './mergeClientTaxDocumentationData';
16
+ export * from './promptKeyMapping/getPromptKeyMap.ts';
17
17
  export * from './snakeCaseKeys';
18
18
  export * from './transformForClient';
19
19
  export * from './transformInbound';
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { PromptKey } from '../../i18n/types';
2
+ import { TaxDocumentation, TaxDocumentationKey } from '../../types';
3
+ type Prefix = 'accountHolder' | 'accountHolderMailing' | 'regardedOwner' | 'regardedOwnerMailing' | 'controllingPerson1' | 'controllingPerson1Mailing' | 'controllingPerson2' | 'controllingPerson2Mailing' | 'controllingPerson3' | 'controllingPerson3Mailing' | 'controllingPerson4' | 'controllingPerson4Mailing' | 'controllingPerson5' | 'controllingPerson5Mailing';
4
+ export declare const getAddressPromptKeyMap: (prefix: Prefix, data: TaxDocumentation) => { [key in TaxDocumentationKey]?: PromptKey; };
5
+ export {};
@@ -0,0 +1,3 @@
1
+ import { PromptKey } from '../../i18n/types';
2
+ import { TaxDocumentation, TaxDocumentationKey } from '../../types';
3
+ export declare const getControllingPersonsPromptKeyMap: (data: TaxDocumentation) => { [key in TaxDocumentationKey]?: PromptKey; };
@@ -1,4 +1,3 @@
1
1
  import { PromptKey } from 'i18n/types';
2
2
  import { TaxDocumentation, TaxDocumentationKey } from 'types/TaxDocumentation';
3
-
4
3
  export declare const getPromptKeyMap: (data: TaxDocumentation) => { [key in TaxDocumentationKey]?: PromptKey; };
@@ -0,0 +1,5 @@
1
+ import { PromptKey } from '../../i18n/types';
2
+ import { TaxDocumentation, TaxDocumentationKey } from '../../types';
3
+ type Prefix = 'accountHolder' | 'controllingPerson1' | 'controllingPerson2' | 'controllingPerson3' | 'controllingPerson4' | 'controllingPerson5';
4
+ export declare const getTaxResidencesPromptKeyMap: (data: TaxDocumentation, prefix: Prefix) => { [key in TaxDocumentationKey]?: PromptKey; };
5
+ export {};
@@ -1,3 +1,2 @@
1
1
  import { YesNo } from 'types';
2
-
3
2
  export declare const convertYesNoToBoolean: (val: YesNo | undefined) => boolean;
@@ -1,3 +1,2 @@
1
1
  import { YesNo } from 'types';
2
-
3
2
  export declare const convertYesNoToBooleanOrUndefined: (val: YesNo | undefined) => boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  import { ClientTaxDocumentation, SignedClientTaxDocumentation } from '@taxbit/utilities';
2
- import { Questionnaire, TaxDocumentation } from '../../types';
3
-
2
+ import { QuestionnaireProp, TaxDocumentation } from '../../types';
4
3
  export declare const transformForClient: (data: TaxDocumentation) => ClientTaxDocumentation;
5
- export declare const transformForSignedClient: (data: TaxDocumentation, questionnaire: Questionnaire) => SignedClientTaxDocumentation;
4
+ export declare const transformForSignedClient: (data: TaxDocumentation, questionnaireUI: QuestionnaireProp) => SignedClientTaxDocumentation;
@@ -1,4 +1,3 @@
1
1
  import { ClientAccountHolderTaxDocumentation } from '@taxbit/utilities';
2
2
  import { TaxDocumentation } from 'types';
3
-
4
3
  export declare const transformForClientAccountHolder: (data: TaxDocumentation) => ClientAccountHolderTaxDocumentation | undefined;
@@ -1,34 +1,5 @@
1
1
  import { TaxDocumentation } from 'types';
2
-
3
- export declare const transformForClientAccountHolderAddress: (data: TaxDocumentation) => {
4
- city?: string;
5
- country?: string;
6
- stateOrProvince?: string;
7
- firstLine?: string;
8
- secondLine?: string;
9
- postalCode?: string;
10
- } | undefined;
11
- export declare const transformForClientRegardedOwnerAddress: (data: TaxDocumentation) => {
12
- city?: string;
13
- country?: string;
14
- stateOrProvince?: string;
15
- firstLine?: string;
16
- secondLine?: string;
17
- postalCode?: string;
18
- } | undefined;
19
- export declare const transformForClientAccountHolderMailingAddress: (data: TaxDocumentation) => {
20
- city?: string;
21
- country?: string;
22
- stateOrProvince?: string;
23
- firstLine?: string;
24
- secondLine?: string;
25
- postalCode?: string;
26
- } | undefined;
27
- export declare const transformForClientRegardedOwnerMailingAddress: (data: TaxDocumentation) => {
28
- city?: string;
29
- country?: string;
30
- stateOrProvince?: string;
31
- firstLine?: string;
32
- secondLine?: string;
33
- postalCode?: string;
34
- } | undefined;
2
+ export declare const transformForClientAccountHolderAddress: (data: TaxDocumentation) => import('@taxbit/utilities').ClientAddress | undefined;
3
+ export declare const transformForClientRegardedOwnerAddress: (data: TaxDocumentation) => import('@taxbit/utilities').ClientAddress | undefined;
4
+ export declare const transformForClientAccountHolderMailingAddress: (data: TaxDocumentation) => import('@taxbit/utilities').ClientAddress | undefined;
5
+ export declare const transformForClientRegardedOwnerMailingAddress: (data: TaxDocumentation) => import('@taxbit/utilities').ClientAddress | undefined;
@@ -1,4 +1,3 @@
1
1
  import { ClientRegardedOwnerTaxDocumentation } from '@taxbit/utilities';
2
2
  import { TaxDocumentation } from 'types';
3
-
4
3
  export declare const transformForClientRegardedOwner: (data: TaxDocumentation) => ClientRegardedOwnerTaxDocumentation | undefined;
@@ -0,0 +1,10 @@
1
+ import { TaxDocumentation } from 'types';
2
+ type Prefix = 'accountHolder' | 'controllingPerson1' | 'controllingPerson2' | 'controllingPerson3' | 'controllingPerson4' | 'controllingPerson5';
3
+ export declare const transformForClientTaxResidences: (data: TaxDocumentation, prefix: Prefix) => {
4
+ country: string | undefined;
5
+ tin: string | undefined;
6
+ tinNotRequired: boolean;
7
+ tinNotRequiredReason: string | undefined;
8
+ tinNotRequiredReasonOther: string | undefined;
9
+ }[] | undefined;
10
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ControllingPerson } from '@taxbit/utilities';
2
+ import { TaxDocumentation } from '../../types';
3
+ export declare const transformForControllingPersons: (data: TaxDocumentation) => ControllingPerson[] | undefined;
@@ -0,0 +1,2 @@
1
+ import { ActiveNonFinancialEntityType } from '@taxbit/utilities';
2
+ export declare const getActiveNonFinancialEntityType: (entityType: string | undefined) => ActiveNonFinancialEntityType | undefined;
@@ -0,0 +1 @@
1
+ export declare const getCountryCode: (countryValue: string | undefined) => "AT" | "BE" | "BG" | "CY" | "CZ" | "DE" | "DK" | "EE" | "ES" | "FI" | "FR" | "GR" | "HR" | "HU" | "IE" | "IT" | "LT" | "LU" | "LV" | "MT" | "NL" | "PL" | "PT" | "RO" | "SE" | "SI" | "SK" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BF" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "DJ" | "DM" | "DO" | "DZ" | "EC" | "EG" | "EH" | "ER" | "ET" | "FJ" | "FK" | "FM" | "FO" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HT" | "ID" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PM" | "PN" | "PR" | "PS" | "PW" | "PY" | "QA" | "RE" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SG" | "SH" | "SJ" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | undefined;
@@ -0,0 +1,2 @@
1
+ import { EntityType } from '@taxbit/utilities';
2
+ export declare const getEntityType: (entityType: string | undefined) => EntityType | undefined;
@@ -0,0 +1,2 @@
1
+ import { FinancialInstitutionType } from '@taxbit/utilities';
2
+ export declare const getFinancialInstitutionType: (institutionType: string | undefined) => FinancialInstitutionType | undefined;
@@ -1,4 +1,3 @@
1
1
  import { ForeignRegardedOwnerAccountType, ForeignAccountHolderAccountType } from '@taxbit/utilities';
2
-
3
2
  export declare const getAccountHolderForeignAccountType: (accountType: string | undefined) => ForeignAccountHolderAccountType | undefined;
4
3
  export declare const getRegardedOwnerForeignAccountType: (accountType: string | undefined) => ForeignRegardedOwnerAccountType | undefined;
@@ -1,3 +1,2 @@
1
1
  import { ForeignOtherClassification } from '@taxbit/utilities';
2
-
3
2
  export declare const getForeignOtherClassification: (classification: string | undefined) => ForeignOtherClassification | undefined;
@@ -1,3 +1,2 @@
1
1
  import { ForeignTrustClassification } from '@taxbit/utilities';
2
-
3
2
  export declare const getForeignTrustClassification: (classification: string | undefined) => ForeignTrustClassification | undefined;
@@ -1,3 +1,2 @@
1
1
  import { UsLLCAccountType } from '@taxbit/utilities';
2
-
3
2
  export declare const getLLCClassification: (accountType: string | undefined) => UsLLCAccountType | undefined;
@@ -0,0 +1,2 @@
1
+ import { SelfCertificationAccountType } from '@taxbit/utilities';
2
+ export declare const getSelfCertificationAccountType: (accountType: string | undefined) => SelfCertificationAccountType | undefined;
@@ -1,4 +1,3 @@
1
1
  import { UsRegardedOwnerAccountType, UsAccountHolderAccountType } from '@taxbit/utilities';
2
-
3
2
  export declare const getAccountHolderUsAccountType: (accountType: string | undefined) => UsAccountHolderAccountType | undefined;
4
3
  export declare const getRegardedOwnerUsAccountType: (accountType: string | undefined) => UsRegardedOwnerAccountType | undefined;
@@ -1,4 +1,3 @@
1
- import { Questionnaire, TaxDocumentation } from 'types';
1
+ import { QuestionnaireProp, TaxDocumentation } from 'types';
2
2
  import { ClientTaxDocumentation } from '@taxbit/utilities';
3
-
4
- export declare const transformInbound: (data: ClientTaxDocumentation, questionnaire: Questionnaire, treatyClaims: boolean | undefined) => TaxDocumentation;
3
+ export declare const transformInbound: (data: ClientTaxDocumentation, questionnaire: QuestionnaireProp, treatyClaims: boolean | undefined) => TaxDocumentation;
@@ -0,0 +1,5 @@
1
+ import { ClientAddress } from '@taxbit/utilities';
2
+ import { TaxDocumentation } from '../../types';
3
+ type Prefix = 'accountHolder' | 'accountHolderMailing' | 'regardedOwner' | 'regardedOwnerMailing' | 'controllingPerson1' | 'controllingPerson1Mailing' | 'controllingPerson2' | 'controllingPerson2Mailing' | 'controllingPerson3' | 'controllingPerson3Mailing' | 'controllingPerson4' | 'controllingPerson4Mailing' | 'controllingPerson5' | 'controllingPerson5Mailing';
4
+ export declare const transformInboundAddress: (prefix: Prefix, address: ClientAddress | undefined) => Partial<TaxDocumentation>;
5
+ export {};