You've already forked npm-viz-sdk
51 lines
2.6 KiB
TypeScript
51 lines
2.6 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
|
// @generated from protobuf file "viz-default-view.proto" (package "vizapi", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { DefaultViewService } from "./viz-default-view";
|
|
import type { UpdatePlatformDefaultViewResult } from "./viz-default-view";
|
|
import type { UpdatePlatformDefaultViewRequest } from "./viz-default-view";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { CreatePlatformDefaultViewResult } from "./viz-default-view";
|
|
import type { CreatePlatformDefaultViewRequest } from "./viz-default-view";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service vizapi.DefaultViewService
|
|
*/
|
|
export interface IDefaultViewServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: CreatePlatform
|
|
*/
|
|
createPlatform(input: CreatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall<CreatePlatformDefaultViewRequest, CreatePlatformDefaultViewResult>;
|
|
/**
|
|
* @generated from protobuf rpc: UpdatePlatform
|
|
*/
|
|
updatePlatform(input: UpdatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall<UpdatePlatformDefaultViewRequest, UpdatePlatformDefaultViewResult>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service vizapi.DefaultViewService
|
|
*/
|
|
export class DefaultViewServiceClient implements IDefaultViewServiceClient, ServiceInfo {
|
|
typeName = DefaultViewService.typeName;
|
|
methods = DefaultViewService.methods;
|
|
options = DefaultViewService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CreatePlatform
|
|
*/
|
|
createPlatform(input: CreatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall<CreatePlatformDefaultViewRequest, CreatePlatformDefaultViewResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreatePlatformDefaultViewRequest, CreatePlatformDefaultViewResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: UpdatePlatform
|
|
*/
|
|
updatePlatform(input: UpdatePlatformDefaultViewRequest, options?: RpcOptions): UnaryCall<UpdatePlatformDefaultViewRequest, UpdatePlatformDefaultViewResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdatePlatformDefaultViewRequest, UpdatePlatformDefaultViewResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|