sourcebot/packages/backend/src/posthogEvents.ts

24 lines
649 B
TypeScript
Raw Normal View History

2024-11-10 00:40:07 +00:00
/* eslint-disable @typescript-eslint/no-empty-object-type */
export type PosthogEventMap = {
repo_created: {
vcs: string;
codeHost?: string;
},
repo_deleted: {
vcs: string;
codeHost?: string;
},
//////////////////////////////////////////////////////////////////
backend_connection_sync_job_failed: {
connectionId: number,
error: string,
},
backend_connection_sync_job_completed: {
connectionId: number,
repoCount: number,
},
//////////////////////////////////////////////////////////////////
2024-11-10 00:40:07 +00:00
}
export type PosthogEvent = keyof PosthogEventMap;