AgentIndex: the mechanism AgentsRepo implements.
API
@Interface()
export abstract class AgentIndex {
abstract insertOrIgnore(row: AgentRow): void;
abstract exists(projectId: string, agentId: string): boolean;
abstract list(projectId: string): AgentRow[];
abstract delete(projectId: string, agentId: string): void;
abstract deleteByProject(projectId: string): void;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (5)
insertOrIgnore
insertOrIgnore(row: AgentRow): void@paramrow
AgentRow@returns
voidexists
exists(projectId: string, agentId: string): boolean@paramprojectId
string@paramagentId
string@returns
booleanlist
list(projectId: string): AgentRow[]@paramprojectId
string@returns
AgentRow[]delete
delete(projectId: string, agentId: string): void@paramprojectId
string@paramagentId
string@returns
voiddeleteByProject
deleteByProject(projectId: string): void@paramprojectId
string@returns
void