@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,14 +1,15 @@
|
|
|
1
1
|
import { Questionnaire } from 'types';
|
|
2
|
+
|
|
2
3
|
export declare const api: {
|
|
3
4
|
taxDocumentationSubmissions: {
|
|
4
|
-
post: (environment:
|
|
5
|
-
get: (environment:
|
|
5
|
+
post: (environment: "PRODUCTION" | "STAGING") => string;
|
|
6
|
+
get: (environment: "PRODUCTION" | "STAGING", questionnaire: Questionnaire) => string;
|
|
6
7
|
};
|
|
7
8
|
taxDocumentationStatus: {
|
|
8
|
-
get: (environment:
|
|
9
|
+
get: (environment: "PRODUCTION" | "STAGING") => string;
|
|
9
10
|
};
|
|
10
11
|
taxDocument: {
|
|
11
|
-
post: (environment:
|
|
12
|
-
get: (documentId: string, environment:
|
|
12
|
+
post: (environment: "PRODUCTION" | "STAGING") => string;
|
|
13
|
+
get: (documentId: string, environment: "PRODUCTION" | "STAGING") => string;
|
|
13
14
|
};
|
|
14
15
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClientTaxDocumentation } from '@taxbit/utilities';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
3
|
import { Questionnaire } from '../types';
|
|
4
|
+
|
|
4
5
|
export declare const Wrapper: React.FC<React.PropsWithChildren & {
|
|
5
6
|
initialData?: ClientTaxDocumentation;
|
|
6
7
|
questionnaire?: Questionnaire;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ClientTaxDocumentation } from '@taxbit/utilities';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
3
|
import { Questionnaire } from '../types';
|
|
4
|
+
|
|
4
5
|
export declare const getWrapper: (initialData?: ClientTaxDocumentation, questionnaire?: Questionnaire) => ({ children }: React.PropsWithChildren) => React.ReactNode;
|
|
@@ -2,6 +2,7 @@ export declare const expectRowError: (prompt: string) => void;
|
|
|
2
2
|
export declare const expectRowErrorText: (prompt: string, text: string) => void;
|
|
3
3
|
export declare const expectNoRowError: (prompt: string) => void;
|
|
4
4
|
export declare const expectText: (text: string, length?: number) => void;
|
|
5
|
+
export declare const expectSummaryFieldText: (field: string, text: string) => void;
|
|
5
6
|
export declare const expectNullInput: (ariaLabel: string) => void;
|
|
6
7
|
export declare const expectDisabledInput: (ariaLabel: string) => void;
|
|
7
8
|
export declare const expectInputValue: (ariaLabel: string, value: string) => void;
|
|
@@ -14,6 +15,7 @@ export declare const clickBack: () => void;
|
|
|
14
15
|
export declare const clickNext: () => void;
|
|
15
16
|
export declare const clickSubmit: () => void;
|
|
16
17
|
export declare const clickAddAdditionalResidence: () => void;
|
|
18
|
+
export declare const clickRemoveResidence: (index: 1 | 2 | 3 | 4 | 5) => void;
|
|
17
19
|
export declare const setBusinessNameAndAddress: (prefix?: string) => void;
|
|
18
20
|
export declare const setIndividualNameAndAddress: (prefix?: string) => void;
|
|
19
21
|
export declare const setUSIndividualNameAndAddress: (prefix?: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const inputSteps: readonly ["AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderTaxClarification", "Exemptions", "RegardedOwnerContact", "RegardedOwnerTax", "Summary"];
|
|
1
|
+
declare const inputSteps: readonly ["AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderTaxClarification", "AccountHolderTreatyClaims", "Exemptions", "RegardedOwnerContact", "RegardedOwnerTax", "RegardedOwnerTreatyClaims", "Summary", "W8imyInstructions"];
|
|
2
2
|
export type InputStep = (typeof inputSteps)[number];
|
|
3
|
-
export declare const isInputStep: (step: string) => step is
|
|
3
|
+
export declare const isInputStep: (step: string) => step is InputStep;
|
|
4
4
|
export declare const confirmInputStep: (step: string) => InputStep;
|
|
5
5
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type StepId = 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderClassification' | 'accountHolderTaxClarification' | 'confirmation' | 'exemptions' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'summary';
|
|
1
|
+
export type StepId = 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderClassification' | 'accountHolderTaxClarification' | 'accountHolderTreatyClaims' | 'confirmation' | 'exemptions' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'regardedOwnerTreatyClaims' | 'summary' | 'w8imyInstructions';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { ForeignAccountHolderAccountType, ForeignOtherClassification, ForeignRegardedOwnerAccountType, ForeignTrustClassification, UsAccountHolderAccountType, UsLLCAccountType, UsRegardedOwnerAccountType } from '@taxbit/utilities';
|
|
2
|
+
import { Yes } from './Yes';
|
|
3
|
+
import { YesNo } from './YesNo';
|
|
4
|
+
|
|
4
5
|
export type AccountHolderClassificationData = {
|
|
5
6
|
accountHolderIsIndividual?: YesNo;
|
|
6
7
|
accountHolderUsPerson?: YesNo;
|
|
@@ -35,6 +36,28 @@ export type AccountHolderContactData = {
|
|
|
35
36
|
accountHolderMailingAddressZip?: string;
|
|
36
37
|
accountHolderName?: string;
|
|
37
38
|
};
|
|
39
|
+
export type AccountHolderTreatyClaimData = {
|
|
40
|
+
accountHolderTreatyClaimIsEligible?: YesNo;
|
|
41
|
+
accountHolderTreatyClaimCountry?: string;
|
|
42
|
+
accountHolderTreatyClaimICertifyResident?: Yes;
|
|
43
|
+
accountHolderTreatyClaimICertifyRequirements?: Yes;
|
|
44
|
+
accountHolderTreatyClaimLimitationOnBenefits?: string;
|
|
45
|
+
accountHolderTreatyClaimLimitationOnBenefitsOtherArticleParagraph?: string;
|
|
46
|
+
accountHolderTreatyClaimTypeOfIncome?: string;
|
|
47
|
+
accountHolderTreatyClaimWithholding?: string;
|
|
48
|
+
accountHolderTreatyClaimHasAdditionalConditions?: Yes;
|
|
49
|
+
};
|
|
50
|
+
export type RegardedOwnerTreatyClaimData = {
|
|
51
|
+
regardedOwnerTreatyClaimIsEligible?: YesNo;
|
|
52
|
+
regardedOwnerTreatyClaimCountry?: string;
|
|
53
|
+
regardedOwnerTreatyClaimICertifyResident?: Yes;
|
|
54
|
+
regardedOwnerTreatyClaimICertifyRequirements?: Yes;
|
|
55
|
+
regardedOwnerTreatyClaimLimitationOnBenefits?: string;
|
|
56
|
+
regardedOwnerTreatyClaimLimitationOnBenefitsOtherArticleParagraph?: string;
|
|
57
|
+
regardedOwnerTreatyClaimTypeOfIncome?: string;
|
|
58
|
+
regardedOwnerTreatyClaimWithholding?: string;
|
|
59
|
+
regardedOwnerTreatyClaimHasAdditionalConditions?: Yes;
|
|
60
|
+
};
|
|
38
61
|
export type AccountHolderTaxData = {
|
|
39
62
|
accountHolderForeignTin?: string;
|
|
40
63
|
accountHolderForeignTinIsNotRequired?: Yes;
|
|
@@ -56,6 +79,7 @@ export type AccountHolderTaxData = {
|
|
|
56
79
|
accountHolderTaxResidenceCountry5?: string;
|
|
57
80
|
accountHolderTaxResidenceTin5?: string;
|
|
58
81
|
accountHolderTaxResidenceTin5IsNotRequired?: Yes;
|
|
82
|
+
accountHolderShowTaxResidence1?: YesNo;
|
|
59
83
|
accountHolderShowTaxResidence2?: YesNo;
|
|
60
84
|
accountHolderShowTaxResidence3?: YesNo;
|
|
61
85
|
accountHolderShowTaxResidence4?: YesNo;
|
|
@@ -103,6 +127,7 @@ export type SummaryData = {
|
|
|
103
127
|
exemptFatcaCode?: string;
|
|
104
128
|
exemptPayeeCode?: string;
|
|
105
129
|
iAcknowledgeESignIsOk?: Yes;
|
|
130
|
+
iAgreeWillResubmitIfIncorrect?: Yes;
|
|
106
131
|
iAmACitizenOfTheUs?: Yes;
|
|
107
132
|
iAmExemptFromFatcaReporting?: Yes;
|
|
108
133
|
iAmNotSubjectToBackupWithholding?: Yes;
|
|
@@ -126,5 +151,5 @@ export type CalculatedData = {
|
|
|
126
151
|
regardedOwnerAddress?: string;
|
|
127
152
|
regardedOwnerMailingAddress?: string;
|
|
128
153
|
};
|
|
129
|
-
export type TaxDocumentation = AccountHolderContactData & AccountHolderTaxData & AccountHolderClassificationData & RegardedOwnerContactData & RegardedOwnerClassificationData & RegardedOwnerTaxData & SummaryData & CalculatedData;
|
|
154
|
+
export type TaxDocumentation = AccountHolderContactData & AccountHolderTaxData & AccountHolderClassificationData & RegardedOwnerContactData & RegardedOwnerClassificationData & RegardedOwnerTaxData & SummaryData & CalculatedData & AccountHolderTreatyClaimData & RegardedOwnerTreatyClaimData;
|
|
130
155
|
export type TaxDocumentationKey = keyof TaxDocumentation;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
2
3
|
type ActionsProps = {
|
|
3
4
|
onBack?: (data: unknown) => void;
|
|
4
|
-
onCancel?: (data: unknown) => void;
|
|
5
5
|
onNext?: (data: unknown) => void;
|
|
6
6
|
onReset?: (data: unknown) => void;
|
|
7
7
|
onSubmit?: (data: unknown) => void;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
info?: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const Actions: ({ onBack,
|
|
11
|
+
export declare const Actions: ({ onBack, onNext, onSubmit, onReset, disabled, info, }: ActionsProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Actions';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { TaxDocumentationKey } from 'types/TaxDocumentation';
|
|
3
3
|
import { Yes } from 'types/Yes';
|
|
4
|
+
|
|
4
5
|
export type CheckBoxProps = {
|
|
5
6
|
label: boolean;
|
|
6
7
|
subLabel?: boolean;
|
|
7
8
|
name: TaxDocumentationKey;
|
|
8
9
|
onClick?: (val: Yes | undefined) => void;
|
|
9
10
|
disabled?: boolean;
|
|
11
|
+
indicateRequired?: boolean;
|
|
10
12
|
};
|
|
11
|
-
export declare const CheckBox: ({ label, subLabel, name, onClick, disabled, }: CheckBoxProps) => React.JSX.Element;
|
|
13
|
+
export declare const CheckBox: ({ label, subLabel, name, onClick, disabled, indicateRequired, }: CheckBoxProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './CheckBox';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { TaxDocumentationKey } from 'types';
|
|
3
|
+
|
|
3
4
|
export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
|
|
4
5
|
mm: string;
|
|
5
6
|
dd: string;
|
|
@@ -8,7 +9,7 @@ export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
|
|
|
8
9
|
handleMonthChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
9
10
|
handleYearChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
10
11
|
dayOptions: {
|
|
11
|
-
value:
|
|
12
|
+
value: T;
|
|
12
13
|
}[];
|
|
13
14
|
birthYearOptions: {
|
|
14
15
|
value: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './HideShowButton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './MaskedContent';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { OptionKey } from 'i18n/types';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
3
|
import { TaxDocumentationKey } from 'types/TaxDocumentation';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
type RadioOption = {
|
|
6
|
+
value: string;
|
|
6
7
|
label?: string;
|
|
8
|
+
disabled?: boolean;
|
|
7
9
|
};
|
|
8
10
|
export type RadioButtonsProps = {
|
|
9
11
|
name: TaxDocumentationKey;
|
|
10
|
-
options: ReadonlyArray<
|
|
12
|
+
options: ReadonlyArray<RadioOption>;
|
|
13
|
+
retainErrors?: boolean;
|
|
11
14
|
};
|
|
12
|
-
export declare const RadioButtons: <T extends OptionKey>({ name, options, }: RadioButtonsProps) => React.JSX.Element;
|
|
15
|
+
export declare const RadioButtons: <T extends OptionKey>({ name, options, retainErrors, }: RadioButtonsProps) => React.JSX.Element;
|
|
13
16
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TaxDocumentationKey } from 'types/TaxDocumentation';
|
|
3
|
+
|
|
4
|
+
export type TextAreaProps = {
|
|
5
|
+
name: TaxDocumentationKey;
|
|
6
|
+
className?: string;
|
|
7
|
+
onChange?: (val: string) => string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const TextArea: ({ name, className, onChange, children, disabled, defaultValue, }: TextAreaProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextArea.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ToggleButton';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type WithholdingInputProps = {
|
|
4
|
+
prefix: 'accountHolder' | 'regardedOwner';
|
|
5
|
+
country?: string;
|
|
6
|
+
typeOfIncome?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const WithholdingInput: ({ prefix, country, typeOfIncome, }: WithholdingInputProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WithholdingInput.tsx';
|
package/dist/src/ui/index.d.ts
CHANGED
|
@@ -10,5 +10,7 @@ export * from './PasswordInput';
|
|
|
10
10
|
export * from './RadioButtons';
|
|
11
11
|
export * from './Select';
|
|
12
12
|
export * from './ShowHideInput';
|
|
13
|
+
export * from './TextArea';
|
|
13
14
|
export * from './TextInput';
|
|
14
15
|
export * from './ToggleButton';
|
|
16
|
+
export * from './WithholdingInput';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TaxDocumentation } from 'types/TaxDocumentation';
|
|
2
|
+
|
|
2
3
|
export declare const getFieldsState: (fields: TaxDocumentation) => {
|
|
3
4
|
hasNoEuTaxId: boolean;
|
|
4
5
|
hasEuResidence: boolean;
|
|
@@ -10,6 +11,8 @@ export declare const getFieldsState: (fields: TaxDocumentation) => {
|
|
|
10
11
|
isBuildingWForm: boolean;
|
|
11
12
|
isDre: boolean;
|
|
12
13
|
isIndividual: boolean;
|
|
14
|
+
isMakingTreatyClaim: boolean;
|
|
15
|
+
isPartnership: boolean;
|
|
13
16
|
residenceCountryCodes: string[];
|
|
14
17
|
residences: {
|
|
15
18
|
country: string | undefined;
|
|
@@ -1,113 +1,4 @@
|
|
|
1
1
|
import { PromptKey } from 'i18n/types';
|
|
2
2
|
import { TaxDocumentation, TaxDocumentationKey } from 'types/TaxDocumentation';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exemptFatcaCode?: PromptKey | undefined;
|
|
6
|
-
iAcknowledgeESignIsOk?: PromptKey | undefined;
|
|
7
|
-
iAmACitizenOfTheUs?: PromptKey | undefined;
|
|
8
|
-
iAmExemptFromFatcaReporting?: PromptKey | undefined;
|
|
9
|
-
iAmNotSubjectToBackupWithholding?: PromptKey | undefined;
|
|
10
|
-
iAuthorizeWithholdingAgent?: PromptKey | undefined;
|
|
11
|
-
iCertifyToAll?: PromptKey | undefined;
|
|
12
|
-
iConfirmIncomeIsNonUs?: PromptKey | undefined;
|
|
13
|
-
iConfirmTheBeneficialOwnerIsExempt?: PromptKey | undefined;
|
|
14
|
-
iConfirmTheInformationIsCorrectComplete?: PromptKey | undefined;
|
|
15
|
-
iConfirmTheIndividualIsResidentOfTreatyCountry?: PromptKey | undefined;
|
|
16
|
-
iConfirmTheTaxIdIsCorrect?: PromptKey | undefined;
|
|
17
|
-
regardedOwnerUsPerson?: PromptKey | undefined;
|
|
18
|
-
signature?: PromptKey | undefined;
|
|
19
|
-
accountHolderAddressCity?: PromptKey | undefined;
|
|
20
|
-
accountHolderAddressCountry?: PromptKey | undefined;
|
|
21
|
-
accountHolderAddressState?: PromptKey | undefined;
|
|
22
|
-
accountHolderAddressStreet2?: PromptKey | undefined;
|
|
23
|
-
accountHolderAddressStreet?: PromptKey | undefined;
|
|
24
|
-
accountHolderAddressZip?: PromptKey | undefined;
|
|
25
|
-
accountHolderCityOfBirth?: PromptKey | undefined;
|
|
26
|
-
accountHolderCountryOfBirth?: PromptKey | undefined;
|
|
27
|
-
accountHolderCountryOfCitizenship?: PromptKey | undefined;
|
|
28
|
-
accountHolderDateOfBirth?: PromptKey | undefined;
|
|
29
|
-
accountHolderDbaName?: PromptKey | undefined;
|
|
30
|
-
accountHolderMailingAddressCity?: PromptKey | undefined;
|
|
31
|
-
accountHolderMailingAddressCountry?: PromptKey | undefined;
|
|
32
|
-
accountHolderMailingAddressIsDifferent?: PromptKey | undefined;
|
|
33
|
-
accountHolderMailingAddressState?: PromptKey | undefined;
|
|
34
|
-
accountHolderMailingAddressStreet2?: PromptKey | undefined;
|
|
35
|
-
accountHolderMailingAddressStreet?: PromptKey | undefined;
|
|
36
|
-
accountHolderMailingAddressZip?: PromptKey | undefined;
|
|
37
|
-
accountHolderName?: PromptKey | undefined;
|
|
38
|
-
accountHolderForeignTin?: PromptKey | undefined;
|
|
39
|
-
accountHolderForeignTinIsNotRequired?: PromptKey | undefined;
|
|
40
|
-
accountHolderUsTin?: PromptKey | undefined;
|
|
41
|
-
accountHolderFinancialAccountIdentifier?: PromptKey | undefined;
|
|
42
|
-
accountHolderFinancialAccountName?: PromptKey | undefined;
|
|
43
|
-
accountHolderTaxResidenceCountry1?: PromptKey | undefined;
|
|
44
|
-
accountHolderTaxResidenceTin1?: PromptKey | undefined;
|
|
45
|
-
accountHolderTaxResidenceTin1IsNotRequired?: PromptKey | undefined;
|
|
46
|
-
accountHolderTaxResidenceCountry2?: PromptKey | undefined;
|
|
47
|
-
accountHolderTaxResidenceTin2?: PromptKey | undefined;
|
|
48
|
-
accountHolderTaxResidenceTin2IsNotRequired?: PromptKey | undefined;
|
|
49
|
-
accountHolderTaxResidenceCountry3?: PromptKey | undefined;
|
|
50
|
-
accountHolderTaxResidenceTin3?: PromptKey | undefined;
|
|
51
|
-
accountHolderTaxResidenceTin3IsNotRequired?: PromptKey | undefined;
|
|
52
|
-
accountHolderTaxResidenceCountry4?: PromptKey | undefined;
|
|
53
|
-
accountHolderTaxResidenceTin4?: PromptKey | undefined;
|
|
54
|
-
accountHolderTaxResidenceTin4IsNotRequired?: PromptKey | undefined;
|
|
55
|
-
accountHolderTaxResidenceCountry5?: PromptKey | undefined;
|
|
56
|
-
accountHolderTaxResidenceTin5?: PromptKey | undefined;
|
|
57
|
-
accountHolderTaxResidenceTin5IsNotRequired?: PromptKey | undefined;
|
|
58
|
-
accountHolderShowTaxResidence2?: PromptKey | undefined;
|
|
59
|
-
accountHolderShowTaxResidence3?: PromptKey | undefined;
|
|
60
|
-
accountHolderShowTaxResidence4?: PromptKey | undefined;
|
|
61
|
-
accountHolderShowTaxResidence5?: PromptKey | undefined;
|
|
62
|
-
accountHolderVatIdentificationNumber?: PromptKey | undefined;
|
|
63
|
-
accountHolderVatIsNotRequired?: PromptKey | undefined;
|
|
64
|
-
accountHolderVatCountry?: PromptKey | undefined;
|
|
65
|
-
accountHolderBusinessRegistrationNumber?: PromptKey | undefined;
|
|
66
|
-
accountHolderBusinessRegistrationCountry?: PromptKey | undefined;
|
|
67
|
-
accountHolderIsIndividual?: PromptKey | undefined;
|
|
68
|
-
accountHolderUsPerson?: PromptKey | undefined;
|
|
69
|
-
accountHolderUsAccountType?: PromptKey | undefined;
|
|
70
|
-
accountHolderUsSmllcElection?: PromptKey | undefined;
|
|
71
|
-
accountHolderUsLlcClassification?: PromptKey | undefined;
|
|
72
|
-
accountHolderUsOtherClassification?: PromptKey | undefined;
|
|
73
|
-
accountHolderUsTrustEstateEin?: PromptKey | undefined;
|
|
74
|
-
accountHolderUsSoleProprietorEin?: PromptKey | undefined;
|
|
75
|
-
accountHolderForeignAccountType?: PromptKey | undefined;
|
|
76
|
-
accountHolderForeignTrustClassification?: PromptKey | undefined;
|
|
77
|
-
accountHolderForeignOtherClassification?: PromptKey | undefined;
|
|
78
|
-
regardedOwnerAddressCity?: PromptKey | undefined;
|
|
79
|
-
regardedOwnerAddressCountry?: PromptKey | undefined;
|
|
80
|
-
regardedOwnerAddressState?: PromptKey | undefined;
|
|
81
|
-
regardedOwnerAddressStreet2?: PromptKey | undefined;
|
|
82
|
-
regardedOwnerAddressStreet?: PromptKey | undefined;
|
|
83
|
-
regardedOwnerAddressZip?: PromptKey | undefined;
|
|
84
|
-
regardedOwnerCountryOfCitizenship?: PromptKey | undefined;
|
|
85
|
-
regardedOwnerDateOfBirth?: PromptKey | undefined;
|
|
86
|
-
regardedOwnerDbaName?: PromptKey | undefined;
|
|
87
|
-
regardedOwnerMailingAddressCity?: PromptKey | undefined;
|
|
88
|
-
regardedOwnerMailingAddressCountry?: PromptKey | undefined;
|
|
89
|
-
regardedOwnerMailingAddressIsDifferent?: PromptKey | undefined;
|
|
90
|
-
regardedOwnerMailingAddressState?: PromptKey | undefined;
|
|
91
|
-
regardedOwnerMailingAddressStreet2?: PromptKey | undefined;
|
|
92
|
-
regardedOwnerMailingAddressStreet?: PromptKey | undefined;
|
|
93
|
-
regardedOwnerMailingAddressZip?: PromptKey | undefined;
|
|
94
|
-
regardedOwnerName?: PromptKey | undefined;
|
|
95
|
-
regardedOwnerUsAccountType?: PromptKey | undefined;
|
|
96
|
-
regardedOwnerUsLlcClassification?: PromptKey | undefined;
|
|
97
|
-
regardedOwnerUsOtherClassification?: PromptKey | undefined;
|
|
98
|
-
regardedOwnerForeignAccountType?: PromptKey | undefined;
|
|
99
|
-
regardedOwnerForeignTrustClassification?: PromptKey | undefined;
|
|
100
|
-
regardedOwnerForeignOtherClassification?: PromptKey | undefined;
|
|
101
|
-
regardedOwnerForeignTin?: PromptKey | undefined;
|
|
102
|
-
regardedOwnerForeignTinIsNotRequired?: PromptKey | undefined;
|
|
103
|
-
regardedOwnerUsTin?: PromptKey | undefined;
|
|
104
|
-
iConfirmNotAUsPerson?: PromptKey | undefined;
|
|
105
|
-
iConfirmTheBeneficialOwner?: PromptKey | undefined;
|
|
106
|
-
iHaveCapacityToSign?: PromptKey | undefined;
|
|
107
|
-
source?: PromptKey | undefined;
|
|
108
|
-
accountHolderTaxResidences?: PromptKey | undefined;
|
|
109
|
-
accountHolderAddress?: PromptKey | undefined;
|
|
110
|
-
accountHolderMailingAddress?: PromptKey | undefined;
|
|
111
|
-
regardedOwnerAddress?: PromptKey | undefined;
|
|
112
|
-
regardedOwnerMailingAddress?: PromptKey | undefined;
|
|
113
|
-
};
|
|
3
|
+
|
|
4
|
+
export declare const getPromptKeyMap: (data: TaxDocumentation) => { [key in TaxDocumentationKey]?: PromptKey; };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LimitationOnBenefit } from '@taxbit/utilities';
|
|
2
|
+
|
|
3
|
+
type TreatyWithholding = {
|
|
4
|
+
rate: string;
|
|
5
|
+
articleParagraph: string;
|
|
6
|
+
additionalConditionsRequired: boolean;
|
|
7
|
+
};
|
|
8
|
+
type TreatyCountry = {
|
|
9
|
+
businessProfits?: TreatyWithholding;
|
|
10
|
+
royaltiesOther?: TreatyWithholding;
|
|
11
|
+
services?: TreatyWithholding;
|
|
12
|
+
additionalConditionsRequired?: boolean;
|
|
13
|
+
limitationOnBenefits: {
|
|
14
|
+
government: boolean;
|
|
15
|
+
taxExemptPension: boolean;
|
|
16
|
+
otherTaxExemptOrganization: boolean;
|
|
17
|
+
publiclyTradedCorporation: boolean;
|
|
18
|
+
subsidiary: boolean;
|
|
19
|
+
companyMeetsErosionTest: boolean;
|
|
20
|
+
companyMeetsDerivativeTest: boolean;
|
|
21
|
+
companyMeetsBusinessTest: boolean;
|
|
22
|
+
favorableDetermination: boolean;
|
|
23
|
+
noLobArticle: boolean;
|
|
24
|
+
otherArticleParagraphs: Array<string>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const getTreatyCountry: (country?: string) => TreatyCountry;
|
|
28
|
+
export declare const getTreatyCountryWithholding: (countryCode?: string, typeOfIncome?: string) => TreatyWithholding | undefined;
|
|
29
|
+
export declare const getTreatyCountryWithholdingLabel: (countryCode?: string, typeOfIncome?: string) => string;
|
|
30
|
+
export declare const getTreatyCountryLimitationOnBenefitsOptions: (country?: string) => Array<{
|
|
31
|
+
value: LimitationOnBenefit;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const getTreatyCountryLimitationOnBenefitsOtherArticleParagraphOptions: (country?: string) => {
|
|
34
|
+
value: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
export declare const isAdditionalConditionsRequired: (country?: string, typeOfIncome?: string) => boolean;
|
|
38
|
+
export {};
|
|
@@ -9,6 +9,8 @@ export * from './getLanguage';
|
|
|
9
9
|
export * from './getMaskedContent';
|
|
10
10
|
export * from './getMonthlyDayCount';
|
|
11
11
|
export * from './getPromptKeyMap';
|
|
12
|
+
export * from './getTreatyClaimDetails';
|
|
13
|
+
export * from './getTreatyCountry';
|
|
12
14
|
export * from './handleFetch';
|
|
13
15
|
export * from './isBlank';
|
|
14
16
|
export * from './kebabCase';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export declare const isBlank: (val: unknown) =>
|
|
1
|
+
export declare const isBlank: (val: unknown) => val is "" | null | undefined;
|
|
2
2
|
export declare const isPresent: (value: string | undefined) => value is string;
|
|
3
|
+
export declare const presence: (val: string | undefined) => string | undefined;
|