@aller/blink
Version:
A library for tracking user behaviour.
15 lines (14 loc) • 688 B
TypeScript
import { BlinkEvent } from '../types';
import { VideoWatchEvent } from '../utils/video-event-time';
import { Page } from '../selectors/get-page-state';
export interface PrepareVideoWatchEventInput {
page: Page;
videoId: string;
playerId: string;
streamingMode?: string;
channelId?: string;
time?: Date;
}
export declare function prepareSingleVideoWatchEvent(videoId: string, generalData: any, watchEvent: VideoWatchEvent, streamingMode?: string, channelId?: string): BlinkEvent;
export default function prepareVideoWatchEvents(input: PrepareVideoWatchEventInput): BlinkEvent[];
export declare function getAllVideoWatchEventsPrepared(page: Page, time?: Date): any;