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.

18 lines (17 loc) 751 B
import type { MutationOptions } from '../types'; import type { components } from './analytics.contract'; type PushAnalyticEventResponse = components['schemas']['JsonNode']; type Request = components['schemas']['LogAnalyticRequest']; export declare const usePushAnalyticEvent: (sessionId: string, options?: Omit<MutationOptions<PushAnalyticEventResponse, unknown, Request>, "mutationFn">) => import("@tanstack/preact-query").UseMutationResult<Record<string, never>, unknown, { componentName: string; eventData?: { [key: string]: components["schemas"]["JsonNode"]; }; eventName: string; eventType: string; legalEntityId: string; locale?: string; sdkVersion: string; userAgent: string; }, unknown>; export {};