22 lines
449 B
TypeScript
22 lines
449 B
TypeScript
export type FeedItemType =
|
|
| 'race_result'
|
|
| 'championship_standing'
|
|
| 'league_announcement'
|
|
| 'friend_joined_league'
|
|
| 'friend_won_race';
|
|
|
|
export interface FeedItemDTO {
|
|
id: string;
|
|
timestamp: string;
|
|
type: FeedItemType;
|
|
actorFriendId?: string;
|
|
actorDriverId?: string;
|
|
leagueId?: string;
|
|
raceId?: string;
|
|
teamId?: string;
|
|
position?: number;
|
|
headline: string;
|
|
body?: string;
|
|
ctaLabel?: string;
|
|
ctaHref?: string;
|
|
} |