@adyen/kyc-components 3.66.4 → 3.67.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/dist/{AccountSetupRejected-BCmjiF_6.js → AccountSetupRejected-gYtp0Txi.js} +1 -1
- package/dist/{BusinessTypeSelection-eOAjwxqz.js → BusinessTypeSelection-BGnlpnIt.js} +3 -4
- package/dist/{CXEL7IU7-D1h8gd6-.js → CXEL7IU7-BMBtNPj4.js} +3 -3
- package/dist/{CustomerSupport-CSt6Z7t8.js → CustomerSupport-DtPK_BrP.js} +2 -2
- package/dist/{DebugModal-DRBU-BOq.js → DebugModal-BdMr7fPl.js} +8 -7
- package/dist/{DecisionMakers-DLyOK4UM.js → DecisionMakers-B98U_ugm.js} +3 -11
- package/dist/{HASRA6WW-BD-4MJko.js → HASRA6WW-cUOcZUGT.js} +2 -2
- package/dist/{I3HPI4QX-DrgIX5e9.js → I3HPI4QX-BgHxLhRI.js} +3 -3
- package/dist/{Introduction-C9b9dHyf.js → Introduction-OexTjfSi.js} +1 -1
- package/dist/{Review-B7M3nx8s.js → Review-BoeUIf9n.js} +2 -2
- package/dist/{SingpassSelection-DzsYd_Dd.js → SingpassSelection-ChdugAIt.js} +1 -1
- package/dist/{TaxReportingDropin-CYsGK4_f.js → TaxReportingDropin-Bdl7gnfT.js} +59 -99
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{bg-BG-A3hPFDNp.js → bg-BG-CfJNzZu7.js} +52 -20
- package/dist/{core-CNb92U09.js → core-B-WQPmuP.js} +2462 -2593
- package/dist/{cs-CZ-D6v5Avk5.js → cs-CZ-CRMGIz8x.js} +51 -19
- package/dist/{css-DLMEG7cT.js → css-5glJY2Bu.js} +2 -2
- package/dist/{da-DK-CYQGBfOV.js → da-DK-C7ftGVR7.js} +51 -19
- package/dist/{de-DE-B7E0kWMZ.js → de-DE-C39k0axr.js} +61 -29
- package/dist/{el-GR-C6Dq1gS5.js → el-GR-BGGUBqdt.js} +51 -19
- package/dist/{es-ES-COBtlgOE.js → es-ES-BojuwecZ.js} +50 -18
- package/dist/{et-EE-BBxgHOXL.js → et-EE-DEVH-7IA.js} +52 -20
- package/dist/{fi-FI-9djxYUQ9.js → fi-FI-Bku_85E3.js} +51 -19
- package/dist/{fr-FR-C2bzvzCh.js → fr-FR-HnJ_pnor.js} +52 -20
- package/dist/{hr-HR-DGwcKuUD.js → hr-HR-DXiqG0wV.js} +51 -19
- package/dist/{hu-HU-BSqCeaXu.js → hu-HU-DctyKbNV.js} +52 -20
- package/dist/{it-IT-BU9uudIU.js → it-IT-tSaYFPHL.js} +53 -21
- package/dist/ja-JP-DrupcLqM.js +1902 -0
- package/dist/{json-CbT4O_Ld.js → json-aSN8-541.js} +2 -2
- package/dist/{lt-LT-B1df1uFD.js → lt-LT-C4y-mmdw.js} +51 -19
- package/dist/{lv-LV-BHVGTOmK.js → lv-LV-CqmNw1Ry.js} +52 -20
- package/dist/{nl-NL-Bl29ShMh.js → nl-NL-CALz56wW.js} +51 -19
- package/dist/{no-NO-Bu_YLATD.js → no-NO-SyIXHgGV.js} +53 -21
- package/dist/{pl-PL-B_YxjiYr.js → pl-PL-veuK_Fs-.js} +51 -19
- package/dist/{plaintext-Cr4KGRo-.js → plaintext-C27sgoKw.js} +2 -2
- package/dist/{pt-PT-DGZR3hUG.js → pt-PT-KPmxJycM.js} +53 -21
- package/dist/{ro-RO-ul5LrXp6.js → ro-RO-DPXG-We0.js} +53 -21
- package/dist/{sk-SK-BbIEcfvq.js → sk-SK-ldAkSZl-.js} +51 -19
- package/dist/{sl-SI-BzvtpF7j.js → sl-SI-CH3W5STZ.js} +51 -19
- package/dist/style.css +205 -184
- package/dist/{sv-SE-Dxi-CWOf.js → sv-SE-DFrDPziR.js} +51 -19
- package/dist/types/api/address/useAddressCleanse.d.ts +31 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +21 -0
- package/dist/types/api/address/useSearchAddress.d.ts +20 -0
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -0
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +9 -0
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +4 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +411 -3
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +2 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +4 -0
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +12 -8
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/iframeWidget.d.ts +0 -4
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +0 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +6 -5
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureRegisteredAddress.d.ts +1 -1
- package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +1 -19
- package/dist/types/components/EFP/tasks/HighExposureDropin/utils.d.ts +2 -2
- package/dist/types/components/EFP/tasks/TaxReportingDropin/validate.d.ts +3 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -19
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +1 -3
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.d.ts +1 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/IdVerification/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/types.d.ts +3 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +3 -7
- package/dist/types/components/Individual/hooks/useIdVerificationToken.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/AddressField.d.ts +9 -0
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +15 -0
- package/dist/types/components/Shared/forms/Address/SearchAddressItem.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +2 -21
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +8 -6
- package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +0 -4
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +3 -1
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +5 -0
- package/dist/types/components/SoleProprietorship/hooks/useExemptSettlor.d.ts +1 -3
- package/dist/types/components/Trust/forms/Trust/types.d.ts +0 -2
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/TrustRoleAndEntityType.d.ts +1 -3
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +0 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +4 -5
- package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -2
- package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +3 -3
- package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +2 -2
- package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +3 -3
- package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +3 -3
- package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +3 -3
- package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +18 -5
- package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +7 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +6 -0
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/validate.d.ts +3 -0
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +2 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +31 -16
- package/dist/types/components/ui/atoms/Select/useSelectFocus.d.ts +2 -3
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +11 -28
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +3 -2
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +4 -4
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputText/InputText.d.ts +2 -1
- package/dist/types/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -3
- package/dist/types/context/ExperimentContext/types.d.ts +4 -0
- package/dist/types/context/FormRouterContext/types.d.ts +2 -2
- package/dist/types/context/SettingsContext/types.d.ts +2 -0
- package/dist/types/core/analytics.d.ts +16 -1
- package/dist/types/core/models/api/contracts.d.ts +0 -19
- package/dist/types/core/models/api/organization.d.ts +1 -2
- package/dist/types/core/models/state-code.d.ts +2 -1
- package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +2 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +3 -5
- package/dist/types/hooks/useAnalytics.d.ts +1 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +14 -0
- package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -5
- package/dist/types/hooks/useAsyncValidator.d.ts +1 -1
- package/dist/types/hooks/useComponentApi.d.ts +0 -8
- package/dist/types/hooks/useForm/reducer.d.ts +2 -1
- package/dist/types/hooks/useForm/types.d.ts +2 -1
- package/dist/types/stores/globalStore/StoreProvider.d.ts +1 -9
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +1 -3
- package/dist/types/stores/globalStore/taskStatus.d.ts +6 -2
- package/dist/types/utils/debounce.d.ts +20 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/useDebouncedState.d.ts +3 -0
- package/dist/types/utils/useMirrorProp.d.ts +16 -0
- package/dist/types/utils/validation/types.d.ts +2 -1
- package/dist/{yaml-YXwE7Rls.js → yaml-BLLI4LYJ.js} +2 -2
- package/package.json +1 -1
- package/dist/types/components/Shared/forms/Address/FieldContainer.d.ts +0 -10
- package/dist/types/core/models/api/address-search.d.ts +0 -31
- package/dist/types/core/services/componentApi/create-legal-entity.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-address.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-idverification-token.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-legal-entity.d.ts +0 -3
- package/dist/types/core/services/componentApi/idVerification-startcheck.d.ts +0 -3
- package/dist/types/core/services/componentApi/open-singpass-authorization-link.d.ts +0 -3
- package/dist/types/core/services/componentApi/search-address.d.ts +0 -3
- package/dist/types/hooks/useAssociatedLegalArrangement.d.ts +0 -13
- package/dist/types/utils/scroll.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExistingLegalEntity
|
|
1
|
+
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
2
|
import { LegalEntityType } from '../../../core/models/api/legal-entity-type';
|
|
3
3
|
import { UnincorporatedPartnershipMemberTypes } from '../../../core/models/api/unincorporated-partnership';
|
|
4
4
|
import { TaskTypes } from '../../Shared/tasks/TaskList/types';
|
|
@@ -11,14 +11,27 @@ export interface NavigateToMemberProps {
|
|
|
11
11
|
roleAndType?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export interface NavigationProps {
|
|
14
|
-
setAssociatedLegalEntity: (legalEntity?: ExistingLegalEntity) => void;
|
|
15
14
|
navigateTo: (taskType: TaskTypes) => void;
|
|
16
|
-
handleGetLegalEntity: (legalEntityId: string) => Promise<ExistingLegalEntity>;
|
|
17
|
-
handleUpdateLegalEntity: (data: PatchLegalEntity, legalEntityId: string) => Promise<ExistingLegalEntity>;
|
|
18
15
|
}
|
|
19
|
-
export declare const useUnincorporatedPartnershipNavigation: ({
|
|
16
|
+
export declare const useUnincorporatedPartnershipNavigation: ({ navigateTo }: NavigationProps) => {
|
|
20
17
|
onNavigateToMember: ({ selectedMember, selectedRoles, selectedEntityType, roleAndType, }: NavigateToMemberProps) => Promise<void>;
|
|
21
18
|
onDeleteMember: (member: UnincorporatedPartnershipMember, associatedLegalArrangement?: ExistingLegalEntity) => Promise<void>;
|
|
22
19
|
activeMember: UnincorporatedPartnershipMember;
|
|
20
|
+
currentUnincorporatedPartnershipMember: {
|
|
21
|
+
documentDetails?: import("../../../core/models/api/documentDetail").DocumentDetail[];
|
|
22
|
+
entityAssociations?: import("../../../core/models/api/legal-entity-association").LegalEntityAssociation[];
|
|
23
|
+
individual?: import("../../../core/models/api/individual").Individual;
|
|
24
|
+
organization?: import("../../../core/models/api/organization").Organization;
|
|
25
|
+
soleProprietorship?: import("../../../core/models/api/sole-proprietor").SoleProprietor;
|
|
26
|
+
trust?: import("../../../core/models/api/trust").Trust;
|
|
27
|
+
unincorporatedPartnership?: import("../../../core/models/api/unincorporated-partnership").UnincorporatedPartnership;
|
|
28
|
+
capabilities?: Partial<Record<import("../../../core/models/api/capability").CapabilityName, import("../../../core/models/api/capability").Capability>>;
|
|
29
|
+
problems?: import("../../../core/models/api/problem").Problem[];
|
|
30
|
+
transferInstruments?: import("../../../core/models/api/transfer-instrument").TransferInstrumentOverview[];
|
|
31
|
+
trustedFields?: import("../../../core/models/api/legal-entity").LegalEntityTrustedFields[];
|
|
32
|
+
id: string;
|
|
33
|
+
type: LegalEntityType;
|
|
34
|
+
};
|
|
35
|
+
setActiveMember: import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<UnincorporatedPartnershipMember>>;
|
|
23
36
|
};
|
|
24
37
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { LegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
|
-
import type {
|
|
2
|
+
import type { MappingRecord } from '../../../utils/mapping/mappingRecord';
|
|
3
3
|
import type { TrustSchema } from '../../Trust/forms/Trust/types';
|
|
4
4
|
export declare const unincorporatedPartnershipComponentsKeyMapping: MappingRecord<TrustSchema, Pick<LegalEntity, 'unincorporatedPartnership'>>;
|
|
5
5
|
export declare const unincorporatedPartnershipApiKeyMapping: MappingRecord<Pick<LegalEntity, 'unincorporatedPartnership'>, TrustSchema>;
|
|
6
|
-
export declare const unincorporatedPartnershipDocumentMapping: DocumentMappingRecord<TrustSchema>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { UnincorporatedPartnershipMemberTypes } from '../../../../core/models/api/unincorporated-partnership';
|
|
2
|
+
import type { Translatable } from '../../../../../types';
|
|
3
|
+
import type { ValidatorMode } from '../../../../utils/validation/types';
|
|
4
|
+
import type { UnincorporatedPartnershipRoleAndEntityTypeSchema } from './types';
|
|
2
5
|
interface UnincorporatedPartnershipRadioGroup {
|
|
3
|
-
selectedRoles: UnincorporatedPartnershipMemberTypes[];
|
|
4
|
-
setSelectedRoles: (roles: UnincorporatedPartnershipMemberTypes[]) => void;
|
|
5
6
|
memberType: UnincorporatedPartnershipMemberTypes;
|
|
7
|
+
handleChangeFor: (key: keyof UnincorporatedPartnershipRoleAndEntityTypeSchema, mode?: ValidatorMode) => (value: string) => void;
|
|
8
|
+
errorMessage: boolean | Translatable;
|
|
9
|
+
value: string | undefined;
|
|
6
10
|
}
|
|
7
|
-
export declare const UnincorporatedPartnershipRadioGroup: ({
|
|
11
|
+
export declare const UnincorporatedPartnershipRadioGroup: ({ memberType, errorMessage, handleChangeFor, value, }: UnincorporatedPartnershipRadioGroup) => import("preact/jsx-runtime").JSX.Element;
|
|
8
12
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
|
|
2
|
+
export interface UnincorporatedPartnershipRoleAndEntityTypeSchema {
|
|
3
|
+
entityType: LegalEntityType.INDIVIDUAL | LegalEntityType.ORGANIZATION | undefined;
|
|
4
|
+
uboThroughControl?: string;
|
|
5
|
+
uboThroughOwnership?: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ValidatorRules } from '../../../../utils/validation/types';
|
|
2
|
+
import type { UnincorporatedPartnershipRoleAndEntityTypeSchema } from './types';
|
|
3
|
+
export declare const unincorporatedPartnershipRoleAndTypeValidationRules: ValidatorRules<UnincorporatedPartnershipRoleAndEntityTypeSchema>;
|
package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { UpdateLegalEntity } from '../../../api/legalEntity/useUpdateLegalEntity';
|
|
1
2
|
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
3
|
import type { LegalEntityAssociation } from '../../../core/models/api/legal-entity-association';
|
|
3
|
-
import type { DropinAPIHandlers } from '../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
4
4
|
import type { UnincorporatedPartnershipMember } from '../tasks/UnincorporatedPartnershipMembers/types';
|
|
5
5
|
/**
|
|
6
6
|
* In the API response, there are multiple {@link LegalEntityAssociation}s for the same associated entity;
|
|
@@ -12,5 +12,5 @@ export declare const mapEntityAssociationsToUnincorporatedPartnershipMembers: (e
|
|
|
12
12
|
export declare const deleteUnincorporatedPartnershipMember: ({ associatedMember, unincorporatedPartnership, handleUpdateLegalEntity, }: {
|
|
13
13
|
associatedMember: UnincorporatedPartnershipMember;
|
|
14
14
|
unincorporatedPartnership: ExistingLegalEntity;
|
|
15
|
-
handleUpdateLegalEntity:
|
|
15
|
+
handleUpdateLegalEntity: UpdateLegalEntity;
|
|
16
16
|
}) => Promise<void>;
|
|
@@ -2,4 +2,4 @@ import './Select.scss';
|
|
|
2
2
|
import './SelectGeneric.scss';
|
|
3
3
|
import type { JSX } from 'preact';
|
|
4
4
|
import type { SelectProps } from './Select.types.ts';
|
|
5
|
-
export declare const Select: ({ items, filterable, readonly, onChange, selected, name, isInvalid,
|
|
5
|
+
export declare const Select: ({ items, filterable, readonly, onChange, onSelect, selected, name, isInvalid, placeholder, label, isMulti, uniqueId, enableTracking, maxVisibleItems, getSearchItem, onBlur, text: filterTextProp, setText: setFilterTextProp, showList: showListProp, setShowList: setShowListProp, behaviour, loading, minimal, }: SelectProps) => JSX.Element;
|
|
@@ -15,26 +15,29 @@ export interface AddressSpecificSelectItem extends SelectItem {
|
|
|
15
15
|
highlight?: string;
|
|
16
16
|
}
|
|
17
17
|
interface BaseSelectProps {
|
|
18
|
-
filterable?: boolean;
|
|
18
|
+
filterable?: boolean | 'prefiltered';
|
|
19
19
|
isInvalid?: boolean;
|
|
20
20
|
items: ReadonlyArray<SelectItem>;
|
|
21
21
|
name: string;
|
|
22
|
+
label?: string;
|
|
22
23
|
placeholder?: string;
|
|
23
24
|
readonly?: boolean;
|
|
24
|
-
selected: string | string[] | undefined;
|
|
25
|
-
isValid?: boolean;
|
|
26
25
|
uniqueId?: string;
|
|
27
|
-
showSelectedItemsAsTags?: boolean;
|
|
28
|
-
isSearch?: boolean;
|
|
29
|
-
onSearch?: (text: string) => void;
|
|
30
|
-
resetSearch?: boolean;
|
|
31
|
-
loading?: boolean;
|
|
32
|
-
getSearchItem?: (item: SelectItem) => ComponentChild;
|
|
33
|
-
searchText?: string;
|
|
34
|
-
onSearchTextChange?: (text: string) => void;
|
|
35
|
-
showSearchList?: boolean;
|
|
36
26
|
enableTracking?: boolean;
|
|
37
27
|
maxVisibleItems?: number;
|
|
28
|
+
getSearchItem?: (item: SelectItem) => ComponentChild;
|
|
29
|
+
onBlur?: (e: FocusEvent) => void;
|
|
30
|
+
/** toggles minimal styling, useful for when embedded in an {@link InputGroup} */
|
|
31
|
+
minimal?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The props below are pertinent mainly to {@link SearchAddress}
|
|
34
|
+
*/
|
|
35
|
+
text?: string;
|
|
36
|
+
setText?: (text: string) => void;
|
|
37
|
+
behaviour?: 'textIsData' | 'textIsFilter';
|
|
38
|
+
showList?: boolean;
|
|
39
|
+
setShowList?: (showList: boolean) => void;
|
|
40
|
+
loading?: boolean;
|
|
38
41
|
}
|
|
39
42
|
interface SingleSelectOnChangeTarget {
|
|
40
43
|
value: string;
|
|
@@ -52,13 +55,25 @@ export interface MultiSelectOnChangeProps {
|
|
|
52
55
|
}
|
|
53
56
|
interface SingleSelectProps extends BaseSelectProps {
|
|
54
57
|
isMulti?: false;
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
/**
|
|
59
|
+
* can either define a selected {@link SelectItem}
|
|
60
|
+
* or a `string` id, in which case we will fish through `items` to find the item with the matching id
|
|
61
|
+
*/
|
|
62
|
+
selected: SelectItem | string | undefined;
|
|
63
|
+
/** @deprecated use {@link SingleSelectProps.onSelect} instead */
|
|
64
|
+
onChange?: (e: SingleSelectOnChangeProps) => void;
|
|
65
|
+
onSelect?: (selected: SelectItem) => void;
|
|
57
66
|
}
|
|
58
67
|
interface MultiSelectProps extends BaseSelectProps {
|
|
59
68
|
isMulti: true;
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
/**
|
|
70
|
+
* can either define selected {@link SelectItem}s
|
|
71
|
+
* or `string` ids, in which case we will fish through `items` to find items with the matching ids
|
|
72
|
+
*/
|
|
73
|
+
selected: SelectItem[] | string[] | undefined;
|
|
74
|
+
/** @deprecated use {@link MultiSelectProps.onSelect} instead */
|
|
75
|
+
onChange?: (e: MultiSelectOnChangeProps) => void;
|
|
76
|
+
onSelect?: (selected: SelectItem[]) => void;
|
|
62
77
|
}
|
|
63
78
|
export type SelectProps = SingleSelectProps | MultiSelectProps;
|
|
64
79
|
export {};
|
|
@@ -5,17 +5,16 @@ interface UseSelectFocusOptions {
|
|
|
5
5
|
filteredItems: ReadonlySignal<SelectItem[]>;
|
|
6
6
|
}
|
|
7
7
|
export interface SelectFocus {
|
|
8
|
-
focused: ReadonlySignal<SelectItem | 'input' |
|
|
8
|
+
focused: ReadonlySignal<SelectItem | 'input' | undefined>;
|
|
9
9
|
moveFocusToFirstItem(): void;
|
|
10
10
|
moveFocusToLastItem(): void;
|
|
11
11
|
moveFocusToNextItem(): void;
|
|
12
12
|
moveFocusToPreviousItem(): void;
|
|
13
13
|
focusInput(): void;
|
|
14
|
-
focusButton(): void;
|
|
15
14
|
focusItem(item: SelectItem): void;
|
|
16
15
|
focusDefaultItem(): void;
|
|
17
16
|
focusNothing(): void;
|
|
18
17
|
}
|
|
19
|
-
export declare const useSelectFocus: (
|
|
18
|
+
export declare const useSelectFocus: (options: UseSelectFocusOptions) => SelectFocus;
|
|
20
19
|
export declare const focusedIsItem: (focused: SelectFocus["focused"]["value"]) => focused is SelectItem;
|
|
21
20
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../Select/SelectGeneric.scss';
|
|
2
2
|
import type { JSX } from 'preact';
|
|
3
3
|
import type { SelectButtonProps } from './SelectButton.types';
|
|
4
|
-
export declare function SelectButton({ name, active, readonly, showList, isInvalid,
|
|
4
|
+
export declare function SelectButton({ name, active, readonly, showList, isInvalid, onClick, onButtonKeyDown, filterable, isFiltering, placeholder, label, focusProps: { focused }, ariaDescribedBy, selectListId, onInput, id, behaviour, loading, text, enableTracking, onBlur, onFocus, inputRef, minimal, }: SelectButtonProps): JSX.Element;
|
|
@@ -1,47 +1,30 @@
|
|
|
1
1
|
import type { JSX, RefObject } from 'preact';
|
|
2
2
|
import type { SelectFocus } from '../Select/useSelectFocus';
|
|
3
|
-
import type { SelectItem } from '../Select/Select.types';
|
|
3
|
+
import type { SelectItem, SelectProps } from '../Select/Select.types';
|
|
4
4
|
export interface SelectButtonProps {
|
|
5
5
|
name: string;
|
|
6
6
|
active: SelectItem[];
|
|
7
7
|
focusProps: SelectFocus;
|
|
8
|
-
filterable: boolean;
|
|
8
|
+
filterable: boolean | 'prefiltered';
|
|
9
|
+
isFiltering: boolean;
|
|
9
10
|
isInvalid: boolean;
|
|
10
11
|
onButtonKeyDown: (e: JSX.TargetedKeyboardEvent<HTMLElement>) => void;
|
|
11
12
|
onInput: (val: string) => void;
|
|
12
13
|
placeholder: string;
|
|
14
|
+
label?: string;
|
|
13
15
|
readonly: boolean;
|
|
14
16
|
selectListId: string;
|
|
15
17
|
showList: boolean;
|
|
16
|
-
|
|
17
|
-
toggleButtonRef: RefObject<HTMLButtonElement>;
|
|
18
|
-
isValid?: boolean;
|
|
18
|
+
inputRef: RefObject<HTMLInputElement>;
|
|
19
19
|
ariaDescribedBy: string;
|
|
20
20
|
isMulti: boolean;
|
|
21
21
|
id?: string;
|
|
22
|
-
showSelectedItemsAsTags?: boolean;
|
|
23
|
-
isSearch?: boolean;
|
|
24
|
-
hideSearchIcon?: boolean;
|
|
25
22
|
loading?: boolean;
|
|
26
|
-
|
|
23
|
+
text?: string;
|
|
24
|
+
behaviour: SelectProps['behaviour'];
|
|
27
25
|
enableTracking?: boolean;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
filterInputRef: RefObject<HTMLInputElement>;
|
|
33
|
-
filterable: boolean;
|
|
34
|
-
onInput: (val: string) => void;
|
|
35
|
-
placeholder: string;
|
|
36
|
-
selectListId: string;
|
|
37
|
-
showList: boolean;
|
|
38
|
-
showSelectedItemsAsTags?: boolean;
|
|
39
|
-
isSearch?: boolean;
|
|
40
|
-
hideSearchIcon?: boolean;
|
|
41
|
-
loading?: boolean;
|
|
42
|
-
textFilter?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface SelectedItemsAsTagsProps {
|
|
45
|
-
active: SelectItem[];
|
|
46
|
-
isMulti?: boolean;
|
|
26
|
+
onClick: () => void;
|
|
27
|
+
onBlur: (e: FocusEvent) => void;
|
|
28
|
+
onFocus: (e: JSX.TargetedFocusEvent<HTMLInputElement>) => void;
|
|
29
|
+
minimal?: boolean;
|
|
47
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../Select/SelectGeneric.scss';
|
|
2
2
|
import type { JSX } from 'preact';
|
|
3
3
|
import type { SelectListProps } from './SelectList.types';
|
|
4
|
-
export declare function SelectList({ selectListId, active, filteredItems, showList, isMulti,
|
|
4
|
+
export declare function SelectList({ selectListId, active, filteredItems, showList, isMulti, inputRef, isSearch, loading, getSearchItem, onKeyDown, onSelect, minimal, maxVisibleItems, focusProps: { focused, focusItem, focusDefaultItem, moveFocusToNextItem, moveFocusToPreviousItem, moveFocusToFirstItem, moveFocusToLastItem, }, }: SelectListProps): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentChild, JSX } from 'preact';
|
|
1
|
+
import type { ComponentChild, JSX, RefObject } from 'preact';
|
|
2
2
|
import type { SelectFocus } from '../Select/useSelectFocus';
|
|
3
3
|
import type { AddressSpecificSelectItem, SelectItem } from '../Select/Select.types';
|
|
4
4
|
export interface SelectListProps {
|
|
@@ -10,10 +10,11 @@ export interface SelectListProps {
|
|
|
10
10
|
showList: boolean;
|
|
11
11
|
textFilter: string;
|
|
12
12
|
isMulti: boolean;
|
|
13
|
-
showAbove?: boolean;
|
|
14
13
|
isSearch?: boolean;
|
|
15
14
|
loading?: boolean;
|
|
16
15
|
getSearchItem?: (item: AddressSpecificSelectItem) => ComponentChild;
|
|
17
16
|
maxVisibleItems?: number;
|
|
18
17
|
focusProps: SelectFocus;
|
|
18
|
+
inputRef: RefObject<HTMLInputElement>;
|
|
19
|
+
minimal?: boolean;
|
|
19
20
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { TranslationKey } from '../../../../../types';
|
|
2
|
+
import { TaskStatus } from '../../../../stores/globalStore/taskStatus';
|
|
2
3
|
export interface StatusIndicatorProps {
|
|
3
|
-
|
|
4
|
-
label?: string;
|
|
4
|
+
taskStatus?: TaskStatus;
|
|
5
5
|
}
|
|
6
6
|
export interface IndicatorLabelAndClassname {
|
|
7
7
|
indicatorLabel: TranslationKey;
|
|
8
8
|
indicatorClassname: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const getIndicatorLabelAndClassnames: ({
|
|
11
|
-
export declare const TaskStatusIndicator: ({
|
|
10
|
+
export declare const getIndicatorLabelAndClassnames: ({ taskStatus, }: StatusIndicatorProps) => IndicatorLabelAndClassname | undefined;
|
|
11
|
+
export declare const TaskStatusIndicator: ({ taskStatus }: StatusIndicatorProps) => import("preact/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import type { JSX } from 'preact';
|
|
|
3
3
|
import type { FileSchema } from '../../../../core/models/file';
|
|
4
4
|
import type { TranslationKey } from '../../../../../types';
|
|
5
5
|
import type { FileValidationOptions } from './validate';
|
|
6
|
-
|
|
6
|
+
interface FilePickerProps extends FileValidationOptions {
|
|
7
7
|
files: FileSchema[];
|
|
8
8
|
setFiles: (files: FileSchema[]) => void;
|
|
9
9
|
isValid: boolean;
|
|
@@ -15,3 +15,4 @@ export interface FilePickerProps extends FileValidationOptions {
|
|
|
15
15
|
enableTracking?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare function FilePicker({ files, setFiles, isValid, errorMessage, multiple, label, name, iconPrefix, enableTracking, allowedFileTypes, maxSize, isOptional, maxNumberOfFiles, }: FilePickerProps): JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { InputBaseProps } from '../../atoms/InputBase/InputBase';
|
|
2
|
-
|
|
2
|
+
interface InputTextProps extends InputBaseProps {
|
|
3
3
|
transformInput?: (input: string) => string;
|
|
4
4
|
}
|
|
5
5
|
export declare const InputText: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<InputTextProps> & {
|
|
6
6
|
ref?: import("preact").Ref<HTMLInputElement>;
|
|
7
7
|
}>;
|
|
8
|
+
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { DataSet } from '../../core/models/api/data-set';
|
|
2
1
|
import type { GetConfigurationRequest, GetConfigurationResponse } from '../../core/models/api/get-configuration';
|
|
3
2
|
import type { ValidationResponse } from '../../core/models/errors/validation-error';
|
|
4
|
-
import type { DatasetIdentifier } from '../../utils/datasetUtil';
|
|
5
3
|
export type ConfigurationApi = {
|
|
6
4
|
getConfiguration: (request: GetConfigurationRequest) => Promise<GetConfigurationResponse>;
|
|
7
|
-
getDataset: (identifier: DatasetIdentifier, locale: string) => Promise<DataSet>;
|
|
8
5
|
validatePhoneNumber: (phoneNumber: string) => Promise<ValidationResponse>;
|
|
9
6
|
};
|
|
10
7
|
export declare const ConfigurationApiContext: import("preact").Context<ConfigurationApi>;
|
|
@@ -112,6 +112,10 @@ export declare enum ExperimentNames {
|
|
|
112
112
|
* SOE-5342: Make TaxID mandatory when onboarding companies for business accounts
|
|
113
113
|
*/
|
|
114
114
|
EnableTaxIdRequiredForBusinessAccountsScenarios = "EnableTaxIdRequiredForBusinessAccountsScenarios",
|
|
115
|
+
/**
|
|
116
|
+
* Enables ja-JP locale for HO
|
|
117
|
+
*/
|
|
118
|
+
EnableJaJPLocale = "EnableJaJPLocale",
|
|
115
119
|
/**
|
|
116
120
|
*
|
|
117
121
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComponentChildren } from 'preact';
|
|
2
|
+
import type { GetIdVerificationToken } from '../../api/idVerificationProviders/useIdVerificationToken';
|
|
2
3
|
import type { FormModel } from '../../core/models/form';
|
|
3
|
-
import type { DropinAPIHandlers } from '../../components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
4
4
|
export interface FormRouterProps {
|
|
5
5
|
children?: ComponentChildren;
|
|
6
6
|
setFormIndex: (formIndex: number) => void;
|
|
7
7
|
forms: FormModel[];
|
|
8
|
-
handleGetIdVerificationToken?:
|
|
8
|
+
handleGetIdVerificationToken?: GetIdVerificationToken;
|
|
9
9
|
}
|
|
@@ -23,6 +23,7 @@ export declare enum SettingNames {
|
|
|
23
23
|
ViewOnboardingGuidance = "viewOnboardingGuidance",
|
|
24
24
|
InstantBankVerification = "instantBankVerification",
|
|
25
25
|
ShowServiceAgreementsFirst = "showServiceAgreementsFirst",
|
|
26
|
+
ShowBusinessFinancingFirst = "showBusinessFinancingFirst",
|
|
26
27
|
EnforceLegalAge = "enforceLegalAge"
|
|
27
28
|
}
|
|
28
29
|
export type SettingName = `${SettingNames}`;
|
|
@@ -45,6 +46,7 @@ export interface Settings {
|
|
|
45
46
|
transferInstrumentLimit: number;
|
|
46
47
|
instantBankVerification: boolean;
|
|
47
48
|
showServiceAgreementsFirst: boolean;
|
|
49
|
+
showBusinessFinancingFirst: boolean;
|
|
48
50
|
enforceLegalAge: boolean;
|
|
49
51
|
}
|
|
50
52
|
export type ProvidedSettings = Partial<Settings>;
|
|
@@ -10,5 +10,20 @@ type AssociatedLeAnalyticsParams = {
|
|
|
10
10
|
associatedLegalEntityOrgType?: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const getAssociatedLeAnalyticsPayload: ({ associatedLegalEntity, associatedLegalEntityOrg, }: GetAssociatedLeAnalyticsParams) => AssociatedLeAnalyticsParams;
|
|
13
|
-
export declare const debouncedInputEvent: (
|
|
13
|
+
export declare const debouncedInputEvent: (properties: {
|
|
14
|
+
[x: string]: import("./user-events").MixpanelProperty;
|
|
15
|
+
actionType: import("./user-events").ActionType;
|
|
16
|
+
entityType?: import("./models/api/legal-entity-type").LegalEntityType;
|
|
17
|
+
page?: string;
|
|
18
|
+
field?: string;
|
|
19
|
+
returnType?: "backend" | "validation" | (string & {});
|
|
20
|
+
returnValue?: string | string[];
|
|
21
|
+
additionalData?: string | string[];
|
|
22
|
+
label?: string;
|
|
23
|
+
'Experiment name'?: string;
|
|
24
|
+
'Variant name'?: string;
|
|
25
|
+
actionLevel?: "task" | "field" | "journey" | "page";
|
|
26
|
+
} & {
|
|
27
|
+
field: string;
|
|
28
|
+
}) => void;
|
|
14
29
|
export {};
|
|
@@ -18,17 +18,11 @@ interface PciQuestionnaire {
|
|
|
18
18
|
createdAt: string;
|
|
19
19
|
validUntil: string;
|
|
20
20
|
}
|
|
21
|
-
export interface DownloadPci extends PciQuestionnaire {
|
|
22
|
-
content: string;
|
|
23
|
-
}
|
|
24
21
|
export interface SignedBy {
|
|
25
22
|
signedBy: string;
|
|
26
23
|
pciTemplateReferences: PciTemplateReferences;
|
|
27
24
|
}
|
|
28
25
|
export type PciTemplateReferences = string[];
|
|
29
|
-
export interface PciQuestionnaireIds {
|
|
30
|
-
ids: string[];
|
|
31
|
-
}
|
|
32
26
|
export interface PciStatus {
|
|
33
27
|
signingRequired: string | boolean;
|
|
34
28
|
}
|
|
@@ -42,9 +36,6 @@ export interface ServiceAgreementResponse extends ServiceAgreementRequest {
|
|
|
42
36
|
termsOfServiceDocumentId: string;
|
|
43
37
|
document: string | undefined;
|
|
44
38
|
}
|
|
45
|
-
export interface ServiceAgreementUnacceptedDocumentRequest extends ServiceAgreementRequest {
|
|
46
|
-
termsOfServiceDocumentFormat?: TermsOfServiceDocumentFormat;
|
|
47
|
-
}
|
|
48
39
|
export interface ServiceAgreementSignRequest {
|
|
49
40
|
acceptedBy: string;
|
|
50
41
|
}
|
|
@@ -54,16 +45,6 @@ export interface ServiceAgreementSignResponse extends ServiceAgreementSignReques
|
|
|
54
45
|
termsOfServiceDocumentId: string;
|
|
55
46
|
type: ServiceAgreementType;
|
|
56
47
|
}
|
|
57
|
-
export interface ServiceAgreementStatus {
|
|
58
|
-
termsOfServiceTypes: ServiceAgreementType[];
|
|
59
|
-
}
|
|
60
|
-
export interface ServiceAgreementAcceptedDocumentResponse {
|
|
61
|
-
id: string;
|
|
62
|
-
document: string;
|
|
63
|
-
termsOfServiceAcceptanceReference: string;
|
|
64
|
-
termsOfServiceDocumentFormat: string;
|
|
65
|
-
}
|
|
66
|
-
export type ServiceAgreementUnacceptedDocumentResponse = ServiceAgreementResponse;
|
|
67
48
|
export interface ServiceAgreementAcceptanceInfos {
|
|
68
49
|
data: ServiceAgreementAcceptanceInfo[];
|
|
69
50
|
}
|
|
@@ -44,8 +44,7 @@ export interface Organization {
|
|
|
44
44
|
support?: CustomerSupport;
|
|
45
45
|
taxReportingClassification?: TaxReportingClassification;
|
|
46
46
|
}
|
|
47
|
-
export
|
|
48
|
-
export type VatAbsenceReason = (typeof vatAbsenceReasons)[number];
|
|
47
|
+
export type VatAbsenceReason = 'industryExemption' | 'belowTaxThreshold' | 'countryWithoutVatOrGstSystem';
|
|
49
48
|
export type TaxInformation = {
|
|
50
49
|
country: CountryCode;
|
|
51
50
|
number?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type StateCode = StateCodeUS | StateCodeBR;
|
|
2
2
|
export type StateCodeBR = `${StateCodesBR}`;
|
|
3
|
-
|
|
3
|
+
declare const enum StateCodesBR {
|
|
4
4
|
Acre = "AC",
|
|
5
5
|
Alagoas = "AL",
|
|
6
6
|
Amazonas = "AM",
|
|
@@ -83,3 +83,4 @@ export declare const enum StateCodesUS {
|
|
|
83
83
|
Wisconsin = "WI",
|
|
84
84
|
Wyoming = "WY"
|
|
85
85
|
}
|
|
86
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
2
|
-
|
|
2
|
+
interface UseCanSeeIntroductionProps {
|
|
3
3
|
legalEntity: ExistingLegalEntity;
|
|
4
4
|
}
|
|
5
5
|
export declare const useCanSeeIntroduction: ({ legalEntity }: UseCanSeeIntroductionProps) => boolean;
|
|
6
|
+
export {};
|
|
@@ -2,14 +2,13 @@ import type { AccountHolderOption } from '../../core/types/AccountHolder.types';
|
|
|
2
2
|
import type { Translatable } from '../../../types';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { UniqueEntityAssociation } from '../../components/Shared/EntityAssociation/types';
|
|
5
|
-
|
|
6
|
-
export declare enum SingpassMyInfoLoginActionType {
|
|
5
|
+
declare enum SingpassMyInfoLoginActionType {
|
|
7
6
|
LOADING = "LOADING",
|
|
8
7
|
SUCCESS = "SUCCESS",
|
|
9
8
|
FAILURE = "FAILURE",
|
|
10
9
|
RESET = "RESET"
|
|
11
10
|
}
|
|
12
|
-
|
|
11
|
+
interface SingpassMyInfoLoginAction {
|
|
13
12
|
type: SingpassMyInfoLoginActionType;
|
|
14
13
|
isLoading: boolean;
|
|
15
14
|
isSuccess: boolean;
|
|
@@ -19,10 +18,9 @@ export type SingpassMyInfoLoginState = Omit<SingpassMyInfoLoginAction, 'type'>;
|
|
|
19
18
|
interface UseSingpassMyInfoLoginProps {
|
|
20
19
|
legalEntity?: ExistingLegalEntity;
|
|
21
20
|
accountHolder: AccountHolderOption | undefined;
|
|
22
|
-
handleOpenSingpassAuthorizationLink: (() => Promise<SingpassLinkResponse>) | undefined;
|
|
23
21
|
}
|
|
24
22
|
export declare const getTrustedEntityAssociations: (legalEntityTrustedFields: string[]) => Partial<UniqueEntityAssociation>[];
|
|
25
|
-
export declare const useSingpassMyInfoLogin: ({ legalEntity, accountHolder,
|
|
23
|
+
export declare const useSingpassMyInfoLogin: ({ legalEntity, accountHolder, }: UseSingpassMyInfoLoginProps) => {
|
|
26
24
|
isEligibleForSingpass: boolean;
|
|
27
25
|
state: SingpassMyInfoLoginState;
|
|
28
26
|
handleInitiateSingpassMyInfoLogin: () => Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnalyticsEventPayload, EventQueueItem, EventType, MixpanelProperty, UserEvents } from '../core/user-events';
|
|
2
2
|
import type { EmbeddedAnalyticsSessionRequest } from '../core/models/api/analytics';
|
|
3
|
-
|
|
3
|
+
type UseAnalyticsProps = {
|
|
4
4
|
userEvents: UserEvents;
|
|
5
5
|
sessionId: string | undefined;
|
|
6
6
|
sessionData: EmbeddedAnalyticsSessionRequest;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { ExistingLegalEntity } from '../core/models/api/legal-entity';
|
|
3
|
+
import type { LegalEntityAssociationType } from '../core/models/api/legal-entity-association';
|
|
4
|
+
type UseAssociatedLegalEntity = Pick<UseQueryResult<ExistingLegalEntity>, 'data' | 'refetch' | 'isLoading'>;
|
|
5
|
+
/**
|
|
6
|
+
* Fetches and returns an entity of the given type which is associated to the given root legal entity.
|
|
7
|
+
* Also returns a callback that can be used to refetch the associated entity.
|
|
8
|
+
*
|
|
9
|
+
* @param parentLegalEntity the parent legal entity to find an associated entity for
|
|
10
|
+
* @param associationType the type of associated entity to fetch.
|
|
11
|
+
* If multiple types are provided, the first matching association is used.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useAssociatedLegalEntity(parentLegalEntity: ExistingLegalEntity | undefined, associationType: LegalEntityAssociationType | LegalEntityAssociationType[]): UseAssociatedLegalEntity;
|
|
14
|
+
export {};
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import type { ExistingLegalEntity } from '../core/models/api/legal-entity';
|
|
2
|
-
|
|
3
|
-
export declare const useAssociatedLegalRepresentative: ({ legalEntity, handleGetLegalEntity, }: {
|
|
4
|
-
legalEntity: ExistingLegalEntity;
|
|
5
|
-
handleGetLegalEntity?: DropinAPIHandlers["handleGetLegalEntity"];
|
|
6
|
-
}) => ExistingLegalEntity | undefined;
|
|
2
|
+
export declare const useAssociatedLegalRepresentative: (legalEntity: ExistingLegalEntity) => ExistingLegalEntity | undefined;
|
|
@@ -6,6 +6,6 @@ export type TriggerAsyncValidation<FormSchema> = (field: keyof FormSchema, formS
|
|
|
6
6
|
export type UseAsyncValidator<FormSchema> = {
|
|
7
7
|
asyncValidationResults: AsyncValidationResults<FormSchema>;
|
|
8
8
|
triggerAsyncValidation: TriggerAsyncValidation<FormSchema>;
|
|
9
|
-
clearAsyncValidationResults: () => void;
|
|
9
|
+
clearAsyncValidationResults: (field: keyof FormSchema) => void;
|
|
10
10
|
};
|
|
11
11
|
export declare const useAsyncValidator: <FormSchema>(asyncRules?: AsyncValidatorRules<FormSchema>) => UseAsyncValidator<FormSchema>;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import type { DropinAPIHandlers } from '../components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
2
2
|
export type ComponentApi = {
|
|
3
|
-
getLegalEntity: Required<DropinAPIHandlers>['handleGetLegalEntity'];
|
|
4
3
|
updateLegalEntity: Required<DropinAPIHandlers>['handleUpdateLegalEntity'];
|
|
5
|
-
createLegalEntity: Required<DropinAPIHandlers>['handleCreateLegalEntity'];
|
|
6
|
-
getIdVerificationToken: Required<DropinAPIHandlers>['handleGetIdVerificationToken'];
|
|
7
|
-
idVerificationStartCheck: Required<DropinAPIHandlers>['handleGetIdVerificationStartCheck'];
|
|
8
|
-
getAddress: Required<DropinAPIHandlers>['handleFindAddress'];
|
|
9
|
-
searchAddress: Required<DropinAPIHandlers>['handleAddressSearch'];
|
|
10
|
-
openSingpassAuthorizationLink: Required<DropinAPIHandlers>['handleOpenSingpassAuthorizationLink'];
|
|
11
4
|
};
|
|
12
|
-
export declare const COMPONENTS_API_VERSION = "v1";
|
|
13
5
|
export declare const makeComponentApi: (rootLegalEntityId: string, base: string) => ComponentApi;
|
|
14
6
|
/**
|
|
15
7
|
* @description Hook that allows use of current componentApi requests without needing to pass in context.
|
|
@@ -30,7 +30,7 @@ export interface ReducerAction<FormSchema> {
|
|
|
30
30
|
selectedSchema?: (keyof FormSchema)[];
|
|
31
31
|
fieldProblems?: Partial<Record<keyof FormSchema, boolean>>;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
interface GetReducerOptions<FormSchema> {
|
|
34
34
|
staticValidate: TriggerStaticValidation<FormSchema>;
|
|
35
35
|
asyncValidate: TriggerAsyncValidation<FormSchema>;
|
|
36
36
|
obscuredFields?: (keyof FormSchema)[];
|
|
@@ -40,3 +40,4 @@ export interface GetReducerOptions<FormSchema> {
|
|
|
40
40
|
}
|
|
41
41
|
export type GetReducerResults<FormSchema> = Reducer<FormState<FormSchema>, ReducerAction<FormSchema>>;
|
|
42
42
|
export declare function reducer<FormSchema>({ staticValidate, asyncValidate, obscuredFields, optionalFields, trustedFields, formatters, }: GetReducerOptions<FormSchema>): GetReducerResults<FormSchema>;
|
|
43
|
+
export {};
|
|
@@ -64,7 +64,7 @@ export interface FormState<FormSchema> {
|
|
|
64
64
|
dataStoreId?: string;
|
|
65
65
|
local?: FormState<FormSchema> | Partial<FormState<FormSchema>>;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
type InnerFormLabels<InnerFormSchema> = {
|
|
68
68
|
[Field in keyof InnerFormSchema]: TranslationKey;
|
|
69
69
|
};
|
|
70
70
|
export type OuterFormLabels<OuterFormSchema> = {
|
|
@@ -157,3 +157,4 @@ export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema
|
|
|
157
157
|
capabilities?: CapabilityName[];
|
|
158
158
|
isTopLevelEntity?: boolean;
|
|
159
159
|
}
|
|
160
|
+
export {};
|