all continents in table

This commit is contained in:
Alex Holliday committed 2026-02-25 19:34:24 +00:00
1 parent 477c30286d
commit 885acf6fe6
7 files changed
+124 -134

No files matched your search

@@ -1,11 +1,16 @@
import type { GeoCheck, GroupedGeoCheck } from "@/types/geoCheck.js";
import type { GeoContinent } from "@/types/geoCheck.js";
import type { GeoContinent, FlatGeoCheck } from "@/types/geoCheck.js";
export interface GeoChecksQueryResult {
geoChecksCount: number;
geoChecks: GeoCheck[];
}
export interface FlatGeoChecksQueryResult {
geoChecksCount: number;
geoChecks: FlatGeoCheck[];
}
export interface IGeoChecksRepository {
createGeoChecks(geoChecks: Omit<GeoCheck, "id" | "__v" | "createdAt" | "updatedAt">[]): Promise<GeoCheck[]>;
findByMonitorId(
@@ -15,7 +20,7 @@ export interface IGeoChecksRepository {
page: number,
rowsPerPage: number,
continents?: GeoContinent[]
): Promise<GeoChecksQueryResult>;
): Promise<FlatGeoChecksQueryResult>;
findByMonitorIdAndDateRange(monitorId: string, startDate: Date, endDate: Date): Promise<GeoCheck[]>;
findGroupedByMonitorIdAndDateRange(
monitorId: string,