API updated

This commit is contained in:
goodmice 2021-10-12 10:39:56 +05:00
parent 5e43b59d8c
commit a22bfcbb1f
61 changed files with 496 additions and 398 deletions

View File

@ -9,6 +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 { 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';
export type { FileInfoDtoPaginationContainer } from './models/FileInfoDtoPaginationContainer'; export type { FileInfoDtoPaginationContainer } from './models/FileInfoDtoPaginationContainer';
@ -49,9 +50,9 @@ export { AdminUserService } from './services/AdminUserService';
export { AdminWellService } from './services/AdminWellService'; export { AdminWellService } from './services/AdminWellService';
export { AuthService } from './services/AuthService'; export { AuthService } from './services/AuthService';
export { ClusterService } from './services/ClusterService'; export { ClusterService } from './services/ClusterService';
export { DataService } from './services/DataService';
export { DepositService } from './services/DepositService'; export { DepositService } from './services/DepositService';
export { DrillingProgramService } from './services/DrillingProgramService'; export { DrillingProgramService } from './services/DrillingProgramService';
export { DrillParamsService } from './services/DrillParamsService';
export { FileService } from './services/FileService'; export { FileService } from './services/FileService';
export { MeasureService } from './services/MeasureService'; export { MeasureService } from './services/MeasureService';
export { MessageService } from './services/MessageService'; export { MessageService } from './services/MessageService';

View File

@ -5,4 +5,4 @@
export type AuthDto = { export type AuthDto = {
login?: string | null; login?: string | null;
password?: string | null; password?: string | null;
} }

View File

@ -11,4 +11,4 @@ export type ClusterDto = {
latitude?: number | null; latitude?: number | null;
longitude?: number | null; longitude?: number | null;
wells?: Array<WellDto> | null; wells?: Array<WellDto> | null;
} }

View File

@ -6,4 +6,4 @@ export type CompanyDto = {
id?: number; id?: number;
caption?: string | null; caption?: string | null;
companyTypeCaption?: string | null; companyTypeCaption?: string | null;
} }

View File

@ -5,4 +5,4 @@
export type DatesRangeDto = { export type DatesRangeDto = {
from?: string; from?: string;
to?: string; to?: string;
} }

View File

@ -11,4 +11,4 @@ export type DepositDto = {
latitude?: number | null; latitude?: number | null;
longitude?: number | null; longitude?: number | null;
clusters?: Array<ClusterDto> | null; clusters?: Array<ClusterDto> | null;
} }

View File

@ -0,0 +1,26 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DrillParamsDto = {
id?: number;
idWell?: number;
wellSectionTypeName?: string | null;
depthStart?: number;
depthEnd?: number;
axialLoadMin?: number;
axialLoadAvg?: number;
axialLoadMax?: number;
pressureMin?: number;
pressureAvg?: number;
pressureMax?: number;
topDriveTorqueMin?: number;
topDriveTorqueAvg?: number;
topDriveTorqueMax?: number;
topDriveSpeedMin?: number;
topDriveSpeedAvg?: number;
topDriveSpeedMax?: number;
flowMin?: number;
flowAvg?: number;
flowMax?: number;
}

View File

@ -9,4 +9,4 @@ export type EventDto = {
tag?: string | null; tag?: string | null;
eventType?: number; eventType?: number;
idSound?: number; idSound?: number;
} }

View File

@ -13,4 +13,4 @@ export type FileInfoDto = {
uploadDate?: string; uploadDate?: string;
size?: number; size?: number;
author?: UserDto; author?: UserDto;
} }

View File

@ -9,4 +9,4 @@ export type FileInfoDtoPaginationContainer = {
take?: number; take?: number;
count?: number; count?: number;
items?: Array<FileInfoDto> | null; items?: Array<FileInfoDto> | null;
} }

View File

@ -9,4 +9,4 @@ export type MeasureDto = {
categoryName?: string | null; categoryName?: string | null;
timestamp?: string; timestamp?: string;
data?: Record<string, any> | null; data?: Record<string, any> | null;
} }

View File

@ -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;
} }

View File

@ -9,4 +9,4 @@ export type MessageDtoPaginationContainer = {
take?: number; take?: number;
count?: number; count?: number;
items?: Array<MessageDto> | null; items?: Array<MessageDto> | null;
} }

View File

@ -8,4 +8,4 @@ export type StatClusterDto = {
id?: number; id?: number;
caption?: string | null; caption?: string | null;
statsWells?: Array<StatWellDto> | null; statsWells?: Array<StatWellDto> | null;
} }

View File

@ -13,4 +13,4 @@ export type StatOperationsDto = {
bhaDownSpeed?: number; bhaDownSpeed?: number;
casingDownSpeed?: number; casingDownSpeed?: number;
nonProductiveHours?: number; nonProductiveHours?: number;
} }

View File

@ -7,4 +7,4 @@ import type { StatOperationsDto } from './StatOperationsDto';
export type StatOperationsDtoPlanFactBase = { export type StatOperationsDtoPlanFactBase = {
plan?: StatOperationsDto; plan?: StatOperationsDto;
fact?: StatOperationsDto; fact?: StatOperationsDto;
} }

View File

@ -9,4 +9,4 @@ export type StatSectionDto = {
fact?: StatOperationsDto; fact?: StatOperationsDto;
id?: number; id?: number;
caption?: string | null; caption?: string | null;
} }

View File

@ -13,4 +13,4 @@ export type StatWellDto = {
sections?: Array<StatSectionDto> | null; sections?: Array<StatSectionDto> | null;
total?: StatOperationsDtoPlanFactBase; total?: StatOperationsDtoPlanFactBase;
companies?: Array<CompanyDto> | null; companies?: Array<CompanyDto> | null;
} }

View File

