import { type MonitorType, type Monitor } from "@/types/index.js"; export interface TeamQueryConfig { limit?: number; type?: MonitorType | MonitorType[]; page?: number; rowsPerPage?: number; filter?: string; field?: string; order?: "asc" | "desc"; } export interface IMonitorsRepository { // create create(monitor: Monitor, teamId: string, userId: string): Promise; // single fetch findById(monitorId: string): Promise; // collection fetch findAll(): Promise; findByTeamId(teamId: string, config: TeamQueryConfig): Promise; // update update(monitorId: string, updates: Partial): Promise; // delete // counts findMonitorCountByTeamIdAndType(teamId: string, config: TeamQueryConfig): Promise; }