summary
This commit is contained in:
1 parent
adb2a383cf
commit
3cf7243c93
9 files changed
+237
-53
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { Incident } from "@/types/index.js";
|
||||
import type { IncidentSummary } from "@/types/index.js";
|
||||
export interface IIncidentsRepository {
|
||||
// create
|
||||
create(incident: Partial<Incident>): Promise<Incident>;
|
||||
@@ -7,17 +8,19 @@ export interface IIncidentsRepository {
|
||||
findActiveByMonitorId(monitorId: string, teamId: string): Promise<Incident | null>;
|
||||
findByTeamId(
|
||||
teamId: string,
|
||||
startDate: Date,
|
||||
endDate: Date,
|
||||
startDate: Date | undefined,
|
||||
page: number,
|
||||
rowsPerPage: number,
|
||||
sortOrder?: string,
|
||||
status?: string,
|
||||
status?: boolean,
|
||||
monitorId?: string,
|
||||
resolutionType?: string
|
||||
): Promise<Incident[]>;
|
||||
findSummaryByTeamId(teamId: string, limit?: number): Promise<IncidentSummary>;
|
||||
countByTeamId(teamId: string, startDate: Date | undefined, status?: boolean, monitorId?: string, resolutionType?: string): Promise<number>;
|
||||
|
||||
// update
|
||||
updateById(incidentId: string, teamId: string, updateData: Partial<Incident>): Promise<Incident>;
|
||||
// delete
|
||||
// other
|
||||
}
|
||||
Reference in new issue
Block a user