You've already forked npm-core-sdk
51 lines
2.2 KiB
TypeScript
51 lines
2.2 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "trackingQuery.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { TrackingQuery } from "./trackingQuery";
|
|
import type { CountLinesResult } from "./shared";
|
|
import type { CountLinesQuery } from "./shared";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { TrackingByIdResult } from "./trackingQuery";
|
|
import type { TrackingByIdQuery } from "./trackingQuery";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service api.TrackingQuery
|
|
*/
|
|
export interface ITrackingQueryClient {
|
|
/**
|
|
* @generated from protobuf rpc: GetByIds
|
|
*/
|
|
getByIds(input: TrackingByIdQuery, options?: RpcOptions): UnaryCall<TrackingByIdQuery, TrackingByIdResult>;
|
|
/**
|
|
* @generated from protobuf rpc: CountLines
|
|
*/
|
|
countLines(input: CountLinesQuery, options?: RpcOptions): UnaryCall<CountLinesQuery, CountLinesResult>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service api.TrackingQuery
|
|
*/
|
|
export class TrackingQueryClient implements ITrackingQueryClient, ServiceInfo {
|
|
typeName = TrackingQuery.typeName;
|
|
methods = TrackingQuery.methods;
|
|
options = TrackingQuery.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetByIds
|
|
*/
|
|
getByIds(input: TrackingByIdQuery, options?: RpcOptions): UnaryCall<TrackingByIdQuery, TrackingByIdResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<TrackingByIdQuery, TrackingByIdResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CountLines
|
|
*/
|
|
countLines(input: CountLinesQuery, options?: RpcOptions): UnaryCall<CountLinesQuery, CountLinesResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CountLinesQuery, CountLinesResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|