aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/models/src/plugins/plugin-index
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-08-17 08:59:21 +0200
committerChocobozzz <me@florianbigard.com>2023-08-17 08:59:21 +0200
commitc380e3928517eb5311b38cf257816642617d7a33 (patch)
tree2ea9b70ebca16b5d109bcce98fe7f944dad89319 /packages/models/src/plugins/plugin-index
parenta8ca6190fb462bf6eb5685cfc1d8ae444164a487 (diff)
parent3a4992633ee62d5edfbb484d9c6bcb3cf158489d (diff)
downloadPeerTube-c380e3928517eb5311b38cf257816642617d7a33.tar.gz
PeerTube-c380e3928517eb5311b38cf257816642617d7a33.tar.zst
PeerTube-c380e3928517eb5311b38cf257816642617d7a33.zip
Merge branch 'feature/esm-and-nx' into develop
Diffstat (limited to 'packages/models/src/plugins/plugin-index')
-rw-r--r--packages/models/src/plugins/plugin-index/index.ts3
-rw-r--r--packages/models/src/plugins/plugin-index/peertube-plugin-index-list.model.ts10
-rw-r--r--packages/models/src/plugins/plugin-index/peertube-plugin-index.model.ts16
-rw-r--r--packages/models/src/plugins/plugin-index/peertube-plugin-latest-version.model.ts10
4 files changed, 39 insertions, 0 deletions
diff --git a/packages/models/src/plugins/plugin-index/index.ts b/packages/models/src/plugins/plugin-index/index.ts
new file mode 100644
index 000000000..f53b88084
--- /dev/null
+++ b/packages/models/src/plugins/plugin-index/index.ts
@@ -0,0 +1,3 @@
1export * from './peertube-plugin-index-list.model.js'
2export * from './peertube-plugin-index.model.js'
3export * from './peertube-plugin-latest-version.model.js'
diff --git a/packages/models/src/plugins/plugin-index/peertube-plugin-index-list.model.ts b/packages/models/src/plugins/plugin-index/peertube-plugin-index-list.model.ts
new file mode 100644
index 000000000..98301bbc1
--- /dev/null
+++ b/packages/models/src/plugins/plugin-index/peertube-plugin-index-list.model.ts
@@ -0,0 +1,10 @@
1import { PluginType_Type } from '../plugin.type.js'
2
3export interface PeertubePluginIndexList {
4 start: number
5 count: number
6 sort: string
7 pluginType?: PluginType_Type
8 currentPeerTubeEngine?: string
9 search?: string
10}
diff --git a/packages/models/src/plugins/plugin-index/peertube-plugin-index.model.ts b/packages/models/src/plugins/plugin-index/peertube-plugin-index.model.ts
new file mode 100644
index 000000000..36dfef943
--- /dev/null
+++ b/packages/models/src/plugins/plugin-index/peertube-plugin-index.model.ts
@@ -0,0 +1,16 @@
1export 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
12 official: boolean
13
14 name?: string
15 installed?: boolean
16}
diff --git a/packages/models/src/plugins/plugin-index/peertube-plugin-latest-version.model.ts b/packages/models/src/plugins/plugin-index/peertube-plugin-latest-version.model.ts
new file mode 100644
index 000000000..811a64429
--- /dev/null
+++ b/packages/models/src/plugins/plugin-index/peertube-plugin-latest-version.model.ts
@@ -0,0 +1,10 @@
1export interface PeertubePluginLatestVersionRequest {
2 currentPeerTubeEngine?: string
3
4 npmNames: string[]
5}
6
7export type PeertubePluginLatestVersionResponse = {
8 npmName: string
9 latestVersion: string | null
10}[]