diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 36b4c1c..63ab684 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -6,14 +6,19 @@ export { OpenAPI } from './core/OpenAPI'; export type { AuthDto } from './models/AuthDto'; export type { ClusterDto } from './models/ClusterDto'; +export type { ClusterDtoPaginationContainer } from './models/ClusterDtoPaginationContainer'; export type { CompanyDto } from './models/CompanyDto'; +export type { CompanyDtoPaginationContainer } from './models/CompanyDtoPaginationContainer'; export type { DatesRangeDto } from './models/DatesRangeDto'; export type { DepositDto } from './models/DepositDto'; +export type { DepositDtoPaginationContainer } from './models/DepositDtoPaginationContainer'; export type { DrillFlowChartDto } from './models/DrillFlowChartDto'; export type { DrillParamsDto } from './models/DrillParamsDto'; export type { EventDto } from './models/EventDto'; export type { FileInfoDto } from './models/FileInfoDto'; export type { FileInfoDtoPaginationContainer } from './models/FileInfoDtoPaginationContainer'; +export type { FileMarkDto } from './models/FileMarkDto'; +export type { FilePublishInfoDto } from './models/FilePublishInfoDto'; export type { MeasureDto } from './models/MeasureDto'; export type { MessageDto } from './models/MessageDto'; export type { MessageDtoPaginationContainer } from './models/MessageDtoPaginationContainer'; @@ -25,6 +30,7 @@ export type { StatWellDto } from './models/StatWellDto'; export type { TelemetryDataSaubDto } from './models/TelemetryDataSaubDto'; export type { TelemetryDataSpinDto } from './models/TelemetryDataSpinDto'; export type { TelemetryDto } from './models/TelemetryDto'; +export type { TelemetryDtoPaginationContainer } from './models/TelemetryDtoPaginationContainer'; export type { TelemetryInfoDto } from './models/TelemetryInfoDto'; export type { TelemetryMessageDto } from './models/TelemetryMessageDto'; export type { TelemetryOperationDto } from './models/TelemetryOperationDto'; @@ -32,12 +38,15 @@ export type { TelemetryOperationDtoPaginationContainer } from './models/Telemetr export type { TelemetryOperationDurationDto } from './models/TelemetryOperationDurationDto'; export type { TelemetryUserDto } from './models/TelemetryUserDto'; export type { UserDto } from './models/UserDto'; +export type { UserDtoPaginationContainer } from './models/UserDtoPaginationContainer'; export type { UserRoleDto } from './models/UserRoleDto'; +export type { UserRoleDtoPaginationContainer } from './models/UserRoleDtoPaginationContainer'; export type { UserTokenDto } from './models/UserTokenDto'; export type { WellCompositeDto } from './models/WellCompositeDto'; export type { WellDepthToDayDto } from './models/WellDepthToDayDto'; export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto'; export type { WellDto } from './models/WellDto'; +export type { WellDtoPaginationContainer } from './models/WellDtoPaginationContainer'; export type { WellOperationCategoryDto } from './models/WellOperationCategoryDto'; export type { WellOperationDto } from './models/WellOperationDto'; export type { WellOperationDtoPaginationContainer } from './models/WellOperationDtoPaginationContainer'; diff --git a/src/services/api/models/AuthDto.ts b/src/services/api/models/AuthDto.ts index bd6f347..a8317bf 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 226f3a0..ec20834 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/ClusterDtoPaginationContainer.ts b/src/services/api/models/ClusterDtoPaginationContainer.ts new file mode 100644 index 0000000..ae329ff --- /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; +} \ No newline at end of file diff --git a/src/services/api/models/CompanyDto.ts b/src/services/api/models/CompanyDto.ts index 85fb2ad..e532790 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/CompanyDtoPaginationContainer.ts b/src/services/api/models/CompanyDtoPaginationContainer.ts new file mode 100644 index 0000000..006ad77 --- /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; +} \ No newline at end of file diff --git a/src/services/api/models/DatesRangeDto.ts b/src/services/api/models/DatesRangeDto.ts index acbe4e8..1a9132f 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 c57ae4a..c142448 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/DepositDtoPaginationContainer.ts b/src/services/api/models/DepositDtoPaginationContainer.ts new file mode 100644 index 0000000..861b9bd --- /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; +} \ No newline at end of file diff --git a/src/services/api/models/DrillFlowChartDto.ts b/src/services/api/models/DrillFlowChartDto.ts index ec4a959..7da53b9 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 406c87a..560b831 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 e7e334b..e4d90a1 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 d727028..c960d37 100644 --- a/src/services/api/models/FileInfoDto.ts +++ b/src/services/api/models/FileInfoDto.ts @@ -2,6 +2,8 @@ /* tslint:disable */ /* eslint-disable */ +import type { FileMarkDto } from './FileMarkDto'; +import type { FilePublishInfoDto } from './FilePublishInfoDto'; import type { UserDto } from './UserDto'; export type FileInfoDto = { @@ -12,5 +14,7 @@ export type FileInfoDto = { name?: string | null; uploadDate?: string; size?: number; + publishInfo?: FilePublishInfoDto; author?: UserDto; -} + fileMarks?: Array | null; +} \ No newline at end of file diff --git a/src/services/api/models/FileInfoDtoPaginationContainer.ts b/src/services/api/models/FileInfoDtoPaginationContainer.ts index 7bf4f27..6a8d883 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 new file mode 100644 index 0000000..4acce19 --- /dev/null +++ b/src/services/api/models/FileMarkDto.ts @@ -0,0 +1,15 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { UserDto } from './UserDto'; + +export type FileMarkDto = { + id?: number; + idFile?: number; + idMarkType?: number; + dateCreated?: string; + comment?: string | null; + isDeleted?: boolean; + user?: UserDto; +} \ No newline at end of file diff --git a/src/services/api/models/FilePublishInfoDto.ts b/src/services/api/models/FilePublishInfoDto.ts new file mode 100644 index 0000000..8d0a093 --- /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; +} \ No newline at end of file diff --git a/src/services/api/models/MeasureDto.ts b/src/services/api/models/MeasureDto.ts index 5a846f9..dea91c6 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 081e545..1c5001b 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 e41bc14..360fed6 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 5bd051a..8f18c1a 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 40c7510..6941292 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 cd15dfe..b15856d 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 934eb6d..ec2edfe 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 0ef8103..171afff 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 91367bf..c801502 100644 --- a/src/services/api/models/TelemetryDataSaubDto.ts +++ b/src/services/api/models/TelemetryDataSaubDto.ts @@ -42,4 +42,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 169aa0f..8a88f08 100644 --- a/src/services/api/models/TelemetryDataSpinDto.ts +++ b/src/services/api/models/TelemetryDataSpinDto.ts @@ -69,4 +69,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 b152295..a1eb21a 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/TelemetryDtoPaginationContainer.ts b/src/services/api/models/TelemetryDtoPaginationContainer.ts new file mode 100644 index 0000000..0d23b24 --- /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; +} \ No newline at end of file diff --git a/src/services/api/models/TelemetryInfoDto.ts b/src/services/api/models/TelemetryInfoDto.ts index 01b57bc..0486f7c 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 492da5c..ea9f006 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 4b24faa..97cb3b5 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 06d02c5..d09351d 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 dc090a7..361a705 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 b4959fc..4bd727c 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 748389f..8c5ae2f 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/UserDtoPaginationContainer.ts b/src/services/api/models/UserDtoPaginationContainer.ts new file mode 100644 index 0000000..650abe0 --- /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; +} \ No newline at end of file diff --git a/src/services/api/models/UserRoleDto.ts b/src/services/api/models/UserRoleDto.ts index c0810e1..ad7f1d2 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/UserRoleDtoPaginationContainer.ts b/src/services/api/models/UserRoleDtoPaginationContainer.ts new file mode 100644 index 0000000..d77dd06 --- /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; +} \ No newline at end of file diff --git a/src/services/api/models/UserTokenDto.ts b/src/services/api/models/UserTokenDto.ts index c7a5f92..feff474 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 2db927d..aab2a1b 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 6db8d80..51cef5f 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 72d34a2..a92c110 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 ebc03bc..9cf1c29 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/WellDtoPaginationContainer.ts b/src/services/api/models/WellDtoPaginationContainer.ts new file mode 100644 index 0000000..f3f299d --- /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; +} \ No newline at end of file diff --git a/src/services/api/models/WellOperationCategoryDto.ts b/src/services/api/models/WellOperationCategoryDto.ts index b682abd..5581c68 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 7702acf..c0e6f17 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 eaa7dc5..4dbd6b7 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 d753775..86b2a67 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 4f01852..7c77820 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 f4ded6c..e79634a 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 { +skip: number, +take: number = 32, +): 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 { +requestBody?: ClusterDto, +): 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 { +id: number, +): 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 { +id: number, +requestBody?: ClusterDto, +): 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 { +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 fb8d668..6b9cbbb 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 { +skip: number, +take: number = 32, +): 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 { +requestBody?: CompanyDto, +): 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 { +id: number, +): 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 { +id: number, +requestBody?: CompanyDto, +): 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 { +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 8878335..13a0364 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 { +skip: number, +take: number = 32, +): 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 { +requestBody?: DepositDto, +): 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 { +id: number, +): 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 { +id: number, +requestBody?: DepositDto, +): 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 { +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 ce158b8..f094362 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 { @@ -25,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`, @@ -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 { +skip: number, +take: number = 32, +): 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 { +requestBody?: TelemetryDto, +): 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 { +id: number, +): 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 { +id: number, +requestBody?: TelemetryDto, +): 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 { +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 5a5333b..5dd8522 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 { +skip: number, +take: number = 32, +): 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 { +requestBody?: UserRoleDto, +): 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 { +id: number, +): 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 { +id: number, +requestBody?: UserRoleDto, +): 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 { +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 f4dba1d..ec213c0 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 { +skip: number, +take: number = 32, +): 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 { +requestBody?: UserDto, +): 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 { +id: number, +): 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 { +id: number, +requestBody?: UserDto, +): 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 { +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 cbabf24..361cbaf 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 { +skip: number, +take: number = 32, +): 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 { +requestBody?: WellDto, +): 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 { +id: number, +): 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 { +id: number, +requestBody?: WellDto, +): 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 { +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 27732bd..b42a63b 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`, @@ -42,14 +42,14 @@ export class AuthService { } /** - * Регистрация пользователя. Доступна администратору - * @param requestBody + * Отправить заявку на регистрацию. Заявка подтверждается администратором. + * @param requestBody Информация о новом пользователе * @returns any Success * @throws ApiError */ public static async register( - requestBody?: UserDto, - ): Promise { +requestBody?: UserDto, +): Promise { const result = await __request({ method: 'POST', path: `/auth`, @@ -60,15 +60,15 @@ export class AuthService { /** * Смена пароля пользователя. Доступна пользователю и администратору - * @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 6a2ea4b..5c6dada 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 2bfdce1..906f947 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 13da462..eb37d76 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 @@ export class DrillFlowChartService { * @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 @@ export class DrillFlowChartService { * @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 @@ export class DrillFlowChartService { * @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 @@ export class DrillFlowChartService { * @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 @@ export class DrillFlowChartService { * @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 483dfd3..e789268 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 @@ export class DrillParamsService { * @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 @@ export class DrillParamsService { * @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 @@ export class DrillParamsService { * @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 @@ export class DrillParamsService { * @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 @@ export class DrillParamsService { * @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 @@ export class DrillParamsService { * @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 @@ export class DrillParamsService { * @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 22d5db4..d42abb3 100644 --- a/src/services/api/services/DrillingProgramService.ts +++ b/src/services/api/services/DrillingProgramService.ts @@ -1,6 +1,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { FileMarkDto } from '../models/FileMarkDto'; import { request as __request } from '../core/request'; export class DrillingProgramService { @@ -12,8 +13,8 @@ export class DrillingProgramService { * @throws ApiError */ public static async get( - idWell: number, - ): Promise { +idWell: number, +): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/drillingProgram`, @@ -22,14 +23,14 @@ export class DrillingProgramService { } /** - * Возвращает ссылку на файл программы бурения в облаке + * Создает программу бурения * @param idWell id скважины * @returns string Success * @throws ApiError */ - public static async getFileWebLink( - idWell: number, - ): Promise { + public static async getOrCreateSharedUrl( +idWell: number, +): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/drillingProgram/webUrl`, @@ -37,4 +38,44 @@ export class DrillingProgramService { return result.body; } + /** + * Создает метку для файла входящего в проргамму бурения + * @param idWell id скважины + * @param requestBody метка файла + * @returns any Success + * @throws ApiError + */ + public static async createFileMark( +idWell: number, +requestBody?: FileMarkDto, +): Promise { + const result = await __request({ + method: 'POST', + path: `/api/well/${idWell}/drillingProgram/fileMark`, + body: requestBody, + }); + return result.body; + } + + /** + * Помечает метку у файла входящего, в проргамму бурения, как удаленную + * @param idWell id скважины + * @param idMark id метки + * @returns number Success + * @throws ApiError + */ + public static async deleteFileMark( +idWell: number, +idMark?: number, +): Promise { + const result = await __request({ + method: 'DELETE', + path: `/api/well/${idWell}/drillingProgram/fileMark`, + query: { + 'idMark': idMark, + }, + }); + return result.body; + } + } \ No newline at end of file diff --git a/src/services/api/services/FileService.ts b/src/services/api/services/FileService.ts index 125112f..95fb68b 100644 --- a/src/services/api/services/FileService.ts +++ b/src/services/api/services/FileService.ts @@ -1,8 +1,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { FileInfoDto } from '../models/FileInfoDto'; import type { FileInfoDtoPaginationContainer } from '../models/FileInfoDtoPaginationContainer'; +import type { FileMarkDto } from '../models/FileMarkDto'; import { request as __request } from '../core/request'; export class FileService { @@ -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 @@ export class FileService { * @throws ApiError */ public static async getFilesInfo( - idWell: number, - idCategory: number, - companyName?: string, - fileName?: string, - begin?: string, - end?: string, - skip: number = 0, - take: number = 32, - ): Promise { +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`, @@ -70,24 +70,6 @@ export class FileService { return result.body; } - /** - * Возвращает информацию о файлах для скважины в выбраной категории - * @param idWell id скважины - * @param idCategory id категории файла - * @returns FileInfoDto Success - * @throws ApiError - */ - public static async getInfosByCategory( - idWell: number, - idCategory: number, - ): Promise> { - const result = await __request({ - method: 'GET', - path: `/api/well/${idWell}/files/category/${idCategory}`, - }); - return result.body; - } - /** * Возвращает файл с диска на сервере * @param idWell id скважины @@ -96,9 +78,9 @@ export class FileService { * @throws ApiError */ public static async getFile( - idWell: number, - fileId: number, - ): Promise { +idWell: number, +fileId: number, +): Promise { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/files/${fileId}`, @@ -114,9 +96,9 @@ export class FileService { * @throws ApiError */ public static async delete( - idWell: number, - idFile: number, - ): Promise { +idWell: number, +idFile: number, +): Promise { const result = await __request({ method: 'DELETE', path: `/api/well/${idWell}/files/${idFile}`, @@ -124,4 +106,44 @@ export class FileService { return result.body; } + /** + * Создает метку для файла + * @param idWell id скважины + * @param requestBody метка файла + * @returns any Success + * @throws ApiError + */ + public static async createFileMark( +idWell: number, +requestBody?: FileMarkDto, +): Promise { + const result = await __request({ + method: 'POST', + path: `/api/well/${idWell}/files/fileMark`, + body: requestBody, + }); + return result.body; + } + + /** + * Помечает метку у файла как удаленную + * @param idWell id скважины + * @param idMark id метки + * @returns number Success + * @throws ApiError + */ + public static async deleteFileMark( +idWell: number, +idMark?: number, +): Promise { + const result = await __request({ + method: 'DELETE', + path: `/api/well/${idWell}/files/fileMark`, + query: { + 'idMark': idMark, + }, + }); + return result.body; + } + } \ No newline at end of file diff --git a/src/services/api/services/MeasureService.ts b/src/services/api/services/MeasureService.ts index 6f59d4a..b1d012f 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 @@ export class MeasureService { } /** - * @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 @@ export class MeasureService { } /** - * @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 @@ export class MeasureService { } /** - * @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 @@ export class MeasureService { } /** - * @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 @@ export class MeasureService { } /** - * @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 09b71d5..8adaa2f 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 @@ export class MessageService { * @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 cc99805..e540c4c 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 @@ export class ReportService { * @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 @@ export class ReportService { /** * @deprecated * Возвращает имена отчетов, хранящихся на диске, - * которые подходят под указанные параметры + * которые подходят под указанные параметры * @param idWell id скважины * @param stepSeconds шаг интервала * @param format формат отчета (0-PDF, 1-LAS) @@ -65,12 +65,12 @@ export class ReportService { * @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 @@ export class ReportService { * @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 @@ export class ReportService { * @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/TelemetryAnalyticsService.ts b/src/services/api/services/TelemetryAnalyticsService.ts index d1d2d9f..b4f828c 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 @@ export class TelemetryAnalyticsService { * @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 @@ export class TelemetryAnalyticsService { * @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 @@ export class TelemetryAnalyticsService { * @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 @@ export class TelemetryAnalyticsService { * @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 @@ export class TelemetryAnalyticsService { * @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 8854704..2aea521 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,20 +28,20 @@ export class TelemetryDataSaubService { /** * Возвращает данные САУБ по скважине. - * По умолчанию за последние 10 минут. + * По умолчанию за последние 10 минут. * @param idWell id скважины * @param begin дата начала выборки. По умолчанию: текущее время - intervalSec * @param intervalSec интервал времени даты начала выборки, секунды * @param approxPointsCount желаемое количество точек. Если в выборке точек будет больше, то выборка будет прорежена. - * @returns any Success + * @returns TelemetryDataSaubDto Success * @throws ApiError */ public static async getData( - idWell: number, - begin?: string, - intervalSec: number = 600, - approxPointsCount: number = 1024, - ): Promise { +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 @@ export class TelemetryDataSaubService { * @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 71add2c..f3fd261 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,20 +28,20 @@ export class TelemetryDataSpinService { /** * Возвращает данные САУБ по скважине. - * По умолчанию за последние 10 минут. + * По умолчанию за последние 10 минут. * @param idWell id скважины * @param begin дата начала выборки. По умолчанию: текущее время - intervalSec * @param intervalSec интервал времени даты начала выборки, секунды * @param approxPointsCount желаемое количество точек. Если в выборке точек будет больше, то выборка будет прорежена. - * @returns any Success + * @returns TelemetryDataSpinDto Success * @throws ApiError */ public static async getData( - idWell: number, - begin?: string, - intervalSec: number = 600, - approxPointsCount: number = 1024, - ): Promise { +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 @@ export class TelemetryDataSpinService { * @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 c00b1c8..24e426c 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 @@ export class TelemetryService { * @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 @@ export class TelemetryService { * @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 @@ export class TelemetryService { * @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 05eb0ae..cd54063 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 @@ export class WellCompositeService { * @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 d30efa7..036cc7a 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 @@ export class WellOperationService { * @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 @@ export class WellOperationService { * @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 @@ export class WellOperationService { * @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 @@ export class WellOperationService { * @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 @@ export class WellOperationService { * @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 @@ export class WellOperationService { * Импортирует операции из 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 @@ export class WellOperationService { * @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 @@ export class WellOperationService { /** * Возвращает шаблон файла импорта - * @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 6019a8d..c419643 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 @@ export class WellOperationStatService { * @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 @@ export class WellOperationStatService { * @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 @@ export class WellOperationStatService { /** * Получает данные для графика глубина-днь - * @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 d71b14c..c46ed7c 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 @@ export class WellService { * @throws ApiError */ public static async get( - idWell?: number, - ): Promise { +idWell?: number, +): Promise { const result = await __request({ method: 'GET', path: `/api/well/getWell`,