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

    Function getSummariesPage

    • Returns a function for retrieving a paged array of contact summaries from the given data context.

      Parameters

      Returns (
          qualifier: IdsQualifier,
          cursor?: Nullable<string>,
          limit?: number | `${number}`,
      ) => Promise<Page<ContactSummary>>

      a function for retrieving a paged array of contact summaries

        • (
              qualifier: IdsQualifier,
              cursor?: Nullable<string>,
              limit?: number | `${number}`,
          ): Promise<Page<ContactSummary>>
        • Returns a page of summary records for the contacts identified by the given qualifier. Any identifiers that do not identify an existing contact are silently omitted from the result.

          Parameters

          • qualifier: IdsQualifier

            the identifiers of the contacts to summarise

          • cursor: Nullable<string> = null

            the token identifying which page to retrieve. A null value indicates the first page should be returned. Subsequent pages can be retrieved by providing the cursor returned with the previous page.

          • limit: number | `${number}` = DEFAULT_DOCS_PAGE_LIMIT

            the maximum number of summaries to return. Default is 100.

          Returns Promise<Page<ContactSummary>>

          a page of contact summaries for the provided specification

          InvalidArgumentError if the qualifier does not contain an array of non-empty identifier strings

          InvalidArgumentError if the provided limit value is <=0

          InvalidArgumentError if the provided cursor is not a valid page token or null

      Error if a data context is not provided

      getSummaries which provides the same data, but without having to manually account for paging