summaryrefslogtreecommitdiff
path: root/frontend/src/types.ts
blob: ecdd8081bc14cca20d250b150ed1b4a73cac7364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export interface LoginRequest {
  googleToken: string;
}

export interface LoginResponse {
  id: number;
}

export interface User {
  id: number;
  name: string;
  elements: Element[];
}

export interface Element {
  id: number;
  userId: number;
  name: string;
  state: ElementState;
  icon: string;
}

export enum ElementState {
  HasColor,
  HasIcon,
}