import type { Incident } from "@/domain/incidents/incident.type.js"; import type { IncidentSummary } from "@/domain/incidents/incident.type.js"; export interface IIncidentsRepository { // create create(incident: Partial): Promise; // fetch findById(incidentId: string, teamId: string): Promise; findActiveByIncidentId(incidentId: string, teamId: string): Promise; findActiveByMonitorId(monitorId: string, teamId: string): Promise; findByTeamId( teamId: string, startDate: Date | undefined, page: number, rowsPerPage: number, sortOrder?: string, status?: boolean, monitorId?: string, resolutionType?: string ): Promise; findByMonitorIdAndDate(monitorId: string, teamId: string, dateStart: Date, dateEnd: Date): Promise; findSummaryByTeamId(teamId: string, limit?: number): Promise; countByTeamId(teamId: string, startDate: Date | undefined, status?: boolean, monitorId?: string, resolutionType?: string): Promise; // update updateById(incidentId: string, teamId: string, updateData: Partial): Promise; // delete deleteByMonitorId(monitorId: string, teamId: string): Promise; deleteByMonitorIdsNotIn(monitorIds: string[]): Promise; // other }