paginateFeedItems
@raizfc/contracts / paginateFeedItems
Function: paginateFeedItems()
paginateFeedItems(
items,page,pageSize):Readonly<{pageItems: readonlyFeedPostDto[];pagination:PaginationMeta; }>
Defined in: engagement/feed.dto.ts:228
Mirrors paginateResults (services/api/src/modules/search) — same clamp/shape, so pagination
behaves identically across every list endpoint in the API.
Parameters
items
readonly Readonly<{ entityCrest?: Readonly<{ alt?: string; height?: number; id: string; url: string; width?: number; }>; entityId: string; entityName: string; entityRoute: string; entityType: FeedEntityType; id: string; link?: Readonly<{ label?: string; url: string; }>; matchPresentation?: Readonly<{ away: FeedMatchParticipantDto; awayScore?: number; home: FeedMatchParticipantDto; homeScore?: number; status: PublicMatchStatus; }>; media?: Readonly<{ alt?: string; height?: number; id: string; url: string; width?: number; }>; publishedAt: string; reason: FeedReasonDto; source: FeedPostSource; sourceId?: string; targetRoute: string; text: string; title: string; type: FeedPostType; }>[]
page
number
pageSize
number
Returns
Readonly<{ pageItems: readonly FeedPostDto[]; pagination: PaginationMeta; }>