Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@Gabrieloxe

Description

@Gabrieloxe
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.