update client

This commit is contained in:
Фролов 2021-11-09 17:58:42 +05:00
parent b87c7a750b
commit 0ec04f529a
74 changed files with 636 additions and 445 deletions

View File

@ -6,14 +6,19 @@ export { OpenAPI } from './core/OpenAPI';
export type { AuthDto } from './models/AuthDto';
export type { ClusterDto } from './models/ClusterDto';
export type { ClusterDtoPaginationContainer } from './models/ClusterDtoPaginationContainer';
export type { CompanyDto } from './models/CompanyDto';
export type { CompanyDtoPaginationContainer } from './models/CompanyDtoPaginationContainer';
export type { DatesRangeDto } from './models/DatesRangeDto';
export type { DepositDto } from './models/DepositDto';
export type { DepositDtoPaginationContainer } from './models/DepositDtoPaginationContainer';
export type { DrillFlowChartDto } from './models/DrillFlowChartDto';
export type { DrillParamsDto } from './models/DrillParamsDto';
export type { EventDto } from './models/EventDto';
export type { FileInfoDto } from './models/FileInfoDto';
export type { FileInfoDtoPaginationContainer } from './models/FileInfoDtoPaginationContainer';
export type { FileMarkDto } from './models/FileMarkDto';
export type { FilePublishInfoDto } from './models/FilePublishInfoDto';
export type { MeasureDto } from './models/MeasureDto';
export type { MessageDto } from './models/MessageDto';
export type { MessageDtoPaginationContainer } from './models/MessageDtoPaginationContainer';
@ -25,6 +30,7 @@ export type { StatWellDto } from './models/StatWellDto';
export type { TelemetryDataSaubDto } from './models/TelemetryDataSaubDto';
export type { TelemetryDataSpinDto } from './models/TelemetryDataSpinDto';
export type { TelemetryDto } from './models/TelemetryDto';
export type { TelemetryDtoPaginationContainer } from './models/TelemetryDtoPaginationContainer';
export type { TelemetryInfoDto } from './models/TelemetryInfoDto';
export type { TelemetryMessageDto } from './models/TelemetryMessageDto';
export type { TelemetryOperationDto } from './models/TelemetryOperationDto';
@ -32,12 +38,15 @@ export type { TelemetryOperationDtoPaginationContainer } from './models/Telemetr
export type { TelemetryOperationDurationDto } from './models/TelemetryOperationDurationDto';
export type { TelemetryUserDto } from './models/TelemetryUserDto';
export type { UserDto } from './models/UserDto';
export type { UserDtoPaginationContainer } from './models/UserDtoPaginationContainer';
export type { UserRoleDto } from './models/UserRoleDto';
export type { UserRoleDtoPaginationContainer } from './models/UserRoleDtoPaginationContainer';
export type { UserTokenDto } from './models/UserTokenDto';
export type { WellCompositeDto } from './models/WellCompositeDto';
export type { WellDepthToDayDto } from './models/WellDepthToDayDto';
export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto';
export type { WellDto } from './models/WellDto';
export type { WellDtoPaginationContainer } from './models/WellDtoPaginationContainer';
export type { WellOperationCategoryDto } from './models/WellOperationCategoryDto';
export type { WellOperationDto } from './models/WellOperationDto';
export type { WellOperationDtoPaginationContainer } from './models/WellOperationDtoPaginationContainer';

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ClusterDto } from './ClusterDto';
export type ClusterDtoPaginationContainer = {
skip?: number;
take?: number;
count?: number;
items?: Array<ClusterDto> | null;
}

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CompanyDto } from './CompanyDto';
export type CompanyDtoPaginationContainer = {
skip?: number;
take?: number;
count?: number;
items?: Array<CompanyDto> | null;
}

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { DepositDto } from './DepositDto';
export type DepositDtoPaginationContainer = {
skip?: number;
take?: number;
count?: number;
items?: Array<DepositDto> | null;
}

View File

