@davidbolaji/termii-node
Version:
Node.js SDK for Termii API – send SMS, voice, OTP, and manage messaging with ease.
25 lines • 859 B
TypeScript
import { HttpClient } from "../../http/HttpClient";
import { StatusRequest, StatusResponse } from "../../types/statusRequestService.type";
/**
* Utility type that forces TypeScript to expand an interface
* so IntelliSense shows its full shape instead of just the alias.
*/
type Expand<T> = {
[K in keyof T]: T[K];
} & {};
/**
* Service for checking if a number is fake, valid, or ported
*/
export declare class StatusService {
private http;
constructor(http: HttpClient);
/**
* Check number status, detect if ported, and retrieve operator details
*
* @param payload - Request payload with phone_number and country_code
* @returns Expanded StatusResponse with full details
*/
checkStatus(payload: StatusRequest): Promise<Expand<StatusResponse>>;
}
export {};
//# sourceMappingURL=StatusResponseService.d.ts.map