From 6ec3836abe8c0a1c9e1e7a951d72d005a80c5a99 Mon Sep 17 00:00:00 2001 From: goodmice Date: Mon, 15 Nov 2021 14:01:17 +0500 Subject: [PATCH] Services updated --- src/services/api/index.ts | 1 + src/services/api/models/AuthDto.ts | 2 +- src/services/api/models/ClusterDto.ts | 2 +- src/services/api/models/CompanyDto.ts | 2 +- src/services/api/models/DatesRangeDto.ts | 2 +- src/services/api/models/DepositDto.ts | 2 +- src/services/api/models/DrillFlowChartDto.ts | 2 +- src/services/api/models/DrillParamsDto.ts | 2 +- src/services/api/models/EventDto.ts | 2 +- src/services/api/models/FileInfoDto.ts | 2 +- .../models/FileInfoDtoPaginationContainer.ts | 2 +- src/services/api/models/FileMarkDto.ts | 2 +- src/services/api/models/MeasureDto.ts | 2 +- src/services/api/models/MessageDto.ts | 2 +- .../models/MessageDtoPaginationContainer.ts | 2 +- src/services/api/models/StatClusterDto.ts | 2 +- src/services/api/models/StatOperationsDto.ts | 2 +- .../models/StatOperationsDtoPlanFactBase.ts | 2 +- src/services/api/models/StatSectionDto.ts | 2 +- src/services/api/models/StatWellDto.ts | 2 +- .../api/models/TelemetryDataSaubDto.ts | 5 +- .../api/models/TelemetryDataSpinDto.ts | 3 +- src/services/api/models/TelemetryDto.ts | 2 +- src/services/api/models/TelemetryInfoDto.ts | 2 +- .../api/models/TelemetryMessageDto.ts | 2 +- .../api/models/TelemetryOperationDto.ts | 2 +- ...elemetryOperationDtoPaginationContainer.ts | 2 +- .../models/TelemetryOperationDurationDto.ts | 2 +- src/services/api/models/TelemetryUserDto.ts | 2 +- src/services/api/models/UserDto.ts | 2 +- src/services/api/models/UserRoleDto.ts | 2 +- src/services/api/models/UserTokenDto.ts | 2 +- src/services/api/models/WellCompositeDto.ts | 2 +- src/services/api/models/WellDepthToDayDto.ts | 2 +- .../api/models/WellDepthToIntervalDto.ts | 2 +- src/services/api/models/WellDto.ts | 2 +- .../api/models/WellOperationCategoryDto.ts | 2 +- src/services/api/models/WellOperationDto.ts | 2 +- .../WellOperationDtoPaginationContainer.ts | 2 +- .../WellOperationDtoPlanFactPredictBase.ts | 2 +- src/services/api/models/WellParamsDto.ts | 2 +- .../api/services/AdminClusterService.ts | 24 ++--- .../api/services/AdminCompanyService.ts | 24 ++--- .../api/services/AdminDepositService.ts | 24 ++--- .../api/services/AdminTelemetryService.ts | 28 +++--- .../api/services/AdminUserRoleService.ts | 24 ++--- src/services/api/services/AdminUserService.ts | 24 ++--- src/services/api/services/AdminWellService.ts | 24 ++--- src/services/api/services/AuthService.ts | 20 ++-- src/services/api/services/ClusterService.ts | 6 +- src/services/api/services/DepositService.ts | 6 +- .../api/services/DrillFlowChartService.ts | 36 +++---- .../api/services/DrillParamsService.ts | 48 ++++----- .../api/services/DrillingProgramService.ts | 20 ++-- src/services/api/services/FileService.ts | 52 +++++----- src/services/api/services/MeasureService.ts | 56 +++++------ src/services/api/services/MessageService.ts | 20 ++-- src/services/api/services/ReportService.ts | 46 ++++----- .../api/services/RequerstTrackerService.ts | 98 +++++++++++++++++++ .../api/services/TelemetryAnalyticsService.ts | 46 ++++----- .../api/services/TelemetryDataSaubService.ts | 22 ++--- .../api/services/TelemetryDataSpinService.ts | 22 ++--- src/services/api/services/TelemetryService.ts | 24 ++--- .../api/services/WellCompositeService.ts | 10 +- .../api/services/WellOperationService.ts | 78 +++++++-------- .../api/services/WellOperationStatService.ts | 18 ++-- src/services/api/services/WellService.ts | 14 +-- 67 files changed, 498 insertions(+), 401 deletions(-) create mode 100644 src/services/api/services/RequerstTrackerService.ts diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 63ab684..2a11d14 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -70,6 +70,7 @@ export { FileService } from './services/FileService'; export { MeasureService } from './services/MeasureService'; export { MessageService } from './services/MessageService'; export { ReportService } from './services/ReportService'; +export { RequerstTrackerService } from './services/RequerstTrackerService'; export { TelemetryAnalyticsService } from './services/TelemetryAnalyticsService'; export { TelemetryDataSaubService } from './services/TelemetryDataSaubService'; export { TelemetryDataSpinService } from './services/TelemetryDataSpinService'; diff --git a/src/services/api/models/AuthDto.ts b/src/services/api/models/AuthDto.ts index a8317bf..bd6f347 100644 --- a/src/services/api/models/AuthDto.ts +++ b/src/services/api/models/AuthDto.ts @@ -5,4 +5,4 @@ export type AuthDto = { login?: string | null; password?: string | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/ClusterDto.ts b/src/services/api/models/ClusterDto.ts index ec20834..226f3a0 100644 --- a/src/services/api/models/ClusterDto.ts +++ b/src/services/api/models/ClusterDto.ts @@ -11,4 +11,4 @@ export type ClusterDto = { latitude?: number | null; longitude?: number | null; wells?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/CompanyDto.ts b/src/services/api/models/CompanyDto.ts index e532790..85fb2ad 100644 --- a/src/services/api/models/CompanyDto.ts +++ b/src/services/api/models/CompanyDto.ts @@ -6,4 +6,4 @@ export type CompanyDto = { id?: number; caption?: string | null; companyTypeCaption?: string | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/DatesRangeDto.ts b/src/services/api/models/DatesRangeDto.ts index 1a9132f..acbe4e8 100644 --- a/src/services/api/models/DatesRangeDto.ts +++ b/src/services/api/models/DatesRangeDto.ts @@ -5,4 +5,4 @@ export type DatesRangeDto = { from?: string; to?: string; -} \ No newline at end of file +} diff --git a/src/services/api/models/DepositDto.ts b/src/services/api/models/DepositDto.ts index c142448..c57ae4a 100644 --- a/src/services/api/models/DepositDto.ts +++ b/src/services/api/models/DepositDto.ts @@ -11,4 +11,4 @@ export type DepositDto = { latitude?: number | null; longitude?: number | null; clusters?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/DrillFlowChartDto.ts b/src/services/api/models/DrillFlowChartDto.ts index 7da53b9..ec4a959 100644 --- a/src/services/api/models/DrillFlowChartDto.ts +++ b/src/services/api/models/DrillFlowChartDto.ts @@ -19,4 +19,4 @@ export type DrillFlowChartDto = { rotorSpeedMax?: number; flowMin?: number; flowMax?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/DrillParamsDto.ts b/src/services/api/models/DrillParamsDto.ts index 560b831..406c87a 100644 --- a/src/services/api/models/DrillParamsDto.ts +++ b/src/services/api/models/DrillParamsDto.ts @@ -23,4 +23,4 @@ export type DrillParamsDto = { flowMin?: number; flowAvg?: number; flowMax?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/EventDto.ts b/src/services/api/models/EventDto.ts index e4d90a1..e7e334b 100644 --- a/src/services/api/models/EventDto.ts +++ b/src/services/api/models/EventDto.ts @@ -9,4 +9,4 @@ export type EventDto = { tag?: string | null; eventType?: number; idSound?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/FileInfoDto.ts b/src/services/api/models/FileInfoDto.ts index c960d37..9ca4e63 100644 --- a/src/services/api/models/FileInfoDto.ts +++ b/src/services/api/models/FileInfoDto.ts @@ -17,4 +17,4 @@ export type FileInfoDto = { publishInfo?: FilePublishInfoDto; author?: UserDto; fileMarks?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/FileInfoDtoPaginationContainer.ts b/src/services/api/models/FileInfoDtoPaginationContainer.ts index 6a8d883..7bf4f27 100644 --- a/src/services/api/models/FileInfoDtoPaginationContainer.ts +++ b/src/services/api/models/FileInfoDtoPaginationContainer.ts @@ -9,4 +9,4 @@ export type FileInfoDtoPaginationContainer = { take?: number; count?: number; items?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/FileMarkDto.ts b/src/services/api/models/FileMarkDto.ts index 4acce19..9838d66 100644 --- a/src/services/api/models/FileMarkDto.ts +++ b/src/services/api/models/FileMarkDto.ts @@ -12,4 +12,4 @@ export type FileMarkDto = { comment?: string | null; isDeleted?: boolean; user?: UserDto; -} \ No newline at end of file +} diff --git a/src/services/api/models/MeasureDto.ts b/src/services/api/models/MeasureDto.ts index dea91c6..5a846f9 100644 --- a/src/services/api/models/MeasureDto.ts +++ b/src/services/api/models/MeasureDto.ts @@ -9,4 +9,4 @@ export type MeasureDto = { categoryName?: string | null; timestamp?: string; data?: Record | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/MessageDto.ts b/src/services/api/models/MessageDto.ts index 1c5001b..081e545 100644 --- a/src/services/api/models/MessageDto.ts +++ b/src/services/api/models/MessageDto.ts @@ -9,4 +9,4 @@ export type MessageDto = { wellDepth?: number; user?: string | null; message?: string | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/MessageDtoPaginationContainer.ts b/src/services/api/models/MessageDtoPaginationContainer.ts index 360fed6..e41bc14 100644 --- a/src/services/api/models/MessageDtoPaginationContainer.ts +++ b/src/services/api/models/MessageDtoPaginationContainer.ts @@ -9,4 +9,4 @@ export type MessageDtoPaginationContainer = { take?: number; count?: number; items?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/StatClusterDto.ts b/src/services/api/models/StatClusterDto.ts index 8f18c1a..5bd051a 100644 --- a/src/services/api/models/StatClusterDto.ts +++ b/src/services/api/models/StatClusterDto.ts @@ -8,4 +8,4 @@ export type StatClusterDto = { id?: number; caption?: string | null; statsWells?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/StatOperationsDto.ts b/src/services/api/models/StatOperationsDto.ts index 6941292..40c7510 100644 --- a/src/services/api/models/StatOperationsDto.ts +++ b/src/services/api/models/StatOperationsDto.ts @@ -13,4 +13,4 @@ export type StatOperationsDto = { bhaDownSpeed?: number; casingDownSpeed?: number; nonProductiveHours?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/StatOperationsDtoPlanFactBase.ts b/src/services/api/models/StatOperationsDtoPlanFactBase.ts index b15856d..cd15dfe 100644 --- a/src/services/api/models/StatOperationsDtoPlanFactBase.ts +++ b/src/services/api/models/StatOperationsDtoPlanFactBase.ts @@ -7,4 +7,4 @@ import type { StatOperationsDto } from './StatOperationsDto'; export type StatOperationsDtoPlanFactBase = { plan?: StatOperationsDto; fact?: StatOperationsDto; -} \ No newline at end of file +} diff --git a/src/services/api/models/StatSectionDto.ts b/src/services/api/models/StatSectionDto.ts index ec2edfe..934eb6d 100644 --- a/src/services/api/models/StatSectionDto.ts +++ b/src/services/api/models/StatSectionDto.ts @@ -9,4 +9,4 @@ export type StatSectionDto = { fact?: StatOperationsDto; id?: number; caption?: string | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/StatWellDto.ts b/src/services/api/models/StatWellDto.ts index 171afff..0ef8103 100644 --- a/src/services/api/models/StatWellDto.ts +++ b/src/services/api/models/StatWellDto.ts @@ -16,4 +16,4 @@ export type StatWellDto = { sections?: Array | null; total?: StatOperationsDtoPlanFactBase; companies?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryDataSaubDto.ts b/src/services/api/models/TelemetryDataSaubDto.ts index c801502..0f7df6e 100644 --- a/src/services/api/models/TelemetryDataSaubDto.ts +++ b/src/services/api/models/TelemetryDataSaubDto.ts @@ -3,10 +3,9 @@ /* eslint-disable */ export type TelemetryDataSaubDto = { - id?: number; + idTelemetry?: number; date?: string; mode?: number | null; - idTelemetry?: number; user?: string | null; wellDepth?: number | null; bitDepth?: number | null; @@ -42,4 +41,4 @@ export type TelemetryDataSaubDto = { flowDeltaLimitMax?: number | null; idFeedRegulator?: number | null; mseState?: number | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryDataSpinDto.ts b/src/services/api/models/TelemetryDataSpinDto.ts index 8a88f08..facd55a 100644 --- a/src/services/api/models/TelemetryDataSpinDto.ts +++ b/src/services/api/models/TelemetryDataSpinDto.ts @@ -3,7 +3,6 @@ /* eslint-disable */ export type TelemetryDataSpinDto = { - id?: number; idTelemetry?: number; date?: string; topDriveSpeed?: number | null; @@ -69,4 +68,4 @@ export type TelemetryDataSpinDto = { pidMuxTorqueLeftLimit?: number | null; state?: number | null; breakAngleLeft?: number | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryDto.ts b/src/services/api/models/TelemetryDto.ts index a1eb21a..b152295 100644 --- a/src/services/api/models/TelemetryDto.ts +++ b/src/services/api/models/TelemetryDto.ts @@ -8,4 +8,4 @@ export type TelemetryDto = { id?: number; remoteUid?: string | null; info?: TelemetryInfoDto; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryInfoDto.ts b/src/services/api/models/TelemetryInfoDto.ts index 0486f7c..01b57bc 100644 --- a/src/services/api/models/TelemetryInfoDto.ts +++ b/src/services/api/models/TelemetryInfoDto.ts @@ -14,4 +14,4 @@ export type TelemetryInfoDto = { saubPlcVersion?: string | null; spinPlcVersion?: string | null; comment?: string | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryMessageDto.ts b/src/services/api/models/TelemetryMessageDto.ts index ea9f006..492da5c 100644 --- a/src/services/api/models/TelemetryMessageDto.ts +++ b/src/services/api/models/TelemetryMessageDto.ts @@ -12,4 +12,4 @@ export type TelemetryMessageDto = { arg1?: string | null; arg2?: string | null; arg3?: string | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryOperationDto.ts b/src/services/api/models/TelemetryOperationDto.ts index 97cb3b5..4b24faa 100644 --- a/src/services/api/models/TelemetryOperationDto.ts +++ b/src/services/api/models/TelemetryOperationDto.ts @@ -9,4 +9,4 @@ export type TelemetryOperationDto = { endDate?: string; startWellDepth?: number; endWellDepth?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryOperationDtoPaginationContainer.ts b/src/services/api/models/TelemetryOperationDtoPaginationContainer.ts index d09351d..06d02c5 100644 --- a/src/services/api/models/TelemetryOperationDtoPaginationContainer.ts +++ b/src/services/api/models/TelemetryOperationDtoPaginationContainer.ts @@ -9,4 +9,4 @@ export type TelemetryOperationDtoPaginationContainer = { take?: number; count?: number; items?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryOperationDurationDto.ts b/src/services/api/models/TelemetryOperationDurationDto.ts index 361a705..dc090a7 100644 --- a/src/services/api/models/TelemetryOperationDurationDto.ts +++ b/src/services/api/models/TelemetryOperationDurationDto.ts @@ -5,4 +5,4 @@ export type TelemetryOperationDurationDto = { operationName?: string | null; duration?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/TelemetryUserDto.ts b/src/services/api/models/TelemetryUserDto.ts index 4bd727c..b4959fc 100644 --- a/src/services/api/models/TelemetryUserDto.ts +++ b/src/services/api/models/TelemetryUserDto.ts @@ -8,4 +8,4 @@ export type TelemetryUserDto = { surname?: string | null; patronymic?: string | null; level?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/UserDto.ts b/src/services/api/models/UserDto.ts index 8c5ae2f..748389f 100644 --- a/src/services/api/models/UserDto.ts +++ b/src/services/api/models/UserDto.ts @@ -18,4 +18,4 @@ export type UserDto = { idRole?: number | null; password?: string | null; company?: CompanyDto; -} \ No newline at end of file +} diff --git a/src/services/api/models/UserRoleDto.ts b/src/services/api/models/UserRoleDto.ts index ad7f1d2..c0810e1 100644 --- a/src/services/api/models/UserRoleDto.ts +++ b/src/services/api/models/UserRoleDto.ts @@ -8,4 +8,4 @@ export type UserRoleDto = { id?: number; caption?: string | null; users?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/UserTokenDto.ts b/src/services/api/models/UserTokenDto.ts index feff474..c7a5f92 100644 --- a/src/services/api/models/UserTokenDto.ts +++ b/src/services/api/models/UserTokenDto.ts @@ -15,4 +15,4 @@ export type UserTokenDto = { companyName?: string | null; roleName?: string | null; token?: string | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellCompositeDto.ts b/src/services/api/models/WellCompositeDto.ts index aab2a1b..2db927d 100644 --- a/src/services/api/models/WellCompositeDto.ts +++ b/src/services/api/models/WellCompositeDto.ts @@ -6,4 +6,4 @@ export type WellCompositeDto = { idWell?: number; idWellSrc?: number; idWellSectionType?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellDepthToDayDto.ts b/src/services/api/models/WellDepthToDayDto.ts index 51cef5f..6db8d80 100644 --- a/src/services/api/models/WellDepthToDayDto.ts +++ b/src/services/api/models/WellDepthToDayDto.ts @@ -6,4 +6,4 @@ export type WellDepthToDayDto = { wellDepth?: number; bitDepth?: number; date?: string; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellDepthToIntervalDto.ts b/src/services/api/models/WellDepthToIntervalDto.ts index a92c110..72d34a2 100644 --- a/src/services/api/models/WellDepthToIntervalDto.ts +++ b/src/services/api/models/WellDepthToIntervalDto.ts @@ -5,4 +5,4 @@ export type WellDepthToIntervalDto = { intervalStartDate?: string; intervalDepthProgress?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellDto.ts b/src/services/api/models/WellDto.ts index 9cf1c29..ebc03bc 100644 --- a/src/services/api/models/WellDto.ts +++ b/src/services/api/models/WellDto.ts @@ -16,4 +16,4 @@ export type WellDto = { idState?: number; lastTelemetryDate?: string; telemetry?: TelemetryDto; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellOperationCategoryDto.ts b/src/services/api/models/WellOperationCategoryDto.ts index 5581c68..b682abd 100644 --- a/src/services/api/models/WellOperationCategoryDto.ts +++ b/src/services/api/models/WellOperationCategoryDto.ts @@ -6,4 +6,4 @@ export type WellOperationCategoryDto = { id?: number; name?: string | null; code?: number; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellOperationDto.ts b/src/services/api/models/WellOperationDto.ts index c0e6f17..7702acf 100644 --- a/src/services/api/models/WellOperationDto.ts +++ b/src/services/api/models/WellOperationDto.ts @@ -16,4 +16,4 @@ export type WellOperationDto = { dateStart?: string; durationHours?: number; comment?: string | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellOperationDtoPaginationContainer.ts b/src/services/api/models/WellOperationDtoPaginationContainer.ts index 4dbd6b7..eaa7dc5 100644 --- a/src/services/api/models/WellOperationDtoPaginationContainer.ts +++ b/src/services/api/models/WellOperationDtoPaginationContainer.ts @@ -9,4 +9,4 @@ export type WellOperationDtoPaginationContainer = { take?: number; count?: number; items?: Array | null; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellOperationDtoPlanFactPredictBase.ts b/src/services/api/models/WellOperationDtoPlanFactPredictBase.ts index 86b2a67..d753775 100644 --- a/src/services/api/models/WellOperationDtoPlanFactPredictBase.ts +++ b/src/services/api/models/WellOperationDtoPlanFactPredictBase.ts @@ -8,4 +8,4 @@ export type WellOperationDtoPlanFactPredictBase = { plan?: WellOperationDto; fact?: WellOperationDto; predict?: WellOperationDto; -} \ No newline at end of file +} diff --git a/src/services/api/models/WellParamsDto.ts b/src/services/api/models/WellParamsDto.ts index 7c77820..4f01852 100644 --- a/src/services/api/models/WellParamsDto.ts +++ b/src/services/api/models/WellParamsDto.ts @@ -8,4 +8,4 @@ export type WellParamsDto = { longitude?: number | null; idWellType?: number; idState?: number; -} \ No newline at end of file +} diff --git a/src/services/api/services/AdminClusterService.ts b/src/services/api/services/AdminClusterService.ts index e79634a..f76b7bb 100644 --- a/src/services/api/services/AdminClusterService.ts +++ b/src/services/api/services/AdminClusterService.ts @@ -15,9 +15,9 @@ export class AdminClusterService { * @throws ApiError */ public static async getPage( -skip: number, -take: number = 32, -): Promise { + skip: number, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/cluster`, @@ -36,8 +36,8 @@ take: number = 32, * @throws ApiError */ public static async insert( -requestBody?: ClusterDto, -): Promise { + requestBody?: ClusterDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/admin/cluster`, @@ -53,8 +53,8 @@ requestBody?: ClusterDto, * @throws ApiError */ public static async get( -id: number, -): Promise { + id: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/cluster/${id}`, @@ -70,9 +70,9 @@ id: number, * @throws ApiError */ public static async put( -id: number, -requestBody?: ClusterDto, -): Promise { + id: number, + requestBody?: ClusterDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/admin/cluster/${id}`, @@ -88,8 +88,8 @@ requestBody?: ClusterDto, * @throws ApiError */ public static async delete( -id: number, -): Promise { + id: number, + ): 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 6b9cbbb..fd07059 100644 --- a/src/services/api/services/AdminCompanyService.ts +++ b/src/services/api/services/AdminCompanyService.ts @@ -15,9 +15,9 @@ export class AdminCompanyService { * @throws ApiError */ public static async getPage( -skip: number, -take: number = 32, -): Promise { + skip: number, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/company`, @@ -36,8 +36,8 @@ take: number = 32, * @throws ApiError */ public static async insert( -requestBody?: CompanyDto, -): Promise { + requestBody?: CompanyDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/admin/company`, @@ -53,8 +53,8 @@ requestBody?: CompanyDto, * @throws ApiError */ public static async get( -id: number, -): Promise { + id: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/company/${id}`, @@ -70,9 +70,9 @@ id: number, * @throws ApiError */ public static async put( -id: number, -requestBody?: CompanyDto, -): Promise { + id: number, + requestBody?: CompanyDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/admin/company/${id}`, @@ -88,8 +88,8 @@ requestBody?: CompanyDto, * @throws ApiError */ public static async delete( -id: number, -): Promise { + id: number, + ): 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 13a0364..eca13dc 100644 --- a/src/services/api/services/AdminDepositService.ts +++ b/src/services/api/services/AdminDepositService.ts @@ -15,9 +15,9 @@ export class AdminDepositService { * @throws ApiError */ public static async getPage( -skip: number, -take: number = 32, -): Promise { + skip: number, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/deposit`, @@ -36,8 +36,8 @@ take: number = 32, * @throws ApiError */ public static async insert( -requestBody?: DepositDto, -): Promise { + requestBody?: DepositDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/admin/deposit`, @@ -53,8 +53,8 @@ requestBody?: DepositDto, * @throws ApiError */ public static async get( -id: number, -): Promise { + id: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/deposit/${id}`, @@ -70,9 +70,9 @@ id: number, * @throws ApiError */ public static async put( -id: number, -requestBody?: DepositDto, -): Promise { + id: number, + requestBody?: DepositDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/admin/deposit/${id}`, @@ -88,8 +88,8 @@ requestBody?: DepositDto, * @throws ApiError */ public static async delete( -id: number, -): Promise { + id: number, + ): 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 f094362..ce56002 100644 --- a/src/services/api/services/AdminTelemetryService.ts +++ b/src/services/api/services/AdminTelemetryService.ts @@ -26,8 +26,8 @@ export class AdminTelemetryService { * @throws ApiError */ public static async mergeTelemetries( -requestBody?: Array, -): Promise { + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/merge`, @@ -44,9 +44,9 @@ requestBody?: Array, * @throws ApiError */ public static async getPage( -skip: number, -take: number = 32, -): Promise { + skip: number, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/telemetry`, @@ -65,8 +65,8 @@ take: number = 32, * @throws ApiError */ public static async insert( -requestBody?: TelemetryDto, -): Promise { + requestBody?: TelemetryDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/admin/telemetry`, @@ -82,8 +82,8 @@ requestBody?: TelemetryDto, * @throws ApiError */ public static async get( -id: number, -): Promise { + id: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/telemetry/${id}`, @@ -99,9 +99,9 @@ id: number, * @throws ApiError */ public static async put( -id: number, -requestBody?: TelemetryDto, -): Promise { + id: number, + requestBody?: TelemetryDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/admin/telemetry/${id}`, @@ -117,8 +117,8 @@ requestBody?: TelemetryDto, * @throws ApiError */ public static async delete( -id: number, -): Promise { + id: number, + ): 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 5dd8522..0abe50b 100644 --- a/src/services/api/services/AdminUserRoleService.ts +++ b/src/services/api/services/AdminUserRoleService.ts @@ -15,9 +15,9 @@ export class AdminUserRoleService { * @throws ApiError */ public static async getPage( -skip: number, -take: number = 32, -): Promise { + skip: number, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/user/role`, @@ -36,8 +36,8 @@ take: number = 32, * @throws ApiError */ public static async insert( -requestBody?: UserRoleDto, -): Promise { + requestBody?: UserRoleDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/admin/user/role`, @@ -53,8 +53,8 @@ requestBody?: UserRoleDto, * @throws ApiError */ public static async get( -id: number, -): Promise { + id: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/user/role/${id}`, @@ -70,9 +70,9 @@ id: number, * @throws ApiError */ public static async put( -id: number, -requestBody?: UserRoleDto, -): Promise { + id: number, + requestBody?: UserRoleDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/admin/user/role/${id}`, @@ -88,8 +88,8 @@ requestBody?: UserRoleDto, * @throws ApiError */ public static async delete( -id: number, -): Promise { + id: number, + ): 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 ec213c0..7f4e2bb 100644 --- a/src/services/api/services/AdminUserService.ts +++ b/src/services/api/services/AdminUserService.ts @@ -15,9 +15,9 @@ export class AdminUserService { * @throws ApiError */ public static async getPage( -skip: number, -take: number = 32, -): Promise { + skip: number, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/user`, @@ -36,8 +36,8 @@ take: number = 32, * @throws ApiError */ public static async insert( -requestBody?: UserDto, -): Promise { + requestBody?: UserDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/admin/user`, @@ -53,8 +53,8 @@ requestBody?: UserDto, * @throws ApiError */ public static async get( -id: number, -): Promise { + id: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/user/${id}`, @@ -70,9 +70,9 @@ id: number, * @throws ApiError */ public static async put( -id: number, -requestBody?: UserDto, -): Promise { + id: number, + requestBody?: UserDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/admin/user/${id}`, @@ -88,8 +88,8 @@ requestBody?: UserDto, * @throws ApiError */ public static async delete( -id: number, -): Promise { + id: number, + ): 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 361cbaf..6c4a54d 100644 --- a/src/services/api/services/AdminWellService.ts +++ b/src/services/api/services/AdminWellService.ts @@ -15,9 +15,9 @@ export class AdminWellService { * @throws ApiError */ public static async getPage( -skip: number, -take: number = 32, -): Promise { + skip: number, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/well`, @@ -36,8 +36,8 @@ take: number = 32, * @throws ApiError */ public static async insert( -requestBody?: WellDto, -): Promise { + requestBody?: WellDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/admin/well`, @@ -53,8 +53,8 @@ requestBody?: WellDto, * @throws ApiError */ public static async get( -id: number, -): Promise { + id: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/admin/well/${id}`, @@ -70,9 +70,9 @@ id: number, * @throws ApiError */ public static async put( -id: number, -requestBody?: WellDto, -): Promise { + id: number, + requestBody?: WellDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/admin/well/${id}`, @@ -88,8 +88,8 @@ requestBody?: WellDto, * @throws ApiError */ public static async delete( -id: number, -): Promise { + id: number, + ): 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 b42a63b..8a58e6a 100644 --- a/src/services/api/services/AuthService.ts +++ b/src/services/api/services/AuthService.ts @@ -10,13 +10,13 @@ export class AuthService { /** * Аутентификация пользователя - * @param requestBody + * @param requestBody * @returns UserTokenDto новый токен * @throws ApiError */ public static async login( -requestBody?: AuthDto, -): Promise { + requestBody?: AuthDto, + ): Promise { const result = await __request({ method: 'POST', path: `/auth/login`, @@ -48,8 +48,8 @@ requestBody?: AuthDto, * @throws ApiError */ public static async register( -requestBody?: UserDto, -): Promise { + requestBody?: UserDto, + ): Promise { const result = await __request({ method: 'POST', path: `/auth`, @@ -60,15 +60,15 @@ requestBody?: UserDto, /** * Смена пароля пользователя. Доступна пользователю и администратору - * @param idUser - * @param requestBody + * @param idUser + * @param requestBody * @returns any Success * @throws ApiError */ public static async changePassword( -idUser: number, -requestBody?: string, -): Promise { + idUser: number, + requestBody?: string, + ): Promise { const result = await __request({ method: 'PUT', path: `/auth/${idUser}/ChangePassword`, diff --git a/src/services/api/services/ClusterService.ts b/src/services/api/services/ClusterService.ts index 5c6dada..6a2ea4b 100644 --- a/src/services/api/services/ClusterService.ts +++ b/src/services/api/services/ClusterService.ts @@ -22,13 +22,13 @@ export class ClusterService { /** * Получение доступных пользователю скважин - * @param idCluster + * @param idCluster * @returns WellDto Success * @throws ApiError */ public static async getWells( -idCluster: number, -): Promise> { + idCluster: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/cluster/${idCluster}`, diff --git a/src/services/api/services/DepositService.ts b/src/services/api/services/DepositService.ts index 906f947..2bfdce1 100644 --- a/src/services/api/services/DepositService.ts +++ b/src/services/api/services/DepositService.ts @@ -35,13 +35,13 @@ export class DepositService { /** * Получает список доступных пользователю кустов месторождения - * @param depositId + * @param depositId * @returns ClusterDto Success * @throws ApiError */ public static async getClusters( -depositId: number, -): Promise> { + depositId: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/deposit/${depositId}`, diff --git a/src/services/api/services/DrillFlowChartService.ts b/src/services/api/services/DrillFlowChartService.ts index eb37d76..13da462 100644 --- a/src/services/api/services/DrillFlowChartService.ts +++ b/src/services/api/services/DrillFlowChartService.ts @@ -14,9 +14,9 @@ export class DrillFlowChartService { * @throws ApiError */ public static async get( -idWell: number, -updateFrom?: string, -): Promise> { + idWell: number, + updateFrom?: string, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/drillFlowChart`, @@ -35,9 +35,9 @@ updateFrom?: string, * @throws ApiError */ public static async insert( -idWell: number, -requestBody?: DrillFlowChartDto, -): Promise { + idWell: number, + requestBody?: DrillFlowChartDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/drillFlowChart`, @@ -54,9 +54,9 @@ requestBody?: DrillFlowChartDto, * @throws ApiError */ public static async edit( -idWell: number, -requestBody?: DrillFlowChartDto, -): Promise { + idWell: number, + requestBody?: DrillFlowChartDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/well/${idWell}/drillFlowChart`, @@ -73,9 +73,9 @@ requestBody?: DrillFlowChartDto, * @throws ApiError */ public static async delete( -idWell: number, -drillFlowChartParamsId?: number, -): Promise { + idWell: number, + drillFlowChartParamsId?: number, + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/well/${idWell}/drillFlowChart`, @@ -94,9 +94,9 @@ drillFlowChartParamsId?: number, * @throws ApiError */ public static async getByTelemetry( -uid: string, -updateFrom?: string, -): Promise> { + uid: string, + updateFrom?: string, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/telemetry/${uid}/drillFlowChart`, @@ -115,9 +115,9 @@ updateFrom?: string, * @throws ApiError */ public static async insertRange( -idWell: number, -requestBody?: Array, -): Promise { + idWell: number, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/drillFlowChart/range`, diff --git a/src/services/api/services/DrillParamsService.ts b/src/services/api/services/DrillParamsService.ts index e789268..483dfd3 100644 --- a/src/services/api/services/DrillParamsService.ts +++ b/src/services/api/services/DrillParamsService.ts @@ -15,10 +15,10 @@ export class DrillParamsService { * @throws ApiError */ public static async getDefault( -idWell: number, -startDepth?: number, -endDepth?: number, -): Promise { + idWell: number, + startDepth?: number, + endDepth?: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/drillParams/autoParams`, @@ -37,8 +37,8 @@ endDepth?: number, * @throws ApiError */ public static async getAll( -idWell: number, -): Promise> { + idWell: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/drillParams`, @@ -54,9 +54,9 @@ idWell: number, * @throws ApiError */ public static async insert( -idWell: number, -requestBody?: DrillParamsDto, -): Promise { + idWell: number, + requestBody?: DrillParamsDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/drillParams`, @@ -74,10 +74,10 @@ requestBody?: DrillParamsDto, * @throws ApiError */ public static async update( -idWell: number, -dtoId?: number, -requestBody?: DrillParamsDto, -): Promise { + idWell: number, + dtoId?: number, + requestBody?: DrillParamsDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/well/${idWell}/drillParams`, @@ -97,9 +97,9 @@ requestBody?: DrillParamsDto, * @throws ApiError */ public static async delete( -idWell: number, -drillParamsId?: number, -): Promise { + idWell: number, + drillParamsId?: number, + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/well/${idWell}/drillParams`, @@ -118,9 +118,9 @@ drillParamsId?: number, * @throws ApiError */ public static async insertRange( -idWell: number, -requestBody?: Array, -): Promise { + idWell: number, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/drillParams/range`, @@ -137,9 +137,9 @@ requestBody?: Array, * @throws ApiError */ public static async save( -idWell: number, -requestBody?: Array, -): Promise { + idWell: number, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/drillParams/save`, @@ -155,8 +155,8 @@ requestBody?: Array, * @throws ApiError */ public static async getCompositeAll( -idWell: number, -): Promise> { + idWell: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/drillParams/composite`, diff --git a/src/services/api/services/DrillingProgramService.ts b/src/services/api/services/DrillingProgramService.ts index d42abb3..ae7110b 100644 --- a/src/services/api/services/DrillingProgramService.ts +++ b/src/services/api/services/DrillingProgramService.ts @@ -13,8 +13,8 @@ export class DrillingProgramService { * @throws ApiError */ public static async get( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/drillingProgram`, @@ -29,8 +29,8 @@ idWell: number, * @throws ApiError */ public static async getOrCreateSharedUrl( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/drillingProgram/webUrl`, @@ -46,9 +46,9 @@ idWell: number, * @throws ApiError */ public static async createFileMark( -idWell: number, -requestBody?: FileMarkDto, -): Promise { + idWell: number, + requestBody?: FileMarkDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/drillingProgram/fileMark`, @@ -65,9 +65,9 @@ requestBody?: FileMarkDto, * @throws ApiError */ public static async deleteFileMark( -idWell: number, -idMark?: number, -): Promise { + idWell: number, + idMark?: number, + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/well/${idWell}/drillingProgram/fileMark`, diff --git a/src/services/api/services/FileService.ts b/src/services/api/services/FileService.ts index 95fb68b..ddd7981 100644 --- a/src/services/api/services/FileService.ts +++ b/src/services/api/services/FileService.ts @@ -11,15 +11,15 @@ export class FileService { * Сохраняет переданные файлы и информацию о них * @param idWell id скважины * @param idCategory id категории файла - * @param requestBody + * @param requestBody * @returns number Success * @throws ApiError */ public static async saveFiles( -idWell: number, -idCategory?: number, -requestBody?: any, -): Promise { + idWell: number, + idCategory?: number, + requestBody?: any, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/files`, @@ -45,15 +45,15 @@ requestBody?: any, * @throws ApiError */ public static async getFilesInfo( -idWell: number, -idCategory: number, -companyName?: string, -fileName?: string, -begin?: string, -end?: string, -skip: number = 0, -take: number = 32, -): Promise { + idWell: number, + idCategory: number, + companyName?: string, + fileName?: string, + begin?: string, + end?: string, + skip: number = 0, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/files`, @@ -78,9 +78,9 @@ take: number = 32, * @throws ApiError */ public static async getFile( -idWell: number, -fileId: number, -): Promise { + idWell: number, + fileId: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/files/${fileId}`, @@ -96,9 +96,9 @@ fileId: number, * @throws ApiError */ public static async delete( -idWell: number, -idFile: number, -): Promise { + idWell: number, + idFile: number, + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/well/${idWell}/files/${idFile}`, @@ -114,9 +114,9 @@ idFile: number, * @throws ApiError */ public static async createFileMark( -idWell: number, -requestBody?: FileMarkDto, -): Promise { + idWell: number, + requestBody?: FileMarkDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/files/fileMark`, @@ -133,9 +133,9 @@ requestBody?: FileMarkDto, * @throws ApiError */ public static async deleteFileMark( -idWell: number, -idMark?: number, -): Promise { + idWell: number, + idMark?: number, + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/well/${idWell}/files/fileMark`, diff --git a/src/services/api/services/MeasureService.ts b/src/services/api/services/MeasureService.ts index b1d012f..6f59d4a 100644 --- a/src/services/api/services/MeasureService.ts +++ b/src/services/api/services/MeasureService.ts @@ -7,13 +7,13 @@ import { request as __request } from '../core/request'; export class MeasureService { /** - * @param idWell + * @param idWell * @returns any Success * @throws ApiError */ public static async getCategories( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/measure/categories`, @@ -22,15 +22,15 @@ idWell: number, } /** - * @param idWell - * @param idCategory + * @param idWell + * @param idCategory * @returns any Success * @throws ApiError */ public static async getLast( -idWell: number, -idCategory: number, -): Promise { + idWell: number, + idCategory: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/measure/last/${idCategory}`, @@ -39,15 +39,15 @@ idCategory: number, } /** - * @param idWell - * @param idCategory + * @param idWell + * @param idCategory * @returns any Success * @throws ApiError */ public static async getHisory( -idWell: number, -idCategory: number, -): Promise { + idWell: number, + idCategory: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/measure/history`, @@ -56,15 +56,15 @@ idCategory: number, } /** - * @param idWell - * @param requestBody + * @param idWell + * @param requestBody * @returns any Success * @throws ApiError */ public static async insert( -idWell: number, -requestBody?: MeasureDto, -): Promise { + idWell: number, + requestBody?: MeasureDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/measure`, @@ -74,15 +74,15 @@ requestBody?: MeasureDto, } /** - * @param idWell - * @param requestBody + * @param idWell + * @param requestBody * @returns any Success * @throws ApiError */ public static async update( -idWell: number, -requestBody?: MeasureDto, -): Promise { + idWell: number, + requestBody?: MeasureDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/well/${idWell}/measure`, @@ -92,15 +92,15 @@ requestBody?: MeasureDto, } /** - * @param idWell - * @param idData + * @param idWell + * @param idData * @returns any Success * @throws ApiError */ public static async markAsDelete( -idWell: number, -idData: number, -): Promise { + idWell: number, + idData: number, + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/well/${idWell}/measure/history/${idData}`, diff --git a/src/services/api/services/MessageService.ts b/src/services/api/services/MessageService.ts index 8adaa2f..09b71d5 100644 --- a/src/services/api/services/MessageService.ts +++ b/src/services/api/services/MessageService.ts @@ -20,14 +20,14 @@ export class MessageService { * @throws ApiError */ public static async getMessages( -idWell: number, -skip: number, -take: number = 32, -categoryids?: Array, -begin?: string, -end?: string, -searchString?: string, -): Promise { + idWell: number, + skip: number, + take: number = 32, + categoryids?: Array, + begin?: string, + end?: string, + searchString?: string, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/message`, @@ -50,8 +50,8 @@ searchString?: string, * @throws ApiError */ public static async getMessagesDateRange( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/message/datesRange`, diff --git a/src/services/api/services/ReportService.ts b/src/services/api/services/ReportService.ts index e540c4c..cc99805 100644 --- a/src/services/api/services/ReportService.ts +++ b/src/services/api/services/ReportService.ts @@ -17,12 +17,12 @@ export class ReportService { * @throws ApiError */ public static async createReport( -idWell: number, -stepSeconds?: number, -format?: number, -begin?: string, -end?: string, -): Promise { + idWell: number, + stepSeconds?: number, + format?: number, + begin?: string, + end?: string, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/report`, @@ -43,8 +43,8 @@ end?: string, * @throws ApiError */ public static async getAllReportsNamesByWell( -idWell: number, -): Promise> { + idWell: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/report`, @@ -55,7 +55,7 @@ idWell: number, /** * @deprecated * Возвращает имена отчетов, хранящихся на диске, - * которые подходят под указанные параметры + * которые подходят под указанные параметры * @param idWell id скважины * @param stepSeconds шаг интервала * @param format формат отчета (0-PDF, 1-LAS) @@ -65,12 +65,12 @@ idWell: number, * @throws ApiError */ public static async getSuitableReportsNames( -idWell: number, -stepSeconds?: number, -format?: number, -begin?: string, -end?: string, -): Promise> { + idWell: number, + stepSeconds?: number, + format?: number, + begin?: string, + end?: string, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/report/suitableReports`, @@ -95,12 +95,12 @@ end?: string, * @throws ApiError */ public static async getReportSize( -idWell: number, -stepSeconds?: number, -format?: number, -begin?: string, -end?: string, -): Promise { + idWell: number, + stepSeconds?: number, + format?: number, + begin?: string, + end?: string, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/report/reportSize`, @@ -121,8 +121,8 @@ end?: string, * @throws ApiError */ public static async getReportsDateRange( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/report/datesRange`, diff --git a/src/services/api/services/RequerstTrackerService.ts b/src/services/api/services/RequerstTrackerService.ts new file mode 100644 index 0000000..6ddead7 --- /dev/null +++ b/src/services/api/services/RequerstTrackerService.ts @@ -0,0 +1,98 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import { request as __request } from '../core/request'; + +export class RequerstTrackerService { + + /** + * @param take + * @returns any Success + * @throws ApiError + */ + public static async getAll( + take: number = 512, + ): Promise { + const result = await __request({ + method: 'GET', + path: `/api/RequerstTracker`, + query: { + 'take': take, + }, + }); + return result.body; + } + + /** + * @param take + * @returns any Success + * @throws ApiError + */ + public static async getFast( + take: number = 512, + ): Promise { + const result = await __request({ + method: 'GET', + path: `/api/RequerstTracker/fast`, + query: { + 'take': take, + }, + }); + return result.body; + } + + /** + * @param take + * @returns any Success + * @throws ApiError + */ + public static async getSlow( + take: number = 512, + ): Promise { + const result = await __request({ + method: 'GET', + path: `/api/RequerstTracker/slow`, + query: { + 'take': take, + }, + }); + return result.body; + } + + /** + * @param take + * @returns any Success + * @throws ApiError + */ + public static async getError( + take: number = 512, + ): Promise { + const result = await __request({ + method: 'GET', + path: `/api/RequerstTracker/error`, + query: { + 'take': take, + }, + }); + return result.body; + } + + /** + * @param take + * @returns any Success + * @throws ApiError + */ + public static async getUsersStat( + take: number = 512, + ): Promise { + const result = await __request({ + method: 'GET', + path: `/api/RequerstTracker/users`, + query: { + 'take': take, + }, + }); + return result.body; + } + +} \ No newline at end of file diff --git a/src/services/api/services/TelemetryAnalyticsService.ts b/src/services/api/services/TelemetryAnalyticsService.ts index b4f828c..d1d2d9f 100644 --- a/src/services/api/services/TelemetryAnalyticsService.ts +++ b/src/services/api/services/TelemetryAnalyticsService.ts @@ -22,13 +22,13 @@ export class TelemetryAnalyticsService { * @throws ApiError */ public static async getOperationsByWell( -idWell: number, -skip: number, -take: number = 32, -categoryIds?: Array, -begin?: string, -end?: string, -): Promise { + idWell: number, + skip: number, + take: number = 32, + categoryIds?: Array, + begin?: string, + end?: string, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/telemetryAnalytics/operationsByWell`, @@ -50,8 +50,8 @@ end?: string, * @throws ApiError */ public static async getWellDepthToDay( -idWell: number, -): Promise> { + idWell: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/telemetryAnalytics/wellDepthToDay`, @@ -68,10 +68,10 @@ idWell: number, * @throws ApiError */ public static async getWellDepthToInterval( -idWell: number, -intervalSeconds?: number, -workBeginSeconds?: number, -): Promise> { + idWell: number, + intervalSeconds?: number, + workBeginSeconds?: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/telemetryAnalytics/wellDepthToInterval`, @@ -92,10 +92,10 @@ workBeginSeconds?: number, * @throws ApiError */ public static async getOperationsSummary( -idWell: number, -begin?: string, -end?: string, -): Promise> { + idWell: number, + begin?: string, + end?: string, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/telemetryAnalytics/operationsSummary`, @@ -116,10 +116,10 @@ end?: string, * @throws ApiError */ public static async getOperationsToInterval( -idWell: number, -intervalSeconds?: number, -workBeginSeconds?: number, -): Promise> { + idWell: number, + intervalSeconds?: number, + workBeginSeconds?: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/telemetryAnalytics/operationsToInterval`, @@ -138,8 +138,8 @@ workBeginSeconds?: number, * @throws ApiError */ public static async getOperationsDateRange( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/telemetryAnalytics/datesRange`, diff --git a/src/services/api/services/TelemetryDataSaubService.ts b/src/services/api/services/TelemetryDataSaubService.ts index 2aea521..0503708 100644 --- a/src/services/api/services/TelemetryDataSaubService.ts +++ b/src/services/api/services/TelemetryDataSaubService.ts @@ -15,9 +15,9 @@ export class TelemetryDataSaubService { * @throws ApiError */ public static async postData( -uid: string, -requestBody?: Array, -): Promise { + uid: string, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/TelemetryDataSaub/${uid}`, @@ -28,7 +28,7 @@ requestBody?: Array, /** * Возвращает данные САУБ по скважине. - * По умолчанию за последние 10 минут. + * По умолчанию за последние 10 минут. * @param idWell id скважины * @param begin дата начала выборки. По умолчанию: текущее время - intervalSec * @param intervalSec интервал времени даты начала выборки, секунды @@ -37,11 +37,11 @@ requestBody?: Array, * @throws ApiError */ public static async getData( -idWell: number, -begin?: string, -intervalSec: number = 600, -approxPointsCount: number = 1024, -): Promise { + idWell: number, + begin?: string, + intervalSec: number = 600, + approxPointsCount: number = 1024, + ): Promise { const result = await __request({ method: 'GET', path: `/api/TelemetryDataSaub/${idWell}`, @@ -61,8 +61,8 @@ approxPointsCount: number = 1024, * @throws ApiError */ public static async getDataDatesRange( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/TelemetryDataSaub/${idWell}/datesRange`, diff --git a/src/services/api/services/TelemetryDataSpinService.ts b/src/services/api/services/TelemetryDataSpinService.ts index f3fd261..b01606d 100644 --- a/src/services/api/services/TelemetryDataSpinService.ts +++ b/src/services/api/services/TelemetryDataSpinService.ts @@ -15,9 +15,9 @@ export class TelemetryDataSpinService { * @throws ApiError */ public static async postData( -uid: string, -requestBody?: Array, -): Promise { + uid: string, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/TelemetryDataSpin/${uid}`, @@ -28,7 +28,7 @@ requestBody?: Array, /** * Возвращает данные САУБ по скважине. - * По умолчанию за последние 10 минут. + * По умолчанию за последние 10 минут. * @param idWell id скважины * @param begin дата начала выборки. По умолчанию: текущее время - intervalSec * @param intervalSec интервал времени даты начала выборки, секунды @@ -37,11 +37,11 @@ requestBody?: Array, * @throws ApiError */ public static async getData( -idWell: number, -begin?: string, -intervalSec: number = 600, -approxPointsCount: number = 1024, -): Promise { + idWell: number, + begin?: string, + intervalSec: number = 600, + approxPointsCount: number = 1024, + ): Promise { const result = await __request({ method: 'GET', path: `/api/TelemetryDataSpin/${idWell}`, @@ -61,8 +61,8 @@ approxPointsCount: number = 1024, * @throws ApiError */ public static async getDataDatesRange( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/TelemetryDataSpin/${idWell}/datesRange`, diff --git a/src/services/api/services/TelemetryService.ts b/src/services/api/services/TelemetryService.ts index 24e426c..c00b1c8 100644 --- a/src/services/api/services/TelemetryService.ts +++ b/src/services/api/services/TelemetryService.ts @@ -17,9 +17,9 @@ export class TelemetryService { * @throws ApiError */ public static async postInfo( -uid: string, -requestBody?: TelemetryInfoDto, -): Promise { + uid: string, + requestBody?: TelemetryInfoDto, + ): Promise { const result = await __request({ method: 'POST', path: `/api/telemetry/${uid}/info`, @@ -36,9 +36,9 @@ requestBody?: TelemetryInfoDto, * @throws ApiError */ public static async postMessages( -uid: string, -requestBody?: Array, -): Promise { + uid: string, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/telemetry/${uid}/message`, @@ -55,9 +55,9 @@ requestBody?: Array, * @throws ApiError */ public static async postEvents( -uid: string, -requestBody?: Array, -): Promise { + uid: string, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/telemetry/${uid}/event`, @@ -74,9 +74,9 @@ requestBody?: Array, * @throws ApiError */ public static async postUsers( -uid: string, -requestBody?: Array, -): Promise { + uid: string, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/telemetry/${uid}/user`, diff --git a/src/services/api/services/WellCompositeService.ts b/src/services/api/services/WellCompositeService.ts index cd54063..05eb0ae 100644 --- a/src/services/api/services/WellCompositeService.ts +++ b/src/services/api/services/WellCompositeService.ts @@ -13,8 +13,8 @@ export class WellCompositeService { * @throws ApiError */ public static async get( -idWell: number, -): Promise> { + idWell: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/composite`, @@ -30,9 +30,9 @@ idWell: number, * @throws ApiError */ public static async save( -idWell: number, -requestBody?: Array, -): Promise { + idWell: number, + requestBody?: Array, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/composite`, diff --git a/src/services/api/services/WellOperationService.ts b/src/services/api/services/WellOperationService.ts index 036cc7a..d30efa7 100644 --- a/src/services/api/services/WellOperationService.ts +++ b/src/services/api/services/WellOperationService.ts @@ -10,13 +10,13 @@ export class WellOperationService { /** * Возвращает список имен типов операций на скважине - * @param idWell + * @param idWell * @returns WellOperationCategoryDto Success * @throws ApiError */ public static async getCategories( -idWell: string, -): Promise> { + idWell: string, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/wellOperations/categories`, @@ -34,23 +34,23 @@ idWell: string, * @param end фильтр по окончанию операции * @param minDepth фильтр по минимальной глубине скважины * @param maxDepth фильтр по максимальной глубине скважины - * @param skip - * @param take + * @param skip + * @param take * @returns WellOperationDtoPaginationContainer Success * @throws ApiError */ public static async getOperations( -idWell: number, -opertaionType?: number, -sectionTypeIds?: Array, -operationCategoryIds?: Array, -begin?: string, -end?: string, -minDepth: number = -1.7976931348623157e+308, -maxDepth: number = 1.7976931348623157e+308, -skip: number = 0, -take: number = 32, -): Promise { + idWell: number, + opertaionType?: number, + sectionTypeIds?: Array, + operationCategoryIds?: Array, + begin?: string, + end?: string, + minDepth: number = -1.7976931348623157e+308, + maxDepth: number = 1.7976931348623157e+308, + skip: number = 0, + take: number = 32, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/wellOperations`, @@ -77,9 +77,9 @@ take: number = 32, * @throws ApiError */ public static async insertRange( -idWell: number, -requestBody?: Array, -): Promise> { + idWell: number, + requestBody?: Array, + ): Promise> { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/wellOperations`, @@ -96,9 +96,9 @@ requestBody?: Array, * @throws ApiError */ public static async get( -idWell: number, -idOperation: number, -): Promise { + idWell: number, + idOperation: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/wellOperations/${idOperation}`, @@ -115,10 +115,10 @@ idOperation: number, * @throws ApiError */ public static async update( -idWell: number, -idOperation: number, -requestBody?: WellOperationDto, -): Promise { + idWell: number, + idOperation: number, + requestBody?: WellOperationDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/well/${idWell}/wellOperations/${idOperation}`, @@ -135,9 +135,9 @@ requestBody?: WellOperationDto, * @throws ApiError */ public static async delete( -idWell: number, -idOperation: number, -): Promise { + idWell: number, + idOperation: number, + ): Promise { const result = await __request({ method: 'DELETE', path: `/api/well/${idWell}/wellOperations/${idOperation}`, @@ -149,15 +149,15 @@ idOperation: number, * Импортирует операции из excel (xlsx) файла * @param idWell id скважины * @param options Удалить операции перед импортом = 1, если фал валидный - * @param requestBody + * @param requestBody * @returns any Success * @throws ApiError */ public static async import( -idWell: number, -options: number, -requestBody?: any, -): Promise { + idWell: number, + options: number, + requestBody?: any, + ): Promise { const result = await __request({ method: 'POST', path: `/api/well/${idWell}/wellOperations/import/${options}`, @@ -173,8 +173,8 @@ requestBody?: any, * @throws ApiError */ public static async export( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/wellOperations/export`, @@ -184,13 +184,13 @@ idWell: number, /** * Возвращает шаблон файла импорта - * @param idWell + * @param idWell * @returns string Success * @throws ApiError */ public static async getTamplate( -idWell: string, -): Promise { + idWell: string, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/wellOperations/tamplate`, diff --git a/src/services/api/services/WellOperationStatService.ts b/src/services/api/services/WellOperationStatService.ts index c419643..6019a8d 100644 --- a/src/services/api/services/WellOperationStatService.ts +++ b/src/services/api/services/WellOperationStatService.ts @@ -15,8 +15,8 @@ export class WellOperationStatService { * @throws ApiError */ public static async getStatCluster( -idCluster: number, -): Promise { + idCluster: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/cluster/${idCluster}/stat`, @@ -31,8 +31,8 @@ idCluster: number, * @throws ApiError */ public static async getWellsStat( -idWells?: Array, -): Promise> { + idWells?: Array, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/wellsStats`, @@ -50,8 +50,8 @@ idWells?: Array, * @throws ApiError */ public static async getStatWell( -idWell: number, -): Promise { + idWell: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/stat`, @@ -61,13 +61,13 @@ idWell: number, /** * Получает данные для графика глубина-днь - * @param idWell + * @param idWell * @returns WellOperationDtoPlanFactPredictBase Success * @throws ApiError */ public static async getTvd( -idWell: number, -): Promise> { + idWell: number, + ): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/tvd`, diff --git a/src/services/api/services/WellService.ts b/src/services/api/services/WellService.ts index c46ed7c..d71b14c 100644 --- a/src/services/api/services/WellService.ts +++ b/src/services/api/services/WellService.ts @@ -24,15 +24,15 @@ export class WellService { * Редактирует указанные поля скважины * @param idWell Id скважины * @param requestBody Объект параметров скважины. - * IdWellType: 1 - Наклонно-направленная, 2 - Горизонтальная. - * State: 0 - Неизвестно, 1 - В работе, 2 - Завершена. + * IdWellType: 1 - Наклонно-направленная, 2 - Горизонтальная. + * State: 0 - Неизвестно, 1 - В работе, 2 - Завершена. * @returns number Success * @throws ApiError */ public static async updateWell( -idWell?: number, -requestBody?: WellParamsDto, -): Promise { + idWell?: number, + requestBody?: WellParamsDto, + ): Promise { const result = await __request({ method: 'PUT', path: `/api/well`, @@ -51,8 +51,8 @@ requestBody?: WellParamsDto, * @throws ApiError */ public static async get( -idWell?: number, -): Promise { + idWell?: number, + ): Promise { const result = await __request({ method: 'GET', path: `/api/well/getWell`,