You've already forked npm-core-sdk
72 lines
3.1 KiB
TypeScript
72 lines
3.1 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "stockInput.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { StockInputAPI } from "./stockInput";
|
|
import type { StockDeletedResponse } from "./stockInput";
|
|
import type { StockDeletedRequest } from "./stockInput";
|
|
import type { StockSnapshottedResponse } from "./stockInput";
|
|
import type { StockSnapshottedRequest } from "./stockInput";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { StockMovedResponse } from "./stockInput";
|
|
import type { StockMovedRequest } from "./stockInput";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
*
|
|
* API-server services
|
|
*
|
|
* @generated from protobuf service api.StockInputAPI
|
|
*/
|
|
export interface IStockInputAPIClient {
|
|
/**
|
|
* @generated from protobuf rpc: Moved
|
|
*/
|
|
moved(input: StockMovedRequest, options?: RpcOptions): UnaryCall<StockMovedRequest, StockMovedResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: Snapshotted
|
|
*/
|
|
snapshotted(input: StockSnapshottedRequest, options?: RpcOptions): UnaryCall<StockSnapshottedRequest, StockSnapshottedResponse>;
|
|
/**
|
|
* @deprecated
|
|
* @generated from protobuf rpc: Deleted
|
|
*/
|
|
deleted(input: StockDeletedRequest, options?: RpcOptions): UnaryCall<StockDeletedRequest, StockDeletedResponse>;
|
|
}
|
|
/**
|
|
*
|
|
* API-server services
|
|
*
|
|
* @generated from protobuf service api.StockInputAPI
|
|
*/
|
|
export class StockInputAPIClient implements IStockInputAPIClient, ServiceInfo {
|
|
typeName = StockInputAPI.typeName;
|
|
methods = StockInputAPI.methods;
|
|
options = StockInputAPI.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Moved
|
|
*/
|
|
moved(input: StockMovedRequest, options?: RpcOptions): UnaryCall<StockMovedRequest, StockMovedResponse> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<StockMovedRequest, StockMovedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Snapshotted
|
|
*/
|
|
snapshotted(input: StockSnapshottedRequest, options?: RpcOptions): UnaryCall<StockSnapshottedRequest, StockSnapshottedResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<StockSnapshottedRequest, StockSnapshottedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @deprecated
|
|
* @generated from protobuf rpc: Deleted
|
|
*/
|
|
deleted(input: StockDeletedRequest, options?: RpcOptions): UnaryCall<StockDeletedRequest, StockDeletedResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<StockDeletedRequest, StockDeletedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|