javascript-ampache 1.1.5 → 1.1.6
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/index.js.map +1 -1
- package/dist/index.m.js.map +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/system/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/system/index.ts +2 -0
package/dist/system/index.d.ts
CHANGED
|
@@ -292,11 +292,13 @@ export declare class System extends Base {
|
|
|
292
292
|
* @remarks MINIMUM_API_VERSION=400001
|
|
293
293
|
* @param params.id UID to find
|
|
294
294
|
* @param params.type Object type
|
|
295
|
+
* @param [params.size] width x height (e.g. '640x480')
|
|
295
296
|
* @see {@link https://ampache.org/api/api-json-methods#get_art}
|
|
296
297
|
*/
|
|
297
298
|
getArt(params: {
|
|
298
299
|
id: UID;
|
|
299
300
|
type: "song" | "artist" | "album" | "playlist" | "search" | "podcast";
|
|
301
|
+
size?: string;
|
|
300
302
|
}): Promise<Blob>;
|
|
301
303
|
/**
|
|
302
304
|
* This is for controlling localplay
|
package/package.json
CHANGED
package/src/system/index.ts
CHANGED
|
@@ -525,11 +525,13 @@ export class System extends Base {
|
|
|
525
525
|
* @remarks MINIMUM_API_VERSION=400001
|
|
526
526
|
* @param params.id UID to find
|
|
527
527
|
* @param params.type Object type
|
|
528
|
+
* @param [params.size] width x height (e.g. '640x480')
|
|
528
529
|
* @see {@link https://ampache.org/api/api-json-methods#get_art}
|
|
529
530
|
*/
|
|
530
531
|
getArt(params: {
|
|
531
532
|
id: UID;
|
|
532
533
|
type: "song" | "artist" | "album" | "playlist" | "search" | "podcast";
|
|
534
|
+
size?: string;
|
|
533
535
|
}) {
|
|
534
536
|
let query = "get_art";
|
|
535
537
|
query += qs.stringify(params, "&");
|