overcentric
Version:
Overcentric watches your website, product, and users - and tells you what matters and what to do about it.
14 lines (13 loc) • 450 B
TypeScript
export interface SimpleEvent {
eventName: string;
properties: Record<string, any>;
deviceId?: string | null;
sessionId?: string | null;
context: 'website' | 'product';
}
export interface SimpleIdentity {
uniqueIdentifier: string | null;
email?: string | null;
name?: string | null;
}
export declare function sendEvent(projectId: string, basePath: string, event: SimpleEvent, identity?: SimpleIdentity): Promise<void>;