No JSDoc comment in source yet.
API
@Component()
export class ProjectsRepo implements Projects {
@Use() private readonly db!: Db;
insert(row: ProjectRow): void;
findById(projectId: string): ProjectRow | null;
listAll(): ProjectRow[];
listAccessible(userId: string): AccessibleProjectRow[];
listByOwner(userId: string): ProjectRow[];
delete(projectId: string): void;
}Dependencies & Wiring
Extracted from class decoratorsMethods (6)
insert
insert(row: ProjectRow): void@paramrow
ProjectRow@returns
voidfindById
findById(projectId: string): ProjectRow | null@paramprojectId
string@returns
ProjectRow | nulllistAll
listAll(): ProjectRow[]All Projects (used by the scheduler's reconciliation scan), ascending by creation time.
@returns
ProjectRow[]listAccessible
listAccessible(userId: string): AccessibleProjectRow[]Projects owned by or shared with the current user (including their role), ascending by creation time.
@paramuserId
string@returns
AccessibleProjectRow[]listByOwner
listByOwner(userId: string): ProjectRow[]All Projects owned by a given user (used for cascading cleanup when an admin deletes a user).
@paramuserId
string@returns
ProjectRow[]delete
delete(projectId: string): void@paramprojectId
string@returns
void