collectlie
Version:
TypeScript SDK for Collectlie - flexible data collection platform with custom types, schema validation, and Supabase backend integration
75 lines • 2 kB
TypeScript
export interface SDKConfig {
baseUrl?: string;
apiKey?: string;
projectId?: string;
isDevelopment?: boolean;
validateSchemas?: boolean;
maxFileSize?: number;
allowedFileTypes?: string[];
}
export interface GatheringOptions {
browser?: boolean | {
viewport?: boolean;
screen?: boolean;
language?: boolean;
languages?: boolean;
timezone?: boolean;
cookiesEnabled?: boolean;
localStorageAvailable?: boolean;
sessionStorageAvailable?: boolean;
};
device?: boolean | {
deviceType?: boolean;
touchSupport?: boolean;
pixelRatio?: boolean;
};
source?: boolean | {
url?: boolean;
path?: boolean;
title?: boolean;
search?: boolean;
hash?: boolean;
host?: boolean;
referrer?: boolean;
};
performance?: boolean | {
pageLoadTime?: boolean;
connectionType?: boolean;
timeOnPage?: boolean;
scrollPosition?: boolean;
pageDimensions?: boolean;
userInteractions?: boolean;
};
errors?: boolean | {
errorCount?: boolean;
recentErrors?: boolean;
failedResources?: boolean;
};
environment?: boolean | {
online?: boolean;
connection?: boolean;
colorScheme?: boolean;
reducedMotion?: boolean;
contrast?: boolean;
transparency?: boolean;
invertedColors?: boolean;
monochrome?: boolean;
forcedColors?: boolean;
storage?: boolean;
permissions?: boolean;
};
interaction?: boolean | {
hasInteraction?: boolean;
focusedElementType?: boolean;
formState?: boolean;
visibility?: boolean;
};
}
export interface RequestConfig {
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
endpoint: string;
data?: any;
headers?: Record<string, string>;
authRequired?: boolean;
}
//# sourceMappingURL=config.d.ts.map