No JSDoc comment in source yet.
API
@Component()
export class ModelPromotionsRepo implements ModelPromotions {
@Use() private readonly db!: Db;
get(projectId: string, provider: string, modelId: string): number | undefined;
list(projectId: string): ModelPromotion[];
replaceAll(projectId: string, rows: readonly ModelPromotion[]): void;
replaceProvider(projectId: string, provider: string, rows: readonly ModelPromotion[]): void;
}Dependencies & Wiring
Extracted from class decoratorsMethods (4)
get
get(projectId: string, provider: string, modelId: string): number | undefined@paramprojectId
string@paramprovider
string@parammodelId
string@returns
number | undefinedlist
list(projectId: string): ModelPromotion[]@paramprojectId
string@returns
ModelPromotion[]replaceAll
replaceAll(projectId: string, rows: readonly ModelPromotion[]): void@paramprojectId
string@paramrows
readonly ModelPromotion[]@returns
voidreplaceProvider
replaceProvider(projectId: string, provider: string, rows: readonly ModelPromotion[]): void@paramprojectId
string@paramprovider
string@paramrows
readonly ModelPromotion[]@returns
void