Files
npm-core-sdk/proj.client.ts
2025-08-22 13:50:54 +00:00

192 lines
9.7 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "proj.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ProjectService } from "./proj";
import type { CleanDeletedProjectsResult } from "./proj";
import type { CleanDeletedProjectsRequest } from "./proj";
import type { DeleteProjectInDBResult } from "./proj";
import type { DeleteProjectInDBRequest } from "./proj";
import type { GetMyContextResult } from "./proj";
import type { GetMyContextRequest } from "./proj";
import type { SuggestProjectIDResult } from "./proj";
import type { SuggestProjectIDRequest } from "./proj";
import type { DeleteProjectResult } from "./proj";
import type { DeleteProjectRequest } from "./proj";
import type { UpdateProjectStatusResult } from "./proj";
import type { UpdateProjectStatusRequest } from "./proj";
import type { UpdateProjectResult } from "./proj";
import type { UpdateProjectRequest } from "./proj";
import type { SetModulesProjectResult } from "./proj";
import type { SetModulesProjectRequest } from "./proj";
import type { CreateProjectResult } from "./proj";
import type { CreateProjectRequest } from "./proj";
import type { ListAllProjectResult } from "./proj";
import type { ListAllProjectRequest } from "./proj";
import type { ListProjectResult } from "./proj";
import type { ListProjectRequest } from "./proj";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { GetProjectResult } from "./proj";
import type { GetProjectRequest } from "./proj";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service api.ProjectService
*/
export interface IProjectServiceClient {
/**
* @generated from protobuf rpc: Get
*/
get(input: GetProjectRequest, options?: RpcOptions): UnaryCall<GetProjectRequest, GetProjectResult>;
/**
* @generated from protobuf rpc: List
*/
list(input: ListProjectRequest, options?: RpcOptions): UnaryCall<ListProjectRequest, ListProjectResult>;
/**
* @generated from protobuf rpc: ListAll
*/
listAll(input: ListAllProjectRequest, options?: RpcOptions): UnaryCall<ListAllProjectRequest, ListAllProjectResult>;
/**
* @generated from protobuf rpc: Create
*/
create(input: CreateProjectRequest, options?: RpcOptions): UnaryCall<CreateProjectRequest, CreateProjectResult>;
/**
* @generated from protobuf rpc: SetModules
*/
setModules(input: SetModulesProjectRequest, options?: RpcOptions): UnaryCall<SetModulesProjectRequest, SetModulesProjectResult>;
/**
* @generated from protobuf rpc: Update
*/
update(input: UpdateProjectRequest, options?: RpcOptions): UnaryCall<UpdateProjectRequest, UpdateProjectResult>;
/**
* @generated from protobuf rpc: UpdateStatus
*/
updateStatus(input: UpdateProjectStatusRequest, options?: RpcOptions): UnaryCall<UpdateProjectStatusRequest, UpdateProjectStatusResult>;
/**
* @generated from protobuf rpc: Delete
*/
delete(input: DeleteProjectRequest, options?: RpcOptions): UnaryCall<DeleteProjectRequest, DeleteProjectResult>;
/**
* @generated from protobuf rpc: SuggestID
*/
suggestID(input: SuggestProjectIDRequest, options?: RpcOptions): UnaryCall<SuggestProjectIDRequest, SuggestProjectIDResult>;
/**
* @generated from protobuf rpc: GetMyUIContext
*/
getMyUIContext(input: GetMyContextRequest, options?: RpcOptions): UnaryCall<GetMyContextRequest, GetMyContextResult>;
/**
* @generated from protobuf rpc: GetMyContext
*/
getMyContext(input: GetMyContextRequest, options?: RpcOptions): UnaryCall<GetMyContextRequest, GetMyContextResult>;
/**
* @generated from protobuf rpc: DeleteProjectInDB
*/
deleteProjectInDB(input: DeleteProjectInDBRequest, options?: RpcOptions): UnaryCall<DeleteProjectInDBRequest, DeleteProjectInDBResult>;
/**
* @generated from protobuf rpc: CleanDeletedProjects
*/
cleanDeletedProjects(input: CleanDeletedProjectsRequest, options?: RpcOptions): UnaryCall<CleanDeletedProjectsRequest, CleanDeletedProjectsResult>;
}
/**
* @generated from protobuf service api.ProjectService
*/
export class ProjectServiceClient implements IProjectServiceClient, ServiceInfo {
typeName = ProjectService.typeName;
methods = ProjectService.methods;
options = ProjectService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: Get
*/
get(input: GetProjectRequest, options?: RpcOptions): UnaryCall<GetProjectRequest, GetProjectResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<GetProjectRequest, GetProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: List
*/
list(input: ListProjectRequest, options?: RpcOptions): UnaryCall<ListProjectRequest, ListProjectResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<ListProjectRequest, ListProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListAll
*/
listAll(input: ListAllProjectRequest, options?: RpcOptions): UnaryCall<ListAllProjectRequest, ListAllProjectResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<ListAllProjectRequest, ListAllProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Create
*/
create(input: CreateProjectRequest, options?: RpcOptions): UnaryCall<CreateProjectRequest, CreateProjectResult> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateProjectRequest, CreateProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetModules
*/
setModules(input: SetModulesProjectRequest, options?: RpcOptions): UnaryCall<SetModulesProjectRequest, SetModulesProjectResult> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<SetModulesProjectRequest, SetModulesProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Update
*/
update(input: UpdateProjectRequest, options?: RpcOptions): UnaryCall<UpdateProjectRequest, UpdateProjectResult> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateProjectRequest, UpdateProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateStatus
*/
updateStatus(input: UpdateProjectStatusRequest, options?: RpcOptions): UnaryCall<UpdateProjectStatusRequest, UpdateProjectStatusResult> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateProjectStatusRequest, UpdateProjectStatusResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Delete
*/
delete(input: DeleteProjectRequest, options?: RpcOptions): UnaryCall<DeleteProjectRequest, DeleteProjectResult> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteProjectRequest, DeleteProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SuggestID
*/
suggestID(input: SuggestProjectIDRequest, options?: RpcOptions): UnaryCall<SuggestProjectIDRequest, SuggestProjectIDResult> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<SuggestProjectIDRequest, SuggestProjectIDResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetMyUIContext
*/
getMyUIContext(input: GetMyContextRequest, options?: RpcOptions): UnaryCall<GetMyContextRequest, GetMyContextResult> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<GetMyContextRequest, GetMyContextResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetMyContext
*/
getMyContext(input: GetMyContextRequest, options?: RpcOptions): UnaryCall<GetMyContextRequest, GetMyContextResult> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<GetMyContextRequest, GetMyContextResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteProjectInDB
*/
deleteProjectInDB(input: DeleteProjectInDBRequest, options?: RpcOptions): UnaryCall<DeleteProjectInDBRequest, DeleteProjectInDBResult> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteProjectInDBRequest, DeleteProjectInDBResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CleanDeletedProjects
*/
cleanDeletedProjects(input: CleanDeletedProjectsRequest, options?: RpcOptions): UnaryCall<CleanDeletedProjectsRequest, CleanDeletedProjectsResult> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<CleanDeletedProjectsRequest, CleanDeletedProjectsResult>("unary", this._transport, method, opt, input);
}
}