import { UniqueID } from "@repo/rdx-ddd";
import { Result } from "@repo/rdx-utils";
import { DocNumber } from "../aggregates/doc-number";

export interface IDocNumberingRepository {
  getByReferenceInCompany(
    companyId: UniqueID,
    reference: string,
    transaction?: unknown
  ): Promise<Result<DocNumber, Error>>;
  save(reference: string, transaction?: unknown): Promise<Result<DocNumber, Error>>;
}
