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 { WellDepthToDayDto } from './models/WellDepthToDayDto';
|
||||||
export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto';
|
export type { WellDepthToIntervalDto } from './models/WellDepthToIntervalDto';
|
||||||
export type { WellDto } from './models/WellDto';
|
export type { WellDto } from './models/WellDto';
|
||||||
|
export type { WellOperationCategoryDto } from './models/WellOperationCategoryDto';
|
||||||
export type { WellOperationDto } from './models/WellOperationDto';
|
export type { WellOperationDto } from './models/WellOperationDto';
|
||||||
export type { WellOperationDtoPaginationContainer } from './models/WellOperationDtoPaginationContainer';
|
export type { WellOperationDtoPaginationContainer } from './models/WellOperationDtoPaginationContainer';
|
||||||
export type { WellSectionDto } from './models/WellSectionDto';
|
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 */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
import type { WellOperationCategoryDto } from '../models/WellOperationCategoryDto';
|
||||||
import type { WellOperationDto } from '../models/WellOperationDto';
|
import type { WellOperationDto } from '../models/WellOperationDto';
|
||||||
import type { WellOperationDtoPaginationContainer } from '../models/WellOperationDtoPaginationContainer';
|
import type { WellOperationDtoPaginationContainer } from '../models/WellOperationDtoPaginationContainer';
|
||||||
import { request as __request } from '../core/request';
|
import { request as __request } from '../core/request';
|
||||||
@ -10,12 +11,12 @@ export class WellOperationService {
|
|||||||
/**
|
/**
|
||||||
* Возвращает список имен типов операций на скважине
|
* Возвращает список имен типов операций на скважине
|
||||||
* @param idWell
|
* @param idWell
|
||||||
* @returns string Success
|
* @returns WellOperationCategoryDto Success
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static async getCategories(
|
public static async getCategories(
|
||||||
idWell: string,
|
idWell: string,
|
||||||
): Promise<Array<string>> {
|
): Promise<Array<WellOperationCategoryDto>> {
|
||||||
const result = await __request({
|
const result = await __request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: `/api/well/${idWell}/wellOperations/categories`,
|
path: `/api/well/${idWell}/wellOperations/categories`,
|
||||||
|
Loading…
Reference in New Issue
Block a user