-
Notifications
You must be signed in to change notification settings - Fork 2
/
UserTypes.ts
134 lines (127 loc) · 2.97 KB
/
UserTypes.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import {DeviantArtDeviation, DeviantArtUser} from "../types/index"
export interface DeviantArtUser {
userid: string
username: string
usericon: string
type: string
is_watching?: boolean
details?: {
sex: string | null
age: number | null
joinDate: string
}
geo?: {
country: string
countryid: number
timezone: string
}
profile?: {
user_is_artist: boolean
artist_level: string | null
artist_specialty: string | null
real_name: string
tagline: string
website: string
cover_photo: string
profile_pic: DeviantArtDeviation
}
stats?: {
watchers: number
friends: number
}
}
export interface DeviantArtUserFriends {
has_more: boolean
next_offset: number | null
results: {
user: DeviantArtUser
is_watching: boolean
watches_you: boolean
lastvisit: string| null
watch: {
friend: boolean
deviations: boolean
journals: boolean
forum_threads: boolean
critiques: boolean
scraps: boolean
activity: boolean
collections: boolean
}
}
}
export interface DeviantArtStatus {
statusid?: string
body?: string
ts?: string
url?: string
comments_count?: number
is_share?: boolean
is_deleted: boolean
author?: DeviantArtUser
items?: Array<{
type: string
status: DeviantArtStatus
deviation: DeviantArtDeviation
}>
}
export interface DeviantArtUserStatuses {
has_more: boolean
next_offset: number | null
results: DeviantArtStatus[]
}
export interface DeviantArtUserProfile {
user: DeviantArtUser
is_watching: boolean
profile_url: string
user_is_artist: boolean
artist_level: string | null
artist_specialty: string | null
real_name: string
tagline: string
countryid: number
country: string
website: string
bio: string
cover_photo: string | null
profile_pic: DeviantArtDeviation | null
last_status: DeviantArtStatus | null
stats: {
user_deviations: number
user_favourites: number
user_comments: number
profile_pageviews: number
profile_comments: number
}
collections?: Array<{
folderid: string
name: string
}>
galleries?: Array<{
folderid: string
parent: string | null
name: string
}>
}
export interface DeviantArtWatchers {
has_more: boolean
next_offset: number | null
results: Array<{
user: DeviantArtUser
is_watching: boolean
lastvisit: string | null
watch: {
friend: boolean
deviations: boolean
journals: boolean
forum_threads: boolean
critiques: boolean
scraps: boolean
activity: boolean
collections: boolean
}
}>
}
export interface DeviantArtFriendSearch {
results: DeviantArtUser[]
}