]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/plugin-package-json.model.ts
Add ability to set a description to dynamic fields
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / plugin-package-json.model.ts
index 4520ee181fe75c83f44555076df1cab7558e9830..c26e9ae5b55dcca60ee67be8c9a385f7146f9372 100644 (file)
@@ -1,15 +1,29 @@
+import { PluginClientScope } from './plugin-client-scope.type'
+
+export type PluginTranslationPaths = {
+  [ locale: string ]: string
+}
+
+export type ClientScript = {
+  script: string
+  scopes: PluginClientScope[]
+}
+
 export type PluginPackageJson = {
   name: string
+  version: string
   description: string
-  engine: { peertube: string },
+  engine: { peertube: string }
 
-  homepage: string,
-  author: string,
-  bugs: string,
-  library: string,
+  homepage: string
+  author: string
+  bugs: string
+  library: string
 
   staticDirs: { [ name: string ]: string }
   css: string[]
 
-  clientScripts: { script: string, scopes: string[] }[]
+  clientScripts: ClientScript[]
+
+  translations: PluginTranslationPaths
 }