// Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.4 // protoc v7.34.0 // source: notification.proto /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; export const protobufPackage = "notification"; export interface EmailVerificationCodeRequest { email: string; code: string; isAuth: boolean; } export interface PhoneVerificationCodeRequest { phone: string; code: string; isAuth: boolean; } export interface NotificationResultResponse { success: boolean; message: string; } export const NOTIFICATION_PACKAGE_NAME = "notification"; export interface NotificationServiceClient { sendEmailVerificationCode(request: EmailVerificationCodeRequest): Observable; sendPhoneVerificationCode(request: PhoneVerificationCodeRequest): Observable; } export interface NotificationServiceController { sendEmailVerificationCode( request: EmailVerificationCodeRequest, ): Promise | Observable | NotificationResultResponse; sendPhoneVerificationCode( request: PhoneVerificationCodeRequest, ): Promise | Observable | NotificationResultResponse; } export function NotificationServiceControllerMethods() { return function (constructor: Function) { const grpcMethods: string[] = ["sendEmailVerificationCode", "sendPhoneVerificationCode"]; for (const method of grpcMethods) { const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); GrpcMethod("NotificationService", method)(constructor.prototype[method], method, descriptor); } const grpcStreamMethods: string[] = []; for (const method of grpcStreamMethods) { const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); GrpcStreamMethod("NotificationService", method)(constructor.prototype[method], method, descriptor); } }; } export const NOTIFICATION_SERVICE_NAME = "NotificationService";