1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Introduce generic video constant manager for plugins

Allow a plugin developer to get back constants values,
and reset constants deletions or additions.
This commit is contained in:
lutangar 2021-06-29 16:02:05 +02:00
parent de15b052c5
commit dc3d902234
12 changed files with 470 additions and 232 deletions

View file

@ -1,9 +1,13 @@
import { VideoPrivacy } from '../../../videos/video-privacy.enum'
import { ConstantManager } from '@shared/models/plugins/server/plugin-constant-manager.model'
export interface PluginVideoPrivacyManager {
// PUBLIC = 1
// UNLISTED = 2
// PRIVATE = 3
// INTERNAL = 4
export interface PluginVideoPrivacyManager extends ConstantManager<VideoPrivacy> {
/**
* PUBLIC = 1,
* UNLISTED = 2,
* PRIVATE = 3
* INTERNAL = 4
* @deprecated use `deleteConstant` instead
*/
deletePrivacy: (privacyKey: VideoPrivacy) => boolean
}