1
0
Fork 0
peertube/shared/models/plugins/server/managers/plugin-video-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

13 lines
430 B
TypeScript

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