2026-01-19 00:48:20 +00:00
|
|
|
import type { Notification } from "@/types/index.js";
|
|
|
|
|
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
|
|
|
}
|