aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/server/api
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/plugins/server/api')
-rw-r--r--shared/models/plugins/server/api/index.ts3
-rw-r--r--shared/models/plugins/server/api/install-plugin.model.ts4
-rw-r--r--shared/models/plugins/server/api/manage-plugin.model.ts3
-rw-r--r--shared/models/plugins/server/api/peertube-plugin.model.ts16
4 files changed, 26 insertions, 0 deletions
diff --git a/shared/models/plugins/server/api/index.ts b/shared/models/plugins/server/api/index.ts
new file mode 100644
index 000000000..eb59a03f0
--- /dev/null
+++ b/shared/models/plugins/server/api/index.ts
@@ -0,0 +1,3 @@
1export * from './install-plugin.model'
2export * from './manage-plugin.model'
3export * from './peertube-plugin.model'
diff --git a/shared/models/plugins/server/api/install-plugin.model.ts b/shared/models/plugins/server/api/install-plugin.model.ts
new file mode 100644
index 000000000..5a268ebe1
--- /dev/null
+++ b/shared/models/plugins/server/api/install-plugin.model.ts
@@ -0,0 +1,4 @@
1export interface InstallOrUpdatePlugin {
2 npmName?: string
3 path?: string
4}
diff --git a/shared/models/plugins/server/api/manage-plugin.model.ts b/shared/models/plugins/server/api/manage-plugin.model.ts
new file mode 100644
index 000000000..612b3056c
--- /dev/null
+++ b/shared/models/plugins/server/api/manage-plugin.model.ts
@@ -0,0 +1,3 @@
1export interface ManagePlugin {
2 npmName: string
3}
diff --git a/shared/models/plugins/server/api/peertube-plugin.model.ts b/shared/models/plugins/server/api/peertube-plugin.model.ts
new file mode 100644
index 000000000..54c383f57
--- /dev/null
+++ b/shared/models/plugins/server/api/peertube-plugin.model.ts
@@ -0,0 +1,16 @@
1import { PluginType } from '../../plugin.type'
2
3export interface PeerTubePlugin {
4 name: string
5 type: PluginType
6 latestVersion: string
7 version: string
8 enabled: boolean
9 uninstalled: boolean
10 peertubeEngine: string
11 description: string
12 homepage: string
13 settings: { [ name: string ]: string }
14 createdAt: Date
15 updatedAt: Date
16}