Добавлены автосгенерированные файлы

This commit is contained in:
KharchenkoVV 2021-05-24 15:58:23 +05:00
parent c3eb461941
commit a05122305f
7 changed files with 186 additions and 21321 deletions

21347
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ export { OpenAPI } from './core/OpenAPI';
export type { AuthDto } from './models/AuthDto';
export type { DataSaubBaseDto } from './models/DataSaubBaseDto';
export type { DatesRangeDto } from './models/DatesRangeDto';
export type { EventDto } from './models/EventDto';
export type { MessageDto } from './models/MessageDto';
export type { MessageDtoPaginationContainer } from './models/MessageDtoPaginationContainer';
@ -18,5 +19,6 @@ export type { WellDto } from './models/WellDto';
export { AuthService } from './services/AuthService';
export { DataService } from './services/DataService';
export { MessageService } from './services/MessageService';
export { ReportService } from './services/ReportService';
export { TelemetryService } from './services/TelemetryService';
export { WellService } from './services/WellService';

View File

@ -0,0 +1,8 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DatesRangeDto = {
from?: string;
to?: string;
}

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { DataSaubBaseDto } from '../models/DataSaubBaseDto';
import type { DatesRangeDto } from '../models/DatesRangeDto';
import { request as __request } from '../core/request';
export class DataService {
@ -34,4 +35,19 @@ approxPointsCount: number = 1024,
return result.body;
}
/**
* @param wellId
* @returns DatesRangeDto Success
* @throws ApiError
*/
public static async getDataDatesRange(
wellId: number,
): Promise<DatesRangeDto> {
const result = await __request({
method: 'GET',
path: `/api/well/${wellId}/dataDatesRange`,
});
return result.body;
}
}

View File

@ -1,6 +1,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { DatesRangeDto } from '../models/DatesRangeDto';
import type { MessageDtoPaginationContainer } from '../models/MessageDtoPaginationContainer';
import { request as __request } from '../core/request';
@ -39,4 +40,19 @@ end?: string,
return result.body;
}
/**
* @param wellId
* @returns DatesRangeDto Success
* @throws ApiError
*/
public static async getMessagesDateRange(
wellId: number,
): Promise<DatesRangeDto> {
const result = await __request({
method: 'GET',
path: `/api/well/${wellId}/messagesDatesRange`,
});
return result.body;
}
}

View File

@ -0,0 +1,106 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { DatesRangeDto } from '../models/DatesRangeDto';
import { request as __request } from '../core/request';
export class ReportService {
/**
* Создает отчет по скважине с указанными параметрами
* @param wellId id скважины
* @param stepSeconds шаг интервала
* @param format формат отчета (0-PDF, 1-LASS)
* @param begin дата начала интервала
* @param end дата окончания интервала
* @returns string Success
* @throws ApiError
*/
public static async createReport(
wellId: number,
stepSeconds?: number,
format?: number,
begin?: string,
end?: string,
): Promise<string> {
const result = await __request({
method: 'POST',
path: `/api/well/${wellId}/report`,
query: {
'stepSeconds': stepSeconds,
'format': format,
'begin': begin,
'end': end,
},
});
return result.body;
}
/**
* Возвращает файл-отчет с диска на сервере
* @param wellId id скважины
* @param reportName имя запрашиваемого файла (отчета)
* @returns string Success
* @throws ApiError
*/
public static async getReport(
wellId: number,
reportName?: string,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${wellId}/report`,
query: {
'reportName': reportName,
},
});
return result.body;
}
/**
* Возвращает прогнозируемое количество страниц будущего отчета
* @param wellId id скважины
* @param stepSeconds шаг интервала
* @param format формат отчета (0-PDF, 1-LASS)
* @param begin дата начала интервала
* @param end дата окончания интервала
* @returns string Success
* @throws ApiError
*/
public static async getReportSize(
wellId: number,
stepSeconds?: number,
format?: number,
begin?: string,
end?: string,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${wellId}/reportSize`,
query: {
'stepSeconds': stepSeconds,
'format': format,
'begin': begin,
'end': end,
},
});
return result.body;
}
/**
* Возвращает даты самого старого и самого свежего отчетов в БД
* @param wellId id скважины
* @returns DatesRangeDto Success
* @throws ApiError
*/
public static async getReportsDateRange(
wellId: number,
): Promise<DatesRangeDto> {
const result = await __request({
method: 'GET',
path: `/api/well/${wellId}/reportsDatesRange`,
});
return result.body;
}
}

View File

@ -18,4 +18,16 @@ export class WellService {
return result.body;
}
/**
* @returns WellDto Success
* @throws ApiError
*/
public static async getTransmittingWells(): Promise<Array<WellDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/transmittingWells`,
});
return result.body;
}
}