games_app/backend/dist/repositories/gameRepository.d.ts
2026-06-29 15:01:23 +02:00

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