mass-queue-types 0.10.2 → 0.10.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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Custom Types and Interfaces for Music Assistant Queue Actions",
4
4
  "repository": "https://github.com/droans/mass-queue-types",
5
5
  "author": "Michael Carroll",
6
- "version": "0.10.2",
6
+ "version": "0.10.4",
7
7
  "module": "mass-queue-types.js",
8
8
  "keywords": [
9
9
  "home-assistant",
@@ -1,7 +1,7 @@
1
1
  import { Album } from "../types/media-items.js";
2
2
  import { baseMassQueueServiceWithResponseSchema, getCollectionDataPartialServiceSchema } from "../utils.js";
3
3
 
4
- export type getAlbumServiceResponse = Album;
4
+ export type getAlbumServiceResponse = {response: Album};
5
5
 
6
6
  export type getAlbumPartialServiceSchema = getCollectionDataPartialServiceSchema
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { Artist } from "../types/media-items.js";
2
2
  import { baseMassQueueServiceWithResponseSchema, getCollectionDataPartialServiceSchema } from "../utils.js";
3
3
 
4
- export type getArtistServiceResponse = Artist;
4
+ export type getArtistServiceResponse = {response: Artist};
5
5
 
6
6
  export type getArtistPartialServiceSchema = getCollectionDataPartialServiceSchema
7
7
 
@@ -1,11 +1,11 @@
1
1
  import { Playlist } from "../types/media-items.js";
2
2
  import { baseMassQueueServiceWithResponseSchema, getCollectionDataPartialServiceSchema } from "../utils.js";
3
3
 
4
- export type getPlaylistServiceResponse = Playlist;
4
+ export type getPlaylistServiceResponse = {response: Playlist};
5
5
 
6
6
  export type getPlaylistPartialSchema = getCollectionDataPartialServiceSchema
7
7
 
8
- export interface getPlaylistSchema extends baseMassQueueServiceWithResponseSchema {
8
+ export interface getPlaylistServiceSchema extends baseMassQueueServiceWithResponseSchema {
9
9
  service: 'get_playlist';
10
10
  service_data: getPlaylistPartialSchema;
11
11
  }
@@ -21,6 +21,7 @@ export interface Track {
21
21
  media_image: string;
22
22
  local_image_encoded?: string;
23
23
  favorite: boolean;
24
+ duration?: number;
24
25
  }
25
26
 
26
27
  export type Tracks = Track[];