aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/api_types.ts
blob: 03190cb54e3cbb106d265951cef650e43fe68c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export type Match = {
  id: number;
  timestamp: string;
  state: string;
  players: MatchPlayer[];
  winner: number;
  map: Map;
};

export type MatchPlayer = {
  bot_id: number;
  bot_version_id: number;
  bot_name: string;
  owner_id?: number;
  had_errors?: boolean;
};

export type Map = {
  name: string;
};