mirror of
https://github.com/standardnotes/server
synced 2026-10-11 03:13:42 -04:00
12 lines
510 B
TypeScript
12 lines
510 B
TypeScript
import { NotificationType, Uuid } from '@standardnotes/domain-core'
|
|
|
|
import { Notification } from './Notification'
|
|
|
|
export interface NotificationRepositoryInterface {
|
|
save(notification: Notification): Promise<void>
|
|
findByUserUuidUpdatedAfter(userUuid: Uuid, lastSyncTime: number): Promise<Notification[]>
|
|
findByUserUuid(userUuid: Uuid): Promise<Notification[]>
|
|
findByUserUuidAndType(userUuid: Uuid, type: NotificationType): Promise<Notification[]>
|
|
remove(notification: Notification): Promise<void>
|
|
}
|