aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/redundancy/videos-redundancy.model.ts
blob: 436394c1e082071146331601521643f995432782 (plain) (tree)
1
2
3
4
5
6
                                                                                  
 

                                           

              












                                                                                                               
export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'

export type MostViewsRedundancyStrategy = {
  strategy: 'most-views'
  size: number
}

export type TrendingRedundancyStrategy = {
  strategy: 'trending'
  size: number
}

export type RecentlyAddedStrategy = {
  strategy: 'recently-added'
  size: number
  minViews: number
}

export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy