using AsbCloudApp.Data; using AsbCloudApp.Data.ProcessMaps; using AsbCloudApp.Requests; using Refit; namespace AsbCloudWebApi.IntegrationTests.Clients; public interface IProcessMapPlanDrillingClient where TDto : ProcessMapPlanBaseDto { private const string BaseRoute = "/api/well/{idWell}/ProcessMapPlanDrilling"; [Post(BaseRoute)] Task> InsertRange(int idWell, [Body] IEnumerable dtos); [Post($"{BaseRoute}/replace")] Task> ClearAndInsertRange(int idWell, [Body] IEnumerable dtos); [Delete(BaseRoute)] Task> DeleteRange(int idWell, [Body] IEnumerable ids); [Delete($"{BaseRoute}/clear")] Task> Clear(int idWell); [Get(BaseRoute)] Task>> Get(int idWell); [Get($"{BaseRoute}/changelogByMoment")] Task>>> Get(int idWell, DateTimeOffset? moment); [Get("/api/telemetry/{uid}/ProcessMapPlanDrilling")] Task>>> Get(string uid, DateTimeOffset? updateFrom); [Get($"{BaseRoute}/changeLogForDate")] Task>> GetChangeLog(int idWell, DateOnly? date); [Get($"{BaseRoute}/dates")] Task>> GetDatesChange(int idWell); [Put(BaseRoute)] Task> UpdateOrInsertRange(int idWell, IEnumerable dtos); [Multipart] [Post(BaseRoute + "/parse")] Task>> Parse(int idWell, [AliasAs("file")] StreamPart stream); }