aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/search/videos-common-query.model.ts
blob: 55a98e302da3af327ec16873103b1d5b770c63d5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                                           











                                                                        





                                                                         








                          
                     

                 

 



                                                                           
 

                                        
 
import { VideoInclude } from '../videos/video-include.enum'
import { BooleanBothQuery } from './boolean-both-query.model'

// These query parameters can be used with any endpoint that list videos
export interface VideosCommonQuery {
  start?: number
  count?: number
  sort?: string

  nsfw?: BooleanBothQuery

  isLive?: boolean

  // FIXME: deprecated in 4.0 in favour of isLocal and include, to remove
  filter?: never

  isLocal?: boolean
  include?: VideoInclude

  categoryOneOf?: number[]

  licenceOneOf?: number[]

  languageOneOf?: string[]

  tagsOneOf?: string[]
  tagsAllOf?: string[]

  skipCount?: boolean

  search?: string
}

export interface VideosCommonQueryAfterSanitize extends VideosCommonQuery {
  start: number
  count: number
  sort: string

  // FIXME: deprecated in 4.0, to remove
  filter?: never
}