2021-07-16 14:27:30 +02:00
|
|
|
import { HttpStatusCode, VideosOverview } from '@shared/models'
|
2021-07-06 14:30:20 +02:00
|
|
|
import { AbstractCommand, OverrideCommandOptions } from '../shared'
|
|
|
|
|
|
|
|
export class OverviewsCommand extends AbstractCommand {
|
|
|
|
|
|
|
|
getVideos (options: OverrideCommandOptions & {
|
|
|
|
page: number
|
|
|
|
}) {
|
2021-07-08 10:55:16 +02:00
|
|
|
const { page } = options
|
2021-07-06 14:30:20 +02:00
|
|
|
const path = '/api/v1/overviews/videos'
|
|
|
|
|
|
|
|
const query = { page }
|
|
|
|
|
|
|
|
return this.getRequestBody<VideosOverview>({
|
|
|
|
...options,
|
|
|
|
|
|
|
|
path,
|
|
|
|
query,
|
2021-07-08 10:55:16 +02:00
|
|
|
implicitToken: false,
|
2021-07-06 14:30:20 +02:00
|
|
|
defaultExpectedStatus: HttpStatusCode.OK_200
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|