aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-08 10:22:56 +0200
committerChocobozzz <chocobozzz@cpy.re>2022-04-15 09:49:35 +0200
commit3eda9b775ae700ac544e8c5588514627796b83cd (patch)
tree97ec1fdfce274e83d976352f5b4154c315ee33d7 /shared/models
parent901bcf5c188ea79350fecd499ad76460b866617b (diff)
downloadPeerTube-3eda9b775ae700ac544e8c5588514627796b83cd.tar.gz
PeerTube-3eda9b775ae700ac544e8c5588514627796b83cd.tar.zst
PeerTube-3eda9b775ae700ac544e8c5588514627796b83cd.zip
Support interactive video stats graph
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/videos/stats/index.ts1
-rw-r--r--shared/models/videos/stats/video-stats-timeserie-group-interval.type.ts1
-rw-r--r--shared/models/videos/stats/video-stats-timeserie.model.ts4
3 files changed, 1 insertions, 5 deletions
diff --git a/shared/models/videos/stats/index.ts b/shared/models/videos/stats/index.ts
index 5c4c9df2a..4a6fdaa71 100644
--- a/shared/models/videos/stats/index.ts
+++ b/shared/models/videos/stats/index.ts
@@ -1,6 +1,5 @@
1export * from './video-stats-overall.model' 1export * from './video-stats-overall.model'
2export * from './video-stats-retention.model' 2export * from './video-stats-retention.model'
3export * from './video-stats-timeserie-group-interval.type'
4export * from './video-stats-timeserie-query.model' 3export * from './video-stats-timeserie-query.model'
5export * from './video-stats-timeserie-metric.type' 4export * from './video-stats-timeserie-metric.type'
6export * from './video-stats-timeserie.model' 5export * from './video-stats-timeserie.model'
diff --git a/shared/models/videos/stats/video-stats-timeserie-group-interval.type.ts b/shared/models/videos/stats/video-stats-timeserie-group-interval.type.ts
deleted file mode 100644
index 9609ecb72..000000000
--- a/shared/models/videos/stats/video-stats-timeserie-group-interval.type.ts
+++ /dev/null
@@ -1 +0,0 @@
1export type VideoStatsTimeserieGroupInterval = 'one_day' | 'one_hour' | 'ten_minutes' | 'one_minute'
diff --git a/shared/models/videos/stats/video-stats-timeserie.model.ts b/shared/models/videos/stats/video-stats-timeserie.model.ts
index 99bbbe2e3..4a0e208df 100644
--- a/shared/models/videos/stats/video-stats-timeserie.model.ts
+++ b/shared/models/videos/stats/video-stats-timeserie.model.ts
@@ -1,7 +1,5 @@
1import { VideoStatsTimeserieGroupInterval } from './video-stats-timeserie-group-interval.type'
2
3export interface VideoStatsTimeserie { 1export interface VideoStatsTimeserie {
4 groupInterval: VideoStatsTimeserieGroupInterval 2 groupInterval: string
5 3
6 data: { 4 data: {
7 date: string 5 date: string