@medic/cht-datasource
    Preparing search index...

    Function byPhones

    • Builds a qualifier for finding contacts with any of the given phone numbers. Duplicates are removed. Results are grouped in the order of the given numbers, so page through them by passing the numbers in the same order with each cursor.

      Parameters

      • phones: [string, ...string[]]

        the phone numbers of the contacts, each matched verbatim against the contact's phone field

      Returns PhonesQualifier

      the qualifier

      InvalidArgumentError if the phone numbers are not a non-empty array of non-blank strings with no leading or trailing whitespace