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