1
0
Fork 0
peertube/shared/models/redundancy/videos-redundancy.model.ts

23 lines
537 B
TypeScript
Raw Normal View History

2018-09-14 05:05:38 -04:00
export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
2018-09-11 10:27:07 -04:00
2018-09-14 05:05:38 -04:00
export type MostViewsRedundancyStrategy = {
strategy: 'most-views'
2018-09-11 10:27:07 -04:00
size: number
minLifetime: number
2018-09-11 10:27:07 -04:00
}
2018-09-14 05:05:38 -04:00
export type TrendingRedundancyStrategy = {
strategy: 'trending'
size: number
minLifetime: number
2018-09-14 05:05:38 -04:00
}
export type RecentlyAddedStrategy = {
strategy: 'recently-added'
size: number
minViews: number
minLifetime: number
2018-09-14 05:05:38 -04:00
}
export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy