Сервисы обновлены

This commit is contained in:
goodmice 2021-10-12 15:28:46 +05:00
parent d777b02661
commit 279b375ea9
7 changed files with 124 additions and 52 deletions

View File

@ -33,6 +33,7 @@ export type { TelemetryUserDto } from './models/TelemetryUserDto';
export type { UserDto } from './models/UserDto'; export type { UserDto } from './models/UserDto';
export type { UserRoleDto } from './models/UserRoleDto'; export type { UserRoleDto } from './models/UserRoleDto';
export type { UserTokenDto } from './models/UserTokenDto'; export type { UserTokenDto } from './models/UserTokenDto';
export type { WellCompositeDto } from './models/WellCompositeDto';
export type { WellDepthToDayDto } from './models/WellDepthToDayDto'; export type { WellDepthToDayDto } from './models/WellDepthToDayDto';
export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto'; export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto';
export type { WellDto } from './models/WellDto'; export type { WellDto } from './models/WellDto';
@ -61,6 +62,7 @@ export { TelemetryAnalyticsService } from './services/TelemetryAnalyticsService'
export { TelemetryDataSaubService } from './services/TelemetryDataSaubService'; export { TelemetryDataSaubService } from './services/TelemetryDataSaubService';
export { TelemetryDataSpinService } from './services/TelemetryDataSpinService'; export { TelemetryDataSpinService } from './services/TelemetryDataSpinService';
export { TelemetryService } from './services/TelemetryService'; export { TelemetryService } from './services/TelemetryService';
export { WellCompositeService } from './services/WellCompositeService';
export { WellOperationService } from './services/WellOperationService'; export { WellOperationService } from './services/WellOperationService';
export { WellOperationStatService } from './services/WellOperationStatService'; export { WellOperationStatService } from './services/WellOperationStatService';
export { WellService } from './services/WellService'; export { WellService } from './services/WellService';

View File

@ -5,21 +5,21 @@
export type DrillParamsDto = { export type DrillParamsDto = {
id?: number; id?: number;
idWell?: number; idWell?: number;
wellSectionTypeName?: string | null;
depthStart?: number; depthStart?: number;
depthEnd?: number; depthEnd?: number;
idWellSectionType?: number;
axialLoadMin?: number; axialLoadMin?: number;
axialLoadAvg?: number; axialLoadAvg?: number;
axialLoadMax?: number; axialLoadMax?: number;
pressureMin?: number; pressureMin?: number;
pressureAvg?: number; pressureAvg?: number;
pressureMax?: number; pressureMax?: number;
topDriveTorqueMin?: number; rotorTorqueMin?: number;
topDriveTorqueAvg?: number; rotorTorqueAvg?: number;
topDriveTorqueMax?: number; rotorTorqueMax?: number;
topDriveSpeedMin?: number; rotorSpeedMin?: number;
topDriveSpeedAvg?: number; rotorSpeedAvg?: number;
topDriveSpeedMax?: number; rotorSpeedMax?: number;
flowMin?: number; flowMin?: number;
flowAvg?: number; flowAvg?: number;
flowMax?: number; flowMax?: number;

View File

@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type WellCompositeDto = {
idWell?: number;
idWellSrc?: number;
idWellSectionType?: number;
}

View File

@ -14,14 +14,14 @@ export class DrillParamsService {
* @returns DrillParamsDto Success * @returns DrillParamsDto Success
* @throws ApiError * @throws ApiError
*/ */
public static async getDefaultDrillParams( public static async getDefault(
idWell?: number, idWell?: number,
startDepth?: number, startDepth?: number,
endDepth?: number, endDepth?: number,
): Promise<DrillParamsDto> { ): Promise<DrillParamsDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/drillParams/idWell/autoParams`, path: `/autoParams`,
query: { query: {
'idWell': idWell, 'idWell': idWell,
'startDepth': startDepth, 'startDepth': startDepth,
@ -32,25 +32,78 @@ export class DrillParamsService {
} }
/** /**
* Сохраняет значения для режимов бурения * Возвращает все значения для режимов бурения на скважине
* @param idWell id скважины
* @returns DrillParamsDto Success
* @throws ApiError
*/
public static async getAll(
idWell: number,
): Promise<Array<DrillParamsDto>> {
const result = await __request({
method: 'GET',
path: `/api/drillParams/${idWell}`,
});
return result.body;
}
/**
* Сохраняет значения для режимов бурения по секции на скважине
* @param idWell id скважины * @param idWell id скважины
* @param requestBody Параметры режимов бурений для секции * @param requestBody Параметры режимов бурений для секции
* @returns number Success * @returns number Success
* @throws ApiError * @throws ApiError
*/ */
public static async saveDrillParams( public static async save(
idWell?: number, idWell: number,
requestBody?: DrillParamsDto, requestBody?: DrillParamsDto,
): Promise<number> { ): Promise<number> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/drillParams/idWell`, path: `/api/drillParams/${idWell}`,
query: {
'idWell': idWell,
},
body: requestBody, body: requestBody,
}); });
return result.body; return result.body;
} }
/**
* Изменяет значения выбранного режима бурения
* @param idWell id скважины
* @param requestBody Параметры режимов бурений для секции
* @returns number Success
* @throws ApiError
*/
public static async edit(
idWell: number,
requestBody?: DrillParamsDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/drillParams/${idWell}`,
body: requestBody,
});
return result.body;
}
/**
* Удаляет объект значений выбранного режима бурения
* @param idWell id скважины
* @param drillParamsId Id объекта параметров режима бурений для секции
* @returns number Success
* @throws ApiError
*/
public static async delete(
idWell: number,
drillParamsId?: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/drillParams/${idWell}`,
query: {
'drillParamsId': drillParamsId,
},
});
return result.body;
}
} }

View File

@ -21,21 +21,6 @@ export class MeasureService {
return result.body; return result.body;
} }
/**
* @param idWell
* @returns any Success
* @throws ApiError
*/
public static async getAllLast(
idWell: number,
): Promise<any> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/measure/lastAll`,
});
return result.body;
}
/** /**
* @param idWell * @param idWell
* @param idCategory * @param idCategory

View File

@ -2,7 +2,6 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { EventDto } from '../models/EventDto'; import type { EventDto } from '../models/EventDto';
import type { TelemetryDataSaubDto } from '../models/TelemetryDataSaubDto';
import type { TelemetryInfoDto } from '../models/TelemetryInfoDto'; import type { TelemetryInfoDto } from '../models/TelemetryInfoDto';
import type { TelemetryMessageDto } from '../models/TelemetryMessageDto'; import type { TelemetryMessageDto } from '../models/TelemetryMessageDto';
import type { TelemetryUserDto } from '../models/TelemetryUserDto'; import type { TelemetryUserDto } from '../models/TelemetryUserDto';
@ -29,26 +28,6 @@ export class TelemetryService {
return result.body; return result.body;
} }
/**
* @deprecated
* Принимает данные от разных систем по скважине
* @param uid Уникальный идентификатор отправителя
* @param requestBody Данные
* @returns any Success
* @throws ApiError
*/
public static async postData(
uid: string,
requestBody?: Array<TelemetryDataSaubDto>,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/telemetry/${uid}/data`,
body: requestBody,
});
return result.body;
}
/** /**
* Принимает список новых сообщений от телеметрии * Принимает список новых сообщений от телеметрии
* @param uid Уникальный идентификатор отправителя * @param uid Уникальный идентификатор отправителя

View File

@ -0,0 +1,44 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { WellCompositeDto } from '../models/WellCompositeDto';
import { request as __request } from '../core/request';
export class WellCompositeService {
/**
* Получает композитную скважину для скважины
* @param idWell id скважины для которой собрана композитная скважина
* @returns WellCompositeDto Success
* @throws ApiError
*/
public static async get(
idWell: number,
): Promise<Array<WellCompositeDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/composite`,
});
return result.body;
}
/**
* Создает или заменяет композитную скважину для скважины с idWell
* @param idWell id скважины для которой собрана композитная скважина
* @param requestBody Секции композитной скважины
* @returns any Success
* @throws ApiError
*/
public static async save(
idWell: number,
requestBody?: Array<WellCompositeDto>,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/composite`,
body: requestBody,
});
return result.body;
}
}