mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
* feat(syncing-server): add shared vaults, invites, messages and notifications to sync response * fix(syncing-server): migration timestamps * fix: issue with migrations for notifications
17 lines
634 B
TypeScript
17 lines
634 B
TypeScript
import { Uuid } from '@standardnotes/domain-core'
|
|
|
|
import { Message } from './Message'
|
|
|
|
export interface MessageRepositoryInterface {
|
|
findByUuid: (uuid: Uuid) => Promise<Message | null>
|
|
findByRecipientUuid: (uuid: Uuid) => Promise<Message[]>
|
|
findByRecipientUuidUpdatedAfter: (uuid: Uuid, updatedAtTimestamp: number) => Promise<Message[]>
|
|
findBySenderUuid: (uuid: Uuid) => Promise<Message[]>
|
|
findByRecipientUuidAndReplaceabilityIdentifier: (dto: {
|
|
recipientUuid: Uuid
|
|
replaceabilityIdentifier: string
|
|
}) => Promise<Message | null>
|
|
save(message: Message): Promise<void>
|
|
remove(message: Message): Promise<void>
|
|
}
|