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

46 lines
898 B
TypeScript
Raw Normal View History

import { VideoPrivacy } from '@shared/models'
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
isLocal?: boolean
include?: VideoInclude
categoryOneOf?: number[]
licenceOneOf?: number[]
languageOneOf?: string[]
privacyOneOf?: VideoPrivacy[]
tagsOneOf?: string[]
tagsAllOf?: string[]
2021-11-03 11:32:41 +01:00
hasHLSFiles?: boolean
hasWebtorrentFiles?: boolean // TODO: remove in v7
hasWebVideoFiles?: boolean
2021-11-03 11:32:41 +01:00
2021-07-15 10:02:54 +02:00
skipCount?: boolean
search?: string
excludeAlreadyWatched?: boolean
}
2021-07-29 11:54:38 +02:00
export interface VideosCommonQueryAfterSanitize extends VideosCommonQuery {
start: number
count: number
sort: string
}