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