]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/redundancy/videos-redundancy-strategy.model.ts
Breaking API: Consistency with role id/label
[github/Chocobozzz/PeerTube.git] / shared / models / redundancy / videos-redundancy-strategy.model.ts
CommitLineData
3f6b6a56 1export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
b764380a 2export type VideoRedundancyStrategyWithManual = VideoRedundancyStrategy | 'manual'
c48e82b5 3
3f6b6a56
C
4export type MostViewsRedundancyStrategy = {
5 strategy: 'most-views'
c48e82b5 6 size: number
e5565833 7 minLifetime: number
c48e82b5 8}
3f6b6a56
C
9
10export type TrendingRedundancyStrategy = {
11 strategy: 'trending'
12 size: number
e5565833 13 minLifetime: number
3f6b6a56
C
14}
15
16export type RecentlyAddedStrategy = {
17 strategy: 'recently-added'
18 size: number
19 minViews: number
e5565833 20 minLifetime: number
3f6b6a56
C
21}
22
b764380a 23export type VideosRedundancyStrategy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy