No JSDoc comment in source yet.
API
@Component()
export class UserDraftsRepo implements UserDraftsStore {
@Use() private readonly db!: Db;
list(userId: string): StoredDraft[];
apply(userId: string, writes: readonly DraftWrite[], bounds: { maxCount: number; maxChars: number }): void;
deleteBySession(sessionId: string): void;
deleteByProject(projectId: string): void;
deleteByAgent(projectId: string, agentId: string): void;
}Dependencies & Wiring
Extracted from class decoratorsMethods (5)
list
list(userId: string): StoredDraft[]@paramuserId
string@returns
StoredDraft[]apply
apply(userId: string, writes: readonly DraftWrite[], bounds: { maxCount: number; maxChars: number }): void@paramuserId
string@paramwrites
readonly DraftWrite[]@parambounds
{ maxCount: number; maxChars: number }@returns
voiddeleteBySession
deleteBySession(sessionId: string): void@paramsessionId
string@returns
voiddeleteByProject
deleteByProject(projectId: string): void@paramprojectId
string@returns
voiddeleteByAgent
deleteByAgent(projectId: string, agentId: string): void@paramprojectId
string@paramagentId
string@returns
void