]>
Commit | Line | Data |
---|---|---|
527a52ac | 1 | import { VideoPrivacy } from '@shared/models' |
2760b454 | 2 | import { VideoInclude } from '../videos/video-include.enum' |
1fd61899 C |
3 | import { BooleanBothQuery } from './boolean-both-query.model' |
4 | ||
5 | // These query parameters can be used with any endpoint that list videos | |
6 | export interface VideosCommonQuery { | |
7 | start?: number | |
8 | count?: number | |
9 | sort?: string | |
10 | ||
11 | nsfw?: BooleanBothQuery | |
12 | ||
13 | isLive?: boolean | |
14 | ||
2760b454 C |
15 | // FIXME: deprecated in 4.0 in favour of isLocal and include, to remove |
16 | filter?: never | |
17 | ||
18 | isLocal?: boolean | |
19 | include?: VideoInclude | |
20 | ||
1fd61899 C |
21 | categoryOneOf?: number[] |
22 | ||
23 | licenceOneOf?: number[] | |
24 | ||
25 | languageOneOf?: string[] | |
26 | ||
527a52ac C |
27 | privacyOneOf?: VideoPrivacy[] |
28 | ||
1fd61899 C |
29 | tagsOneOf?: string[] |
30 | tagsAllOf?: string[] | |
31 | ||
d324756e C |
32 | hasHLSFiles?: boolean |
33 | hasWebtorrentFiles?: boolean | |
34 | ||
d23dd9fb | 35 | skipCount?: boolean |
2760b454 C |
36 | |
37 | search?: string | |
2a4c0d8b W |
38 | |
39 | excludeAlreadyWatched?: boolean | |
1fd61899 C |
40 | } |
41 | ||
d6886027 C |
42 | export interface VideosCommonQueryAfterSanitize extends VideosCommonQuery { |
43 | start: number | |
44 | count: number | |
45 | sort: string | |
d6886027 | 46 | |
2760b454 C |
47 | // FIXME: deprecated in 4.0, to remove |
48 | filter?: never | |
1fd61899 | 49 | } |