@taxbit/react-sdk 0.6.2 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -53
- package/dist/src/components/Address/Address.d.ts +1 -2
- package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +1 -2
- package/dist/src/components/Form/Form.d.ts +2 -1
- package/dist/src/components/Form/index.d.ts +1 -1
- package/dist/src/contexts/QuestionnaireUI/QuestionnaireUIProvider.d.ts +6 -0
- package/dist/src/contexts/QuestionnaireUI/getLocal.d.ts +19 -0
- package/dist/src/contexts/{FormUI → QuestionnaireUI}/index.d.ts +3 -3
- package/dist/src/contexts/{FormUI/useFormUI.d.ts → QuestionnaireUI/useQuestionnaireUI.d.ts} +6 -6
- package/dist/src/contexts/{FormUI/useFormUIContext.d.ts → QuestionnaireUI/useQuestionnaireUIContext.d.ts} +18 -18
- package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +7 -0
- package/dist/src/contexts/TaxDocumentation/index.d.ts +1 -1
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +13 -15
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +24 -30
- package/dist/src/contexts/index.d.ts +2 -2
- package/dist/src/entry/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +9 -0
- package/dist/src/entry/TaxbitQuestionnaire/index.d.ts +1 -0
- package/dist/src/entry/index.d.ts +4 -6
- package/dist/src/hooks/index.d.ts +1 -1
- package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +2 -0
- package/dist/src/hooks/{useTaxBit → useTaxbit}/__tests__/serverTaxDocumentation.d.ts +1 -1
- package/dist/src/hooks/useTaxbit/index.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +9 -0
- package/dist/src/hooks/useTaxbit/useTaxbitConnect.d.ts +8 -0
- package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +8 -0
- package/dist/src/i18n/index.d.ts +1 -1
- package/dist/src/i18n/locales/bg.d.ts +1 -0
- package/dist/src/i18n/locales/cs.d.ts +1 -0
- package/dist/src/i18n/locales/da.d.ts +1 -0
- package/dist/src/i18n/locales/de-at.d.ts +1 -2
- package/dist/src/i18n/locales/de.d.ts +3 -0
- package/dist/src/i18n/locales/el-cy.d.ts +3 -2
- package/dist/src/i18n/locales/el.d.ts +3 -0
- package/dist/src/i18n/locales/{bg-bg.d.ts → en-nz.d.ts} +1 -1
- package/dist/src/i18n/locales/{cs-cz.d.ts → en.d.ts} +1 -1
- package/dist/src/i18n/locales/{da-dk.d.ts → es.d.ts} +1 -1
- package/dist/src/i18n/locales/et.d.ts +1 -0
- package/dist/src/i18n/locales/fi.d.ts +1 -0
- package/dist/src/i18n/locales/{de-de.d.ts → fr-ca.d.ts} +1 -1
- package/dist/src/i18n/locales/fr-lu.d.ts +1 -2
- package/dist/src/i18n/locales/fr.d.ts +2 -0
- package/dist/src/i18n/locales/ga.d.ts +2 -0
- package/dist/src/i18n/locales/hr.d.ts +1 -0
- package/dist/src/i18n/locales/hu.d.ts +1 -0
- package/dist/src/i18n/locales/index.d.ts +33 -30
- package/dist/src/i18n/locales/it.d.ts +1 -0
- package/dist/src/i18n/locales/lt.d.ts +3 -0
- package/dist/src/i18n/locales/lv.d.ts +1 -0
- package/dist/src/i18n/locales/mergePropertyFiles.d.ts +6 -0
- package/dist/src/i18n/locales/mt.d.ts +1 -0
- package/dist/src/i18n/locales/nl-be.d.ts +3 -2
- package/dist/src/i18n/locales/nl.d.ts +1 -0
- package/dist/src/i18n/locales/no.d.ts +1 -0
- package/dist/src/i18n/locales/pl.d.ts +3 -0
- package/dist/src/i18n/locales/pt.d.ts +1 -0
- package/dist/src/i18n/locales/ro.d.ts +1 -0
- package/dist/src/i18n/locales/sk.d.ts +1 -0
- package/dist/src/i18n/locales/sl.d.ts +1 -0
- package/dist/src/i18n/locales/sv.d.ts +1 -0
- package/dist/src/i18n/locales/translation-missing.d.ts +5 -0
- package/dist/src/i18n/localizationFileMap.d.ts +7 -0
- package/dist/src/i18n/types/LocalizationKey.d.ts +8 -8
- package/dist/src/i18n/types/PropertyFile.d.ts +23 -19
- package/dist/src/i18n/utils/getText.d.ts +2 -9
- package/dist/src/lookups/countryOptions.d.ts +1 -7
- package/dist/src/lookups/dayOptions.d.ts +1 -1
- package/dist/src/lookups/fatcaCodeOptions.d.ts +2 -2
- package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +3 -15
- package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +3 -17
- package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +3 -11
- package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +3 -9
- package/dist/src/lookups/index.d.ts +13 -16
- package/dist/src/lookups/localeOptions.d.ts +5 -1
- package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
- package/dist/src/lookups/toOptions.d.ts +1 -1
- package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +3 -23
- package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +3 -9
- package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +3 -15
- package/dist/src/services/api.d.ts +7 -2
- package/dist/src/test/Wrapper.d.ts +3 -3
- package/dist/src/test/getWrapper.d.ts +3 -3
- package/dist/src/test/utils/helpers.d.ts +7 -2
- package/dist/src/types/InputStep.d.ts +2 -2
- package/dist/src/types/Locale.d.ts +1 -1
- package/dist/src/types/Questionnaire.d.ts +1 -0
- package/dist/src/types/StepId.d.ts +1 -1
- package/dist/src/types/TaxDocumentation.d.ts +30 -30
- package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +12 -3
- package/dist/src/types/client/index.d.ts +0 -1
- package/dist/src/types/index.d.ts +1 -6
- package/dist/src/types/server/TaxDocumentationStatus.d.ts +12 -3
- package/dist/src/types/server/index.d.ts +0 -1
- package/dist/src/ui/ActionButton/index.d.ts +1 -1
- package/dist/src/ui/CheckBox/CheckBox.d.ts +2 -1
- package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
- package/dist/src/ui/DateOfBirthInput/index.d.ts +1 -1
- package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +2 -2
- package/dist/src/ui/FormattedInput/FormattedInput.d.ts +11 -0
- package/dist/src/ui/FormattedInput/index.d.ts +1 -0
- package/dist/src/ui/PasswordInput/PasswordInput.d.ts +9 -0
- package/dist/src/ui/PasswordInput/index.d.ts +1 -0
- package/dist/src/ui/RadioButtons/index.d.ts +1 -1
- package/dist/src/ui/Select/index.d.ts +1 -1
- package/dist/src/ui/{MaskedInput/MaskedInput.d.ts → ShowHideInput/ShowHideInput.d.ts} +2 -3
- package/dist/src/ui/ShowHideInput/index.d.ts +1 -0
- package/dist/src/ui/TextInput/TextInput.d.ts +1 -2
- package/dist/src/ui/TextInput/index.d.ts +1 -1
- package/dist/src/ui/index.d.ts +3 -1
- package/dist/src/utils/formatUsTin.d.ts +5 -0
- package/dist/src/utils/getFieldsState.d.ts +16 -10
- package/dist/src/utils/getMaskedContent.d.ts +1 -0
- package/dist/src/utils/getPromptKeyMap.d.ts +22 -22
- package/dist/src/utils/index.d.ts +3 -2
- package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -1
- package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -1
- package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +2 -0
- package/dist/src/utils/transformForClient/index.d.ts +1 -1
- package/dist/src/utils/transformForClient/transformForClient.d.ts +3 -2
- package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +1 -53
- package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +1 -36
- package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +1 -1
- package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +1 -1
- package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +1 -1
- package/dist/src/utils/transformInbound/getLLCClassification.d.ts +1 -1
- package/dist/src/utils/transformInbound/getUsAccountType.d.ts +1 -1
- package/dist/src/utils/transformInbound/transformInbound.d.ts +3 -3
- package/dist/src/utils/uppercase.d.ts +1 -0
- package/dist/src/validations/getInvalidFields.d.ts +2 -2
- package/dist/src/validations/getRequiredFields.d.ts +2 -2
- package/dist/src/validations/getSupportedFields.d.ts +2 -2
- package/dist/src/validations/getVisibleFields.d.ts +2 -2
- package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +5 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/index.d.ts +2 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +25 -0
- package/dist/src/widgets/index.d.ts +1 -1
- package/dist/src/wizard/AddressInput/AddressInput.d.ts +2 -1
- package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +4 -1
- package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +1 -2
- package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +4 -3
- package/dist/src/wizard/RowInput/DateOfBirthRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/ErrorRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +2 -2
- package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +11 -0
- package/dist/src/wizard/RowInput/ShowHideInputRow/index.d.ts +1 -0
- package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +3 -4
- package/dist/src/wizard/RowInput/index.d.ts +1 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +6 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/index.d.ts +1 -0
- package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/steps.d.ts +0 -1
- package/dist/src/wizard/index.d.ts +1 -1
- package/dist/taxbit-react-sdk.js +5805 -16660
- package/dist/taxbit-react-sdk.umd.cjs +10 -10
- package/package.json +10 -18
- package/style/basic.css +32 -13
- package/style/inline.css +32 -13
- package/dist/src/contexts/FormUI/FormUIProvider.d.ts +0 -6
- package/dist/src/contexts/FormUI/getLocal.d.ts +0 -20
- package/dist/src/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +0 -7
- package/dist/src/hooks/useTaxBit/__tests__/clientTaxDocumentation.d.ts +0 -2
- package/dist/src/hooks/useTaxBit/index.d.ts +0 -1
- package/dist/src/hooks/useTaxBit/useTaxBit.d.ts +0 -7
- package/dist/src/i18n/i18n.d.ts +0 -7
- package/dist/src/i18n/locales/el-gr.d.ts +0 -2
- package/dist/src/i18n/locales/es-es.d.ts +0 -2
- package/dist/src/i18n/locales/et-ee.d.ts +0 -2
- package/dist/src/i18n/locales/fi-fi.d.ts +0 -2
- package/dist/src/i18n/locales/fr-fr.d.ts +0 -2
- package/dist/src/i18n/locales/ga-ie.d.ts +0 -2
- package/dist/src/i18n/locales/hr-hr.d.ts +0 -2
- package/dist/src/i18n/locales/hu-hu.d.ts +0 -2
- package/dist/src/i18n/locales/it-it.d.ts +0 -2
- package/dist/src/i18n/locales/lt-lt.d.ts +0 -2
- package/dist/src/i18n/locales/lv-lv.d.ts +0 -2
- package/dist/src/i18n/locales/mt-mt.d.ts +0 -2
- package/dist/src/i18n/locales/nl-nl.d.ts +0 -2
- package/dist/src/i18n/locales/no-no.d.ts +0 -2
- package/dist/src/i18n/locales/pl-pl.d.ts +0 -2
- package/dist/src/i18n/locales/pt-pt.d.ts +0 -2
- package/dist/src/i18n/locales/ro-ro.d.ts +0 -2
- package/dist/src/i18n/locales/sk-sk.d.ts +0 -2
- package/dist/src/i18n/locales/sl-si.d.ts +0 -2
- package/dist/src/i18n/locales/sv-se.d.ts +0 -2
- package/dist/src/lookups/caProvinceOptions.d.ts +0 -4
- package/dist/src/lookups/monthOptions.d.ts +0 -4
- package/dist/src/lookups/usStateOptions.d.ts +0 -4
- package/dist/src/types/AccountType.d.ts +0 -6
- package/dist/src/types/CaProvinceCode.d.ts +0 -1
- package/dist/src/types/CountryCode.d.ts +0 -3
- package/dist/src/types/MonthCode.d.ts +0 -1
- package/dist/src/types/TaxForm.d.ts +0 -1
- package/dist/src/types/UsStateCode.d.ts +0 -1
- package/dist/src/types/client/ClientTaxDocumentation.d.ts +0 -84
- package/dist/src/types/server/ComprehensiveTaxDocumentation.d.ts +0 -84
- package/dist/src/ui/MaskedInput/index.d.ts +0 -1
- package/dist/src/ui/Password/Password.d.ts +0 -12
- package/dist/src/ui/Password/index.d.ts +0 -1
- package/dist/src/utils/date.d.ts +0 -4
- package/dist/src/utils/getHintKeyMap.d.ts +0 -113
- package/dist/src/utils/getVerboseDate.d.ts +0 -1
- package/dist/src/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +0 -4
- package/dist/src/widgets/TaxBitForm/TaxBitForm.d.ts +0 -5
- package/dist/src/widgets/TaxBitForm/index.d.ts +0 -2
- package/dist/src/widgets/TaxBitForm/useTaxBitForm.d.ts +0 -22
- package/dist/src/wizard/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +0 -2
- package/dist/src/wizard/PlaceOfBirthInput/index.d.ts +0 -1
- package/dist/src/wizard/RowInput/MaskedInputRow/MaskedInputRow.d.ts +0 -11
- package/dist/src/wizard/RowInput/MaskedInputRow/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/AppError/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/Exemptions/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +0 -2
- package/dist/src/wizard/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/Summary/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -4
- package/dist/src/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +0 -6
- package/dist/src/wizard/TaxBitFormUI/index.d.ts +0 -2
- /package/dist/src/contexts/{FormUI → QuestionnaireUI}/shiftResidence.d.ts +0 -0
- /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitDAC7Form.loaded.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts} +0 -0
- /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitForm.complete.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts} +0 -0
- /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitForm.loaded.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts} +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderClassification/AccountHolderClassification.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderContact/AccountHolderContact.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderTax/AccountHolderTax.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AppError/AppError.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Confirmation/Confirmation.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Confirmation/index.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Exemptions/Exemptions.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Summary/Recap.d.ts +0 -0
- /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Summary/Summary.d.ts +0 -0
- /package/dist/src/{widgets/TaxBitForm/__tests__/TaxBitForm.loading.test.d.ts → wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts} +0 -0
- /package/dist/src/wizard/{TaxBitFormUI/__tests__/TaxBitDAC7FormUI.test.d.ts → TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts} +0 -0
- /package/dist/src/wizard/{TaxBitFormUI/__tests__/TaxBitFormUI.test.d.ts → TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts} +0 -0
|
@@ -1,58 +1,52 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const useTaxDocumentationContext: () => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
isW8Ben: boolean;
|
|
6
|
-
isW8BenE: boolean;
|
|
7
|
-
isDac7: boolean;
|
|
8
|
-
onPersistAccountHolderData: (newData: import("../../types").TaxDocumentation) => void;
|
|
3
|
+
isBuildingW9: boolean;
|
|
4
|
+
isBuildingW8: boolean;
|
|
9
5
|
onPersistCollectedData: (newData: import("../../types").TaxDocumentation) => void;
|
|
10
6
|
onSubmitTaxDocumentation: (data: import("../../types").TaxDocumentation) => void;
|
|
11
7
|
error: string | undefined;
|
|
12
|
-
editTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
8
|
+
editTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
|
|
13
9
|
onCancel: (() => void) | undefined;
|
|
14
|
-
getStepId: (key: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
15
|
-
goTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
10
|
+
getStepId: (key: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => import("../../types/StepId").StepId;
|
|
11
|
+
goTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
|
|
16
12
|
goBack: (() => void) | undefined;
|
|
17
13
|
goToNext: (data: import("../../types").TaxDocumentation) => void;
|
|
18
14
|
progress: import("../../types").Progress | undefined;
|
|
19
|
-
stepName: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
15
|
+
stepName: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
|
|
20
16
|
data: import("../../types").TaxDocumentation;
|
|
21
17
|
originalClientData: import("../../types").TaxDocumentation;
|
|
22
|
-
initialStep: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
23
|
-
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg
|
|
24
|
-
language: "bg
|
|
25
|
-
|
|
26
|
-
externalValidations: import("../../
|
|
18
|
+
initialStep: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
|
|
19
|
+
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg" | "cs" | "da" | "de" | "de-at" | "el" | "el-cy" | "en" | "en-gb" | "en-nz" | "en-us" | "es" | "et" | "fi" | "fr" | "fr-ca" | "fr-lu" | "ga" | "hr" | "hu" | "it" | "lt" | "lv" | "mt" | "nl" | "nl-be" | "no" | "pl" | "pt" | "ro" | "sk" | "sl" | "sv">>;
|
|
20
|
+
language: "bg" | "cs" | "da" | "de" | "de-at" | "el" | "el-cy" | "en" | "en-gb" | "en-nz" | "en-us" | "es" | "et" | "fi" | "fr" | "fr-ca" | "fr-lu" | "ga" | "hr" | "hu" | "it" | "lt" | "lv" | "mt" | "nl" | "nl-be" | "no" | "pl" | "pt" | "ro" | "sk" | "sl" | "sv";
|
|
21
|
+
questionnaire: import("../../types").Questionnaire;
|
|
22
|
+
externalValidations: import("../../types/client").ExternalValidations | undefined;
|
|
27
23
|
config: {
|
|
28
24
|
minimumAge: number;
|
|
29
25
|
} | undefined;
|
|
26
|
+
isSubmitting: boolean;
|
|
30
27
|
}, TaxDocumentationContextProvider: import("react").Provider<{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
isW8Ben: boolean;
|
|
34
|
-
isW8BenE: boolean;
|
|
35
|
-
isDac7: boolean;
|
|
36
|
-
onPersistAccountHolderData: (newData: import("../../types").TaxDocumentation) => void;
|
|
28
|
+
isBuildingW9: boolean;
|
|
29
|
+
isBuildingW8: boolean;
|
|
37
30
|
onPersistCollectedData: (newData: import("../../types").TaxDocumentation) => void;
|
|
38
31
|
onSubmitTaxDocumentation: (data: import("../../types").TaxDocumentation) => void;
|
|
39
32
|
error: string | undefined;
|
|
40
|
-
editTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
33
|
+
editTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
|
|
41
34
|
onCancel: (() => void) | undefined;
|
|
42
|
-
getStepId: (key: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
43
|
-
goTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
35
|
+
getStepId: (key: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => import("../../types/StepId").StepId;
|
|
36
|
+
goTo: (form: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary") => void;
|
|
44
37
|
goBack: (() => void) | undefined;
|
|
45
38
|
goToNext: (data: import("../../types").TaxDocumentation) => void;
|
|
46
39
|
progress: import("../../types").Progress | undefined;
|
|
47
|
-
stepName: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
40
|
+
stepName: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
|
|
48
41
|
data: import("../../types").TaxDocumentation;
|
|
49
42
|
originalClientData: import("../../types").TaxDocumentation;
|
|
50
|
-
initialStep: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "
|
|
51
|
-
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg
|
|
52
|
-
language: "bg
|
|
53
|
-
|
|
54
|
-
externalValidations: import("../../
|
|
43
|
+
initialStep: "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Confirmation" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
|
|
44
|
+
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg" | "cs" | "da" | "de" | "de-at" | "el" | "el-cy" | "en" | "en-gb" | "en-nz" | "en-us" | "es" | "et" | "fi" | "fr" | "fr-ca" | "fr-lu" | "ga" | "hr" | "hu" | "it" | "lt" | "lv" | "mt" | "nl" | "nl-be" | "no" | "pl" | "pt" | "ro" | "sk" | "sl" | "sv">>;
|
|
45
|
+
language: "bg" | "cs" | "da" | "de" | "de-at" | "el" | "el-cy" | "en" | "en-gb" | "en-nz" | "en-us" | "es" | "et" | "fi" | "fr" | "fr-ca" | "fr-lu" | "ga" | "hr" | "hu" | "it" | "lt" | "lv" | "mt" | "nl" | "nl-be" | "no" | "pl" | "pt" | "ro" | "sk" | "sl" | "sv";
|
|
46
|
+
questionnaire: import("../../types").Questionnaire;
|
|
47
|
+
externalValidations: import("../../types/client").ExternalValidations | undefined;
|
|
55
48
|
config: {
|
|
56
49
|
minimumAge: number;
|
|
57
50
|
} | undefined;
|
|
51
|
+
isSubmitting: boolean;
|
|
58
52
|
} | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './QuestionnaireUI';
|
|
2
|
+
export * from './TaxDocumentation';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TaxbitQuestionnairePersistProps } from 'widgets';
|
|
3
|
+
import { TaxbitQuestionnaireUIProps } from 'wizard';
|
|
4
|
+
export type TaxbitQuestionnaireProps = (TaxbitQuestionnaireUIProps & {
|
|
5
|
+
demoMode: true;
|
|
6
|
+
}) | (TaxbitQuestionnairePersistProps & {
|
|
7
|
+
demoMode?: false | undefined;
|
|
8
|
+
});
|
|
9
|
+
export declare const TaxbitQuestionnaire: ({ ...props }: TaxbitQuestionnaireProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TaxbitQuestionnaire';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export * from '../hooks/
|
|
1
|
+
export * from '../hooks/useTaxbit';
|
|
2
2
|
export * from '../types/Locale';
|
|
3
3
|
export * from '../types/Progress';
|
|
4
|
-
export * from '../types/
|
|
5
|
-
export * from '../types/
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '../widgets/TaxBitForm';
|
|
8
|
-
export * from '../wizard/TaxBitFormUI';
|
|
4
|
+
export * from '../types/Questionnaire';
|
|
5
|
+
export * from '../types/client/ClientTaxDocumentationStatus';
|
|
6
|
+
export * from './TaxbitQuestionnaire';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './useTaxbit';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SignedDatedComprehensiveTaxDocumentation } from '
|
|
1
|
+
import { SignedDatedComprehensiveTaxDocumentation } from '@taxbit/utilities';
|
|
2
2
|
export declare const serverTaxDocumentation: SignedDatedComprehensiveTaxDocumentation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useTaxbit';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Questionnaire } from 'types';
|
|
2
|
+
export declare const useTaxbit: (bearerToken: string, questionnaire: Questionnaire, staging?: boolean) => {
|
|
3
|
+
serverData: import("@taxbit/utilities").SignedClientTaxDocumentation | undefined;
|
|
4
|
+
statusData: import("../../entry").ClientTaxDocumentationStatus | undefined;
|
|
5
|
+
canGetDocumentUrl: boolean;
|
|
6
|
+
getNewDocumentUrl: () => void;
|
|
7
|
+
isGettingDocumentUrl: boolean;
|
|
8
|
+
documentUrl: string | undefined;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SignedClientTaxDocumentation } from '@taxbit/utilities';
|
|
2
|
+
import { Questionnaire } from 'types';
|
|
3
|
+
export declare const useTaxbitConnect: (bearerToken: string, questionnaire: Questionnaire, staging?: boolean) => {
|
|
4
|
+
doPostData: (data: SignedClientTaxDocumentation) => Promise<Response>;
|
|
5
|
+
formStatus: "COMPLETE" | "INCOMPLETE" | undefined;
|
|
6
|
+
serverData: SignedClientTaxDocumentation | undefined;
|
|
7
|
+
statusData: import("../../entry").ClientTaxDocumentationStatus | undefined;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SignedClientTaxDocumentation } from '@taxbit/utilities';
|
|
2
|
+
import { Questionnaire } from 'types';
|
|
3
|
+
import type { ClientTaxDocumentationStatus } from 'types/client';
|
|
4
|
+
export declare const useTaxbitStatus: (bearerToken: string, questionnaire: Questionnaire, staging?: boolean) => {
|
|
5
|
+
formStatus: "COMPLETE" | "INCOMPLETE" | undefined;
|
|
6
|
+
serverData: SignedClientTaxDocumentation | undefined;
|
|
7
|
+
statusData: ClientTaxDocumentationStatus | undefined;
|
|
8
|
+
};
|
package/dist/src/i18n/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getButtonText,
|
|
1
|
+
export { getButtonText, getErrorText, getOptionText, getPromptText, getSubPromptText, getSubTitleText, getTitleText, } from './utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bg: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cs: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const da: import("../types/PropertyFile").PropertyFile;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const deAt: PropertyFile;
|
|
1
|
+
export declare const deAt: import("../types/PropertyFile").PropertyFile;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { PartialDPSPropertyFile } from '../types/PropertyFile';
|
|
2
|
+
export declare const elCyTranslations: PartialDPSPropertyFile;
|
|
3
|
+
export declare const elCy: import("../types/PropertyFile").PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropertyFile } from '../types/PropertyFile';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const enNz: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropertyFile } from '../types/PropertyFile';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const en: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropertyFile } from '../types/PropertyFile';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const es: PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const et: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fi: import("../types/PropertyFile").PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropertyFile } from '../types/PropertyFile';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const frCa: PropertyFile;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const frLu: PropertyFile;
|
|
1
|
+
export declare const frLu: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hr: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hu: import("../types/PropertyFile").PropertyFile;
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
1
|
+
export * from './bg';
|
|
2
|
+
export * from './cs';
|
|
3
|
+
export * from './da';
|
|
4
|
+
export * from './de';
|
|
5
|
+
export * from './de-at';
|
|
6
|
+
export * from './el';
|
|
7
|
+
export * from './el-cy';
|
|
8
|
+
export * from './en';
|
|
9
|
+
export * from './en-gb';
|
|
10
|
+
export * from './en-nz';
|
|
11
|
+
export * from './en-us';
|
|
12
|
+
export * from './es';
|
|
13
|
+
export * from './et';
|
|
14
|
+
export * from './fi';
|
|
15
|
+
export * from './fr';
|
|
16
|
+
export * from './fr-ca';
|
|
17
|
+
export * from './fr-lu';
|
|
18
|
+
export * from './ga';
|
|
19
|
+
export * from './hr';
|
|
20
|
+
export * from './hu';
|
|
21
|
+
export * from './it';
|
|
22
|
+
export * from './lt';
|
|
23
|
+
export * from './lv';
|
|
24
|
+
export * from './mt';
|
|
25
|
+
export * from './nl';
|
|
26
|
+
export * from './nl-be';
|
|
27
|
+
export * from './no';
|
|
28
|
+
export * from './pl';
|
|
29
|
+
export * from './pt';
|
|
30
|
+
export * from './ro';
|
|
31
|
+
export * from './sk';
|
|
32
|
+
export * from './sl';
|
|
33
|
+
export * from './sv';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const it: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const lv: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
|
+
type DeepPartial<T> = T extends object ? {
|
|
3
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
4
|
+
} : T;
|
|
5
|
+
export declare const mergePropertyFiles: (a: PropertyFile, b: DeepPartial<PropertyFile> | Array<DeepPartial<PropertyFile>>) => PropertyFile;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mt: import("../types/PropertyFile").PropertyFile;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { PartialDPSPropertyFile } from '../types/PropertyFile';
|
|
2
|
+
export declare const nlBeTranslations: PartialDPSPropertyFile;
|
|
3
|
+
export declare const nlBe: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const nl: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const no: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pt: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ro: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sk: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sl: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sv: import("../types/PropertyFile").PropertyFile;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
|
+
export declare const translationRequired = "translation required";
|
|
3
|
+
export declare const translationRequiredForDPS = "translation required for DPS";
|
|
4
|
+
export declare const translationRequiredForWForm = "translation required for W-Form";
|
|
5
|
+
export declare const translationMissing: PropertyFile;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type ButtonKey = 'edit' | 'back' | 'next' | 'reset' | 'submit' | 'cancel' | 'hide' | 'show';
|
|
2
|
-
export type ErrorKey = 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeNineDigits' | '
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
2
|
+
export type ErrorKey = 'countryMustBeAResidenceCountry' | 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeNineDigits' | 'mustBeNinoFormat' | 'mustBeCaPostalCodeFormat' | 'mustBeInVatinFormat' | 'mustBeValidBirthDate' | 'mustBeAtLeast18' | 'mustMatchName' | 'mustNotMatchVatin' | 'required' | 'residencesMustIncludeAddressCountry' | 'residencesMustIncludeAnEUCountry' | 'residencesMustIncludeVatCountry' | 'tooLong' | 'tooShort' | 'vatinMustNotMatchResidencyTin';
|
|
3
|
+
export type SubOptionKey = 'accountHolderUsAccountType_SOLE_PROPRIETOR' | 'accountHolderUsAccountType_SM_LLC' | 'accountHolderUsAccountType_DISREGARDED_ENTITY';
|
|
4
|
+
export type OptionKey = 'accountHolderUsPerson_yes' | 'accountHolderUsPerson_no' | 'usTrustEstateEin_yes' | 'usTrustEstateEin_no' | 'usSoleProprietorEin_yes' | 'usSoleProprietorEin_no' | 'regardedOwnerUsPerson_yes' | 'regardedOwnerUsPerson_no' | 'smllcOwnerUsPerson_yes' | 'smllcOwnerUsPerson_no' | 'smllcElection_yes' | 'smllcElection_no' | 'isIndividual_yes' | 'isIndividual_no' | 'no' | 'yes' | 'CENTRAL_BANK_OF_ISSUE' | 'COMPLEX_TRUST' | 'CORPORATION' | 'C_CORPORATION' | 'DISREGARDED_ENTITY' | 'ESTATE' | 'FOREIGN_GOVERNMENT_CONTROLLED_ENTITY' | 'FOREIGN_GOVERNMENT_INTEGRAL_PART' | 'GRANTOR_TRUST' | 'INDIVIDUAL' | 'INTERNATIONAL_ORGANIZATION' | 'LLC' | 'OTHER' | 'PARTNERSHIP' | 'PRIVATE_FOUNDATION' | 'SIMPLE_TRUST' | 'SM_LLC' | 'SOLE_PROPRIETOR' | 'S_CORPORATION' | 'TAX_EXEMPT_ORGANIZATION' | 'TRUST' | 'TRUST_ESTATE';
|
|
5
|
+
export type PromptKey = 'addAdditional' | 'address' | 'businessRegistrationNumber' | 'businessRegistrationCountry' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'dbaName' | 'exemptPayeeCode' | 'exemptFatcaCode' | 'financialAccountIdentifier' | 'financialAccountName' | 'foreignAccountType' | 'foreignOtherClassification' | 'foreignTin' | 'foreignTinIsNotRequired' | 'foreignTrustClassification' | 'isIndividual' | 'iAcknowledgeESignIsOk' | 'iAmACitizenOfTheUs' | 'iAmExemptFromFatcaReporting' | 'iAmNotSubjectToBackupWithholding' | 'iAuthorizeWithholdingAgent' | 'iCertifyToAll' | 'iConfirmIncomeIsNonUs' | 'iConfirmTheBeneficialOwnerIsExempt' | 'iConfirmTheInformationIsCorrectComplete' | 'iConfirmTheEntityIsNotAUsPerson' | 'iConfirmTheEntityIsTheBeneficialOwner' | 'iConfirmTheIndividualIsNotAUsPerson' | 'iConfirmTheIndividualIsTheBeneficialOwner' | 'iConfirmTheIndividualIsResidentOfTreatyCountry' | 'iConfirmTheTaxIdIsCorrect' | 'iHaveCapacityToSignForEntity' | 'iHaveCapacityToSignForIndividual' | 'mailingAddress' | 'mailingAddressIsDifferent' | 'month' | 'name' | 'nameOfDisregardedEntity' | 'nameOfEntity' | 'nameOfCCorporation' | 'nameOfCorporation' | 'nameOfIndividual' | 'nameOfIndividualSoleProprietor' | 'nameOfLlc' | 'nameOfOrganization' | 'nameOfPartnership' | 'nameOfSCorporation' | 'nameOfSmllc' | 'nameOfSmllcOwner' | 'nameOfSoleProprietor' | 'nameOfTrustEstate' | 'nameOfTrust' | 'province' | 'referenceNumbers' | 'regardedOwnerUsPerson' | 'regardedOwnerAccountType' | 'removeResidence' | 'signature' | 'smllcElection' | 'smllcOwnerAccountType' | 'smllcOwnerUsPerson' | 'state' | 'stateProvince' | 'street' | 'street2' | 'taxIdNumber' | 'taxIdNumberIsNotRequired' | 'tin' | 'tinUkCrn' | 'tinUkNino' | 'usAccountType' | 'usLlcClassification' | 'usOtherClassification' | 'usPerson' | 'usEin' | 'usSoleProprietorEin' | 'usSsn' | 'usTin' | 'usTrustEstateEin' | 'vatIdentificationNumber' | 'vatIsNotRequired' | 'vatCountry' | 'year' | 'zip';
|
|
6
|
+
export type SubPromptKey = 'smllcElection' | 'iConfirmIncomeIsNonUs' | 'isIndividual' | 'financialAccountIdentifier' | 'financialAccountName' | 'vatIdentificationNumber' | 'placeOfBirth' | 'referenceNumbers' | 'signature' | 'streetIsPermanent' | 'usPerson';
|
|
7
|
+
export type TitleKey = 'accountHolder' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxClarification' | 'address' | 'acknowledge' | 'certify' | 'confirmation' | 'countryOfCitizenship' | 'countryOfIncorporation' | 'exemptions' | 'mailingAddress' | 'primaryAddress' | 'permanentAddress' | 'placeOfBirth' | 'regardedOwner' | 'regardedOwnerClassification' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'signature' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5';
|
|
8
|
+
export type SubTitleKey = 'taxResidences' | 'permanentAddress';
|
|
9
|
+
export type TextKey = 'eSignActReference' | 'notRequired' | 'notRequiredOrNotIssued' | 'interviewIsComplete' | 'penaltyOfPerjury' | 'penaltiesOfPerjury' | 'retrievingInterviewStatus' | 'taxDocumentationSaved';
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CountryCode } from 'types/CountryCode';
|
|
3
|
-
import { MonthCode } from 'types/MonthCode';
|
|
4
|
-
import { UsStateCode } from 'types/UsStateCode';
|
|
5
|
-
import { ButtonKey, ErrorKey, HintKey, OptionKey, PromptKey, SubPromptKey, SubTitleKey, TextKey, TitleKey } from './LocalizationKey';
|
|
1
|
+
import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubOptionKey, SubPromptKey, SubTitleKey, TextKey, TitleKey } from './LocalizationKey';
|
|
6
2
|
export type PropertyFile = {
|
|
7
3
|
button: {
|
|
8
4
|
[key in ButtonKey]: string;
|
|
@@ -25,22 +21,30 @@ export type PropertyFile = {
|
|
|
25
21
|
option: {
|
|
26
22
|
[key in OptionKey]: string;
|
|
27
23
|
};
|
|
28
|
-
|
|
29
|
-
[key in
|
|
30
|
-
};
|
|
31
|
-
usState: {
|
|
32
|
-
[key in UsStateCode]: string;
|
|
33
|
-
};
|
|
34
|
-
caProvince: {
|
|
35
|
-
[key in CaProvinceCode]: string;
|
|
24
|
+
subOption: {
|
|
25
|
+
[key in SubOptionKey]: string;
|
|
36
26
|
};
|
|
37
27
|
text: {
|
|
38
28
|
[key in TextKey]: string;
|
|
39
29
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
};
|
|
31
|
+
export type DPSPropertyFile = {
|
|
32
|
+
button: PropertyFile['button'];
|
|
33
|
+
prompt: Pick<PropertyFile['prompt'], 'addAdditional' | 'address' | 'businessRegistrationCountry' | 'businessRegistrationNumber' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'financialAccountIdentifier' | 'financialAccountName' | 'iConfirmTheInformationIsCorrectComplete' | 'isIndividual' | 'month' | 'name' | 'nameOfEntity' | 'nameOfIndividual' | 'province' | 'removeResidence' | 'state' | 'stateProvince' | 'street' | 'street2' | 'taxIdNumber' | 'taxIdNumberIsNotRequired' | 'tin' | 'tinUkCrn' | 'tinUkNino' | 'usTin' | 'vatCountry' | 'vatIdentificationNumber' | 'vatIsNotRequired' | 'year' | 'zip'>;
|
|
34
|
+
subPrompt: Pick<PropertyFile['subPrompt'], 'financialAccountIdentifier' | 'financialAccountName' | 'isIndividual' | 'placeOfBirth' | 'streetIsPermanent' | 'vatIdentificationNumber'>;
|
|
35
|
+
subTitle: Pick<PropertyFile['subTitle'], 'taxResidences'>;
|
|
36
|
+
title: Pick<PropertyFile['title'], 'accountHolder' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxClarification' | 'address' | 'confirmation' | 'countryOfCitizenship' | 'countryOfIncorporation' | 'permanentAddress' | 'placeOfBirth' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5'>;
|
|
37
|
+
text: Pick<PropertyFile['text'], 'interviewIsComplete' | 'notRequired' | 'notRequiredOrNotIssued' | 'retrievingInterviewStatus' | 'taxDocumentationSaved'>;
|
|
38
|
+
error: Pick<PropertyFile['error'], 'countryMustBeAResidenceCountry' | 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeAtLeast18' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeInVatinFormat' | 'mustBeNineDigits' | 'mustBeNinoFormat' | 'mustBeCaPostalCodeFormat' | 'mustBeValidBirthDate' | 'mustNotMatchVatin' | 'required' | 'residencesMustIncludeAddressCountry' | 'residencesMustIncludeAnEUCountry' | 'residencesMustIncludeVatCountry' | 'tooLong' | 'tooShort' | 'vatinMustNotMatchResidencyTin'>;
|
|
39
|
+
option: Pick<PropertyFile['option'], 'no' | 'yes' | 'isIndividual_yes' | 'isIndividual_no'>;
|
|
40
|
+
};
|
|
41
|
+
export type PartialDPSPropertyFile = {
|
|
42
|
+
button?: Partial<DPSPropertyFile['button']>;
|
|
43
|
+
prompt?: Partial<DPSPropertyFile['prompt']>;
|
|
44
|
+
subPrompt?: Partial<DPSPropertyFile['subPrompt']>;
|
|
45
|
+
subTitle?: Partial<DPSPropertyFile['subTitle']>;
|
|
46
|
+
title?: Partial<DPSPropertyFile['title']>;
|
|
47
|
+
text?: Partial<DPSPropertyFile['text']>;
|
|
48
|
+
error?: Partial<DPSPropertyFile['error']>;
|
|
49
|
+
option?: Partial<DPSPropertyFile['option']>;
|
|
46
50
|
};
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { CaProvinceCode } from 'types/CaProvinceCode';
|
|
2
|
-
import { CountryCode } from 'types/CountryCode';
|
|
3
|
-
import { UsStateCode } from 'types/UsStateCode';
|
|
4
1
|
import { Locale } from '../../types';
|
|
5
|
-
import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubPromptKey, SubTitleKey, TextKey } from '../types';
|
|
2
|
+
import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubOptionKey, SubPromptKey, SubTitleKey, TextKey } from '../types';
|
|
6
3
|
export declare const getPromptText: (key: PromptKey, locale: Locale | undefined) => string;
|
|
7
4
|
export declare const getSubPromptText: (key: SubPromptKey, locale: Locale | undefined) => string;
|
|
8
5
|
export declare const getErrorText: (key: ErrorKey, locale: Locale | undefined) => string;
|
|
9
|
-
export declare const getHintText: (key: string | undefined, locale: Locale | undefined) => string | undefined;
|
|
10
6
|
export declare const getTextText: (key: TextKey, locale: Locale | undefined) => string;
|
|
11
7
|
export declare const getTitleText: (key: string, locale: Locale | undefined) => string;
|
|
12
8
|
export declare const getSubTitleText: (key: SubTitleKey, locale: Locale | undefined) => string;
|
|
13
9
|
export declare const getButtonText: (key: ButtonKey, locale: Locale | undefined) => string;
|
|
14
10
|
export declare const getOptionText: (key: OptionKey | undefined, locale: Locale | undefined) => string;
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const getUsStateText: (key: UsStateCode, locale: Locale | undefined) => string;
|
|
17
|
-
export declare const getCaProvinceText: (key: CaProvinceCode, locale: Locale | undefined) => string;
|
|
18
|
-
export declare const getMonthText: (key: string, locale: Locale | undefined) => string;
|
|
11
|
+
export declare const getSubOptionText: (key: SubOptionKey | undefined, locale: Locale | undefined) => string | undefined;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const countryOptions: {
|
|
3
|
-
value: CountryCode;
|
|
4
|
-
}[];
|
|
5
|
-
export declare const eUCountryOptions: {
|
|
6
|
-
value: "NL" | "SK" | "AT" | "BE" | "BG" | "CY" | "CZ" | "DE" | "DK" | "EE" | "ES" | "FI" | "FR" | "GR" | "HR" | "HU" | "IE" | "IT" | "LT" | "LU" | "LV" | "MT" | "PL" | "PT" | "RO" | "SE" | "SI";
|
|
7
|
-
}[];
|
|
1
|
+
export declare const euCountryCodes: string[];
|
|
8
2
|
export declare const isEuCountryCode: (countryCode: string | undefined) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const dayOptions: {
|
|
2
|
-
value: "
|
|
2
|
+
value: "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31";
|
|
3
3
|
}[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type FatcaCode = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
|
|
2
1
|
export declare const fatcaCodeOptions: {
|
|
3
|
-
|
|
2
|
+
label: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
|
|
3
|
+
value: "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M";
|
|
4
4
|
}[];
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
export declare const foreignAccountHolderAccountTypeOptions:
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
readonly value: "corporation";
|
|
5
|
-
}, {
|
|
6
|
-
readonly value: "partnership";
|
|
7
|
-
}, {
|
|
8
|
-
readonly value: "trust";
|
|
9
|
-
}, {
|
|
10
|
-
readonly value: "other";
|
|
11
|
-
}, {
|
|
12
|
-
readonly value: "disregardedEntity";
|
|
13
|
-
}];
|
|
14
|
-
export declare const foreignAccountHolderAccountTypes: ("individual" | "other" | "trust" | "corporation" | "partnership" | "disregardedEntity")[];
|
|
15
|
-
export type ForeignAccountHolderAccountType = (typeof foreignAccountHolderAccountTypeOptions)[number]["value"];
|
|
1
|
+
export declare const foreignAccountHolderAccountTypeOptions: {
|
|
2
|
+
value: "INDIVIDUAL" | "CORPORATION" | "PARTNERSHIP" | "TRUST" | "OTHER" | "DISREGARDED_ENTITY";
|
|
3
|
+
}[];
|