Spaces:
Sleeping
Sleeping
Download src/types.ts from Musabek/NOVAESPORT: direct link, hf CLI and curl.
- Browser
- Download file 3.43 kB
-
https://huggingface.co/spaces/Musabek/NOVAESPORT/resolve/main/src/types.ts
- Command line
-
hf download hf://spaces/Musabek/NOVAESPORT/src/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/Musabek/NOVAESPORT/resolve/main/src/types.ts
3.43 kB
| export interface User { | |
| id: string; | |
| username: string; | |
| email: string; | |
| avatar: string; | |
| role: 'user' | 'admin'; | |
| gameID?: string; | |
| gameName?: string; | |
| teamId?: string; | |
| points: number; | |
| joinedAt: string; | |
| achievements: Achievement[]; | |
| registeredTournaments: string[]; // Tournament IDs | |
| notifications: AppNotification[]; | |
| favoriteTeams?: string[]; // Preserved favorite team IDs on Firestore | |
| } | |
| export interface Achievement { | |
| id: string; | |
| title: string; | |
| description: string; | |
| unlockedAt?: string; | |
| icon: string; | |
| } | |
| export interface AppNotification { | |
| id: string; | |
| title: string; | |
| message: string; | |
| time: string; | |
| read: boolean; | |
| type: 'info' | 'success' | 'alert' | 'tournament'; | |
| } | |
| export interface Team { | |
| id: string; | |
| name: string; | |
| logo: string; | |
| tag?: string; | |
| rank?: number; | |
| winRate?: number; | |
| matchesPlayed?: number; | |
| matchesWon?: number; | |
| draws?: number; | |
| losses?: number; | |
| goals?: string; | |
| points: number; | |
| gameType?: string; | |
| members?: TeamMember[]; | |
| } | |
| export interface TeamMember { | |
| id: string; | |
| username: string; | |
| role: 'Leader' | 'Sniper' | 'Flex' | 'Support' | 'Captain' | 'Coach'; | |
| avatar: string; | |
| country: string; | |
| } | |
| export interface Game { | |
| id: string; | |
| title: string; | |
| genre: string; | |
| coverImage: string; | |
| bannerImage: string; | |
| activeTournamentsCount: number; | |
| totalPlayersCount: string; | |
| platforms: string[]; | |
| rankings: { rank: number; teamName: string; winRate: string; points: number }[]; | |
| } | |
| export interface Tournament { | |
| id: string; | |
| title: string; | |
| gameId: string; | |
| gameTitle: string; | |
| coverImage: string; | |
| category: 'solo' | 'team'; | |
| prizePool: string; | |
| prizeDistribution?: { place: string; prize: string }[]; | |
| slotsTotal: number; | |
| slotsFilled: number; | |
| startDate: string; | |
| startTime: string; | |
| status: 'upcoming' | 'ongoing' | 'completed' | 'registration_closed'; | |
| entryFee: string; | |
| rules: string[]; | |
| requirements: string[]; | |
| } | |
| export interface LiveMatch { | |
| id: string; | |
| tournamentId: string; | |
| tournamentTitle: string; | |
| gameId: string; | |
| teamA: { name: string; logo: string; score?: number }; | |
| teamB: { name: string; logo: string; score?: number }; | |
| status: 'live' | 'upcoming' | 'finished'; | |
| time: string; | |
| streamUrl?: string; | |
| round?: string; | |
| } | |
| export interface StandingsRecord { | |
| rank: number; | |
| teamName: string; | |
| logo: string; | |
| played: number; | |
| wins: number; | |
| losses: number; | |
| points: number; | |
| } | |
| export interface TournamentBracketNode { | |
| id: string; | |
| round: number; | |
| roundName: string; | |
| matchId?: string; | |
| teamA: { id?: string; name: string; logo: string; score?: number; winner?: boolean }; | |
| teamB: { id?: string; name: string; logo: string; score?: number; winner?: boolean }; | |
| status: 'upcoming' | 'live' | 'finished'; | |
| nextMatchId?: string; | |
| } | |
| export interface ChatMessage { | |
| id: string; | |
| userId: string; | |
| username: string; | |
| userAvatar: string; | |
| message: string; | |
| timestamp: string; | |
| role: 'user' | 'admin' | 'moderator'; | |
| channel: 'global' | 'team' | 'match'; | |
| } | |
| export interface NewsArticle { | |
| id: string; | |
| title: string; | |
| summary: string; | |
| content: string; | |
| image: string; | |
| category: string; | |
| publishedAt: string; | |
| views: number; | |
| } | |
| export interface CyberMatch { | |
| id: string; | |
| gameName: string; | |
| dateTime: string; | |
| teamA: { name: string; logo: string; votes: number }; | |
| teamB: { name: string; logo: string; votes: number }; | |
| status: 'upcoming' | 'live' | 'finished'; | |
| } | |