Updated namespaces to align with the new DigitalData.Core structure, replacing `DigitalData.Core.Abstractions` with `DigitalData.Core.Application.Interfaces` and `DigitalData.Core.Client.Interface`. Removed the `IUnique<int>` interface from several DTOs, simplifying their design and altering the handling of entity identification. Updated project files to reflect new dependency versions for improved compatibility and features. Cleaned up using directives to remove obsolete references, enhancing code maintainability.
27 lines
1.3 KiB
C#
27 lines
1.3 KiB
C#
using DigitalData.Core.Application.Interfaces;
|
|
using DigitalData.Core.DTO;
|
|
using EnvelopeGenerator.Application.DTOs.EnvelopeHistory;
|
|
using EnvelopeGenerator.Application.DTOs.Receiver;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
using static EnvelopeGenerator.Common.Constants;
|
|
|
|
namespace EnvelopeGenerator.Application.Contracts.Services;
|
|
|
|
public interface IEnvelopeHistoryService : ICRUDService<EnvelopeHistoryCreateDto, EnvelopeHistoryDto, EnvelopeHistory, long>
|
|
{
|
|
Task<int> CountAsync(int? envelopeId = null, string? userReference = null, int? status = null);
|
|
|
|
Task<bool> AccessCodeAlreadyRequested(int envelopeId, string userReference);
|
|
|
|
Task<bool> IsSigned(int envelopeId, string userReference);
|
|
|
|
Task<bool> IsRejected(int envelopeId, string? userReference = null);
|
|
|
|
Task<IEnumerable<EnvelopeHistoryDto>> ReadAsync(int? envelopeId = null, string? userReference = null, ReferenceType? referenceType = null, int? status = null, bool withSender = false, bool withReceiver = false);
|
|
|
|
Task<IEnumerable<EnvelopeHistoryDto>> ReadRejectedAsync(int envelopeId, string? userReference = null);
|
|
|
|
Task<IEnumerable<ReceiverReadDto>> ReadRejectingReceivers(int envelopeId);
|
|
|
|
Task<DataResult<long>> RecordAsync(int envelopeId, string userReference, EnvelopeStatus status, string? comment = null);
|
|
} |