aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/redundancy/videos-redundancy-strategy.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/redundancy/videos-redundancy-strategy.model.ts')
-rw-r--r--shared/models/redundancy/videos-redundancy-strategy.model.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/shared/models/redundancy/videos-redundancy-strategy.model.ts b/shared/models/redundancy/videos-redundancy-strategy.model.ts
new file mode 100644
index 000000000..15409abf0
--- /dev/null
+++ b/shared/models/redundancy/videos-redundancy-strategy.model.ts
@@ -0,0 +1,23 @@
1export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
2export type VideoRedundancyStrategyWithManual = VideoRedundancyStrategy | 'manual'
3
4export type MostViewsRedundancyStrategy = {
5 strategy: 'most-views'
6 size: number
7 minLifetime: number
8}
9
10export type TrendingRedundancyStrategy = {
11 strategy: 'trending'
12 size: number
13 minLifetime: number
14}
15
16export type RecentlyAddedStrategy = {
17 strategy: 'recently-added'
18 size: number
19 minViews: number
20 minLifetime: number
21}
22
23export type VideosRedundancyStrategy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy