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

This commit is contained in:
goodmice 2021-10-12 15:01:07 +05:00
parent b6b7a0bc43
commit 92f95b5fe2
5 changed files with 24 additions and 24 deletions

View File

@ -20,7 +20,7 @@ export type DrillParamsDto = {
topDriveSpeedMin?: number; topDriveSpeedMin?: number;
topDriveSpeedAvg?: number; topDriveSpeedAvg?: number;
topDriveSpeedMax?: number; topDriveSpeedMax?: number;
consumptionMin?: number; flowMin?: number;
consumptionAvg?: number; flowAvg?: number;
consumptionMax?: number; flowMax?: number;
} }

View File

@ -25,8 +25,8 @@ export class AdminTelemetryService {
* @throws ApiError * @throws ApiError
*/ */
public static async mergeTelemetries( public static async mergeTelemetries(
requestBody?: Array<number>, requestBody?: Array<number>,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/merge`, path: `/merge`,

View File

@ -15,10 +15,10 @@ export class DrillParamsService {
* @throws ApiError * @throws ApiError
*/ */
public static async getDefaultDrillParams( public static async getDefaultDrillParams(
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: `/drillParams/idWell/autoParams`,
@ -39,9 +39,9 @@ endDepth?: number,
* @throws ApiError * @throws ApiError
*/ */
public static async saveDrillParams( public static async saveDrillParams(
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: `/drillParams/idWell`,

View File

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

View File

@ -48,7 +48,7 @@ export class WellOperationService {
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, skip: number = 0,
take: number = 32, take: number = 32,
): Promise<WellOperationDtoPaginationContainer> { ): Promise<WellOperationDtoPaginationContainer> {
const result = await __request({ const result = await __request({
@ -149,15 +149,15 @@ export class WellOperationService {
* Импортирует операции из excel (xlsx) файла * Импортирует операции из excel (xlsx) файла
* @param idWell id скважины * @param idWell id скважины
* @param options Удалить операции перед импортом = 1, если фал валидный * @param options Удалить операции перед импортом = 1, если фал валидный
* @param requestBody * @param requestBody
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async import( public static async import(
idWell: number, idWell: number,
options: number, options: number,
requestBody?: any, requestBody?: any,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/well/${idWell}/wellOperations/import/${options}`, path: `/api/well/${idWell}/wellOperations/import/${options}`,
@ -173,8 +173,8 @@ requestBody?: any,
* @throws ApiError * @throws ApiError
*/ */
public static async export( public static async export(
idWell: number, idWell: number,
): Promise<string> { ): Promise<string> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/wellOperations/export`, path: `/api/well/${idWell}/wellOperations/export`,
@ -184,13 +184,13 @@ idWell: number,
/** /**
* Возвращает шаблон файла импорта * Возвращает шаблон файла импорта
* @param idWell * @param idWell
* @returns string Success * @returns string Success
* @throws ApiError * @throws ApiError
*/ */
public static async getTamplate( public static async getTamplate(
idWell: string, idWell: string,
): Promise<string> { ): Promise<string> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/wellOperations/tamplate`, path: `/api/well/${idWell}/wellOperations/tamplate`,