1
0
Fork 0
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:
Chocobozzz 2021-05-11 12:04:47 +02:00
parent 2b02c520e6
commit 428ccb8b7a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
48 changed files with 113 additions and 112 deletions

View 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'

View file

@ -0,0 +1,10 @@
import { PluginType } from '../plugin.type'
export interface PeertubePluginIndexList {
start: number
count: number
sort: string
pluginType?: PluginType
currentPeerTubeEngine?: string
search?: string
}

View file

@ -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
}

View file

@ -0,0 +1,10 @@
export interface PeertubePluginLatestVersionRequest {
currentPeerTubeEngine?: string
npmNames: string[]
}
export type PeertubePluginLatestVersionResponse = {
npmName: string
latestVersion: string | null
}[]