21 lines
953 B
TypeScript
21 lines
953 B
TypeScript
import { GameRow, GameStatus } from '../models/game.model';
|
|
export declare function listActiveGames(featuredOnly?: boolean): Promise<GameRow[]>;
|
|
export declare function listAllGames(): Promise<GameRow[]>;
|
|
export declare function getGameById(id: string): Promise<GameRow | null>;
|
|
export declare function getGameBySlug(slug: string): Promise<GameRow | null>;
|
|
export type GameUpsertInput = {
|
|
slug: string;
|
|
title: string;
|
|
description?: string | null;
|
|
category?: string;
|
|
thumbnailUrl?: string | null;
|
|
accentColor?: string;
|
|
status?: GameStatus;
|
|
sortOrder?: number;
|
|
isFeatured?: boolean;
|
|
implementationKey?: string | null;
|
|
};
|
|
export declare function createGame(input: GameUpsertInput): Promise<GameRow>;
|
|
export declare function updateGame(id: string, input: Partial<GameUpsertInput>): Promise<GameRow | null>;
|
|
export declare function deleteGame(id: string): Promise<boolean>;
|
|
//# sourceMappingURL=gameRepository.d.ts.map
|