api client update

This commit is contained in:
Фролов 2021-08-19 15:17:08 +05:00
parent f418afb570
commit 0a3fc5e59d
3 changed files with 13 additions and 2 deletions

View File

@ -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';

View File

@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type WellOperationCategoryDto = {
id?: number;
name?: string | null;
code?: number;
}

View File

@ -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<Array<string>> {
): Promise<Array<WellOperationCategoryDto>> {
const result = await __request({
method: 'GET',
path: `/api/well/${idWell}/wellOperations/categories`,