]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/videos/comment/video-comment.model.ts
Add ability to filter out public videos from admin
[github/Chocobozzz/PeerTube.git] / shared / models / videos / comment / video-comment.model.ts
CommitLineData
28be9d1d 1import { ResultList } from '../../common'
2b02c520 2import { Account } from '../../actors'
cf117aaa 3
bf1f6508
C
4export interface VideoComment {
5 id: number
6 url: string
7 text: string
8 threadId: number
9 inReplyToCommentId: number
10 videoId: number
11 createdAt: Date | string
12 updatedAt: Date | string
69222afa
JM
13 deletedAt: Date | string
14 isDeleted: boolean
5b0413dd 15 totalRepliesFromVideoAuthor: number
4635f59d 16 totalReplies: number
cf117aaa 17 account: Account
bf1f6508
C
18}
19
0f8d00e3
C
20export interface VideoCommentAdmin {
21 id: number
22 url: string
23 text: string
24
25 threadId: number
26 inReplyToCommentId: number
27
28 createdAt: Date | string
29 updatedAt: Date | string
30
31 account: Account
32
33 video: {
34 id: number
35 uuid: string
36 name: string
37 }
38}
39
12edc149
C
40export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number }
41
d3ea8975 42export interface VideoCommentThreadTree {
bf1f6508 43 comment: VideoComment
d3ea8975 44 children: VideoCommentThreadTree[]
bf1f6508 45}