UNPKG

avo-inspector

Version:

[![npm version](https://badge.fury.io/js/avo-inspector.svg)](https://badge.fury.io/js/avo-inspector)

25 lines (24 loc) 898 B
import { AvoNetworkCallsHandler } from "./AvoNetworkCallsHandler"; export interface AvoBatcherType { handleSessionStarted(): void; handleTrackSchema(eventName: string, schema: Array<{ propertyName: string; propertyType: string; children?: any; }>, eventId: string | null, eventHash: string | null): void; } export declare class AvoBatcher implements AvoBatcherType { private events; private batchFlushAttemptTimestamp; private networkCallsHandler; constructor(networkCallsHandler: AvoNetworkCallsHandler); handleSessionStarted(): void; handleTrackSchema(eventName: string, schema: Array<{ propertyName: string; propertyType: string; children?: any; }>, eventId: string | null, eventHash: string | null): void; private checkIfBatchNeedsToBeSent; private saveEvents; static get cacheKey(): string; }