aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-15 15:41:56 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit503c6f440abc8f5924c38c4bd63591cb6cefacec (patch)
treef369e338d3f6c4c0af574b234b8c53d368350fa5 /shared
parent30ff39e7f07898ebb716c938123825c678b4e5af (diff)
downloadPeerTube-503c6f440abc8f5924c38c4bd63591cb6cefacec.tar.gz
PeerTube-503c6f440abc8f5924c38c4bd63591cb6cefacec.tar.zst
PeerTube-503c6f440abc8f5924c38c4bd63591cb6cefacec.zip
Add peertube plugin index website models
Diffstat (limited to 'shared')
-rw-r--r--shared/models/plugins/peertube-plugin-index.model.ts11
-rw-r--r--shared/models/plugins/peertube-plugin-latest-version.model.ts5
-rw-r--r--shared/models/plugins/peertube-plugin-list.model.ts10
3 files changed, 26 insertions, 0 deletions
diff --git a/shared/models/plugins/peertube-plugin-index.model.ts b/shared/models/plugins/peertube-plugin-index.model.ts
new file mode 100644
index 000000000..2957a338d
--- /dev/null
+++ b/shared/models/plugins/peertube-plugin-index.model.ts
@@ -0,0 +1,11 @@
1export interface PeerTubePluginIndex {
2 npmName: string
3 description: string
4 homepage: string
5 createdAt: Date
6 updatedAt: Date
7
8 popularity: number
9
10 latestVersion: string
11}
diff --git a/shared/models/plugins/peertube-plugin-latest-version.model.ts b/shared/models/plugins/peertube-plugin-latest-version.model.ts
new file mode 100644
index 000000000..36dd3af54
--- /dev/null
+++ b/shared/models/plugins/peertube-plugin-latest-version.model.ts
@@ -0,0 +1,5 @@
1export interface PeertubePluginLatestVersion {
2 currentPeerTubeEngine?: string,
3
4 npmNames: string[]
5}
diff --git a/shared/models/plugins/peertube-plugin-list.model.ts b/shared/models/plugins/peertube-plugin-list.model.ts
new file mode 100644
index 000000000..5f0ecce68
--- /dev/null
+++ b/shared/models/plugins/peertube-plugin-list.model.ts
@@ -0,0 +1,10 @@
1import { PluginType } from './plugin.type'
2
3export interface PeertubePluginList {
4 start: number
5 count: number
6 sort: string
7 pluginType?: PluginType
8 currentPeerTubeEngine?: string
9 search?: string
10}