aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/search/videos-common-query.model.ts
blob: 2f2e9a9348f43a6c2f1e348ea41e5e527e40dc27 (plain) (tree)






















                                                                        

                     

 





                                                                           


                                                                        
import { VideoFilter } from '../videos'
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

  categoryOneOf?: number[]

  licenceOneOf?: number[]

  languageOneOf?: string[]

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

  filter?: VideoFilter

  skipCount?: boolean
}

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

export interface VideosWithSearchCommonQuery extends VideosCommonQuery {
  search?: string
}