aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/redundancy/videos-redundancy.model.ts
blob: a8c2743c19f24142d26784d41b171050eabbf18c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                                                  
 

                                           
              
                     
 



                                          
                     





                                     
                     


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

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

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

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

export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy