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({