import { AccountVideoRateModel } from '@server/models/account/account-video-rate' import { PickWith } from '@server/typings/utils' import { MAccountAudience, MAccountUrl } from '../account/account' import { MVideo, MVideoFormattable } from './video' type Use = PickWith // ############################################################################ export type MAccountVideoRate = Omit export type MAccountVideoRateAccountUrl = MAccountVideoRate & Use<'Account', MAccountUrl> export type MAccountVideoRateAccountVideo = MAccountVideoRate & Use<'Account', MAccountAudience> & Use<'Video', MVideo> // ############################################################################ // Format for API or AP object export type MAccountVideoRateFormattable = Pick & Use<'Video', MVideoFormattable>