forked from ddrilling/asb_cloud_front
Сервисы обновлены
This commit is contained in:
parent
d777b02661
commit
279b375ea9
@ -33,6 +33,7 @@ export type { TelemetryUserDto } from './models/TelemetryUserDto';
|
||||
export type { UserDto } from './models/UserDto';
|
||||
export type { UserRoleDto } from './models/UserRoleDto';
|
||||
export type { UserTokenDto } from './models/UserTokenDto';
|
||||
export type { WellCompositeDto } from './models/WellCompositeDto';
|
||||
export type { WellDepthToDayDto } from './models/WellDepthToDayDto';
|
||||
export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto';
|
||||
export type { WellDto } from './models/WellDto';
|
||||
@ -61,6 +62,7 @@ export { TelemetryAnalyticsService } from './services/TelemetryAnalyticsService'
|
||||
export { TelemetryDataSaubService } from './services/TelemetryDataSaubService';
|
||||
export { TelemetryDataSpinService } from './services/TelemetryDataSpinService';
|
||||
export { TelemetryService } from './services/TelemetryService';
|
||||
export { WellCompositeService } from './services/WellCompositeService';
|
||||
export { WellOperationService } from './services/WellOperationService';
|
||||
export { WellOperationStatService } from './services/WellOperationStatService';
|
||||
export { WellService } from './services/WellService';
|
||||
|
@ -5,21 +5,21 @@
|
||||
export type DrillParamsDto = {
|
||||
id?: number;
|
||||
idWell?: number;
|
||||
wellSectionTypeName?: string | null;
|
||||
depthStart?: number;
|
||||
depthEnd?: number;
|
||||
idWellSectionType?: number;
|
||||
axialLoadMin?: number;
|
||||
axialLoadAvg?: number;
|
||||
axialLoadMax?: number;
|
||||
pressureMin?: number;
|
||||
pressureAvg?: number;
|
||||
pressureMax?: number;
|
||||
topDriveTorqueMin?: number;
|
||||
topDriveTorqueAvg?: number;
|
||||
topDriveTorqueMax?: number;
|
||||
topDriveSpeedMin?: number;
|
||||
topDriveSpeedAvg?: number;
|
||||
topDriveSpeedMax?: number;
|
||||
rotorTorqueMin?: number;
|
||||
rotorTorqueAvg?: number;
|
||||
rotorTorqueMax?: number;
|
||||
rotorSpeedMin?: number;
|
||||
rotorSpeedAvg?: number;
|
||||
rotorSpeedMax?: number;
|
||||
flowMin?: number;
|
||||
flowAvg?: number;
|
||||
flowMax?: number;
|
||||
|
9
src/services/api/models/WellCompositeDto.ts
Normal file
9
src/services/api/models/WellCompositeDto.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type WellCompositeDto = {
|
||||
idWell?: number;
|
||||
idWellSrc?: number;
|
||||
idWellSectionType?: number;
|
||||
}
|
@ -14,14 +14,14 @@ export class DrillParamsService {
|
||||
* @returns DrillParamsDto Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getDefaultDrillParams(
|
||||
public static async getDefault(
|
||||
idWell?: number,
|
||||
startDepth?: number,
|
||||
endDepth?: number,
|
||||
): Promise<DrillParamsDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/drillParams/idWell/autoParams`,
|
||||
path: `/autoParams`,
|
||||
query: {
|
||||
'idWell': idWell,
|
||||
'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 requestBody Параметры режимов бурений для секции
|
||||
* @returns number Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async saveDrillParams(
|
||||
idWell?: number,
|
||||
public static async save(
|
||||
idWell: number,
|
||||
requestBody?: DrillParamsDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/drillParams/idWell`,
|
||||
query: {
|
||||
'idWell': idWell,
|
||||
},
|
||||
path: `/api/drillParams/${idWell}`,
|
||||
body: requestBody,
|
||||
});
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
@ -21,21 +21,6 @@ export class MeasureService {
|
||||
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 idCategory
|
||||
|
@ -2,7 +2,6 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { EventDto } from '../models/EventDto';
|
||||
import type { TelemetryDataSaubDto } from '../models/TelemetryDataSaubDto';
|
||||
import type { TelemetryInfoDto } from '../models/TelemetryInfoDto';
|
||||
import type { TelemetryMessageDto } from '../models/TelemetryMessageDto';
|
||||
import type { TelemetryUserDto } from '../models/TelemetryUserDto';
|
||||
@ -29,26 +28,6 @@ export class TelemetryService {
|
||||
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 Уникальный идентификатор отправителя
|
||||
|
44
src/services/api/services/WellCompositeService.ts
Normal file
44
src/services/api/services/WellCompositeService.ts
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user