Files
Checkmate/server/src/repositories/geo-checks/IGeoChecksRepository.ts
T

9 lines
553 B
TypeScript
Raw Normal View History

2026-02-23 17:48:53 +00:00
import type { GeoCheck, GroupedGeoCheck } from "@/types/geoCheck.js";
export interface IGeoChecksRepository {
create(geoCheck: Omit<GeoCheck, "id" | "__v" | "createdAt" | "updatedAt">): Promise<GeoCheck>;
findByMonitorIdAndDateRange(monitorId: string, startDate: Date, endDate: Date): Promise<GeoCheck[]>;
findGroupedByMonitorIdAndDateRange(monitorId: string, startDate: Date, endDate: Date, dateFormat: string): Promise<GroupedGeoCheck[]>;
deleteByMonitorId(monitorId: string): Promise<number>;
deleteByTeamId(teamId: string): Promise<number>;
}