@ -42,4 +42,4 @@ export type TelemetryDataSaubDto = {
flowDeltaLimitMax?: number | null; flowDeltaLimitMax?: number | null;
idFeedRegulator?: number | null; idFeedRegulator?: number | null;
mseState?: number | null; mseState?: number | null;
} }

View File

@ -69,4 +69,4 @@ export type TelemetryDataSpinDto = {
pidMuxTorqueLeftLimit?: number | null; pidMuxTorqueLeftLimit?: number | null;
state?: number | null; state?: number | null;
breakAngleLeft?: number | null; breakAngleLeft?: number | null;
} }

View File

@ -8,4 +8,4 @@ export type TelemetryDto = {
id?: number; id?: number;
remoteUid?: string | null; remoteUid?: string | null;
info?: TelemetryInfoDto; info?: TelemetryInfoDto;
} }

View File

@ -13,4 +13,4 @@ export type TelemetryInfoDto = {
hmiVersion?: string | null; hmiVersion?: string | null;
plcVersion?: string | null; plcVersion?: string | null;
comment?: string | null; comment?: string | null;
} }

View File

@ -12,4 +12,4 @@ export type TelemetryMessageDto = {
arg1?: string | null; arg1?: string | null;
arg2?: string | null; arg2?: string | null;
arg3?: string | null; arg3?: string | null;
} }

View File

@ -9,4 +9,4 @@ export type TelemetryOperationDto = {
endDate?: string; endDate?: string;
startWellDepth?: number; startWellDepth?: number;
endWellDepth?: number; endWellDepth?: number;
} }

View File

@ -9,4 +9,4 @@ export type TelemetryOperationDtoPaginationContainer = {
take?: number; take?: number;
count?: number; count?: number;
items?: Array<TelemetryOperationDto> | null; items?: Array<TelemetryOperationDto> | null;
} }

View File

@ -5,4 +5,4 @@
export type TelemetryOperationDurationDto = { export type TelemetryOperationDurationDto = {
operationName?: string | null; operationName?: string | null;
duration?: number; duration?: number;
} }

View File

@ -8,4 +8,4 @@ export type TelemetryUserDto = {
surname?: string | null; surname?: string | null;
patronymic?: string | null; patronymic?: string | null;
level?: number; level?: number;
} }

View File

@ -15,4 +15,4 @@ export type UserDto = {
idRole?: number | null; idRole?: number | null;
password?: string | null; password?: string | null;
company?: CompanyDto; company?: CompanyDto;
} }

View File

@ -8,4 +8,4 @@ export type UserRoleDto = {
id?: number; id?: number;
caption?: string | null; caption?: string | null;
users?: Array<UserDto> | null; users?: Array<UserDto> | null;
} }

View File

@ -12,4 +12,4 @@ export type UserTokenDto = {
companyName?: string | null; companyName?: string | null;
roleName?: string | null; roleName?: string | null;
token?: string | null; token?: string | null;
} }

View File

@ -6,4 +6,4 @@ export type WellDepthToDayDto = {
wellDepth?: number; wellDepth?: number;
bitDepth?: number; bitDepth?: number;
date?: string; date?: string;
} }

View File

@ -5,4 +5,4 @@
export type WellDepthToIntervalDto = { export type WellDepthToIntervalDto = {
intervalStartDate?: string; intervalStartDate?: string;
intervalDepthProgress?: number; intervalDepthProgress?: number;
} }

View File

@ -13,4 +13,4 @@ export type WellDto = {
longitude?: number | null; longitude?: number | null;
wellType?: string | null; wellType?: string | null;
telemetry?: TelemetryDto; telemetry?: TelemetryDto;
} }

View File

@ -6,4 +6,4 @@ export type WellOperationCategoryDto = {
id?: number; id?: number;
name?: string | null; name?: string | null;
code?: number; code?: number;
} }

View File

@ -11,8 +11,9 @@ export type WellOperationDto = {
categoryName?: string | null; categoryName?: string | null;
categoryInfo?: string | null; categoryInfo?: string | null;
idType?: number; idType?: number;
wellDepth?: number; depthStart?: number;
startDate?: string; depthEnd?: number;
dateStart?: string;
durationHours?: number; durationHours?: number;
comment?: string | null; comment?: string | null;
} }

View File

@ -9,4 +9,4 @@ export type WellOperationDtoPaginationContainer = {
take?: number; take?: number;
count?: number; count?: number;
items?: Array<WellOperationDto> | null; items?: Array<WellOperationDto> | null;
} }

View File

@ -8,4 +8,4 @@ export type WellOperationDtoPlanFactPredictBase = {
plan?: WellOperationDto; plan?: WellOperationDto;
fact?: WellOperationDto; fact?: WellOperationDto;
predict?: WellOperationDto; predict?: WellOperationDto;
} }

View File

