forked from ddrilling/asb_cloud_front
Api refresh
This commit is contained in:
parent
fa78376c2a
commit
1cda800f18
@ -6,6 +6,7 @@ export type MessageDto = {
|
|||||||
id?: number;
|
id?: number;
|
||||||
date?: string;
|
date?: string;
|
||||||
categoryId?: number;
|
categoryId?: number;
|
||||||
|
wellDepth?: number;
|
||||||
user?: string | null;
|
user?: string | null;
|
||||||
message?: string | null;
|
message?: string | null;
|
||||||
}
|
}
|
@ -6,6 +6,35 @@ import { request as __request } from '../core/request';
|
|||||||
|
|
||||||
export class AdminTelemetryService {
|
export class AdminTelemetryService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @returns any Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async getRedundentRemoteUids(): Promise<any> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/reduntentUids`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* merge telemetries
|
||||||
|
* @param requestBody array of ids
|
||||||
|
* @returns any Success
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static async mergeTelemetries(
|
||||||
|
requestBody?: Array<number>,
|
||||||
|
): Promise<any> {
|
||||||
|
const result = await __request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/merge`,
|
||||||
|
body: requestBody,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Получить страницу с записями в PaginationContainer
|
* Получить страницу с записями в PaginationContainer
|
||||||
* @param skip пропустить skip записей
|
* @param skip пропустить skip записей
|
||||||
|
@ -51,7 +51,7 @@ companyName?: string,
|
|||||||
fileName?: string,
|
fileName?: string,
|
||||||
begin?: string,
|
begin?: string,
|
||||||
end?: string,
|
end?: string,
|
||||||
skip: number = 0,
|
skip?: number,
|
||||||
take: number = 32,
|
take: number = 32,
|
||||||
): Promise<FileInfoDtoPaginationContainer> {
|
): Promise<FileInfoDtoPaginationContainer> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
|
@ -65,7 +65,7 @@ idCategory: number,
|
|||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/well/${idWell}/measure/history/${idCategory}`,
|
path: `/api/well/${idWell}/measure/history`,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ requestBody?: TelemetryInfoDto,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* Принимает данные от разных систем по скважине
|
* Принимает данные от разных систем по скважине
|
||||||
* @param uid Уникальный идентификатор отправителя
|
* @param uid Уникальный идентификатор отправителя
|
||||||
* @param requestBody Данные
|
* @param requestBody Данные
|
||||||
|
@ -48,7 +48,7 @@ begin?: string,
|
|||||||
end?: string,
|
end?: string,
|
||||||
minDepth: number = -1.7976931348623157e+308,
|
minDepth: number = -1.7976931348623157e+308,
|
||||||
maxDepth: number = 1.7976931348623157e+308,
|
maxDepth: number = 1.7976931348623157e+308,
|
||||||
skip: number = 0,
|
skip?: number,
|
||||||
take: number = 32,
|
take: number = 32,
|
||||||
): Promise<WellOperationDtoPaginationContainer> {
|
): Promise<WellOperationDtoPaginationContainer> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
|
Loading…
Reference in New Issue
Block a user