9 lines
553 B
TypeScript
9 lines
553 B
TypeScript
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>;
|
||
|
|
}
|