UNPKG

@ngn-net/giftcard-shared

Version:

Shared library for gifts score microservices

22 lines (21 loc) 699 B
import { RabbitAddress } from "../constants"; import { RPCResponse, UserDto } from "../interfaces"; export declare const AuthenticationRabbitAPI: RabbitAddress; export interface GetEwanoIdDto { userId: string; } export interface EwanoGetIdResponse { token: string; userId: string; telnum: string; } export interface IRevokeToken { jti: string; } export declare class UserService { private readonly rabbit; getUserProfile(userId: string): Promise<RPCResponse<EwanoGetIdResponse>>; syncUsers(timestamp: Date): Promise<RPCResponse<UserDto[]>>; revokeToken(jti: string): Promise<void>; } export declare const UserRabbitModule: import("@nestjs/common").DynamicModule;