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; createBulkMonitors(monitors: Monitor[]): Promise; // single fetch findById(monitorId: string, teamId?: string): Promise; // collection fetch findAll(): Promise; findByTeamId(teamId: string, config: TeamQueryConfig): Promise; // update update(monitorId: string, updates: Partial): Promise; // delete deleteByTeamId(teamId: string): Promise<{ monitors: Monitor[]; deletedCount: number }>; // counts findMonitorCountByTeamIdAndType(teamId: string, config: TeamQueryConfig): Promise; }