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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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 {
@ -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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): 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> {
): Promise<number> {
const result = await __request({
method: 'DELETE',
path: `/api/admin/well/${id}`,

View File

@ -42,8 +42,8 @@ export class AuthService {
}
/**
* Регистрация пользователя. Доступна администратору
* @param requestBody
* Отправить заявку на регистрацию. Заявка подтверждается администратором.
* @param requestBody Информация о новом пользователе
* @returns any Success
* @throws ApiError
*/

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 {
@ -22,12 +23,12 @@ export class DrillingProgramService {
}
/**
* Возвращает ссылку на файл программы бурения в облаке
* Создает программу бурения
* @param idWell id скважины
* @returns string Success
* @throws ApiError
*/
public static async getFileWebLink(
public static async getOrCreateSharedUrl(
idWell: number,
): Promise<string> {
const result = await __request({
@ -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 {
@ -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 скважины
@ -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

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

View File

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