soundcloud-wrapper 0.9.7 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/types.d.ts +286 -0
package/package.json
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "soundcloud-wrapper",
|
3
|
-
"version": "0.9.
|
3
|
+
"version": "0.9.9",
|
4
4
|
"description": "Node wrapper for the SoundCloud API",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "index.d.ts",
|
7
7
|
"files": [
|
8
8
|
"dist",
|
9
|
-
"index.d.ts"
|
9
|
+
"index.d.ts",
|
10
|
+
"types.d.ts"
|
10
11
|
],
|
11
12
|
"repository": "https://github.com/18-28/soundcloud-wrapper",
|
12
13
|
"homepage": "https://soundcloud-wrapper-docs.vercel.app/docs",
|
package/types.d.ts
ADDED
@@ -0,0 +1,286 @@
|
|
1
|
+
export interface Me {
|
2
|
+
avatar_url: string
|
3
|
+
city: string
|
4
|
+
country: string
|
5
|
+
created_at: string
|
6
|
+
description: string
|
7
|
+
discogs_name: string
|
8
|
+
first_name: string
|
9
|
+
followers_count: number
|
10
|
+
followings_count: number
|
11
|
+
full_name: string
|
12
|
+
id: number
|
13
|
+
kind: string
|
14
|
+
last_modified: string
|
15
|
+
last_name: string
|
16
|
+
likes_count: number
|
17
|
+
locale: string
|
18
|
+
online: boolean
|
19
|
+
permalink: string
|
20
|
+
permalink_url: string
|
21
|
+
plan: string
|
22
|
+
playlist_count: number
|
23
|
+
primary_email_confirmed: boolean
|
24
|
+
private_playlists_count: number
|
25
|
+
private_tracks_count: number
|
26
|
+
public_favorites_count: number
|
27
|
+
quota: {
|
28
|
+
unlimited_upload_quota: boolean
|
29
|
+
upload_seconds_used: number
|
30
|
+
upload_seconds_left: number
|
31
|
+
}
|
32
|
+
reposts_count: number
|
33
|
+
subscriptions: Array<{
|
34
|
+
product: {
|
35
|
+
id: string
|
36
|
+
name: string
|
37
|
+
}
|
38
|
+
recurring: boolean
|
39
|
+
}>
|
40
|
+
track_count: number
|
41
|
+
upload_seconds_left: number
|
42
|
+
uri: string
|
43
|
+
username: string
|
44
|
+
website: string
|
45
|
+
website_title: string
|
46
|
+
}
|
47
|
+
|
48
|
+
export interface User {
|
49
|
+
avatar_url: string
|
50
|
+
id: number
|
51
|
+
kind: string
|
52
|
+
permalink_url: string
|
53
|
+
uri: string
|
54
|
+
username: string
|
55
|
+
permalink: string
|
56
|
+
created_at: string
|
57
|
+
last_modified: string
|
58
|
+
first_name: string
|
59
|
+
last_name: string
|
60
|
+
full_name: string
|
61
|
+
city: string
|
62
|
+
description: string
|
63
|
+
country: string | null
|
64
|
+
track_count: number
|
65
|
+
public_favorites_count: number
|
66
|
+
reposts_count: number
|
67
|
+
followers_count: number
|
68
|
+
followings_count: number
|
69
|
+
plan: string
|
70
|
+
myspace_name: string | null
|
71
|
+
discogs_name: string | null
|
72
|
+
website_title: string
|
73
|
+
website: string
|
74
|
+
comments_count: number
|
75
|
+
online: boolean
|
76
|
+
likes_count: number
|
77
|
+
playlist_count: number
|
78
|
+
subscriptions: Array<{
|
79
|
+
product: {
|
80
|
+
id: string
|
81
|
+
name: string
|
82
|
+
}
|
83
|
+
}>
|
84
|
+
}
|
85
|
+
|
86
|
+
export interface Users {
|
87
|
+
collection: User[]
|
88
|
+
next_href: string
|
89
|
+
}
|
90
|
+
|
91
|
+
export interface Activities {
|
92
|
+
collection: {
|
93
|
+
type: "track" | "playlist" | "track:repost"
|
94
|
+
created_at: string
|
95
|
+
origin: Track | Playlist
|
96
|
+
}[]
|
97
|
+
next_href: string
|
98
|
+
future_href: string
|
99
|
+
}
|
100
|
+
|
101
|
+
export interface Track {
|
102
|
+
duration: number
|
103
|
+
genre: string
|
104
|
+
release_day: number
|
105
|
+
permalink: string
|
106
|
+
permalink_url: string
|
107
|
+
release_month: number
|
108
|
+
release_year: number
|
109
|
+
description: string
|
110
|
+
uri: string
|
111
|
+
label_name: string
|
112
|
+
label_id: number | null
|
113
|
+
label: string | null
|
114
|
+
tag_list: string
|
115
|
+
track_count: number
|
116
|
+
user_id: number
|
117
|
+
last_modified: string
|
118
|
+
license: string
|
119
|
+
user: User
|
120
|
+
playlist_type: string
|
121
|
+
type: string
|
122
|
+
id: number
|
123
|
+
downloadable: boolean | null
|
124
|
+
likes_count: number
|
125
|
+
sharing: string
|
126
|
+
created_at: string
|
127
|
+
release: string | null
|
128
|
+
tags: string
|
129
|
+
kind: string
|
130
|
+
title: string
|
131
|
+
purchase_title: string | null
|
132
|
+
ean: string
|
133
|
+
streamable: boolean
|
134
|
+
embeddable_by: string
|
135
|
+
artwork_url: string
|
136
|
+
purchase_url: string
|
137
|
+
tracks_uri: string
|
138
|
+
permalink_url: string
|
139
|
+
artwork_url: string
|
140
|
+
stream_url: string
|
141
|
+
download_url: string | null
|
142
|
+
waveform_url: string
|
143
|
+
available_country_codes: string[] | null
|
144
|
+
secret_uri: string | null
|
145
|
+
user_favorite: boolean
|
146
|
+
user_playback_count: number
|
147
|
+
playback_count: number | null
|
148
|
+
download_count: number | null
|
149
|
+
favoritings_count: number | null
|
150
|
+
reposts_count: number | null
|
151
|
+
downloadable: boolean
|
152
|
+
access: string
|
153
|
+
policy: string | null
|
154
|
+
monetization_model: string | null
|
155
|
+
}
|
156
|
+
|
157
|
+
export interface Tracks {
|
158
|
+
collection: Track[]
|
159
|
+
next_href: string
|
160
|
+
}
|
161
|
+
|
162
|
+
export interface UpdateTrackData {
|
163
|
+
track: {
|
164
|
+
title: string
|
165
|
+
permalink: string
|
166
|
+
sharing: "public" | "private"
|
167
|
+
embeddable_by: "all" | "me" | "none"
|
168
|
+
purchase_url: string
|
169
|
+
description: string
|
170
|
+
genre: string
|
171
|
+
tag_list: string
|
172
|
+
label_name: string
|
173
|
+
release: string
|
174
|
+
release_date: string
|
175
|
+
streamable: boolean
|
176
|
+
downloadable: boolean
|
177
|
+
license: "no-rights-reserved" | "all-rights-reserved" | "cc-by" | "cc-by-nc" | "cc-by-nd" | "cc-by-sa" | "cc-by-nc-nd" | "cc-by-nc-sa"
|
178
|
+
commentable: boolean
|
179
|
+
isrc: string
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
export interface Playlist {
|
184
|
+
duration: number
|
185
|
+
genre: string
|
186
|
+
release_day: number
|
187
|
+
permalink: string
|
188
|
+
permalink_url: string
|
189
|
+
release_month: number
|
190
|
+
release_year: number
|
191
|
+
description: string
|
192
|
+
uri: string
|
193
|
+
label_name: string
|
194
|
+
label_id: number | null
|
195
|
+
label: string | null
|
196
|
+
tag_list: string
|
197
|
+
track_count: number
|
198
|
+
user_id: number
|
199
|
+
last_modified: string
|
200
|
+
license: string
|
201
|
+
user: User
|
202
|
+
playlist_type: string
|
203
|
+
type: string
|
204
|
+
id: number
|
205
|
+
downloadable: boolean | null
|
206
|
+
likes_count: number
|
207
|
+
sharing: string
|
208
|
+
created_at: string
|
209
|
+
release: string | null
|
210
|
+
tags: string
|
211
|
+
kind: string
|
212
|
+
title: string
|
213
|
+
purchase_title: string | null
|
214
|
+
ean: string
|
215
|
+
streamable: boolean
|
216
|
+
embeddable_by: string
|
217
|
+
artwork_url: string
|
218
|
+
purchase_url: string
|
219
|
+
tracks_uri: string
|
220
|
+
tracks: Track[]
|
221
|
+
}
|
222
|
+
|
223
|
+
export interface Playlists {
|
224
|
+
collection: Playlist[]
|
225
|
+
next_href: string
|
226
|
+
}
|
227
|
+
// Used to create a new playlist
|
228
|
+
interface PlaylistData {
|
229
|
+
playlist: {
|
230
|
+
title: string
|
231
|
+
description: string
|
232
|
+
sharing: string
|
233
|
+
tracks: {
|
234
|
+
id: number
|
235
|
+
}[]
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
export interface Comment {
|
240
|
+
kind: string
|
241
|
+
id: number
|
242
|
+
body: string
|
243
|
+
created_at: string
|
244
|
+
timestamp: number
|
245
|
+
track_id: number
|
246
|
+
user_id: number
|
247
|
+
user: User
|
248
|
+
uri: string
|
249
|
+
}
|
250
|
+
|
251
|
+
export interface Comments {
|
252
|
+
collection: Comment[]
|
253
|
+
next_href: string
|
254
|
+
}
|
255
|
+
|
256
|
+
export interface CommentData {
|
257
|
+
comment: {
|
258
|
+
body: string
|
259
|
+
timestamp: number
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
export interface Streams {
|
264
|
+
http_mp3_128_url: string
|
265
|
+
hls_mp3_128_url: string
|
266
|
+
hls_opus_64_url: string
|
267
|
+
preview_mp3_128_url: string
|
268
|
+
}
|
269
|
+
|
270
|
+
export interface WebProfile {
|
271
|
+
created_at: string
|
272
|
+
id: number
|
273
|
+
kind: "web-profile"
|
274
|
+
service: string
|
275
|
+
title: string
|
276
|
+
url: string
|
277
|
+
username: string
|
278
|
+
}
|
279
|
+
|
280
|
+
export interface AuthToken {
|
281
|
+
access_token: string
|
282
|
+
token_type: string
|
283
|
+
expires_in: number
|
284
|
+
refresh_token: string
|
285
|
+
scope: string
|
286
|
+
}
|