@ -2,6 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import type { FileMarkDto } from './FileMarkDto';
import type { FilePublishInfoDto } from './FilePublishInfoDto';
import type { UserDto } from './UserDto';
export type FileInfoDto = {
@ -12,5 +14,7 @@ export type FileInfoDto = {
name?: string | null;
uploadDate?: string;
size?: number;
publishInfo?: FilePublishInfoDto;
author?: UserDto;
fileMarks?: Array<FileMarkDto> | null;
}

View File

@ -0,0 +1,15 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { UserDto } from './UserDto';
export type FileMarkDto = {
id?: number;
idFile?: number;
idMarkType?: number;
dateCreated?: string;
comment?: string | null;
isDeleted?: boolean;
user?: UserDto;
}

View File

@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type FilePublishInfoDto = {
publisherLogin?: string | null;
date?: string;
webStorageFileUrl?: string | null;
}

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { TelemetryDto } from './TelemetryDto';
export type TelemetryDtoPaginationContainer = {
skip?: number;
take?: number;
count?: number;
items?: Array<TelemetryDto> | null;
}

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { UserDto } from './UserDto';
export type UserDtoPaginationContainer = {
skip?: number;
take?: number;
count?: number;
items?: Array<UserDto> | null;
}

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { UserRoleDto } from './UserRoleDto';
export type UserRoleDtoPaginationContainer = {
skip?: number;
take?: number;
count?: number;
items?: Array<UserRoleDto> | null;
}

View File

@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { WellDto } from './WellDto';
export type WellDtoPaginationContainer = {
skip?: number;
take?: number;
count?: number;
items?: Array<WellDto> | null;
}

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { ClusterDto } from '../models/ClusterDto';
import type { ClusterDtoPaginationContainer } from '../models/ClusterDtoPaginationContainer';
import { request as __request } from '../core/request';
export class AdminClusterService {
@ -10,13 +11,13 @@ export class AdminClusterService {
* Получить страницу с записями в PaginationContainer
* @param skip пропустить skip записей
* @param take получить take записей
* @returns any Success
* @returns ClusterDtoPaginationContainer Success
* @throws ApiError
*/
public static async getPage(
skip: number,
take: number = 32,
): Promise<any> {
skip: number,
take: number = 32,
): Promise<ClusterDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/admin/cluster`,
@ -31,12 +32,12 @@ export class AdminClusterService {
/**
* Добавить запись
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async insert(
requestBody?: ClusterDto,
): Promise<any> {
requestBody?: ClusterDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/admin/cluster`,
@ -48,12 +49,12 @@ export class AdminClusterService {
/**
* Получить одну запись по Id
* @param id id записи
* @returns any Success
* @returns ClusterDto Success
* @throws ApiError
*/
public static async get(
id: number,
): Promise<any> {
id: number,
): Promise<ClusterDto> {
const result = await __request({
method: 'GET',
path: `/api/admin/cluster/${id}`,
@ -65,13 +66,13 @@ export class AdminClusterService {
* Редактировать запись по id
* @param id id записи
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async put(
id: number,
requestBody?: ClusterDto,
): Promise<any> {
id: number,
requestBody?: ClusterDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/admin/cluster/${id}`,
@ -83,12 +84,12 @@ export class AdminClusterService {
/**
* Удалить запись по id
* @param id id записи
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async delete(
id: number,
): Promise<any> {
id: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/admin/cluster/${id}`,

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { CompanyDto } from '../models/CompanyDto';
import type { CompanyDtoPaginationContainer } from '../models/CompanyDtoPaginationContainer';
import { request as __request } from '../core/request';
export class AdminCompanyService {
@ -10,13 +11,13 @@ export class AdminCompanyService {
* Получить страницу с записями в PaginationContainer
* @param skip пропустить skip записей
* @param take получить take записей
* @returns any Success
* @returns CompanyDtoPaginationContainer Success
* @throws ApiError
*/
public static async getPage(
skip: number,
take: number = 32,
): Promise<any> {
skip: number,
take: number = 32,
): Promise<CompanyDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/admin/company`,
@ -31,12 +32,12 @@ export class AdminCompanyService {
/**
* Добавить запись
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async insert(
requestBody?: CompanyDto,
): Promise<any> {
requestBody?: CompanyDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/admin/company`,
@ -48,12 +49,12 @@ export class AdminCompanyService {
/**
* Получить одну запись по Id
* @param id id записи
* @returns any Success
* @returns CompanyDto Success
* @throws ApiError
*/
public static async get(
id: number,
): Promise<any> {
id: number,
): Promise<CompanyDto> {
const result = await __request({
method: 'GET',
path: `/api/admin/company/${id}`,
@ -65,13 +66,13 @@ export class AdminCompanyService {
* Редактировать запись по id
* @param id id записи
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async put(
id: number,
requestBody?: CompanyDto,
): Promise<any> {
id: number,
requestBody?: CompanyDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/admin/company/${id}`,
@ -83,12 +84,12 @@ export class AdminCompanyService {
/**
* Удалить запись по id
* @param id id записи
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async delete(
id: number,
): Promise<any> {
id: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/admin/company/${id}`,

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { DepositDto } from '../models/DepositDto';
import type { DepositDtoPaginationContainer } from '../models/DepositDtoPaginationContainer';
import { request as __request } from '../core/request';
export class AdminDepositService {
@ -10,13 +11,13 @@ export class AdminDepositService {
* Получить страницу с записями в PaginationContainer
* @param skip пропустить skip записей
* @param take получить take записей
* @returns any Success
* @returns DepositDtoPaginationContainer Success
* @throws ApiError
*/
public static async getPage(
skip: number,
take: number = 32,
): Promise<any> {
skip: number,
take: number = 32,
): Promise<DepositDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/admin/deposit`,
@ -31,12 +32,12 @@ export class AdminDepositService {
/**
* Добавить запись
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async insert(
requestBody?: DepositDto,
): Promise<any> {
requestBody?: DepositDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/admin/deposit`,
@ -48,12 +49,12 @@ export class AdminDepositService {
/**
* Получить одну запись по Id
* @param id id записи
* @returns any Success
* @returns DepositDto Success
* @throws ApiError
*/
public static async get(
id: number,
): Promise<any> {
id: number,
): Promise<DepositDto> {
const result = await __request({
method: 'GET',
path: `/api/admin/deposit/${id}`,
@ -65,13 +66,13 @@ export class AdminDepositService {
* Редактировать запись по id
* @param id id записи
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async put(
id: number,
requestBody?: DepositDto,
): Promise<any> {
id: number,
requestBody?: DepositDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/admin/deposit/${id}`,
@ -83,12 +84,12 @@ export class AdminDepositService {
/**
* Удалить запись по id
* @param id id записи
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async delete(
id: number,
): Promise<any> {
id: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/admin/deposit/${id}`,

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { TelemetryDto } from '../models/TelemetryDto';
import type { TelemetryDtoPaginationContainer } from '../models/TelemetryDtoPaginationContainer';
import { request as __request } from '../core/request';
export class AdminTelemetryService {
@ -25,8 +26,8 @@ export class AdminTelemetryService {
* @throws ApiError
*/
public static async mergeTelemetries(
requestBody?: Array<number>,
): Promise<any> {
requestBody?: Array<number>,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/merge`,
@ -39,13 +40,13 @@ export class AdminTelemetryService {
* Получить страницу с записями в PaginationContainer
* @param skip пропустить skip записей
* @param take получить take записей
* @returns any Success
* @returns TelemetryDtoPaginationContainer Success
* @throws ApiError
*/
public static async getPage(
skip: number,
take: number = 32,
): Promise<any> {
skip: number,
take: number = 32,
): Promise<TelemetryDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/admin/telemetry`,
@ -60,12 +61,12 @@ export class AdminTelemetryService {
/**
* Добавить запись
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async insert(
requestBody?: TelemetryDto,
): Promise<any> {
requestBody?: TelemetryDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/admin/telemetry`,
@ -77,12 +78,12 @@ export class AdminTelemetryService {
/**
* Получить одну запись по Id
* @param id id записи
* @returns any Success
* @returns TelemetryDto Success
* @throws ApiError
*/
public static async get(
id: number,
): Promise<any> {
id: number,
): Promise<TelemetryDto> {
const result = await __request({
method: 'GET',
path: `/api/admin/telemetry/${id}`,
@ -94,13 +95,13 @@ export class AdminTelemetryService {
* Редактировать запись по id
* @param id id записи
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async put(
id: number,
requestBody?: TelemetryDto,
): Promise<any> {
id: number,
requestBody?: TelemetryDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/admin/telemetry/${id}`,
@ -112,12 +113,12 @@ export class AdminTelemetryService {
/**
* Удалить запись по id
* @param id id записи
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async delete(
id: number,
): Promise<any> {
id: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/admin/telemetry/${id}`,

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { UserRoleDto } from '../models/UserRoleDto';
import type { UserRoleDtoPaginationContainer } from '../models/UserRoleDtoPaginationContainer';
import { request as __request } from '../core/request';
export class AdminUserRoleService {
@ -10,13 +11,13 @@ export class AdminUserRoleService {
* Получить страницу с записями в PaginationContainer
* @param skip пропустить skip записей
* @param take получить take записей
* @returns any Success
* @returns UserRoleDtoPaginationContainer Success
* @throws ApiError
*/
public static async getPage(
skip: number,
take: number = 32,
): Promise<any> {
skip: number,
take: number = 32,
): Promise<UserRoleDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/admin/user/role`,
@ -31,12 +32,12 @@ export class AdminUserRoleService {
/**
* Добавить запись
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async insert(
requestBody?: UserRoleDto,
): Promise<any> {
requestBody?: UserRoleDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/admin/user/role`,
@ -48,12 +49,12 @@ export class AdminUserRoleService {
/**
* Получить одну запись по Id
* @param id id записи
* @returns any Success
* @returns UserRoleDto Success
* @throws ApiError
*/
public static async get(
id: number,
): Promise<any> {
id: number,
): Promise<UserRoleDto> {
const result = await __request({
method: 'GET',
path: `/api/admin/user/role/${id}`,
@ -65,13 +66,13 @@ export class AdminUserRoleService {
* Редактировать запись по id
* @param id id записи
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async put(
id: number,
requestBody?: UserRoleDto,
): Promise<any> {
id: number,
requestBody?: UserRoleDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/admin/user/role/${id}`,
@ -83,12 +84,12 @@ export class AdminUserRoleService {
/**
* Удалить запись по id
* @param id id записи
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async delete(
id: number,
): Promise<any> {
id: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/admin/user/role/${id}`,

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { UserDto } from '../models/UserDto';
import type { UserDtoPaginationContainer } from '../models/UserDtoPaginationContainer';
import { request as __request } from '../core/request';
export class AdminUserService {
@ -10,13 +11,13 @@ export class AdminUserService {
* Получить страницу с записями в PaginationContainer
* @param skip пропустить skip записей
* @param take получить take записей
* @returns any Success
* @returns UserDtoPaginationContainer Success
* @throws ApiError
*/
public static async getPage(
skip: number,
take: number = 32,
): Promise<any> {
skip: number,
take: number = 32,
): Promise<UserDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/admin/user`,
@ -31,12 +32,12 @@ export class AdminUserService {
/**
* Добавить запись
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async insert(
requestBody?: UserDto,
): Promise<any> {
requestBody?: UserDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/admin/user`,
@ -48,12 +49,12 @@ export class AdminUserService {
/**
* Получить одну запись по Id
* @param id id записи
* @returns any Success
* @returns UserDto Success
* @throws ApiError
*/
public static async get(
id: number,
): Promise<any> {
id: number,
): Promise<UserDto> {
const result = await __request({
method: 'GET',
path: `/api/admin/user/${id}`,
@ -65,13 +66,13 @@ export class AdminUserService {
* Редактировать запись по id
* @param id id записи
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async put(
id: number,
requestBody?: UserDto,
): Promise<any> {
id: number,
requestBody?: UserDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/admin/user/${id}`,
@ -83,12 +84,12 @@ export class AdminUserService {
/**
* Удалить запись по id
* @param id id записи
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async delete(
id: number,
): Promise<any> {
id: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/admin/user/${id}`,

View File

@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */
import type { WellDto } from '../models/WellDto';
import type { WellDtoPaginationContainer } from '../models/WellDtoPaginationContainer';
import { request as __request } from '../core/request';
export class AdminWellService {
@ -10,13 +11,13 @@ export class AdminWellService {
* Получить страницу с записями в PaginationContainer
* @param skip пропустить skip записей
* @param take получить take записей
* @returns any Success
* @returns WellDtoPaginationContainer Success
* @throws ApiError
*/
public static async getPage(
skip: number,
take: number = 32,
): Promise<any> {
skip: number,
take: number = 32,
): Promise<WellDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/admin/well`,
@ -31,12 +32,12 @@ export class AdminWellService {
/**
* Добавить запись
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async insert(
requestBody?: WellDto,
): Promise<any> {
requestBody?: WellDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/admin/well`,
@ -48,12 +49,12 @@ export class AdminWellService {
/**
* Получить одну запись по Id
* @param id id записи
* @returns any Success
* @returns WellDto Success
* @throws ApiError
*/
public static async get(
id: number,
): Promise<any> {
id: number,
): Promise<WellDto> {
const result = await __request({
method: 'GET',
path: `/api/admin/well/${id}`,
@ -65,13 +66,13 @@ export class AdminWellService {
* Редактировать запись по id
* @param id id записи
* @param requestBody запись
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async put(
id: number,
requestBody?: WellDto,
): Promise<any> {
id: number,
requestBody?: WellDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/admin/well/${id}`,
@ -83,12 +84,12 @@ export class AdminWellService {
/**
* Удалить запись по id
* @param id id записи
* @returns any Success
* @returns number Success
* @throws ApiError
*/
public static async delete(
id: number,
): Promise<any> {
id: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/admin/well/${id}`,

View File

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

View File

@ -27,8 +27,8 @@ export class ClusterService {
* @throws ApiError
*/
public static async getWells(
idCluster: number,
): Promise<Array<WellDto>> {
idCluster: number,
): Promise<Array<WellDto>> {
const result = await __request({
method: 'GET',
path: `/api/cluster/${idCluster}`,

View File

@ -40,8 +40,8 @@ export class DepositService {
* @throws ApiError
*/
public static async getClusters(
depositId: number,
): Promise<Array<ClusterDto>> {
depositId: number,
): Promise<Array<ClusterDto>> {
const result = await __request({
method: 'GET',
path: `/api/deposit/${depositId}`,

View File

@ -14,9 +14,9 @@ export class DrillFlowChartService {
* @throws ApiError
*/
public static async get(
idWell: number,
updateFrom?: string,
): Promise<Array<DrillFlowChartDto>> {
idWell: number,
updateFrom?: string,
): Promise<Array<DrillFlowChartDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/drillFlowChart`,
@ -35,9 +35,9 @@ export class DrillFlowChartService {
* @throws ApiError
*/
public static async insert(
idWell: number,
requestBody?: DrillFlowChartDto,
): Promise<number> {
idWell: number,
requestBody?: DrillFlowChartDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/drillFlowChart`,
@ -54,9 +54,9 @@ export class DrillFlowChartService {
* @throws ApiError
*/
public static async edit(
idWell: number,
requestBody?: DrillFlowChartDto,
): Promise<number> {
idWell: number,
requestBody?: DrillFlowChartDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/well/${idWell}/drillFlowChart`,
@ -73,9 +73,9 @@ export class DrillFlowChartService {
* @throws ApiError
*/
public static async delete(
idWell: number,
drillFlowChartParamsId?: number,
): Promise<number> {
idWell: number,
drillFlowChartParamsId?: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/well/${idWell}/drillFlowChart`,
@ -94,9 +94,9 @@ export class DrillFlowChartService {
* @throws ApiError
*/
public static async getByTelemetry(
uid: string,
updateFrom?: string,
): Promise<Array<DrillFlowChartDto>> {
uid: string,
updateFrom?: string,
): Promise<Array<DrillFlowChartDto>> {
const result = await __request({
method: 'GET',
path: `/api/telemetry/${uid}/drillFlowChart`,
@ -115,9 +115,9 @@ export class DrillFlowChartService {
* @throws ApiError
*/
public static async insertRange(
idWell: number,
requestBody?: Array<DrillFlowChartDto>,
): Promise<number> {
idWell: number,
requestBody?: Array<DrillFlowChartDto>,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/drillFlowChart/range`,

View File

@ -15,10 +15,10 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async getDefault(
idWell: number,
startDepth?: number,
endDepth?: number,
): Promise<DrillParamsDto> {
idWell: number,
startDepth?: number,
endDepth?: number,
): Promise<DrillParamsDto> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/drillParams/autoParams`,
@ -37,8 +37,8 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async getAll(
idWell: number,
): Promise<Array<DrillParamsDto>> {
idWell: number,
): Promise<Array<DrillParamsDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/drillParams`,
@ -54,9 +54,9 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async insert(
idWell: number,
requestBody?: DrillParamsDto,
): Promise<number> {
idWell: number,
requestBody?: DrillParamsDto,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/drillParams`,
@ -74,10 +74,10 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async update(
idWell: number,
dtoId?: number,
requestBody?: DrillParamsDto,
): Promise<number> {
idWell: number,
dtoId?: number,
requestBody?: DrillParamsDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/well/${idWell}/drillParams`,
@ -97,9 +97,9 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async delete(
idWell: number,
drillParamsId?: number,
): Promise<number> {
idWell: number,
drillParamsId?: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/well/${idWell}/drillParams`,
@ -118,9 +118,9 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async insertRange(
idWell: number,
requestBody?: Array<DrillParamsDto>,
): Promise<number> {
idWell: number,
requestBody?: Array<DrillParamsDto>,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/drillParams/range`,
@ -137,9 +137,9 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async save(
idWell: number,
requestBody?: Array<DrillParamsDto>,
): Promise<number> {
idWell: number,
requestBody?: Array<DrillParamsDto>,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/drillParams/save`,
@ -155,8 +155,8 @@ export class DrillParamsService {
* @throws ApiError
*/
public static async getCompositeAll(
idWell: number,
): Promise<Array<DrillParamsDto>> {
idWell: number,
): Promise<Array<DrillParamsDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/drillParams/composite`,

View File

@ -1,6 +1,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { FileMarkDto } from '../models/FileMarkDto';
import { request as __request } from '../core/request';
export class DrillingProgramService {
@ -12,8 +13,8 @@ export class DrillingProgramService {
* @throws ApiError
*/
public static async get(
idWell: number,
): Promise<string> {
idWell: number,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/drillingProgram`,
@ -22,14 +23,14 @@ export class DrillingProgramService {
}
/**
* Возвращает ссылку на файл программы бурения в облаке
* Создает программу бурения
* @param idWell id скважины
* @returns string Success
* @throws ApiError
*/
public static async getFileWebLink(
idWell: number,
): Promise<string> {
public static async getOrCreateSharedUrl(
idWell: number,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/drillingProgram/webUrl`,
@ -37,4 +38,44 @@ export class DrillingProgramService {
return result.body;
}
/**
* Создает метку для файла входящего в проргамму бурения
* @param idWell id скважины
* @param requestBody метка файла
* @returns any Success
* @throws ApiError
*/
public static async createFileMark(
idWell: number,
requestBody?: FileMarkDto,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/drillingProgram/fileMark`,
body: requestBody,
});
return result.body;
}
/**
* Помечает метку у файла входящего, в проргамму бурения, как удаленную
* @param idWell id скважины
* @param idMark id метки
* @returns number Success
* @throws ApiError
*/
public static async deleteFileMark(
idWell: number,
idMark?: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/well/${idWell}/drillingProgram/fileMark`,
query: {
'idMark': idMark,
},
});
return result.body;
}
}

View File

@ -1,8 +1,8 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { FileInfoDto } from '../models/FileInfoDto';
import type { FileInfoDtoPaginationContainer } from '../models/FileInfoDtoPaginationContainer';
import type { FileMarkDto } from '../models/FileMarkDto';
import { request as __request } from '../core/request';
export class FileService {
@ -16,10 +16,10 @@ export class FileService {
* @throws ApiError
*/
public static async saveFiles(
idWell: number,
idCategory?: number,
requestBody?: any,
): Promise<number> {
idWell: number,
idCategory?: number,
requestBody?: any,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/files`,
@ -45,15 +45,15 @@ export class FileService {
* @throws ApiError
*/
public static async getFilesInfo(
idWell: number,
idCategory: number,
companyName?: string,
fileName?: string,
begin?: string,
end?: string,
skip: number = 0,
take: number = 32,
): Promise<FileInfoDtoPaginationContainer> {
idWell: number,
idCategory: number,
companyName?: string,
fileName?: string,
begin?: string,
end?: string,
skip: number = 0,
take: number = 32,
): Promise<FileInfoDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/files`,
@ -70,24 +70,6 @@ export class FileService {
return result.body;
}
/**
* Возвращает информацию о файлах для скважины в выбраной категории
* @param idWell id скважины
* @param idCategory id категории файла
* @returns FileInfoDto Success
* @throws ApiError
*/
public static async getInfosByCategory(
idWell: number,
idCategory: number,
): Promise<Array<FileInfoDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/files/category/${idCategory}`,
});
return result.body;
}
/**
* Возвращает файл с диска на сервере
* @param idWell id скважины
@ -96,9 +78,9 @@ export class FileService {
* @throws ApiError
*/
public static async getFile(
idWell: number,
fileId: number,
): Promise<string> {
idWell: number,
fileId: number,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/files/${fileId}`,
@ -114,9 +96,9 @@ export class FileService {
* @throws ApiError
*/
public static async delete(
idWell: number,
idFile: number,
): Promise<number> {
idWell: number,
idFile: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/well/${idWell}/files/${idFile}`,
@ -124,4 +106,44 @@ export class FileService {
return result.body;
}
/**
* Создает метку для файла
* @param idWell id скважины
* @param requestBody метка файла
* @returns any Success
* @throws ApiError
*/
public static async createFileMark(
idWell: number,
requestBody?: FileMarkDto,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/files/fileMark`,
body: requestBody,
});
return result.body;
}
/**
* Помечает метку у файла как удаленную
* @param idWell id скважины
* @param idMark id метки
* @returns number Success
* @throws ApiError
*/
public static async deleteFileMark(
idWell: number,
idMark?: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/well/${idWell}/files/fileMark`,
query: {
'idMark': idMark,
},
});
return result.body;
}
}

View File

@ -12,8 +12,8 @@ export class MeasureService {
* @throws ApiError
*/
public static async getCategories(
idWell: number,
): Promise<any> {
idWell: number,
): Promise<any> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/measure/categories`,
@ -28,9 +28,9 @@ export class MeasureService {
* @throws ApiError
*/
public static async getLast(
idWell: number,
idCategory: number,
): Promise<any> {
idWell: number,
idCategory: number,
): Promise<any> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/measure/last/${idCategory}`,
@ -45,9 +45,9 @@ export class MeasureService {
* @throws ApiError
*/
public static async getHisory(
idWell: number,
idCategory: number,
): Promise<any> {
idWell: number,
idCategory: number,
): Promise<any> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/measure/history`,
@ -62,9 +62,9 @@ export class MeasureService {
* @throws ApiError
*/
public static async insert(
idWell: number,
requestBody?: MeasureDto,
): Promise<any> {
idWell: number,
requestBody?: MeasureDto,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/measure`,
@ -80,9 +80,9 @@ export class MeasureService {
* @throws ApiError
*/
public static async update(
idWell: number,
requestBody?: MeasureDto,
): Promise<any> {
idWell: number,
requestBody?: MeasureDto,
): Promise<any> {
const result = await __request({
method: 'PUT',
path: `/api/well/${idWell}/measure`,
@ -98,9 +98,9 @@ export class MeasureService {
* @throws ApiError
*/
public static async markAsDelete(
idWell: number,
idData: number,
): Promise<any> {
idWell: number,
idData: number,
): Promise<any> {
const result = await __request({
method: 'DELETE',
path: `/api/well/${idWell}/measure/history/${idData}`,

View File

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

View File

@ -17,12 +17,12 @@ export class ReportService {
* @throws ApiError
*/
public static async createReport(
idWell: number,
stepSeconds?: number,
format?: number,
begin?: string,
end?: string,
): Promise<number> {
idWell: number,
stepSeconds?: number,
format?: number,
begin?: string,
end?: string,
): Promise<number> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/report`,
@ -43,8 +43,8 @@ export class ReportService {
* @throws ApiError
*/
public static async getAllReportsNamesByWell(
idWell: number,
): Promise<Array<string>> {
idWell: number,
): Promise<Array<string>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/report`,
@ -65,12 +65,12 @@ export class ReportService {
* @throws ApiError
*/
public static async getSuitableReportsNames(
idWell: number,
stepSeconds?: number,
format?: number,
begin?: string,
end?: string,
): Promise<Array<string>> {
idWell: number,
stepSeconds?: number,
format?: number,
begin?: string,
end?: string,
): Promise<Array<string>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/report/suitableReports`,
@ -95,12 +95,12 @@ export class ReportService {
* @throws ApiError
*/
public static async getReportSize(
idWell: number,
stepSeconds?: number,
format?: number,
begin?: string,
end?: string,
): Promise<string> {
idWell: number,
stepSeconds?: number,
format?: number,
begin?: string,
end?: string,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/report/reportSize`,
@ -121,8 +121,8 @@ export class ReportService {
* @throws ApiError
*/
public static async getReportsDateRange(
idWell: number,
): Promise<DatesRangeDto> {
idWell: number,
): Promise<DatesRangeDto> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/report/datesRange`,

View File

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

View File

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

View File

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

View File

@ -17,9 +17,9 @@ export class TelemetryService {
* @throws ApiError
*/
public static async postInfo(
uid: string,
requestBody?: TelemetryInfoDto,
): Promise<any> {
uid: string,
requestBody?: TelemetryInfoDto,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/telemetry/${uid}/info`,
@ -36,9 +36,9 @@ export class TelemetryService {
* @throws ApiError
*/
public static async postMessages(
uid: string,
requestBody?: Array<TelemetryMessageDto>,
): Promise<any> {
uid: string,
requestBody?: Array<TelemetryMessageDto>,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/telemetry/${uid}/message`,
@ -55,9 +55,9 @@ export class TelemetryService {
* @throws ApiError
*/
public static async postEvents(
uid: string,
requestBody?: Array<EventDto>,
): Promise<any> {
uid: string,
requestBody?: Array<EventDto>,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/telemetry/${uid}/event`,
@ -74,9 +74,9 @@ export class TelemetryService {
* @throws ApiError
*/
public static async postUsers(
uid: string,
requestBody?: Array<TelemetryUserDto>,
): Promise<any> {
uid: string,
requestBody?: Array<TelemetryUserDto>,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/telemetry/${uid}/user`,

View File

@ -13,8 +13,8 @@ export class WellCompositeService {
* @throws ApiError
*/
public static async get(
idWell: number,
): Promise<Array<WellCompositeDto>> {
idWell: number,
): Promise<Array<WellCompositeDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/composite`,
@ -30,9 +30,9 @@ export class WellCompositeService {
* @throws ApiError
*/
public static async save(
idWell: number,
requestBody?: Array<WellCompositeDto>,
): Promise<any> {
idWell: number,
requestBody?: Array<WellCompositeDto>,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/composite`,

View File

@ -15,8 +15,8 @@ export class WellOperationService {
* @throws ApiError
*/
public static async getCategories(
idWell: string,
): Promise<Array<WellOperationCategoryDto>> {
idWell: string,
): Promise<Array<WellOperationCategoryDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/categories`,
@ -40,17 +40,17 @@ export class WellOperationService {
* @throws ApiError
*/
public static async getOperations(
idWell: number,
opertaionType?: number,
sectionTypeIds?: Array<number>,
operationCategoryIds?: Array<number>,
begin?: string,
end?: string,
minDepth: number = -1.7976931348623157e+308,
maxDepth: number = 1.7976931348623157e+308,
skip: number = 0,
take: number = 32,
): Promise<WellOperationDtoPaginationContainer> {
idWell: number,
opertaionType?: number,
sectionTypeIds?: Array<number>,
operationCategoryIds?: Array<number>,
begin?: string,
end?: string,
minDepth: number = -1.7976931348623157e+308,
maxDepth: number = 1.7976931348623157e+308,
skip: number = 0,
take: number = 32,
): Promise<WellOperationDtoPaginationContainer> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations`,
@ -77,9 +77,9 @@ export class WellOperationService {
* @throws ApiError
*/
public static async insertRange(
idWell: number,
requestBody?: Array<WellOperationDto>,
): Promise<Array<WellOperationDto>> {
idWell: number,
requestBody?: Array<WellOperationDto>,
): Promise<Array<WellOperationDto>> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/wellOperations`,
@ -96,9 +96,9 @@ export class WellOperationService {
* @throws ApiError
*/
public static async get(
idWell: number,
idOperation: number,
): Promise<WellOperationDto> {
idWell: number,
idOperation: number,
): Promise<WellOperationDto> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/${idOperation}`,
@ -115,10 +115,10 @@ export class WellOperationService {
* @throws ApiError
*/
public static async update(
idWell: number,
idOperation: number,
requestBody?: WellOperationDto,
): Promise<WellOperationDto> {
idWell: number,
idOperation: number,
requestBody?: WellOperationDto,
): Promise<WellOperationDto> {
const result = await __request({
method: 'PUT',
path: `/api/well/${idWell}/wellOperations/${idOperation}`,
@ -135,9 +135,9 @@ export class WellOperationService {
* @throws ApiError
*/
public static async delete(
idWell: number,
idOperation: number,
): Promise<number> {
idWell: number,
idOperation: number,
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/well/${idWell}/wellOperations/${idOperation}`,
@ -154,10 +154,10 @@ export class WellOperationService {
* @throws ApiError
*/
public static async import(
idWell: number,
options: number,
requestBody?: any,
): Promise<any> {
idWell: number,
options: number,
requestBody?: any,
): Promise<any> {
const result = await __request({
method: 'POST',
path: `/api/well/${idWell}/wellOperations/import/${options}`,
@ -173,8 +173,8 @@ export class WellOperationService {
* @throws ApiError
*/
public static async export(
idWell: number,
): Promise<string> {
idWell: number,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/export`,
@ -189,8 +189,8 @@ export class WellOperationService {
* @throws ApiError
*/
public static async getTamplate(
idWell: string,
): Promise<string> {
idWell: string,
): Promise<string> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/tamplate`,

View File

@ -15,8 +15,8 @@ export class WellOperationStatService {
* @throws ApiError
*/
public static async getStatCluster(
idCluster: number,
): Promise<StatClusterDto> {
idCluster: number,
): Promise<StatClusterDto> {
const result = await __request({
method: 'GET',
path: `/api/cluster/${idCluster}/stat`,
@ -31,8 +31,8 @@ export class WellOperationStatService {
* @throws ApiError
*/
public static async getWellsStat(
idWells?: Array<number>,
): Promise<Array<StatWellDto>> {
idWells?: Array<number>,
): Promise<Array<StatWellDto>> {
const result = await __request({
method: 'GET',
path: `/api/wellsStats`,
@ -50,8 +50,8 @@ export class WellOperationStatService {
* @throws ApiError
*/
public static async getStatWell(
idWell: number,
): Promise<StatWellDto> {
idWell: number,
): Promise<StatWellDto> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/stat`,
@ -66,8 +66,8 @@ export class WellOperationStatService {
* @throws ApiError
*/
public static async getTvd(
idWell: number,
): Promise<Array<WellOperationDtoPlanFactPredictBase>> {
idWell: number,
): Promise<Array<WellOperationDtoPlanFactPredictBase>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/tvd`,

View File

@ -30,9 +30,9 @@ export class WellService {
* @throws ApiError
*/
public static async updateWell(
idWell?: number,
requestBody?: WellParamsDto,
): Promise<number> {
idWell?: number,
requestBody?: WellParamsDto,
): Promise<number> {
const result = await __request({
method: 'PUT',
path: `/api/well`,
@ -51,8 +51,8 @@ export class WellService {
* @throws ApiError
*/
public static async get(
idWell?: number,
): Promise<WellDto> {
idWell?: number,
): Promise<WellDto> {
const result = await __request({
method: 'GET',
path: `/api/well/getWell`,