1
0
Fork 0
peertube/shared/models/search/videos-search-query.model.ts

34 lines
697 B
TypeScript
Raw Normal View History

import { VideoFilter } from '../videos'
2020-06-09 10:39:45 -04:00
import { NSFWQuery } from './nsfw-query.model'
2020-05-29 10:16:24 -04:00
import { SearchTargetQuery } from './search-target-query.model'
export interface VideosSearchQuery extends SearchTargetQuery {
search?: string
2018-07-20 08:35:18 -04:00
start?: number
count?: number
sort?: string
startDate?: string // ISO 8601
endDate?: string // ISO 8601
originallyPublishedStartDate?: string // ISO 8601
originallyPublishedEndDate?: string // ISO 8601
2018-07-20 12:31:49 -04:00
nsfw?: NSFWQuery
2018-07-20 08:35:18 -04:00
categoryOneOf?: number[]
licenceOneOf?: number[]
languageOneOf?: string[]
tagsOneOf?: string[]
tagsAllOf?: string[]
durationMin?: number // seconds
durationMax?: number // seconds
filter?: VideoFilter
2018-07-20 08:35:18 -04:00
}