9 lines
340 B
TypeScript
9 lines
340 B
TypeScript
|
|
import { UniqueID } from "@common/domain";
|
||
|
|
import { Collection, Result } from "@common/helpers";
|
||
|
|
import { Contact } from "../aggregates";
|
||
|
|
|
||
|
|
export interface IContactService {
|
||
|
|
findContact(transaction?: any): Promise<Result<Collection<Contact>, Error>>;
|
||
|
|
findContactById(contactId: UniqueID, transaction?: any): Promise<Result<Contact>>;
|
||
|
|
}
|