javascript-ampache 1.0.6 → 1.0.8
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/dist/albums/index.d.ts +10 -4
- package/dist/artists/index.d.ts +10 -4
- package/dist/base.d.ts +10 -0
- package/dist/bookmarks/index.d.ts +1 -1
- package/dist/catalogs/index.d.ts +6 -2
- package/dist/genres/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.m.js +1 -1
- package/dist/index.m.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/labels/index.d.ts +4 -2
- package/dist/licenses/index.d.ts +4 -2
- package/dist/live-streams/index.d.ts +4 -2
- package/dist/playlists/index.d.ts +11 -5
- package/dist/podcasts/index.d.ts +7 -3
- package/dist/shares/index.d.ts +4 -2
- package/dist/songs/index.d.ts +16 -6
- package/dist/system/index.d.ts +15 -7
- package/dist/users/index.d.ts +6 -2
- package/package.json +6 -6
- package/src/albums/index.ts +10 -4
- package/src/artists/index.ts +10 -4
- package/src/base.ts +13 -2
- package/src/bookmarks/index.ts +1 -1
- package/src/catalogs/index.ts +6 -2
- package/src/genres/index.ts +4 -2
- package/src/labels/index.ts +4 -2
- package/src/licenses/index.ts +4 -2
- package/src/live-streams/index.ts +4 -2
- package/src/playlists/index.ts +11 -5
- package/src/podcasts/index.ts +7 -3
- package/src/shares/index.ts +4 -2
- package/src/songs/index.ts +16 -6
- package/src/system/index.ts +15 -7
- package/src/users/index.ts +6 -2
package/src/licenses/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import qs from 'querystringify';
|
|
2
2
|
import { License } from './types';
|
|
3
|
-
import { Base, BinaryBoolean,
|
|
3
|
+
import { Base, BinaryBoolean, ExtendedPagination, UID } from '../base';
|
|
4
4
|
|
|
5
5
|
export class Licenses extends Base {
|
|
6
6
|
/**
|
|
@@ -12,6 +12,8 @@ export class Licenses extends Base {
|
|
|
12
12
|
* @param [params.update] ISO 8601 Date Format (2020-09-16) Find objects with an 'update' time newer than the specified date
|
|
13
13
|
* @param [params.offset]
|
|
14
14
|
* @param [params.limit]
|
|
15
|
+
* @param [params.cond]
|
|
16
|
+
* @param [params.sort]
|
|
15
17
|
* @see {@link https://ampache.org/api/api-json-methods#licenses}
|
|
16
18
|
*/
|
|
17
19
|
async licenses (params?: {
|
|
@@ -19,7 +21,7 @@ export class Licenses extends Base {
|
|
|
19
21
|
exact?: BinaryBoolean,
|
|
20
22
|
add?: Date,
|
|
21
23
|
update?: Date,
|
|
22
|
-
} &
|
|
24
|
+
} & ExtendedPagination) {
|
|
23
25
|
let query = 'licenses';
|
|
24
26
|
query += qs.stringify(params, '&');
|
|
25
27
|
let data = await this.request<{license: License[]}>(query);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import qs from 'querystringify';
|
|
2
2
|
import { LiveStream } from './types';
|
|
3
|
-
import { Base, BinaryBoolean,
|
|
3
|
+
import { Base, BinaryBoolean, ExtendedPagination, Success, UID } from '../base';
|
|
4
4
|
|
|
5
5
|
export class LiveStreams extends Base {
|
|
6
6
|
/**
|
|
@@ -12,6 +12,8 @@ export class LiveStreams extends Base {
|
|
|
12
12
|
* @param [params.update] ISO 8601 Date Format (2020-09-16) Find objects with an 'update' time newer than the specified date
|
|
13
13
|
* @param [params.offset]
|
|
14
14
|
* @param [params.limit]
|
|
15
|
+
* @param [params.cond]
|
|
16
|
+
* @param [params.sort]
|
|
15
17
|
* @see {@link https://ampache.org/api/api-json-methods#live_streams}
|
|
16
18
|
*/
|
|
17
19
|
async liveStreams (params?: {
|
|
@@ -19,7 +21,7 @@ export class LiveStreams extends Base {
|
|
|
19
21
|
exact?: BinaryBoolean,
|
|
20
22
|
add?: Date,
|
|
21
23
|
update?: Date,
|
|
22
|
-
} &
|
|
24
|
+
} & ExtendedPagination) {
|
|
23
25
|
let query = 'live_streams';
|
|
24
26
|
query += qs.stringify(params, '&');
|
|
25
27
|
let data = await this.request<{live_stream: LiveStream[]}>(query);
|
package/src/playlists/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import qs from 'querystringify';
|
|
2
2
|
import { Playlist } from './types';
|
|
3
3
|
import { Song } from "../songs/types";
|
|
4
|
-
import {
|
|
4
|
+
import {Base, BinaryBoolean, ExtendedPagination, Pagination, Success, UID} from '../base';
|
|
5
5
|
|
|
6
6
|
export class Playlists extends Base {
|
|
7
7
|
/**
|
|
@@ -15,6 +15,8 @@ export class Playlists extends Base {
|
|
|
15
15
|
* @param [params.show_dupes] 0, 1 (if true ignore 'api_hide_dupe_searches' setting)
|
|
16
16
|
* @param [params.offset]
|
|
17
17
|
* @param [params.limit]
|
|
18
|
+
* @param [params.cond]
|
|
19
|
+
* @param [params.sort]
|
|
18
20
|
* @see {@link https://ampache.org/api/api-json-methods#playlists}
|
|
19
21
|
*/
|
|
20
22
|
async playlists (params?: {
|
|
@@ -24,7 +26,7 @@ export class Playlists extends Base {
|
|
|
24
26
|
update?: Date,
|
|
25
27
|
hide_search?: BinaryBoolean,
|
|
26
28
|
show_dupes?: BinaryBoolean,
|
|
27
|
-
} &
|
|
29
|
+
} & ExtendedPagination) {
|
|
28
30
|
let query = 'playlists';
|
|
29
31
|
query += qs.stringify(params, '&');
|
|
30
32
|
let data = await this.request<{playlist: Playlist[]}>(query);
|
|
@@ -87,6 +89,8 @@ export class Playlists extends Base {
|
|
|
87
89
|
* @param [params.update] ISO 8601 Date Format (2020-09-16) Find objects with an 'update' time newer than the specified date
|
|
88
90
|
* @param [params.offset]
|
|
89
91
|
* @param [params.limit]
|
|
92
|
+
* @param [params.cond]
|
|
93
|
+
* @param [params.sort]
|
|
90
94
|
* @see {@link https://ampache.org/api/api-json-methods#user_playlists}
|
|
91
95
|
*/
|
|
92
96
|
async userPlaylists (params?: {
|
|
@@ -94,7 +98,7 @@ export class Playlists extends Base {
|
|
|
94
98
|
exact?: BinaryBoolean,
|
|
95
99
|
add?: Date,
|
|
96
100
|
update?: Date,
|
|
97
|
-
} &
|
|
101
|
+
} & ExtendedPagination) {
|
|
98
102
|
let query = 'user_playlists';
|
|
99
103
|
query += qs.stringify(params, '&');
|
|
100
104
|
let data = await this.request<{playlist: Playlist[]}>(query);
|
|
@@ -110,6 +114,8 @@ export class Playlists extends Base {
|
|
|
110
114
|
* @param [params.update] ISO 8601 Date Format (2020-09-16) Find objects with an 'update' time newer than the specified date
|
|
111
115
|
* @param [params.offset]
|
|
112
116
|
* @param [params.limit]
|
|
117
|
+
* @param [params.cond]
|
|
118
|
+
* @param [params.sort]
|
|
113
119
|
* @see {@link https://ampache.org/api/api-json-methods#user_smartlists}
|
|
114
120
|
*/
|
|
115
121
|
async userSmartlists (params?: {
|
|
@@ -117,7 +123,7 @@ export class Playlists extends Base {
|
|
|
117
123
|
exact?: BinaryBoolean,
|
|
118
124
|
add?: Date,
|
|
119
125
|
update?: Date,
|
|
120
|
-
} &
|
|
126
|
+
} & ExtendedPagination) {
|
|
121
127
|
let query = 'user_smartlists';
|
|
122
128
|
query += qs.stringify(params, '&');
|
|
123
129
|
let data = await this.request<{playlist: Playlist[]}>(query);
|
|
@@ -159,7 +165,7 @@ export class Playlists extends Base {
|
|
|
159
165
|
}
|
|
160
166
|
|
|
161
167
|
/**
|
|
162
|
-
* This modifies name and type of
|
|
168
|
+
* This modifies name and type of the playlist.
|
|
163
169
|
* NOTE items and tracks must be sent together and be of equal length.
|
|
164
170
|
* @remarks MINIMUM_API_VERSION=400001
|
|
165
171
|
* @param params.filter UID to find
|
package/src/podcasts/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import qs from 'querystringify';
|
|
2
2
|
import { Podcast, PodcastEpisode, DeletedPodcastEpisode } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import {Base, ExtendedPagination, Pagination, Success, UID} from '../base';
|
|
4
4
|
|
|
5
5
|
export class Podcasts extends Base {
|
|
6
6
|
/**
|
|
@@ -10,12 +10,14 @@ export class Podcasts extends Base {
|
|
|
10
10
|
* @param [params.include] episodes (include podcast_episodes in the response)
|
|
11
11
|
* @param [params.offset]
|
|
12
12
|
* @param [params.limit]
|
|
13
|
+
* @param [params.cond]
|
|
14
|
+
* @param [params.sort]
|
|
13
15
|
* @see {@link https://ampache.org/api/api-json-methods#podcasts}
|
|
14
16
|
*/
|
|
15
17
|
async podcasts (params?: {
|
|
16
18
|
filter?: string,
|
|
17
19
|
include?: 'episodes',
|
|
18
|
-
} &
|
|
20
|
+
} & ExtendedPagination) {
|
|
19
21
|
let query = 'podcasts';
|
|
20
22
|
query += qs.stringify(params, '&');
|
|
21
23
|
let data = await this.request<{podcast: Podcast[]}>(query);
|
|
@@ -102,11 +104,13 @@ export class Podcasts extends Base {
|
|
|
102
104
|
* @param params.filter UID of podcast
|
|
103
105
|
* @param [params.offset]
|
|
104
106
|
* @param [params.limit]
|
|
107
|
+
* @param [params.cond]
|
|
108
|
+
* @param [params.sort]
|
|
105
109
|
* @see {@link https://ampache.org/api/api-json-methods#podcast_episodes}
|
|
106
110
|
*/
|
|
107
111
|
async podcastEpisodes (params: {
|
|
108
112
|
filter: UID,
|
|
109
|
-
} &
|
|
113
|
+
} & ExtendedPagination) {
|
|
110
114
|
let query = 'podcast_episodes';
|
|
111
115
|
query += qs.stringify(params, '&');
|
|
112
116
|
let data = await this.request<{podcast_episode: PodcastEpisode[]}>(query);
|
package/src/shares/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import qs from 'querystringify';
|
|
2
2
|
import { Share } from './types';
|
|
3
|
-
import { Base, BinaryBoolean,
|
|
3
|
+
import { Base, BinaryBoolean, ExtendedPagination, Success, UID } from '../base';
|
|
4
4
|
|
|
5
5
|
export class Shares extends Base {
|
|
6
6
|
/**
|
|
@@ -10,12 +10,14 @@ export class Shares extends Base {
|
|
|
10
10
|
* @param [params.exact] 0, 1 boolean to match the exact filter string
|
|
11
11
|
* @param [params.offset]
|
|
12
12
|
* @param [params.limit]
|
|
13
|
+
* @param [params.cond]
|
|
14
|
+
* @param [params.sort]
|
|
13
15
|
* @see {@link https://ampache.org/api/api-json-methods#shares}
|
|
14
16
|
*/
|
|
15
17
|
async shares (params?: {
|
|
16
18
|
filter?: string,
|
|
17
19
|
exact?: BinaryBoolean,
|
|
18
|
-
} &
|
|
20
|
+
} & ExtendedPagination) {
|
|
19
21
|
let query = 'shares';
|
|
20
22
|
query += qs.stringify(params, '&');
|
|
21
23
|
let data = await this.request<{share: Share[]}>(query);
|
package/src/songs/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import qs from 'querystringify';
|
|
2
2
|
import { Song, DeletedSong } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import {Base, BinaryBoolean, ExtendedPagination, Pagination, Success, UID} from '../base';
|
|
4
4
|
|
|
5
5
|
export class Songs extends Base {
|
|
6
6
|
/**
|
|
@@ -12,6 +12,8 @@ export class Songs extends Base {
|
|
|
12
12
|
* @param [params.update] ISO 8601 Date Format (2020-09-16) Find objects with an 'update' time newer than the specified date
|
|
13
13
|
* @param [params.offset]
|
|
14
14
|
* @param [params.limit]
|
|
15
|
+
* @param [params.cond]
|
|
16
|
+
* @param [params.sort]
|
|
15
17
|
* @see {@link https://ampache.org/api/api-json-methods#songs}
|
|
16
18
|
*/
|
|
17
19
|
async songs (params?: {
|
|
@@ -19,7 +21,7 @@ export class Songs extends Base {
|
|
|
19
21
|
exact?: BinaryBoolean,
|
|
20
22
|
add?: Date,
|
|
21
23
|
update?: Date,
|
|
22
|
-
} &
|
|
24
|
+
} & ExtendedPagination) {
|
|
23
25
|
let query = 'songs';
|
|
24
26
|
query += qs.stringify(params, '&');
|
|
25
27
|
let data = await this.request<{song: Song[]}>(query);
|
|
@@ -47,12 +49,14 @@ export class Songs extends Base {
|
|
|
47
49
|
* @param [params.top50] 0, 1 (if true filter to the artist top 50)
|
|
48
50
|
* @param [params.offset]
|
|
49
51
|
* @param [params.limit]
|
|
52
|
+
* @param [params.cond]
|
|
53
|
+
* @param [params.sort]
|
|
50
54
|
* @see {@link https://ampache.org/api/api-json-methods#artist_songs}
|
|
51
55
|
*/
|
|
52
56
|
async artistSongs (params: {
|
|
53
57
|
filter: UID,
|
|
54
58
|
top50?: BinaryBoolean,
|
|
55
|
-
} &
|
|
59
|
+
} & ExtendedPagination) {
|
|
56
60
|
let query = 'artist_songs';
|
|
57
61
|
query += qs.stringify(params, '&');
|
|
58
62
|
let data = await this.request<{song: Song[]}>(query);
|
|
@@ -65,11 +69,13 @@ export class Songs extends Base {
|
|
|
65
69
|
* @param params.filter UID to find
|
|
66
70
|
* @param [params.offset]
|
|
67
71
|
* @param [params.limit]
|
|
72
|
+
* @param [params.cond]
|
|
73
|
+
* @param [params.sort]
|
|
68
74
|
* @see {@link https://ampache.org/api/api-json-methods#album_songs}
|
|
69
75
|
*/
|
|
70
76
|
async albumSongs (params: {
|
|
71
77
|
filter: UID,
|
|
72
|
-
} &
|
|
78
|
+
} & ExtendedPagination) {
|
|
73
79
|
let query = 'album_songs';
|
|
74
80
|
query += qs.stringify(params, '&');
|
|
75
81
|
let data = await this.request<{song: Song[]}>(query);
|
|
@@ -82,11 +88,13 @@ export class Songs extends Base {
|
|
|
82
88
|
* @param params.filter UID to find
|
|
83
89
|
* @param [params.offset]
|
|
84
90
|
* @param [params.limit]
|
|
91
|
+
* @param [params.cond]
|
|
92
|
+
* @param [params.sort]
|
|
85
93
|
* @see {@link https://ampache.org/api/api-json-methods#genre_songs}
|
|
86
94
|
*/
|
|
87
95
|
async genreSongs (params: {
|
|
88
96
|
filter: UID,
|
|
89
|
-
} &
|
|
97
|
+
} & ExtendedPagination) {
|
|
90
98
|
let query = 'genre_songs';
|
|
91
99
|
query += qs.stringify(params, '&');
|
|
92
100
|
let data = await this.request<{song: Song[]}>(query);
|
|
@@ -118,11 +126,13 @@ export class Songs extends Base {
|
|
|
118
126
|
* @param params.filter UID to find
|
|
119
127
|
* @param [params.offset]
|
|
120
128
|
* @param [params.limit]
|
|
129
|
+
* @param [params.cond]
|
|
130
|
+
* @param [params.sort]
|
|
121
131
|
* @see {@link https://ampache.org/api/api-json-methods#license_songs}
|
|
122
132
|
*/
|
|
123
133
|
async licenseSongs (params: {
|
|
124
134
|
filter: UID,
|
|
125
|
-
} &
|
|
135
|
+
} & ExtendedPagination) {
|
|
126
136
|
let query = 'license_songs';
|
|
127
137
|
query += qs.stringify(params, '&');
|
|
128
138
|
let data = await this.request<{song: Song[]}>(query);
|
package/src/system/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import qs from 'querystringify';
|
|
2
2
|
import { Song } from "../songs/types";
|
|
3
3
|
import { Artist } from "../artists/types";
|
|
4
|
-
import {
|
|
4
|
+
import {Base, BinaryBoolean, ExtendedPagination, Pagination, Success, UID} from '../base';
|
|
5
5
|
import { Album } from '../albums/types';
|
|
6
6
|
import { Video } from '../videos/types';
|
|
7
7
|
import { Playlist } from '../playlists/types';
|
|
@@ -34,6 +34,8 @@ export class System extends Base {
|
|
|
34
34
|
* @param [params.hide_search] 0, 1 (if true do not include searches/smartlists in the result)
|
|
35
35
|
* @param [params.offset]
|
|
36
36
|
* @param [params.limit]
|
|
37
|
+
* @param [params.cond]
|
|
38
|
+
* @param [params.sort]
|
|
37
39
|
* @see {@link https://ampache.org/api/api-json-methods#get_indexes}
|
|
38
40
|
* @deprecated Being removed in 7.0.0. Use `list` instead.
|
|
39
41
|
*/
|
|
@@ -44,7 +46,7 @@ export class System extends Base {
|
|
|
44
46
|
update?: Date,
|
|
45
47
|
include?: BinaryBoolean,
|
|
46
48
|
hide_search?: BinaryBoolean
|
|
47
|
-
} &
|
|
49
|
+
} & ExtendedPagination) {
|
|
48
50
|
let query = 'get_indexes';
|
|
49
51
|
query += qs.stringify(params, '&');
|
|
50
52
|
let data;
|
|
@@ -87,6 +89,8 @@ export class System extends Base {
|
|
|
87
89
|
* @param [params.hide_search] 0, 1 (if true do not include searches/smartlists in the result)
|
|
88
90
|
* @param [params.offset]
|
|
89
91
|
* @param [params.limit]
|
|
92
|
+
* @param [params.cond]
|
|
93
|
+
* @param [params.sort]
|
|
90
94
|
* @see {@link https://ampache.org/api/api-json-methods#list}
|
|
91
95
|
*/
|
|
92
96
|
async list (params: {
|
|
@@ -95,7 +99,7 @@ export class System extends Base {
|
|
|
95
99
|
add?: Date,
|
|
96
100
|
update?: Date,
|
|
97
101
|
hide_search?: BinaryBoolean
|
|
98
|
-
} &
|
|
102
|
+
} & ExtendedPagination) {
|
|
99
103
|
let query = 'list';
|
|
100
104
|
query += qs.stringify(params, '&');
|
|
101
105
|
return this.request<{list: IndexEntry[]}>(query);
|
|
@@ -113,6 +117,8 @@ export class System extends Base {
|
|
|
113
117
|
* @param [params.hide_search] 0, 1 (if true do not include searches/smartlists in the result)
|
|
114
118
|
* @param [params.offset]
|
|
115
119
|
* @param [params.limit]
|
|
120
|
+
* @param [params.cond]
|
|
121
|
+
* @param [params.sort]
|
|
116
122
|
* @see {@link https://ampache.org/api/api-json-methods#index}
|
|
117
123
|
*/
|
|
118
124
|
async index (params: {
|
|
@@ -123,7 +129,7 @@ export class System extends Base {
|
|
|
123
129
|
update?: Date,
|
|
124
130
|
include?: BinaryBoolean,
|
|
125
131
|
hide_search?: BinaryBoolean
|
|
126
|
-
} &
|
|
132
|
+
} & ExtendedPagination) {
|
|
127
133
|
let query = 'index';
|
|
128
134
|
query += qs.stringify(params, '&');
|
|
129
135
|
return this.request<{index: []}>(query);
|
|
@@ -140,6 +146,8 @@ export class System extends Base {
|
|
|
140
146
|
* @param [params.update] ISO 8601 Date Format (2020-09-16) Find objects with an 'update' time newer than the specified date
|
|
141
147
|
* @param [params.offset]
|
|
142
148
|
* @param [params.limit]
|
|
149
|
+
* @param [params.cond]
|
|
150
|
+
* @param [params.sort]
|
|
143
151
|
* @see {@link https://ampache.org/api/api-json-methods#browse}
|
|
144
152
|
*/
|
|
145
153
|
async browse (params: {
|
|
@@ -148,7 +156,7 @@ export class System extends Base {
|
|
|
148
156
|
catalog?: number,
|
|
149
157
|
add?: Date,
|
|
150
158
|
update?: Date,
|
|
151
|
-
} &
|
|
159
|
+
} & ExtendedPagination) {
|
|
152
160
|
let query = 'browse';
|
|
153
161
|
query += qs.stringify(params, '&');
|
|
154
162
|
return this.request<{browse: IndexEntry[]}>(query);
|
|
@@ -383,7 +391,7 @@ export class System extends Base {
|
|
|
383
391
|
* @param params.id UID to find
|
|
384
392
|
* @param params.type Object type
|
|
385
393
|
* @param [params.bitrate] Max bitrate for transcoding
|
|
386
|
-
* @param [params.format] mp3, ogg, raw, etc (raw returns the original format)
|
|
394
|
+
* @param [params.format] mp3, ogg, raw, etc. (raw returns the original format)
|
|
387
395
|
* @param [params.offset] Time offset
|
|
388
396
|
* @param [params.length] 0, 1 (estimate content length)
|
|
389
397
|
* @see {@link https://ampache.org/api/api-json-methods#stream}
|
|
@@ -407,7 +415,7 @@ export class System extends Base {
|
|
|
407
415
|
* @remarks MINIMUM_API_VERSION=400001
|
|
408
416
|
* @param params.id UID to find
|
|
409
417
|
* @param params.type Object type
|
|
410
|
-
* @param [params.format] mp3, ogg, raw, etc (raw returns the original format)
|
|
418
|
+
* @param [params.format] mp3, ogg, raw, etc. (raw returns the original format)
|
|
411
419
|
* @see {@link https://ampache.org/api/api-json-methods#download}
|
|
412
420
|
*/
|
|
413
421
|
download (params: {
|
package/src/users/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import qs from 'querystringify';
|
|
2
2
|
import { User, UserSummary, Activity } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import {Base, BinaryBoolean, ExtendedPagination, Success} from '../base';
|
|
4
4
|
|
|
5
5
|
export class Users extends Base {
|
|
6
6
|
/**
|
|
@@ -165,11 +165,15 @@ export class Users extends Base {
|
|
|
165
165
|
* This gets the followers for the requested username
|
|
166
166
|
* @remarks MINIMUM_API_VERSION=380001
|
|
167
167
|
* @param params.username UID to find
|
|
168
|
+
* @param [params.offset]
|
|
169
|
+
* @param [params.limit]
|
|
170
|
+
* @param [params.cond]
|
|
171
|
+
* @param [params.sort]
|
|
168
172
|
* @see {@link https://ampache.org/api/api-json-methods#followers}
|
|
169
173
|
*/
|
|
170
174
|
async followers (params: {
|
|
171
175
|
username: string,
|
|
172
|
-
}) {
|
|
176
|
+
} & ExtendedPagination ) {
|
|
173
177
|
let query = 'followers';
|
|
174
178
|
query += qs.stringify(params, '&');
|
|
175
179
|
let data = await this.request<{user: UserSummary[]}>(query);
|