aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/search/videos-search-query.model.ts
blob: a5436879d5fda9ecd50b3cf2ab8d2f47ef454511 (plain) (tree)
1
2
3
4
5
6
7
8
                                                               
                                                               
 
                                                                                 
                 
 

               


                                


                                                   

                                 
 
                         
                  
 





                                                                           
import { SearchTargetQuery } from './search-target-query.model'
import { VideosCommonQuery } from './videos-common-query.model'

export interface VideosSearchQuery extends SearchTargetQuery, VideosCommonQuery {
  search?: string

  host?: string

  startDate?: string // ISO 8601
  endDate?: string // ISO 8601

  originallyPublishedStartDate?: string // ISO 8601
  originallyPublishedEndDate?: string // ISO 8601

  durationMin?: number // seconds
  durationMax?: number // seconds

  // UUIDs or short UUIDs
  uuids?: string[]
}

export interface VideosSearchQueryAfterSanitize extends VideosSearchQuery {
  start: number
  count: number
  sort: string
}