Skip to main content

@dialstack/sdk-dev / js/src / phoneNumberListType

Function: phoneNumberListType()

TypeScript
function phoneNumberListType(e164s): "toll_free" | "local" | "mixed" | null;

Defined in: sdk/js/src/utils/phone-list.ts:471

Whether a list of numbers is all local, all toll-free, or a mix, or null for an empty list. A port order is one or the other: the carrier moves toll-free numbers between RespOrgs and local ones between carriers, so a mix has to be split into two orders.

Parameters​

e164s​

readonly string[]

Returns​

"toll_free" | "local" | "mixed" | null