aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/models/video/video-rate.ts
blob: 6eefe636212dfd3ba26e5a5a8fb25c23ceeefc0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { AccountVideoRateModel } from '@server/models/account/account-video-rate'
import { PickWith } from '@server/typings/utils'
import { MAccountAudience, MAccountUrl, MVideo } from '..'

export type MAccountVideoRate = Omit<AccountVideoRateModel, 'Video' | 'Account'>

export type MAccountVideoRateAccountUrl = MAccountVideoRate &
  PickWith<AccountVideoRateModel, 'Account', MAccountUrl>

export type MAccountVideoRateAccountVideo = MAccountVideoRate &
  PickWith<AccountVideoRateModel, 'Account', MAccountAudience> &
  PickWith<AccountVideoRateModel, 'Video', MVideo>