Files
SerpentRace/SerpentRace_Backend/dist/Infrastructure/Repository/ContactRepository.d.ts
T

23 lines
1.2 KiB
TypeScript

import { ContactAggregate } from '../../Domain/Contact/ContactAggregate';
import { IContactRepository } from '../../Domain/IRepository/IContactRepository';
export declare class ContactRepository implements IContactRepository {
private repo;
constructor();
create(contact: Partial<ContactAggregate>): Promise<Partial<ContactAggregate> & ContactAggregate>;
findById(id: string): Promise<ContactAggregate | null>;
findByPage(from: number, to: number): Promise<{
contacts: ContactAggregate[];
totalCount: number;
}>;
findByPageIncludingDeleted(from: number, to: number): Promise<{
contacts: ContactAggregate[];
totalCount: number;
}>;
update(id: string, update: Partial<ContactAggregate>): Promise<ContactAggregate | null>;
delete(id: string): Promise<import("typeorm").DeleteResult>;
softDelete(id: string): Promise<ContactAggregate | null>;
findByIdIncludingDeleted(id: string): Promise<ContactAggregate | null>;
searchIncludingDeleted(searchTerm: string): Promise<ContactAggregate[]>;
search(searchTerm: string): Promise<ContactAggregate[]>;
}
//# sourceMappingURL=ContactRepository.d.ts.map