Files
npm-core-sdk/client.client.ts
2025-06-19 09:15:58 +00:00

50 lines
2.4 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "client.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ClientService } from "./client";
import type { RegisterClientRequest } from "./client";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { RegisterClientResult } from "./client";
import type { RegisterPlatformClientRequest } from "./client";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service api.ClientService
*/
export interface IClientServiceClient {
/**
* @generated from protobuf rpc: RegisterPlatformClient
*/
registerPlatformClient(input: RegisterPlatformClientRequest, options?: RpcOptions): UnaryCall<RegisterPlatformClientRequest, RegisterClientResult>;
/**
* @generated from protobuf rpc: RegisterClient
*/
registerClient(input: RegisterClientRequest, options?: RpcOptions): UnaryCall<RegisterClientRequest, RegisterClientResult>;
}
/**
* @generated from protobuf service api.ClientService
*/
export class ClientServiceClient implements IClientServiceClient, ServiceInfo {
typeName = ClientService.typeName;
methods = ClientService.methods;
options = ClientService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: RegisterPlatformClient
*/
registerPlatformClient(input: RegisterPlatformClientRequest, options?: RpcOptions): UnaryCall<RegisterPlatformClientRequest, RegisterClientResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<RegisterPlatformClientRequest, RegisterClientResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RegisterClient
*/
registerClient(input: RegisterClientRequest, options?: RpcOptions): UnaryCall<RegisterClientRequest, RegisterClientResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<RegisterClientRequest, RegisterClientResult>("unary", this._transport, method, opt, input);
}
}