diff --git a/src/services/api/index.ts b/src/services/api/index.ts index bfe7035..b95d881 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -45,4 +45,5 @@ export { MudDiagramService } from './services/MudDiagramService'; export { NnbDataService } from './services/NnbDataService'; export { ReportService } from './services/ReportService'; export { TelemetryService } from './services/TelemetryService'; +export { WellSectionService } from './services/WellSectionService'; export { WellService } from './services/WellService'; diff --git a/src/services/api/models/WellStatDto.ts b/src/services/api/models/WellStatDto.ts index 7293b43..e759605 100644 --- a/src/services/api/models/WellStatDto.ts +++ b/src/services/api/models/WellStatDto.ts @@ -9,10 +9,10 @@ export type WellStatDto = { caption?: string | null; cluster?: string | null; deposit?: string | null; - id?: number; latitude?: number | null; longitude?: number | null; wellType?: string | null; + id?: number; planStart?: string | null; planEnd?: string | null; factStart?: string | null; diff --git a/src/services/api/services/WellSectionService.ts b/src/services/api/services/WellSectionService.ts new file mode 100644 index 0000000..ba9950e --- /dev/null +++ b/src/services/api/services/WellSectionService.ts @@ -0,0 +1,96 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { WellSectionDto } from '../models/WellSectionDto'; +import { request as __request } from '../core/request'; + +export class WellSectionService { + + /** + * @param idWell + * @returns any Success + * @throws ApiError + */ + public static async getAll( +idWell: string, +): Promise { + const result = await __request({ + method: 'GET', + path: `/api/well/${idWell}`, + }); + return result.body; + } + + /** + * @param idWell + * @param requestBody + * @returns any Success + * @throws ApiError + */ + public static async insert( +idWell: string, +requestBody?: WellSectionDto, +): Promise { + const result = await __request({ + method: 'POST', + path: `/api/well/${idWell}`, + body: requestBody, + }); + return result.body; + } + + /** + * @param id + * @param idWell + * @returns any Success + * @throws ApiError + */ + public static async get( +id: number, +idWell: string, +): Promise { + const result = await __request({ + method: 'GET', + path: `/api/well/${idWell}/${id}`, + }); + return result.body; + } + + /** + * @param id + * @param idWell + * @param requestBody + * @returns any Success + * @throws ApiError + */ + public static async put( +id: number, +idWell: string, +requestBody?: WellSectionDto, +): Promise { + const result = await __request({ + method: 'PUT', + path: `/api/well/${idWell}/${id}`, + body: requestBody, + }); + return result.body; + } + + /** + * @param id + * @param idWell + * @returns any Success + * @throws ApiError + */ + public static async delete( +id: number, +idWell: string, +): Promise { + const result = await __request({ + method: 'DELETE', + path: `/api/well/${idWell}/${id}`, + }); + return result.body; + } + +} \ No newline at end of file