Files
npm-viz-sdk/viz-view.client.ts
2025-10-06 07:44:51 +00:00

194 lines
9.7 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
// @generated from protobuf file "viz-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 { ViewService } from "./viz-view";
import type { ExtractProjectResult } from "./viz-view";
import type { ExtractProjectRequest } from "./viz-view";
import type { ListProjectViewResult } from "./viz-view";
import type { ListProjectViewRequest } from "./viz-view";
import type { DeleteProjectViewResult } from "./viz-view";
import type { DeleteProjectViewRequest } from "./viz-view";
import type { UpdateProjectViewResult } from "./viz-view";
import type { UpdateProjectViewRequest } from "./viz-view";
import type { CreateProjectViewResult } from "./viz-view";
import type { CreateProjectViewRequest } from "./viz-view";
import type { GetProjectViewResult } from "./viz-view";
import type { GetProjectViewRequest } from "./viz-view";
import type { ExtractResult } from "./viz-view";
import type { ExtractRequest } from "./viz-view";
import type { DeleteViewsForProjectResult } from "./viz-view";
import type { DeleteViewsForProjectRequest } from "./viz-view";
import type { ListViewResult } from "./viz-view";
import type { ListViewRequest } from "./viz-view";
import type { DeleteViewResult } from "./viz-view";
import type { DeleteViewRequest } from "./viz-view";
import type { UpdateViewResult } from "./viz-view";
import type { UpdateViewRequest } from "./viz-view";
import type { CreateViewResult } from "./viz-view";
import type { CreateViewRequest } from "./viz-view";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { GetViewResult } from "./viz-view";
import type { GetViewRequest } from "./viz-view";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service vizapi.ViewService
*/
export interface IViewServiceClient {
/**
* @generated from protobuf rpc: Get
*/
get(input: GetViewRequest, options?: RpcOptions): UnaryCall<GetViewRequest, GetViewResult>;
/**
* @generated from protobuf rpc: Create
*/
create(input: CreateViewRequest, options?: RpcOptions): UnaryCall<CreateViewRequest, CreateViewResult>;
/**
* @generated from protobuf rpc: Update
*/
update(input: UpdateViewRequest, options?: RpcOptions): UnaryCall<UpdateViewRequest, UpdateViewResult>;
/**
* @generated from protobuf rpc: Delete
*/
delete(input: DeleteViewRequest, options?: RpcOptions): UnaryCall<DeleteViewRequest, DeleteViewResult>;
/**
* @generated from protobuf rpc: List
*/
list(input: ListViewRequest, options?: RpcOptions): UnaryCall<ListViewRequest, ListViewResult>;
/**
* @generated from protobuf rpc: DeleteViewsForProject
*/
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>;
/**
* @generated from protobuf rpc: Extract
*/
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult>;
/**
* @generated from protobuf rpc: GetProject
*/
getProject(input: GetProjectViewRequest, options?: RpcOptions): UnaryCall<GetProjectViewRequest, GetProjectViewResult>;
/**
* @generated from protobuf rpc: CreateProject
*/
createProject(input: CreateProjectViewRequest, options?: RpcOptions): UnaryCall<CreateProjectViewRequest, CreateProjectViewResult>;
/**
* @generated from protobuf rpc: UpdateProject
*/
updateProject(input: UpdateProjectViewRequest, options?: RpcOptions): UnaryCall<UpdateProjectViewRequest, UpdateProjectViewResult>;
/**
* @generated from protobuf rpc: DeleteProject
*/
deleteProject(input: DeleteProjectViewRequest, options?: RpcOptions): UnaryCall<DeleteProjectViewRequest, DeleteProjectViewResult>;
/**
* @generated from protobuf rpc: ListProject
*/
listProject(input: ListProjectViewRequest, options?: RpcOptions): UnaryCall<ListProjectViewRequest, ListProjectViewResult>;
/**
* @generated from protobuf rpc: ExtractProject
*/
extractProject(input: ExtractProjectRequest, options?: RpcOptions): UnaryCall<ExtractProjectRequest, ExtractProjectResult>;
}
/**
* @generated from protobuf service vizapi.ViewService
*/
export class ViewServiceClient implements IViewServiceClient, ServiceInfo {
typeName = ViewService.typeName;
methods = ViewService.methods;
options = ViewService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: Get
*/
get(input: GetViewRequest, options?: RpcOptions): UnaryCall<GetViewRequest, GetViewResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<GetViewRequest, GetViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Create
*/
create(input: CreateViewRequest, options?: RpcOptions): UnaryCall<CreateViewRequest, CreateViewResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateViewRequest, CreateViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Update
*/
update(input: UpdateViewRequest, options?: RpcOptions): UnaryCall<UpdateViewRequest, UpdateViewResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateViewRequest, UpdateViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Delete
*/
delete(input: DeleteViewRequest, options?: RpcOptions): UnaryCall<DeleteViewRequest, DeleteViewResult> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteViewRequest, DeleteViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: List
*/
list(input: ListViewRequest, options?: RpcOptions): UnaryCall<ListViewRequest, ListViewResult> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<ListViewRequest, ListViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteViewsForProject
*/
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Extract
*/
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<ExtractRequest, ExtractResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetProject
*/
getProject(input: GetProjectViewRequest, options?: RpcOptions): UnaryCall<GetProjectViewRequest, GetProjectViewResult> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<GetProjectViewRequest, GetProjectViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateProject
*/
createProject(input: CreateProjectViewRequest, options?: RpcOptions): UnaryCall<CreateProjectViewRequest, CreateProjectViewResult> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateProjectViewRequest, CreateProjectViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateProject
*/
updateProject(input: UpdateProjectViewRequest, options?: RpcOptions): UnaryCall<UpdateProjectViewRequest, UpdateProjectViewResult> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateProjectViewRequest, UpdateProjectViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteProject
*/
deleteProject(input: DeleteProjectViewRequest, options?: RpcOptions): UnaryCall<DeleteProjectViewRequest, DeleteProjectViewResult> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteProjectViewRequest, DeleteProjectViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListProject
*/
listProject(input: ListProjectViewRequest, options?: RpcOptions): UnaryCall<ListProjectViewRequest, ListProjectViewResult> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<ListProjectViewRequest, ListProjectViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ExtractProject
*/
extractProject(input: ExtractProjectRequest, options?: RpcOptions): UnaryCall<ExtractProjectRequest, ExtractProjectResult> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<ExtractProjectRequest, ExtractProjectResult>("unary", this._transport, method, opt, input);
}
}