]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/redundancy/videos-redundancy.model.ts
Add redundancy stats
[github/Chocobozzz/PeerTube.git] / shared / models / redundancy / videos-redundancy.model.ts
CommitLineData
3f6b6a56 1export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
c48e82b5 2
3f6b6a56
C
3export type MostViewsRedundancyStrategy = {
4 strategy: 'most-views'
c48e82b5
C
5 size: number
6}
3f6b6a56
C
7
8export type TrendingRedundancyStrategy = {
9 strategy: 'trending'
10 size: number
11}
12
13export type RecentlyAddedStrategy = {
14 strategy: 'recently-added'
15 size: number
16 minViews: number
17}
18
19export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy