Fix some documentation mistakes

This commit is contained in:
frankstrater 2021-08-31 15:08:24 +02:00 committed by Chocobozzz
parent c21a0aa855
commit fbd2d42358
2 changed files with 6 additions and 6 deletions

View File

@ -13,10 +13,10 @@
* Server helpers
* **Deprecate** `videoLanguageManager.addLanguage` and `videoLanguageManager.deleteLanguage`: use `videoLanguageManager.addConstant` and `videoLanguageManager.deleteConstant` instead
* **Deprecate** `videoCategoryManager.addLanguage` and `videoCategoryManager.deleteLanguage`: use `videoCategoryManager.addConstant` and `videoCategoryManager.deleteConstant` instead
* **Deprecate** `videoLicenceManager.addLanguage` and `videoLicenceManager.deleteLanguage`: use `videoLicenceManager.addConstant` and `videoLicenceManager.deleteConstant` instead
* **Deprecate** `videoPrivacyManager.deleteLanguage`: `videoPrivacyManager.deleteConstant` instead
* **Deprecate** `playlistPrivacyManager.deleteLanguage`: `playlistPrivacyManager.deleteConstant` instead
* **Deprecate** `videoCategoryManager.addCategory` and `videoCategoryManager.deleteCategory`: use `videoCategoryManager.addConstant` and `videoCategoryManager.deleteConstant` instead
* **Deprecate** `videoLicenceManager.addLicence` and `videoLicenceManager.deleteLicence`: use `videoLicenceManager.addConstant` and `videoLicenceManager.deleteConstant` instead
* **Deprecate** `videoPrivacyManager.deletePrivacy`: `videoPrivacyManager.deleteConstant` instead
* **Deprecate** `playlistPrivacyManager.deletePlaylistPrivacy`: `playlistPrivacyManager.deleteConstant` instead
* Introduce `.getConstantValue()`, `.getConstants()` and `.resetConstants()` for `videoLanguageManager`, `videoCategoryManager`, `videoLicenceManager`, `videoPrivacyManager` and `playlistPrivacyManager`
* Add server plugin hooks:
* `filter:api.overviews.videos.list.params` and `filter:api.overviews.videos.list.result`

View File

@ -2,12 +2,12 @@ import { ConstantManager } from '../plugin-constant-manager.model'
export interface PluginVideoLicenceManager extends ConstantManager<number> {
/**
* @deprecated use `addLicence` instead
* @deprecated use `addConstant` instead
*/
addLicence: (licenceKey: number, licenceLabel: string) => boolean
/**
* @deprecated use `deleteLicence` instead
* @deprecated use `deleteConstant` instead
*/
deleteLicence: (licenceKey: number) => boolean
}