1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00
Peertube/shared/models/plugins/server/managers/plugin-playlist-privacy-manager.model.ts
lutangar dc3d902234 Introduce generic video constant manager for plugins
Allow a plugin developer to get back constants values,
and reset constants deletions or additions.
2021-07-16 17:49:40 +02:00

12 lines
466 B
TypeScript

import { VideoPlaylistPrivacy } from '../../../videos/playlist/video-playlist-privacy.model'
import { ConstantManager } from '@shared/models/plugins/server/plugin-constant-manager.model'
export interface PluginPlaylistPrivacyManager extends ConstantManager<VideoPlaylistPrivacy> {
/**
* PUBLIC = 1,
* UNLISTED = 2,
* PRIVATE = 3
* @deprecated use `deleteConstant` instead
*/
deletePlaylistPrivacy: (privacyKey: VideoPlaylistPrivacy) => boolean
}