forked from ddrilling/asb_cloud_front
Services updated
This commit is contained in:
parent
2663b1f6dd
commit
6ec3836abe
@ -70,6 +70,7 @@ export { FileService } from './services/FileService';
|
||||
export { MeasureService } from './services/MeasureService';
|
||||
export { MessageService } from './services/MessageService';
|
||||
export { ReportService } from './services/ReportService';
|
||||
export { RequerstTrackerService } from './services/RequerstTrackerService';
|
||||
export { TelemetryAnalyticsService } from './services/TelemetryAnalyticsService';
|
||||
export { TelemetryDataSaubService } from './services/TelemetryDataSaubService';
|
||||
export { TelemetryDataSpinService } from './services/TelemetryDataSpinService';
|
||||
|
@ -3,10 +3,9 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type TelemetryDataSaubDto = {
|
||||
id?: number;
|
||||
idTelemetry?: number;
|
||||
date?: string;
|
||||
mode?: number | null;
|
||||
idTelemetry?: number;
|
||||
user?: string | null;
|
||||
wellDepth?: number | null;
|
||||
bitDepth?: number | null;
|
||||
|
@ -3,7 +3,6 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type TelemetryDataSpinDto = {
|
||||
id?: number;
|
||||
idTelemetry?: number;
|
||||
date?: string;
|
||||
topDriveSpeed?: number | null;
|
||||
|
@ -15,9 +15,9 @@ export class AdminClusterService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<ClusterDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<ClusterDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/cluster`,
|
||||
@ -36,8 +36,8 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
requestBody?: ClusterDto,
|
||||
): Promise<number> {
|
||||
requestBody?: ClusterDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/admin/cluster`,
|
||||
@ -53,8 +53,8 @@ requestBody?: ClusterDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
id: number,
|
||||
): Promise<ClusterDto> {
|
||||
id: number,
|
||||
): Promise<ClusterDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/cluster/${id}`,
|
||||
@ -70,9 +70,9 @@ id: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async put(
|
||||
id: number,
|
||||
requestBody?: ClusterDto,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
requestBody?: ClusterDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/admin/cluster/${id}`,
|
||||
@ -88,8 +88,8 @@ requestBody?: ClusterDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/cluster/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminCompanyService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<CompanyDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<CompanyDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/company`,
|
||||
@ -36,8 +36,8 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
requestBody?: CompanyDto,
|
||||
): Promise<number> {
|
||||
requestBody?: CompanyDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/admin/company`,
|
||||
@ -53,8 +53,8 @@ requestBody?: CompanyDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
id: number,
|
||||
): Promise<CompanyDto> {
|
||||
id: number,
|
||||
): Promise<CompanyDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/company/${id}`,
|
||||
@ -70,9 +70,9 @@ id: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async put(
|
||||
id: number,
|
||||
requestBody?: CompanyDto,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
requestBody?: CompanyDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/admin/company/${id}`,
|
||||
@ -88,8 +88,8 @@ requestBody?: CompanyDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/company/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminDepositService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<DepositDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<DepositDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/deposit`,
|
||||
@ -36,8 +36,8 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
requestBody?: DepositDto,
|
||||
): Promise<number> {
|
||||
requestBody?: DepositDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/admin/deposit`,
|
||||
@ -53,8 +53,8 @@ requestBody?: DepositDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
id: number,
|
||||
): Promise<DepositDto> {
|
||||
id: number,
|
||||
): Promise<DepositDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/deposit/${id}`,
|
||||
@ -70,9 +70,9 @@ id: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async put(
|
||||
id: number,
|
||||
requestBody?: DepositDto,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
requestBody?: DepositDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/admin/deposit/${id}`,
|
||||
@ -88,8 +88,8 @@ requestBody?: DepositDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/deposit/${id}`,
|
||||
|
@ -26,8 +26,8 @@ export class AdminTelemetryService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async mergeTelemetries(
|
||||
requestBody?: Array<number>,
|
||||
): Promise<any> {
|
||||
requestBody?: Array<number>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/merge`,
|
||||
@ -44,9 +44,9 @@ requestBody?: Array<number>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<TelemetryDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<TelemetryDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/telemetry`,
|
||||
@ -65,8 +65,8 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
requestBody?: TelemetryDto,
|
||||
): Promise<number> {
|
||||
requestBody?: TelemetryDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/admin/telemetry`,
|
||||
@ -82,8 +82,8 @@ requestBody?: TelemetryDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
id: number,
|
||||
): Promise<TelemetryDto> {
|
||||
id: number,
|
||||
): Promise<TelemetryDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/telemetry/${id}`,
|
||||
@ -99,9 +99,9 @@ id: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async put(
|
||||
id: number,
|
||||
requestBody?: TelemetryDto,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
requestBody?: TelemetryDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/admin/telemetry/${id}`,
|
||||
@ -117,8 +117,8 @@ requestBody?: TelemetryDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/telemetry/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminUserRoleService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<UserRoleDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<UserRoleDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/user/role`,
|
||||
@ -36,8 +36,8 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
requestBody?: UserRoleDto,
|
||||
): Promise<number> {
|
||||
requestBody?: UserRoleDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/admin/user/role`,
|
||||
@ -53,8 +53,8 @@ requestBody?: UserRoleDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
id: number,
|
||||
): Promise<UserRoleDto> {
|
||||
id: number,
|
||||
): Promise<UserRoleDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/user/role/${id}`,
|
||||
@ -70,9 +70,9 @@ id: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async put(
|
||||
id: number,
|
||||
requestBody?: UserRoleDto,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
requestBody?: UserRoleDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/admin/user/role/${id}`,
|
||||
@ -88,8 +88,8 @@ requestBody?: UserRoleDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/user/role/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminUserService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<UserDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<UserDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/user`,
|
||||
@ -36,8 +36,8 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
requestBody?: UserDto,
|
||||
): Promise<number> {
|
||||
requestBody?: UserDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/admin/user`,
|
||||
@ -53,8 +53,8 @@ requestBody?: UserDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
id: number,
|
||||
): Promise<UserDto> {
|
||||
id: number,
|
||||
): Promise<UserDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/user/${id}`,
|
||||
@ -70,9 +70,9 @@ id: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async put(
|
||||
id: number,
|
||||
requestBody?: UserDto,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
requestBody?: UserDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/admin/user/${id}`,
|
||||
@ -88,8 +88,8 @@ requestBody?: UserDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/user/${id}`,
|
||||
|
@ -15,9 +15,9 @@ export class AdminWellService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getPage(
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<WellDtoPaginationContainer> {
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
): Promise<WellDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/well`,
|
||||
@ -36,8 +36,8 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
requestBody?: WellDto,
|
||||
): Promise<number> {
|
||||
requestBody?: WellDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/admin/well`,
|
||||
@ -53,8 +53,8 @@ requestBody?: WellDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
id: number,
|
||||
): Promise<WellDto> {
|
||||
id: number,
|
||||
): Promise<WellDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/admin/well/${id}`,
|
||||
@ -70,9 +70,9 @@ id: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async put(
|
||||
id: number,
|
||||
requestBody?: WellDto,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
requestBody?: WellDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/admin/well/${id}`,
|
||||
@ -88,8 +88,8 @@ requestBody?: WellDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
id: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/admin/well/${id}`,
|
||||
|
@ -15,8 +15,8 @@ export class AuthService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async login(
|
||||
requestBody?: AuthDto,
|
||||
): Promise<UserTokenDto> {
|
||||
requestBody?: AuthDto,
|
||||
): Promise<UserTokenDto> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/auth/login`,
|
||||
@ -48,8 +48,8 @@ requestBody?: AuthDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async register(
|
||||
requestBody?: UserDto,
|
||||
): Promise<any> {
|
||||
requestBody?: UserDto,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/auth`,
|
||||
@ -66,9 +66,9 @@ requestBody?: UserDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async changePassword(
|
||||
idUser: number,
|
||||
requestBody?: string,
|
||||
): Promise<any> {
|
||||
idUser: number,
|
||||
requestBody?: string,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/auth/${idUser}/ChangePassword`,
|
||||
|
@ -27,8 +27,8 @@ export class ClusterService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getWells(
|
||||
idCluster: number,
|
||||
): Promise<Array<WellDto>> {
|
||||
idCluster: number,
|
||||
): Promise<Array<WellDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/cluster/${idCluster}`,
|
||||
|
@ -40,8 +40,8 @@ export class DepositService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getClusters(
|
||||
depositId: number,
|
||||
): Promise<Array<ClusterDto>> {
|
||||
depositId: number,
|
||||
): Promise<Array<ClusterDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/deposit/${depositId}`,
|
||||
|
@ -14,9 +14,9 @@ export class DrillFlowChartService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell: number,
|
||||
updateFrom?: string,
|
||||
): Promise<Array<DrillFlowChartDto>> {
|
||||
idWell: number,
|
||||
updateFrom?: string,
|
||||
): Promise<Array<DrillFlowChartDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/drillFlowChart`,
|
||||
@ -35,9 +35,9 @@ updateFrom?: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
idWell: number,
|
||||
requestBody?: DrillFlowChartDto,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: DrillFlowChartDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillFlowChart`,
|
||||
@ -54,9 +54,9 @@ requestBody?: DrillFlowChartDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async edit(
|
||||
idWell: number,
|
||||
requestBody?: DrillFlowChartDto,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: DrillFlowChartDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/well/${idWell}/drillFlowChart`,
|
||||
@ -73,9 +73,9 @@ requestBody?: DrillFlowChartDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
idWell: number,
|
||||
drillFlowChartParamsId?: number,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
drillFlowChartParamsId?: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/drillFlowChart`,
|
||||
@ -94,9 +94,9 @@ drillFlowChartParamsId?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getByTelemetry(
|
||||
uid: string,
|
||||
updateFrom?: string,
|
||||
): Promise<Array<DrillFlowChartDto>> {
|
||||
uid: string,
|
||||
updateFrom?: string,
|
||||
): Promise<Array<DrillFlowChartDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/telemetry/${uid}/drillFlowChart`,
|
||||
@ -115,9 +115,9 @@ updateFrom?: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insertRange(
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillFlowChartDto>,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillFlowChartDto>,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillFlowChart/range`,
|
||||
|
@ -15,10 +15,10 @@ export class DrillParamsService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getDefault(
|
||||
idWell: number,
|
||||
startDepth?: number,
|
||||
endDepth?: number,
|
||||
): Promise<DrillParamsDto> {
|
||||
idWell: number,
|
||||
startDepth?: number,
|
||||
endDepth?: number,
|
||||
): Promise<DrillParamsDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/drillParams/autoParams`,
|
||||
@ -37,8 +37,8 @@ endDepth?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getAll(
|
||||
idWell: number,
|
||||
): Promise<Array<DrillParamsDto>> {
|
||||
idWell: number,
|
||||
): Promise<Array<DrillParamsDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/drillParams`,
|
||||
@ -54,9 +54,9 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
idWell: number,
|
||||
requestBody?: DrillParamsDto,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: DrillParamsDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillParams`,
|
||||
@ -74,10 +74,10 @@ requestBody?: DrillParamsDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async update(
|
||||
idWell: number,
|
||||
dtoId?: number,
|
||||
requestBody?: DrillParamsDto,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
dtoId?: number,
|
||||
requestBody?: DrillParamsDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/well/${idWell}/drillParams`,
|
||||
@ -97,9 +97,9 @@ requestBody?: DrillParamsDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
idWell: number,
|
||||
drillParamsId?: number,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
drillParamsId?: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/drillParams`,
|
||||
@ -118,9 +118,9 @@ drillParamsId?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insertRange(
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillParamsDto>,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillParamsDto>,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillParams/range`,
|
||||
@ -137,9 +137,9 @@ requestBody?: Array<DrillParamsDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async save(
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillParamsDto>,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
requestBody?: Array<DrillParamsDto>,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillParams/save`,
|
||||
@ -155,8 +155,8 @@ requestBody?: Array<DrillParamsDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getCompositeAll(
|
||||
idWell: number,
|
||||
): Promise<Array<DrillParamsDto>> {
|
||||
idWell: number,
|
||||
): Promise<Array<DrillParamsDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/drillParams/composite`,
|
||||
|
@ -13,8 +13,8 @@ export class DrillingProgramService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/drillingProgram`,
|
||||
@ -29,8 +29,8 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getOrCreateSharedUrl(
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/drillingProgram/webUrl`,
|
||||
@ -46,9 +46,9 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async createFileMark(
|
||||
idWell: number,
|
||||
requestBody?: FileMarkDto,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
requestBody?: FileMarkDto,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/drillingProgram/fileMark`,
|
||||
@ -65,9 +65,9 @@ requestBody?: FileMarkDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async deleteFileMark(
|
||||
idWell: number,
|
||||
idMark?: number,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
idMark?: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/drillingProgram/fileMark`,
|
||||
|
@ -16,10 +16,10 @@ export class FileService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async saveFiles(
|
||||
idWell: number,
|
||||
idCategory?: number,
|
||||
requestBody?: any,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
idCategory?: number,
|
||||
requestBody?: any,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/files`,
|
||||
@ -45,15 +45,15 @@ requestBody?: any,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getFilesInfo(
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
companyName?: string,
|
||||
fileName?: string,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
skip: number = 0,
|
||||
take: number = 32,
|
||||
): Promise<FileInfoDtoPaginationContainer> {
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
companyName?: string,
|
||||
fileName?: string,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
skip: number = 0,
|
||||
take: number = 32,
|
||||
): Promise<FileInfoDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/files`,
|
||||
@ -78,9 +78,9 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getFile(
|
||||
idWell: number,
|
||||
fileId: number,
|
||||
): Promise<string> {
|
||||
idWell: number,
|
||||
fileId: number,
|
||||
): Promise<string> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/files/${fileId}`,
|
||||
@ -96,9 +96,9 @@ fileId: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
idWell: number,
|
||||
idFile: number,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
idFile: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/files/${idFile}`,
|
||||
@ -114,9 +114,9 @@ idFile: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async createFileMark(
|
||||
idWell: number,
|
||||
requestBody?: FileMarkDto,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
requestBody?: FileMarkDto,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/files/fileMark`,
|
||||
@ -133,9 +133,9 @@ requestBody?: FileMarkDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async deleteFileMark(
|
||||
idWell: number,
|
||||
idMark?: number,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
idMark?: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/files/fileMark`,
|
||||
|
@ -12,8 +12,8 @@ export class MeasureService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getCategories(
|
||||
idWell: number,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/measure/categories`,
|
||||
@ -28,9 +28,9 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getLast(
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/measure/last/${idCategory}`,
|
||||
@ -45,9 +45,9 @@ idCategory: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getHisory(
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
idCategory: number,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/measure/history`,
|
||||
@ -62,9 +62,9 @@ idCategory: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insert(
|
||||
idWell: number,
|
||||
requestBody?: MeasureDto,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
requestBody?: MeasureDto,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/measure`,
|
||||
@ -80,9 +80,9 @@ requestBody?: MeasureDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async update(
|
||||
idWell: number,
|
||||
requestBody?: MeasureDto,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
requestBody?: MeasureDto,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/well/${idWell}/measure`,
|
||||
@ -98,9 +98,9 @@ requestBody?: MeasureDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async markAsDelete(
|
||||
idWell: number,
|
||||
idData: number,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
idData: number,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/measure/history/${idData}`,
|
||||
|
@ -20,14 +20,14 @@ export class MessageService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getMessages(
|
||||
idWell: number,
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
categoryids?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
searchString?: string,
|
||||
): Promise<MessageDtoPaginationContainer> {
|
||||
idWell: number,
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
categoryids?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
searchString?: string,
|
||||
): Promise<MessageDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/message`,
|
||||
@ -50,8 +50,8 @@ searchString?: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getMessagesDateRange(
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/message/datesRange`,
|
||||
|
@ -17,12 +17,12 @@ export class ReportService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async createReport(
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/report`,
|
||||
@ -43,8 +43,8 @@ end?: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getAllReportsNamesByWell(
|
||||
idWell: number,
|
||||
): Promise<Array<string>> {
|
||||
idWell: number,
|
||||
): Promise<Array<string>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/report`,
|
||||
@ -55,7 +55,7 @@ idWell: number,
|
||||
/**
|
||||
* @deprecated
|
||||
* Возвращает имена отчетов, хранящихся на диске,
|
||||
* которые подходят под указанные параметры
|
||||
* которые подходят под указанные параметры
|
||||
* @param idWell id скважины
|
||||
* @param stepSeconds шаг интервала
|
||||
* @param format формат отчета (0-PDF, 1-LAS)
|
||||
@ -65,12 +65,12 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getSuitableReportsNames(
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<Array<string>> {
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<Array<string>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/report/suitableReports`,
|
||||
@ -95,12 +95,12 @@ end?: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getReportSize(
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<string> {
|
||||
idWell: number,
|
||||
stepSeconds?: number,
|
||||
format?: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<string> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/report/reportSize`,
|
||||
@ -121,8 +121,8 @@ end?: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getReportsDateRange(
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/report/datesRange`,
|
||||
|
98
src/services/api/services/RequerstTrackerService.ts
Normal file
98
src/services/api/services/RequerstTrackerService.ts
Normal file
@ -0,0 +1,98 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import { request as __request } from '../core/request';
|
||||
|
||||
export class RequerstTrackerService {
|
||||
|
||||
/**
|
||||
* @param take
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getAll(
|
||||
take: number = 512,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/RequerstTracker`,
|
||||
query: {
|
||||
'take': take,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param take
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getFast(
|
||||
take: number = 512,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/RequerstTracker/fast`,
|
||||
query: {
|
||||
'take': take,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param take
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getSlow(
|
||||
take: number = 512,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/RequerstTracker/slow`,
|
||||
query: {
|
||||
'take': take,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param take
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getError(
|
||||
take: number = 512,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/RequerstTracker/error`,
|
||||
query: {
|
||||
'take': take,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param take
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getUsersStat(
|
||||
take: number = 512,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/RequerstTracker/users`,
|
||||
query: {
|
||||
'take': take,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
|
||||
}
|
@ -22,13 +22,13 @@ export class TelemetryAnalyticsService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getOperationsByWell(
|
||||
idWell: number,
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
categoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<TelemetryOperationDtoPaginationContainer> {
|
||||
idWell: number,
|
||||
skip: number,
|
||||
take: number = 32,
|
||||
categoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<TelemetryOperationDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/telemetryAnalytics/operationsByWell`,
|
||||
@ -50,8 +50,8 @@ end?: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getWellDepthToDay(
|
||||
idWell: number,
|
||||
): Promise<Array<WellDepthToDayDto>> {
|
||||
idWell: number,
|
||||
): Promise<Array<WellDepthToDayDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/telemetryAnalytics/wellDepthToDay`,
|
||||
@ -68,10 +68,10 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getWellDepthToInterval(
|
||||
idWell: number,
|
||||
intervalSeconds?: number,
|
||||
workBeginSeconds?: number,
|
||||
): Promise<Array<WellDepthToIntervalDto>> {
|
||||
idWell: number,
|
||||
intervalSeconds?: number,
|
||||
workBeginSeconds?: number,
|
||||
): Promise<Array<WellDepthToIntervalDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/telemetryAnalytics/wellDepthToInterval`,
|
||||
@ -92,10 +92,10 @@ workBeginSeconds?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getOperationsSummary(
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<Array<TelemetryOperationDurationDto>> {
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
): Promise<Array<TelemetryOperationDurationDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/telemetryAnalytics/operationsSummary`,
|
||||
@ -116,10 +116,10 @@ end?: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getOperationsToInterval(
|
||||
idWell: number,
|
||||
intervalSeconds?: number,
|
||||
workBeginSeconds?: number,
|
||||
): Promise<Array<TelemetryOperationDurationDto>> {
|
||||
idWell: number,
|
||||
intervalSeconds?: number,
|
||||
workBeginSeconds?: number,
|
||||
): Promise<Array<TelemetryOperationDurationDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/telemetryAnalytics/operationsToInterval`,
|
||||
@ -138,8 +138,8 @@ workBeginSeconds?: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getOperationsDateRange(
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/telemetryAnalytics/datesRange`,
|
||||
|
@ -15,9 +15,9 @@ export class TelemetryDataSaubService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postData(
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryDataSaubDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryDataSaubDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/TelemetryDataSaub/${uid}`,
|
||||
@ -28,7 +28,7 @@ requestBody?: Array<TelemetryDataSaubDto>,
|
||||
|
||||
/**
|
||||
* Возвращает данные САУБ по скважине.
|
||||
* По умолчанию за последние 10 минут.
|
||||
* По умолчанию за последние 10 минут.
|
||||
* @param idWell id скважины
|
||||
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
|
||||
* @param intervalSec интервал времени даты начала выборки, секунды
|
||||
@ -37,11 +37,11 @@ requestBody?: Array<TelemetryDataSaubDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getData(
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
intervalSec: number = 600,
|
||||
approxPointsCount: number = 1024,
|
||||
): Promise<TelemetryDataSaubDto> {
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
intervalSec: number = 600,
|
||||
approxPointsCount: number = 1024,
|
||||
): Promise<TelemetryDataSaubDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/TelemetryDataSaub/${idWell}`,
|
||||
@ -61,8 +61,8 @@ approxPointsCount: number = 1024,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getDataDatesRange(
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/TelemetryDataSaub/${idWell}/datesRange`,
|
||||
|
@ -15,9 +15,9 @@ export class TelemetryDataSpinService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postData(
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryDataSpinDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryDataSpinDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/TelemetryDataSpin/${uid}`,
|
||||
@ -28,7 +28,7 @@ requestBody?: Array<TelemetryDataSpinDto>,
|
||||
|
||||
/**
|
||||
* Возвращает данные САУБ по скважине.
|
||||
* По умолчанию за последние 10 минут.
|
||||
* По умолчанию за последние 10 минут.
|
||||
* @param idWell id скважины
|
||||
* @param begin дата начала выборки. По умолчанию: текущее время - intervalSec
|
||||
* @param intervalSec интервал времени даты начала выборки, секунды
|
||||
@ -37,11 +37,11 @@ requestBody?: Array<TelemetryDataSpinDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getData(
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
intervalSec: number = 600,
|
||||
approxPointsCount: number = 1024,
|
||||
): Promise<TelemetryDataSpinDto> {
|
||||
idWell: number,
|
||||
begin?: string,
|
||||
intervalSec: number = 600,
|
||||
approxPointsCount: number = 1024,
|
||||
): Promise<TelemetryDataSpinDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/TelemetryDataSpin/${idWell}`,
|
||||
@ -61,8 +61,8 @@ approxPointsCount: number = 1024,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getDataDatesRange(
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
idWell: number,
|
||||
): Promise<DatesRangeDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/TelemetryDataSpin/${idWell}/datesRange`,
|
||||
|
@ -17,9 +17,9 @@ export class TelemetryService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postInfo(
|
||||
uid: string,
|
||||
requestBody?: TelemetryInfoDto,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: TelemetryInfoDto,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/telemetry/${uid}/info`,
|
||||
@ -36,9 +36,9 @@ requestBody?: TelemetryInfoDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postMessages(
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryMessageDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryMessageDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/telemetry/${uid}/message`,
|
||||
@ -55,9 +55,9 @@ requestBody?: Array<TelemetryMessageDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postEvents(
|
||||
uid: string,
|
||||
requestBody?: Array<EventDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<EventDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/telemetry/${uid}/event`,
|
||||
@ -74,9 +74,9 @@ requestBody?: Array<EventDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async postUsers(
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryUserDto>,
|
||||
): Promise<any> {
|
||||
uid: string,
|
||||
requestBody?: Array<TelemetryUserDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/telemetry/${uid}/user`,
|
||||
|
@ -13,8 +13,8 @@ export class WellCompositeService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell: number,
|
||||
): Promise<Array<WellCompositeDto>> {
|
||||
idWell: number,
|
||||
): Promise<Array<WellCompositeDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/composite`,
|
||||
@ -30,9 +30,9 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async save(
|
||||
idWell: number,
|
||||
requestBody?: Array<WellCompositeDto>,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
requestBody?: Array<WellCompositeDto>,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/composite`,
|
||||
|
@ -15,8 +15,8 @@ export class WellOperationService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getCategories(
|
||||
idWell: string,
|
||||
): Promise<Array<WellOperationCategoryDto>> {
|
||||
idWell: string,
|
||||
): Promise<Array<WellOperationCategoryDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/wellOperations/categories`,
|
||||
@ -40,17 +40,17 @@ idWell: string,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getOperations(
|
||||
idWell: number,
|
||||
opertaionType?: number,
|
||||
sectionTypeIds?: Array<number>,
|
||||
operationCategoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
minDepth: number = -1.7976931348623157e+308,
|
||||
maxDepth: number = 1.7976931348623157e+308,
|
||||
skip: number = 0,
|
||||
take: number = 32,
|
||||
): Promise<WellOperationDtoPaginationContainer> {
|
||||
idWell: number,
|
||||
opertaionType?: number,
|
||||
sectionTypeIds?: Array<number>,
|
||||
operationCategoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
minDepth: number = -1.7976931348623157e+308,
|
||||
maxDepth: number = 1.7976931348623157e+308,
|
||||
skip: number = 0,
|
||||
take: number = 32,
|
||||
): Promise<WellOperationDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/wellOperations`,
|
||||
@ -77,9 +77,9 @@ take: number = 32,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async insertRange(
|
||||
idWell: number,
|
||||
requestBody?: Array<WellOperationDto>,
|
||||
): Promise<Array<WellOperationDto>> {
|
||||
idWell: number,
|
||||
requestBody?: Array<WellOperationDto>,
|
||||
): Promise<Array<WellOperationDto>> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/wellOperations`,
|
||||
@ -96,9 +96,9 @@ requestBody?: Array<WellOperationDto>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
): Promise<WellOperationDto> {
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
): Promise<WellOperationDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/wellOperations/${idOperation}`,
|
||||
@ -115,10 +115,10 @@ idOperation: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async update(
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
requestBody?: WellOperationDto,
|
||||
): Promise<WellOperationDto> {
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
requestBody?: WellOperationDto,
|
||||
): Promise<WellOperationDto> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/well/${idWell}/wellOperations/${idOperation}`,
|
||||
@ -135,9 +135,9 @@ requestBody?: WellOperationDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async delete(
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
): Promise<number> {
|
||||
idWell: number,
|
||||
idOperation: number,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'DELETE',
|
||||
path: `/api/well/${idWell}/wellOperations/${idOperation}`,
|
||||
@ -154,10 +154,10 @@ idOperation: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async import(
|
||||
idWell: number,
|
||||
options: number,
|
||||
requestBody?: any,
|
||||
): Promise<any> {
|
||||
idWell: number,
|
||||
options: number,
|
||||
requestBody?: any,
|
||||
): Promise<any> {
|
||||
const result = await __request({
|
||||
method: 'POST',
|
||||
path: `/api/well/${idWell}/wellOperations/import/${options}`,
|
||||
@ -173,8 +173,8 @@ requestBody?: any,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async export(
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
idWell: number,
|
||||
): Promise<string> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/wellOperations/export`,
|
||||
@ -189,8 +189,8 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getTamplate(
|
||||
idWell: string,
|
||||
): Promise<string> {
|
||||
idWell: string,
|
||||
): Promise<string> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/wellOperations/tamplate`,
|
||||
|
@ -15,8 +15,8 @@ export class WellOperationStatService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getStatCluster(
|
||||
idCluster: number,
|
||||
): Promise<StatClusterDto> {
|
||||
idCluster: number,
|
||||
): Promise<StatClusterDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/cluster/${idCluster}/stat`,
|
||||
@ -31,8 +31,8 @@ idCluster: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getWellsStat(
|
||||
idWells?: Array<number>,
|
||||
): Promise<Array<StatWellDto>> {
|
||||
idWells?: Array<number>,
|
||||
): Promise<Array<StatWellDto>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/wellsStats`,
|
||||
@ -50,8 +50,8 @@ idWells?: Array<number>,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getStatWell(
|
||||
idWell: number,
|
||||
): Promise<StatWellDto> {
|
||||
idWell: number,
|
||||
): Promise<StatWellDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/stat`,
|
||||
@ -66,8 +66,8 @@ idWell: number,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async getTvd(
|
||||
idWell: number,
|
||||
): Promise<Array<WellOperationDtoPlanFactPredictBase>> {
|
||||
idWell: number,
|
||||
): Promise<Array<WellOperationDtoPlanFactPredictBase>> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/${idWell}/tvd`,
|
||||
|
@ -24,15 +24,15 @@ export class WellService {
|
||||
* Редактирует указанные поля скважины
|
||||
* @param idWell Id скважины
|
||||
* @param requestBody Объект параметров скважины.
|
||||
* IdWellType: 1 - Наклонно-направленная, 2 - Горизонтальная.
|
||||
* State: 0 - Неизвестно, 1 - В работе, 2 - Завершена.
|
||||
* IdWellType: 1 - Наклонно-направленная, 2 - Горизонтальная.
|
||||
* State: 0 - Неизвестно, 1 - В работе, 2 - Завершена.
|
||||
* @returns number Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async updateWell(
|
||||
idWell?: number,
|
||||
requestBody?: WellParamsDto,
|
||||
): Promise<number> {
|
||||
idWell?: number,
|
||||
requestBody?: WellParamsDto,
|
||||
): Promise<number> {
|
||||
const result = await __request({
|
||||
method: 'PUT',
|
||||
path: `/api/well`,
|
||||
@ -51,8 +51,8 @@ requestBody?: WellParamsDto,
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static async get(
|
||||
idWell?: number,
|
||||
): Promise<WellDto> {
|
||||
idWell?: number,
|
||||
): Promise<WellDto> {
|
||||
const result = await __request({
|
||||
method: 'GET',
|
||||
path: `/api/well/getWell`,
|
||||
|
Loading…
Reference in New Issue
Block a user