You've already forked npm-core-sdk
142 lines
9.0 KiB
TypeScript
142 lines
9.0 KiB
TypeScript
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
|
// @generated from protobuf file "connection.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { ConnectionService } from "./connection";
|
|
import type { IsConnectionExistResult } from "./connection";
|
|
import type { IsConnectionExistRequest } from "./connection";
|
|
import type { DeleteConnectionInDBResult } from "./connection";
|
|
import type { DeleteConnectionInDBRequest } from "./connection";
|
|
import type { RenewConnectionSAResult } from "./connection";
|
|
import type { RenewConnectionSARequest } from "./connection";
|
|
import type { SetRunDetailsConnectionsResult } from "./connection";
|
|
import type { SetRunDetailsConnectionsRequest } from "./connection";
|
|
import type { GetStartDetailsConnectionsResult } from "./connection";
|
|
import type { GetStartDetailsConnectionsRequest } from "./connection";
|
|
import type { GetDetailsConnectionsResult } from "./connection";
|
|
import type { GetDetailsConnectionsRequest } from "./connection";
|
|
import type { ListConnectionsResult } from "./connection";
|
|
import type { ListConnectionsRequest } from "./connection";
|
|
import type { DeleteConnectionResult } from "./connection";
|
|
import type { DeleteConnectionRequest } from "./connection";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { CreateConnectionResult } from "./connection";
|
|
import type { CreateConnectionRequest } from "./connection";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service api.ConnectionService
|
|
*/
|
|
export interface IConnectionServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: Create(api.CreateConnectionRequest) returns (api.CreateConnectionResult);
|
|
*/
|
|
create(input: CreateConnectionRequest, options?: RpcOptions): UnaryCall<CreateConnectionRequest, CreateConnectionResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Delete(api.DeleteConnectionRequest) returns (api.DeleteConnectionResult);
|
|
*/
|
|
delete(input: DeleteConnectionRequest, options?: RpcOptions): UnaryCall<DeleteConnectionRequest, DeleteConnectionResult>;
|
|
/**
|
|
* @generated from protobuf rpc: List(api.ListConnectionsRequest) returns (api.ListConnectionsResult);
|
|
*/
|
|
list(input: ListConnectionsRequest, options?: RpcOptions): UnaryCall<ListConnectionsRequest, ListConnectionsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: GetDetails(api.GetDetailsConnectionsRequest) returns (api.GetDetailsConnectionsResult);
|
|
*/
|
|
getDetails(input: GetDetailsConnectionsRequest, options?: RpcOptions): UnaryCall<GetDetailsConnectionsRequest, GetDetailsConnectionsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: GetStartDetails(api.GetStartDetailsConnectionsRequest) returns (api.GetStartDetailsConnectionsResult);
|
|
*/
|
|
getStartDetails(input: GetStartDetailsConnectionsRequest, options?: RpcOptions): UnaryCall<GetStartDetailsConnectionsRequest, GetStartDetailsConnectionsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: SetRunDetails(api.SetRunDetailsConnectionsRequest) returns (api.SetRunDetailsConnectionsResult);
|
|
*/
|
|
setRunDetails(input: SetRunDetailsConnectionsRequest, options?: RpcOptions): UnaryCall<SetRunDetailsConnectionsRequest, SetRunDetailsConnectionsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: RenewConnectionSA(api.RenewConnectionSARequest) returns (api.RenewConnectionSAResult);
|
|
*/
|
|
renewConnectionSA(input: RenewConnectionSARequest, options?: RpcOptions): UnaryCall<RenewConnectionSARequest, RenewConnectionSAResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteConnectionInDB(api.DeleteConnectionInDBRequest) returns (api.DeleteConnectionInDBResult);
|
|
*/
|
|
deleteConnectionInDB(input: DeleteConnectionInDBRequest, options?: RpcOptions): UnaryCall<DeleteConnectionInDBRequest, DeleteConnectionInDBResult>;
|
|
/**
|
|
* @generated from protobuf rpc: IsConnectionExist(api.IsConnectionExistRequest) returns (api.IsConnectionExistResult);
|
|
*/
|
|
isConnectionExist(input: IsConnectionExistRequest, options?: RpcOptions): UnaryCall<IsConnectionExistRequest, IsConnectionExistResult>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service api.ConnectionService
|
|
*/
|
|
export class ConnectionServiceClient implements IConnectionServiceClient, ServiceInfo {
|
|
typeName = ConnectionService.typeName;
|
|
methods = ConnectionService.methods;
|
|
options = ConnectionService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Create(api.CreateConnectionRequest) returns (api.CreateConnectionResult);
|
|
*/
|
|
create(input: CreateConnectionRequest, options?: RpcOptions): UnaryCall<CreateConnectionRequest, CreateConnectionResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateConnectionRequest, CreateConnectionResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Delete(api.DeleteConnectionRequest) returns (api.DeleteConnectionResult);
|
|
*/
|
|
delete(input: DeleteConnectionRequest, options?: RpcOptions): UnaryCall<DeleteConnectionRequest, DeleteConnectionResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteConnectionRequest, DeleteConnectionResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: List(api.ListConnectionsRequest) returns (api.ListConnectionsResult);
|
|
*/
|
|
list(input: ListConnectionsRequest, options?: RpcOptions): UnaryCall<ListConnectionsRequest, ListConnectionsResult> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListConnectionsRequest, ListConnectionsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetDetails(api.GetDetailsConnectionsRequest) returns (api.GetDetailsConnectionsResult);
|
|
*/
|
|
getDetails(input: GetDetailsConnectionsRequest, options?: RpcOptions): UnaryCall<GetDetailsConnectionsRequest, GetDetailsConnectionsResult> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetDetailsConnectionsRequest, GetDetailsConnectionsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetStartDetails(api.GetStartDetailsConnectionsRequest) returns (api.GetStartDetailsConnectionsResult);
|
|
*/
|
|
getStartDetails(input: GetStartDetailsConnectionsRequest, options?: RpcOptions): UnaryCall<GetStartDetailsConnectionsRequest, GetStartDetailsConnectionsResult> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetStartDetailsConnectionsRequest, GetStartDetailsConnectionsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: SetRunDetails(api.SetRunDetailsConnectionsRequest) returns (api.SetRunDetailsConnectionsResult);
|
|
*/
|
|
setRunDetails(input: SetRunDetailsConnectionsRequest, options?: RpcOptions): UnaryCall<SetRunDetailsConnectionsRequest, SetRunDetailsConnectionsResult> {
|
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<SetRunDetailsConnectionsRequest, SetRunDetailsConnectionsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: RenewConnectionSA(api.RenewConnectionSARequest) returns (api.RenewConnectionSAResult);
|
|
*/
|
|
renewConnectionSA(input: RenewConnectionSARequest, options?: RpcOptions): UnaryCall<RenewConnectionSARequest, RenewConnectionSAResult> {
|
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<RenewConnectionSARequest, RenewConnectionSAResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteConnectionInDB(api.DeleteConnectionInDBRequest) returns (api.DeleteConnectionInDBResult);
|
|
*/
|
|
deleteConnectionInDB(input: DeleteConnectionInDBRequest, options?: RpcOptions): UnaryCall<DeleteConnectionInDBRequest, DeleteConnectionInDBResult> {
|
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteConnectionInDBRequest, DeleteConnectionInDBResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: IsConnectionExist(api.IsConnectionExistRequest) returns (api.IsConnectionExistResult);
|
|
*/
|
|
isConnectionExist(input: IsConnectionExistRequest, options?: RpcOptions): UnaryCall<IsConnectionExistRequest, IsConnectionExistResult> {
|
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<IsConnectionExistRequest, IsConnectionExistResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|