Api refresh

This commit is contained in:
KharchenkoVV 2021-10-05 15:20:42 +05:00
parent fa78376c2a
commit 1cda800f18
6 changed files with 34 additions and 3 deletions

View File

@ -6,6 +6,7 @@ export type MessageDto = {
id?: number;
date?: string;
categoryId?: number;
wellDepth?: number;
user?: string | null;
message?: string | null;
}

View File

@ -6,6 +6,35 @@ import { request as __request } from '../core/request';
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
* @param skip пропустить skip записей

View File

@ -51,7 +51,7 @@ companyName?: string,
fileName?: string,
begin?: string,
end?: string,
skip: number = 0,
skip?: number,
take: number = 32,
): Promise<FileInfoDtoPaginationContainer> {
const result = await __request({

View File

@ -65,7 +65,7 @@ idCategory: number,
): Promise<any> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/measure/history/${idCategory}`,
path: `/api/well/${idWell}/measure/history`,
});
return result.body;
}

View File

@ -30,6 +30,7 @@ requestBody?: TelemetryInfoDto,
}
/**
* @deprecated
* Принимает данные от разных систем по скважине
* @param uid Уникальный идентификатор отправителя
* @param requestBody Данные

View File

@ -48,7 +48,7 @@ begin?: string,
end?: string,
minDepth: number = -1.7976931348623157e+308,
maxDepth: number = 1.7976931348623157e+308,
skip: number = 0,
skip?: number,
take: number = 32,
): Promise<WellOperationDtoPaginationContainer> {
const result = await __request({