aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/search/videos-search-query.model.ts
blob: bd6bb5bc125f67f158db30e2ad6bef35aaee693f (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
29
30
31
32
33
34
35
import { NSFWQuery } from './nsfw-query.model'
import { VideoFilter } from '../videos'
import { SearchTargetQuery } from './search-target-query.model'

export interface VideosSearchQuery extends SearchTargetQuery {
  forceLocalSearch?: boolean

  search?: string

  start?: number
  count?: number
  sort?: string

  startDate?: string // ISO 8601
  endDate?: string // ISO 8601

  originallyPublishedStartDate?: string // ISO 8601
  originallyPublishedEndDate?: string // ISO 8601

  nsfw?: NSFWQuery

  categoryOneOf?: number[]

  licenceOneOf?: number[]

  languageOneOf?: string[]

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

  durationMin?: number // seconds
  durationMax?: number // seconds

  filter?: VideoFilter
}