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`,