using DigitalData.Core.Abstractions.Infrastructure; using EnvelopeGenerator.Domain.Entities; namespace EnvelopeGenerator.Application.Contracts.Repositories; public interface IEnvelopeHistoryRepository : ICRUDRepository { Task CountAsync(int? envelopeId = null, string? userReference = null, int? status = null); Task> ReadAsync(int? envelopeId = null, string? userReference = null, int? status = null, bool withSender = false, bool withReceiver = false); }