feat: message operations use cases. (#652)

Co-authored-by: Mo <[email protected]>
This commit is contained in:
Karol Sójko
2023-07-10 13:38:07 +02:00
committed by GitHub
co-authored by Mo
parent 58bdca6659
commit 55ec5970da
14 changed files with 348 additions and 0 deletions
@@ -4,6 +4,8 @@ import { Message } from './Message'
export interface MessageRepositoryInterface {
findByUuid: (uuid: Uuid) => Promise<Message | null>
findByRecipientUuid: (uuid: Uuid) => Promise<Message[]>
findBySenderUuid: (uuid: Uuid) => Promise<Message[]>
findByRecipientUuidAndReplaceabilityIdentifier: (dto: {
recipientUuid: Uuid
replaceabilityIdentifier: string