tering-serieuze-types 3.2.3 → 3.3.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.
- package/interfaces/mopidy.ts +14 -14
- package/package.json +35 -34
package/interfaces/mopidy.ts
CHANGED
|
@@ -21,21 +21,26 @@ type Track = Omit<
|
|
|
21
21
|
> & { album: Album; artists: Artist[] };
|
|
22
22
|
type TlTrack = Omit<Mopidy.models.TlTrack, 'track'> & { track: Track };
|
|
23
23
|
type Image = Mopidy.models.Image;
|
|
24
|
+
type Playlist = Omit<Mopidy.models.Playlist, 'tracks' | 'last_modified'>;
|
|
25
|
+
|
|
26
|
+
export type HasImage = { image: Image | undefined };
|
|
27
|
+
export type TlTrackWithImage = TlTrack & HasImage;
|
|
28
|
+
export type AlbumWithImage = Album & HasImage;
|
|
29
|
+
export type ArtistWithImage = Artist & HasImage;
|
|
30
|
+
export type TrackWithImage = Track & HasImage;
|
|
31
|
+
export type PlaylistWithImage = Playlist & HasImage;
|
|
32
|
+
|
|
24
33
|
type SearchResult = Omit<Mopidy.models.SearchResult, 'tracks' | 'albums' | 'artists'> & {
|
|
25
|
-
tracks:
|
|
26
|
-
albums:
|
|
27
|
-
artists:
|
|
34
|
+
tracks: TrackWithImage[];
|
|
35
|
+
albums: AlbumWithImage[];
|
|
36
|
+
artists: ArtistWithImage[];
|
|
37
|
+
playlists: PlaylistWithImage[];
|
|
28
38
|
};
|
|
29
39
|
|
|
30
40
|
export type { Track, TlTrack, Artist, Image, SearchResult, Album };
|
|
31
41
|
|
|
32
42
|
export type PlaybackState = 'playing' | 'paused' | 'stopped';
|
|
33
43
|
|
|
34
|
-
export type HasImage = { image: Image | undefined };
|
|
35
|
-
export type TlTrackWithImage = TlTrack & HasImage;
|
|
36
|
-
export type AlbumWithImage = Album & HasImage;
|
|
37
|
-
export type AlarmschijfTrack = Track & HasImage;
|
|
38
|
-
|
|
39
44
|
export interface MopidyData {
|
|
40
45
|
tracklist: TlTrack[];
|
|
41
46
|
volume: number;
|
|
@@ -47,13 +52,8 @@ export interface MopidyData {
|
|
|
47
52
|
isMuted: boolean;
|
|
48
53
|
}
|
|
49
54
|
|
|
50
|
-
export interface MopidyDataSetter {
|
|
51
|
-
key: keyof MopidyData;
|
|
52
|
-
value: MopidyData[keyof MopidyData];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
55
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
56
56
|
export type AlarmschijfResult = {
|
|
57
57
|
playlist: Track[];
|
|
58
|
-
alarmschijf?:
|
|
58
|
+
alarmschijf?: TrackWithImage;
|
|
59
59
|
};
|
package/package.json
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
"name": "tering-serieuze-types",
|
|
3
|
+
"version": "3.3.0",
|
|
4
|
+
"description": "Tering serieuze types",
|
|
5
|
+
"author": "Frank",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://gitlab.com/tering-serieuze-shit/tering-serieuze-types.git"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"prebuild": "npm run lint && npm run format",
|
|
12
|
+
"build": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.js --packages=external",
|
|
13
|
+
"version": "npm run build && git add -A dist",
|
|
14
|
+
"pub": "npm publish && git push",
|
|
15
|
+
"lint": "eslint \"{src,interfaces}/**/*.ts\"",
|
|
16
|
+
"format": "prettier \"src/**/*.ts\" \"interfaces/**/*.ts\" --check"
|
|
17
|
+
},
|
|
18
|
+
"main": "dist/index.js",
|
|
19
|
+
"types": "index.d.ts",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
22
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
23
|
+
"esbuild": "^0.23.1",
|
|
24
|
+
"eslint": "^8.57.0",
|
|
25
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
26
|
+
"eslint-config-prettier": "^9.1.0",
|
|
27
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
28
|
+
"prettier": "^3.4.2"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@nestjs/swagger": "^11.0.2",
|
|
32
|
+
"@simplewebauthn/types": "^10.0.0",
|
|
33
|
+
"class-transformer": "^0.5.1",
|
|
34
|
+
"class-validator": "^0.14.1",
|
|
35
|
+
"mopidy": "^1.3.0"
|
|
36
|
+
}
|
|
36
37
|
}
|