Hierarchy
- 
Paginator<any> ↳EventPaginator 
Constructors
constructor
• new EventPaginator(fetchPage): EventPaginator
Creates a new paginator instance
Parameters
| Name | Type | Description | 
|---|---|---|
fetchPage | (token?: string) => Promise<PaginatedResponse<any>> | Function that fetches a page of data given a pagination token | 
Returns
EventPaginator
Inherited from
Paginator.constructorDefined in
paginator.ts:87Accessors
items
•get items(): T[]
Get all fetched items
Returns
T[]
Inherited from
Paginator.itemsDefined in
paginator.ts:94meta
•get meta(): any
Get current pagination metadata
Returns
any
Inherited from
Paginator.metaDefined in
paginator.ts:101includes
•get includes(): undefined | Record<string, any>
Get current includes data
Returns
undefined | Record<string, any>
Inherited from
Paginator.includesDefined in
paginator.ts:108errors
•get errors(): undefined | any[]
Get current errors
Returns
undefined | any[]
Inherited from
Paginator.errorsDefined in
paginator.ts:115done
•get done(): boolean
Check if pagination is done
Returns
boolean
Inherited from
Paginator.doneDefined in
paginator.ts:122rateLimited
•get rateLimited(): boolean
Check if rate limit was hit
Returns
boolean
Inherited from
Paginator.rateLimitedDefined in
paginator.ts:129events
•get events(): any[]
Returns
any[]
Defined in
paginator.ts:359Methods
fetchNext
▸ fetchNext():Promise<void>
Fetch the next page and add items to current instance
This method fetches the next page of data and appends the items to the
current paginator instance. It updates the pagination state and metadata.
Returns
Promise<void>
Example
Throws
When the API request fails
Inherited from
Paginator.fetchNextDefined in
paginator.ts:153next
▸ next():Promise<Paginator<any>>
Get next page as a new instance
This method creates a new paginator instance that starts from the next page,
without affecting the current paginator’s state.
Returns
Promise<Paginator<any>>
New paginator instance for the next page
Example
Inherited from
Paginator.nextDefined in
paginator.ts:208fetchPrevious
▸ fetchPrevious():Promise<void>
Fetch previous page (if supported)
Returns
Promise<void>
Inherited from
Paginator.fetchPreviousDefined in
paginator.ts:222previous
▸ previous():Promise<Paginator<any>>
Get previous page as a new instance
Returns
Promise<Paginator<any>>
Inherited from
Paginator.previousDefined in
paginator.ts:257fetchLast
▸ fetchLast(count): Promise<void>
Fetch up to a specified number of additional items
Parameters
| Name | Type | 
|---|---|
count | number | 
Returns
Promise<void>
Inherited from
Paginator.fetchLastDefined in
paginator.ts:271reset
▸ reset():void
Reset paginator to initial state
Returns
void
Inherited from
Paginator.resetDefined in
paginator.ts:285[iterator]
▸ [iterator]():Iterator<any, any, undefined>
Iterator for all fetched items
Returns
Iterator<any, any, undefined>
Inherited from
Paginator.[iterator]Defined in
paginator.ts:300[asyncIterator]
▸ [asyncIterator]():AsyncIterator<any, any, undefined>
Async iterator that fetches pages automatically
Returns
AsyncIterator<any, any, undefined>