UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

13 lines (12 loc) 655 B
import type { SetRequired } from 'type-fest'; import type { MixpanelProperty } from '../../core/user-events'; import type { components } from './analytics.contract'; export type AnalyticsSessionResponse = SetRequired<components['schemas']['InitSessionResponse'], 'id'>; export type AnalyticsSessionRequest = Omit<components['schemas']['InitSessionRequest'], 'userData' | 'eventData' | 'sdkVersion' | 'componentName' | 'userAgent' | 'legalEntityId'> & { userData: Record<string, MixpanelProperty>; eventData?: Record<string, MixpanelProperty>; sdkVersion: string; componentName: string; userAgent: string; legalEntityId: string; };