-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
48 lines (44 loc) · 931 Bytes
/
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
export interface TagApiResource {
id: number
name: string
value: string
order: number
}
export interface PageApiResource {
id: number
name: string
book_id: number
chapter_id: number
slug: string
created_at: string
updated_at: string
created_by: number
updated_by: number
owned_by: number
}
export interface BookApiResource {
id: number
name: string
slug: string
description: string
created_at: string
updated_at: string
created_by: { id: number, name: string }
updated_by: { id: number, name: string }
owned_by: { id: number, name: string }
}
export interface UserApiResource {
id: number
name: string
slug: string
email: string
created_at: string
updated_at: string
external_auth_id: string
user_id: number
last_activity_at: string
profile_url: string
edit_url: string
avatar_url: string
}
export type ActionType = 'success' | 'danger' | 'info' | 'warning'