Some new open api generated entities

This commit is contained in:
KharchenkoVV 2021-08-03 17:49:33 +05:00
parent 1b33b6683f
commit 3e1312fec2
3 changed files with 98 additions and 1 deletions

View File

@ -45,4 +45,5 @@ export { MudDiagramService } from './services/MudDiagramService';
export { NnbDataService } from './services/NnbDataService'; export { NnbDataService } from './services/NnbDataService';
export { ReportService } from './services/ReportService'; export { ReportService } from './services/ReportService';
export { TelemetryService } from './services/TelemetryService'; export { TelemetryService } from './services/TelemetryService';
export { WellSectionService } from './services/WellSectionService';
export { WellService } from './services/WellService'; export { WellService } from './services/WellService';

View File

@ -9,10 +9,10 @@ export type WellStatDto = {
caption?: string | null; caption?: string | null;
cluster?: string | null; cluster?: string | null;
deposit?: string | null; deposit?: string | null;
id?: number;
latitude?: number | null; latitude?: number | null;
longitude?: number | null; longitude?: number | null;
wellType?: string | null; wellType?: string | null;
id?: number;
planStart?: string | null; planStart?: string | null;
planEnd?: string | null; planEnd?: string | null;
factStart?: string | null; factStart?: string | null;

View File

@ -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<any> {
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<any> {
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<any> {
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<any> {
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<any> {
const result = await __request({
method: 'DELETE',
path: `/api/well/${idWell}/${id}`,
});
return result.body;
}
}