Configure remote database connection and update documentation

This commit is contained in:
Bivekich
2025-08-06 02:24:01 +03:00
parent 5bd7d79642
commit e1b79f017a
67 changed files with 1513 additions and 15 deletions

View File

@ -0,0 +1,12 @@
import { Repository } from 'typeorm';
import { Conversation } from './entities/conversation.entity';
import { User } from '../users/entities/user.entity';
export declare class ConversationsService {
private conversationsRepository;
constructor(conversationsRepository: Repository<Conversation>);
create(participants: User[], name?: string, isGroup?: boolean): Promise<Conversation>;
findAllForUser(userId: string): Promise<Conversation[]>;
findOne(id: string, userId: string): Promise<Conversation>;
findOrCreatePrivate(user1Id: string, user2Id: string): Promise<Conversation>;
addParticipant(conversationId: string, userId: string, participantId: string): Promise<Conversation>;
}