You've already forked npm-core-sdk
64 lines
3.2 KiB
TypeScript
64 lines
3.2 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "messaging.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { MessagingService } from "./messaging";
|
|
import type { IsMessagingMaxUsageReachedResponse } from "./messaging";
|
|
import type { IsMessagingMaxUsageReachedRequest } from "./messaging";
|
|
import type { GetMessagingUsageResponse } from "./messaging";
|
|
import type { GetMessagingUsageRequest } from "./messaging";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { SendSMSResponse } from "./messaging";
|
|
import type { SendSMSRequest } from "./messaging";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service api.MessagingService
|
|
*/
|
|
export interface IMessagingServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: SendSMS
|
|
*/
|
|
sendSMS(input: SendSMSRequest, options?: RpcOptions): UnaryCall<SendSMSRequest, SendSMSResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: GetMessagingUsage
|
|
*/
|
|
getMessagingUsage(input: GetMessagingUsageRequest, options?: RpcOptions): UnaryCall<GetMessagingUsageRequest, GetMessagingUsageResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: IsMessagingMaxUsageReached
|
|
*/
|
|
isMessagingMaxUsageReached(input: IsMessagingMaxUsageReachedRequest, options?: RpcOptions): UnaryCall<IsMessagingMaxUsageReachedRequest, IsMessagingMaxUsageReachedResponse>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service api.MessagingService
|
|
*/
|
|
export class MessagingServiceClient implements IMessagingServiceClient, ServiceInfo {
|
|
typeName = MessagingService.typeName;
|
|
methods = MessagingService.methods;
|
|
options = MessagingService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: SendSMS
|
|
*/
|
|
sendSMS(input: SendSMSRequest, options?: RpcOptions): UnaryCall<SendSMSRequest, SendSMSResponse> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<SendSMSRequest, SendSMSResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetMessagingUsage
|
|
*/
|
|
getMessagingUsage(input: GetMessagingUsageRequest, options?: RpcOptions): UnaryCall<GetMessagingUsageRequest, GetMessagingUsageResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetMessagingUsageRequest, GetMessagingUsageResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: IsMessagingMaxUsageReached
|
|
*/
|
|
isMessagingMaxUsageReached(input: IsMessagingMaxUsageReachedRequest, options?: RpcOptions): UnaryCall<IsMessagingMaxUsageReachedRequest, IsMessagingMaxUsageReachedResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<IsMessagingMaxUsageReachedRequest, IsMessagingMaxUsageReachedResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|