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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-ampache",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A JS library for the Ampache API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.m.js",
@@ -14,6 +14,8 @@ export type GenreResponse = {
14
14
  videos: number;
15
15
  playlists: number;
16
16
  live_streams: number;
17
+ is_hidden: boolean;
18
+ merge: GenreSummary[];
17
19
  };
18
20
 
19
21
  export type GenresResponse = {
@@ -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 = {
@@ -9,6 +9,8 @@ export type PreferenceResponse = {
9
9
  type: string;
10
10
  category: string;
11
11
  subcategory: string | null;
12
+ has_access: boolean;
13
+ values?: string; // TODO verify type
12
14
  };
13
15
 
14
16
  export type PreferencesResponse = {
@@ -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