@types/spotify-api
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -471,3 +471,3 @@ // Type definitions for The Spotify Web API (including changes March 29th 2016) | ||
* GET /v1/me/shows | ||
* https://developer.spotify.com/documentation/web-api/reference/library/get-users-saved-shows/ | ||
* https://developer.spotify.com/documentation/web-api/reference/#endpoint-get-users-saved-shows | ||
*/ | ||
@@ -477,2 +477,10 @@ type UsersSavedShowsResponse = PagingObject<SavedShowObject>; | ||
/** | ||
* Get User's Saved Episodes | ||
* | ||
* GET /v1/me/episodes | ||
* https://developer.spotify.com/documentation/web-api/reference/#endpoint-get-users-saved-episodes | ||
*/ | ||
type UsersSavedEpisodesResponse = PagingObject<SavedEpisodeObject>; | ||
/** | ||
* Get a User’s Top Artists and Tracks (Note: This is only Artists) | ||
@@ -601,3 +609,3 @@ * | ||
*/ | ||
type SingleShowResponse = ShowObjectFull; | ||
type SingleShowResponse = ShowObject; | ||
@@ -628,3 +636,3 @@ /** | ||
*/ | ||
type SingleEpisodeResponse = EpisodeObjectFull; | ||
type SingleEpisodeResponse = EpisodeObject; | ||
@@ -638,3 +646,3 @@ /** | ||
interface MultipleEpisodesResponse { | ||
episodes: EpisodeObjectFull[]; | ||
episodes: EpisodeObject[]; | ||
} | ||
@@ -1188,2 +1196,17 @@ | ||
/** | ||
* Saved Episode Object | ||
* [saved episode object](https://developer.spotify.com/documentation/web-api/reference/#object-savedepisodeobject) | ||
*/ | ||
interface SavedEpisodeObject { | ||
/** | ||
* The date and time the episode was saved. | ||
*/ | ||
added_at: string; | ||
/** | ||
* Information about the episode. | ||
*/ | ||
episode: EpisodeObject; | ||
} | ||
/** | ||
* Saved Show Object | ||
@@ -1320,6 +1343,6 @@ * [saved show object](https://developer.spotify.com/documentation/web-api/reference/object-model/#saved-show-object) | ||
/** | ||
* Full Episiode Object | ||
* [episode object (full)](https://developer.spotify.com/documentation/web-api/reference/object-model/#episode-object-full) | ||
* Episode Object | ||
* [episode object](https://developer.spotify.com/documentation/web-api/reference/#object-episodeobject) | ||
*/ | ||
interface EpisodeObjectFull extends EpisodeObjectSimplified { | ||
interface EpisodeObject extends EpisodeObjectSimplified { | ||
/** | ||
@@ -1335,2 +1358,4 @@ * The show on which the episode belongs. | ||
interface EpisodeObjectFull extends EpisodeObject {} | ||
/** | ||
@@ -1422,6 +1447,6 @@ * Simplified Episode Object | ||
/** | ||
* Full Show Object | ||
* [show object (full)](https://developer.spotify.com/documentation/web-api/reference/object-model/#show-object-full) | ||
* Show Object | ||
* [show object](https://developer.spotify.com/documentation/web-api/reference/#object-showobject) | ||
*/ | ||
interface ShowObjectFull extends ShowObjectSimplified { | ||
interface ShowObject extends ShowObjectSimplified { | ||
episodes: PagingObject<EpisodeObjectSimplified>; | ||
@@ -1431,2 +1456,4 @@ external_urls: ExternalUrlObject; | ||
interface ShowObjectFull extends ShowObject {} | ||
/** | ||
@@ -1564,3 +1591,3 @@ * Simplified Show Object | ||
is_playing: boolean; | ||
item: TrackObjectFull | EpisodeObjectFull | null; | ||
item: TrackObjectFull | EpisodeObject | null; | ||
context: ContextObject | null; | ||
@@ -1567,0 +1594,0 @@ currently_playing_type: 'track' | 'episode' | 'ad' | 'unknown'; |
{ | ||
"name": "@types/spotify-api", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "TypeScript definitions for The Spotify Web API (including changes March 29th 2016)", | ||
@@ -38,4 +38,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/spotify-api", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "0212c707506de443b0fa5e6c55bda35170bee49d85336875d38f4a0405da041d", | ||
"typesPublisherContentHash": "7118e54b3b8af45d955dcf6e5acfbbaf53b76cc30b34f1be7096e5fcb87a8574", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 31 May 2021 15:31:22 GMT | ||
* Last updated: Fri, 18 Jun 2021 14:01:14 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
56942
1482