diff options
Diffstat (limited to 'shared/models')
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 @@ | |||
1 | export 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 @@ | |||
1 | export 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 @@ | |||
1 | import { PluginType } from './plugin.type' | ||
2 | |||
3 | export interface PeertubePluginList { | ||
4 | start: number | ||
5 | count: number | ||
6 | sort: string | ||
7 | pluginType?: PluginType | ||
8 | currentPeerTubeEngine?: string | ||
9 | search?: string | ||
10 | } | ||