forked from ddrilling/asb_cloud_front
Services updated
This commit is contained in:
parent
2663b1f6dd
commit
6ec3836abe
@ -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';
|
||||
|
@ -5,4 +5,4 @@
|
||||
export type AuthDto = {
|
||||
login?: string | null;
|
||||
password?: string | null;
|
||||
}
|
||||
}
|
||||
|
@ -11,4 +11,4 @@ export type ClusterDto = {
|
||||
latitude?: number | null;
|
||||
longitude?: number | null;
|
||||
wells?: Array<WellDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ export type CompanyDto = {
|
||||
id?: number;
|
||||
caption?: string | null;
|
||||
companyTypeCaption?: string | null;
|
||||
}
|
||||
}
|
||||
|
@ -5,4 +5,4 @@
|
||||
export type DatesRangeDto = {
|
||||
from?: string;
|
||||
to?: string;
|
||||
}
|
||||
}
|
||||
|
@ -11,4 +11,4 @@ export type DepositDto = {
|
||||
latitude?: number | null;
|
||||
longitude?: number | null;
|
||||
clusters?: Array<ClusterDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ export type DrillFlowChartDto = {
|
||||
rotorSpeedMax?: number;
|
||||
flowMin?: number;
|
||||
flowMax?: number;
|
||||
}
|
||||
}
|
||||
|
@ -23,4 +23,4 @@ export type DrillParamsDto = {
|
||||
flowMin?: number;
|
||||
flowAvg?: number;
|
||||
flowMax?: number;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type EventDto = {
|
||||
tag?: string | null;
|
||||
eventType?: number;
|
||||
idSound?: number;
|
||||
}
|
||||
}
|
||||
|
@ -17,4 +17,4 @@ export type FileInfoDto = {
|
||||
publishInfo?: FilePublishInfoDto;
|
||||
author?: UserDto;
|
||||
fileMarks?: Array<FileMarkDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type FileInfoDtoPaginationContainer = {
|
||||
take?: number;
|
||||
count?: number;
|
||||
items?: Array<FileInfoDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -12,4 +12,4 @@ export type FileMarkDto = {
|
||||
comment?: string | null;
|
||||
isDeleted?: boolean;
|
||||
user?: UserDto;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type MeasureDto = {
|
||||
categoryName?: string | null;
|
||||
timestamp?: string;
|
||||
data?: Record<string, any> | null;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type MessageDto = {
|
||||
wellDepth?: number;
|
||||
user?: string | null;
|
||||
message?: string | null;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type MessageDtoPaginationContainer = {
|
||||
take?: number;
|
||||
count?: number;
|
||||
items?: Array<MessageDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export type StatClusterDto = {
|
||||
id?: number;
|
||||
caption?: string | null;
|
||||
statsWells?: Array<StatWellDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ export type StatOperationsDto = {
|
||||
bhaDownSpeed?: number;
|
||||
casingDownSpeed?: number;
|
||||
nonProductiveHours?: number;
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,4 @@ import type { StatOperationsDto } from './StatOperationsDto';
|
||||
export type StatOperationsDtoPlanFactBase = {
|
||||
plan?: StatOperationsDto;
|
||||
fact?: StatOperationsDto;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type StatSectionDto = {
|
||||
fact?: StatOperationsDto;
|
||||
id?: number;
|
||||
caption?: string | null;
|
||||
}
|
||||
}
|
||||
|
@ -16,4 +16,4 @@ export type StatWellDto = {
|
||||
sections?: Array<StatSectionDto> | null;
|
||||
total?: StatOperationsDtoPlanFactBase;
|
||||
companies?: Array<CompanyDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export type TelemetryDto = {
|
||||
id?: number;
|
||||
remoteUid?: string | null;
|
||||
info?: TelemetryInfoDto;
|
||||
}
|
||||
}
|
||||
|
@ -14,4 +14,4 @@ export type TelemetryInfoDto = {
|
||||
saubPlcVersion?: string | null;
|
||||
spinPlcVersion?: string | null;
|
||||
comment?: string | null;
|
||||
}
|
||||
}
|
||||
|
@ -12,4 +12,4 @@ export type TelemetryMessageDto = {
|
||||
arg1?: string | null;
|
||||
arg2?: string | null;
|
||||
arg3?: string | null;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type TelemetryOperationDto = {
|
||||
endDate?: string;
|
||||
startWellDepth?: number;
|
||||
endWellDepth?: number;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type TelemetryOperationDtoPaginationContainer = {
|
||||
take?: number;
|
||||
count?: number;
|
||||
items?: Array<TelemetryOperationDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -5,4 +5,4 @@
|
||||
export type TelemetryOperationDurationDto = {
|
||||
operationName?: string | null;
|
||||
duration?: number;
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export type TelemetryUserDto = {
|
||||
surname?: string | null;
|
||||
patronymic?: string | null;
|
||||
level?: number;
|
||||
}
|
||||
}
|
||||
|
@ -18,4 +18,4 @@ export type UserDto = {
|
||||
idRole?: number | null;
|
||||
password?: string | null;
|
||||
company?: CompanyDto;
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export type UserRoleDto = {
|
||||
id?: number;
|
||||
caption?: string | null;
|
||||
users?: Array<UserDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -15,4 +15,4 @@ export type UserTokenDto = {
|
||||
companyName?: string | null;
|
||||
roleName?: string | null;
|
||||
token?: string | null;
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ export type WellCompositeDto = {
|
||||
idWell?: number;
|
||||
idWellSrc?: number;
|
||||
idWellSectionType?: number;
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ export type WellDepthToDayDto = {
|
||||
wellDepth?: number;
|
||||
bitDepth?: number;
|
||||
date?: string;
|
||||
}
|
||||
}
|
||||
|
@ -5,4 +5,4 @@
|
||||
export type WellDepthToIntervalDto = {
|
||||
intervalStartDate?: string;
|
||||
intervalDepthProgress?: number;
|
||||
}
|
||||
}
|
||||
|
@ -16,4 +16,4 @@ export type WellDto = {
|
||||
idState?: number;
|
||||
lastTelemetryDate?: string;
|
||||
telemetry?: TelemetryDto;
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ export type WellOperationCategoryDto = {
|
||||
id?: number;
|
||||
name?: string | null;
|
||||
code?: number;
|
||||
}
|
||||
}
|
||||
|
@ -16,4 +16,4 @@ export type WellOperationDto = {
|
||||
dateStart?: string;
|
||||
durationHours?: number;
|
||||
comment?: string | null;
|
||||
}
|
||||
}
|
||||
|
@ -9,4 +9,4 @@ export type WellOperationDtoPaginationContainer = {
|
||||
take?: number;
|
||||
count?: number;
|
||||
items?: Array<WellOperationDto> | null;
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export type WellOperationDtoPlanFactPredictBase = {
|
||||
plan?: WellOperationDto;
|
||||
fact?: WellOperationDto;
|
||||
predict?: WellOperationDto;
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export type WellParamsDto = {
|
||||
longitude?: number | null;
|
||||
idWellType?: number;
|
||||
idState?: number;
|
||||
}
|
||||
}
|
||||
|
@ -15,9 +15,9 @@ export class AdminClusterService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<ClusterDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<ClusterDtoPaginationContainer> {
|
||||
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<number> {
|
||||
requestBody?: ClusterDto,
|
||||
): Promise<number> {
|
||||
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<ClusterDto> {
|
||||
id: number,
|
||||
): Promise<ClusterDto> {
|
||||
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<number> {
|
||||
id: number,
|
||||
requestBody?: ClusterDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/cluster/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminCompanyService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<CompanyDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<CompanyDtoPaginationContainer> {
|
||||
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<number> {
|
||||
requestBody?: CompanyDto,
|
||||
): Promise<number> {
|
||||
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<CompanyDto> {
|
||||
id: number,
|
||||
): Promise<CompanyDto> {
|
||||
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<number> {
|
||||
id: number,
|
||||
requestBody?: CompanyDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/company/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminDepositService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<DepositDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<DepositDtoPaginationContainer> {
|
||||
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<number> {
|
||||
requestBody?: DepositDto,
|
||||
): Promise<number> {
|
||||
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<DepositDto> {
|
||||
id: number,
|
||||
): Promise<DepositDto> {
|
||||
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<number> {
|
||||
id: number,
|
||||
requestBody?: DepositDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/deposit/${id}`,
|
||||
|
@ -26,8 +26,8 @@ export class AdminTelemetryService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async mergeTelemetries(
|
||||
requestBody?: Array<number>,
|
||||
): Promise<any> {
|
||||
requestBody?: Array<number>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/merge`,
|
||||
@ -44,9 +44,9 @@ requestBody?: Array<number>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<TelemetryDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<TelemetryDtoPaginationContainer> {
|
||||
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<number> {
|
||||
requestBody?: TelemetryDto,
|
||||
): Promise<number> {
|
||||
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<TelemetryDto> {
|
||||
id: number,
|
||||
): Promise<TelemetryDto> {
|
||||
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<number> {
|
||||
id: number,
|
||||
requestBody?: TelemetryDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/telemetry/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminUserRoleService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<UserRoleDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<UserRoleDtoPaginationContainer> {
|
||||
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<number> {
|
||||
requestBody?: UserRoleDto,
|
||||
): Promise<number> {
|
||||
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<UserRoleDto> {
|
||||
id: number,
|
||||
): Promise<UserRoleDto> {
|
||||
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<number> {
|
||||
id: number,
|
||||
requestBody?: UserRoleDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/user/role/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminUserService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<UserDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<UserDtoPaginationContainer> {
|
||||
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<number> {
|
||||
requestBody?: UserDto,
|
||||
): Promise<number> {
|
||||
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<UserDto> {
|
||||
id: number,
|
||||
): Promise<UserDto> {
|
||||
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<number> {
|
||||
id: number,
|
||||
requestBody?: UserDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/user/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminWellService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<WellDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<WellDtoPaginationContainer> {
|
||||
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<number> {
|
||||
requestBody?: WellDto,
|
||||
): Promise<number> {
|
||||
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<WellDto> {
|
||||
id: number,
|
||||
): Promise<WellDto> {
|
||||
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<number> {
|
||||
id: number,
|
||||
requestBody?: WellDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/well/${id}`,
|
||||
|
@ -10,13 +10,13 @@ export class AuthService {
|
||||
|
||||
/**
|
||||
* Аутентификация пользователя
|
||||
* @param requestBody
|
||||
* @param requestBody
|
||||
* @returns UserTokenDto новый токен
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async login(
|
||||
requestBody?: AuthDto,
|
||||
): Promise<UserTokenDto> {
|
||||
requestBody?: AuthDto,
|
||||
): Promise<UserTokenDto> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/auth/login`,
|
||||
@ -48,8 +48,8 @@ requestBody?: AuthDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async register(
|
||||
requestBody?: UserDto,
|
||||
): Promise<any> {
|
||||
requestBody?: UserDto,
|
||||
): Promise<any> {
|
||||
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<any> {
|
||||
idUser: number,
|
||||
requestBody?: string,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/auth/${idUser}/ChangePassword`,
|
||||
|
@ -22,13 +22,13 @@ export class ClusterService {
|
||||
|
||||
/**
|
||||
* Получение доступных пользователю скважин
|
||||
* @param idCluster
|
||||
* @param idCluster
|
||||
* @returns WellDto Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getWells(
|
||||
idCluster: number,
|
||||
): Promise<Array<WellDto>> {
|
||||
idCluster: number,
|
||||
): Promise<Array<WellDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/cluster/${idCluster}`,
|
||||
|
@ -35,13 +35,13 @@ export class DepositService {
|
||||
|
||||
/**
|
||||
* Получает список доступных пользователю кустов месторождения
|
||||
* @param depositId
|
||||
* @param depositId
|
||||
* @returns ClusterDto Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getClusters(
|
||||
depositId: number,
|
||||
): Promise<Array<ClusterDto>> {
|
||||
depositId: number,
|
||||
): Promise<Array<ClusterDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/deposit/${depositId}`,
|
||||
|
@ -14,9 +14,9 @@ export class DrillFlowChartService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell: number,
|
||||
updateFrom?: string,
|
||||
): Promise<Array<DrillFlowChartDto>> {
|
||||
idWell: number,
|
||||
updateFrom?: string,
|
||||
): Promise<Array<DrillFlowChartDto>> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
requestBody?: DrillFlowChartDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
requestBody?: DrillFlowChartDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
drillFlowChartParamsId?: number,
|
||||
): Promise<number> {
|
||||
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<Array<DrillFlowChartDto>> {
|
||||
uid: string,
|
||||
updateFrom?: string,
|
||||
): Promise<Array<DrillFlowChartDto>> {
|
||||
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<DrillFlowChartDto>,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillFlowChartDto>,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillFlowChart/range`,
|
||||
|
@ -15,10 +15,10 @@ export class DrillParamsService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getDefault(
|
||||
idWell: number,
|
||||
startDepth?: number,
|
||||
endDepth?: number,
|
||||
): Promise<DrillParamsDto> {
|
||||
idWell: number,
|
||||
startDepth?: number,
|
||||
endDepth?: number,
|
||||
): Promise<DrillParamsDto> {
|
||||
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<Array<DrillParamsDto>> {
|
||||
idWell: number,
|
||||
): Promise<Array<DrillParamsDto>> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
requestBody?: DrillParamsDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
dtoId?: number,
|
||||
requestBody?: DrillParamsDto,
|
||||
): Promise<number> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
drillParamsId?: number,
|
||||
): Promise<number> {
|
||||
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<DrillParamsDto>,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillParamsDto>,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillParams/range`,
|
||||
@ -137,9 +137,9 @@ requestBody?: Array<DrillParamsDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async save(
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillParamsDto>,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillParamsDto>,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillParams/save`,
|
||||
@ -155,8 +155,8 @@ requestBody?: Array<DrillParamsDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getCompositeAll(
|
||||
idWell: number,
|
||||
): Promise<Array<DrillParamsDto>> {
|
||||
idWell: number,
|
||||
): Promise<Array<DrillParamsDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/drillParams/composite`,
|
||||
|
@ -13,8 +13,8 @@ export class DrillingProgramService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
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<string> {
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
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<any> {
|
||||
idWell: number,
|
||||
requestBody?: FileMarkDto,
|
||||
): Promise<any> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
idMark?: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/drillingProgram/fileMark`,
|
||||
|
@ -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<number> {
|
||||
idWell: number,
|
||||
idCategory?: number,
|
||||
requestBody?: any,
|
||||
): Promise<number> {
|
||||
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<FileInfoDtoPaginationContainer> {
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
companyName?: string,
|
||||
fileName?: string,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
skip: number = 0,
|
||||
take: number = 32,
|
||||
): Promise<FileInfoDtoPaginationContainer> {
|
||||
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<string> {
|
||||
idWell: number,
|
||||
fileId: number,
|
||||
): Promise<string> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
idFile: number,
|
||||
): Promise<number> {
|
||||
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<any> {
|
||||
idWell: number,
|
||||
requestBody?: FileMarkDto,
|
||||
): Promise<any> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
idMark?: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/files/fileMark`,
|
||||
|
@ -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<any> {
|
||||
idWell: number,
|
||||
): Promise<any> {
|
||||
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<any> {
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
): Promise<any> {
|
||||
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<any> {
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
): Promise<any> {
|
||||
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<any> {
|
||||
idWell: number,
|
||||
requestBody?: MeasureDto,
|
||||
): Promise<any> {
|
||||
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<any> {
|
||||
idWell: number,
|
||||
requestBody?: MeasureDto,
|
||||
): Promise<any> {
|
||||
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<any> {
|
||||
idWell: number,
|
||||
idData: number,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/measure/history/${idData}`,
|
||||
|
@ -20,14 +20,14 @@ export class MessageService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getMessages(
|
||||
idWell: number,
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
categoryids?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
searchString?: string,
|
||||
): Promise<MessageDtoPaginationContainer> {
|
||||
idWell: number,
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
categoryids?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
searchString?: string,
|
||||
): Promise<MessageDtoPaginationContainer> {
|
||||
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<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/message/datesRange`,
|
||||
|
@ -17,12 +17,12 @@ export class ReportService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async createReport(
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<number> {
|
||||
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<Array<string>> {
|
||||
idWell: number,
|
||||
): Promise<Array<string>> {
|
||||
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<Array<string>> {
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<Array<string>> {
|
||||
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<string> {
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<string> {
|
||||
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<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/report/datesRange`,
|
||||
|
98
src/services/api/services/RequerstTrackerService.ts
Normal file
98
src/services/api/services/RequerstTrackerService.ts
Normal file
@ -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<any> {
|
||||
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<any> {
|
||||
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<any> {
|
||||
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<any> {
|
||||
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<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/RequerstTracker/users`,
|
||||
query: {
|
||||
'take': take,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
@ -22,13 +22,13 @@ export class TelemetryAnalyticsService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getOperationsByWell(
|
||||
idWell: number,
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
categoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<TelemetryOperationDtoPaginationContainer> {
|
||||
idWell: number,
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
categoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<TelemetryOperationDtoPaginationContainer> {
|
||||
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<Array<WellDepthToDayDto>> {
|
||||
idWell: number,
|
||||
): Promise<Array<WellDepthToDayDto>> {
|
||||
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<Array<WellDepthToIntervalDto>> {
|
||||
idWell: number,
|
||||
intervalSeconds?: number,
|
||||
workBeginSeconds?: number,
|
||||
): Promise<Array<WellDepthToIntervalDto>> {
|
||||
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<Array<TelemetryOperationDurationDto>> {
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<Array<TelemetryOperationDurationDto>> {
|
||||
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<Array<TelemetryOperationDurationDto>> {
|
||||
idWell: number,
|
||||
intervalSeconds?: number,
|
||||
workBeginSeconds?: number,
|
||||
): Promise<Array<TelemetryOperationDurationDto>> {
|
||||
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<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/telemetryAnalytics/datesRange`,
|
||||
|
@ -15,9 +15,9 @@ export class TelemetryDataSaubService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postData(
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryDataSaubDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryDataSaubDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/TelemetryDataSaub/${uid}`,
|
||||
@ -28,7 +28,7 @@ requestBody?: Array<TelemetryDataSaubDto>,
|
||||
|
||||
/**
|
||||
* Возвращает данные САУБ по скважине.
|
||||
* По умолчанию за последние 10 минут.
|
||||
* По умолчанию за последние 10 минут.
|
||||
* @param idWell id скважины
|
||||
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
|
||||
* @param intervalSec интервал времени даты начала выборки, секунды
|
||||
@ -37,11 +37,11 @@ requestBody?: Array<TelemetryDataSaubDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getData(
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
intervalSec: number = 600,
|
||||
approxPointsCount: number = 1024,
|
||||
): Promise<TelemetryDataSaubDto> {
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
intervalSec: number = 600,
|
||||
approxPointsCount: number = 1024,
|
||||
): Promise<TelemetryDataSaubDto> {
|
||||
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<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/TelemetryDataSaub/${idWell}/datesRange`,
|
||||
|
@ -15,9 +15,9 @@ export class TelemetryDataSpinService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postData(
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryDataSpinDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryDataSpinDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/TelemetryDataSpin/${uid}`,
|
||||
@ -28,7 +28,7 @@ requestBody?: Array<TelemetryDataSpinDto>,
|
||||
|
||||
/**
|
||||
* Возвращает данные САУБ по скважине.
|
||||
* По умолчанию за последние 10 минут.
|
||||
* По умолчанию за последние 10 минут.
|
||||
* @param idWell id скважины
|
||||
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
|
||||
* @param intervalSec интервал времени даты начала выборки, секунды
|
||||
@ -37,11 +37,11 @@ requestBody?: Array<TelemetryDataSpinDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getData(
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
intervalSec: number = 600,
|
||||
approxPointsCount: number = 1024,
|
||||
): Promise<TelemetryDataSpinDto> {
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
intervalSec: number = 600,
|
||||
approxPointsCount: number = 1024,
|
||||
): Promise<TelemetryDataSpinDto> {
|
||||
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<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/TelemetryDataSpin/${idWell}/datesRange`,
|
||||
|
@ -17,9 +17,9 @@ export class TelemetryService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postInfo(
|
||||
uid: string,
|
||||
requestBody?: TelemetryInfoDto,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: TelemetryInfoDto,
|
||||
): Promise<any> {
|
||||
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<TelemetryMessageDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryMessageDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/telemetry/${uid}/message`,
|
||||
@ -55,9 +55,9 @@ requestBody?: Array<TelemetryMessageDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postEvents(
|
||||
uid: string,
|
||||
requestBody?: Array<EventDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<EventDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/telemetry/${uid}/event`,
|
||||
@ -74,9 +74,9 @@ requestBody?: Array<EventDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postUsers(
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryUserDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryUserDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/telemetry/${uid}/user`,
|
||||
|
@ -13,8 +13,8 @@ export class WellCompositeService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell: number,
|
||||
): Promise<Array<WellCompositeDto>> {
|
||||
idWell: number,
|
||||
): Promise<Array<WellCompositeDto>> {
|
||||
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<WellCompositeDto>,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
requestBody?: Array<WellCompositeDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/composite`,
|
||||
|
@ -10,13 +10,13 @@ export class WellOperationService {
|
||||
|
||||
/**
|
||||
* Возвращает список имен типов операций на скважине
|
||||
* @param idWell
|
||||
* @param idWell
|
||||
* @returns WellOperationCategoryDto Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getCategories(
|
||||
idWell: string,
|
||||
): Promise<Array<WellOperationCategoryDto>> {
|
||||
idWell: string,
|
||||
): Promise<Array<WellOperationCategoryDto>> {
|
||||
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<number>,
|
||||
operationCategoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
minDepth: number = -1.7976931348623157e+308,
|
||||
maxDepth: number = 1.7976931348623157e+308,
|
||||
skip: number = 0,
|
||||
take: number = 32,
|
||||
): Promise<WellOperationDtoPaginationContainer> {
|
||||
idWell: number,
|
||||
opertaionType?: number,
|
||||
sectionTypeIds?: Array<number>,
|
||||
operationCategoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
minDepth: number = -1.7976931348623157e+308,
|
||||
maxDepth: number = 1.7976931348623157e+308,
|
||||
skip: number = 0,
|
||||
take: number = 32,
|
||||
): Promise<WellOperationDtoPaginationContainer> {
|
||||
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<WellOperationDto>,
|
||||
): Promise<Array<WellOperationDto>> {
|
||||
idWell: number,
|
||||
requestBody?: Array<WellOperationDto>,
|
||||
): Promise<Array<WellOperationDto>> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/wellOperations`,
|
||||
@ -96,9 +96,9 @@ requestBody?: Array<WellOperationDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
): Promise<WellOperationDto> {
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
): Promise<WellOperationDto> {
|
||||
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<WellOperationDto> {
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
requestBody?: WellOperationDto,
|
||||
): Promise<WellOperationDto> {
|
||||
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<number> {
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
): Promise<number> {
|
||||
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<any> {
|
||||
idWell: number,
|
||||
options: number,
|
||||
requestBody?: any,
|
||||
): Promise<any> {
|
||||
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<string> {
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
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<string> {
|
||||
idWell: string,
|
||||
): Promise<string> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/wellOperations/tamplate`,
|
||||
|
@ -15,8 +15,8 @@ export class WellOperationStatService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getStatCluster(
|
||||
idCluster: number,
|
||||
): Promise<StatClusterDto> {
|
||||
idCluster: number,
|
||||
): Promise<StatClusterDto> {
|
||||
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<number>,
|
||||
): Promise<Array<StatWellDto>> {
|
||||
idWells?: Array<number>,
|
||||
): Promise<Array<StatWellDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/wellsStats`,
|
||||
@ -50,8 +50,8 @@ idWells?: Array<number>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getStatWell(
|
||||
idWell: number,
|
||||
): Promise<StatWellDto> {
|
||||
idWell: number,
|
||||
): Promise<StatWellDto> {
|
||||
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<Array<WellOperationDtoPlanFactPredictBase>> {
|
||||
idWell: number,
|
||||
): Promise<Array<WellOperationDtoPlanFactPredictBase>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/tvd`,
|
||||
|
@ -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<number> {
|
||||
idWell?: number,
|
||||
requestBody?: WellParamsDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/well`,
|
||||
@ -51,8 +51,8 @@ requestBody?: WellParamsDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell?: number,
|
||||
): Promise<WellDto> {
|
||||
idWell?: number,
|
||||
): Promise<WellDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/getWell`,
|
||||
|
Loading…
Reference in New Issue
Block a user