phoneRiskSignals
function phoneRiskSignals(input): PhoneRiskFlag[];Defined in: quality.ts:246
Flags a phone number that a courier cannot reach by SMS or call, or that looks made up. Pure heuristics on the number itself: no list of real numbers, no personal data, no network call.
invalid: not a Pakistani phone number.landline: a fixed-line number (no SMS, often unanswered).not-mobile: a UAN, toll-free or other service number.repeated-digits: the 7-digit subscriber part uses at most two different digits (0300-0000000,0300-1111112).sequential-digits: the subscriber part is a run such as1234567or7654321.test-number: a placeholder often typed into forms (03XX-1234567,03XX-7654321,0312-3456789).
A valid mobile number with nothing suspicious returns []. It never
throws.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
string |