@taxbit/react-sdk 1.0.0-beta.7 → 1.1.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.
- package/README.md +19 -3
- package/dist/index.d.ts +1 -1
- package/dist/src/App.d.ts +2 -1
- package/dist/src/components/Address/Address.d.ts +2 -1
- package/dist/src/components/Address/index.d.ts +1 -1
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +3 -2
- package/dist/src/components/ErrorBoundary/ErrorBoundary.d.ts +2 -1
- package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +2 -1
- package/dist/src/components/ErrorMessage/index.d.ts +1 -1
- package/dist/src/components/Form/Form.d.ts +2 -1
- package/dist/src/components/InputStatus/InputStatus.d.ts +3 -2
- package/dist/src/components/InputStatus/index.d.ts +1 -1
- package/dist/src/components/JsxFromString/JsxFromString.d.ts +5 -0
- package/dist/src/components/JsxFromString/index.d.ts +1 -0
- package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +3 -2
- package/dist/src/components/Row/Row.d.ts +2 -1
- package/dist/src/components/Row/index.d.ts +1 -1
- package/dist/src/components/Section/Section.d.ts +2 -1
- package/dist/src/components/Section/index.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +7 -0
- package/dist/src/contexts/{QuestionnaireUI → QuestionnaireStep}/getLocal.d.ts +1 -0
- package/dist/src/contexts/QuestionnaireStep/index.d.ts +5 -0
- package/dist/src/contexts/{QuestionnaireUI → QuestionnaireStep}/shiftResidence.d.ts +2 -1
- package/dist/src/contexts/{QuestionnaireUI/useQuestionnaireUI.d.ts → QuestionnaireStep/useQuestionnaireStep.d.ts} +11 -16
- package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +63 -0
- package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +4 -2
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +8 -9
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +29 -34
- package/dist/src/contexts/createCtx.d.ts +1 -2
- package/dist/src/contexts/index.d.ts +1 -1
- package/dist/src/entry/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +5 -3
- package/dist/src/hooks/useHandleError.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/w8.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/w9.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +3 -2
- package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +3 -2
- package/dist/src/i18n/__tests__/JsxFromString.test.d.ts +1 -0
- package/dist/src/i18n/locales/bg.d.ts +1 -1
- package/dist/src/i18n/locales/cs.d.ts +1 -1
- package/dist/src/i18n/locales/da.d.ts +1 -1
- package/dist/src/i18n/locales/de-at.d.ts +1 -1
- package/dist/src/i18n/locales/de.d.ts +2 -1
- package/dist/src/i18n/locales/el-cy.d.ts +2 -1
- package/dist/src/i18n/locales/el.d.ts +2 -1
- package/dist/src/i18n/locales/en-gb.d.ts +1 -0
- package/dist/src/i18n/locales/en-nz.d.ts +1 -0
- package/dist/src/i18n/locales/en-us.d.ts +1 -0
- package/dist/src/i18n/locales/en.d.ts +1 -0
- package/dist/src/i18n/locales/es.d.ts +1 -0
- package/dist/src/i18n/locales/et.d.ts +1 -1
- package/dist/src/i18n/locales/fi.d.ts +1 -1
- package/dist/src/i18n/locales/fr-ca.d.ts +1 -0
- package/dist/src/i18n/locales/fr-lu.d.ts +1 -1
- package/dist/src/i18n/locales/fr.d.ts +1 -0
- package/dist/src/i18n/locales/ga.d.ts +1 -0
- package/dist/src/i18n/locales/hr.d.ts +1 -1
- package/dist/src/i18n/locales/hu.d.ts +1 -1
- package/dist/src/i18n/locales/it.d.ts +1 -1
- package/dist/src/i18n/locales/lt.d.ts +2 -1
- package/dist/src/i18n/locales/lv.d.ts +1 -1
- package/dist/src/i18n/locales/mergePropertyFiles.d.ts +1 -0
- package/dist/src/i18n/locales/mt.d.ts +1 -1
- package/dist/src/i18n/locales/nl-be.d.ts +2 -1
- package/dist/src/i18n/locales/nl.d.ts +1 -1
- package/dist/src/i18n/locales/no.d.ts +1 -1
- package/dist/src/i18n/locales/pl.d.ts +2 -1
- package/dist/src/i18n/locales/pt.d.ts +1 -1
- package/dist/src/i18n/locales/ro.d.ts +1 -1
- package/dist/src/i18n/locales/sk.d.ts +1 -1
- package/dist/src/i18n/locales/sl.d.ts +1 -1
- package/dist/src/i18n/locales/sv.d.ts +1 -1
- package/dist/src/i18n/locales/translation-missing.d.ts +1 -0
- package/dist/src/i18n/localizationFileMap.d.ts +3 -2
- package/dist/src/i18n/types/LocalizationKey.d.ts +10 -6
- package/dist/src/i18n/types/PropertyFile.d.ts +1 -0
- package/dist/src/i18n/types/index.d.ts +1 -1
- package/dist/src/i18n/utils/getText.d.ts +1 -0
- package/dist/src/i18n/utils/index.d.ts +1 -1
- package/dist/src/index.d.ts +9 -0
- package/dist/src/lookups/countryOptions.d.ts +4 -0
- package/dist/src/lookups/dayOptions.d.ts +1 -1
- package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +1 -1
- package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +1 -1
- package/dist/src/lookups/index.d.ts +1 -0
- package/dist/src/lookups/localeOptions.d.ts +1 -0
- package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
- package/dist/src/lookups/toOptions.d.ts +1 -1
- package/dist/src/lookups/treatyCountries.json.d.ts +2195 -0
- package/dist/src/lookups/typeOfIncomeOptions.d.ts +8 -0
- package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
- package/dist/src/services/api.d.ts +6 -5
- package/dist/src/test/Wrapper.d.ts +2 -1
- package/dist/src/test/getWrapper.d.ts +2 -1
- package/dist/src/test/utils/helpers.d.ts +2 -0
- package/dist/src/types/InputStep.d.ts +2 -2
- package/dist/src/types/Progress.d.ts +1 -0
- package/dist/src/types/StepId.d.ts +1 -1
- package/dist/src/types/TaxDocumentation.d.ts +29 -4
- package/dist/src/ui/ActionButton/ActionButton.d.ts +2 -1
- package/dist/src/ui/Actions/Actions.d.ts +3 -3
- package/dist/src/ui/Actions/index.d.ts +1 -1
- package/dist/src/ui/CheckBox/CheckBox.d.ts +4 -2
- package/dist/src/ui/CheckBox/index.d.ts +1 -1
- package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +2 -1
- package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +3 -2
- package/dist/src/ui/FormattedInput/FormattedInput.d.ts +2 -1
- package/dist/src/ui/HideShowButton/HideShowButton.d.ts +2 -1
- package/dist/src/ui/HideShowButton/index.d.ts +1 -1
- package/dist/src/ui/InputValue/InputValue.d.ts +2 -1
- package/dist/src/ui/MaskedContent/MaskedContent.d.ts +2 -1
- package/dist/src/ui/MaskedContent/index.d.ts +1 -1
- package/dist/src/ui/PasswordInput/PasswordInput.d.ts +2 -1
- package/dist/src/ui/RadioButtons/RadioButtons.d.ts +8 -5
- package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +1 -0
- package/dist/src/ui/Select/Select.d.ts +2 -1
- package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +2 -1
- package/dist/src/ui/TextArea/TextArea.d.ts +12 -0
- package/dist/src/ui/TextArea/__tests__/TextInput.test.d.ts +1 -0
- package/dist/src/ui/TextArea/index.d.ts +1 -0
- package/dist/src/ui/TextInput/TextInput.d.ts +2 -1
- package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +1 -0
- package/dist/src/ui/ToggleButton/ToggleButton.d.ts +2 -1
- package/dist/src/ui/ToggleButton/index.d.ts +1 -1
- package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +9 -0
- package/dist/src/ui/WithholdingInput/index.d.ts +1 -0
- package/dist/src/ui/index.d.ts +2 -0
- package/dist/src/utils/camelCaseKeys.d.ts +3 -1
- package/dist/src/utils/getFieldsState.d.ts +3 -0
- package/dist/src/utils/getFormStatus.d.ts +1 -0
- package/dist/src/utils/getLanguage.d.ts +1 -0
- package/dist/src/utils/getPromptKeyMap.d.ts +2 -111
- package/dist/src/utils/getTreatyClaimDetails.d.ts +2 -0
- package/dist/src/utils/getTreatyCountry.d.ts +38 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/isBlank.d.ts +2 -1
- package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -0
- package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -0
- package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +1 -0
- package/dist/src/utils/transformForClient/transformForClient.d.ts +1 -0
- package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +4 -0
- package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +25 -24
- package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +3 -1
- package/dist/src/utils/transformForClient/transformForClientTaxResidenceFields.d.ts +4 -3
- package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +2 -1
- package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getLLCClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getUsAccountType.d.ts +2 -1
- package/dist/src/utils/transformInbound/transformInbound.d.ts +2 -1
- package/dist/src/validations/getInvalidFields.d.ts +1 -0
- package/dist/src/validations/getRequiredFields.d.ts +2 -1
- package/dist/src/validations/getSteps.d.ts +3 -0
- package/dist/src/validations/getSupportedFields.d.ts +3 -2
- package/dist/src/validations/getVisibleFields.d.ts +3 -2
- package/dist/src/validations/index.d.ts +1 -0
- package/dist/src/validations/invalidFieldRules.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +5 -3
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +1 -0
- package/dist/src/wizard/AddressInput/AddressInput.d.ts +2 -1
- package/dist/src/wizard/AddressInput/index.d.ts +1 -1
- package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +3 -2
- package/dist/src/wizard/LanguageSelector/index.d.ts +1 -1
- package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +2 -1
- package/dist/src/wizard/ResidenceInput/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +4 -2
- package/dist/src/wizard/RowInput/CheckBoxRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +4 -3
- package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +4 -3
- package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +6 -0
- package/dist/src/wizard/RowInput/HiddenInputRow/index.d.ts +1 -0
- package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +4 -2
- package/dist/src/wizard/RowInput/RadioButtonRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/SelectRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +10 -0
- package/dist/src/wizard/RowInput/TextAreaRow/index.d.ts +1 -0
- package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/TextInputRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/ToggleButtonRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +7 -5
- package/dist/src/wizard/RowInput/VisibleRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +4 -2
- package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/W8imyInstructions.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.treatyClaims.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +3 -0
- package/dist/taxbit-react-sdk.js +7979 -5307
- package/dist/taxbit-react-sdk.umd.cjs +14 -11
- package/package.json +8 -7
- package/style/basic.css +26 -10
- package/style/inline.css +26 -10
- package/style/minimal.css +4 -0
- package/dist/src/contexts/QuestionnaireUI/QuestionnaireUIProvider.d.ts +0 -6
- package/dist/src/contexts/QuestionnaireUI/index.d.ts +0 -4
- package/dist/src/contexts/QuestionnaireUI/useQuestionnaireUIContext.d.ts +0 -74
- package/dist/src/entry/index.d.ts +0 -8
- package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const bg: import(
|
|
1
|
+
export declare const bg: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const cs: import(
|
|
1
|
+
export declare const cs: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const da: import(
|
|
1
|
+
export declare const da: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const deAt: import(
|
|
1
|
+
export declare const deAt: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PartialDPSPropertyFile } from '../types/PropertyFile';
|
|
2
|
+
|
|
2
3
|
export declare const elCyTranslations: PartialDPSPropertyFile;
|
|
3
|
-
export declare const elCy: import(
|
|
4
|
+
export declare const elCy: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const et: import(
|
|
1
|
+
export declare const et: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const fi: import(
|
|
1
|
+
export declare const fi: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const frLu: import(
|
|
1
|
+
export declare const frLu: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hr: import(
|
|
1
|
+
export declare const hr: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hu: import(
|
|
1
|
+
export declare const hu: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const it: import(
|
|
1
|
+
export declare const it: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const lv: import(
|
|
1
|
+
export declare const lv: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const mt: import(
|
|
1
|
+
export declare const mt: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PartialDPSPropertyFile } from '../types/PropertyFile';
|
|
2
|
+
|
|
2
3
|
export declare const nlBeTranslations: PartialDPSPropertyFile;
|
|
3
|
-
export declare const nlBe: import(
|
|
4
|
+
export declare const nlBe: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const nl: import(
|
|
1
|
+
export declare const nl: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const no: import(
|
|
1
|
+
export declare const no: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pt: import(
|
|
1
|
+
export declare const pt: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ro: import(
|
|
1
|
+
export declare const ro: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sk: import(
|
|
1
|
+
export declare const sk: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sl: import(
|
|
1
|
+
export declare const sl: import('../types/PropertyFile').PropertyFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sv: import(
|
|
1
|
+
export declare const sv: 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,9 +1,13 @@
|
|
|
1
1
|
export type ButtonKey = 'edit' | 'back' | 'next' | 'reset' | 'submit' | 'cancel' | 'hide' | 'show';
|
|
2
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
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';
|
|
4
|
+
export type OptionKey = TreatyClaimOption | '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 = TreatyClaimPrompt | 'addAdditional' | 'address' | 'businessRegistrationNumber' | 'businessRegistrationCountry' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'dbaName' | 'exemptPayeeCode' | 'exemptFatcaCode' | 'financialAccountIdentifier' | 'financialAccountName' | 'foreignAccountType' | 'foreignOtherClassification' | 'foreignTin' | 'foreignTinIsNotRequired' | 'foreignTrustClassification' | 'isIndividual' | 'iAcknowledgeESignIsOk' | 'iAgreeWillResubmitIfIncorrect' | '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 = TreatyClaimSubPrompt | 'smllcElection' | 'iAmNotSubjectToBackupWithholding' | 'iConfirmIncomeIsNonUs' | 'isIndividual' | 'financialAccountIdentifier' | 'financialAccountName' | 'vatIdentificationNumber' | 'placeOfBirth' | 'referenceNumbers' | 'signature' | 'streetIsPermanent' | 'usPerson';
|
|
7
|
+
export type TitleKey = 'accountHolder' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxClarification' | 'accountHolderTreatyClaims' | 'address' | 'additionalConditions' | 'acknowledge' | 'certify' | 'confirmation' | 'countryOfCitizenship' | 'countryOfIncorporation' | 'exemptions' | 'mailingAddress' | 'primaryAddress' | 'permanentAddress' | 'placeOfBirth' | 'regardedOwner' | 'regardedOwnerClassification' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'regardedOwnerTreatyClaims' | 'signature' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5' | 'w8imyInstructions';
|
|
8
|
+
export type SubTitleKey = 'taxResidences' | 'permanentAddress' | 'taxInformationTreatyClaims';
|
|
9
|
+
export type TextKey = 'eSignActReference' | 'notRequired' | 'notRequiredOrNotIssued' | 'interviewIsComplete' | 'penaltyOfPerjury' | 'penaltiesOfPerjury' | 'retrievingInterviewStatus' | 'taxDocumentationSaved' | 'w8imyInstructions';
|
|
10
|
+
type TreatyClaimPrompt = 'treatyClaimIsEligible' | 'treatyClaimICertifyResident' | 'treatyClaimICertifyRequirements' | 'treatyClaimCountry' | 'treatyClaimTypeOfIncome' | 'treatyClaimWithholding' | 'treatyClaimAdditionalConditions' | 'treatyClaimLimitationOnBenefits' | 'treatyClaimLimitationOnBenefitsOtherArticleParagraph';
|
|
11
|
+
type TreatyClaimSubPrompt = 'treatyClaimIsEligible' | 'treatyClaimWithholding' | 'treatyClaimAdditionalConditions' | 'treatyClaimLimitationOnBenefits';
|
|
12
|
+
type TreatyClaimOption = 'treatyClaimIsEligible_yes' | 'treatyClaimIsEligible_no' | 'BUSINESS_PROFITS' | 'ROYALTIES_OTHER' | 'SERVICES' | 'GOVERNMENT' | 'TAX_EXEMPT_PENSION' | 'OTHER_TAX_EXEMPT_ORGANIZATION' | 'PUBLICLY_TRADED_CORPORATION' | 'SUBSIDIARY' | 'COMPANY_MEETS_EROSION_TEST' | 'COMPANY_MEETS_DERIVATIVE_TEST' | 'COMPANY_MEETS_BUSINESS_TEST' | 'FAVORABLE_DETERMINATION' | 'NO_LOB_ARTICLE' | 'OTHER_ARTICLE_PARAGRAPH';
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './LocalizationKey';
|
|
@@ -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 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './getText';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientTaxDocumentation } from '@taxbit/utilities';
|
|
2
|
+
|
|
3
|
+
export * from './entry/TaxbitQuestionnaire';
|
|
4
|
+
export * from './hooks/useTaxbit/useTaxbit';
|
|
5
|
+
export * from './types/client/ClientTaxDocumentationStatus';
|
|
6
|
+
export * from './types/Locale';
|
|
7
|
+
export * from './types/Progress';
|
|
8
|
+
export * from './types/Questionnaire';
|
|
9
|
+
export type { ClientTaxDocumentation };
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { default as treatyCountries } from './treatyCountries.json';
|
|
2
|
+
|
|
1
3
|
export declare const euCountryCodes: string[];
|
|
2
4
|
export declare const isEuCountryCode: (countryCode: string | undefined) => boolean;
|
|
5
|
+
export declare const treatyCountryCodes: string[];
|
|
6
|
+
export type TreatyCountryCode = keyof typeof treatyCountries;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const dayOptions: {
|
|
2
|
-
value:
|
|
2
|
+
value: T;
|
|
3
3
|
}[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const foreignOtherClassificationOptions: {
|
|
2
|
-
value:
|
|
2
|
+
value: T;
|
|
3
3
|
}[];
|
|
@@ -7,6 +7,7 @@ export * from './foreignRegardedOwnerAccountTypeOptions';
|
|
|
7
7
|
export * from './foreignTrustClassificationOptions';
|
|
8
8
|
export * from './localeOptions';
|
|
9
9
|
export * from './payeeCodeOptions';
|
|
10
|
+
export * from './typeOfIncomeOptions';
|
|
10
11
|
export * from './usAccountHolderAccountTypeOptions';
|
|
11
12
|
export * from './usLlcAccountTypeOptions';
|
|
12
13
|
export * from './usRegardedOwnerAccountTypeOptions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const payeeCodeOptions: {
|
|
2
|
-
label: "
|
|
3
|
-
value:
|
|
2
|
+
label: "7" | "13" | "10" | "11" | "12" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "9";
|
|
3
|
+
value: T;
|
|
4
4
|
}[];
|