implement remaining methods

This commit is contained in:
Alex Holliday committed 2026-01-22 17:44:03 +00:00
1 parent 9962866ba5
commit 8bd608bee0
3 files changed
+39 -6

No files matched your search

@@ -4,11 +4,13 @@ export interface IMaintenanceWindowsRepository {
create(data: Partial<MaintenanceWindow>): Promise<MaintenanceWindow>;
// fetch
findById(id: string, teamId: string): Promise<MaintenanceWindow>;
findByMonitorId(monitorId: string, teamId: string): Promise<MaintenanceWindow[]>;
findByTeamId(teamId: string, active: boolean, page: number, rowsPerPage: number, field: string, order: string): Promise<MaintenanceWindow[]>;
// update
updateById(id: string, teamId: string, data: Partial<MaintenanceWindow>): Promise<MaintenanceWindow>;
// delete
deleteById(id: string, teamId: string): Promise<MaintenanceWindow>;
// other
countByTeamId(teamId: string, active: boolean): Promise<number>;
}