using Persistence.Models; using Refit; namespace Persistence.Client.Clients.Interfaces.Refit; public interface IRefitTimestampedSetClient : IDisposable { private const string baseUrl = "/api/TimestampedSet/{idDiscriminator}"; [Post(baseUrl)] Task> AddRange(Guid idDiscriminator, IEnumerable sets, CancellationToken token); [Get(baseUrl)] Task>> Get(Guid idDiscriminator, [Query] DateTimeOffset? geTimestamp, [Query] IEnumerable? columnNames, int skip, int take, CancellationToken token); [Get($"{baseUrl}/last")] Task>> GetLast(Guid idDiscriminator, [Query] IEnumerable? columnNames, int take, CancellationToken token); [Get($"{baseUrl}/count")] Task> Count(Guid idDiscriminator, CancellationToken token); [Get($"{baseUrl}/datesRange")] Task> GetDatesRange(Guid idDiscriminator, CancellationToken token); }