@ -14,9 +14,9 @@ export class AdminClusterService {
* @throws ApiError * @throws ApiError
*/ */
public static async getPage( public static async getPage(
skip: number, skip: number,
take: number = 32, take: number = 32,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/cluster`, path: `/api/admin/cluster`,
@ -35,8 +35,8 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
requestBody?: ClusterDto, requestBody?: ClusterDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/admin/cluster`, path: `/api/admin/cluster`,
@ -52,8 +52,8 @@ requestBody?: ClusterDto,
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/cluster/${id}`, path: `/api/admin/cluster/${id}`,
@ -69,9 +69,9 @@ id: number,
* @throws ApiError * @throws ApiError
*/ */
public static async put( public static async put(
id: number, id: number,
requestBody?: ClusterDto, requestBody?: ClusterDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/admin/cluster/${id}`, path: `/api/admin/cluster/${id}`,
@ -87,8 +87,8 @@ requestBody?: ClusterDto,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/admin/cluster/${id}`, path: `/api/admin/cluster/${id}`,

View File

@ -14,9 +14,9 @@ export class AdminCompanyService {
* @throws ApiError * @throws ApiError
*/ */
public static async getPage( public static async getPage(
skip: number, skip: number,
take: number = 32, take: number = 32,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/company`, path: `/api/admin/company`,
@ -35,8 +35,8 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
requestBody?: CompanyDto, requestBody?: CompanyDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/admin/company`, path: `/api/admin/company`,
@ -52,8 +52,8 @@ requestBody?: CompanyDto,
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/company/${id}`, path: `/api/admin/company/${id}`,
@ -69,9 +69,9 @@ id: number,
* @throws ApiError * @throws ApiError
*/ */
public static async put( public static async put(
id: number, id: number,
requestBody?: CompanyDto, requestBody?: CompanyDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/admin/company/${id}`, path: `/api/admin/company/${id}`,
@ -87,8 +87,8 @@ requestBody?: CompanyDto,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/admin/company/${id}`, path: `/api/admin/company/${id}`,

View File

@ -14,9 +14,9 @@ export class AdminDepositService {
* @throws ApiError * @throws ApiError
*/ */
public static async getPage( public static async getPage(
skip: number, skip: number,
take: number = 32, take: number = 32,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/deposit`, path: `/api/admin/deposit`,
@ -35,8 +35,8 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
requestBody?: DepositDto, requestBody?: DepositDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/admin/deposit`, path: `/api/admin/deposit`,
@ -52,8 +52,8 @@ requestBody?: DepositDto,
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/deposit/${id}`, path: `/api/admin/deposit/${id}`,
@ -69,9 +69,9 @@ id: number,
* @throws ApiError * @throws ApiError
*/ */
public static async put( public static async put(
id: number, id: number,
requestBody?: DepositDto, requestBody?: DepositDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/admin/deposit/${id}`, path: `/api/admin/deposit/${id}`,
@ -87,8 +87,8 @@ requestBody?: DepositDto,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/admin/deposit/${id}`, path: `/api/admin/deposit/${id}`,

View File

@ -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 записей
@ -14,9 +43,9 @@ export class AdminTelemetryService {
* @throws ApiError * @throws ApiError
*/ */
public static async getPage( public static async getPage(
skip: number, skip: number,
take: number = 32, take: number = 32,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/telemetry`, path: `/api/admin/telemetry`,
@ -35,8 +64,8 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
requestBody?: TelemetryDto, requestBody?: TelemetryDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/admin/telemetry`, path: `/api/admin/telemetry`,
@ -52,8 +81,8 @@ requestBody?: TelemetryDto,
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/telemetry/${id}`, path: `/api/admin/telemetry/${id}`,
@ -69,9 +98,9 @@ id: number,
* @throws ApiError * @throws ApiError
*/ */
public static async put( public static async put(
id: number, id: number,
requestBody?: TelemetryDto, requestBody?: TelemetryDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/admin/telemetry/${id}`, path: `/api/admin/telemetry/${id}`,
@ -87,8 +116,8 @@ requestBody?: TelemetryDto,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/admin/telemetry/${id}`, path: `/api/admin/telemetry/${id}`,

View File

@ -14,9 +14,9 @@ export class AdminUserRoleService {
* @throws ApiError * @throws ApiError
*/ */
public static async getPage( public static async getPage(
skip: number, skip: number,
take: number = 32, take: number = 32,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/user/role`, path: `/api/admin/user/role`,
@ -35,8 +35,8 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
requestBody?: UserRoleDto, requestBody?: UserRoleDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/admin/user/role`, path: `/api/admin/user/role`,
@ -52,8 +52,8 @@ requestBody?: UserRoleDto,
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/user/role/${id}`, path: `/api/admin/user/role/${id}`,
@ -69,9 +69,9 @@ id: number,
* @throws ApiError * @throws ApiError
*/ */
public static async put( public static async put(
id: number, id: number,
requestBody?: UserRoleDto, requestBody?: UserRoleDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/admin/user/role/${id}`, path: `/api/admin/user/role/${id}`,
@ -87,8 +87,8 @@ requestBody?: UserRoleDto,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/admin/user/role/${id}`, path: `/api/admin/user/role/${id}`,

View File

@ -14,9 +14,9 @@ export class AdminUserService {
* @throws ApiError * @throws ApiError
*/ */
public static async getPage( public static async getPage(
skip: number, skip: number,
take: number = 32, take: number = 32,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/user`, path: `/api/admin/user`,
@ -35,8 +35,8 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
requestBody?: UserDto, requestBody?: UserDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/admin/user`, path: `/api/admin/user`,
@ -52,8 +52,8 @@ requestBody?: UserDto,
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/user/${id}`, path: `/api/admin/user/${id}`,
@ -69,9 +69,9 @@ id: number,
* @throws ApiError * @throws ApiError
*/ */
public static async put( public static async put(
id: number, id: number,
requestBody?: UserDto, requestBody?: UserDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/admin/user/${id}`, path: `/api/admin/user/${id}`,
@ -87,8 +87,8 @@ requestBody?: UserDto,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/admin/user/${id}`, path: `/api/admin/user/${id}`,

View File

@ -14,9 +14,9 @@ export class AdminWellService {
* @throws ApiError * @throws ApiError
*/ */
public static async getPage( public static async getPage(
skip: number, skip: number,
take: number = 32, take: number = 32,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/well`, path: `/api/admin/well`,
@ -35,8 +35,8 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
requestBody?: WellDto, requestBody?: WellDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/admin/well`, path: `/api/admin/well`,
@ -52,8 +52,8 @@ requestBody?: WellDto,
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/well/${id}`, path: `/api/admin/well/${id}`,
@ -69,9 +69,9 @@ id: number,
* @throws ApiError * @throws ApiError
*/ */
public static async put( public static async put(
id: number, id: number,
requestBody?: WellDto, requestBody?: WellDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/admin/well/${id}`, path: `/api/admin/well/${id}`,
@ -87,8 +87,8 @@ requestBody?: WellDto,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
id: number, id: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/admin/well/${id}`, path: `/api/admin/well/${id}`,

View File

@ -10,13 +10,13 @@ export class AuthService {
/** /**
* Аутентификация пользователя * Аутентификация пользователя
* @param requestBody * @param requestBody
* @returns UserTokenDto новый токен * @returns UserTokenDto новый токен
* @throws ApiError * @throws ApiError
*/ */
public static async login( public static async login(
requestBody?: AuthDto, requestBody?: AuthDto,
): Promise<UserTokenDto> { ): Promise<UserTokenDto> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/auth/login`, path: `/auth/login`,
@ -43,13 +43,13 @@ requestBody?: AuthDto,
/** /**
* Регистрация пользователя. Доступна администратору * Регистрация пользователя. Доступна администратору
* @param requestBody * @param requestBody
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async register( public static async register(
requestBody?: UserDto, requestBody?: UserDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/auth`, path: `/auth`,
@ -60,15 +60,15 @@ requestBody?: UserDto,
/** /**
* Смена пароля пользователя. Доступна пользователю и администратору * Смена пароля пользователя. Доступна пользователю и администратору
* @param idUser * @param idUser
* @param requestBody * @param requestBody
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async changePassword( public static async changePassword(
idUser: number, idUser: number,
requestBody?: string, requestBody?: string,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/auth/${idUser}/ChangePassword`, path: `/auth/${idUser}/ChangePassword`,

View File

@ -22,13 +22,13 @@ export class ClusterService {
/** /**
* Получение доступных пользователю скважин * Получение доступных пользователю скважин
* @param idCluster * @param idCluster
* @returns WellDto Success * @returns WellDto Success
* @throws ApiError * @throws ApiError
*/ */
public static async getWells( public static async getWells(
idCluster: number, idCluster: number,
): Promise<Array<WellDto>> { ): Promise<Array<WellDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/cluster/${idCluster}`, path: `/api/cluster/${idCluster}`,

View File

@ -1,54 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { DatesRangeDto } from '../models/DatesRangeDto';
import type { TelemetryDataSaubDto } from '../models/TelemetryDataSaubDto';
import { request as __request } from '../core/request';
export class DataService {
/**
* Возвращает данные САУБ по скважине.
* По умолчанию за последние 10 минут.
* @param idWell id скважины
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
* @param intervalSec интервал времени даты начала выборки, секунды
* @param approxPointsCount желаемое количество точек. Если в выборке точек будет больше, то выборка будет прорежена.
* @returns TelemetryDataSaubDto Success
* @throws ApiError
*/
public static async getData(
idWell: number,
begin?: string,
intervalSec: number = 600,
approxPointsCount: number = 1024,
): Promise<Array<TelemetryDataSaubDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/data`,
query: {
'begin': begin,
'intervalSec': intervalSec,
'approxPointsCount': approxPointsCount,
},
});
return result.body;
}
/**
* Возвращает диапазон дат сохраненных данных.
* @param idWell id скважины
* @returns DatesRangeDto Success
* @throws ApiError
*/
public static async getDataDatesRange(
idWell: number,
): Promise<DatesRangeDto> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/data/datesRange`,
});
return result.body;
}
}

View File

@ -22,13 +22,13 @@ export class DepositService {
/** /**
* Получает список доступных пользователю кустов месторождения * Получает список доступных пользователю кустов месторождения
* @param depositId * @param depositId
* @returns ClusterDto Success * @returns ClusterDto Success
* @throws ApiError * @throws ApiError
*/ */
public static async getClusters( public static async getClusters(
depositId: number, depositId: number,
): Promise<Array<ClusterDto>> { ): Promise<Array<ClusterDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/deposit/${depositId}`, path: `/api/deposit/${depositId}`,

View File

@ -0,0 +1,56 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { DrillParamsDto } from '../models/DrillParamsDto';
import { request as __request } from '../core/request';
export class DrillParamsService {
/**
* Возвращает автоматически расчитанные значения для режимов бурения
* @param idWell id скважины
* @param startDepth Стартовая глубина
* @param endDepth Конечная глубина
* @returns DrillParamsDto Success
* @throws ApiError
*/
public static async getDefaultDrillParams(
idWell?: number,
startDepth?: number,
endDepth?: number,
): Promise<DrillParamsDto> {
const result = await __request({
method: 'GET',
path: `/drillParams/idWell/autoParams`,
query: {
'idWell': idWell,
'startDepth': startDepth,
'endDepth': endDepth,
},
});
return result.body;
}
/**
* Сохраняет значения для режимов бурения
* @param idWell id скважины
* @param requestBody Параметры режимов бурений для секции
* @returns number Success
* @throws ApiError
*/
public static async saveDrillParams(
idWell?: number,
requestBody?: DrillParamsDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/drillParams/idWell`,
query: {
'idWell': idWell,
},
body: requestBody,
});
return result.body;
}
}

View File

@ -6,13 +6,13 @@ import { request as __request } from '../core/request';
export class DrillingProgramService { export class DrillingProgramService {
/** /**
* @param idWell * @param idWell
* @returns string Success * @returns string Success
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
idWell: number, idWell: number,
): Promise<string> { ): Promise<string> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/drillingProgram`, path: `/api/well/${idWell}/drillingProgram`,

View File

@ -11,15 +11,15 @@ export class FileService {
* Сохраняет переданные файлы и информацию о них * Сохраняет переданные файлы и информацию о них
* @param idWell id скважины * @param idWell id скважины
* @param idCategory id категории файла * @param idCategory id категории файла
* @param requestBody * @param requestBody
* @returns number Success * @returns number Success
* @throws ApiError * @throws ApiError
*/ */
public static async saveFiles( public static async saveFiles(
idWell: number, idWell: number,
idCategory?: number, idCategory?: number,
requestBody?: any, requestBody?: any,
): Promise<number> { ): Promise<number> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/well/${idWell}/files`, path: `/api/well/${idWell}/files`,
@ -45,15 +45,15 @@ requestBody?: any,
* @throws ApiError * @throws ApiError
*/ */
public static async getFilesInfo( public static async getFilesInfo(
idWell: number, idWell: number,
idCategory: number, idCategory: number,
companyName?: string, 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({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/files`, path: `/api/well/${idWell}/files`,
@ -78,9 +78,9 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async getInfosByCategory( public static async getInfosByCategory(
idWell: number, idWell: number,
idCategory: number, idCategory: number,
): Promise<Array<FileInfoDto>> { ): Promise<Array<FileInfoDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/files/category/${idCategory}`, path: `/api/well/${idWell}/files/category/${idCategory}`,
@ -96,9 +96,9 @@ idCategory: number,
* @throws ApiError * @throws ApiError
*/ */
public static async getFile( public static async getFile(
idWell: number, idWell: number,
fileId: number, fileId: number,
): Promise<string> { ): Promise<string> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/files/${fileId}`, path: `/api/well/${idWell}/files/${fileId}`,
@ -114,9 +114,9 @@ fileId: number,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
idWell: number, idWell: number,
idFile: number, idFile: number,
): Promise<number> { ): Promise<number> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/well/${idWell}/files/${idFile}`, path: `/api/well/${idWell}/files/${idFile}`,

View File

@ -7,13 +7,13 @@ import { request as __request } from '../core/request';
export class MeasureService { export class MeasureService {
/** /**
* @param idWell * @param idWell
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async getCategories( public static async getCategories(
idWell: number, idWell: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/measure/categories`, path: `/api/well/${idWell}/measure/categories`,
@ -22,13 +22,13 @@ idWell: number,
} }
/** /**
* @param idWell * @param idWell
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async getAllLast( public static async getAllLast(
idWell: number, idWell: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/measure/lastAll`, path: `/api/well/${idWell}/measure/lastAll`,
@ -37,15 +37,15 @@ idWell: number,
} }
/** /**
* @param idWell * @param idWell
* @param idCategory * @param idCategory
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async getLast( public static async getLast(
idWell: number, idWell: number,
idCategory: number, idCategory: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/measure/last/${idCategory}`, path: `/api/well/${idWell}/measure/last/${idCategory}`,
@ -54,32 +54,32 @@ idCategory: number,
} }
/** /**
* @param idWell * @param idWell
* @param idCategory * @param idCategory
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async getHisory( public static async getHisory(
idWell: number, idWell: number,
idCategory: number, 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;
} }
/** /**
* @param idWell * @param idWell
* @param requestBody * @param requestBody
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
idWell: number, idWell: number,
requestBody?: MeasureDto, requestBody?: MeasureDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/well/${idWell}/measure`, path: `/api/well/${idWell}/measure`,
@ -89,15 +89,15 @@ requestBody?: MeasureDto,
} }
/** /**
* @param idWell * @param idWell
* @param requestBody * @param requestBody
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async update( public static async update(
idWell: number, idWell: number,
requestBody?: MeasureDto, requestBody?: MeasureDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/well/${idWell}/measure`, path: `/api/well/${idWell}/measure`,
@ -107,15 +107,15 @@ requestBody?: MeasureDto,
} }
/** /**
* @param idWell * @param idWell
* @param idData * @param idData
* @returns any Success * @returns any Success
* @throws ApiError * @throws ApiError
*/ */
public static async markAsDelete( public static async markAsDelete(
idWell: number, idWell: number,
idData: number, idData: number,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/well/${idWell}/measure/history/${idData}`, path: `/api/well/${idWell}/measure/history/${idData}`,

View File

@ -20,14 +20,14 @@ export class MessageService {
* @throws ApiError * @throws ApiError
*/ */
public static async getMessages( public static async getMessages(
idWell: number, idWell: number,
skip: number, skip: number,
take: number = 32, take: number = 32,
categoryids?: Array<number>, categoryids?: Array<number>,
begin?: string, begin?: string,
end?: string, end?: string,
searchString?: string, searchString?: string,
): Promise<MessageDtoPaginationContainer> { ): Promise<MessageDtoPaginationContainer> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/message`, path: `/api/well/${idWell}/message`,
@ -50,8 +50,8 @@ searchString?: string,
* @throws ApiError * @throws ApiError
*/ */
public static async getMessagesDateRange( public static async getMessagesDateRange(
idWell: number, idWell: number,
): Promise<DatesRangeDto> { ): Promise<DatesRangeDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/message/datesRange`, path: `/api/well/${idWell}/message/datesRange`,

View File

@ -17,12 +17,12 @@ export class ReportService {
* @throws ApiError * @throws ApiError
*/ */
public static async createReport( public static async createReport(
idWell: number, idWell: number,
stepSeconds?: number, stepSeconds?: number,
format?: number, format?: number,
begin?: string, begin?: string,
end?: string, end?: string,
): Promise<number> { ): Promise<number> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/well/${idWell}/report`, path: `/api/well/${idWell}/report`,
@ -43,8 +43,8 @@ end?: string,
* @throws ApiError * @throws ApiError
*/ */
public static async getAllReportsNamesByWell( public static async getAllReportsNamesByWell(
idWell: number, idWell: number,
): Promise<Array<string>> { ): Promise<Array<string>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/report`, path: `/api/well/${idWell}/report`,
@ -55,7 +55,7 @@ idWell: number,
/** /**
* @deprecated * @deprecated
* Возвращает имена отчетов, хранящихся на диске, * Возвращает имена отчетов, хранящихся на диске,
* которые подходят под указанные параметры * которые подходят под указанные параметры
* @param idWell id скважины * @param idWell id скважины
* @param stepSeconds шаг интервала * @param stepSeconds шаг интервала
* @param format формат отчета (0-PDF, 1-LAS) * @param format формат отчета (0-PDF, 1-LAS)
@ -65,12 +65,12 @@ idWell: number,
* @throws ApiError * @throws ApiError
*/ */
public static async getSuitableReportsNames( public static async getSuitableReportsNames(
idWell: number, idWell: number,
stepSeconds?: number, stepSeconds?: number,
format?: number, format?: number,
begin?: string, begin?: string,
end?: string, end?: string,
): Promise<Array<string>> { ): Promise<Array<string>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/report/suitableReports`, path: `/api/well/${idWell}/report/suitableReports`,
@ -95,12 +95,12 @@ end?: string,
* @throws ApiError * @throws ApiError
*/ */
public static async getReportSize( public static async getReportSize(
idWell: number, idWell: number,
stepSeconds?: number, stepSeconds?: number,
format?: number, format?: number,
begin?: string, begin?: string,
end?: string, end?: string,
): Promise<string> { ): Promise<string> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/report/reportSize`, path: `/api/well/${idWell}/report/reportSize`,
@ -121,8 +121,8 @@ end?: string,
* @throws ApiError * @throws ApiError
*/ */
public static async getReportsDateRange( public static async getReportsDateRange(
idWell: number, idWell: number,
): Promise<DatesRangeDto> { ): Promise<DatesRangeDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/report/datesRange`, path: `/api/well/${idWell}/report/datesRange`,

View File

@ -22,13 +22,13 @@ export class TelemetryAnalyticsService {
* @throws ApiError * @throws ApiError
*/ */
public static async getOperationsByWell( public static async getOperationsByWell(
idWell: number, idWell: number,
skip: number, skip: number,
take: number = 32, take: number = 32,
categoryIds?: Array<number>, categoryIds?: Array<number>,
begin?: string, begin?: string,
end?: string, end?: string,
): Promise<TelemetryOperationDtoPaginationContainer> { ): Promise<TelemetryOperationDtoPaginationContainer> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/telemetryAnalytics/operationsByWell`, path: `/api/well/${idWell}/telemetryAnalytics/operationsByWell`,
@ -50,8 +50,8 @@ end?: string,
* @throws ApiError * @throws ApiError
*/ */
public static async getWellDepthToDay( public static async getWellDepthToDay(
idWell: number, idWell: number,
): Promise<Array<WellDepthToDayDto>> { ): Promise<Array<WellDepthToDayDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/telemetryAnalytics/wellDepthToDay`, path: `/api/well/${idWell}/telemetryAnalytics/wellDepthToDay`,
@ -68,10 +68,10 @@ idWell: number,
* @throws ApiError * @throws ApiError
*/ */
public static async getWellDepthToInterval( public static async getWellDepthToInterval(
idWell: number, idWell: number,
intervalSeconds?: number, intervalSeconds?: number,
workBeginSeconds?: number, workBeginSeconds?: number,
): Promise<Array<WellDepthToIntervalDto>> { ): Promise<Array<WellDepthToIntervalDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/telemetryAnalytics/wellDepthToInterval`, path: `/api/well/${idWell}/telemetryAnalytics/wellDepthToInterval`,
@ -92,10 +92,10 @@ workBeginSeconds?: number,
* @throws ApiError * @throws ApiError
*/ */
public static async getOperationsSummary( public static async getOperationsSummary(
idWell: number, idWell: number,
begin?: string, begin?: string,
end?: string, end?: string,
): Promise<Array<TelemetryOperationDurationDto>> { ): Promise<Array<TelemetryOperationDurationDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/telemetryAnalytics/operationsSummary`, path: `/api/well/${idWell}/telemetryAnalytics/operationsSummary`,
@ -116,10 +116,10 @@ end?: string,
* @throws ApiError * @throws ApiError
*/ */
public static async getOperationsToInterval( public static async getOperationsToInterval(
idWell: number, idWell: number,
intervalSeconds?: number, intervalSeconds?: number,
workBeginSeconds?: number, workBeginSeconds?: number,
): Promise<Array<TelemetryOperationDurationDto>> { ): Promise<Array<TelemetryOperationDurationDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/telemetryAnalytics/operationsToInterval`, path: `/api/well/${idWell}/telemetryAnalytics/operationsToInterval`,
@ -138,8 +138,8 @@ workBeginSeconds?: number,
* @throws ApiError * @throws ApiError
*/ */
public static async getOperationsDateRange( public static async getOperationsDateRange(
idWell: number, idWell: number,
): Promise<DatesRangeDto> { ): Promise<DatesRangeDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/telemetryAnalytics/datesRange`, path: `/api/well/${idWell}/telemetryAnalytics/datesRange`,

View File

@ -15,9 +15,9 @@ export class TelemetryDataSaubService {
* @throws ApiError * @throws ApiError
*/ */
public static async postData( public static async postData(
uid: string, uid: string,
requestBody?: Array<TelemetryDataSaubDto>, requestBody?: Array<TelemetryDataSaubDto>,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/TelemetryDataSaub/${uid}`, path: `/api/TelemetryDataSaub/${uid}`,
@ -28,7 +28,7 @@ requestBody?: Array<TelemetryDataSaubDto>,
/** /**
* Возвращает данные САУБ по скважине. * Возвращает данные САУБ по скважине.
* По умолчанию за последние 10 минут. * По умолчанию за последние 10 минут.
* @param idWell id скважины * @param idWell id скважины
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec * @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
* @param intervalSec интервал времени даты начала выборки, секунды * @param intervalSec интервал времени даты начала выборки, секунды
@ -37,11 +37,11 @@ requestBody?: Array<TelemetryDataSaubDto>,
* @throws ApiError * @throws ApiError
*/ */
public static async getData( public static async getData(
idWell: number, idWell: number,
begin?: string, begin?: string,
intervalSec: number = 600, intervalSec: number = 600,
approxPointsCount: number = 1024, approxPointsCount: number = 1024,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/TelemetryDataSaub/${idWell}`, path: `/api/TelemetryDataSaub/${idWell}`,
@ -61,8 +61,8 @@ approxPointsCount: number = 1024,
* @throws ApiError * @throws ApiError
*/ */
public static async getDataDatesRange( public static async getDataDatesRange(
idWell: number, idWell: number,
): Promise<DatesRangeDto> { ): Promise<DatesRangeDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/TelemetryDataSaub/${idWell}/datesRange`, path: `/api/TelemetryDataSaub/${idWell}/datesRange`,

View File

@ -15,9 +15,9 @@ export class TelemetryDataSpinService {
* @throws ApiError * @throws ApiError
*/ */
public static async postData( public static async postData(
uid: string, uid: string,
requestBody?: Array<TelemetryDataSpinDto>, requestBody?: Array<TelemetryDataSpinDto>,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/TelemetryDataSpin/${uid}`, path: `/api/TelemetryDataSpin/${uid}`,
@ -28,7 +28,7 @@ requestBody?: Array<TelemetryDataSpinDto>,
/** /**
* Возвращает данные САУБ по скважине. * Возвращает данные САУБ по скважине.
* По умолчанию за последние 10 минут. * По умолчанию за последние 10 минут.
* @param idWell id скважины * @param idWell id скважины
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec * @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
* @param intervalSec интервал времени даты начала выборки, секунды * @param intervalSec интервал времени даты начала выборки, секунды
@ -37,11 +37,11 @@ requestBody?: Array<TelemetryDataSpinDto>,
* @throws ApiError * @throws ApiError
*/ */
public static async getData( public static async getData(
idWell: number, idWell: number,
begin?: string, begin?: string,
intervalSec: number = 600, intervalSec: number = 600,
approxPointsCount: number = 1024, approxPointsCount: number = 1024,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/TelemetryDataSpin/${idWell}`, path: `/api/TelemetryDataSpin/${idWell}`,
@ -61,8 +61,8 @@ approxPointsCount: number = 1024,
* @throws ApiError * @throws ApiError
*/ */
public static async getDataDatesRange( public static async getDataDatesRange(
idWell: number, idWell: number,
): Promise<DatesRangeDto> { ): Promise<DatesRangeDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/TelemetryDataSpin/${idWell}/datesRange`, path: `/api/TelemetryDataSpin/${idWell}/datesRange`,

View File

@ -18,9 +18,9 @@ export class TelemetryService {
* @throws ApiError * @throws ApiError
*/ */
public static async postInfo( public static async postInfo(
uid: string, uid: string,
requestBody?: TelemetryInfoDto, requestBody?: TelemetryInfoDto,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/telemetry/${uid}/info`, path: `/api/telemetry/${uid}/info`,
@ -30,6 +30,7 @@ requestBody?: TelemetryInfoDto,
} }
/** /**
* @deprecated
* Принимает данные от разных систем по скважине * Принимает данные от разных систем по скважине
* @param uid Уникальный идентификатор отправителя * @param uid Уникальный идентификатор отправителя
* @param requestBody Данные * @param requestBody Данные
@ -37,9 +38,9 @@ requestBody?: TelemetryInfoDto,
* @throws ApiError * @throws ApiError
*/ */
public static async postData( public static async postData(
uid: string, uid: string,
requestBody?: Array<TelemetryDataSaubDto>, requestBody?: Array<TelemetryDataSaubDto>,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/telemetry/${uid}/data`, path: `/api/telemetry/${uid}/data`,
@ -56,9 +57,9 @@ requestBody?: Array<TelemetryDataSaubDto>,
* @throws ApiError * @throws ApiError
*/ */
public static async postMessages( public static async postMessages(
uid: string, uid: string,
requestBody?: Array<TelemetryMessageDto>, requestBody?: Array<TelemetryMessageDto>,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/telemetry/${uid}/message`, path: `/api/telemetry/${uid}/message`,
@ -75,9 +76,9 @@ requestBody?: Array<TelemetryMessageDto>,
* @throws ApiError * @throws ApiError
*/ */
public static async postEvents( public static async postEvents(
uid: string, uid: string,
requestBody?: Array<EventDto>, requestBody?: Array<EventDto>,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/telemetry/${uid}/event`, path: `/api/telemetry/${uid}/event`,
@ -94,9 +95,9 @@ requestBody?: Array<EventDto>,
* @throws ApiError * @throws ApiError
*/ */
public static async postUsers( public static async postUsers(
uid: string, uid: string,
requestBody?: Array<TelemetryUserDto>, requestBody?: Array<TelemetryUserDto>,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/telemetry/${uid}/user`, path: `/api/telemetry/${uid}/user`,

View File

@ -10,13 +10,13 @@ export class WellOperationService {
/** /**
* Возвращает список имен типов операций на скважине * Возвращает список имен типов операций на скважине
* @param idWell * @param idWell
* @returns WellOperationCategoryDto Success * @returns WellOperationCategoryDto Success
* @throws ApiError * @throws ApiError
*/ */
public static async getCategories( public static async getCategories(
idWell: string, idWell: string,
): Promise<Array<WellOperationCategoryDto>> { ): Promise<Array<WellOperationCategoryDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/wellOperations/categories`, path: `/api/well/${idWell}/wellOperations/categories`,
@ -34,23 +34,23 @@ idWell: string,
* @param end фильтр по окончанию операции * @param end фильтр по окончанию операции
* @param minDepth фильтр по минимальной глубине скважины * @param minDepth фильтр по минимальной глубине скважины
* @param maxDepth фильтр по максимальной глубине скважины * @param maxDepth фильтр по максимальной глубине скважины
* @param skip * @param skip
* @param take * @param take
* @returns WellOperationDtoPaginationContainer Success * @returns WellOperationDtoPaginationContainer Success
* @throws ApiError * @throws ApiError
*/ */
public static async getOperations( public static async getOperations(
idWell: number, idWell: number,
opertaionType?: number, opertaionType?: number,
sectionTypeIds?: Array<number>, sectionTypeIds?: Array<number>,
operationCategoryIds?: Array<number>, operationCategoryIds?: Array<number>,
begin?: string, 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({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/wellOperations`, path: `/api/well/${idWell}/wellOperations`,
@ -77,9 +77,9 @@ take: number = 32,
* @throws ApiError * @throws ApiError
*/ */
public static async insertRange( public static async insertRange(
idWell: number, idWell: number,
requestBody?: Array<WellOperationDto>, requestBody?: Array<WellOperationDto>,
): Promise<Array<WellOperationDto>> { ): Promise<Array<WellOperationDto>> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/well/${idWell}/wellOperations`, path: `/api/well/${idWell}/wellOperations`,
@ -96,9 +96,9 @@ requestBody?: Array<WellOperationDto>,
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
idWell: number, idWell: number,
idOperation: number, idOperation: number,
): Promise<WellOperationDto> { ): Promise<WellOperationDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/wellOperations/${idOperation}`, path: `/api/well/${idWell}/wellOperations/${idOperation}`,
@ -115,10 +115,10 @@ idOperation: number,
* @throws ApiError * @throws ApiError
*/ */
public static async update( public static async update(
idWell: number, idWell: number,
idOperation: number, idOperation: number,
requestBody?: WellOperationDto, requestBody?: WellOperationDto,
): Promise<WellOperationDto> { ): Promise<WellOperationDto> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/well/${idWell}/wellOperations/${idOperation}`, path: `/api/well/${idWell}/wellOperations/${idOperation}`,
@ -135,9 +135,9 @@ requestBody?: WellOperationDto,
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
idWell: number, idWell: number,
idOperation: number, idOperation: number,
): Promise<number> { ): Promise<number> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/well/${idWell}/wellOperations/${idOperation}`, path: `/api/well/${idWell}/wellOperations/${idOperation}`,
@ -145,4 +145,57 @@ idOperation: number,
return result.body; return result.body;
} }
/**
* Импортирует операции из excel (xlsx) файла
* @param idWell id скважины
* @param options Удалить операции перед импортом = 1, если фал валидный
* @param requestBody
* @returns any Success
* @throws ApiError
*/
public static async import(
idWell: number,
options: number,
requestBody?: any,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/wellOperations/import/${options}`,
body: requestBody,
});
return result.body;
}
/**
* Создает excel файл с операциями по скважине
* @param idWell id скважины
* @returns string Success
* @throws ApiError
*/
public static async export(
idWell: number,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/export`,
});
return result.body;
}
/**
* Возвращает шаблон файла импорта
* @param idWell
* @returns string Success
* @throws ApiError
*/
public static async getTamplate(
idWell: string,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/tamplate`,
});
return result.body;
}
} }

View File

@ -9,13 +9,13 @@ import { request as __request } from '../core/request';
export class WellOperationStatService { export class WellOperationStatService {
/** /**
* @param idCluster * @param idCluster
* @returns StatClusterDto Success * @returns StatClusterDto Success
* @throws ApiError * @throws ApiError
*/ */
public static async getStatCluster( public static async getStatCluster(
idCluster: number, idCluster: number,
): Promise<StatClusterDto> { ): Promise<StatClusterDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/cluster/${idCluster}/stat`, path: `/api/cluster/${idCluster}/stat`,
@ -24,13 +24,13 @@ idCluster: number,
} }
/** /**
* @param idWell * @param idWell
* @returns StatWellDto Success * @returns StatWellDto Success
* @throws ApiError * @throws ApiError
*/ */
public static async getStatWell( public static async getStatWell(
idWell: number, idWell: number,
): Promise<StatWellDto> { ): Promise<StatWellDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/stat`, path: `/api/well/${idWell}/stat`,
@ -39,13 +39,13 @@ idWell: number,
} }
/** /**
* @param idWell * @param idWell
* @returns WellOperationDtoPlanFactPredictBase Success * @returns WellOperationDtoPlanFactPredictBase Success
* @throws ApiError * @throws ApiError
*/ */
public static async getTvd( public static async getTvd(
idWell: number, idWell: number,
): Promise<Array<WellOperationDtoPlanFactPredictBase>> { ): Promise<Array<WellOperationDtoPlanFactPredictBase>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/tvd`, path: `/api/well/${idWell}/tvd`,

View File

@ -2,7 +2,6 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { WellDto } from '../models/WellDto'; import type { WellDto } from '../models/WellDto';
import type { WellOperationDto } from '../models/WellOperationDto';
import { request as __request } from '../core/request'; import { request as __request } from '../core/request';
export class WellService { export class WellService {
@ -19,21 +18,6 @@ export class WellService {
return result.body; return result.body;
} }
/**
* @param idWell
* @returns WellOperationDto Success
* @throws ApiError
*/
public static async getOperations(
idWell: number,
): Promise<Array<WellOperationDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/operations`,
});
return result.body;
}
/** /**
* @returns WellDto Success * @returns WellDto Success
* @throws ApiError * @throws ApiError