mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Reorganize plugin models
This commit is contained in:
parent
2b02c520e6
commit
428ccb8b7a
48 changed files with 113 additions and 112 deletions
3
shared/models/plugins/plugin-index/index.ts
Normal file
3
shared/models/plugins/plugin-index/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export * from './peertube-plugin-index-list.model'
|
||||
export * from './peertube-plugin-index.model'
|
||||
export * from './peertube-plugin-latest-version.model'
|
|
@ -0,0 +1,10 @@
|
|||
import { PluginType } from '../plugin.type'
|
||||
|
||||
export interface PeertubePluginIndexList {
|
||||
start: number
|
||||
count: number
|
||||
sort: string
|
||||
pluginType?: PluginType
|
||||
currentPeerTubeEngine?: string
|
||||
search?: string
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
export interface PeerTubePluginIndex {
|
||||
npmName: string
|
||||
description: string
|
||||
homepage: string
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
|
||||
popularity: number
|
||||
|
||||
latestVersion: string
|
||||
|
||||
name?: string
|
||||
installed?: boolean
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
export interface PeertubePluginLatestVersionRequest {
|
||||
currentPeerTubeEngine?: string
|
||||
|
||||
npmNames: string[]
|
||||
}
|
||||
|
||||
export type PeertubePluginLatestVersionResponse = {
|
||||
npmName: string
|
||||
latestVersion: string | null
|
||||
}[]
|
Loading…
Add table
Add a link
Reference in a new issue