format codebase with prettier
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { ChatMessage, Conversation, CreateMessageDTO, GetMessagesOptions } from '@caldav/shared';
|
||||
import {
|
||||
ChatMessage,
|
||||
Conversation,
|
||||
CreateMessageDTO,
|
||||
GetMessagesOptions,
|
||||
} from "@caldav/shared";
|
||||
|
||||
export interface ChatRepository {
|
||||
// Conversations
|
||||
@@ -6,6 +11,12 @@ export interface ChatRepository {
|
||||
createConversation(userId: string): Promise<Conversation>;
|
||||
|
||||
// Messages (cursor-based pagination)
|
||||
getMessages(conversationId: string, options?: GetMessagesOptions): Promise<ChatMessage[]>;
|
||||
createMessage(conversationId: string, message: CreateMessageDTO): Promise<ChatMessage>;
|
||||
getMessages(
|
||||
conversationId: string,
|
||||
options?: GetMessagesOptions,
|
||||
): Promise<ChatMessage[]>;
|
||||
createMessage(
|
||||
conversationId: string,
|
||||
message: CreateMessageDTO,
|
||||
): Promise<ChatMessage>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user