]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user-notification.model.ts
Add import finished and video published notifs
[github/Chocobozzz/PeerTube.git] / shared / models / users / user-notification.model.ts
CommitLineData
cef534ed
C
1export enum UserNotificationType {
2 NEW_VIDEO_FROM_SUBSCRIPTION = 1,
3 NEW_COMMENT_ON_MY_VIDEO = 2,
4 NEW_VIDEO_ABUSE_FOR_MODERATORS = 3,
5 BLACKLIST_ON_MY_VIDEO = 4,
dc133480
C
6 UNBLACKLIST_ON_MY_VIDEO = 5,
7 MY_VIDEO_PUBLISHED = 6,
8 MY_VIDEO_IMPORT_SUCCESS = 7,
9 MY_VIDEO_IMPORT_ERROR = 8
cef534ed
C
10}
11
dc133480 12export interface VideoInfo {
cef534ed
C
13 id: number
14 uuid: string
15 name: string
16}
17
18export interface UserNotification {
19 id: number
20 type: UserNotificationType
21 read: boolean
22
23 video?: VideoInfo & {
24 channel: {
25 id: number
26 displayName: string
27 }
28 }
29
dc133480
C
30 videoImport?: {
31 id: number
32 video?: VideoInfo
33 torrentName?: string
34 magnetUri?: string
35 targetUrl?: string
36 }
37
cef534ed
C
38 comment?: {
39 id: number
dc133480 40 threadId: number
cef534ed
C
41 account: {
42 id: number
43 displayName: string
44 }
dc133480 45 video: VideoInfo
cef534ed
C
46 }
47
48 videoAbuse?: {
49 id: number
50 video: VideoInfo
51 }
52
53 videoBlacklist?: {
54 id: number
55 video: VideoInfo
56 }
57
58 createdAt: string
59 updatedAt: string
60}