PeerTube/shared/models/search/videos-search-query.model.ts

33 lines
607 B
TypeScript
Raw Normal View History

2018-07-20 18:31:49 +02:00
import { NSFWQuery } from './nsfw-query.model'
import { VideoFilter } from '../videos'
2018-07-20 18:31:49 +02:00
2018-07-20 14:35:18 +02:00
export interface VideosSearchQuery {
search?: string
2018-07-20 14:35:18 +02: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 18:31:49 +02:00
nsfw?: NSFWQuery
2018-07-20 14:35:18 +02:00
categoryOneOf?: number[]
licenceOneOf?: number[]
languageOneOf?: string[]
tagsOneOf?: string[]
tagsAllOf?: string[]
durationMin?: number // seconds
durationMax?: number // seconds
filter?: VideoFilter
2018-07-20 14:35:18 +02:00
}