From 503c6f440abc8f5924c38c4bd63591cb6cefacec Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 Jul 2019 15:41:56 +0200 Subject: Add peertube plugin index website models --- shared/models/plugins/peertube-plugin-index.model.ts | 11 +++++++++++ shared/models/plugins/peertube-plugin-latest-version.model.ts | 5 +++++ shared/models/plugins/peertube-plugin-list.model.ts | 10 ++++++++++ 3 files changed, 26 insertions(+) create mode 100644 shared/models/plugins/peertube-plugin-index.model.ts create mode 100644 shared/models/plugins/peertube-plugin-latest-version.model.ts create mode 100644 shared/models/plugins/peertube-plugin-list.model.ts (limited to 'shared/models') 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 @@ +export interface PeerTubePluginIndex { + npmName: string + description: string + homepage: string + createdAt: Date + updatedAt: Date + + popularity: number + + latestVersion: string +} 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 @@ +export interface PeertubePluginLatestVersion { + currentPeerTubeEngine?: string, + + npmNames: string[] +} 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 @@ +import { PluginType } from './plugin.type' + +export interface PeertubePluginList { + start: number + count: number + sort: string + pluginType?: PluginType + currentPeerTubeEngine?: string + search?: string +} -- cgit v1.2.3