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