From 0a3fc5e59dbcd1d382c91ab5c046b947ddfba366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Thu, 19 Aug 2021 15:17:08 +0500 Subject: [PATCH] api client update --- src/services/api/index.ts | 1 + src/services/api/models/WellOperationCategoryDto.ts | 9 +++++++++ src/services/api/services/WellOperationService.ts | 5 +++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/services/api/models/WellOperationCategoryDto.ts diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 2990b2a..6c4bc45 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -29,6 +29,7 @@ export type { UserTokenDto } from './models/UserTokenDto'; export type { WellDepthToDayDto } from './models/WellDepthToDayDto'; export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto'; export type { WellDto } from './models/WellDto'; +export type { WellOperationCategoryDto } from './models/WellOperationCategoryDto'; export type { WellOperationDto } from './models/WellOperationDto'; export type { WellOperationDtoPaginationContainer } from './models/WellOperationDtoPaginationContainer'; export type { WellSectionDto } from './models/WellSectionDto'; diff --git a/src/services/api/models/WellOperationCategoryDto.ts b/src/services/api/models/WellOperationCategoryDto.ts new file mode 100644 index 0000000..5581c68 --- /dev/null +++ b/src/services/api/models/WellOperationCategoryDto.ts @@ -0,0 +1,9 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type WellOperationCategoryDto = { + id?: number; + name?: string | null; + code?: number; +} \ No newline at end of file diff --git a/src/services/api/services/WellOperationService.ts b/src/services/api/services/WellOperationService.ts index 17f32ce..09d7004 100644 --- a/src/services/api/services/WellOperationService.ts +++ b/src/services/api/services/WellOperationService.ts @@ -1,6 +1,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { WellOperationCategoryDto } from '../models/WellOperationCategoryDto'; import type { WellOperationDto } from '../models/WellOperationDto'; import type { WellOperationDtoPaginationContainer } from '../models/WellOperationDtoPaginationContainer'; import { request as __request } from '../core/request'; @@ -10,12 +11,12 @@ export class WellOperationService { /** * Возвращает список имен типов операций на скважине * @param idWell - * @returns string Success + * @returns WellOperationCategoryDto Success * @throws ApiError */ public static async getCategories( idWell: string, -): Promise> { +): Promise> { const result = await __request({ method: 'GET', path: `/api/well/${idWell}/wellOperations/categories`,