29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
import { GameDto, GameStatus } from '../models/game.model';
|
|
export declare function listGames(options?: {
|
|
featured?: boolean;
|
|
}): Promise<GameDto[]>;
|
|
export declare function listAllGamesAdmin(): Promise<GameDto[]>;
|
|
export declare function getGame(slug: string): Promise<GameDto | null>;
|
|
export type GameImplementationOption = {
|
|
key: string;
|
|
defaultSlug: string;
|
|
label: string;
|
|
};
|
|
export declare function listRegisteredImplementations(): GameImplementationOption[];
|
|
export declare function parseGameInput(body: Record<string, unknown>, partial?: boolean): {
|
|
slug: string | undefined;
|
|
title: string | undefined;
|
|
description: string | null | undefined;
|
|
category: string | undefined;
|
|
thumbnailUrl: string | null | undefined;
|
|
accentColor: string | undefined;
|
|
status: GameStatus | undefined;
|
|
sortOrder: number | undefined;
|
|
isFeatured: boolean | undefined;
|
|
implementationKey: string | null | undefined;
|
|
};
|
|
export declare function createGame(body: Record<string, unknown>): Promise<GameDto>;
|
|
export declare function updateGame(id: string, body: Record<string, unknown>): Promise<GameDto>;
|
|
export declare function deleteGame(id: string): Promise<void>;
|
|
export declare function listImplementationsAdmin(): Promise<GameImplementationOption[]>;
|
|
//# sourceMappingURL=gameService.d.ts.map
|