T extends BaseEntity
abstract
deleteById(Id: BaseEntity["Id"]): Promise<RepositoryResult<T, NotFoundError>>
abstract
fetchAll(): Promise<RepositoryResult<T[]>>
abstract
fetchById(id: BaseEntity["Id"]): Promise<RepositoryResult<T, NotFoundError>>
abstract
fetchPaginated(options: PaginationOptions): Promise<RepositoryResult<Paginated<T>>>
abstract
insert(entity: T): Promise<RepositoryResult<T, AlreadyExistsError>>
abstract
update(entity: T): Promise<RepositoryResult<T, NotFoundError>>