lastfm-nodejs-client 1.0.2 → 1.0.4
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/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/dependabot.yml +11 -0
- package/.github/workflows/codeql.yml +74 -0
- package/CHANGELOG.md +8 -3
- package/CODE_OF_CONDUCT.md +128 -0
- package/CONTRIBUTING.md +9 -0
- package/README.md +28 -15
- package/SECURITY.md +14 -0
- package/dist/types.d.ts +153 -106
- package/package.json +1 -1
- package/src/types.d.ts +297 -0
- package/dist/types.js +0 -20
- package/src/types.ts +0 -295
package/dist/types.d.ts
CHANGED
|
@@ -1,93 +1,112 @@
|
|
|
1
|
-
|
|
1
|
+
declare module 'lastfm-nodejs-client' {
|
|
2
|
+
export interface AuthResponse {
|
|
2
3
|
token: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface LovedTracksResponse {
|
|
5
7
|
lovedtracks: LovedTracks;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface LovedTracks {
|
|
8
11
|
track: Track[];
|
|
9
12
|
'@attr': Attr;
|
|
10
|
-
}
|
|
11
|
-
export interface TopAlbumsResponse {
|
|
13
|
+
}
|
|
14
|
+
export interface TopAlbumsResponse {
|
|
12
15
|
topalbums: TopAlbums;
|
|
13
|
-
}
|
|
14
|
-
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TopTrackResponse {
|
|
15
19
|
toptracks: TopTracks;
|
|
16
|
-
}
|
|
17
|
-
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TopTracks {
|
|
18
23
|
track: Track[];
|
|
19
24
|
'@attr': Attr2;
|
|
20
|
-
}
|
|
21
|
-
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface UserResponse {
|
|
22
28
|
user: User;
|
|
23
|
-
}
|
|
24
|
-
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface RecentTracksResponse {
|
|
25
32
|
recenttracks: RecentTracks;
|
|
26
|
-
}
|
|
27
|
-
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface RecentTracks {
|
|
28
36
|
track: Track[];
|
|
29
37
|
'@attr': Attr2;
|
|
30
|
-
}
|
|
31
|
-
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface LoveTracksResponse {
|
|
32
41
|
lovedtracks: LovedTracks;
|
|
33
|
-
}
|
|
34
|
-
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface LovedTracks {
|
|
35
45
|
track: Track[];
|
|
36
46
|
'@attr': Attr;
|
|
37
|
-
}
|
|
38
|
-
export interface FriendsResponse {
|
|
47
|
+
}
|
|
48
|
+
export interface FriendsResponse {
|
|
39
49
|
friends: Friends;
|
|
40
|
-
}
|
|
41
|
-
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface Friends {
|
|
42
53
|
'@attr': Attr;
|
|
43
54
|
user: User[];
|
|
44
|
-
}
|
|
45
|
-
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface TopArtistsResponse {
|
|
46
58
|
topartists: TopArtists;
|
|
47
|
-
}
|
|
48
|
-
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface TopArtists {
|
|
49
62
|
artist: Artist[];
|
|
50
63
|
'@attr': Attr2;
|
|
51
|
-
}
|
|
52
|
-
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface WeeklyArtistChartResponse {
|
|
53
67
|
weeklyartistchart: WeeklyArtistChart;
|
|
54
|
-
}
|
|
55
|
-
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface WeeklyArtistChart {
|
|
56
71
|
artist: Artist[];
|
|
57
72
|
'@attr': Attr2;
|
|
58
|
-
}
|
|
59
|
-
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface WeeklyAlbumChartResponse {
|
|
60
76
|
weeklyalbumchart: WeeklyAlbumChart;
|
|
61
|
-
}
|
|
62
|
-
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface WeeklyAlbumChart {
|
|
63
80
|
album: WeeklyAlbum[];
|
|
64
81
|
'@attr': WeeklyalbumChartAttr;
|
|
65
|
-
}
|
|
66
|
-
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type WeeklyAlbum = {
|
|
67
85
|
artist: {
|
|
68
|
-
|
|
69
|
-
|
|
86
|
+
mbid: string;
|
|
87
|
+
'#text': string;
|
|
70
88
|
};
|
|
71
89
|
mbid: string;
|
|
72
90
|
url: string;
|
|
73
91
|
name: string;
|
|
74
|
-
'@attr': {
|
|
75
|
-
rank: string;
|
|
76
|
-
};
|
|
92
|
+
'@attr': { rank: string };
|
|
77
93
|
playcount: string;
|
|
78
94
|
image?: string;
|
|
79
|
-
};
|
|
80
|
-
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export interface WeeklyalbumChartAttr {
|
|
81
98
|
from: string;
|
|
82
99
|
to: string;
|
|
83
100
|
user: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface AlbumAttr {
|
|
86
104
|
rank: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type Artist = {
|
|
89
108
|
'@attr': {
|
|
90
|
-
|
|
109
|
+
rank: number;
|
|
91
110
|
};
|
|
92
111
|
cover: ArtistImage;
|
|
93
112
|
image?: string;
|
|
@@ -97,32 +116,38 @@ export declare type Artist = {
|
|
|
97
116
|
streamable: number;
|
|
98
117
|
url: string;
|
|
99
118
|
'#text': string;
|
|
100
|
-
};
|
|
101
|
-
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export interface Attribs {
|
|
102
122
|
page: number;
|
|
103
123
|
perPage: number;
|
|
104
124
|
user: string;
|
|
105
125
|
total: number;
|
|
106
126
|
totalPages: number;
|
|
107
|
-
}
|
|
108
|
-
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface ArtistImage {
|
|
109
130
|
name: string;
|
|
110
131
|
photo: string;
|
|
111
132
|
attribution: string;
|
|
112
133
|
playcount: number;
|
|
113
|
-
}
|
|
114
|
-
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface Album {
|
|
115
137
|
mbid: string;
|
|
116
138
|
'#text': string;
|
|
117
|
-
}
|
|
118
|
-
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface Attr {
|
|
119
142
|
nowplaying: string;
|
|
120
|
-
}
|
|
121
|
-
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface Date {
|
|
122
146
|
uts: string;
|
|
123
147
|
'#text': string;
|
|
124
|
-
}
|
|
125
|
-
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface Track {
|
|
126
151
|
artist: Artist;
|
|
127
152
|
streamable: string;
|
|
128
153
|
image: '';
|
|
@@ -132,27 +157,32 @@ export interface Track {
|
|
|
132
157
|
'@attr': Attr;
|
|
133
158
|
url: string;
|
|
134
159
|
date: Date;
|
|
135
|
-
}
|
|
136
|
-
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface Attr2 {
|
|
137
163
|
user: string;
|
|
138
164
|
totalPages: string;
|
|
139
165
|
page: string;
|
|
140
166
|
perPage: string;
|
|
141
167
|
total: string;
|
|
142
|
-
}
|
|
143
|
-
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface RecentTracks {
|
|
144
171
|
track: Track[];
|
|
145
172
|
'@attr': Attr2;
|
|
146
|
-
}
|
|
147
|
-
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface Image {
|
|
148
176
|
size: string;
|
|
149
177
|
'#text': string;
|
|
150
|
-
}
|
|
151
|
-
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface Registered {
|
|
152
181
|
unixtime: string;
|
|
153
182
|
'#text': number;
|
|
154
|
-
}
|
|
155
|
-
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface User {
|
|
156
186
|
name: string;
|
|
157
187
|
age: string;
|
|
158
188
|
subscriber: string;
|
|
@@ -169,49 +199,61 @@ export interface User {
|
|
|
169
199
|
gender: string;
|
|
170
200
|
url: string;
|
|
171
201
|
type: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export interface TopAlbums {
|
|
174
205
|
album: Album[];
|
|
175
206
|
'@attr': Attr2;
|
|
176
|
-
}
|
|
177
|
-
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface WeeklyArtistChartResponse {
|
|
178
210
|
weeklyartistchart: WeeklyArtistChart;
|
|
179
|
-
}
|
|
180
|
-
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface WeeklyArtistChart {
|
|
181
214
|
artist: Artist[];
|
|
182
215
|
'@attr': Attr2;
|
|
183
|
-
}
|
|
184
|
-
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface Attr1 {
|
|
185
219
|
rank: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface Attr2 {
|
|
188
223
|
from: string;
|
|
189
224
|
user: string;
|
|
190
225
|
to: string;
|
|
191
|
-
}
|
|
192
|
-
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface WeeklyChartListResponse {
|
|
193
229
|
weeklychartlist: WeeklyChartList;
|
|
194
|
-
}
|
|
195
|
-
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface WeeklyChartList {
|
|
196
233
|
chart: WeeklyChartListChart[];
|
|
197
234
|
'@attr': WeeklyChartListAttr;
|
|
198
|
-
}
|
|
199
|
-
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export interface WeeklyChartListChart {
|
|
200
238
|
'#text': string;
|
|
201
239
|
from: string;
|
|
202
240
|
to: string;
|
|
203
|
-
}
|
|
204
|
-
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface WeeklyChartListAttr {
|
|
205
244
|
user: string;
|
|
206
|
-
}
|
|
207
|
-
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface WeeklyTrackChartResponse {
|
|
208
248
|
weeklytrackchart: WeeklyTrackChart;
|
|
209
|
-
}
|
|
210
|
-
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface WeeklyTrackChart {
|
|
211
252
|
track: Track[];
|
|
212
253
|
'@attr': WeeklyTrackChartAttr2;
|
|
213
|
-
}
|
|
214
|
-
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface WeeklyTrackChartTrack {
|
|
215
257
|
artist: WeeklyTrackChartArtist;
|
|
216
258
|
image: Image[];
|
|
217
259
|
mbid: string;
|
|
@@ -219,20 +261,24 @@ export interface WeeklyTrackChartTrack {
|
|
|
219
261
|
name: string;
|
|
220
262
|
'@attr': Attr;
|
|
221
263
|
playcount: string;
|
|
222
|
-
}
|
|
223
|
-
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface WeeklyTrackChartArtist {
|
|
224
267
|
mbid: string;
|
|
225
268
|
'#text': string;
|
|
226
|
-
}
|
|
227
|
-
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface WeeklyTrackChartAttr {
|
|
228
272
|
rank: string;
|
|
229
|
-
}
|
|
230
|
-
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface WeeklyTrackChartAttr2 {
|
|
231
276
|
from: string;
|
|
232
277
|
user: string;
|
|
233
278
|
to: string;
|
|
234
|
-
}
|
|
235
|
-
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export enum Errors {
|
|
236
282
|
'InvalidService' = 2,
|
|
237
283
|
'InvalidMethod' = 3,
|
|
238
284
|
'AuthenticationFailed' = 4,
|
|
@@ -246,5 +292,6 @@ export declare enum Errors {
|
|
|
246
292
|
'InvalidMethodSignatureSupplied' = 13,
|
|
247
293
|
'TemporaryErrorRequest' = 16,
|
|
248
294
|
'SuspendedApiKey' = 26,
|
|
249
|
-
'RateLimitExceeded' = 29
|
|
295
|
+
'RateLimitExceeded' = 29,
|
|
296
|
+
}
|
|
250
297
|
}
|
package/package.json
CHANGED
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
declare module 'lastfm-nodejs-client' {
|
|
2
|
+
export interface AuthResponse {
|
|
3
|
+
token: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface LovedTracksResponse {
|
|
7
|
+
lovedtracks: LovedTracks;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface LovedTracks {
|
|
11
|
+
track: Track[];
|
|
12
|
+
'@attr': Attr;
|
|
13
|
+
}
|
|
14
|
+
export interface TopAlbumsResponse {
|
|
15
|
+
topalbums: TopAlbums;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TopTrackResponse {
|
|
19
|
+
toptracks: TopTracks;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TopTracks {
|
|
23
|
+
track: Track[];
|
|
24
|
+
'@attr': Attr2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface UserResponse {
|
|
28
|
+
user: User;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface RecentTracksResponse {
|
|
32
|
+
recenttracks: RecentTracks;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface RecentTracks {
|
|
36
|
+
track: Track[];
|
|
37
|
+
'@attr': Attr2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface LoveTracksResponse {
|
|
41
|
+
lovedtracks: LovedTracks;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface LovedTracks {
|
|
45
|
+
track: Track[];
|
|
46
|
+
'@attr': Attr;
|
|
47
|
+
}
|
|
48
|
+
export interface FriendsResponse {
|
|
49
|
+
friends: Friends;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface Friends {
|
|
53
|
+
'@attr': Attr;
|
|
54
|
+
user: User[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface TopArtistsResponse {
|
|
58
|
+
topartists: TopArtists;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface TopArtists {
|
|
62
|
+
artist: Artist[];
|
|
63
|
+
'@attr': Attr2;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface WeeklyArtistChartResponse {
|
|
67
|
+
weeklyartistchart: WeeklyArtistChart;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface WeeklyArtistChart {
|
|
71
|
+
artist: Artist[];
|
|
72
|
+
'@attr': Attr2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface WeeklyAlbumChartResponse {
|
|
76
|
+
weeklyalbumchart: WeeklyAlbumChart;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface WeeklyAlbumChart {
|
|
80
|
+
album: WeeklyAlbum[];
|
|
81
|
+
'@attr': WeeklyalbumChartAttr;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type WeeklyAlbum = {
|
|
85
|
+
artist: {
|
|
86
|
+
mbid: string;
|
|
87
|
+
'#text': string;
|
|
88
|
+
};
|
|
89
|
+
mbid: string;
|
|
90
|
+
url: string;
|
|
91
|
+
name: string;
|
|
92
|
+
'@attr': { rank: string };
|
|
93
|
+
playcount: string;
|
|
94
|
+
image?: string;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export interface WeeklyalbumChartAttr {
|
|
98
|
+
from: string;
|
|
99
|
+
to: string;
|
|
100
|
+
user: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface AlbumAttr {
|
|
104
|
+
rank: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type Artist = {
|
|
108
|
+
'@attr': {
|
|
109
|
+
rank: number;
|
|
110
|
+
};
|
|
111
|
+
cover: ArtistImage;
|
|
112
|
+
image?: string;
|
|
113
|
+
mbid: string;
|
|
114
|
+
name: string;
|
|
115
|
+
playcount: number;
|
|
116
|
+
streamable: number;
|
|
117
|
+
url: string;
|
|
118
|
+
'#text': string;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export interface Attribs {
|
|
122
|
+
page: number;
|
|
123
|
+
perPage: number;
|
|
124
|
+
user: string;
|
|
125
|
+
total: number;
|
|
126
|
+
totalPages: number;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface ArtistImage {
|
|
130
|
+
name: string;
|
|
131
|
+
photo: string;
|
|
132
|
+
attribution: string;
|
|
133
|
+
playcount: number;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface Album {
|
|
137
|
+
mbid: string;
|
|
138
|
+
'#text': string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface Attr {
|
|
142
|
+
nowplaying: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface Date {
|
|
146
|
+
uts: string;
|
|
147
|
+
'#text': string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface Track {
|
|
151
|
+
artist: Artist;
|
|
152
|
+
streamable: string;
|
|
153
|
+
image: '';
|
|
154
|
+
mbid: string;
|
|
155
|
+
album: Album;
|
|
156
|
+
name: string;
|
|
157
|
+
'@attr': Attr;
|
|
158
|
+
url: string;
|
|
159
|
+
date: Date;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface Attr2 {
|
|
163
|
+
user: string;
|
|
164
|
+
totalPages: string;
|
|
165
|
+
page: string;
|
|
166
|
+
perPage: string;
|
|
167
|
+
total: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface RecentTracks {
|
|
171
|
+
track: Track[];
|
|
172
|
+
'@attr': Attr2;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface Image {
|
|
176
|
+
size: string;
|
|
177
|
+
'#text': string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface Registered {
|
|
181
|
+
unixtime: string;
|
|
182
|
+
'#text': number;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface User {
|
|
186
|
+
name: string;
|
|
187
|
+
age: string;
|
|
188
|
+
subscriber: string;
|
|
189
|
+
realname: string;
|
|
190
|
+
bootstrap: string;
|
|
191
|
+
playcount: string;
|
|
192
|
+
artist_count: string;
|
|
193
|
+
playlists: string;
|
|
194
|
+
track_count: string;
|
|
195
|
+
album_count: string;
|
|
196
|
+
image: Image[];
|
|
197
|
+
registered: Registered;
|
|
198
|
+
country: string;
|
|
199
|
+
gender: string;
|
|
200
|
+
url: string;
|
|
201
|
+
type: string;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export interface TopAlbums {
|
|
205
|
+
album: Album[];
|
|
206
|
+
'@attr': Attr2;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface WeeklyArtistChartResponse {
|
|
210
|
+
weeklyartistchart: WeeklyArtistChart;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface WeeklyArtistChart {
|
|
214
|
+
artist: Artist[];
|
|
215
|
+
'@attr': Attr2;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface Attr1 {
|
|
219
|
+
rank: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface Attr2 {
|
|
223
|
+
from: string;
|
|
224
|
+
user: string;
|
|
225
|
+
to: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface WeeklyChartListResponse {
|
|
229
|
+
weeklychartlist: WeeklyChartList;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface WeeklyChartList {
|
|
233
|
+
chart: WeeklyChartListChart[];
|
|
234
|
+
'@attr': WeeklyChartListAttr;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export interface WeeklyChartListChart {
|
|
238
|
+
'#text': string;
|
|
239
|
+
from: string;
|
|
240
|
+
to: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface WeeklyChartListAttr {
|
|
244
|
+
user: string;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface WeeklyTrackChartResponse {
|
|
248
|
+
weeklytrackchart: WeeklyTrackChart;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface WeeklyTrackChart {
|
|
252
|
+
track: Track[];
|
|
253
|
+
'@attr': WeeklyTrackChartAttr2;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface WeeklyTrackChartTrack {
|
|
257
|
+
artist: WeeklyTrackChartArtist;
|
|
258
|
+
image: Image[];
|
|
259
|
+
mbid: string;
|
|
260
|
+
url: string;
|
|
261
|
+
name: string;
|
|
262
|
+
'@attr': Attr;
|
|
263
|
+
playcount: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface WeeklyTrackChartArtist {
|
|
267
|
+
mbid: string;
|
|
268
|
+
'#text': string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface WeeklyTrackChartAttr {
|
|
272
|
+
rank: string;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface WeeklyTrackChartAttr2 {
|
|
276
|
+
from: string;
|
|
277
|
+
user: string;
|
|
278
|
+
to: string;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export enum Errors {
|
|
282
|
+
'InvalidService' = 2,
|
|
283
|
+
'InvalidMethod' = 3,
|
|
284
|
+
'AuthenticationFailed' = 4,
|
|
285
|
+
'Invalid format' = 5,
|
|
286
|
+
'Invalid parameters' = 6,
|
|
287
|
+
'InvalidResourceSpecified' = 7,
|
|
288
|
+
'OperationFailed' = 8,
|
|
289
|
+
'Invalid session key' = 9,
|
|
290
|
+
'InvalidApiKey' = 10,
|
|
291
|
+
'ServiceOffline' = 11,
|
|
292
|
+
'InvalidMethodSignatureSupplied' = 13,
|
|
293
|
+
'TemporaryErrorRequest' = 16,
|
|
294
|
+
'SuspendedApiKey' = 26,
|
|
295
|
+
'RateLimitExceeded' = 29,
|
|
296
|
+
}
|
|
297
|
+
}
|
package/dist/types.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Errors = void 0;
|
|
4
|
-
var Errors;
|
|
5
|
-
(function (Errors) {
|
|
6
|
-
Errors[Errors["InvalidService"] = 2] = "InvalidService";
|
|
7
|
-
Errors[Errors["InvalidMethod"] = 3] = "InvalidMethod";
|
|
8
|
-
Errors[Errors["AuthenticationFailed"] = 4] = "AuthenticationFailed";
|
|
9
|
-
Errors[Errors["Invalid format"] = 5] = "Invalid format";
|
|
10
|
-
Errors[Errors["Invalid parameters"] = 6] = "Invalid parameters";
|
|
11
|
-
Errors[Errors["InvalidResourceSpecified"] = 7] = "InvalidResourceSpecified";
|
|
12
|
-
Errors[Errors["OperationFailed"] = 8] = "OperationFailed";
|
|
13
|
-
Errors[Errors["Invalid session key"] = 9] = "Invalid session key";
|
|
14
|
-
Errors[Errors["InvalidApiKey"] = 10] = "InvalidApiKey";
|
|
15
|
-
Errors[Errors["ServiceOffline"] = 11] = "ServiceOffline";
|
|
16
|
-
Errors[Errors["InvalidMethodSignatureSupplied"] = 13] = "InvalidMethodSignatureSupplied";
|
|
17
|
-
Errors[Errors["TemporaryErrorRequest"] = 16] = "TemporaryErrorRequest";
|
|
18
|
-
Errors[Errors["SuspendedApiKey"] = 26] = "SuspendedApiKey";
|
|
19
|
-
Errors[Errors["RateLimitExceeded"] = 29] = "RateLimitExceeded";
|
|
20
|
-
})(Errors = exports.Errors || (exports.Errors = {}));
|