diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-05 14:12:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-05 14:13:14 +0200 |
commit | 49f0468d44468528c2fb2c8b0efd19cdaeeec43d (patch) | |
tree | 4fd07d5da74506729a1cbbe67548bfd9c6c76849 /shared/models | |
parent | f18a060a83d7053897173b2a24fb7984893131c7 (diff) | |
download | PeerTube-49f0468d44468528c2fb2c8b0efd19cdaeeec43d.tar.gz PeerTube-49f0468d44468528c2fb2c8b0efd19cdaeeec43d.tar.zst PeerTube-49f0468d44468528c2fb2c8b0efd19cdaeeec43d.zip |
Add filter by start/end date overall stats in api
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/videos/stats/index.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/stats/video-stats-overall-query.model.ts | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/shared/models/videos/stats/index.ts b/shared/models/videos/stats/index.ts index 4a6fdaa71..a9b203f58 100644 --- a/shared/models/videos/stats/index.ts +++ b/shared/models/videos/stats/index.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | export * from './video-stats-overall-query.model' | ||
1 | export * from './video-stats-overall.model' | 2 | export * from './video-stats-overall.model' |
2 | export * from './video-stats-retention.model' | 3 | export * from './video-stats-retention.model' |
3 | export * from './video-stats-timeserie-query.model' | 4 | export * from './video-stats-timeserie-query.model' |
diff --git a/shared/models/videos/stats/video-stats-overall-query.model.ts b/shared/models/videos/stats/video-stats-overall-query.model.ts new file mode 100644 index 000000000..6b4c2164f --- /dev/null +++ b/shared/models/videos/stats/video-stats-overall-query.model.ts | |||
@@ -0,0 +1,4 @@ | |||
1 | export interface VideoStatsOverallQuery { | ||
2 | startDate?: string | ||
3 | endDate?: string | ||
4 | } | ||