UNPKG

@adyen/kyc-components

Version:

`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar

12 lines (11 loc) 1.33 kB
import type { TopLevelDataSchema } from '../context/StateContext/types'; import type { ExistingLegalEntity, LegalEntity } from '../core/models/api/legal-entity'; import type { BusinessDetailsSchema } from '../components/Business/forms/BusinessDetails/types'; import type { HighExposureSchema } from '../components/EFP/tasks/HighExposureDropin/types'; import type { SourceOfFundsSchema } from '../components/EFP/tasks/SourceOfFundsDropin/types'; import type { IndividualSchema } from '../components/Individual/forms/Individual/types'; import type { IndividualOnfidoSchema } from '../components/Individual/forms/IndividualOnfido/IndividualOnfido.types'; import type { TrustSchema } from '../components/Trust/forms/Trust/types'; import type { DocumentMappingRecord, MappingKey, MappingRecord } from './mapping/mappingRecord'; export type AnyTLDSFieldName = MappingKey<IndividualSchema> | MappingKey<IndividualOnfidoSchema> | MappingKey<BusinessDetailsSchema> | MappingKey<TrustSchema> | MappingKey<HighExposureSchema> | MappingKey<SourceOfFundsSchema>; export declare const getFieldsWithExistingData: <TLDS extends TopLevelDataSchema>(legalEntity: ExistingLegalEntity, keyMapping: MappingRecord<LegalEntity, TLDS>, documentMapping?: DocumentMappingRecord<TLDS>, knownProblematicFields?: Array<MappingKey<TLDS>>) => MappingKey<TLDS>[];