]>
Commit | Line | Data |
---|---|---|
c0e8b12e | 1 | import { HttpStatusCode } from '@shared/models' |
23a3a882 C |
2 | import { VideosOverview } from '@shared/models' |
3 | import { AbstractCommand, OverrideCommandOptions } from '../shared' | |
4 | ||
5 | export class OverviewsCommand extends AbstractCommand { | |
6 | ||
7 | getVideos (options: OverrideCommandOptions & { | |
8 | page: number | |
23a3a882 | 9 | }) { |
a1637fa1 | 10 | const { page } = options |
23a3a882 C |
11 | const path = '/api/v1/overviews/videos' |
12 | ||
13 | const query = { page } | |
14 | ||
15 | return this.getRequestBody<VideosOverview>({ | |
16 | ...options, | |
17 | ||
23a3a882 C |
18 | path, |
19 | query, | |
a1637fa1 | 20 | implicitToken: false, |
23a3a882 C |
21 | defaultExpectedStatus: HttpStatusCode.OK_200 |
22 | }) | |
23 | } | |
24 | } |