javascript-ampache 1.1.1 → 1.1.2
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 +1 -1
- package/src/genres/types.ts +2 -0
- package/src/playlists/types.ts +2 -0
- package/src/preferences/types.ts +2 -0
- package/src/songs/index.ts +13 -0
package/package.json
CHANGED
package/src/genres/types.ts
CHANGED
package/src/playlists/types.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UID } from "../base";
|
|
2
|
+
import { UserSummary } from "../users/types"
|
|
2
3
|
|
|
3
4
|
export type PlaylistResponse = {
|
|
4
5
|
id: UID;
|
|
@@ -11,6 +12,7 @@ export type PlaylistResponse = {
|
|
|
11
12
|
flag: boolean;
|
|
12
13
|
rating: number | null;
|
|
13
14
|
averagerating: number | null;
|
|
15
|
+
user: UserSummary;
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
export type PlaylistsResponse = {
|
package/src/preferences/types.ts
CHANGED
package/src/songs/index.ts
CHANGED
|
@@ -162,6 +162,19 @@ export class Songs extends Base {
|
|
|
162
162
|
return this.request<Success>(query);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Get the full song file tags using VaInfo
|
|
167
|
+
* This is used to get tags for remote catalogs to allow maximum data to be returned
|
|
168
|
+
* @remarks MINIMUM_API_VERSION=7.5.0
|
|
169
|
+
* @param params.filter UID of song to fetch
|
|
170
|
+
* @see {@link https://ampache.org/api/api-json-methods#song_tags}
|
|
171
|
+
*/
|
|
172
|
+
// songTags(params: { filter: UID }) {
|
|
173
|
+
// let query = "song_tags";
|
|
174
|
+
// query += qs.stringify(params, "&");
|
|
175
|
+
// return this.request<SongResponse>(query); // TODO update reponse
|
|
176
|
+
// }
|
|
177
|
+
|
|
165
178
|
/**
|
|
166
179
|
* This takes a URL and returns the song object in question
|
|
167
180
|
* @remarks MINIMUM_API_VERSION=380001
|