diff options
Diffstat (limited to 'server/typings/models/video/video-abuse.ts')
-rw-r--r-- | server/typings/models/video/video-abuse.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/typings/models/video/video-abuse.ts b/server/typings/models/video/video-abuse.ts new file mode 100644 index 000000000..1667ae55a --- /dev/null +++ b/server/typings/models/video/video-abuse.ts | |||
@@ -0,0 +1,15 @@ | |||
1 | import { VideoAbuseModel } from '../../../models/video/video-abuse' | ||
2 | import { PickWith } from '../../utils' | ||
3 | import { MVideo } from './video' | ||
4 | import { MAccountDefault } from '../account' | ||
5 | |||
6 | export type MVideoAbuse = Omit<VideoAbuseModel, 'Account' | 'Video' | 'toActivityPubObject'> | ||
7 | |||
8 | export type MVideoAbuseId = Pick<VideoAbuseModel, 'id'> | ||
9 | |||
10 | export type MVideoAbuseVideo = MVideoAbuse & | ||
11 | Pick<VideoAbuseModel, 'toActivityPubObject'> & | ||
12 | PickWith<VideoAbuseModel, 'Video', MVideo> | ||
13 | |||
14 | export type MVideoAbuseAccountVideo = MVideoAbuseVideo & | ||
15 | PickWith<VideoAbuseModel, 'Account', MAccountDefault> | ||