UNPKG

nestwhats

Version:

A whatsapp-web.js wrapper for NestJS to create WhatsApp bots

22 lines (21 loc) 922 B
import { ClientStatus, ClientsRegistryService } from "./clients-registry.service"; import { CommandsRegistryService } from "./commands/commands-registry.service"; import { ListenerRegistryService } from "./listeners/listener-registry.service"; export interface NestWhatsClientDetail { status: ClientStatus; since: number; } export interface NestWhatsClientHealth { status: "up" | "down"; commands: number; listeners: number; breakdown: Record<ClientStatus, number>; clients: Record<string, NestWhatsClientDetail>; } export declare class NestWhatsHealthIndicator { private readonly clientsRegistry; private readonly commandsRegistry; private readonly listenerRegistry; constructor(clientsRegistry: ClientsRegistryService, commandsRegistry: CommandsRegistryService, listenerRegistry: ListenerRegistryService); isHealthy(key?: string): Record<string, NestWhatsClientHealth>; }