aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/redundancy/videos-redundancy.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/redundancy/videos-redundancy.model.ts')
-rw-r--r--shared/models/redundancy/videos-redundancy.model.ts19
1 files changed, 16 insertions, 3 deletions
diff --git a/shared/models/redundancy/videos-redundancy.model.ts b/shared/models/redundancy/videos-redundancy.model.ts
index 85982e5b3..436394c1e 100644
--- a/shared/models/redundancy/videos-redundancy.model.ts
+++ b/shared/models/redundancy/videos-redundancy.model.ts
@@ -1,6 +1,19 @@
1export type VideoRedundancyStrategy = 'most-views' | 'trending' 1export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
2 2
3export interface VideosRedundancy { 3export type MostViewsRedundancyStrategy = {
4 strategy: VideoRedundancyStrategy 4 strategy: 'most-views'
5 size: number 5 size: number
6} 6}
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