aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/plugin-index
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-27 16:12:41 +0200
committerChocobozzz <me@florianbigard.com>2021-05-27 16:12:41 +0200
commit8f608a4cb22ab232cfab20665050764b38bac9c7 (patch)
tree6a6785aae79bf5939ad7b7a50a1bd8031268d2b4 /shared/models/plugins/plugin-index
parent030ccfce59a8cb8f2fee6ea8dd363ba635c5c5c2 (diff)
parentc215e627b575d2c4085ccb222f4ca8d0237b7552 (diff)
downloadPeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.tar.gz
PeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.tar.zst
PeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.zip
Merge branch 'develop' into shorter-URLs-channels-accounts
Diffstat (limited to 'shared/models/plugins/plugin-index')
-rw-r--r--shared/models/plugins/plugin-index/index.ts3
-rw-r--r--shared/models/plugins/plugin-index/peertube-plugin-index-list.model.ts10
-rw-r--r--shared/models/plugins/plugin-index/peertube-plugin-index.model.ts14
-rw-r--r--shared/models/plugins/plugin-index/peertube-plugin-latest-version.model.ts10
4 files changed, 37 insertions, 0 deletions
diff --git a/shared/models/plugins/plugin-index/index.ts b/shared/models/plugins/plugin-index/index.ts
new file mode 100644
index 000000000..913846638
--- /dev/null
+++ b/shared/models/plugins/plugin-index/index.ts
@@ -0,0 +1,3 @@
1export * from './peertube-plugin-index-list.model'
2export * from './peertube-plugin-index.model'
3export * from './peertube-plugin-latest-version.model'
diff --git a/shared/models/plugins/plugin-index/peertube-plugin-index-list.model.ts b/shared/models/plugins/plugin-index/peertube-plugin-index-list.model.ts
new file mode 100644
index 000000000..ecb46482e
--- /dev/null
+++ b/shared/models/plugins/plugin-index/peertube-plugin-index-list.model.ts
@@ -0,0 +1,10 @@
1import { PluginType } from '../plugin.type'
2
3export interface PeertubePluginIndexList {
4 start: number
5 count: number
6 sort: string
7 pluginType?: PluginType
8 currentPeerTubeEngine?: string
9 search?: string
10}
diff --git a/shared/models/plugins/plugin-index/peertube-plugin-index.model.ts b/shared/models/plugins/plugin-index/peertube-plugin-index.model.ts
new file mode 100644
index 000000000..e91c8b4dc
--- /dev/null
+++ b/shared/models/plugins/plugin-index/peertube-plugin-index.model.ts
@@ -0,0 +1,14 @@
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
12 name?: string
13 installed?: boolean
14}
diff --git a/shared/models/plugins/plugin-index/peertube-plugin-latest-version.model.ts b/shared/models/plugins/plugin-index/peertube-plugin-latest-version.model.ts
new file mode 100644
index 000000000..811a64429
--- /dev/null
+++ b/shared/models/plugins/plugin-index/peertube-plugin-latest-version.model.ts
@@ -0,0 +1,10 @@
1export interface PeertubePluginLatestVersionRequest {
2 currentPeerTubeEngine?: string
3
4 npmNames: string[]
5}
6
7export type PeertubePluginLatestVersionResponse = {
8 npmName: string
9 latestVersion: string | null
10}[]