status page service/repo refactor

This commit is contained in:
Alex Holliday committed 2026-01-22 20:57:20 +00:00
1 parent 2359255ef7
commit e6c268f14e
18 files changed
+357 -47

No files matched your search

@@ -2,10 +2,15 @@ import type { StatusPage } from "@/types/statusPage.js";
export interface IStatusPagesRepository {
// create
create(userId: string, teamId: string, image: Express.Multer.File | undefined, data: Partial<StatusPage>): Promise<StatusPage>;
// single fetch
findByUrl(url: string): Promise<StatusPage>;
findByTeamId(teamId: string): Promise<StatusPage[]>;
// collection fetch
// update
updateById(id: string, teamId: string, image: Express.Multer.File | undefined, data: Partial<StatusPage>): Promise<StatusPage>;
// delete
deleteById(id: string, teamId: string): Promise<StatusPage>;
// other
removeMonitorFromStatusPages(monitorId: string): Promise<number>;
}