using DD.Persistence.Models; using DD.Persistence.Models.Requests; using Refit; namespace DD.Persistence.Client.Clients.Interfaces.Refit; public interface IRefitChangeLogClient : IDisposable { private const string BaseRoute = "/api/ChangeLog"; [Post($"{BaseRoute}/replace/{{idDiscriminator}}")] Task> ClearAndAddRange(Guid idDiscriminator, IEnumerable dtos, CancellationToken token); [Get($"{BaseRoute}/moment/{{idDiscriminator}}")] Task>> GetByDate( Guid idDiscriminator, DateTimeOffset moment, [Query] SectionPartRequest filterRequest, [Query] PaginationRequest paginationRequest, CancellationToken token); [Get($"{BaseRoute}/history/{{idDiscriminator}}")] Task>> GetChangeLogForInterval(Guid idDiscriminator, DateTimeOffset dateBegin, DateTimeOffset dateEnd, CancellationToken token); [Post($"{BaseRoute}/{{idDiscriminator}}")] Task> Add(Guid idDiscriminator, DataWithWellDepthAndSectionDto dto, CancellationToken token); [Post($"{BaseRoute}/range/{{idDiscriminator}}")] Task> AddRange(Guid idDiscriminator, IEnumerable dtos, CancellationToken token); [Put($"{BaseRoute}")] Task> Update(DataWithWellDepthAndSectionDto dto, CancellationToken token); [Put($"{BaseRoute}/range")] Task> UpdateRange(IEnumerable dtos, CancellationToken token); [Delete($"{BaseRoute}")] Task> Delete(Guid id, CancellationToken token); [Delete($"{BaseRoute}/range")] Task> DeleteRange([Body] IEnumerable ids, CancellationToken token); [Get($"{BaseRoute}/datesRange/{{idDiscriminator}}")] Task> GetDatesRange(Guid idDiscriminator, CancellationToken token); }