export class HistoryCommand extends AbstractCommand {
- wathVideo (options: OverrideCommandOptions & {
+ watchVideo (options: OverrideCommandOptions & {
videoId: number | string
currentTime: number
}) {
})
}
- remove (options: OverrideCommandOptions & {
+ removeElement (options: OverrideCommandOptions & {
+ videoId: number
+ }) {
+ const { videoId } = options
+ const path = '/api/v1/users/me/history/videos/' + videoId
+
+ return this.deleteRequest({
+ ...options,
+
+ path,
+ implicitToken: true,
+ defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
+ })
+ }
+
+ removeAll (options: OverrideCommandOptions & {
beforeDate?: string
} = {}) {
const { beforeDate } = options