forked from ddrilling/asb_cloud_front
api client update
This commit is contained in:
parent
f418afb570
commit
0a3fc5e59d
@ -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';
|
||||
|
9
src/services/api/models/WellOperationCategoryDto.ts
Normal file
9
src/services/api/models/WellOperationCategoryDto.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type WellOperationCategoryDto = {
|
||||
id?: number;
|
||||
name?: string | null;
|
||||
code?: number;
|
||||
}
|
@ -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`,
|
||||
|
Loading…
Reference in New Issue
Block a user