]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/search/videos-common-query.model.ts
Add ability to filter out public videos from admin
[github/Chocobozzz/PeerTube.git] / shared / models / search / videos-common-query.model.ts
CommitLineData
527a52ac 1import { VideoPrivacy } from '@shared/models'
2760b454 2import { VideoInclude } from '../videos/video-include.enum'
1fd61899
C
3import { BooleanBothQuery } from './boolean-both-query.model'
4
5// These query parameters can be used with any endpoint that list videos
6export 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
1fd61899
C
38}
39
d6886027
C
40export interface VideosCommonQueryAfterSanitize extends VideosCommonQuery {
41 start: number
42 count: number
43 sort: string
d6886027 44
2760b454
C
45 // FIXME: deprecated in 4.0, to remove
46 filter?: never
1fd61899 47}