Skip to content

New pagination not working for intercomClient.companies.listAttachedContacts({company_id}) #489

@Gabrieloxe

Description

@Gabrieloxe

Expected response

Pageable {
  response: {
    type: 'list',
    data: [ [Object], [Object], [Object], [Object], [Object] ],
    pages: {
      type: 'pages',
      next: null,
      page: 1,
      per_page: 50,
      total_pages: 1
    },
    total_count: 5
  },
  data: [],
  _hasNextPage: [Function: hasNextPage],
  getItems: [Function: getItems],
  loadNextPage: [Function: loadPage]
}

Observed response

...
 "pages": {
    "type": "pages",
    "next": {
      "page": 2,
      "starting_after": "WzE3NDczNjU1NTUwMDAsIjYzMTFhMTRkOWRiYzJjNGQ5NmU3MWJhNSIsMl0="
    },
    "page": 1,
    "per_page": 50,
    "total_pages": 4
  }

The main issue im facing here is the lack of the getting next page automatically as described in the sdk notes

 _hasNextPage: [Function: hasNextPage],
  getItems: [Function: getItems],
  loadNextPage: [Function: loadPage]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions