Per-Project model promotions (web.db model_promotions).
API
@Interface()
export abstract class ModelPromotions {
abstract get(projectId: string, provider: string, modelId: string): number | undefined;
abstract list(projectId: string): ModelPromotion[];
abstract replaceAll(projectId: string, rows: readonly ModelPromotion[]): void;
abstract replaceProvider(
projectId: string,
provider: string,
rows: readonly ModelPromotion[],
): void;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (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[]): voidReplaces every promotion of the Project, in one transaction.
@paramprojectId
string@paramrows
readonly ModelPromotion[]@returns
voidreplaceProvider
replaceProvider(projectId: string, provider: string, rows: readonly ModelPromotion[]): voidReplaces the promotions of one provider group, in one transaction.
@paramprojectId
string@paramprovider
string@paramrows
readonly ModelPromotion[]@returns
void