Files
npm-core-sdk/trackingQuery.client.ts
2025-03-18 15:41:49 +00:00

51 lines
2.4 KiB
TypeScript

// @generated by protobuf-ts 2.9.5
// @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(api.TrackingByIdQuery) returns (api.TrackingByIdResult);
*/
getByIds(input: TrackingByIdQuery, options?: RpcOptions): UnaryCall<TrackingByIdQuery, TrackingByIdResult>;
/**
* @generated from protobuf rpc: CountLines(api.CountLinesQuery) returns (api.CountLinesResult);
*/
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(api.TrackingByIdQuery) returns (api.TrackingByIdResult);
*/
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(api.CountLinesQuery) returns (api.CountLinesResult);
*/
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);
}
}