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 { AuthDto } from './models/AuthDto';
export type { ClusterDto } from './models/ClusterDto'; export type { ClusterDto } from './models/ClusterDto';
export type { ClusterDtoPaginationContainer } from './models/ClusterDtoPaginationContainer';
export type { CompanyDto } from './models/CompanyDto'; export type { CompanyDto } from './models/CompanyDto';
export type { CompanyDtoPaginationContainer } from './models/CompanyDtoPaginationContainer';
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 { DepositDtoPaginationContainer } from './models/DepositDtoPaginationContainer';
export type { DrillFlowChartDto } from './models/DrillFlowChartDto'; export type { DrillFlowChartDto } from './models/DrillFlowChartDto';
export type { DrillParamsDto } from './models/DrillParamsDto'; 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';
export type { FileMarkDto } from './models/FileMarkDto';
export type { FilePublishInfoDto } from './models/FilePublishInfoDto';
export type { MeasureDto } from './models/MeasureDto'; export type { MeasureDto } from './models/MeasureDto';
export type { MessageDto } from './models/MessageDto'; export type { MessageDto } from './models/MessageDto';
export type { MessageDtoPaginationContainer } from './models/MessageDtoPaginationContainer'; export type { MessageDtoPaginationContainer } from './models/MessageDtoPaginationContainer';
@ -25,6 +30,7 @@ export type { StatWellDto } from './models/StatWellDto';
export type { TelemetryDataSaubDto } from './models/TelemetryDataSaubDto'; export type { TelemetryDataSaubDto } from './models/TelemetryDataSaubDto';
export type { TelemetryDataSpinDto } from './models/TelemetryDataSpinDto'; export type { TelemetryDataSpinDto } from './models/TelemetryDataSpinDto';
export type { TelemetryDto } from './models/TelemetryDto'; export type { TelemetryDto } from './models/TelemetryDto';
export type { TelemetryDtoPaginationContainer } from './models/TelemetryDtoPaginationContainer';
export type { TelemetryInfoDto } from './models/TelemetryInfoDto'; export type { TelemetryInfoDto } from './models/TelemetryInfoDto';
export type { TelemetryMessageDto } from './models/TelemetryMessageDto'; export type { TelemetryMessageDto } from './models/TelemetryMessageDto';
export type { TelemetryOperationDto } from './models/TelemetryOperationDto'; export type { TelemetryOperationDto } from './models/TelemetryOperationDto';
@ -32,12 +38,15 @@ export type { TelemetryOperationDtoPaginationContainer } from './models/Telemetr
export type { TelemetryOperationDurationDto } from './models/TelemetryOperationDurationDto'; export type { TelemetryOperationDurationDto } from './models/TelemetryOperationDurationDto';
export type { TelemetryUserDto } from './models/TelemetryUserDto'; export type { TelemetryUserDto } from './models/TelemetryUserDto';
export type { UserDto } from './models/UserDto'; export type { UserDto } from './models/UserDto';
export type { UserDtoPaginationContainer } from './models/UserDtoPaginationContainer';
export type { UserRoleDto } from './models/UserRoleDto'; export type { UserRoleDto } from './models/UserRoleDto';
export type { UserRoleDtoPaginationContainer } from './models/UserRoleDtoPaginationContainer';
export type { UserTokenDto } from './models/UserTokenDto'; export type { UserTokenDto } from './models/UserTokenDto';
export type { WellCompositeDto } from './models/WellCompositeDto'; export type { WellCompositeDto } from './models/WellCompositeDto';
export type { WellDepthToDayDto } from './models/WellDepthToDayDto'; export type { WellDepthToDayDto } from './models/WellDepthToDayDto';
export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto'; export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto';
export type { WellDto } from './models/WellDto'; export type { WellDto } from './models/WellDto';
export type { WellDtoPaginationContainer } from './models/WellDtoPaginationContainer';
export type { WellOperationCategoryDto } from './models/WellOperationCategoryDto'; export type { WellOperationCategoryDto } from './models/WellOperationCategoryDto';
export type { WellOperationDto } from './models/WellOperationDto'; export type { WellOperationDto } from './models/WellOperationDto';
export type { WellOperationDtoPaginationContainer } from './models/WellOperationDtoPaginationContainer'; 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 */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { FileMarkDto } from './FileMarkDto';
import type { FilePublishInfoDto } from './FilePublishInfoDto';
import type { UserDto } from './UserDto'; import type { UserDto } from './UserDto';
export type FileInfoDto = { export type FileInfoDto = {
@ -12,5 +14,7 @@ export type FileInfoDto = {
name?: string | null; name?: string | null;
uploadDate?: string; uploadDate?: string;
size?: number; size?: number;
publishInfo?: FilePublishInfoDto;
author?: UserDto; 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 */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ClusterDto } from '../models/ClusterDto'; import type { ClusterDto } from '../models/ClusterDto';
import type { ClusterDtoPaginationContainer } from '../models/ClusterDtoPaginationContainer';
import { request as __request } from '../core/request'; import { request as __request } from '../core/request';
export class AdminClusterService { export class AdminClusterService {
@ -10,13 +11,13 @@ export class AdminClusterService {
* Получить страницу с записями в PaginationContainer * Получить страницу с записями в PaginationContainer
* @param skip пропустить skip записей * @param skip пропустить skip записей
* @param take получить take записей * @param take получить take записей
* @returns any Success * @returns ClusterDtoPaginationContainer Success
* @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<ClusterDtoPaginationContainer> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/cluster`, path: `/api/admin/cluster`,
@ -31,12 +32,12 @@ export class AdminClusterService {
/** /**
* Добавить запись * Добавить запись
* @param requestBody запись * @param requestBody запись
* @returns any Success * @returns number Success
* @throws ApiError * @throws ApiError
*/ */
public static async insert( public static async insert(
requestBody?: ClusterDto, requestBody?: ClusterDto,
): Promise<any> { ): Promise<number> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/admin/cluster`, path: `/api/admin/cluster`,
@ -48,12 +49,12 @@ export class AdminClusterService {
/** /**
* Получить одну запись по Id * Получить одну запись по Id
* @param id id записи * @param id id записи
* @returns any Success * @returns ClusterDto Success
* @throws ApiError * @throws ApiError
*/ */
public static async get( public static async get(
id: number, id: number,
): Promise<any> { ): Promise<ClusterDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/admin/cluster/${id}`, path: `/api/admin/cluster/${id}`,
@ -65,13 +66,13 @@ export class AdminClusterService {
* Редактировать запись по id * Редактировать запись по id
* @param id id записи * @param id id записи
* @param requestBody запись * @param requestBody запись
* @returns any Success * @returns number Success
* @throws ApiError * @throws ApiError
*/ */
public static async put( public static async put(
id: number, id: number,
requestBody?: ClusterDto, requestBody?: ClusterDto,
): Promise<any> { ): Promise<number> {
const result = await __request({ const result = await __request({
method: 'PUT', method: 'PUT',
path: `/api/admin/cluster/${id}`, path: `/api/admin/cluster/${id}`,
@ -83,12 +84,12 @@ export class AdminClusterService {
/** /**
* Удалить запись по id * Удалить запись по id
* @param id id записи * @param id id записи
* @returns any Success * @returns number Success
* @throws ApiError * @throws ApiError
*/ */
public static async delete( public static async delete(
id: number, id: number,
): Promise<any> { ): Promise<number> {
const result = await __request({ const result = await __request({
method: 'DELETE', method: 'DELETE',
path: `/api/admin/cluster/${id}`, path: `/api/admin/cluster/${id}`,

View File

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

View File

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

View File

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

View File

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

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

View File

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

View File

@ -15,8 +15,8 @@ export class AuthService {
* @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`,
@ -42,14 +42,14 @@ export class AuthService {
} }
/** /**
* Регистрация пользователя. Доступна администратору * Отправить заявку на регистрацию. Заявка подтверждается администратором.
* @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`,
@ -66,9 +66,9 @@ export class AuthService {
* @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

@ -27,8 +27,8 @@ export class ClusterService {
* @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

@ -40,8 +40,8 @@ export class DepositService {
* @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

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

View File

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

View File

@ -1,6 +1,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { FileMarkDto } from '../models/FileMarkDto';
import { request as __request } from '../core/request'; import { request as __request } from '../core/request';
export class DrillingProgramService { export class DrillingProgramService {
@ -12,8 +13,8 @@ export class DrillingProgramService {
* @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`,
@ -22,14 +23,14 @@ export class DrillingProgramService {
} }
/** /**
* Возвращает ссылку на файл программы бурения в облаке * Создает программу бурения
* @param idWell id скважины * @param idWell id скважины
* @returns string Success * @returns string Success
* @throws ApiError * @throws ApiError
*/ */
public static async getFileWebLink( public static async getOrCreateSharedUrl(
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/webUrl`, path: `/api/well/${idWell}/drillingProgram/webUrl`,
@ -37,4 +38,44 @@ export class DrillingProgramService {
return result.body; 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 */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { FileInfoDto } from '../models/FileInfoDto';
import type { FileInfoDtoPaginationContainer } from '../models/FileInfoDtoPaginationContainer'; import type { FileInfoDtoPaginationContainer } from '../models/FileInfoDtoPaginationContainer';
import type { FileMarkDto } from '../models/FileMarkDto';
import { request as __request } from '../core/request'; import { request as __request } from '../core/request';
export class FileService { export class FileService {
@ -16,10 +16,10 @@ export class FileService {
* @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 @@ export class FileService {
* @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 = 0,
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`,
@ -70,24 +70,6 @@ export class FileService {
return result.body; 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 скважины * @param idWell id скважины
@ -96,9 +78,9 @@ export class FileService {
* @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 +96,9 @@ export class FileService {
* @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}`,
@ -124,4 +106,44 @@ export class FileService {
return result.body; 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 * @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`,
@ -28,9 +28,9 @@ export class MeasureService {
* @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}`,
@ -45,9 +45,9 @@ export class MeasureService {
* @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`, path: `/api/well/${idWell}/measure/history`,
@ -62,9 +62,9 @@ export class MeasureService {
* @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`,
@ -80,9 +80,9 @@ export class MeasureService {
* @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`,
@ -98,9 +98,9 @@ export class MeasureService {
* @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 @@ export class MessageService {
* @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 @@ export class ReportService {
* @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`,
@ -65,12 +65,12 @@ export class ReportService {
* @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 @@ export class ReportService {
* @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 @@ export class ReportService {
* @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 @@ export class TelemetryAnalyticsService {
* @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 @@ export class TelemetryAnalyticsService {
* @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 @@ export class TelemetryAnalyticsService {
* @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 @@ export class TelemetryAnalyticsService {
* @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 @@ export class TelemetryAnalyticsService {
* @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}`,
@ -33,15 +33,15 @@ export class TelemetryDataSaubService {
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec * @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
* @param intervalSec интервал времени даты начала выборки, секунды * @param intervalSec интервал времени даты начала выборки, секунды
* @param approxPointsCount желаемое количество точек. Если в выборке точек будет больше, то выборка будет прорежена. * @param approxPointsCount желаемое количество точек. Если в выборке точек будет больше, то выборка будет прорежена.
* @returns any Success * @returns TelemetryDataSaubDto Success
* @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<TelemetryDataSaubDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/TelemetryDataSaub/${idWell}`, path: `/api/TelemetryDataSaub/${idWell}`,
@ -61,8 +61,8 @@ export class TelemetryDataSaubService {
* @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}`,
@ -33,15 +33,15 @@ export class TelemetryDataSpinService {
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec * @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
* @param intervalSec интервал времени даты начала выборки, секунды * @param intervalSec интервал времени даты начала выборки, секунды
* @param approxPointsCount желаемое количество точек. Если в выборке точек будет больше, то выборка будет прорежена. * @param approxPointsCount желаемое количество точек. Если в выборке точек будет больше, то выборка будет прорежена.
* @returns any Success * @returns TelemetryDataSpinDto Success
* @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<TelemetryDataSpinDto> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/TelemetryDataSpin/${idWell}`, path: `/api/TelemetryDataSpin/${idWell}`,
@ -61,8 +61,8 @@ export class TelemetryDataSpinService {
* @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

@ -17,9 +17,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`,
@ -36,9 +36,9 @@ export class TelemetryService {
* @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`,
@ -55,9 +55,9 @@ export class TelemetryService {
* @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`,
@ -74,9 +74,9 @@ export class TelemetryService {
* @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

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

View File

@ -15,8 +15,8 @@ export class WellOperationService {
* @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`,
@ -40,17 +40,17 @@ export class WellOperationService {
* @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 = 0,
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 @@ export class WellOperationService {
* @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 @@ export class WellOperationService {
* @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 @@ export class WellOperationService {
* @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 @@ export class WellOperationService {
* @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}`,
@ -154,10 +154,10 @@ export class WellOperationService {
* @throws ApiError * @throws ApiError
*/ */
public static async import( public static async import(
idWell: number, idWell: number,
options: number, options: number,
requestBody?: any, requestBody?: any,
): Promise<any> { ): Promise<any> {
const result = await __request({ const result = await __request({
method: 'POST', method: 'POST',
path: `/api/well/${idWell}/wellOperations/import/${options}`, path: `/api/well/${idWell}/wellOperations/import/${options}`,
@ -173,8 +173,8 @@ export class WellOperationService {
* @throws ApiError * @throws ApiError
*/ */
public static async export( public static async export(
idWell: number, idWell: number,
): Promise<string> { ): Promise<string> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/wellOperations/export`, path: `/api/well/${idWell}/wellOperations/export`,
@ -189,8 +189,8 @@ export class WellOperationService {
* @throws ApiError * @throws ApiError
*/ */
public static async getTamplate( public static async getTamplate(
idWell: string, idWell: string,
): Promise<string> { ): Promise<string> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/well/${idWell}/wellOperations/tamplate`, path: `/api/well/${idWell}/wellOperations/tamplate`,

View File

@ -15,8 +15,8 @@ export class WellOperationStatService {
* @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`,
@ -31,8 +31,8 @@ export class WellOperationStatService {
* @throws ApiError * @throws ApiError
*/ */
public static async getWellsStat( public static async getWellsStat(
idWells?: Array<number>, idWells?: Array<number>,
): Promise<Array<StatWellDto>> { ): Promise<Array<StatWellDto>> {
const result = await __request({ const result = await __request({
method: 'GET', method: 'GET',
path: `/api/wellsStats`, path: `/api/wellsStats`,
@ -50,8 +50,8 @@ export class WellOperationStatService {
* @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`,
@ -66,8 +66,8 @@ export class WellOperationStatService {
* @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

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