overcentric
Version:
Overcentric watches your website, product, and users - and tells you what matters and what to do about it.
40 lines (39 loc) • 1.09 kB
TypeScript
export type Context = 'website' | 'product';
export interface CompanyInfo {
/** Your own unique id for the company. If omitted, Overcentric generates one. */
id?: string;
name?: string;
website?: string;
}
export interface UserInfo {
name?: string;
email?: string;
/** The company/team/account this user belongs to. */
company?: CompanyInfo;
}
export interface InitOptions {
context: Context;
basePath?: string;
debugMode?: boolean;
dockColor?: string;
dockColorSecondary?: string;
dockCalloutText?: string;
enableKB?: boolean;
enableChat?: boolean;
enableRecording?: boolean;
enableErrorCapture?: boolean;
projectURL?: string;
dockHidePatterns?: string[];
dockShowPatterns?: string[];
enableVisitorId?: boolean;
ignoredNetworkErrorUrlPatterns?: string[];
recordingBlockUrlPatterns?: string[];
}
declare global {
interface Window {
overcentric: any;
overcentricContext?: Context | null;
overcentricProjectId?: string;
overcentricInitialized?: boolean;
}
}