]>
Commit | Line | Data |
---|---|---|
3f6b6a56 | 1 | export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added' |
b764380a | 2 | export type VideoRedundancyStrategyWithManual = VideoRedundancyStrategy | 'manual' |
c48e82b5 | 3 | |
3f6b6a56 C |
4 | export type MostViewsRedundancyStrategy = { |
5 | strategy: 'most-views' | |
c48e82b5 | 6 | size: number |
e5565833 | 7 | minLifetime: number |
c48e82b5 | 8 | } |
3f6b6a56 C |
9 | |
10 | export type TrendingRedundancyStrategy = { | |
11 | strategy: 'trending' | |
12 | size: number | |
e5565833 | 13 | minLifetime: number |
3f6b6a56 C |
14 | } |
15 | ||
16 | export type RecentlyAddedStrategy = { | |
17 | strategy: 'recently-added' | |
18 | size: number | |
19 | minViews: number | |
e5565833 | 20 | minLifetime: number |
3f6b6a56 C |
21 | } |
22 | ||
b764380a | 23 | export type VideosRedundancyStrategy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy |