UNPKG

avo-inspector

Version:

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

50 lines (49 loc) 1.76 kB
import { type AvoInspectorEnvValueType } from "./AvoInspectorEnv"; import { AvoSessionTracker } from "./AvoSessionTracker"; import { AvoBatcher } from "./AvoBatcher"; import { AvoStorage } from "./AvoStorage"; import { AvoDeduplicator } from "./AvoDeduplicator"; export declare class AvoInspector { environment: AvoInspectorEnvValueType; avoBatcher: AvoBatcher; avoDeduplicator: AvoDeduplicator; sessionTracker: AvoSessionTracker; apiKey: string; version: string; static avoStorage: AvoStorage; private static _batchSize; static get batchSize(): number; static set batchSize(newSize: number); private static _batchFlushSeconds; static get batchFlushSeconds(): number; private static _shouldLog; static get shouldLog(): boolean; static set shouldLog(enable: boolean); constructor(options: { apiKey: string; env: AvoInspectorEnvValueType; version: string; appName?: string; suffix?: string; }); trackSchemaFromEvent(eventName: string, eventProperties: Record<string, any>): Array<{ propertyName: string; propertyType: string; children?: any; }>; private _avoFunctionTrackSchemaFromEvent; trackSchema(eventName: string, eventSchema: Array<{ propertyName: string; propertyType: string; children?: any; }>): void; private trackSchemaInternal; enableLogging(enable: boolean): void; extractSchema(eventProperties: Record<string, any>, shouldLogIfEnabled?: boolean): Array<{ propertyName: string; propertyType: string; children?: any; }>; setBatchSize(newBatchSize: number): void; setBatchFlushSeconds(newBatchFlushSeconds: number): void; }