You've already forked npm-viz-sdk
298 lines
17 KiB
TypeScript
298 lines
17 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
|
|
// @generated from protobuf file "viz-dashboard.proto" (package "vizapi", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { DashboardService } from "./viz-dashboard";
|
|
import type { CopySiteDashboardResult } from "./viz-dashboard";
|
|
import type { CopySiteDashboardRequest } from "./viz-dashboard";
|
|
import type { GetSiteDashboardResult } from "./viz-dashboard";
|
|
import type { GetSiteDashboardRequest } from "./viz-dashboard";
|
|
import type { UpdateSiteDashboardResult } from "./viz-dashboard";
|
|
import type { UpdateSiteDashboardRequest } from "./viz-dashboard";
|
|
import type { DeleteDashboardsForSiteResult } from "./viz-dashboard";
|
|
import type { DeleteDashboardsForSiteRequest } from "./viz-dashboard";
|
|
import type { DeleteSiteDashboardResult } from "./viz-dashboard";
|
|
import type { DeleteSiteDashboardRequest } from "./viz-dashboard";
|
|
import type { ListSiteDashboardResult } from "./viz-dashboard";
|
|
import type { ListSiteDashboardRequest } from "./viz-dashboard";
|
|
import type { CreateSiteDashboardResult } from "./viz-dashboard";
|
|
import type { CreateSiteDashboardRequest } from "./viz-dashboard";
|
|
import type { CopyProjectDashboardResult } from "./viz-dashboard";
|
|
import type { CopyProjectDashboardRequest } from "./viz-dashboard";
|
|
import type { GetProjectDashboardResult } from "./viz-dashboard";
|
|
import type { GetProjectDashboardRequest } from "./viz-dashboard";
|
|
import type { UpdateProjectDashboardResult } from "./viz-dashboard";
|
|
import type { UpdateProjectDashboardRequest } from "./viz-dashboard";
|
|
import type { DeleteProjectDashboardResult } from "./viz-dashboard";
|
|
import type { DeleteProjectDashboardRequest } from "./viz-dashboard";
|
|
import type { ListProjectDashboardResult } from "./viz-dashboard";
|
|
import type { ListProjectDashboardRequest } from "./viz-dashboard";
|
|
import type { CreateProjectDashboardResult } from "./viz-dashboard";
|
|
import type { CreateProjectDashboardRequest } from "./viz-dashboard";
|
|
import type { CopyDashboardResult } from "./viz-dashboard";
|
|
import type { CopyDashboardRequest } from "./viz-dashboard";
|
|
import type { GetDashboardResult } from "./viz-dashboard";
|
|
import type { GetDashboardRequest } from "./viz-dashboard";
|
|
import type { UpdateDashboardResult } from "./viz-dashboard";
|
|
import type { UpdateDashboardRequest } from "./viz-dashboard";
|
|
import type { DeleteDashboardsForProjectResult } from "./viz-dashboard";
|
|
import type { DeleteDashboardsForProjectRequest } from "./viz-dashboard";
|
|
import type { DeleteDashboardsForOrganisationResult } from "./viz-dashboard";
|
|
import type { DeleteDashboardsForOrganisationRequest } from "./viz-dashboard";
|
|
import type { DeleteDashboardResult } from "./viz-dashboard";
|
|
import type { DeleteDashboardRequest } from "./viz-dashboard";
|
|
import type { ListDashboardResult } from "./viz-dashboard";
|
|
import type { ListDashboardRequest } from "./viz-dashboard";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { CreateDashboardResult } from "./viz-dashboard";
|
|
import type { CreateDashboardRequest } from "./viz-dashboard";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service vizapi.DashboardService
|
|
*/
|
|
export interface IDashboardServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: Create
|
|
*/
|
|
create(input: CreateDashboardRequest, options?: RpcOptions): UnaryCall<CreateDashboardRequest, CreateDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: List
|
|
*/
|
|
list(input: ListDashboardRequest, options?: RpcOptions): UnaryCall<ListDashboardRequest, ListDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Delete
|
|
*/
|
|
delete(input: DeleteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteDashboardRequest, DeleteDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteDashboardsForOrganisation
|
|
*/
|
|
deleteDashboardsForOrganisation(input: DeleteDashboardsForOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForOrganisationRequest, DeleteDashboardsForOrganisationResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteDashboardsForProject
|
|
*/
|
|
deleteDashboardsForProject(input: DeleteDashboardsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForProjectRequest, DeleteDashboardsForProjectResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Update
|
|
*/
|
|
update(input: UpdateDashboardRequest, options?: RpcOptions): UnaryCall<UpdateDashboardRequest, UpdateDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Get
|
|
*/
|
|
get(input: GetDashboardRequest, options?: RpcOptions): UnaryCall<GetDashboardRequest, GetDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Copy
|
|
*/
|
|
copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall<CopyDashboardRequest, CopyDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: CreateProject
|
|
*/
|
|
createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall<CreateProjectDashboardRequest, CreateProjectDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: ListProject
|
|
*/
|
|
listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall<ListProjectDashboardRequest, ListProjectDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteProject
|
|
*/
|
|
deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall<DeleteProjectDashboardRequest, DeleteProjectDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: UpdateProject
|
|
*/
|
|
updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall<UpdateProjectDashboardRequest, UpdateProjectDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: GetProject
|
|
*/
|
|
getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall<GetProjectDashboardRequest, GetProjectDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: CopyProject
|
|
*/
|
|
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: CreateSite
|
|
*/
|
|
createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall<CreateSiteDashboardRequest, CreateSiteDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: ListSite
|
|
*/
|
|
listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall<ListSiteDashboardRequest, ListSiteDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteSite
|
|
*/
|
|
deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteSiteDashboardRequest, DeleteSiteDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteDashboardsForSite
|
|
*/
|
|
deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult>;
|
|
/**
|
|
* @generated from protobuf rpc: UpdateSite
|
|
*/
|
|
updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall<UpdateSiteDashboardRequest, UpdateSiteDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: GetSite
|
|
*/
|
|
getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall<GetSiteDashboardRequest, GetSiteDashboardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: CopySite
|
|
*/
|
|
copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall<CopySiteDashboardRequest, CopySiteDashboardResult>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service vizapi.DashboardService
|
|
*/
|
|
export class DashboardServiceClient implements IDashboardServiceClient, ServiceInfo {
|
|
typeName = DashboardService.typeName;
|
|
methods = DashboardService.methods;
|
|
options = DashboardService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Create
|
|
*/
|
|
create(input: CreateDashboardRequest, options?: RpcOptions): UnaryCall<CreateDashboardRequest, CreateDashboardResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateDashboardRequest, CreateDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: List
|
|
*/
|
|
list(input: ListDashboardRequest, options?: RpcOptions): UnaryCall<ListDashboardRequest, ListDashboardResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListDashboardRequest, ListDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Delete
|
|
*/
|
|
delete(input: DeleteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteDashboardRequest, DeleteDashboardResult> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteDashboardRequest, DeleteDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteDashboardsForOrganisation
|
|
*/
|
|
deleteDashboardsForOrganisation(input: DeleteDashboardsForOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForOrganisationRequest, DeleteDashboardsForOrganisationResult> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteDashboardsForOrganisationRequest, DeleteDashboardsForOrganisationResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteDashboardsForProject
|
|
*/
|
|
deleteDashboardsForProject(input: DeleteDashboardsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForProjectRequest, DeleteDashboardsForProjectResult> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteDashboardsForProjectRequest, DeleteDashboardsForProjectResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Update
|
|
*/
|
|
update(input: UpdateDashboardRequest, options?: RpcOptions): UnaryCall<UpdateDashboardRequest, UpdateDashboardResult> {
|
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateDashboardRequest, UpdateDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Get
|
|
*/
|
|
get(input: GetDashboardRequest, options?: RpcOptions): UnaryCall<GetDashboardRequest, GetDashboardResult> {
|
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetDashboardRequest, GetDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Copy
|
|
*/
|
|
copy(input: CopyDashboardRequest, options?: RpcOptions): UnaryCall<CopyDashboardRequest, CopyDashboardResult> {
|
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CopyDashboardRequest, CopyDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CreateProject
|
|
*/
|
|
createProject(input: CreateProjectDashboardRequest, options?: RpcOptions): UnaryCall<CreateProjectDashboardRequest, CreateProjectDashboardResult> {
|
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateProjectDashboardRequest, CreateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ListProject
|
|
*/
|
|
listProject(input: ListProjectDashboardRequest, options?: RpcOptions): UnaryCall<ListProjectDashboardRequest, ListProjectDashboardResult> {
|
|
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListProjectDashboardRequest, ListProjectDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteProject
|
|
*/
|
|
deleteProject(input: DeleteProjectDashboardRequest, options?: RpcOptions): UnaryCall<DeleteProjectDashboardRequest, DeleteProjectDashboardResult> {
|
|
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteProjectDashboardRequest, DeleteProjectDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: UpdateProject
|
|
*/
|
|
updateProject(input: UpdateProjectDashboardRequest, options?: RpcOptions): UnaryCall<UpdateProjectDashboardRequest, UpdateProjectDashboardResult> {
|
|
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateProjectDashboardRequest, UpdateProjectDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetProject
|
|
*/
|
|
getProject(input: GetProjectDashboardRequest, options?: RpcOptions): UnaryCall<GetProjectDashboardRequest, GetProjectDashboardResult> {
|
|
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetProjectDashboardRequest, GetProjectDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CopyProject
|
|
*/
|
|
copyProject(input: CopyProjectDashboardRequest, options?: RpcOptions): UnaryCall<CopyProjectDashboardRequest, CopyProjectDashboardResult> {
|
|
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CopyProjectDashboardRequest, CopyProjectDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CreateSite
|
|
*/
|
|
createSite(input: CreateSiteDashboardRequest, options?: RpcOptions): UnaryCall<CreateSiteDashboardRequest, CreateSiteDashboardResult> {
|
|
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateSiteDashboardRequest, CreateSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ListSite
|
|
*/
|
|
listSite(input: ListSiteDashboardRequest, options?: RpcOptions): UnaryCall<ListSiteDashboardRequest, ListSiteDashboardResult> {
|
|
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListSiteDashboardRequest, ListSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteSite
|
|
*/
|
|
deleteSite(input: DeleteSiteDashboardRequest, options?: RpcOptions): UnaryCall<DeleteSiteDashboardRequest, DeleteSiteDashboardResult> {
|
|
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteSiteDashboardRequest, DeleteSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteDashboardsForSite
|
|
*/
|
|
deleteDashboardsForSite(input: DeleteDashboardsForSiteRequest, options?: RpcOptions): UnaryCall<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult> {
|
|
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteDashboardsForSiteRequest, DeleteDashboardsForSiteResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: UpdateSite
|
|
*/
|
|
updateSite(input: UpdateSiteDashboardRequest, options?: RpcOptions): UnaryCall<UpdateSiteDashboardRequest, UpdateSiteDashboardResult> {
|
|
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateSiteDashboardRequest, UpdateSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetSite
|
|
*/
|
|
getSite(input: GetSiteDashboardRequest, options?: RpcOptions): UnaryCall<GetSiteDashboardRequest, GetSiteDashboardResult> {
|
|
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetSiteDashboardRequest, GetSiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CopySite
|
|
*/
|
|
copySite(input: CopySiteDashboardRequest, options?: RpcOptions): UnaryCall<CopySiteDashboardRequest, CopySiteDashboardResult> {
|
|
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CopySiteDashboardRequest, CopySiteDashboardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|