fix: SQLite boolean binding, CSS brace, race condition, 0 npm vulns, code-splitting

This commit is contained in:
Leopoldadmin
2026-07-04 16:08:51 +02:00
parent a4371ca3ce
commit 0606dbb501
20 changed files with 1070 additions and 53 deletions
+33
View File
@@ -79,6 +79,26 @@ export interface DBSession {
created_at: string;
}
export interface DBNotification {
id: string;
user_id: string;
type: string;
title: string;
message: string;
read: number;
created_at: string;
}
export interface DBProjectShare {
id: string;
project_id: string;
shared_with_email: string;
shared_by: string;
permission: string;
share_token: string | null;
created_at: string;
}
export interface DatabaseInterface {
init(): Promise<void>;
close(): void;
@@ -132,4 +152,17 @@ export interface DatabaseInterface {
getSession(token: string): DBSession | null;
deleteSession(token: string): boolean;
deleteExpiredSessions(): void;
// Notifications
listNotifications(userId: string): DBNotification[];
getNotification(id: string): DBNotification | null;
createNotification(data: Partial<DBNotification>): DBNotification;
markNotificationRead(id: string): boolean;
deleteNotification(id: string): boolean;
// Project Shares
listProjectShares(projectId: string): DBProjectShare[];
getProjectShare(id: string): DBProjectShare | null;
createProjectShare(data: Partial<DBProjectShare>): DBProjectShare;
deleteProjectShare(id: string): boolean;
}