UNPKG

termii-nestjs

Version:
15 lines (14 loc) 724 B
import { HttpService } from '@nestjs/axios'; import { TermiiModuleOptions } from '../interfaces'; import { TermiiBalanceResponse, TermiiSearchResponse, TermiiStatusResponse, TermiiHistoryResponse } from './responses'; export declare class InsightService { private readonly options; private readonly httpService; private readonly apiKey; private readonly baseUrl; constructor(options: TermiiModuleOptions, httpService: HttpService); getBalance(): Promise<TermiiBalanceResponse>; search(phoneNumber: string): Promise<TermiiSearchResponse>; getStatus(phoneNumber: string, countryCode: string): Promise<TermiiStatusResponse>; getHistory(messageId?: string): Promise<TermiiHistoryResponse>; }