Skip to main content

Interface: PageInfo

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / PageInfo

Interface: PageInfo

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:322

Cursor-based pagination info of a list, exactly as the launchpad backend returns it (data.pageInfo of every cursor-paginated route: launchpad-backend PageInfo, src/utils/cursor.util.ts). Pass endCursor as the next request's cursor.

Used across multiple SDK modules (bans, moderators, overseers, flags, comments, pools, trades, user token lists, etc).

Since​

6.4.0

Updated​

8.0.0 - Migrated to cursor-based pagination

Updated​

9.0.0 - The backend's own keys (endCursor, startCursor, hasPreviousPage); the SDK declared nextCursor / prevCursor / hasPrevPage while most lists returned the backend's

Properties​

endCursor?​

optional endCursor?: string | null

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:326

Cursor of the next page (the request's cursor); null when there is no next page


hasNextPage​

hasNextPage: boolean

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:324

Whether more results exist after endCursor


hasPreviousPage?​

optional hasPreviousPage?: boolean

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:328

Whether results exist before startCursor (the request carried a cursor)


startCursor?​

optional startCursor?: string | null

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:330

Cursor of this page's first item; null for an empty page


totalCount?​

optional totalCount?: number

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:335

Total count of items across all pages. The backend sends none: only results the SDK assembles from every page (fetchAll...) carry it.