diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 36b4c1c..9f443ce 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -6,14 +6,18 @@ 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 { FilePublishInfoDto } from './models/FilePublishInfoDto'; export type { MeasureDto } from './models/MeasureDto'; export type { MessageDto } from './models/MessageDto'; export type { MessageDtoPaginationContainer } from './models/MessageDtoPaginationContainer'; @@ -25,6 +29,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 +37,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'; diff --git a/src/services/api/models/ClusterDtoPaginationContainer.ts b/src/services/api/models/ClusterDtoPaginationContainer.ts new file mode 100644 index 0000000..5b6d4e3 --- /dev/null +++ b/src/services/api/models/ClusterDtoPaginationContainer.ts @@ -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 | null; +} diff --git a/src/services/api/models/CompanyDtoPaginationContainer.ts b/src/services/api/models/CompanyDtoPaginationContainer.ts new file mode 100644 index 0000000..e3a7dcc --- /dev/null +++ b/src/services/api/models/CompanyDtoPaginationContainer.ts @@ -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 | null; +} diff --git a/src/services/api/models/DepositDtoPaginationContainer.ts b/src/services/api/models/DepositDtoPaginationContainer.ts new file mode 100644 index 0000000..704269c --- /dev/null +++ b/src/services/api/models/DepositDtoPaginationContainer.ts @@ -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 | null; +} diff --git a/src/services/api/models/FileInfoDto.ts b/src/services/api/models/FileInfoDto.ts index d727028..93cef3b 100644 --- a/src/services/api/models/FileInfoDto.ts +++ b/src/services/api/models/FileInfoDto.ts @@ -2,6 +2,7 @@ /* tslint:disable */ /* eslint-disable */ +import type { FilePublishInfoDto } from './FilePublishInfoDto'; import type { UserDto } from './UserDto'; export type FileInfoDto = { @@ -12,5 +13,6 @@ export type FileInfoDto = { name?: string | null; uploadDate?: string; size?: number; + publishInfo?: FilePublishInfoDto; author?: UserDto; } diff --git a/src/services/api/models/FilePublishInfoDto.ts b/src/services/api/models/FilePublishInfoDto.ts new file mode 100644 index 0000000..59099f9 --- /dev/null +++ b/src/services/api/models/FilePublishInfoDto.ts @@ -0,0 +1,9 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type FilePublishInfoDto = { + publisherLogin?: string | null; + date?: string; + webStorageFileUrl?: string | null; +} diff --git a/src/services/api/models/TelemetryDtoPaginationContainer.ts b/src/services/api/models/TelemetryDtoPaginationContainer.ts new file mode 100644 index 0000000..ef7a641 --- /dev/null +++ b/src/services/api/models/TelemetryDtoPaginationContainer.ts @@ -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 | null; +} diff --git a/src/services/api/models/UserDtoPaginationContainer.ts b/src/services/api/models/UserDtoPaginationContainer.ts new file mode 100644 index 0000000..d1b285d --- /dev/null +++ b/src/services/api/models/UserDtoPaginationContainer.ts @@ -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 | null; +} diff --git a/src/services/api/models/UserRoleDtoPaginationContainer.ts b/src/services/api/models/UserRoleDtoPaginationContainer.ts new file mode 100644 index 0000000..aa0e25a --- /dev/null +++ b/src/services/api/models/UserRoleDtoPaginationContainer.ts @@ -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 | null; +} diff --git a/src/services/api/models/WellDtoPaginationContainer.ts b/src/services/api/models/WellDtoPaginationContainer.ts new file mode 100644 index 0000000..d0bec27 --- /dev/null +++ b/src/services/api/models/WellDtoPaginationContainer.ts @@ -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 | null; +} diff --git a/src/services/api/services/AdminClusterService.ts b/src/services/api/services/AdminClusterService.ts index f4ded6c..f76b7bb 100644 --- a/src/services/api/services/AdminClusterService.ts +++ b/src/services/api/services/AdminClusterService.ts @@ -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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/admin/cluster/${id}`, diff --git a/src/services/api/services/AdminCompanyService.ts b/src/services/api/services/AdminCompanyService.ts index fb8d668..fd07059 100644 --- a/src/services/api/services/AdminCompanyService.ts +++ b/src/services/api/services/AdminCompanyService.ts @@ -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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/admin/company/${id}`, diff --git a/src/services/api/services/AdminDepositService.ts b/src/services/api/services/AdminDepositService.ts index 8878335..eca13dc 100644 --- a/src/services/api/services/AdminDepositService.ts +++ b/src/services/api/services/AdminDepositService.ts @@ -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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/admin/deposit/${id}`, diff --git a/src/services/api/services/AdminTelemetryService.ts b/src/services/api/services/AdminTelemetryService.ts index ce158b8..ce56002 100644 --- a/src/services/api/services/AdminTelemetryService.ts +++ b/src/services/api/services/AdminTelemetryService.ts @@ -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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/admin/telemetry/${id}`, diff --git a/src/services/api/services/AdminUserRoleService.ts b/src/services/api/services/AdminUserRoleService.ts index 5a5333b..0abe50b 100644 --- a/src/services/api/services/AdminUserRoleService.ts +++ b/src/services/api/services/AdminUserRoleService.ts @@ -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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/admin/user/role/${id}`, diff --git a/src/services/api/services/AdminUserService.ts b/src/services/api/services/AdminUserService.ts index f4dba1d..7f4e2bb 100644 --- a/src/services/api/services/AdminUserService.ts +++ b/src/services/api/services/AdminUserService.ts @@ -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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/admin/user/${id}`, diff --git a/src/services/api/services/AdminWellService.ts b/src/services/api/services/AdminWellService.ts index cbabf24..6c4a54d 100644 --- a/src/services/api/services/AdminWellService.ts +++ b/src/services/api/services/AdminWellService.ts @@ -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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { 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 { + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/admin/well/${id}`, diff --git a/src/services/api/services/AuthService.ts b/src/services/api/services/AuthService.ts index 27732bd..8a58e6a 100644 --- a/src/services/api/services/AuthService.ts +++ b/src/services/api/services/AuthService.ts @@ -42,8 +42,8 @@ export class AuthService { } /** - * Регистрация пользователя. Доступна администратору - * @param requestBody + * Отправить заявку на регистрацию. Заявка подтверждается администратором. + * @param requestBody Информация о новом пользователе * @returns any Success * @throws ApiError */ diff --git a/src/services/api/services/DrillingProgramService.ts b/src/services/api/services/DrillingProgramService.ts index 9aaaea1..c460cfc 100644 --- a/src/services/api/services/DrillingProgramService.ts +++ b/src/services/api/services/DrillingProgramService.ts @@ -6,7 +6,8 @@ import { request as __request } from '../core/request'; export class DrillingProgramService { /** - * @param idWell + * Создает программу бурения + * @param idWell id скважины * @returns string Success * @throws ApiError */ @@ -20,4 +21,20 @@ export class DrillingProgramService { return result.body; } + /** + * Создает программу бурения + * @param idWell id скважины + * @returns string Success + * @throws ApiError + */ + public static async getFileWebLink( + idWell: number, + ): Promise { + const result = await __request({ + method: 'GET', + path: `/api/well/${idWell}/drillingProgram/webUrl`, + }); + return result.body; + } + } \ No newline at end of file diff --git a/src/services/api/services/TelemetryDataSaubService.ts b/src/services/api/services/TelemetryDataSaubService.ts index 8854704..0503708 100644 --- a/src/services/api/services/TelemetryDataSaubService.ts +++ b/src/services/api/services/TelemetryDataSaubService.ts @@ -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 { + ): Promise { const result = await __request({ method: 'GET', path: `/api/TelemetryDataSaub/${idWell}`, diff --git a/src/services/api/services/TelemetryDataSpinService.ts b/src/services/api/services/TelemetryDataSpinService.ts index 71add2c..b01606d 100644 --- a/src/services/api/services/TelemetryDataSpinService.ts +++ b/src/services/api/services/TelemetryDataSpinService.ts @@ -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 { + ): Promise { const result = await __request({ method: 'GET', path: `/api/TelemetryDataSpin/${idWell}`,