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

45 lines
883 B
TypeScript
Raw Normal View History

import { VideoInclude } from '../videos/video-include.enum'
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
// FIXME: deprecated in 4.0 in favour of isLocal and include, to remove
filter?: never
isLocal?: boolean
include?: VideoInclude
categoryOneOf?: number[]
licenceOneOf?: number[]
languageOneOf?: string[]
tagsOneOf?: string[]
tagsAllOf?: string[]
2021-11-03 05:32:41 -05:00
hasHLSFiles?: boolean
hasWebtorrentFiles?: boolean
2021-07-15 03:02:54 -05:00
skipCount?: boolean
search?: string
}
2021-07-29 04:54:38 -05:00
export interface VideosCommonQueryAfterSanitize extends VideosCommonQuery {
start: number
count: number
sort: string
// FIXME: deprecated in 4.0, to remove
filter?: never
}