import { ConfigureAPI } from "../baseWellsClient"; import { rethrowAsHttpError } from "../errorHandlingUtils"; import { WellboreSourceItems, WellboreSourcesFilterRequest } from "src"; export class WellboreSourcesAPI extends ConfigureAPI { public list = async ( filter: WellboreSourcesFilterRequest ): Promise => { const path = this.getPath("/wellboresources/list"); return await this.client .asyncPost(path, { data: filter }) .then((response) => response.data) .catch((err) => { throw rethrowAsHttpError(err); }); }; }