aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-24 11:17:42 +0200
committerChocobozzz <me@florianbigard.com>2019-07-24 11:17:42 +0200
commit9ae88819c202a6ce4a36b56506f508a5603e8eab (patch)
tree4936990dff918ceabe835dfa7192e5e4c6211dc6 /shared/models
parent5f189c9c85449951254646ddf6cd6c84bc4c06ff (diff)
downloadPeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.gz
PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.zst
PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.zip
Change plugin models names
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/plugins/register-client-hook.model.ts7
-rw-r--r--shared/models/plugins/register-hook.model.ts5
-rw-r--r--shared/models/plugins/register-server-hook.model.ts7
-rw-r--r--shared/models/plugins/register-server-setting.model.ts10
-rw-r--r--shared/models/plugins/register-setting.model.ts10
5 files changed, 24 insertions, 15 deletions
diff --git a/shared/models/plugins/register-client-hook.model.ts b/shared/models/plugins/register-client-hook.model.ts
new file mode 100644
index 000000000..81047b21d
--- /dev/null
+++ b/shared/models/plugins/register-client-hook.model.ts
@@ -0,0 +1,7 @@
1import { ClientHookName } from './client-hook.model'
2
3export interface RegisterClientHookOptions {
4 target: ClientHookName
5 handler: Function
6 priority?: number
7}
diff --git a/shared/models/plugins/register-hook.model.ts b/shared/models/plugins/register-hook.model.ts
deleted file mode 100644
index 0ed2157bd..000000000
--- a/shared/models/plugins/register-hook.model.ts
+++ /dev/null
@@ -1,5 +0,0 @@
1export interface RegisterHookOptions {
2 target: string
3 handler: Function
4 priority?: number
5}
diff --git a/shared/models/plugins/register-server-hook.model.ts b/shared/models/plugins/register-server-hook.model.ts
new file mode 100644
index 000000000..746fdc329
--- /dev/null
+++ b/shared/models/plugins/register-server-hook.model.ts
@@ -0,0 +1,7 @@
1import { ServerHookName } from './server-hook.model'
2
3export interface RegisterServerHookOptions {
4 target: ServerHookName
5 handler: Function
6 priority?: number
7}
diff --git a/shared/models/plugins/register-server-setting.model.ts b/shared/models/plugins/register-server-setting.model.ts
new file mode 100644
index 000000000..5dea93c39
--- /dev/null
+++ b/shared/models/plugins/register-server-setting.model.ts
@@ -0,0 +1,10 @@
1export interface RegisterServerSettingOptions {
2 name: string
3 label: string
4 type: 'input'
5 default?: string
6}
7
8export interface RegisteredServerSettings {
9 settings: RegisterServerSettingOptions[]
10}
diff --git a/shared/models/plugins/register-setting.model.ts b/shared/models/plugins/register-setting.model.ts
deleted file mode 100644
index 429ac3aad..000000000
--- a/shared/models/plugins/register-setting.model.ts
+++ /dev/null
@@ -1,10 +0,0 @@
1export interface RegisterSettingOptions {
2 name: string
3 label: string
4 type: 'input'
5 default?: string
6}
7
8export interface RegisteredSettings {
9 settings: RegisterSettingOptions[]
10}