From d4db32e3920810115397cf7a87026ad654896bc5 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 30 Jan 2026 21:26:27 +0000 Subject: [PATCH] game --- server/src/service/business/monitorService.ts | 5 +++-- server/src/types/monitor.ts | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/server/src/service/business/monitorService.ts b/server/src/service/business/monitorService.ts index b824908b5..2360b6617 100644 --- a/server/src/service/business/monitorService.ts +++ b/server/src/service/business/monitorService.ts @@ -6,6 +6,7 @@ import type { UptimeDetailsResult, HardwareDetailsResult, PageSpeedDetailsResult, + GamesMap, } from "@/types/monitor.js"; import type { IChecksRepository, IMonitorsRepository, IMonitorStatsRepository, IStatusPagesRepository } from "@/repositories/index.js"; import fs from "fs"; @@ -51,7 +52,7 @@ export interface IMonitorService { order?: "asc" | "desc"; explain?: boolean; }): Promise; - getAllGames(): any; + getAllGames(): GamesMap; getGroupsByTeamId(args: { teamId: string }): Promise; // update @@ -373,7 +374,7 @@ export class MonitorService implements IMonitorService { return { summary: summary ?? null, count, monitors: monitorsWithChecks }; }; - getAllGames = (): any => { + getAllGames = (): GamesMap => { return this.games; }; diff --git a/server/src/types/monitor.ts b/server/src/types/monitor.ts index fe6ac8c8a..7f3d4236d 100644 --- a/server/src/types/monitor.ts +++ b/server/src/types/monitor.ts @@ -130,3 +130,19 @@ export interface PageSpeedDetailsResult { }; monitorStats: import("./monitorStats.js").MonitorStats | null; } + + +export interface Game { + name: string; + release_year?: number; + options?: { + port?: number; + port_query?: number; + protocol?: string; + }; + extra?: { + old_id?: string; + }; +} + +export type GamesMap = Record;