Uppdating typescript tuff to allow it t build
This commit is contained in:
61
frontend/src/types.ts
Normal file
61
frontend/src/types.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
export interface Game {
|
||||
id: number
|
||||
title: string
|
||||
gamemaster: string
|
||||
payoutEB: number
|
||||
payoutIP: number
|
||||
payoutLoot: string
|
||||
status: string
|
||||
postdate: number
|
||||
pickedCharacter?: Character[]
|
||||
appliedCharacter?: Character[]
|
||||
}
|
||||
|
||||
export interface Character {
|
||||
id: number
|
||||
characterName: string
|
||||
playerName: string
|
||||
role: string
|
||||
status: string
|
||||
lastGame: number
|
||||
}
|
||||
|
||||
export interface GameStats {
|
||||
Complete: number
|
||||
Postponed: number
|
||||
Pending: number
|
||||
Fixes: number
|
||||
Events: number
|
||||
AverageIP: number
|
||||
AverageEB: number
|
||||
TotalIP: number,
|
||||
TotalEB: number
|
||||
}
|
||||
|
||||
export interface GameCounts {
|
||||
apps: number
|
||||
picks: number
|
||||
active: number
|
||||
}
|
||||
|
||||
export interface GameCharacter {
|
||||
characterId: number
|
||||
characterName: string
|
||||
gameId: number
|
||||
gameTite: string
|
||||
pickedCharacter?:Character
|
||||
appliedCharacter?: Character
|
||||
}
|
||||
|
||||
export interface RoleStats {
|
||||
Fixer: GameCounts
|
||||
Tech: GameCounts
|
||||
Medtech: GameCounts
|
||||
Media: GameCounts
|
||||
Netrunner: GameCounts
|
||||
Solo: GameCounts
|
||||
Nomad: GameCounts
|
||||
Exec: GameCounts
|
||||
Lawman: GameCounts
|
||||
Rocker: GameCounts
|
||||
}
|
||||
Reference in New Issue
Block a user