PeerTube/shared/models/moderation/abuse/abuse.model.ts

73 lines
1.3 KiB
TypeScript
Raw Normal View History

2020-07-01 09:05:30 -05:00
import { Account } from '../../actors/account.model'
import { AbuseState } from './abuse-state.model'
import { AbusePredefinedReasonsString } from './abuse-reason.model'
import { VideoConstant } from '../../videos/video-constant.model'
import { VideoChannel } from '../../videos/channel/video-channel.model'
export interface VideoAbuse {
id: number
name: string
uuid: string
nsfw: boolean
2020-07-07 03:57:04 -05:00
2020-07-01 09:05:30 -05:00
deleted: boolean
blacklisted: boolean
startAt: number | null
endAt: number | null
thumbnailPath?: string
channel?: VideoChannel
2020-07-07 07:34:16 -05:00
countReports: number
nthReport: number
2020-07-01 09:05:30 -05:00
}
export interface VideoCommentAbuse {
id: number
2020-07-07 03:57:04 -05:00
video: {
id: number
name: string
uuid: string
}
2020-07-01 09:05:30 -05:00
text: string
2020-07-07 03:57:04 -05:00
2020-07-01 09:05:30 -05:00
deleted: boolean
}
export interface Abuse {
id: number
2020-07-07 07:34:16 -05:00
2020-07-01 09:05:30 -05:00
reason: string
predefinedReasons?: AbusePredefinedReasonsString[]
2020-07-07 07:34:16 -05:00
2020-07-01 09:05:30 -05:00
reporterAccount: Account
2020-07-07 07:34:16 -05:00
flaggedAccount: Account
2020-07-01 09:05:30 -05:00
state: VideoConstant<AbuseState>
moderationComment?: string
video?: VideoAbuse
comment?: VideoCommentAbuse
createdAt: Date
updatedAt: Date
countReportsForReporter?: number
countReportsForReportee?: number
2020-07-07 07:34:16 -05:00
// FIXME: deprecated in 2.3, remove the following properties
// // @deprecated
// startAt: null
// // @deprecated
// endAt: null
// // @deprecated
// count?: number
// // @deprecated
// nth?: number
2020-07-01 09:05:30 -05:00
}