File tree 3 files changed +44
-1
lines changed
3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+ # [ 3.13.3] - 06-12-2022
6
+
7
+ ### Added
8
+
9
+ - Added missing type declarations
10
+
5
11
# [ 3.13.2] - 06-12-2022
6
12
7
13
### Added
Original file line number Diff line number Diff line change @@ -173,6 +173,26 @@ export declare interface ExternalAccount {
173
173
token : string ;
174
174
}
175
175
176
+ export interface WatchlistHistory {
177
+ media_id : string ;
178
+ progress : number ;
179
+ created_at : number ;
180
+ updated_at : number ;
181
+ }
182
+ export interface FavoritesData {
183
+ media_id : string ;
184
+ created_at : number ;
185
+ }
186
+
187
+ export interface CollectionWithCursor < T > {
188
+ collection : T [ ] ;
189
+ cursor ?: string ;
190
+ }
191
+ export interface CollectionWithCursorArgs {
192
+ filter ?: 'all' | 'watched' | 'currently_watching' ;
193
+ cursor ?: string ;
194
+ }
195
+
176
196
export declare class Account {
177
197
constructor ( config : Record < string , unknown > ) ;
178
198
@@ -225,6 +245,23 @@ export declare class Account {
225
245
integration : string ,
226
246
body : Record < string , string | number >
227
247
) : Promise < AxiosResponse < CommonResponse > > ;
248
+ getFavorites ( ) : Promise < AxiosResponse < CollectionWithCursor < FavoritesData > > > ;
249
+ getFavorite ( mediaId : string ) : Promise < AxiosResponse < FavoritesData > > ;
250
+ addToFavorites ( mediaId : string ) : Promise < AxiosResponse < FavoritesData > > ;
251
+ deleteFromFavorites ( mediaId : string ) : Promise < AxiosResponse < CommonResponse > > ;
252
+ getWatchHistory (
253
+ args : CollectionWithCursorArgs
254
+ ) : Promise < AxiosResponse < CollectionWithCursor < WatchlistHistory > > > ;
255
+ getWatchHistoryForItem (
256
+ mediaId : string
257
+ ) : Promise < AxiosResponse < WatchlistHistory > > ;
258
+ updateWatchHistory (
259
+ mediaId : string ,
260
+ progress : number
261
+ ) : Promise < AxiosResponse < WatchlistHistory > > ;
262
+ deleteWatchHistoryForItem (
263
+ mediaId : string
264
+ ) : Promise < AxiosResponse < CommonResponse > > ;
228
265
}
229
266
230
267
// Items
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @inplayer-org/inplayer.js" ,
3
- "version" : " 3.13.2 " ,
3
+ "version" : " 3.13.3 " ,
4
4
"author" : " InPlayer" ,
5
5
"license" : " MIT" ,
6
6
"description" : " A Javascript SDK for Inplayer's RESTful API" ,
You can’t perform that action at this time.
0 commit comments