update, pause

This commit is contained in:
Alex Holliday committed 2026-01-15 18:21:36 +00:00
1 parent e7e4ce7f57
commit 6b5fd8d17f
9 files changed
+53 -27

No files matched your search

@@ -24,8 +24,10 @@ export interface IMonitorsRepository {
// collection fetch
findAll(): Promise<Monitor[] | null>;
findByTeamId(teamId: string, config: TeamQueryConfig): Promise<Monitor[] | null>;
// update
update(monitorId: string, updates: Partial<Monitor>): Promise<Monitor>;
updateById(monitorId: string, updates: Partial<Monitor>): Promise<Monitor>;
togglePauseById(monitorId: string, teamId: string): Promise<Monitor>;
// delete
deleteByTeamId(teamId: string): Promise<{ monitors: Monitor[]; deletedCount: number }>;
@@ -34,4 +36,5 @@ export interface IMonitorsRepository {
// other
findMonitorsSummaryByTeamId(teamId: string, config?: SummaryConfig): Promise<any>;
findGroupsByTeamId(teamId: string): Promise<string[]>;
}