mass-queue-types 1.0.0 → 1.0.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
|
@@ -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": "1.0.
|
|
6
|
+
"version": "1.0.2",
|
|
7
7
|
"module": "mass-queue-types.js",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"home-assistant",
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { baseMassQueueServiceWithResponseSchema, getCollectionDataServiceData, getTracksServiceResponse } from "../utils.js";
|
|
1
|
+
import { baseMassQueueServiceWithResponseSchema, getCollectionDataServiceData, getTracksServiceResponse, Track } from "../utils.js";
|
|
2
2
|
|
|
3
|
-
export type getPlaylistTracksServiceResponse = getTracksServiceResponse;
|
|
4
3
|
|
|
5
|
-
export interface
|
|
6
|
-
position: number
|
|
4
|
+
export interface PlaylistTrack extends Track {
|
|
5
|
+
position: number;
|
|
7
6
|
}
|
|
8
7
|
|
|
8
|
+
export interface getPlaylistTracksServiceResponse {
|
|
9
|
+
response: {
|
|
10
|
+
tracks: PlaylistTrack[];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type getPlaylistTracksServiceData = getCollectionDataServiceData;
|
|
15
|
+
|
|
9
16
|
export interface getPlaylistTracksServiceSchema extends baseMassQueueServiceWithResponseSchema {
|
|
10
17
|
service: 'get_playlist_tracks';
|
|
11
18
|
service_data: getPlaylistTracksServiceData;
|