videos-search-query.model.ts 716 B

1234567891011121314151617181920212223242526272829
  1. import { SearchTargetQuery } from './search-target-query.model'
  2. import { VideosCommonQuery } from './videos-common-query.model'
  3. export interface VideosSearchQuery extends SearchTargetQuery, VideosCommonQuery {
  4. search?: string
  5. host?: string
  6. startDate?: string // ISO 8601
  7. endDate?: string // ISO 8601
  8. originallyPublishedStartDate?: string // ISO 8601
  9. originallyPublishedEndDate?: string // ISO 8601
  10. durationMin?: number // seconds
  11. durationMax?: number // seconds
  12. // UUIDs or short UUIDs
  13. uuids?: string[]
  14. }
  15. export interface VideosSearchQueryAfterSanitize extends VideosSearchQuery {
  16. start: number
  17. count: number
  18. sort: string
  19. // FIXME: deprecated in 4.0, to remove
  20. filter?: never
  21. }