import { ServerBlocklistModel } from '@server/models/server/server-blocklist' import { PickWith } from '@server/typings/utils' import { MAccountDefault, MAccountFormattable, MServer, MServerFormattable } from '@server/typings/models' 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>