aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/plugins')
-rw-r--r--shared/models/plugins/peertube-plugin-index-list.model.ts (renamed from shared/models/plugins/peertube-plugin-list.model.ts)2
-rw-r--r--shared/models/plugins/peertube-plugin-index.model.ts3
-rw-r--r--shared/models/plugins/peertube-plugin-latest-version.model.ts7
3 files changed, 10 insertions, 2 deletions
diff --git a/shared/models/plugins/peertube-plugin-list.model.ts b/shared/models/plugins/peertube-plugin-index-list.model.ts
index 5f0ecce68..817bac31e 100644
--- a/shared/models/plugins/peertube-plugin-list.model.ts
+++ b/shared/models/plugins/peertube-plugin-index-list.model.ts
@@ -1,6 +1,6 @@
1import { PluginType } from './plugin.type' 1import { PluginType } from './plugin.type'
2 2
3export interface PeertubePluginList { 3export interface PeertubePluginIndexList {
4 start: number 4 start: number
5 count: number 5 count: number
6 sort: string 6 sort: string
diff --git a/shared/models/plugins/peertube-plugin-index.model.ts b/shared/models/plugins/peertube-plugin-index.model.ts
index 2957a338d..e91c8b4dc 100644
--- a/shared/models/plugins/peertube-plugin-index.model.ts
+++ b/shared/models/plugins/peertube-plugin-index.model.ts
@@ -8,4 +8,7 @@ export interface PeerTubePluginIndex {
8 popularity: number 8 popularity: number
9 9
10 latestVersion: string 10 latestVersion: string
11
12 name?: string
13 installed?: boolean
11} 14}
diff --git a/shared/models/plugins/peertube-plugin-latest-version.model.ts b/shared/models/plugins/peertube-plugin-latest-version.model.ts
index 36dd3af54..dec4618fa 100644
--- a/shared/models/plugins/peertube-plugin-latest-version.model.ts
+++ b/shared/models/plugins/peertube-plugin-latest-version.model.ts
@@ -1,5 +1,10 @@
1export interface PeertubePluginLatestVersion { 1export interface PeertubePluginLatestVersionRequest {
2 currentPeerTubeEngine?: string, 2 currentPeerTubeEngine?: string,
3 3
4 npmNames: string[] 4 npmNames: string[]
5} 5}
6
7export type PeertubePluginLatestVersionResponse = {
8 npmName: string
9 latestVersion: string | null
10}[]