generated from kriasoft/graphql-starter-kit
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
67 lines (60 loc) · 1.38 KB
/
types.ts
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
60
61
62
63
64
65
66
// The TypeScript definitions below are automatically generated.
// Do not touch them, or risk, your modifications being lost.
export enum IdentityProvider {
Google = "google",
Apple = "apple",
Facebook = "facebook",
GitHub = "github",
LinkedIn = "linkedin",
Microsoft = "microsoft",
Twitter = "twitter",
Yahoo = "yahoo",
GameCenter = "gamecenter",
PlayGames = "playgames",
}
export enum UserActionType {
ResetPassword = "reset_password",
LoginFailed = "login_failed",
}
export enum Table {
Identity = "identity",
User = "user",
UserAction = "user_action",
}
export type Identity = {
provider: IdentityProvider;
id: string;
user_id: string;
username: string | null;
email: string | null;
profile: Record<string, unknown>;
credentials: Record<string, unknown>;
created: Date;
updated: Date;
};
export type User = {
id: string;
username: string;
email: string | null;
email_verified: boolean;
password: string | null;
name: string | null;
given_name: string | null;
family_name: string | null;
picture: Record<string, unknown>;
time_zone: string | null;
locale: string | null;
admin: boolean;
created: Date;
updated: Date;
deleted: Date | null;
last_login: Date | null;
};
export type UserAction = {
id: string;
user_id: string;
action: UserActionType;
metadata: Record<string, unknown>;
created: Date;
updated: Date;
};