// package: xrc.ecnova.msghub.v1 // file: api/ecnova/msghub/v1/msghub_proto/msghub.proto import * as api_ecnova_msghub_v1_msghub_proto_msghub_pb from "../../../../../api/ecnova/msghub/v1/msghub_proto/msghub_pb"; import * as api_ecnova_msghub_v1_msghub_proto_inbound_message_pb from "../../../../../api/ecnova/msghub/v1/msghub_proto/inbound_message_pb"; import {grpc} from "grpc-web-client"; type MsgHubServiceCreateInboundMessage = { readonly methodName: string; readonly service: typeof MsgHubService; readonly requestStream: false; readonly responseStream: false; readonly requestType: typeof api_ecnova_msghub_v1_msghub_proto_msghub_pb.CreateInboundMessageRequest; readonly responseType: typeof api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage; }; type MsgHubServiceGetInboundMessage = { readonly methodName: string; readonly service: typeof MsgHubService; readonly requestStream: false; readonly responseStream: false; readonly requestType: typeof api_ecnova_msghub_v1_msghub_proto_msghub_pb.GetInboundMessageRequest; readonly responseType: typeof api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage; }; type MsgHubServiceListInboundMessages = { readonly methodName: string; readonly service: typeof MsgHubService; readonly requestStream: false; readonly responseStream: false; readonly requestType: typeof api_ecnova_msghub_v1_msghub_proto_msghub_pb.ListInboundMessagesRequest; readonly responseType: typeof api_ecnova_msghub_v1_msghub_proto_msghub_pb.ListInboundMessagesResponse; }; type MsgHubServiceReadInboundMessage = { readonly methodName: string; readonly service: typeof MsgHubService; readonly requestStream: false; readonly responseStream: false; readonly requestType: typeof api_ecnova_msghub_v1_msghub_proto_msghub_pb.ReadInboundMessageRequest; readonly responseType: typeof api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage; }; type MsgHubServiceDeleteInboundMessage = { readonly methodName: string; readonly service: typeof MsgHubService; readonly requestStream: false; readonly responseStream: false; readonly requestType: typeof api_ecnova_msghub_v1_msghub_proto_msghub_pb.DeleteInboundMessageRequest; readonly responseType: typeof api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage; }; type MsgHubServiceUndeleteInboundMessage = { readonly methodName: string; readonly service: typeof MsgHubService; readonly requestStream: false; readonly responseStream: false; readonly requestType: typeof api_ecnova_msghub_v1_msghub_proto_msghub_pb.UndeleteInboundMessageRequest; readonly responseType: typeof api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage; }; export class MsgHubService { static readonly serviceName: string; static readonly CreateInboundMessage: MsgHubServiceCreateInboundMessage; static readonly GetInboundMessage: MsgHubServiceGetInboundMessage; static readonly ListInboundMessages: MsgHubServiceListInboundMessages; static readonly ReadInboundMessage: MsgHubServiceReadInboundMessage; static readonly DeleteInboundMessage: MsgHubServiceDeleteInboundMessage; static readonly UndeleteInboundMessage: MsgHubServiceUndeleteInboundMessage; } export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } export type Status = { details: string, code: number; metadata: grpc.Metadata } interface UnaryResponse { cancel(): void; } interface ResponseStream { cancel(): void; on(type: 'data', handler: (message: T) => void): ResponseStream; on(type: 'end', handler: () => void): ResponseStream; on(type: 'status', handler: (status: Status) => void): ResponseStream; } interface RequestStream { write(message: T): RequestStream; end(): void; cancel(): void; on(type: 'end', handler: () => void): RequestStream; on(type: 'status', handler: (status: Status) => void): RequestStream; } interface BidirectionalStream { write(message: ReqT): BidirectionalStream; end(): void; cancel(): void; on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; on(type: 'end', handler: () => void): BidirectionalStream; on(type: 'status', handler: (status: Status) => void): BidirectionalStream; } export class MsgHubServiceClient { readonly serviceHost: string; constructor(serviceHost: string, options?: grpc.RpcOptions); createInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.CreateInboundMessageRequest, metadata: grpc.Metadata, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; createInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.CreateInboundMessageRequest, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; getInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.GetInboundMessageRequest, metadata: grpc.Metadata, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; getInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.GetInboundMessageRequest, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; listInboundMessages( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.ListInboundMessagesRequest, metadata: grpc.Metadata, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.ListInboundMessagesResponse|null) => void ): UnaryResponse; listInboundMessages( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.ListInboundMessagesRequest, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.ListInboundMessagesResponse|null) => void ): UnaryResponse; readInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.ReadInboundMessageRequest, metadata: grpc.Metadata, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; readInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.ReadInboundMessageRequest, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; deleteInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.DeleteInboundMessageRequest, metadata: grpc.Metadata, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; deleteInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.DeleteInboundMessageRequest, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; undeleteInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.UndeleteInboundMessageRequest, metadata: grpc.Metadata, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; undeleteInboundMessage( requestMessage: api_ecnova_msghub_v1_msghub_proto_msghub_pb.UndeleteInboundMessageRequest, callback: (error: ServiceError|null, responseMessage: api_ecnova_msghub_v1_msghub_proto_inbound_message_pb.InboundMessage|null) => void ): UnaryResponse; }