No JSDoc comment in source yet.
API
@Component()
export class PluginModuleRequestsRepo implements PluginModuleRequests {
@Use() private readonly db!: Db;
get(pkg: string): PluginModuleRequestRow | null;
list(): PluginModuleRequestRow[];
upsert(row: PluginModuleRequestRow): void;
decide(pkg: string, decision: "enabled" | "declined", by: string, at: string, via: PluginModuleVia | null): boolean;
pendingCount(): number;
}Dependencies & Wiring
Extracted from class decoratorsMethods (5)
get
get(pkg: string): PluginModuleRequestRow | null@parampkg
string@returns
PluginModuleRequestRow | nulllist
list(): PluginModuleRequestRow[]@returns
PluginModuleRequestRow[]upsert
upsert(row: PluginModuleRequestRow): void@paramrow
PluginModuleRequestRow@returns
voiddecide
decide(pkg: string, decision: "enabled" | "declined", by: string, at: string, via: PluginModuleVia | null): boolean@parampkg
string@paramdecision
"enabled" | "declined"@paramby
string@paramat
string@paramvia
PluginModuleVia | null@returns
booleanpendingCount
pendingCount(): number@returns
number