import { UniqueID } from "@/core/common/domain"; import { Collection, Result } from "@/core/common/helpers"; import { Account, IAccountProps } from "../aggregates"; export interface IAccountService { findAccounts(transaction?: any): Promise, Error>>; findAccountById(accountId: UniqueID, transaction?: any): Promise>; updateAccountById( accountId: UniqueID, data: Partial, transaction?: any ): Promise>; createAccount( accountId: UniqueID, data: IAccountProps, transaction?: any ): Promise>; }