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