2
1

register-server-option.model.ts 1.2 KB

1234567891011121314151617181920212223242526
  1. import { logger } from '../../helpers/logger'
  2. import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model'
  3. import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model'
  4. import { RegisterServerHookOptions } from '../../../shared/models/plugins/register-server-hook.model'
  5. import { RegisterServerSettingOptions } from '../../../shared/models/plugins/register-server-setting.model'
  6. import { PluginVideoCategoryManager } from '../../../shared/models/plugins/plugin-video-category-manager.model'
  7. import { PluginVideoLanguageManager } from '../../../shared/models/plugins/plugin-video-language-manager.model'
  8. import { PluginVideoLicenceManager } from '../../../shared/models/plugins/plugin-video-licence-manager.model'
  9. export type RegisterServerOptions = {
  10. registerHook: (options: RegisterServerHookOptions) => void
  11. registerSetting: (options: RegisterServerSettingOptions) => void
  12. settingsManager: PluginSettingsManager
  13. storageManager: PluginStorageManager
  14. videoCategoryManager: PluginVideoCategoryManager
  15. videoLanguageManager: PluginVideoLanguageManager
  16. videoLicenceManager: PluginVideoLicenceManager
  17. peertubeHelpers: {
  18. logger: typeof logger
  19. }
  20. }