Add video-playlist-element.created hook (#4196)

* add playlists.videos.list.params/results hooks

closes #4192

* Revert "add playlists.videos.list.params/results hooks"

This reverts commit ebd822ca0b.

* add video-playlist-element.created hook

closes #4192

* test: add playlist-element.created

* Fix tests

Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
kontrollanten
2021-06-28 09:22:15 +02:00
committed by GitHub
parent 3e84ae3250
commit e2e0b645cd
4 changed files with 49 additions and 3 deletions

View File

@@ -114,7 +114,10 @@ export const serverActionHookObject = {
'action:api.user.updated': true,
// Fired when a user got a new oauth2 token
'action:api.user.oauth2-got-token': true
'action:api.user.oauth2-got-token': true,
// Fired when a video is added to a playlist
'action:api.video-playlist-element.created': true
}
export type ServerActionHookName = keyof typeof serverActionHookObject