mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-20 00:18:47 -05:00
game
This commit is contained in:
@@ -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<MonitorsWithChecksByTeamIdResult>;
|
||||
getAllGames(): any;
|
||||
getAllGames(): GamesMap;
|
||||
getGroupsByTeamId(args: { teamId: string }): Promise<string[]>;
|
||||
|
||||
// update
|
||||
@@ -373,7 +374,7 @@ export class MonitorService implements IMonitorService {
|
||||
return { summary: summary ?? null, count, monitors: monitorsWithChecks };
|
||||
};
|
||||
|
||||
getAllGames = (): any => {
|
||||
getAllGames = (): GamesMap => {
|
||||
return this.games;
|
||||
};
|
||||
|
||||
|
||||
@@ -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<string, Game>;
|
||||
|
||||
Reference in New Issue
Block a user