@opfelmusig/lib 0.0.0-ci.0.sha-3e76884
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/README.md +8 -0
- package/dist/clients/catalog/album.d.ts +12 -0
- package/dist/clients/catalog/album.js +14 -0
- package/dist/clients/catalog/genre.d.ts +13 -0
- package/dist/clients/catalog/genre.js +17 -0
- package/dist/clients/catalog/index.d.ts +71 -0
- package/dist/clients/catalog/index.js +99 -0
- package/dist/clients/catalog/musicVideo.d.ts +12 -0
- package/dist/clients/catalog/musicVideo.js +14 -0
- package/dist/clients/catalog/playlist.d.ts +12 -0
- package/dist/clients/catalog/playlist.js +16 -0
- package/dist/clients/catalog/song.d.ts +12 -0
- package/dist/clients/catalog/song.js +14 -0
- package/dist/clients/catalog/station.d.ts +14 -0
- package/dist/clients/catalog/station.js +34 -0
- package/dist/clients/catalog/stationGenre.d.ts +12 -0
- package/dist/clients/catalog/stationGenre.js +14 -0
- package/dist/clients/library/index.d.ts +39 -0
- package/dist/clients/library/index.js +68 -0
- package/dist/clients/library/playlistFolder.d.ts +12 -0
- package/dist/clients/library/playlistFolder.js +16 -0
- package/dist/clients/me/index.d.ts +25 -0
- package/dist/clients/me/index.js +49 -0
- package/dist/clients/me/musicSummary.d.ts +12 -0
- package/dist/clients/me/musicSummary.js +14 -0
- package/dist/clients/me/ratings.d.ts +15 -0
- package/dist/clients/me/ratings.js +34 -0
- package/dist/clients/me/recent.d.ts +17 -0
- package/dist/clients/me/recent.js +37 -0
- package/dist/clients/me/recommendation.d.ts +12 -0
- package/dist/clients/me/recommendation.js +14 -0
- package/dist/clients/me/station.d.ts +10 -0
- package/dist/clients/me/station.js +13 -0
- package/dist/clients/playback.d.ts +9 -0
- package/dist/clients/playback.js +68 -0
- package/dist/clients/resource.d.ts +34 -0
- package/dist/clients/resource.js +105 -0
- package/dist/clients/shared/equivalent.d.ts +10 -0
- package/dist/clients/shared/equivalent.js +15 -0
- package/dist/clients/social/index.d.ts +7 -0
- package/dist/clients/social/index.js +9 -0
- package/dist/clients/social/profile.d.ts +12 -0
- package/dist/clients/social/profile.js +14 -0
- package/dist/clients/storefront.d.ts +12 -0
- package/dist/clients/storefront.js +14 -0
- package/dist/core/client.d.ts +40 -0
- package/dist/core/client.js +82 -0
- package/dist/core/error.d.ts +23 -0
- package/dist/core/error.js +24 -0
- package/dist/core/http.d.ts +22 -0
- package/dist/core/http.js +232 -0
- package/dist/helpers/language.d.ts +1 -0
- package/dist/helpers/language.js +48 -0
- package/dist/helpers/public.d.ts +19 -0
- package/dist/helpers/public.js +35 -0
- package/dist/helpers/requestQuery.d.ts +17 -0
- package/dist/helpers/requestQuery.js +153 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -0
- package/dist/schemas/error.d.ts +29 -0
- package/dist/schemas/error.js +16 -0
- package/dist/schemas/request.d.ts +42 -0
- package/dist/schemas/request.js +28 -0
- package/dist/types/combined.d.ts +15 -0
- package/dist/types/combined.js +0 -0
- package/dist/types/config.d.ts +63 -0
- package/dist/types/config.js +0 -0
- package/dist/types/params.d.ts +22 -0
- package/dist/types/params.js +0 -0
- package/dist/types/playback.d.ts +199 -0
- package/dist/types/playback.js +103 -0
- package/dist/types/public.d.ts +56 -0
- package/dist/types/public.js +1 -0
- package/dist/types/query/helpers.d.ts +27 -0
- package/dist/types/query/helpers.js +0 -0
- package/dist/types/query/registry.d.ts +74 -0
- package/dist/types/query/registry.js +0 -0
- package/dist/types/query/resource.d.ts +29 -0
- package/dist/types/query/resource.js +0 -0
- package/dist/types/query/response.d.ts +3 -0
- package/dist/types/query/response.js +0 -0
- package/dist/types/query/results.d.ts +45 -0
- package/dist/types/query/results.js +0 -0
- package/dist/types/query/scopes.d.ts +77 -0
- package/dist/types/query/scopes.js +0 -0
- package/dist/types/request.d.ts +14 -0
- package/dist/types/request.js +0 -0
- package/dist/types/resources/catalog/activity.d.ts +15 -0
- package/dist/types/resources/catalog/activity.js +0 -0
- package/dist/types/resources/catalog/album.d.ts +47 -0
- package/dist/types/resources/catalog/album.js +0 -0
- package/dist/types/resources/catalog/artist.d.ts +57 -0
- package/dist/types/resources/catalog/artist.js +0 -0
- package/dist/types/resources/catalog/concert.d.ts +32 -0
- package/dist/types/resources/catalog/concert.js +0 -0
- package/dist/types/resources/catalog/creditArtist.d.ts +11 -0
- package/dist/types/resources/catalog/creditArtist.js +0 -0
- package/dist/types/resources/catalog/curator.d.ts +27 -0
- package/dist/types/resources/catalog/curator.js +0 -0
- package/dist/types/resources/catalog/genre.d.ts +11 -0
- package/dist/types/resources/catalog/genre.js +0 -0
- package/dist/types/resources/catalog/lyrics.d.ts +8 -0
- package/dist/types/resources/catalog/lyrics.js +0 -0
- package/dist/types/resources/catalog/musicVideo.d.ts +34 -0
- package/dist/types/resources/catalog/musicVideo.js +0 -0
- package/dist/types/resources/catalog/playlist.d.ts +35 -0
- package/dist/types/resources/catalog/playlist.js +0 -0
- package/dist/types/resources/catalog/recordLabel.d.ts +16 -0
- package/dist/types/resources/catalog/recordLabel.js +0 -0
- package/dist/types/resources/catalog/roleCategory.d.ts +12 -0
- package/dist/types/resources/catalog/roleCategory.js +0 -0
- package/dist/types/resources/catalog/song.d.ts +50 -0
- package/dist/types/resources/catalog/song.js +0 -0
- package/dist/types/resources/catalog/station.d.ts +21 -0
- package/dist/types/resources/catalog/station.js +0 -0
- package/dist/types/resources/catalog/stationGenre.d.ts +11 -0
- package/dist/types/resources/catalog/stationGenre.js +0 -0
- package/dist/types/resources/catalog/syllableLyrics.d.ts +9 -0
- package/dist/types/resources/catalog/syllableLyrics.js +0 -0
- package/dist/types/resources/catalog/venue.d.ts +20 -0
- package/dist/types/resources/catalog/venue.js +0 -0
- package/dist/types/resources/library/album.d.ts +17 -0
- package/dist/types/resources/library/album.js +0 -0
- package/dist/types/resources/library/artist.d.ts +13 -0
- package/dist/types/resources/library/artist.js +0 -0
- package/dist/types/resources/library/musicVideo.d.ts +15 -0
- package/dist/types/resources/library/musicVideo.js +0 -0
- package/dist/types/resources/library/playlist.d.ts +24 -0
- package/dist/types/resources/library/playlist.js +0 -0
- package/dist/types/resources/library/playlistFolder.d.ts +13 -0
- package/dist/types/resources/library/playlistFolder.js +0 -0
- package/dist/types/resources/library/song.d.ts +15 -0
- package/dist/types/resources/library/song.js +0 -0
- package/dist/types/resources/me/musicSummary.d.ts +37 -0
- package/dist/types/resources/me/musicSummary.js +0 -0
- package/dist/types/resources/me/profile.d.ts +32 -0
- package/dist/types/resources/me/profile.js +0 -0
- package/dist/types/resources/me/rating.d.ts +11 -0
- package/dist/types/resources/me/rating.js +0 -0
- package/dist/types/resources/me/recommendation.d.ts +27 -0
- package/dist/types/resources/me/recommendation.js +0 -0
- package/dist/types/resources/me/summaries/albumPeriodSummary.d.ts +15 -0
- package/dist/types/resources/me/summaries/albumPeriodSummary.js +0 -0
- package/dist/types/resources/me/summaries/artistPeriodSummary.d.ts +15 -0
- package/dist/types/resources/me/summaries/artistPeriodSummary.js +0 -0
- package/dist/types/resources/me/summaries/genrePeriodSummary.d.ts +12 -0
- package/dist/types/resources/me/summaries/genrePeriodSummary.js +0 -0
- package/dist/types/resources/me/summaries/monthlySongPeriodSummary.d.ts +13 -0
- package/dist/types/resources/me/summaries/monthlySongPeriodSummary.js +0 -0
- package/dist/types/resources/me/summaries/playlistPeriodSummary.d.ts +14 -0
- package/dist/types/resources/me/summaries/playlistPeriodSummary.js +0 -0
- package/dist/types/resources/me/summaries/songPeriodSummary.d.ts +15 -0
- package/dist/types/resources/me/summaries/songPeriodSummary.js +0 -0
- package/dist/types/resources/me/summaries/stationPeriodSummary.d.ts +14 -0
- package/dist/types/resources/me/summaries/stationPeriodSummary.js +0 -0
- package/dist/types/resources/other/storefront.d.ts +8 -0
- package/dist/types/resources/other/storefront.js +0 -0
- package/dist/types/resources/shared/album.d.ts +11 -0
- package/dist/types/resources/shared/album.js +0 -0
- package/dist/types/resources/shared/artist.d.ts +3 -0
- package/dist/types/resources/shared/artist.js +0 -0
- package/dist/types/resources/shared/lyrics.d.ts +5 -0
- package/dist/types/resources/shared/lyrics.js +0 -0
- package/dist/types/resources/shared/musicVideo.d.ts +13 -0
- package/dist/types/resources/shared/musicVideo.js +0 -0
- package/dist/types/resources/shared/playlist.d.ts +7 -0
- package/dist/types/resources/shared/playlist.js +0 -0
- package/dist/types/resources/shared/song.d.ts +15 -0
- package/dist/types/resources/shared/song.js +0 -0
- package/dist/types/results/chart.d.ts +8 -0
- package/dist/types/results/chart.js +0 -0
- package/dist/types/results/search.d.ts +30 -0
- package/dist/types/results/search.js +0 -0
- package/dist/types/shared.d.ts +81 -0
- package/dist/types/shared.js +0 -0
- package/package.json +64 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogAlbum } from "../../../types/resources/catalog/album.js";
|
|
3
|
+
import type { CatalogArtist } from "../../../types/resources/catalog/artist.js";
|
|
4
|
+
import type { CatalogGenre } from "../../../types/resources/catalog/genre.js";
|
|
5
|
+
import type { CatalogLyrics } from "../../../types/resources/catalog/lyrics.js";
|
|
6
|
+
import type { CatalogMusicVideo } from "../../../types/resources/catalog/musicVideo.js";
|
|
7
|
+
import type { CatalogRoleCategory } from "../../../types/resources/catalog/roleCategory.js";
|
|
8
|
+
import type { CatalogStation } from "../../../types/resources/catalog/station.js";
|
|
9
|
+
import type { CatalogSyllableLyrics } from "../../../types/resources/catalog/syllableLyrics.js";
|
|
10
|
+
import type { LibrarySong } from "../../../types/resources/library/song.js";
|
|
11
|
+
import type { BaseSongAttributes } from "../../../types/resources/shared/song.js";
|
|
12
|
+
import type { AssetUrls, AudioVariants, EditorialNote, Offer, Preview, RatingValue } from "../../../types/shared.js";
|
|
13
|
+
interface CatalogSongAttributes extends BaseSongAttributes {
|
|
14
|
+
attribution?: string;
|
|
15
|
+
composerName?: string;
|
|
16
|
+
editorialNotes?: EditorialNote;
|
|
17
|
+
isrc?: string;
|
|
18
|
+
movementCount?: number;
|
|
19
|
+
movementName?: string;
|
|
20
|
+
movementNumber?: number;
|
|
21
|
+
previews: Preview[];
|
|
22
|
+
url: string;
|
|
23
|
+
workName?: string;
|
|
24
|
+
audioLocale?: string;
|
|
25
|
+
audioTraits?: AudioVariants[];
|
|
26
|
+
isMasteredForItunes: boolean;
|
|
27
|
+
isVocalAttenuationAllowed: boolean;
|
|
28
|
+
isAppleDigitalMaster: boolean;
|
|
29
|
+
hasTimeSyncedLyrics: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface CatalogSongExtend {
|
|
32
|
+
artistUrl?: string;
|
|
33
|
+
personalRating?: RatingValue;
|
|
34
|
+
inLibrary?: boolean;
|
|
35
|
+
extendedAssetUrls?: AssetUrls;
|
|
36
|
+
lyricsExcerpt?: string;
|
|
37
|
+
offers?: Offer[];
|
|
38
|
+
}
|
|
39
|
+
export type CatalogSong = Resource<"songs", CatalogSongAttributes, CatalogSongExtend, {
|
|
40
|
+
albums: CatalogAlbum;
|
|
41
|
+
artists: CatalogArtist;
|
|
42
|
+
credits: CatalogRoleCategory;
|
|
43
|
+
genres: CatalogGenre;
|
|
44
|
+
library: LibrarySong;
|
|
45
|
+
lyrics: CatalogLyrics;
|
|
46
|
+
"music-videos": CatalogMusicVideo;
|
|
47
|
+
station: CatalogStation;
|
|
48
|
+
"syllable-lyrics": CatalogSyllableLyrics;
|
|
49
|
+
}>;
|
|
50
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogAppleCurator } from "../../../types/resources/catalog/curator.js";
|
|
3
|
+
import type { Artwork, EditorialNote, PlayParameters } from "../../../types/shared.js";
|
|
4
|
+
interface CatalogStationAttributes {
|
|
5
|
+
artwork: Artwork;
|
|
6
|
+
editorialNotes?: EditorialNote;
|
|
7
|
+
mediaKind: "audio" | "video";
|
|
8
|
+
isLive: boolean;
|
|
9
|
+
kind: "songSeeded" | "artistSeeded" | "albumSeeded" | "playlistSeeded" | "user" | "artistOnly" | "query" | "streaming";
|
|
10
|
+
name: string;
|
|
11
|
+
playParams?: PlayParameters;
|
|
12
|
+
radioUrl?: string;
|
|
13
|
+
requiresSubscription: boolean;
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
16
|
+
interface CatalogStationExtend {
|
|
17
|
+
}
|
|
18
|
+
export type CatalogStation = Resource<"stations", CatalogStationAttributes, CatalogStationExtend, {
|
|
19
|
+
"radio-show": CatalogAppleCurator;
|
|
20
|
+
}>;
|
|
21
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogStation } from "../../../types/resources/catalog/station.js";
|
|
3
|
+
interface CatalogStationGenreAttributes {
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
interface CatalogStationGenreExtend {
|
|
7
|
+
}
|
|
8
|
+
export type CatalogStationGenre = Resource<"station-genres", CatalogStationGenreAttributes, CatalogStationGenreExtend, {
|
|
9
|
+
stations: CatalogStation;
|
|
10
|
+
}>;
|
|
11
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { BaseLyricsAttributes } from "../../../types/resources/shared/lyrics.js";
|
|
3
|
+
interface CatalogSyllableLyricsAttributes extends BaseLyricsAttributes {
|
|
4
|
+
}
|
|
5
|
+
interface CatalogSyllableLyricsExtend {
|
|
6
|
+
ttmlLocalizations?: string;
|
|
7
|
+
}
|
|
8
|
+
export type CatalogSyllableLyrics = Resource<"syllable-lyrics", CatalogSyllableLyricsAttributes, CatalogSyllableLyricsExtend>;
|
|
9
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
interface VenueGeoLocation {
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
}
|
|
6
|
+
interface VenueStructuredAddress {
|
|
7
|
+
address: string;
|
|
8
|
+
city: string;
|
|
9
|
+
country: string;
|
|
10
|
+
countryIsoCode: string;
|
|
11
|
+
postCode: string;
|
|
12
|
+
region: string;
|
|
13
|
+
}
|
|
14
|
+
interface CatalogVenueAttributes {
|
|
15
|
+
geoLocation: VenueGeoLocation;
|
|
16
|
+
name: string;
|
|
17
|
+
structuredAddress: VenueStructuredAddress;
|
|
18
|
+
}
|
|
19
|
+
export type CatalogVenue = Resource<"venues", CatalogVenueAttributes>;
|
|
20
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogAlbum } from "../../../types/resources/catalog/album.js";
|
|
3
|
+
import type { LibraryArtist } from "../../../types/resources/library/artist.js";
|
|
4
|
+
import type { LibraryMusicVideo } from "../../../types/resources/library/musicVideo.js";
|
|
5
|
+
import type { LibrarySong } from "../../../types/resources/library/song.js";
|
|
6
|
+
import type { BaseAlbumAttributes } from "../../../types/resources/shared/album.js";
|
|
7
|
+
interface LibraryAlbumAttributes extends BaseAlbumAttributes {
|
|
8
|
+
dateAdded?: string;
|
|
9
|
+
}
|
|
10
|
+
interface LibraryAlbumExtend {
|
|
11
|
+
}
|
|
12
|
+
export type LibraryAlbum = Resource<"library-albums", LibraryAlbumAttributes, LibraryAlbumExtend, {
|
|
13
|
+
artists: LibraryArtist;
|
|
14
|
+
catalog: CatalogAlbum;
|
|
15
|
+
tracks: LibrarySong | LibraryMusicVideo;
|
|
16
|
+
}>;
|
|
17
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogArtist } from "../../../types/resources/catalog/artist.js";
|
|
3
|
+
import type { LibraryAlbum } from "../../../types/resources/library/album.js";
|
|
4
|
+
import type { BaseArtistAttributes } from "../../../types/resources/shared/artist.js";
|
|
5
|
+
interface LibraryArtistAttributes extends BaseArtistAttributes {
|
|
6
|
+
}
|
|
7
|
+
interface LibraryArtistExtend {
|
|
8
|
+
}
|
|
9
|
+
export type LibraryArtist = Resource<"library-artists", LibraryArtistAttributes, LibraryArtistExtend, {
|
|
10
|
+
albums: LibraryAlbum;
|
|
11
|
+
catalog: CatalogArtist;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogMusicVideo } from "../../../types/resources/catalog/musicVideo.js";
|
|
3
|
+
import type { LibraryAlbum } from "../../../types/resources/library/album.js";
|
|
4
|
+
import type { LibraryArtist } from "../../../types/resources/library/artist.js";
|
|
5
|
+
import type { BaseMusicVideoAttributes } from "../../../types/resources/shared/musicVideo.js";
|
|
6
|
+
interface LibraryMusicVideoAttributes extends BaseMusicVideoAttributes {
|
|
7
|
+
}
|
|
8
|
+
interface LibraryMusicVideoExtend {
|
|
9
|
+
}
|
|
10
|
+
export type LibraryMusicVideo = Resource<"library-music-videos", LibraryMusicVideoAttributes, LibraryMusicVideoExtend, {
|
|
11
|
+
albums: LibraryAlbum;
|
|
12
|
+
artists: LibraryArtist;
|
|
13
|
+
catalog: CatalogMusicVideo;
|
|
14
|
+
}>;
|
|
15
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogPlaylist } from "../../../types/resources/catalog/playlist.js";
|
|
3
|
+
import type { LibraryMusicVideo } from "../../../types/resources/library/musicVideo.js";
|
|
4
|
+
import type { LibraryPlaylistFolder } from "../../../types/resources/library/playlistFolder.js";
|
|
5
|
+
import type { LibrarySong } from "../../../types/resources/library/song.js";
|
|
6
|
+
import type { BasePlaylistAttributes } from "../../../types/resources/shared/playlist.js";
|
|
7
|
+
interface LibraryPlaylistAttributes extends BasePlaylistAttributes {
|
|
8
|
+
canEdit: boolean;
|
|
9
|
+
dateAdded?: string;
|
|
10
|
+
lastModifiedDate?: string;
|
|
11
|
+
hasCatalog: boolean;
|
|
12
|
+
isPublic: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface LibraryPlaylistExtend {
|
|
15
|
+
trackTypes?: ("library-music-videos" | "library-songs")[];
|
|
16
|
+
tags?: ("favorited" | (string & {}))[];
|
|
17
|
+
trackCount?: number;
|
|
18
|
+
}
|
|
19
|
+
export type LibraryPlaylist = Resource<"library-playlists", LibraryPlaylistAttributes, LibraryPlaylistExtend, {
|
|
20
|
+
catalog: CatalogPlaylist;
|
|
21
|
+
tracks: LibrarySong | LibraryMusicVideo;
|
|
22
|
+
parent: LibraryPlaylistFolder;
|
|
23
|
+
}>;
|
|
24
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { LibraryPlaylist } from "../../../types/resources/library/playlist.js";
|
|
3
|
+
interface LibraryPlaylistFolderAttributes {
|
|
4
|
+
dateAdded?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
}
|
|
7
|
+
interface LibraryPlaylistFolderExtend {
|
|
8
|
+
}
|
|
9
|
+
export type LibraryPlaylistFolder = Resource<"library-playlist-folders", LibraryPlaylistFolderAttributes, LibraryPlaylistFolderExtend, {
|
|
10
|
+
children: LibraryPlaylist | LibraryPlaylistFolder;
|
|
11
|
+
parent: LibraryPlaylistFolder;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogSong } from "../../../types/resources/catalog/song.js";
|
|
3
|
+
import type { LibraryAlbum } from "../../../types/resources/library/album.js";
|
|
4
|
+
import type { LibraryArtist } from "../../../types/resources/library/artist.js";
|
|
5
|
+
import type { BaseSongAttributes } from "../../../types/resources/shared/song.js";
|
|
6
|
+
interface LibrarySongAttributes extends BaseSongAttributes {
|
|
7
|
+
}
|
|
8
|
+
interface LibrarySongExtend {
|
|
9
|
+
}
|
|
10
|
+
export type LibrarySong = Resource<"library-songs", LibrarySongAttributes, LibrarySongExtend, {
|
|
11
|
+
albums: LibraryAlbum;
|
|
12
|
+
artists: LibraryArtist;
|
|
13
|
+
catalog: CatalogSong;
|
|
14
|
+
}>;
|
|
15
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogPlaylist } from "../../../types/resources/catalog/playlist.js";
|
|
3
|
+
import type { AlbumPeriodSummary } from "../../../types/resources/me/summaries/albumPeriodSummary.js";
|
|
4
|
+
import type { ArtistPeriodSummary } from "../../../types/resources/me/summaries/artistPeriodSummary.js";
|
|
5
|
+
import type { GenrePeriodSummary } from "../../../types/resources/me/summaries/genrePeriodSummary.js";
|
|
6
|
+
import type { MonthlySongPeriodSummary } from "../../../types/resources/me/summaries/monthlySongPeriodSummary.js";
|
|
7
|
+
import type { PlaylistPeriodSummary } from "../../../types/resources/me/summaries/playlistPeriodSummary.js";
|
|
8
|
+
import type { SongPeriodSummary } from "../../../types/resources/me/summaries/songPeriodSummary.js";
|
|
9
|
+
import type { StationPeriodSummary } from "../../../types/resources/me/summaries/stationPeriodSummary.js";
|
|
10
|
+
interface MusicSummaryAttributes {
|
|
11
|
+
name: string;
|
|
12
|
+
month?: number;
|
|
13
|
+
period: string;
|
|
14
|
+
year: number;
|
|
15
|
+
listenTimeInMinutes?: number;
|
|
16
|
+
topSongCount?: number;
|
|
17
|
+
uniqueAlbumCount?: number;
|
|
18
|
+
uniqueArtistCount?: number;
|
|
19
|
+
uniqueGenreCount?: number;
|
|
20
|
+
uniquePlaylistCount?: number;
|
|
21
|
+
uniqueSongCount?: number;
|
|
22
|
+
uniqueStationCount?: number;
|
|
23
|
+
}
|
|
24
|
+
interface MusicSummaryExtend {
|
|
25
|
+
}
|
|
26
|
+
export type MusicSummary = Resource<"music-summaries", MusicSummaryAttributes, MusicSummaryExtend, {
|
|
27
|
+
playlist: CatalogPlaylist;
|
|
28
|
+
}, {
|
|
29
|
+
"top-albums": AlbumPeriodSummary;
|
|
30
|
+
"top-artists": ArtistPeriodSummary;
|
|
31
|
+
"top-genres": GenrePeriodSummary;
|
|
32
|
+
"top-playlists": PlaylistPeriodSummary;
|
|
33
|
+
"top-songs": SongPeriodSummary;
|
|
34
|
+
"top-songs-for-months": MonthlySongPeriodSummary;
|
|
35
|
+
"top-stations": StationPeriodSummary;
|
|
36
|
+
}>;
|
|
37
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogPlaylist } from "../../../types/resources/catalog/playlist.js";
|
|
3
|
+
import type { Artwork } from "../../../types/shared.js";
|
|
4
|
+
interface SocialProfileAttributes {
|
|
5
|
+
artwork: Artwork;
|
|
6
|
+
handle: string;
|
|
7
|
+
isPrivate: boolean;
|
|
8
|
+
isVerified: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
url: string;
|
|
11
|
+
}
|
|
12
|
+
interface SocialProfileExtend {
|
|
13
|
+
followState: string;
|
|
14
|
+
}
|
|
15
|
+
export type SocialProfile = Resource<"social-profiles", SocialProfileAttributes, SocialProfileExtend, {
|
|
16
|
+
"shared-playlists": CatalogPlaylist;
|
|
17
|
+
}>;
|
|
18
|
+
interface PersonalSocialProfileAttributes extends SocialProfileAttributes {
|
|
19
|
+
acceptedTerms: string[];
|
|
20
|
+
collaborationAllowed: boolean;
|
|
21
|
+
isContactCheckAllowed: boolean;
|
|
22
|
+
isDiscoverableByContact: boolean;
|
|
23
|
+
isOnboarded: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface PersonalSocialProfileExtend {
|
|
26
|
+
pendingFollowersCount: number;
|
|
27
|
+
}
|
|
28
|
+
export type PersonalSocialProfile = Resource<"personal-social-profiles", PersonalSocialProfileAttributes, PersonalSocialProfileExtend, {
|
|
29
|
+
"shared-playlists": CatalogPlaylist;
|
|
30
|
+
"social-profile": SocialProfile;
|
|
31
|
+
}>;
|
|
32
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResourceOf } from "../../../types/query/helpers.js";
|
|
2
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
3
|
+
import type { RatingValue } from "../../../types/shared.js";
|
|
4
|
+
interface MeRatingsAttributes {
|
|
5
|
+
value?: RatingValue;
|
|
6
|
+
}
|
|
7
|
+
export type RatingResources = ResourceOf<"albums" | "music-videos" | "playlists" | "songs" | "stations" | "library-music-videos" | "library-playlists" | "library-songs">;
|
|
8
|
+
export type Rating = Resource<"ratings", MeRatingsAttributes, {}, {
|
|
9
|
+
content: RatingResources;
|
|
10
|
+
}>;
|
|
11
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogAlbum } from "../../../types/resources/catalog/album.js";
|
|
3
|
+
import type { CatalogArtist } from "../../../types/resources/catalog/artist.js";
|
|
4
|
+
import type { CatalogMusicVideo } from "../../../types/resources/catalog/musicVideo.js";
|
|
5
|
+
import type { CatalogPlaylist } from "../../../types/resources/catalog/playlist.js";
|
|
6
|
+
import type { CatalogSong } from "../../../types/resources/catalog/song.js";
|
|
7
|
+
import type { LibraryAlbum } from "../../../types/resources/library/album.js";
|
|
8
|
+
import type { LibraryArtist } from "../../../types/resources/library/artist.js";
|
|
9
|
+
import type { LibraryMusicVideo } from "../../../types/resources/library/musicVideo.js";
|
|
10
|
+
import type { LibraryPlaylist } from "../../../types/resources/library/playlist.js";
|
|
11
|
+
import type { LibrarySong } from "../../../types/resources/library/song.js";
|
|
12
|
+
interface DisplayString {
|
|
13
|
+
stringForDisplay: string;
|
|
14
|
+
}
|
|
15
|
+
interface RecommendationAttributes {
|
|
16
|
+
kind: "music-recommendations" | "recently-played" | "unknown";
|
|
17
|
+
nextUpdateDate: string;
|
|
18
|
+
reason?: DisplayString;
|
|
19
|
+
resourceTypes: string[];
|
|
20
|
+
title?: DisplayString;
|
|
21
|
+
}
|
|
22
|
+
interface RecommendationExtend {
|
|
23
|
+
}
|
|
24
|
+
export type Recommendation = Resource<"personal-recommendation", RecommendationAttributes, RecommendationExtend, {
|
|
25
|
+
contents: CatalogAlbum | CatalogArtist | CatalogMusicVideo | CatalogPlaylist | CatalogSong | LibraryAlbum | LibraryArtist | LibraryMusicVideo | LibraryPlaylist | LibrarySong;
|
|
26
|
+
}>;
|
|
27
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Resource } from "../../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogAlbum } from "../../../../types/resources/catalog/album.js";
|
|
3
|
+
interface AlbumPeriodSummaryAttributes {
|
|
4
|
+
firstPlayed?: string;
|
|
5
|
+
lastPlayed?: string;
|
|
6
|
+
listenTimeInMinutes?: number;
|
|
7
|
+
playCount?: number;
|
|
8
|
+
year: string;
|
|
9
|
+
}
|
|
10
|
+
interface AlbumPeriodSummaryExtend {
|
|
11
|
+
}
|
|
12
|
+
export type AlbumPeriodSummary = Resource<"album-period-summaries", AlbumPeriodSummaryAttributes, AlbumPeriodSummaryExtend, {
|
|
13
|
+
album: CatalogAlbum;
|
|
14
|
+
}>;
|
|
15
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Resource } from "../../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogArtist } from "../../../../types/resources/catalog/artist.js";
|
|
3
|
+
interface ArtistPeriodSummaryAttributes {
|
|
4
|
+
firstPlayed?: string;
|
|
5
|
+
lastPlayed?: string;
|
|
6
|
+
listenTimeInMinutes?: number;
|
|
7
|
+
playCount?: number;
|
|
8
|
+
year: string;
|
|
9
|
+
}
|
|
10
|
+
interface ArtistPeriodSummaryExtend {
|
|
11
|
+
}
|
|
12
|
+
export type ArtistPeriodSummary = Resource<"artist-period-summaries", ArtistPeriodSummaryAttributes, ArtistPeriodSummaryExtend, {
|
|
13
|
+
artist: CatalogArtist;
|
|
14
|
+
}>;
|
|
15
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Resource } from "../../../../types/query/resource.js";
|
|
2
|
+
interface GenrePeriodSummaryAttributes {
|
|
3
|
+
firstPlayed?: string;
|
|
4
|
+
genreName?: string;
|
|
5
|
+
lastPlayed?: string;
|
|
6
|
+
listenTimeInMinutes?: number;
|
|
7
|
+
playCount?: number;
|
|
8
|
+
}
|
|
9
|
+
interface GenrePeriodSummaryExtend {
|
|
10
|
+
}
|
|
11
|
+
export type GenrePeriodSummary = Resource<"genre-period-summaries", GenrePeriodSummaryAttributes, GenrePeriodSummaryExtend>;
|
|
12
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Resource } from "../../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogSong } from "../../../../types/resources/catalog/song.js";
|
|
3
|
+
interface MonthlySongPeriodSummaryAttributes {
|
|
4
|
+
firstPlayed?: string;
|
|
5
|
+
lastPlayed?: string;
|
|
6
|
+
playCount?: number;
|
|
7
|
+
}
|
|
8
|
+
interface MonthlySongPeriodSummaryExtend {
|
|
9
|
+
}
|
|
10
|
+
export type MonthlySongPeriodSummary = Resource<"monthly-song-period-summaries", MonthlySongPeriodSummaryAttributes, MonthlySongPeriodSummaryExtend, {
|
|
11
|
+
song: CatalogSong;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Resource } from "../../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogPlaylist } from "../../../../types/resources/catalog/playlist.js";
|
|
3
|
+
interface PlaylistPeriodSummaryAttributes {
|
|
4
|
+
firstPlayed?: string;
|
|
5
|
+
lastPlayed?: string;
|
|
6
|
+
listenTimeInMinutes?: number;
|
|
7
|
+
playCount?: number;
|
|
8
|
+
}
|
|
9
|
+
interface PlaylistPeriodSummaryExtend {
|
|
10
|
+
}
|
|
11
|
+
export type PlaylistPeriodSummary = Resource<"playlist-period-summaries", PlaylistPeriodSummaryAttributes, PlaylistPeriodSummaryExtend, {
|
|
12
|
+
playlist: CatalogPlaylist;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Resource } from "../../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogSong } from "../../../../types/resources/catalog/song.js";
|
|
3
|
+
interface SongPeriodSummaryAttributes {
|
|
4
|
+
firstPlayed?: string;
|
|
5
|
+
lastPlayed?: string;
|
|
6
|
+
listenTimeInMinutes?: number;
|
|
7
|
+
playCount?: number;
|
|
8
|
+
year: string;
|
|
9
|
+
}
|
|
10
|
+
interface SongPeriodSummaryExtend {
|
|
11
|
+
}
|
|
12
|
+
export type SongPeriodSummary = Resource<"song-period-summaries", SongPeriodSummaryAttributes, SongPeriodSummaryExtend, {
|
|
13
|
+
song: CatalogSong;
|
|
14
|
+
}>;
|
|
15
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Resource } from "../../../../types/query/resource.js";
|
|
2
|
+
import type { CatalogStation } from "../../../../types/resources/catalog/station.js";
|
|
3
|
+
interface StationPeriodSummaryAttributes {
|
|
4
|
+
firstPlayed?: string;
|
|
5
|
+
lastPlayed?: string;
|
|
6
|
+
listenTimeInMinutes?: number;
|
|
7
|
+
playCount?: number;
|
|
8
|
+
}
|
|
9
|
+
interface StationPeriodSummaryExtend {
|
|
10
|
+
}
|
|
11
|
+
export type StationPeriodSummary = Resource<"station-period-summaries", StationPeriodSummaryAttributes, StationPeriodSummaryExtend, {
|
|
12
|
+
station: CatalogStation;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Resource } from "../../../types/query/resource.js";
|
|
2
|
+
export type StorefrontAttributes = {
|
|
3
|
+
defaultLanguageTag: string;
|
|
4
|
+
explicitContentPolicy: "allowed" | "opt-in" | "prohibited";
|
|
5
|
+
name: string;
|
|
6
|
+
supportedLanguageTags: string[];
|
|
7
|
+
};
|
|
8
|
+
export type Storefront = Resource<"storefronts", StorefrontAttributes>;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Artwork, ContentRating, PlayParameters } from "../../../types/shared.js";
|
|
2
|
+
export interface BaseAlbumAttributes {
|
|
3
|
+
artistName?: string;
|
|
4
|
+
artwork?: Artwork;
|
|
5
|
+
contentRating?: ContentRating;
|
|
6
|
+
genreNames: string[];
|
|
7
|
+
name: string;
|
|
8
|
+
playParams?: PlayParameters;
|
|
9
|
+
releaseDate?: string;
|
|
10
|
+
trackCount: number;
|
|
11
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Artwork, ContentRating, PlayParameters } from "../../../types/shared.js";
|
|
2
|
+
export interface BaseMusicVideoAttributes {
|
|
3
|
+
albumName?: string;
|
|
4
|
+
artistName: string;
|
|
5
|
+
artwork: Artwork;
|
|
6
|
+
contentRating?: ContentRating;
|
|
7
|
+
durationInMillis: number;
|
|
8
|
+
genreNames: string[];
|
|
9
|
+
name: string;
|
|
10
|
+
playParams?: PlayParameters;
|
|
11
|
+
releaseDate?: string;
|
|
12
|
+
trackNumber?: number;
|
|
13
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Artwork, ContentRating, PlayParameters } from "../../../types/shared.js";
|
|
2
|
+
export interface BaseSongAttributes {
|
|
3
|
+
artistName: string;
|
|
4
|
+
albumName: string;
|
|
5
|
+
artwork?: Artwork;
|
|
6
|
+
contentRating?: ContentRating;
|
|
7
|
+
discNumber?: number;
|
|
8
|
+
durationInMillis: number;
|
|
9
|
+
genreNames: string[];
|
|
10
|
+
hasLyrics: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
playParams?: PlayParameters;
|
|
13
|
+
releaseDate?: string;
|
|
14
|
+
trackNumber?: number;
|
|
15
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ResourceOf } from "../../types/query/helpers.js";
|
|
2
|
+
import type { Result } from "../../types/query/results.js";
|
|
3
|
+
export type ChartResult = Result<{
|
|
4
|
+
albums: ResourceOf<"albums">;
|
|
5
|
+
"music-videos": ResourceOf<"music-videos">;
|
|
6
|
+
playlists: ResourceOf<"playlists">;
|
|
7
|
+
songs: ResourceOf<"songs">;
|
|
8
|
+
}>;
|
|
File without changes
|