-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.ts
More file actions
59 lines (45 loc) · 1.14 KB
/
user.ts
File metadata and controls
59 lines (45 loc) · 1.14 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import { Grade_O, Subject_O } from './subjects'
import { School_O } from './schools'
import { Timestamp } from './env.utils'
export type User = {
uid: string
displayName?: string | null
email?: string | null
phoneNumber?: string | null
photoURL?: string | null
providerId?: string
emailVerified: boolean
isAnonymous?: boolean
isAdmin?: boolean
} | null
export interface UserData {
email: string
likedSuggestions?: string[]
likedNotes?: string[]
likedQuestions?: string[]
likedResponses?: string[]
userGuideClosed?: boolean
userInformationAdded?: boolean
displayName?: string | null
photoURL?: string | null
currentGrade?: Grade_O
interestedSubjects?: Subject_O[]
bio?: string
school?: School_O
postedSuggestions?: string[]
postedNotes?: string[]
newsletter?: boolean
progressionExp?: number
progressionLevel?: number
totalExp : number;
discordId?: string
discordUsername?: string
photoFileName?: string | null
notifications?: boolean
metadata : {
createdAt : Timestamp;
lastSignInTime : Timestamp;
lastRefreshTime : Timestamp | null;
}
lastFeedUpdated ?: Timestamp
}