Files
SerpentRace/SerpentRace_Backend/dist/Domain/IRepository/IChatArchiveRepository.d.ts
T

11 lines
585 B
TypeScript

import { ChatArchiveAggregate } from '../Chat/ChatArchiveAggregate';
export interface IChatArchiveRepository {
create(archive: Partial<ChatArchiveAggregate>): Promise<ChatArchiveAggregate>;
findAll(): Promise<ChatArchiveAggregate[]>;
findById(id: string): Promise<ChatArchiveAggregate | null>;
findByChatId(chatId: string): Promise<ChatArchiveAggregate[]>;
findByGameId(gameId: string): Promise<ChatArchiveAggregate[]>;
delete(id: string): Promise<any>;
cleanup(olderThanDays: number): Promise<number>;
}
//# sourceMappingURL=IChatArchiveRepository.d.ts.map