forked from ddrilling/asb_cloud_front
Сервисы обновлены
This commit is contained in:
parent
c304a5770b
commit
58707c1665
@ -9,7 +9,7 @@ export type { ClusterDto } from './models/ClusterDto';
|
|||||||
export type { CompanyDto } from './models/CompanyDto';
|
export type { CompanyDto } from './models/CompanyDto';
|
||||||
export type { DatesRangeDto } from './models/DatesRangeDto';
|
export type { DatesRangeDto } from './models/DatesRangeDto';
|
||||||
export type { DepositDto } from './models/DepositDto';
|
export type { DepositDto } from './models/DepositDto';
|
||||||
export type { DrillFlowChartParamsDto } from './models/DrillFlowChartParamsDto';
|
export type { DrillFlowChartDto } from './models/DrillFlowChartDto';
|
||||||
export type { DrillParamsDto } from './models/DrillParamsDto';
|
export type { DrillParamsDto } from './models/DrillParamsDto';
|
||||||
export type { EventDto } from './models/EventDto';
|
export type { EventDto } from './models/EventDto';
|
||||||
export type { FileInfoDto } from './models/FileInfoDto';
|
export type { FileInfoDto } from './models/FileInfoDto';
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
export type DrillFlowChartParamsDto = {
|
export type DrillFlowChartDto = {
|
||||||
id?: number;
|
id?: number;
|
||||||
idWell?: number;
|
idWell?: number;
|
||||||
lastUpdate?: string;
|
lastUpdate?: string;
|
@ -20,6 +20,19 @@ export class DepositService {
|
|||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Получает список доступных пользователю месторождений (только скважины с параметрами бурения)
|
||||||
|
* @returns DepositDto Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async getDepositsDrillParams(): Promise<Array<DepositDto>> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/deposit/drillParamsWells`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получает список доступных пользователю кустов месторождения
|
* Получает список доступных пользователю кустов месторождения
|
||||||
* @param depositId
|
* @param depositId
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import type { DrillFlowChartParamsDto } from '../models/DrillFlowChartParamsDto';
|
import type { DrillFlowChartDto } from '../models/DrillFlowChartDto';
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
|
|
||||||
export class DrillFlowChartService {
|
export class DrillFlowChartService {
|
||||||
@ -9,35 +9,19 @@ export class DrillFlowChartService {
|
|||||||
/**
|
/**
|
||||||
* Возвращает все значения для корридоров бурения по id скважины
|
* Возвращает все значения для корридоров бурения по id скважины
|
||||||
* @param idWell id скважины
|
* @param idWell id скважины
|
||||||
* @returns DrillFlowChartParamsDto Success
|
* @param updateFrom Дата, с которой следует искать новые параметры
|
||||||
|
* @returns DrillFlowChartDto Success
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getAll(
|
public static async get(
|
||||||
idWell: number,
|
idWell: number,
|
||||||
): Promise<Array<DrillFlowChartParamsDto>> {
|
updateFrom?: string,
|
||||||
|
): Promise<Array<DrillFlowChartDto>> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/drillFlowChartParams/${idWell}/paramsByIdWell`,
|
path: `/api/well/${idWell}/drillFlowChart`,
|
||||||
});
|
|
||||||
return result.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Возвращает все значения для корридоров бурения по uid панели
|
|
||||||
* @param idWell
|
|
||||||
* @param uid uid панели
|
|
||||||
* @returns DrillFlowChartParamsDto Success
|
|
||||||
* @throws ApiError
|
|
||||||
*/
|
|
||||||
public static async getAll1(
|
|
||||||
idWell: string,
|
|
||||||
uid?: string,
|
|
||||||
): Promise<Array<DrillFlowChartParamsDto>> {
|
|
||||||
const result = await __request({
|
|
||||||
method: 'GET',
|
|
||||||
path: `/api/drillFlowChartParams/${idWell}`,
|
|
||||||
query: {
|
query: {
|
||||||
'uid': uid,
|
'updateFrom': updateFrom,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
@ -52,11 +36,11 @@ export class DrillFlowChartService {
|
|||||||
*/
|
*/
|
||||||
public static async insert(
|
public static async insert(
|
||||||
idWell: number,
|
idWell: number,
|
||||||
requestBody?: DrillFlowChartParamsDto,
|
requestBody?: DrillFlowChartDto,
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: `/api/drillFlowChartParams/${idWell}`,
|
path: `/api/well/${idWell}/drillFlowChart`,
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
@ -71,11 +55,11 @@ export class DrillFlowChartService {
|
|||||||
*/
|
*/
|
||||||
public static async edit(
|
public static async edit(
|
||||||
idWell: number,
|
idWell: number,
|
||||||
requestBody?: DrillFlowChartParamsDto,
|
requestBody?: DrillFlowChartDto,
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
path: `/api/drillFlowChartParams/${idWell}`,
|
path: `/api/well/${idWell}/drillFlowChart`,
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
@ -94,7 +78,7 @@ export class DrillFlowChartService {
|
|||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
path: `/api/drillFlowChartParams/${idWell}`,
|
path: `/api/well/${idWell}/drillFlowChart`,
|
||||||
query: {
|
query: {
|
||||||
'drillFlowChartParamsId': drillFlowChartParamsId,
|
'drillFlowChartParamsId': drillFlowChartParamsId,
|
||||||
},
|
},
|
||||||
@ -102,6 +86,27 @@ export class DrillFlowChartService {
|
|||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Возвращает все значения для корридоров бурения по uid панели
|
||||||
|
* @param uid uid панели
|
||||||
|
* @param updateFrom Дата, с которой следует искать новые параметры
|
||||||
|
* @returns DrillFlowChartDto Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async getByTelemetry(
|
||||||
|
uid: string,
|
||||||
|
updateFrom?: string,
|
||||||
|
): Promise<Array<DrillFlowChartDto>> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/telemetry/${uid}/drillFlowChart`,
|
||||||
|
query: {
|
||||||
|
'updateFrom': updateFrom,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Добавляет массив объектов корридоров бурения
|
* Добавляет массив объектов корридоров бурения
|
||||||
* @param idWell id скважины
|
* @param idWell id скважины
|
||||||
@ -111,11 +116,11 @@ export class DrillFlowChartService {
|
|||||||
*/
|
*/
|
||||||
public static async insertRange(
|
public static async insertRange(
|
||||||
idWell: number,
|
idWell: number,
|
||||||
requestBody?: Array<DrillFlowChartParamsDto>,
|
requestBody?: Array<DrillFlowChartDto>,
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: `/api/drillFlowChartParams/${idWell}/range`,
|
path: `/api/well/${idWell}/drillFlowChart/range`,
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
|
@ -21,7 +21,7 @@ export class DrillParamsService {
|
|||||||
): Promise<DrillParamsDto> {
|
): Promise<DrillParamsDto> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/drillParams/${idWell}/autoParams`,
|
path: `/api/well/${idWell}/drillParams/autoParams`,
|
||||||
query: {
|
query: {
|
||||||
'startDepth': startDepth,
|
'startDepth': startDepth,
|
||||||
'endDepth': endDepth,
|
'endDepth': endDepth,
|
||||||
@ -41,7 +41,7 @@ export class DrillParamsService {
|
|||||||
): Promise<Array<DrillParamsDto>> {
|
): Promise<Array<DrillParamsDto>> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/drillParams/${idWell}`,
|
path: `/api/well/${idWell}/drillParams`,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ export class DrillParamsService {
|
|||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: `/api/drillParams/${idWell}`,
|
path: `/api/well/${idWell}/drillParams`,
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
@ -80,7 +80,7 @@ export class DrillParamsService {
|
|||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
path: `/api/drillParams/${idWell}`,
|
path: `/api/well/${idWell}/drillParams`,
|
||||||
query: {
|
query: {
|
||||||
'dtoId': dtoId,
|
'dtoId': dtoId,
|
||||||
},
|
},
|
||||||
@ -102,7 +102,7 @@ export class DrillParamsService {
|
|||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
path: `/api/drillParams/${idWell}`,
|
path: `/api/well/${idWell}/drillParams`,
|
||||||
query: {
|
query: {
|
||||||
'drillParamsId': drillParamsId,
|
'drillParamsId': drillParamsId,
|
||||||
},
|
},
|
||||||
@ -123,7 +123,7 @@ export class DrillParamsService {
|
|||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: `/api/drillParams/${idWell}/range`,
|
path: `/api/well/${idWell}/drillParams/range`,
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
@ -140,7 +140,7 @@ export class DrillParamsService {
|
|||||||
): Promise<Array<DrillParamsDto>> {
|
): Promise<Array<DrillParamsDto>> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/drillParams/${idWell}/composite`,
|
path: `/api/well/${idWell}/drillParams/composite`,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user