@taxbit/react-sdk 0.1.0 → 0.2.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 +79 -243
- package/dist/App.d.ts +1 -1
- package/dist/basic.css +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +2 -2
- package/dist/components/Form/Form.d.ts +8 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Notification/Notification.d.ts +2 -2
- package/dist/components/Row/Row.d.ts +2 -2
- package/dist/components/index.d.ts +7 -7
- package/dist/contexts/FormUI/index.d.ts +3 -3
- package/dist/contexts/FormUI/useFormUI.d.ts +17 -117
- package/dist/contexts/FormUI/useFormUIContext.d.ts +30 -626
- package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +6 -4
- package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +11 -10
- package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +194 -110
- package/dist/entry/index.d.ts +5 -5
- package/dist/hooks/useTaxBit/useTaxBit.d.ts +108 -4
- package/dist/i18n/locales/bg-bg.d.ts +1 -1
- package/dist/i18n/locales/cs-cz.d.ts +1 -1
- package/dist/i18n/locales/da-dk.d.ts +2 -0
- package/dist/i18n/locales/de-at.d.ts +2 -0
- package/dist/i18n/locales/de-de.d.ts +1 -1
- package/dist/i18n/locales/el-cy.d.ts +2 -0
- package/dist/i18n/locales/el-gr.d.ts +1 -1
- package/dist/i18n/locales/en-gb.d.ts +1 -1
- package/dist/i18n/locales/en-us.d.ts +1 -1
- package/dist/i18n/locales/es-es.d.ts +1 -1
- package/dist/i18n/locales/et-ee.d.ts +1 -1
- package/dist/i18n/locales/fi-fi.d.ts +2 -0
- package/dist/i18n/locales/fr-fr.d.ts +1 -1
- package/dist/i18n/locales/fr-lu.d.ts +2 -0
- package/dist/i18n/locales/ga-ie.d.ts +2 -0
- package/dist/i18n/locales/hr-hr.d.ts +2 -0
- package/dist/i18n/locales/hu-hu.d.ts +1 -1
- package/dist/i18n/locales/index.d.ts +18 -7
- package/dist/i18n/locales/it-it.d.ts +1 -1
- package/dist/i18n/locales/lt-lt.d.ts +2 -0
- package/dist/i18n/locales/lv-lv.d.ts +2 -0
- package/dist/i18n/locales/mt-mt.d.ts +1 -1
- package/dist/i18n/locales/nl-be.d.ts +2 -0
- package/dist/i18n/locales/nl-nl.d.ts +1 -1
- package/dist/i18n/locales/no-no.d.ts +1 -1
- package/dist/i18n/locales/pl-pl.d.ts +2 -0
- package/dist/i18n/locales/pt-pt.d.ts +1 -1
- package/dist/i18n/locales/ro-ro.d.ts +1 -1
- package/dist/i18n/locales/sk-sk.d.ts +1 -1
- package/dist/i18n/locales/sl-si.d.ts +1 -1
- package/dist/i18n/locales/sv-se.d.ts +1 -1
- package/dist/i18n/types/LocalizationKey.d.ts +10 -11
- package/dist/inline.css +1 -1
- package/dist/lookups/toOptions.d.ts +3 -0
- package/dist/services/api.d.ts +3 -2
- package/dist/taxbit-react-sdk.es.js +16961 -10199
- package/dist/taxbit-react-sdk.umd.js +10 -10
- package/dist/test/Wrapper.d.ts +7 -0
- package/dist/test/getWrapper.d.ts +4 -0
- package/dist/test/index.d.ts +2 -0
- package/dist/types/Locale.d.ts +1 -1
- package/dist/types/TaxDocumentation.d.ts +8 -4
- package/dist/types/client/index.d.ts +6 -0
- package/dist/types/{external → server}/ComprehensiveTaxDocumentation.d.ts +3 -14
- package/dist/types/server/TaxDocumentationStatus.d.ts +9 -0
- package/dist/types/server/enums.d.ts +13 -0
- package/dist/types/server/index.d.ts +3 -0
- package/dist/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
- package/dist/ui/DateOfBirthInput/__tests__/useDateOfBirthInput.test.d.ts +1 -0
- package/dist/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +20 -0
- package/dist/ui/Password/Password.d.ts +2 -3
- package/dist/ui/RadioButtons/RadioButtons.d.ts +3 -3
- package/dist/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -0
- package/dist/utils/getFieldsState.d.ts +4 -3
- package/dist/utils/getHintKeyMap.d.ts +4 -2
- package/dist/utils/getPromptKeyMap.d.ts +6 -4
- package/dist/utils/index.d.ts +10 -15
- package/dist/utils/kebabCase.d.ts +1 -0
- package/dist/utils/{getForeignAccountType.d.ts → transformInbound/getForeignAccountType.d.ts} +1 -1
- package/dist/utils/{getForeignOtherClassification.d.ts → transformInbound/getForeignOtherClassification.d.ts} +1 -1
- package/dist/utils/{getForeignTrustClassification.d.ts → transformInbound/getForeignTrustClassification.d.ts} +1 -1
- package/dist/utils/{getLLCClassification.d.ts → transformInbound/getLLCClassification.d.ts} +1 -1
- package/dist/utils/{getUsAccountType.d.ts → transformInbound/getUsAccountType.d.ts} +1 -1
- package/dist/utils/transformInbound/index.d.ts +6 -0
- package/dist/utils/transformInbound/transformInbound.d.ts +3 -0
- package/dist/utils/transformOutbound/index.d.ts +6 -0
- package/dist/utils/transformOutbound/transformOutbound.d.ts +2 -2
- package/dist/utils/transformOutbound/transformToOutboundAccoutHolder.d.ts +3 -3
- package/dist/utils/transformOutbound/transformToOutboundAddress.d.ts +2 -2
- package/dist/utils/transformOutbound/transformToOutboundRegardedOwner.d.ts +2 -2
- package/dist/utils/transformOutbound/transformToOutboundTaxResidenceFields.d.ts +3 -4
- package/dist/validations/getInvalidFields.d.ts +3 -0
- package/dist/validations/getNotifiedFields.d.ts +10 -0
- package/dist/validations/getRequiredFields.d.ts +3 -0
- package/dist/validations/getSubmittableFields.d.ts +3 -0
- package/dist/{utils → validations}/getSupportedFields.d.ts +1 -1
- package/dist/validations/getVisibleFields.d.ts +3 -0
- package/dist/validations/index.d.ts +7 -2
- package/dist/validations/invalidFieldRules.d.ts +7 -0
- package/dist/validations/{requiredFields.d.ts → requiredFieldRules.d.ts} +3 -3
- package/dist/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +4 -11
- package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +7 -6
- package/dist/wizard/AddressInput/AddressInput.d.ts +3 -3
- package/dist/wizard/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +1 -1
- package/dist/wizard/ResidenceInput/ResidenceInput.d.ts +3 -3
- package/dist/wizard/RowInput/ErrorRow/ErrorRow.d.ts +6 -0
- package/dist/wizard/RowInput/ErrorRow/index.d.ts +1 -0
- package/dist/wizard/RowInput/VisibleRow/VisibleRow.d.ts +2 -2
- package/dist/wizard/RowInput/index.d.ts +7 -6
- package/dist/wizard/TaxBitFormUI/AccountHolderClassification/AccountHolderClassification.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/AccountHolderContact/AccountHolderContact.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/AccountHolderTax/AccountHolderTax.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/Exemptions/Exemptions.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/Summary/Recap.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/Summary/Summary.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +3 -9
- package/dist/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +6 -6
- package/package.json +17 -10
- package/dist/components/Page/Page.d.ts +0 -8
- package/dist/components/Page/index.d.ts +0 -1
- package/dist/types/external/index.d.ts +0 -1
- package/dist/utils/getNotifications.d.ts +0 -10
- package/dist/utils/getRequiredFields.d.ts +0 -103
- package/dist/utils/getValidationMessages.d.ts +0 -104
- package/dist/utils/getVisibleQuestions.d.ts +0 -6
- package/dist/utils/transformInbound.d.ts +0 -3
- package/dist/validations/validations.d.ts +0 -7
- /package/dist/{taxbit-react-sdk.es.d.ts → index.d.ts} +0 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { Locale,
|
|
3
|
-
import { ClientTaxDocumentation } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Locale, TaxDocumentation, TaxForm } from '../../types';
|
|
3
|
+
import { ClientTaxDocumentation } from '../../types/client';
|
|
4
|
+
import { InputStep } from './useTaxDocumentation';
|
|
4
5
|
type TaxDocumentationProviderProps = {
|
|
5
6
|
data?: ClientTaxDocumentation;
|
|
6
7
|
onSubmit: (data: TaxDocumentation) => void;
|
|
7
8
|
language?: Locale;
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
taxForms?: TaxForm[];
|
|
11
|
+
step?: InputStep;
|
|
10
12
|
};
|
|
11
|
-
export declare const TaxBitFormProvider: ({ data, onSubmit, language, taxForms, children, }: TaxDocumentationProviderProps) => React.JSX.Element;
|
|
13
|
+
export declare const TaxBitFormProvider: ({ data, onSubmit, language, taxForms, step, children, }: TaxDocumentationProviderProps) => React.JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
import { Locale } from
|
|
4
|
-
import { ClientTaxDocumentation } from
|
|
5
|
-
type InputStep =
|
|
2
|
+
import type { TaxDocumentation, TaxForm } from 'types';
|
|
3
|
+
import { Locale } from 'types';
|
|
4
|
+
import { ClientTaxDocumentation } from '../../types/client';
|
|
5
|
+
export type InputStep = 'AccountHolderClassification' | 'AccountHolderContact' | 'AccountHolderTax' | 'AccountHolderTaxClarification' | 'Exemptions' | 'RegardedOwnerClassification' | 'RegardedOwnerContact' | 'RegardedOwnerTax' | 'Summary';
|
|
6
6
|
type UseTaxDocumentationProps = {
|
|
7
7
|
data: ClientTaxDocumentation;
|
|
8
|
-
onSubmit: (transformedData: TaxDocumentation) => void;
|
|
9
8
|
language?: Locale;
|
|
9
|
+
onSubmit: (transformedData: TaxDocumentation) => void;
|
|
10
|
+
step?: InputStep;
|
|
10
11
|
taxForms?: TaxForm[];
|
|
11
12
|
};
|
|
12
|
-
export declare const useTaxDocumentation: ({ data: initialData, onSubmit,
|
|
13
|
+
export declare const useTaxDocumentation: ({ data: initialData, language: initialLanguage, onSubmit, step: initialStep, taxForms: supportedForms, }: UseTaxDocumentationProps) => {
|
|
13
14
|
isW9: boolean;
|
|
14
15
|
isW8: boolean;
|
|
15
16
|
isW8Ben: boolean;
|
|
16
17
|
isW8BenE: boolean;
|
|
17
|
-
isDac7: boolean;
|
|
18
|
+
isDac7: boolean | undefined;
|
|
18
19
|
onPersistAccountHolderData: (newData: TaxDocumentation) => void;
|
|
19
20
|
onPersistCollectedData: (newData: TaxDocumentation) => void;
|
|
20
|
-
onSubmitTaxDocumentation: (
|
|
21
|
+
onSubmitTaxDocumentation: (submitFields: TaxDocumentation) => void;
|
|
21
22
|
onResetTaxDocumentation: (data: ClientTaxDocumentation) => void;
|
|
22
23
|
editTo: (form: InputStep) => void;
|
|
23
24
|
onCancel: (() => void) | undefined;
|
|
@@ -26,8 +27,8 @@ export declare const useTaxDocumentation: ({ data: initialData, onSubmit, langua
|
|
|
26
27
|
goToNext: (data: TaxDocumentation) => void;
|
|
27
28
|
stepName: InputStep;
|
|
28
29
|
data: TaxDocumentation;
|
|
29
|
-
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg-bg" | "cs-cz" | "de-de" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fr-fr" | "hu-hu" | "it-it" | "mt-mt" | "nl-nl" | "no-no" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se">>;
|
|
30
|
-
language: "bg-bg" | "cs-cz" | "de-de" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fr-fr" | "hu-hu" | "it-it" | "mt-mt" | "nl-nl" | "no-no" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se";
|
|
30
|
+
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg-bg" | "cs-cz" | "da-dk" | "de-at" | "de-de" | "el-cy" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fi-fi" | "fr-fr" | "fr-lu" | "ga-ie" | "hr-hr" | "hu-hu" | "it-it" | "lt-lt" | "lv-lv" | "mt-mt" | "nl-be" | "nl-nl" | "no-no" | "pl-pl" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se">>;
|
|
31
|
+
language: "bg-bg" | "cs-cz" | "da-dk" | "de-at" | "de-de" | "el-cy" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fi-fi" | "fr-fr" | "fr-lu" | "ga-ie" | "hr-hr" | "hu-hu" | "it-it" | "lt-lt" | "lv-lv" | "mt-mt" | "nl-be" | "nl-nl" | "no-no" | "pl-pl" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se";
|
|
31
32
|
supportedForms: TaxForm[];
|
|
32
33
|
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<TaxForm[]>>;
|
|
33
34
|
};
|
|
@@ -4,71 +4,113 @@ export declare const useTaxDocumentationContext: () => {
|
|
|
4
4
|
isW8: boolean;
|
|
5
5
|
isW8Ben: boolean;
|
|
6
6
|
isW8BenE: boolean;
|
|
7
|
-
isDac7: boolean;
|
|
7
|
+
isDac7: boolean | undefined;
|
|
8
8
|
onPersistAccountHolderData: (newData: import("../../types").TaxDocumentation) => void;
|
|
9
9
|
onPersistCollectedData: (newData: import("../../types").TaxDocumentation) => void;
|
|
10
|
-
onSubmitTaxDocumentation: (
|
|
10
|
+
onSubmitTaxDocumentation: (submitFields: import("../../types").TaxDocumentation) => void;
|
|
11
11
|
onResetTaxDocumentation: (data: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
accountHolder?: {
|
|
13
|
+
address?: {
|
|
14
|
+
city?: string | undefined;
|
|
15
|
+
country?: string | undefined;
|
|
16
|
+
stateOrProvince?: string | undefined;
|
|
17
|
+
firstLine?: string | undefined;
|
|
18
|
+
secondLine?: string | undefined;
|
|
19
|
+
postalCode?: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
countryOfCitizenship?: string | undefined;
|
|
22
|
+
dateOfBirth?: string | undefined;
|
|
23
|
+
dbaName?: string | undefined;
|
|
24
|
+
mailingAddress?: {
|
|
25
|
+
city?: string | undefined;
|
|
26
|
+
country?: string | undefined;
|
|
27
|
+
stateOrProvince?: string | undefined;
|
|
28
|
+
firstLine?: string | undefined;
|
|
29
|
+
secondLine?: string | undefined;
|
|
30
|
+
postalCode?: string | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
mailingAddressIsDifferent?: boolean | undefined;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
cityOfBirth?: string | undefined;
|
|
35
|
+
countryOfBirth?: string | undefined;
|
|
36
|
+
financialAccountIdentifier?: string | undefined;
|
|
37
|
+
financialAccountName?: string | undefined;
|
|
38
|
+
ftin?: string | undefined;
|
|
39
|
+
ftinNotLegallyRequired?: boolean | undefined;
|
|
40
|
+
taxResidences?: {
|
|
41
|
+
country?: string | undefined;
|
|
42
|
+
tin?: string | undefined;
|
|
43
|
+
tinNotRequired?: boolean | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
tin?: string | undefined;
|
|
46
|
+
vatin?: string | undefined;
|
|
47
|
+
vatinCountry?: string | undefined;
|
|
48
|
+
vatinNotRequired?: boolean | undefined;
|
|
49
|
+
exemptFatcaCode?: string | undefined;
|
|
50
|
+
exemptPayeeCode?: string | undefined;
|
|
51
|
+
isIndividual?: boolean | undefined;
|
|
52
|
+
isEuResident?: boolean | undefined;
|
|
53
|
+
isUsPerson?: boolean | undefined;
|
|
54
|
+
usAccountType?: string | undefined;
|
|
55
|
+
usSmllcElection?: boolean | undefined;
|
|
56
|
+
usLlcClassification?: string | undefined;
|
|
57
|
+
usOtherClassification?: string | undefined;
|
|
58
|
+
usTrustEstateEin?: boolean | undefined;
|
|
59
|
+
foreignAccountType?: string | undefined;
|
|
60
|
+
foreignTrustClassification?: string | undefined;
|
|
61
|
+
foreignOtherClassification?: string | undefined;
|
|
30
62
|
} | undefined;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
63
|
+
regardedOwner?: {
|
|
64
|
+
address?: {
|
|
65
|
+
city?: string | undefined;
|
|
66
|
+
country?: string | undefined;
|
|
67
|
+
stateOrProvince?: string | undefined;
|
|
68
|
+
firstLine?: string | undefined;
|
|
69
|
+
secondLine?: string | undefined;
|
|
70
|
+
postalCode?: string | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
countryOfCitizenship?: string | undefined;
|
|
73
|
+
dateOfBirth?: string | undefined;
|
|
74
|
+
dbaName?: string | undefined;
|
|
75
|
+
mailingAddress?: {
|
|
76
|
+
city?: string | undefined;
|
|
77
|
+
country?: string | undefined;
|
|
78
|
+
stateOrProvince?: string | undefined;
|
|
79
|
+
firstLine?: string | undefined;
|
|
80
|
+
secondLine?: string | undefined;
|
|
81
|
+
postalCode?: string | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
mailingAddressIsDifferent?: boolean | undefined;
|
|
84
|
+
name?: string | undefined;
|
|
85
|
+
ftin?: string | undefined;
|
|
86
|
+
ftinNotLegallyRequired?: boolean | undefined;
|
|
41
87
|
tin?: string | undefined;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
usTrustEstateEin?: boolean | undefined;
|
|
59
|
-
foreignAccountType?: string | undefined;
|
|
60
|
-
foreignTrustClassification?: string | undefined;
|
|
61
|
-
foreignOtherClassification?: string | undefined;
|
|
88
|
+
exemptFatcaCode?: string | undefined;
|
|
89
|
+
exemptPayeeCode?: string | undefined;
|
|
90
|
+
isUsPerson?: boolean | undefined;
|
|
91
|
+
usAccountType?: string | undefined;
|
|
92
|
+
usLlcClassification?: string | undefined;
|
|
93
|
+
usOtherClassification?: string | undefined;
|
|
94
|
+
usTrustEstateEin?: boolean | undefined;
|
|
95
|
+
foreignAccountType?: string | undefined;
|
|
96
|
+
foreignTrustClassification?: string | undefined;
|
|
97
|
+
foreignOtherClassification?: string | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
hasCertified?: boolean | undefined;
|
|
100
|
+
isNotSubjectBackupWithholding?: boolean | undefined;
|
|
101
|
+
signature?: string | undefined;
|
|
102
|
+
documentType?: "COMPREHENSIVE" | undefined;
|
|
103
|
+
source?: string | undefined;
|
|
62
104
|
}) => void;
|
|
63
|
-
editTo: (form: "
|
|
105
|
+
editTo: (form: import("./useTaxDocumentation").InputStep) => void;
|
|
64
106
|
onCancel: (() => void) | undefined;
|
|
65
|
-
goTo: (form: "
|
|
107
|
+
goTo: (form: import("./useTaxDocumentation").InputStep) => void;
|
|
66
108
|
goBack: (() => void) | undefined;
|
|
67
109
|
goToNext: (data: import("../../types").TaxDocumentation) => void;
|
|
68
|
-
stepName: "
|
|
110
|
+
stepName: import("./useTaxDocumentation").InputStep;
|
|
69
111
|
data: import("../../types").TaxDocumentation;
|
|
70
|
-
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg-bg" | "cs-cz" | "de-de" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fr-fr" | "hu-hu" | "it-it" | "mt-mt" | "nl-nl" | "no-no" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se">>;
|
|
71
|
-
language: "bg-bg" | "cs-cz" | "de-de" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fr-fr" | "hu-hu" | "it-it" | "mt-mt" | "nl-nl" | "no-no" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se";
|
|
112
|
+
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg-bg" | "cs-cz" | "da-dk" | "de-at" | "de-de" | "el-cy" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fi-fi" | "fr-fr" | "fr-lu" | "ga-ie" | "hr-hr" | "hu-hu" | "it-it" | "lt-lt" | "lv-lv" | "mt-mt" | "nl-be" | "nl-nl" | "no-no" | "pl-pl" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se">>;
|
|
113
|
+
language: "bg-bg" | "cs-cz" | "da-dk" | "de-at" | "de-de" | "el-cy" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fi-fi" | "fr-fr" | "fr-lu" | "ga-ie" | "hr-hr" | "hu-hu" | "it-it" | "lt-lt" | "lv-lv" | "mt-mt" | "nl-be" | "nl-nl" | "no-no" | "pl-pl" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se";
|
|
72
114
|
supportedForms: import("../../types").TaxForm[];
|
|
73
115
|
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types").TaxForm[]>>;
|
|
74
116
|
}, TaxDocumentationContextProvider: import("react").Provider<{
|
|
@@ -76,71 +118,113 @@ export declare const useTaxDocumentationContext: () => {
|
|
|
76
118
|
isW8: boolean;
|
|
77
119
|
isW8Ben: boolean;
|
|
78
120
|
isW8BenE: boolean;
|
|
79
|
-
isDac7: boolean;
|
|
121
|
+
isDac7: boolean | undefined;
|
|
80
122
|
onPersistAccountHolderData: (newData: import("../../types").TaxDocumentation) => void;
|
|
81
123
|
onPersistCollectedData: (newData: import("../../types").TaxDocumentation) => void;
|
|
82
|
-
onSubmitTaxDocumentation: (
|
|
124
|
+
onSubmitTaxDocumentation: (submitFields: import("../../types").TaxDocumentation) => void;
|
|
83
125
|
onResetTaxDocumentation: (data: {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
126
|
+
accountHolder?: {
|
|
127
|
+
address?: {
|
|
128
|
+
city?: string | undefined;
|
|
129
|
+
country?: string | undefined;
|
|
130
|
+
stateOrProvince?: string | undefined;
|
|
131
|
+
firstLine?: string | undefined;
|
|
132
|
+
secondLine?: string | undefined;
|
|
133
|
+
postalCode?: string | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
countryOfCitizenship?: string | undefined;
|
|
136
|
+
dateOfBirth?: string | undefined;
|
|
137
|
+
dbaName?: string | undefined;
|
|
138
|
+
mailingAddress?: {
|
|
139
|
+
city?: string | undefined;
|
|
140
|
+
country?: string | undefined;
|
|
141
|
+
stateOrProvince?: string | undefined;
|
|
142
|
+
firstLine?: string | undefined;
|
|
143
|
+
secondLine?: string | undefined;
|
|
144
|
+
postalCode?: string | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
mailingAddressIsDifferent?: boolean | undefined;
|
|
147
|
+
name?: string | undefined;
|
|
148
|
+
cityOfBirth?: string | undefined;
|
|
149
|
+
countryOfBirth?: string | undefined;
|
|
150
|
+
financialAccountIdentifier?: string | undefined;
|
|
151
|
+
financialAccountName?: string | undefined;
|
|
152
|
+
ftin?: string | undefined;
|
|
153
|
+
ftinNotLegallyRequired?: boolean | undefined;
|
|
154
|
+
taxResidences?: {
|
|
155
|
+
country?: string | undefined;
|
|
156
|
+
tin?: string | undefined;
|
|
157
|
+
tinNotRequired?: boolean | undefined;
|
|
158
|
+
}[] | undefined;
|
|
159
|
+
tin?: string | undefined;
|
|
160
|
+
vatin?: string | undefined;
|
|
161
|
+
vatinCountry?: string | undefined;
|
|
162
|
+
vatinNotRequired?: boolean | undefined;
|
|
163
|
+
exemptFatcaCode?: string | undefined;
|
|
164
|
+
exemptPayeeCode?: string | undefined;
|
|
165
|
+
isIndividual?: boolean | undefined;
|
|
166
|
+
isEuResident?: boolean | undefined;
|
|
167
|
+
isUsPerson?: boolean | undefined;
|
|
168
|
+
usAccountType?: string | undefined;
|
|
169
|
+
usSmllcElection?: boolean | undefined;
|
|
170
|
+
usLlcClassification?: string | undefined;
|
|
171
|
+
usOtherClassification?: string | undefined;
|
|
172
|
+
usTrustEstateEin?: boolean | undefined;
|
|
173
|
+
foreignAccountType?: string | undefined;
|
|
174
|
+
foreignTrustClassification?: string | undefined;
|
|
175
|
+
foreignOtherClassification?: string | undefined;
|
|
102
176
|
} | undefined;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
177
|
+
regardedOwner?: {
|
|
178
|
+
address?: {
|
|
179
|
+
city?: string | undefined;
|
|
180
|
+
country?: string | undefined;
|
|
181
|
+
stateOrProvince?: string | undefined;
|
|
182
|
+
firstLine?: string | undefined;
|
|
183
|
+
secondLine?: string | undefined;
|
|
184
|
+
postalCode?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
countryOfCitizenship?: string | undefined;
|
|
187
|
+
dateOfBirth?: string | undefined;
|
|
188
|
+
dbaName?: string | undefined;
|
|
189
|
+
mailingAddress?: {
|
|
190
|
+
city?: string | undefined;
|
|
191
|
+
country?: string | undefined;
|
|
192
|
+
stateOrProvince?: string | undefined;
|
|
193
|
+
firstLine?: string | undefined;
|
|
194
|
+
secondLine?: string | undefined;
|
|
195
|
+
postalCode?: string | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
mailingAddressIsDifferent?: boolean | undefined;
|
|
198
|
+
name?: string | undefined;
|
|
199
|
+
ftin?: string | undefined;
|
|
200
|
+
ftinNotLegallyRequired?: boolean | undefined;
|
|
113
201
|
tin?: string | undefined;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
usTrustEstateEin?: boolean | undefined;
|
|
131
|
-
foreignAccountType?: string | undefined;
|
|
132
|
-
foreignTrustClassification?: string | undefined;
|
|
133
|
-
foreignOtherClassification?: string | undefined;
|
|
202
|
+
exemptFatcaCode?: string | undefined;
|
|
203
|
+
exemptPayeeCode?: string | undefined;
|
|
204
|
+
isUsPerson?: boolean | undefined;
|
|
205
|
+
usAccountType?: string | undefined;
|
|
206
|
+
usLlcClassification?: string | undefined;
|
|
207
|
+
usOtherClassification?: string | undefined;
|
|
208
|
+
usTrustEstateEin?: boolean | undefined;
|
|
209
|
+
foreignAccountType?: string | undefined;
|
|
210
|
+
foreignTrustClassification?: string | undefined;
|
|
211
|
+
foreignOtherClassification?: string | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
hasCertified?: boolean | undefined;
|
|
214
|
+
isNotSubjectBackupWithholding?: boolean | undefined;
|
|
215
|
+
signature?: string | undefined;
|
|
216
|
+
documentType?: "COMPREHENSIVE" | undefined;
|
|
217
|
+
source?: string | undefined;
|
|
134
218
|
}) => void;
|
|
135
|
-
editTo: (form: "
|
|
219
|
+
editTo: (form: import("./useTaxDocumentation").InputStep) => void;
|
|
136
220
|
onCancel: (() => void) | undefined;
|
|
137
|
-
goTo: (form: "
|
|
221
|
+
goTo: (form: import("./useTaxDocumentation").InputStep) => void;
|
|
138
222
|
goBack: (() => void) | undefined;
|
|
139
223
|
goToNext: (data: import("../../types").TaxDocumentation) => void;
|
|
140
|
-
stepName: "
|
|
224
|
+
stepName: import("./useTaxDocumentation").InputStep;
|
|
141
225
|
data: import("../../types").TaxDocumentation;
|
|
142
|
-
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg-bg" | "cs-cz" | "de-de" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fr-fr" | "hu-hu" | "it-it" | "mt-mt" | "nl-nl" | "no-no" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se">>;
|
|
143
|
-
language: "bg-bg" | "cs-cz" | "de-de" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fr-fr" | "hu-hu" | "it-it" | "mt-mt" | "nl-nl" | "no-no" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se";
|
|
226
|
+
setLanguage: import("react").Dispatch<import("react").SetStateAction<"bg-bg" | "cs-cz" | "da-dk" | "de-at" | "de-de" | "el-cy" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fi-fi" | "fr-fr" | "fr-lu" | "ga-ie" | "hr-hr" | "hu-hu" | "it-it" | "lt-lt" | "lv-lv" | "mt-mt" | "nl-be" | "nl-nl" | "no-no" | "pl-pl" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se">>;
|
|
227
|
+
language: "bg-bg" | "cs-cz" | "da-dk" | "de-at" | "de-de" | "el-cy" | "el-gr" | "en-gb" | "en-us" | "es-es" | "et-ee" | "fi-fi" | "fr-fr" | "fr-lu" | "ga-ie" | "hr-hr" | "hu-hu" | "it-it" | "lt-lt" | "lv-lv" | "mt-mt" | "nl-be" | "nl-nl" | "no-no" | "pl-pl" | "pt-pt" | "ro-ro" | "sk-sk" | "sl-si" | "sv-se";
|
|
144
228
|
supportedForms: import("../../types").TaxForm[];
|
|
145
229
|
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types").TaxForm[]>>;
|
|
146
230
|
} | undefined>;
|
package/dist/entry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export * from '../hooks/useTaxBit';
|
|
2
|
+
export { type Locale, type TaxForm } from '../types';
|
|
3
|
+
export { type ClientTaxDocumentation, type ClientTaxDocumentationStatus, } from '../types/client';
|
|
4
|
+
export * from '../widgets/TaxBitForm';
|
|
5
|
+
export * from '../wizard/TaxBitFormUI';
|
|
@@ -1,5 +1,109 @@
|
|
|
1
|
-
import { TaxDocumentation } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TaxDocumentation } from 'types';
|
|
2
|
+
import { ComprehensiveStatusEnum } from 'types/server';
|
|
3
|
+
export declare const useTaxBit: (bearerToken: string, staging?: true, onSuccess?: ((data?: TaxDocumentation) => void) | undefined) => {
|
|
4
|
+
submitForm: (data: TaxDocumentation) => void;
|
|
5
|
+
formStatus: ComprehensiveStatusEnum.NotSubmitted | import("types/server").ComprehensiveFormStatusEnum.Complete | import("types/server").ComprehensiveFormStatusEnum.Incomplete | undefined;
|
|
6
|
+
status: {
|
|
7
|
+
status: ComprehensiveStatusEnum.Undocumented | ComprehensiveStatusEnum.Undetermined;
|
|
8
|
+
submissionStatus: ComprehensiveStatusEnum.Submitted | ComprehensiveStatusEnum.NotSubmitted;
|
|
9
|
+
dac7Interview?: {
|
|
10
|
+
dataCollectionStatus: import("types/server").ComprehensiveFormStatusEnum.Complete | import("types/server").ComprehensiveFormStatusEnum.Incomplete;
|
|
11
|
+
expirationDate: string;
|
|
12
|
+
} | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
formSubmitted: boolean;
|
|
15
|
+
serverData: {
|
|
16
|
+
accountHolder?: {
|
|
17
|
+
address?: {
|
|
18
|
+
city?: string | undefined;
|
|
19
|
+
country?: string | undefined;
|
|
20
|
+
stateOrProvince?: string | undefined;
|
|
21
|
+
firstLine?: string | undefined;
|
|
22
|
+
secondLine?: string | undefined;
|
|
23
|
+
postalCode?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
countryOfCitizenship?: string | undefined;
|
|
26
|
+
dateOfBirth?: string | undefined;
|
|
27
|
+
dbaName?: string | undefined;
|
|
28
|
+
mailingAddress?: {
|
|
29
|
+
city?: string | undefined;
|
|
30
|
+
country?: string | undefined;
|
|
31
|
+
stateOrProvince?: string | undefined;
|
|
32
|
+
firstLine?: string | undefined;
|
|
33
|
+
secondLine?: string | undefined;
|
|
34
|
+
postalCode?: string | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
mailingAddressIsDifferent?: boolean | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
cityOfBirth?: string | undefined;
|
|
39
|
+
countryOfBirth?: string | undefined;
|
|
40
|
+
financialAccountIdentifier?: string | undefined;
|
|
41
|
+
financialAccountName?: string | undefined;
|
|
42
|
+
ftin?: string | undefined;
|
|
43
|
+
ftinNotLegallyRequired?: boolean | undefined;
|
|
44
|
+
taxResidences?: {
|
|
45
|
+
country?: string | undefined;
|
|
46
|
+
tin?: string | undefined;
|
|
47
|
+
tinNotRequired?: boolean | undefined;
|
|
48
|
+
}[] | undefined;
|
|
49
|
+
tin?: string | undefined;
|
|
50
|
+
vatin?: string | undefined;
|
|
51
|
+
vatinCountry?: string | undefined;
|
|
52
|
+
vatinNotRequired?: boolean | undefined;
|
|
53
|
+
exemptFatcaCode?: string | undefined;
|
|
54
|
+
exemptPayeeCode?: string | undefined;
|
|
55
|
+
isIndividual?: boolean | undefined;
|
|
56
|
+
isEuResident?: boolean | undefined;
|
|
57
|
+
isUsPerson?: boolean | undefined;
|
|
58
|
+
usAccountType?: string | undefined;
|
|
59
|
+
usSmllcElection?: boolean | undefined;
|
|
60
|
+
usLlcClassification?: string | undefined;
|
|
61
|
+
usOtherClassification?: string | undefined;
|
|
62
|
+
usTrustEstateEin?: boolean | undefined;
|
|
63
|
+
foreignAccountType?: string | undefined;
|
|
64
|
+
foreignTrustClassification?: string | undefined;
|
|
65
|
+
foreignOtherClassification?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
regardedOwner?: {
|
|
68
|
+
address?: {
|
|
69
|
+
city?: string | undefined;
|
|
70
|
+
country?: string | undefined;
|
|
71
|
+
stateOrProvince?: string | undefined;
|
|
72
|
+
firstLine?: string | undefined;
|
|
73
|
+
secondLine?: string | undefined;
|
|
74
|
+
postalCode?: string | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
countryOfCitizenship?: string | undefined;
|
|
77
|
+
dateOfBirth?: string | undefined;
|
|
78
|
+
dbaName?: string | undefined;
|
|
79
|
+
mailingAddress?: {
|
|
80
|
+
city?: string | undefined;
|
|
81
|
+
country?: string | undefined;
|
|
82
|
+
stateOrProvince?: string | undefined;
|
|
83
|
+
firstLine?: string | undefined;
|
|
84
|
+
secondLine?: string | undefined;
|
|
85
|
+
postalCode?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
mailingAddressIsDifferent?: boolean | undefined;
|
|
88
|
+
name?: string | undefined;
|
|
89
|
+
ftin?: string | undefined;
|
|
90
|
+
ftinNotLegallyRequired?: boolean | undefined;
|
|
91
|
+
tin?: string | undefined;
|
|
92
|
+
exemptFatcaCode?: string | undefined;
|
|
93
|
+
exemptPayeeCode?: string | undefined;
|
|
94
|
+
isUsPerson?: boolean | undefined;
|
|
95
|
+
usAccountType?: string | undefined;
|
|
96
|
+
usLlcClassification?: string | undefined;
|
|
97
|
+
usOtherClassification?: string | undefined;
|
|
98
|
+
usTrustEstateEin?: boolean | undefined;
|
|
99
|
+
foreignAccountType?: string | undefined;
|
|
100
|
+
foreignTrustClassification?: string | undefined;
|
|
101
|
+
foreignOtherClassification?: string | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
hasCertified?: boolean | undefined;
|
|
104
|
+
isNotSubjectBackupWithholding?: boolean | undefined;
|
|
105
|
+
signature?: string | undefined;
|
|
106
|
+
documentType?: "COMPREHENSIVE" | undefined;
|
|
107
|
+
source?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
5
109
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const bgBg: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const csCz: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const deDe: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const elGr: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const enGb: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const enUs: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const esEs: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const etEe: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const frFr: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const huHu: PropertyFile;
|