-
Notifications
You must be signed in to change notification settings - Fork 2
/
DeviationTypes.ts
161 lines (154 loc) · 3.47 KB
/
DeviationTypes.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import {DeviantArtUser} from "../types"
export interface DeviantArtDeviation {
deviationid: string
printid: string | null
url?: string
title?: string
category?: string
category_path?: string
is_favourited?: boolean
is_deleted?: boolean
author?: DeviantArtUser
stats?: {
comments: number
favourites: number
}
published_time?: string
allows_comments?: boolean
preview?: {
src: string
height: number
width: number
transparency: boolean
}
content?: {
src: string
height: number
width: number
transparency: boolean
filesize: number
}
thumbs?: Array<{
src: string
height: number
width: number
transparency: boolean
}>
videos?: Array<{
src: string
quality: string
filesize: number
duration: number
}>
flash?: {
src: string
height: number
width: number
}
daily_deviation?: {
body: string
time: string
giver: DeviantArtUser
suggester?: DeviantArtUser
}
excerpt?: string
is_mature?: boolean
is_downloadable?: boolean
download_filesize?: number
challenge?: {
type: string[]
completed: boolean
tags: string[]
locked?: boolean
credit_deviation: string | null
media: string[]
level_label?: string
time_limit?: number
levels?: string[]
}
challenge_entry?: {
challengeid: string
challenge_title: string
challenge?: DeviantArtDeviation
timed_duration: number
submission_time: string
}
motion_book?: {
embed_url: string
}
}
export interface DeviationMetaData {
metadata: {
deviationid: string
printid: string
author: DeviantArtUser
is_watching: boolean
title: string
description: string
license: string
allows_comments: boolean
tags: Array<{
tag_name: string
sponsored: boolean
sponsor: string
}>
is_favourited: boolean
is_mature: boolean
submission?: {
creation_time: string
category: string
file_size: string
resolution?: string
submitted_with: {
app: string
url: string
}
}
stats?: {
views: number
views_today: number
favourites: number
comments: number
downloads: number
downloads_today: number
}
camera?: {
[key: string]: string
}
collections?: Array<{
folderid: string
name: string
}>
}
}
export interface DeviationContent {
html: string
css: string
css_fonts: string[]
}
export interface DeviationWhoFaved {
has_more: boolean
next_offset: number | null
results: {
user: DeviantArtUser
time: number
}
}
export interface DeviationDownload {
src: string
height: number
width: number
filesize: number
}
export interface DeviationEmbeddedContent {
has_more: boolean
next_offset: number
has_less: boolean
prev_offset: number
results: DeviantArtDeviation[]
}
export interface DeviantArtDeviationExtended extends DeviantArtDeviation {
description: string
keywords: string[]
copyright: string
}