Skip to main content

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

Function: classifyPhoneNumberRows()

TypeScript
function classifyPhoneNumberRows(values, issues?): RowStatus[];

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

Classify each row against the list as a whole.

Every row gets exactly one status. That is the point of holding numbers in rows rather than free text: there is no third state a value can fall into where it is neither counted nor flagged.

Precedence runs from what the reader can act on soonest: a value we could not read at all, then something the server rejected, then a repeat of a row above.

Shared so both surfaces agree on what "ready" means — a number counted in one and not the other is the same silent short order this whole design refuses.

Parameters

values

readonly string[]

issues?

readonly NumberIssue[] = []

Returns

RowStatus[]