import { ServerBlocklistModel } from '@server/models/server/server-blocklist' import { PickWith } from '@server/typings/utils' import { MAccountDefault, MAccountFormattable } from '../account/account' import { MServer, MServerFormattable } from './server' type Use = PickWith // ############################################################################ export type MServerBlocklist = Omit // ############################################################################ export type MServerBlocklistAccountServer = MServerBlocklist & Use<'ByAccount', MAccountDefault> & Use<'BlockedServer', MServer> // ############################################################################ // Format for API or AP object export type MServerBlocklistFormattable = Pick & Use<'ByAccount', MAccountFormattable> & Use<'BlockedServer', MServerFormattable>