You've already forked npm-core-sdk
77 lines
3.8 KiB
TypeScript
77 lines
3.8 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "milestone.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { MilestoneService } from "./milestone";
|
|
import type { ListMilestonesResult } from "./milestone";
|
|
import type { ListMilestonesRequest } from "./milestone";
|
|
import type { DeleteMilestoneResult } from "./milestone";
|
|
import type { DeleteMilestoneRequest } from "./milestone";
|
|
import type { GetMilestoneResult } from "./milestone";
|
|
import type { GetMilestoneRequest } from "./milestone";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { CreateMilestoneResult } from "./milestone";
|
|
import type { CreateMilestoneRequest } from "./milestone";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service api.MilestoneService
|
|
*/
|
|
export interface IMilestoneServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: CreateMilestone
|
|
*/
|
|
createMilestone(input: CreateMilestoneRequest, options?: RpcOptions): UnaryCall<CreateMilestoneRequest, CreateMilestoneResult>;
|
|
/**
|
|
* @generated from protobuf rpc: GetMilestone
|
|
*/
|
|
getMilestone(input: GetMilestoneRequest, options?: RpcOptions): UnaryCall<GetMilestoneRequest, GetMilestoneResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteMilestone
|
|
*/
|
|
deleteMilestone(input: DeleteMilestoneRequest, options?: RpcOptions): UnaryCall<DeleteMilestoneRequest, DeleteMilestoneResult>;
|
|
/**
|
|
* @generated from protobuf rpc: ListMilestones
|
|
*/
|
|
listMilestones(input: ListMilestonesRequest, options?: RpcOptions): UnaryCall<ListMilestonesRequest, ListMilestonesResult>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service api.MilestoneService
|
|
*/
|
|
export class MilestoneServiceClient implements IMilestoneServiceClient, ServiceInfo {
|
|
typeName = MilestoneService.typeName;
|
|
methods = MilestoneService.methods;
|
|
options = MilestoneService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CreateMilestone
|
|
*/
|
|
createMilestone(input: CreateMilestoneRequest, options?: RpcOptions): UnaryCall<CreateMilestoneRequest, CreateMilestoneResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateMilestoneRequest, CreateMilestoneResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetMilestone
|
|
*/
|
|
getMilestone(input: GetMilestoneRequest, options?: RpcOptions): UnaryCall<GetMilestoneRequest, GetMilestoneResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetMilestoneRequest, GetMilestoneResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteMilestone
|
|
*/
|
|
deleteMilestone(input: DeleteMilestoneRequest, options?: RpcOptions): UnaryCall<DeleteMilestoneRequest, DeleteMilestoneResult> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteMilestoneRequest, DeleteMilestoneResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ListMilestones
|
|
*/
|
|
listMilestones(input: ListMilestonesRequest, options?: RpcOptions): UnaryCall<ListMilestonesRequest, ListMilestonesResult> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListMilestonesRequest, ListMilestonesResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|