aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/redundancy/videos-redundancy.model.ts
blob: 436394c1e082071146331601521643f995432782 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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