From 9a238ba9ef2ec30656b4132e2525c84d75f5266e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Sun, 29 Aug 2021 17:32:18 +0500 Subject: [PATCH] update Api client --- src/services/api/index.ts | 1 + src/services/api/models/FileInfoDto.ts | 4 +++- .../api/services/DrillingProgramService.ts | 23 +++++++++++++++++++ .../api/services/WellOperationService.ts | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 src/services/api/services/DrillingProgramService.ts diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 42cbf9f..8ae6671 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -40,6 +40,7 @@ export { AuthService } from './services/AuthService'; export { ClusterService } from './services/ClusterService'; export { DataService } from './services/DataService'; export { DepositService } from './services/DepositService'; +export { DrillingProgramService } from './services/DrillingProgramService'; export { FileService } from './services/FileService'; export { MeasureService } from './services/MeasureService'; export { MessageService } from './services/MessageService'; diff --git a/src/services/api/models/FileInfoDto.ts b/src/services/api/models/FileInfoDto.ts index 8f5309d..b00c85f 100644 --- a/src/services/api/models/FileInfoDto.ts +++ b/src/services/api/models/FileInfoDto.ts @@ -4,8 +4,10 @@ export type FileInfoDto = { id?: number; - name?: string | null; + idWell?: number; idCategory?: number; + idAuthor?: number; + name?: string | null; uploadDate?: string; authorName?: string | null; companyId?: number; diff --git a/src/services/api/services/DrillingProgramService.ts b/src/services/api/services/DrillingProgramService.ts new file mode 100644 index 0000000..5b52f12 --- /dev/null +++ b/src/services/api/services/DrillingProgramService.ts @@ -0,0 +1,23 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import { request as __request } from '../core/request'; + +export class DrillingProgramService { + + /** + * @param idWell + * @returns string Success + * @throws ApiError + */ + public static async get( +idWell: number, +): Promise { + const result = await __request({ + method: 'GET', + path: `/api/well/${idWell}/drillingProgram`, + }); + return result.body; + } + +} \ No newline at end of file diff --git a/src/services/api/services/WellOperationService.ts b/src/services/api/services/WellOperationService.ts index 3215e56..e621494 100644 --- a/src/services/api/services/WellOperationService.ts +++ b/src/services/api/services/WellOperationService.ts @@ -48,7 +48,7 @@ begin?: string, end?: string, minDepth: number = -1.7976931348623157e+308, maxDepth: number = 1.7976931348623157e+308, -skip: number = 0, +skip: number =0, take: number = 32, ): Promise { const result = await __request({