mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +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:
parent
de15b052c5
commit
dc3d902234
12 changed files with 470 additions and 232 deletions
|
@ -1,8 +1,12 @@
|
|||
import { VideoPlaylistPrivacy } from '../../../videos/playlist/video-playlist-privacy.model'
|
||||
import { ConstantManager } from '@shared/models/plugins/server/plugin-constant-manager.model'
|
||||
|
||||
export interface PluginPlaylistPrivacyManager {
|
||||
// PUBLIC = 1,
|
||||
// UNLISTED = 2,
|
||||
// PRIVATE = 3
|
||||
export interface PluginPlaylistPrivacyManager extends ConstantManager<VideoPlaylistPrivacy> {
|
||||
/**
|
||||
* PUBLIC = 1,
|
||||
* UNLISTED = 2,
|
||||
* PRIVATE = 3
|
||||
* @deprecated use `deleteConstant` instead
|
||||
*/
|
||||
deletePlaylistPrivacy: (privacyKey: VideoPlaylistPrivacy) => boolean
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue