11// Classes from https://github.com/Moebytes/soundcloud.ts
22// MIT License
3- export type SoundcloudImageFormats =
4- | 't500x500'
5- | 'crop'
6- | 't300x300'
7- | 'large'
8- | 't67x67'
9- | 'badge'
10- | 'small'
11- | 'tiny'
12- | 'mini' ;
3+ export type SoundcloudImageFormats = 't500x500' ;
4+ 'crop' ;
5+ 't300x300' ;
6+ 'large' ;
7+ 't67x67' ;
8+ 'badge' ;
9+ 'small' ;
10+ 'tiny' ;
11+ 'mini' ;
1312
14- export type SoundcloudLicense =
15- | 'no-rights-reserved'
16- | 'all-rights-reserved'
17- | 'cc-by'
18- | 'cc-by-nc'
19- | 'cc-by-nd'
20- | 'cc-by-sa'
21- | 'cc-by-nc-nd'
22- | 'cc-by-nc-sa' ;
13+ export type SoundcloudLicense = 'no-rights-reserved' ;
14+ 'all-rights-reserved' ;
15+ 'cc-by' ;
16+ 'cc-by-nc' ;
17+ 'cc-by-nd' ;
18+ 'cc-by-sa' ;
19+ 'cc-by-nc-nd' ;
20+ 'cc-by-nc-sa' ;
2321
24- export type SoundcloudTrackType =
25- | 'original'
26- | 'remix'
27- | 'live'
28- | 'recording'
29- | 'spoken'
30- | 'podcast'
31- | 'demo'
32- | 'in progress'
33- | 'stem'
34- | 'loop'
35- | 'sound effect'
36- | 'sample'
37- | 'other' ;
22+ export type SoundcloudTrackType = 'original' ;
23+ 'remix' ;
24+ 'live' ;
25+ 'recording' ;
26+ 'spoken' ;
27+ 'podcast' ;
28+ 'demo' ;
29+ 'in progress' ;
30+ 'stem' ;
31+ 'loop' ;
32+ 'sound effect' ;
33+ 'sample' ;
34+ 'other' ;
3835
3936export interface SoundcloudTrack {
40- artwork_url : string ;
41- comment_count : number ;
42- commentable : boolean ;
43- created_at : string ;
44- description : string ;
45- display_date : string ;
46- download_count : number ;
47- downloadable : boolean ;
48- duration : number ;
49- embeddable_by : " all" | "me" | " none" ;
50- full_duration : number ;
51- genre : string ;
52- has_downloads_left : boolean ;
53- id : number ;
54- kind : string ;
55- label_name : string ;
56- last_modified : string ;
57- license : SoundcloudLicense ;
58- likes_count : number ;
59- monetization_model : string ;
60- permalink : string ;
61- permalink_url : string ;
62- playback_count : number ;
63- policy : string ;
64- public : boolean ;
65- purchase_title : string ;
66- purchase_url : string ;
67- reposts_count : number ;
68- secret_token : string ;
69- sharing : " private" | " public" ;
70- state : " processing" | " failed" | " finished" ;
71- streamable : boolean ;
72- tag_list : string ;
73- title : string ;
74- uri : string ;
75- urn : string ;
76- user : SoundcloudUser ;
77- user_id : number ;
78- visuals : string ;
79- waveform_url : string ;
80- release : string | null ;
81- key_signature : string | null ;
82- isrc : string | null ;
83- bpm : number | null ;
84- release_year : number | null ;
85- release_month : number | null ;
86- release_day : number | null ;
87- stream_url : string ;
88- download_url : string | null ;
89- available_country_codes : string [ ] | null ;
90- secret_uri : string | null ;
91- user_favorite : boolean | null ;
92- user_playback_count : number | null ;
93- favoritings_count : number ;
94- access : string ;
95- metadata_artist : string ;
37+ artwork_url : string ;
38+ comment_count : number ;
39+ commentable : boolean ;
40+ created_at : string ;
41+ description : string ;
42+ display_date : string ;
43+ download_count : number ;
44+ downloadable : boolean ;
45+ duration : number ;
46+ embeddable_by : ' all' | 'me' | ' none' ;
47+ full_duration : number ;
48+ genre : string ;
49+ has_downloads_left : boolean ;
50+ id : number ;
51+ kind : string ;
52+ label_name : string ;
53+ last_modified : string ;
54+ license : SoundcloudLicense ;
55+ likes_count : number ;
56+ monetization_model : string ;
57+ permalink : string ;
58+ permalink_url : string ;
59+ playback_count : number ;
60+ policy : string ;
61+ public : boolean ;
62+ purchase_title : string ;
63+ purchase_url : string ;
64+ reposts_count : number ;
65+ secret_token : string ;
66+ sharing : ' private' | ' public' ;
67+ state : ' processing' | ' failed' | ' finished' ;
68+ streamable : boolean ;
69+ tag_list : string ;
70+ title : string ;
71+ uri : string ;
72+ urn : string ;
73+ user : SoundcloudUser ;
74+ user_id : number ;
75+ visuals : string ;
76+ waveform_url : string ;
77+ release : string | null ;
78+ key_signature : string | null ;
79+ isrc : string | null ;
80+ bpm : number | null ;
81+ release_year : number | null ;
82+ release_month : number | null ;
83+ release_day : number | null ;
84+ stream_url : string ;
85+ download_url : string | null ;
86+ available_country_codes : string [ ] | null ;
87+ secret_uri : string | null ;
88+ user_favorite : boolean | null ;
89+ user_playback_count : number | null ;
90+ favoritings_count : number ;
91+ access : string ;
92+ metadata_artist : string ;
9693}
9794
9895export interface SoundcloudPlaylist {
@@ -185,7 +182,6 @@ export interface SoundcloudCreatorSubscription {
185182 } ;
186183}
187184
188-
189185//Custom Classes
190186
191187export type ApiError = {
@@ -204,4 +200,4 @@ export type RawReponse = {
204200 type : 'track' | 'playlist' ;
205201 /** Url of the release */
206202 href : string ;
207- }
203+ } ;
0 commit comments