]>
Commit | Line | Data |
---|---|---|
cef534ed C |
1 | export 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 | 19 | export interface VideoInfo { |
cef534ed C |
20 | id: number |
21 | uuid: string | |
22 | name: string | |
23 | } | |
24 | ||
457bb213 C |
25 | export interface ActorInfo { |
26 | id: number | |
27 | displayName: string | |
28 | name: string | |
38967f7b | 29 | host: string |
457bb213 C |
30 | avatar?: { |
31 | path: string | |
32 | } | |
33 | } | |
34 | ||
cef534ed C |
35 | export interface UserNotification { |
36 | id: number | |
37 | type: UserNotificationType | |
38 | read: boolean | |
39 | ||
40 | video?: VideoInfo & { | |
457bb213 | 41 | channel: ActorInfo |
cef534ed C |
42 | } |
43 | ||
dc133480 C |
44 | videoImport?: { |
45 | id: number | |
46 | video?: VideoInfo | |
47 | torrentName?: string | |
48 | magnetUri?: string | |
49 | targetUrl?: string | |
50 | } | |
51 | ||
cef534ed C |
52 | comment?: { |
53 | id: number | |
dc133480 | 54 | threadId: number |
457bb213 | 55 | account: ActorInfo |
dc133480 | 56 | video: VideoInfo |
cef534ed C |
57 | } |
58 | ||
59 | videoAbuse?: { | |
60 | id: number | |
61 | video: VideoInfo | |
62 | } | |
63 | ||
64 | videoBlacklist?: { | |
65 | id: number | |
66 | video: VideoInfo | |
67 | } | |
68 | ||
457bb213 | 69 | account?: ActorInfo |
f7cc67b4 C |
70 | |
71 | actorFollow?: { | |
72 | id: number | |
457bb213 | 73 | follower: ActorInfo |
f7cc67b4 C |
74 | following: { |
75 | type: 'account' | 'channel' | |
76 | name: string | |
77 | displayName: string | |
78 | } | |
79 | } | |
80 | ||
cef534ed C |
81 | createdAt: string |
82 | updatedAt: string | |
83 | } |