aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/search/videos-common-query.model.ts
blob: bd02489ea4a7cce7a65bb052f888b9d117012b66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}

export interface VideosWithSearchCommonQuery extends VideosCommonQuery {
  search?: string
}