Pular para o conteúdo principal

interleaveFeedPlatformCards

@raizfc/contracts


@raizfc/contracts / interleaveFeedPlatformCards

Function: interleaveFeedPlatformCards()

interleaveFeedPlatformCards(officialItems, platformItems, cadence?): 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; }>[]

Defined in: engagement/feed.dto.ts:204

Parameters

officialItems

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; }>[]

platformItems

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; }>[]

cadence?

number = FEED_PLATFORM_CARD_CADENCE

Returns

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; }>[]