@@ -12,7 +12,7 @@ import {
12
12
AccountProfile ,
13
13
CollectionWithCursor ,
14
14
FavoritesData ,
15
- WatchlistHistory ,
15
+ WatchHistory ,
16
16
CollectionWithCursorArgs ,
17
17
} from '../models/IAccount&Authentication' ;
18
18
import {
@@ -1240,7 +1240,7 @@ class Account extends BaseExtend {
1240
1240
}
1241
1241
1242
1242
/**
1243
- * Returns the viewer's watchlist history
1243
+ * Returns the viewer's watch history
1244
1244
* @method getWatchHistory
1245
1245
* @param {string } filter the filter can be one of all, watched or currently_watching.
1246
1246
* The default is: currently_watching
@@ -1250,7 +1250,7 @@ class Account extends BaseExtend {
1250
1250
* InPlayer.Account
1251
1251
* .getWatchHistory({filter:"all"})
1252
1252
* .then(data => console.log(data));
1253
- * @returns {CollectionWithCursor<WatchlistHistory > } Contains the data:
1253
+ * @returns {CollectionWithCursor<WatchHistory > } Contains the data:
1254
1254
* ```typescript
1255
1255
* {
1256
1256
* "collection": [{
@@ -1259,15 +1259,15 @@ class Account extends BaseExtend {
1259
1259
* "created_at": 1532425425,
1260
1260
* "updated_at": 1532425425
1261
1261
* }],
1262
- * "cursor": "https://services.inplayer.com/v2/accounts/media/watchlist -history?cursor=Ksm34S"
1262
+ * "cursor": "https://services.inplayer.com/v2/accounts/media/watch -history?cursor=Ksm34S"
1263
1263
* }
1264
1264
* ```
1265
1265
*/
1266
1266
async getWatchHistory ( {
1267
1267
filter = 'currently_watching' ,
1268
1268
cursor = '' ,
1269
1269
} : CollectionWithCursorArgs ) : Promise <
1270
- AxiosResponse < CollectionWithCursor < WatchlistHistory > >
1270
+ AxiosResponse < CollectionWithCursor < WatchHistory > >
1271
1271
> {
1272
1272
const tokenObject = await this . request . getToken ( ) ;
1273
1273
return this . request . get (
@@ -1282,15 +1282,15 @@ class Account extends BaseExtend {
1282
1282
}
1283
1283
1284
1284
/**
1285
- * Returns the viewer's watchlist history media item
1285
+ * Returns the viewer's watch history media item
1286
1286
* @method getWatchHistoryForItem
1287
1287
* @param {string } mediaId The external ID
1288
1288
* @async
1289
1289
* @example
1290
1290
* InPlayer.Account
1291
1291
* .getWatchHistoryForItem("awWEFyPu")
1292
1292
* .then(data => console.log(data));
1293
- * @returns {AxiosResponse<WatchlistHistory > } Contains the data:
1293
+ * @returns {AxiosResponse<WatchHistory > } Contains the data:
1294
1294
* ```typescript
1295
1295
* {
1296
1296
* "media_id": "awWEFyPu",
@@ -1302,7 +1302,7 @@ class Account extends BaseExtend {
1302
1302
*/
1303
1303
async getWatchHistoryForItem (
1304
1304
mediaId : string ,
1305
- ) : Promise < AxiosResponse < WatchlistHistory > > {
1305
+ ) : Promise < AxiosResponse < WatchHistory > > {
1306
1306
const tokenObject = await this . request . getToken ( ) ;
1307
1307
return this . request . get ( API . getWatchHistoryForItem ( mediaId ) , {
1308
1308
headers : {
@@ -1313,7 +1313,7 @@ class Account extends BaseExtend {
1313
1313
}
1314
1314
1315
1315
/**
1316
- * Updates the viewer's watchlist history media item
1316
+ * Updates the viewer's watch history media item
1317
1317
* @method updateWatchHistory
1318
1318
* @param {string } mediaId The external ID
1319
1319
* @param {number } progress The progress of the watched video in percent
@@ -1322,7 +1322,7 @@ class Account extends BaseExtend {
1322
1322
* InPlayer.Account
1323
1323
* .updateWatchHistory("awWEFyPu", 0.3434)
1324
1324
* .then(data => console.log(data));
1325
- * @returns {AxiosResponse<WatchlistHistory > } Contains the data:
1325
+ * @returns {AxiosResponse<WatchHistory > } Contains the data:
1326
1326
* ```typescript
1327
1327
* {
1328
1328
* "media_id": "awWEFyPu",
@@ -1335,7 +1335,7 @@ class Account extends BaseExtend {
1335
1335
async updateWatchHistory (
1336
1336
mediaId : string ,
1337
1337
progress : number ,
1338
- ) : Promise < AxiosResponse < WatchlistHistory > > {
1338
+ ) : Promise < AxiosResponse < WatchHistory > > {
1339
1339
const body = {
1340
1340
media_id : mediaId ,
1341
1341
progress,
@@ -1350,7 +1350,7 @@ class Account extends BaseExtend {
1350
1350
}
1351
1351
1352
1352
/**
1353
- * Deletes viewer's watchlist history media item
1353
+ * Deletes viewer's watch history media item
1354
1354
* @method deleteWatchHistoryForItem
1355
1355
* @param {string } mediaId The external ID
1356
1356
* @async
0 commit comments