# phoneRiskSignals

Source: https://pakdatakit.dev/api/typescript/quality/functions/phonerisksignals/

```ts
function phoneRiskSignals(input): PhoneRiskFlag[];
```

Defined in: [quality.ts:246](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/quality.ts#L246)

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 as `1234567` or
  `7654321`.
- `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

| Parameter | Type |
| :------ | :------ |
| `input` | `string` |

## Returns

[`PhoneRiskFlag`](https://pakdatakit.dev/api/typescript/quality/type-aliases/phoneriskflag/)[]
