11 lines
585 B
TypeScript
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
|