]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user-notification.model.ts
Add totalLocalVideoFilesSize in stats
[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,
2f1548fd 5
cef534ed 6 BLACKLIST_ON_MY_VIDEO = 4,
dc133480 7 UNBLACKLIST_ON_MY_VIDEO = 5,
2f1548fd 8
dc133480 9 MY_VIDEO_PUBLISHED = 6,
2f1548fd 10
dc133480 11 MY_VIDEO_IMPORT_SUCCESS = 7,
f7cc67b4 12 MY_VIDEO_IMPORT_ERROR = 8,
2f1548fd 13
f7cc67b4
C
14 NEW_USER_REGISTRATION = 9,
15 NEW_FOLLOW = 10,
16 COMMENT_MENTION = 11
cef534ed
C
17}
18
dc133480 19export interface VideoInfo {
cef534ed
C
20 id: number
21 uuid: string
22 name: string
23}
24
25export interface UserNotification {
26 id: number
27 type: UserNotificationType
28 read: boolean
29
30 video?: VideoInfo & {
31 channel: {
32 id: number
33 displayName: string
34 }
35 }
36
dc133480
C
37 videoImport?: {
38 id: number
39 video?: VideoInfo
40 torrentName?: string
41 magnetUri?: string
42 targetUrl?: string
43 }
44
cef534ed
C
45 comment?: {
46 id: number
dc133480 47 threadId: number
cef534ed
C
48 account: {
49 id: number
50 displayName: string
51 }
dc133480 52 video: VideoInfo
cef534ed
C
53 }
54
55 videoAbuse?: {
56 id: number
57 video: VideoInfo
58 }
59
60 videoBlacklist?: {
61 id: number
62 video: VideoInfo
63 }
64
f7cc67b4
C
65 account?: {
66 id: number
67 displayName: string
68 name: string
69 }
70
71 actorFollow?: {
72 id: number
73 follower: {
74 name: string
75 displayName: string
76 }
77 following: {
78 type: 'account' | 'channel'
79 name: string
80 displayName: string
81 }
82 }
83
cef534ed
C
84 createdAt: string
85 updatedAt: string
86}