mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add new plugin/peertube version notifs
This commit is contained in:
parent
3fbc697433
commit
32a18cbf33
44 changed files with 808 additions and 37 deletions
|
@ -1,5 +1,6 @@
|
|||
import { FollowState } from '../actors'
|
||||
import { AbuseState } from '../moderation'
|
||||
import { PluginType } from '../plugins'
|
||||
|
||||
export const enum UserNotificationType {
|
||||
NEW_VIDEO_FROM_SUBSCRIPTION = 1,
|
||||
|
@ -26,7 +27,10 @@ export const enum UserNotificationType {
|
|||
|
||||
ABUSE_STATE_CHANGE = 15,
|
||||
|
||||
ABUSE_NEW_MESSAGE = 16
|
||||
ABUSE_NEW_MESSAGE = 16,
|
||||
|
||||
NEW_PLUGIN_VERSION = 17,
|
||||
NEW_PEERTUBE_VERSION = 18
|
||||
}
|
||||
|
||||
export interface VideoInfo {
|
||||
|
@ -108,6 +112,16 @@ export interface UserNotification {
|
|||
}
|
||||
}
|
||||
|
||||
plugin?: {
|
||||
name: string
|
||||
type: PluginType
|
||||
latestVersion: string
|
||||
}
|
||||
|
||||
peertube?: {
|
||||
latestVersion: string
|
||||
}
|
||||
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue