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

20 lines
962 B
TypeScript

import { ContactAggregate } from '../Contact/ContactAggregate';
export interface IContactRepository {
create(contact: Partial<ContactAggregate>): Promise<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<any>;
softDelete(id: string): Promise<ContactAggregate | null>;
findByIdIncludingDeleted(id: string): Promise<ContactAggregate | null>;
search(searchTerm: string): Promise<ContactAggregate[]>;
searchIncludingDeleted(searchTerm: string): Promise<ContactAggregate[]>;
}
//# sourceMappingURL=IContactRepository.d.ts.map