You've already forked npm-core-sdk
90 lines
4.5 KiB
TypeScript
90 lines
4.5 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "adaptiveCard.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { AdaptiveCardService } from "./adaptiveCard";
|
|
import type { DeleteAdaptiveCardResult } from "./adaptiveCard";
|
|
import type { DeleteAdaptiveCardRequest } from "./adaptiveCard";
|
|
import type { UpdateAdaptiveCardResult } from "./adaptiveCard";
|
|
import type { UpdateAdaptiveCardRequest } from "./adaptiveCard";
|
|
import type { CreateAdaptiveCardResult } from "./adaptiveCard";
|
|
import type { CreateAdaptiveCardRequest } from "./adaptiveCard";
|
|
import type { ListAdaptiveCardResult } from "./adaptiveCard";
|
|
import type { ListAdaptiveCardRequest } from "./adaptiveCard";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { GetAdaptiveCardResult } from "./adaptiveCard";
|
|
import type { GetAdaptiveCardRequest } from "./adaptiveCard";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service api.AdaptiveCardService
|
|
*/
|
|
export interface IAdaptiveCardServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: Get
|
|
*/
|
|
get(input: GetAdaptiveCardRequest, options?: RpcOptions): UnaryCall<GetAdaptiveCardRequest, GetAdaptiveCardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: List
|
|
*/
|
|
list(input: ListAdaptiveCardRequest, options?: RpcOptions): UnaryCall<ListAdaptiveCardRequest, ListAdaptiveCardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Create
|
|
*/
|
|
create(input: CreateAdaptiveCardRequest, options?: RpcOptions): UnaryCall<CreateAdaptiveCardRequest, CreateAdaptiveCardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Update
|
|
*/
|
|
update(input: UpdateAdaptiveCardRequest, options?: RpcOptions): UnaryCall<UpdateAdaptiveCardRequest, UpdateAdaptiveCardResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Delete
|
|
*/
|
|
delete(input: DeleteAdaptiveCardRequest, options?: RpcOptions): UnaryCall<DeleteAdaptiveCardRequest, DeleteAdaptiveCardResult>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service api.AdaptiveCardService
|
|
*/
|
|
export class AdaptiveCardServiceClient implements IAdaptiveCardServiceClient, ServiceInfo {
|
|
typeName = AdaptiveCardService.typeName;
|
|
methods = AdaptiveCardService.methods;
|
|
options = AdaptiveCardService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Get
|
|
*/
|
|
get(input: GetAdaptiveCardRequest, options?: RpcOptions): UnaryCall<GetAdaptiveCardRequest, GetAdaptiveCardResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetAdaptiveCardRequest, GetAdaptiveCardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: List
|
|
*/
|
|
list(input: ListAdaptiveCardRequest, options?: RpcOptions): UnaryCall<ListAdaptiveCardRequest, ListAdaptiveCardResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListAdaptiveCardRequest, ListAdaptiveCardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Create
|
|
*/
|
|
create(input: CreateAdaptiveCardRequest, options?: RpcOptions): UnaryCall<CreateAdaptiveCardRequest, CreateAdaptiveCardResult> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateAdaptiveCardRequest, CreateAdaptiveCardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Update
|
|
*/
|
|
update(input: UpdateAdaptiveCardRequest, options?: RpcOptions): UnaryCall<UpdateAdaptiveCardRequest, UpdateAdaptiveCardResult> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateAdaptiveCardRequest, UpdateAdaptiveCardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Delete
|
|
*/
|
|
delete(input: DeleteAdaptiveCardRequest, options?: RpcOptions): UnaryCall<DeleteAdaptiveCardRequest, DeleteAdaptiveCardResult> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteAdaptiveCardRequest, DeleteAdaptiveCardResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|