Projects: the mechanism ProjectsRepo implements.
API
@Interface()
export abstract class Projects {
abstract insert(row: ProjectRow): void;
abstract findById(projectId: string): ProjectRow | null;
abstract listAll(): ProjectRow[];
abstract listAccessible(userId: string): AccessibleProjectRow[];
abstract listByOwner(userId: string): ProjectRow[];
abstract delete(projectId: string): void;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (6)
insert
insert(row: ProjectRow): void@paramrow
ProjectRow@returns
voidfindById
findById(projectId: string): ProjectRow | null@paramprojectId
string@returns
ProjectRow | nulllistAll
listAll(): ProjectRow[]@returns
ProjectRow[]listAccessible
listAccessible(userId: string): AccessibleProjectRow[]@paramuserId
string@returns
AccessibleProjectRow[]listByOwner
listByOwner(userId: string): ProjectRow[]@paramuserId
string@returns
ProjectRow[]delete
delete(projectId: string): void@paramprojectId
string@returns
void