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

17 lines (16 loc) 760 B
import { type QueryOptions } from '@tanstack/react-query'; import type { MixpanelProperty } from '../../core/user-events'; import type { components } from './analytics.contract'; type SuccessResponse = components['schemas']['InitSessionResponse']; interface CorrectedSuccessReponse extends SuccessResponse { id: string; } export interface SessionData { sdkVersion: string; componentName: string; userAgent: string; legalEntityId: string; userData?: Record<string, MixpanelProperty>; } export declare const useAnalyticsSession: (sessionData: SessionData, onboardingVersion: number | undefined, options?: QueryOptions<CorrectedSuccessReponse>) => import("@tanstack/react-query").UseQueryResult<CorrectedSuccessReponse, Error>; export {};