PeerTube/shared/models/redundancy/videos-redundancy-strategy....

24 lines
628 B
TypeScript
Raw Normal View History

2018-09-14 11:05:38 +02:00
export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
2020-01-10 10:11:28 +01:00
export type VideoRedundancyStrategyWithManual = VideoRedundancyStrategy | 'manual'
2018-09-11 16:27:07 +02:00
2018-09-14 11:05:38 +02:00
export type MostViewsRedundancyStrategy = {
strategy: 'most-views'
2018-09-11 16:27:07 +02:00
size: number
minLifetime: number
2018-09-11 16:27:07 +02:00
}
2018-09-14 11:05:38 +02:00
export type TrendingRedundancyStrategy = {
strategy: 'trending'
size: number
minLifetime: number
2018-09-14 11:05:38 +02:00
}
export type RecentlyAddedStrategy = {
strategy: 'recently-added'
size: number
minViews: number
minLifetime: number
2018-09-14 11:05:38 +02:00
}
2020-01-10 10:11:28 +01:00
export type VideosRedundancyStrategy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy