2026-06-09 12:34:15 -07:00
|
|
|
import type { StatusPage } from "@/domain/status-pages/status-page.type.js";
|
2026-01-15 19:36:41 +00:00
|
|
|
|
|
|
|
|
export interface IStatusPagesRepository {
|
|
|
|
|
// create
|
2026-01-22 20:57:20 +00:00
|
|
|
create(userId: string, teamId: string, image: Express.Multer.File | undefined, data: Partial<StatusPage>): Promise<StatusPage>;
|
2026-01-15 19:36:41 +00:00
|
|
|
// single fetch
|
2026-01-22 20:57:20 +00:00
|
|
|
findByUrl(url: string): Promise<StatusPage>;
|
|
|
|
|
findByTeamId(teamId: string): Promise<StatusPage[]>;
|
2026-01-15 19:36:41 +00:00
|
|
|
// collection fetch
|
|
|
|
|
// update
|
2026-01-22 20:57:20 +00:00
|
|
|
updateById(id: string, teamId: string, image: Express.Multer.File | undefined, data: Partial<StatusPage>): Promise<StatusPage>;
|
2026-01-15 19:36:41 +00:00
|
|
|
// delete
|
2026-01-22 20:57:20 +00:00
|
|
|
deleteById(id: string, teamId: string): Promise<StatusPage>;
|
2026-01-15 19:36:41 +00:00
|
|
|
// other
|
|
|
|
|
removeMonitorFromStatusPages(monitorId: string): Promise<number>;
|
|
|
|
|
}
|