Pular para o conteúdo principal

buildMatchFeedItem

@raizfc/contracts


@raizfc/contracts / buildMatchFeedItem

Function: buildMatchFeedItem()

buildMatchFeedItem(input): 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; }> | undefined

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

Returns undefined (never a fabricated date) when the match does not carry the timestamp its card kind needs — statusDetail.updatedAt for a result, schedule.startsAt for an upcoming match.

Parameters

input

FeedMatchCardInput

Returns

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; }> | undefined