Files
Checkmate/server/src/domain/notifications/notification.repository.interface.ts
T

13 lines
589 B
TypeScript
Raw Normal View History

2026-06-09 12:34:15 -07:00
import type { Notification } from "@/domain/notifications/notification.type.js";
2026-01-19 00:48:20 +00:00
export interface INotificationsRepository {
// create
2026-01-21 13:51:04 -08:00
create(notificationData: Partial<Notification>): Promise<Notification>;
2026-01-19 00:48:20 +00:00
// fetch
2026-01-21 13:51:04 -08:00
findById(id: string, teamId: string): Promise<Notification>;
2026-01-19 18:58:17 +00:00
findNotificationsByIds(ids: string[]): Promise<Notification[]>;
2026-01-21 13:51:04 -08:00
findByTeamId(teamId: string): Promise<Notification[]>;
2026-01-19 00:48:20 +00:00
// update
2026-01-21 13:51:04 -08:00
updateById(id: string, teamId: string, updateData: Partial<Notification>): Promise<Notification>;
2026-01-19 00:48:20 +00:00
// delete
2026-01-21 13:51:04 -08:00
deleteById(id: string, teamId: string): Promise<Notification>;
2026-01-19 00:48:20 +00:00
}