Returns a function for retrieving a paged array of places from the given data context.

Error if a data context is not provided

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

  • Parameters

    Returns ((placeType: Readonly<{
        contactType: string;
    }>, cursor?: Nullable<string>, limit?: number) => Promise<Page<Place>>)

    a function for retrieving a paged array of places

      • (placeType, cursor?, limit?): Promise<Page<Place>>
      • Returns an array of places for the provided page specifications.

        Parameters

        • placeType: Readonly<{
              contactType: string;
          }>

          the type of places to return

        • 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 = 100

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

        Returns Promise<Page<Place>>

        a page of places for the provided specification

        Error if no type is provided or if the type is not for a place

        Error if the provided limit value is <=0

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