using Books.Api.EventFlow.ReadModels; namespace Books.Api.EventFlow.Repositories; public interface IAttachmentRepository { Task GetByIdAsync(string id, CancellationToken cancellationToken = default); Task GetByStoragePathAsync(string storagePath, CancellationToken cancellationToken = default); Task> GetByCompanyIdAsync(string companyId, CancellationToken cancellationToken = default); Task> GetByDraftIdAsync(string draftId, CancellationToken cancellationToken = default); Task> GetByTransactionIdAsync(string transactionId, CancellationToken cancellationToken = default); Task> GetByIdsAsync(IEnumerable ids, CancellationToken cancellationToken = default); }