mass-queue-types 0.8.1 → 0.9.0

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.
@@ -0,0 +1,24 @@
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types:
9
+ - published
10
+ permissions:
11
+ id-token: write
12
+ contents: read
13
+
14
+ jobs:
15
+ publish:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+
20
+ - uses: actions/setup-node@v4
21
+ with:
22
+ node-version: '24'
23
+ registry-url: 'https://registry.npmjs.org'
24
+ - run: npm publish
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.8.1",
6
+ "version": "0.9.0",
7
7
  "module": "mass-queue-types.js",
8
8
  "keywords": [
9
9
  "home-assistant",
@@ -0,0 +1,32 @@
1
+ import { baseMassQueueServiceWithResponseSchema } from "../utils.js";
2
+
3
+ export interface playlistTrack {
4
+ media_title: string;
5
+ media_album_name: string;
6
+ media_artist: string;
7
+ media_content_id: string;
8
+ media_image: string;
9
+ local_image_encoded?: string;
10
+ favorite: boolean;
11
+ }
12
+
13
+ export type playlistTracks = playlistTrack[];
14
+
15
+ type getPlaylistTracksPartialResponse = Record<string, playlistTracks>;
16
+
17
+ export interface getPlaylistTracksServiceResponse {
18
+ response: {
19
+ tracks: getPlaylistTracksPartialResponse
20
+ };
21
+ }
22
+
23
+ export interface getPlaylistTracksPartialSchema {
24
+ uri: string;
25
+ config_entry_id: string;
26
+ }
27
+
28
+ export interface getPlaylistTracksServiceSchema
29
+ extends baseMassQueueServiceWithResponseSchema {
30
+ service: "get_playlist_Tracks";
31
+ service_data: getPlaylistTracksPartialSchema;
32
+ }
package/packages/util.ts DELETED
File without changes