Split types and typings
[oweals/peertube.git] / server / typings / models / server / server.ts
diff --git a/server/typings/models/server/server.ts b/server/typings/models/server/server.ts
deleted file mode 100644 (file)
index b35e55a..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-import { ServerModel } from '../../../models/server/server'
-import { FunctionProperties, PickWith } from '../../utils'
-import { MAccountBlocklistId } from '../account'
-
-type Use<K extends keyof ServerModel, M> = PickWith<ServerModel, K, M>
-
-// ############################################################################
-
-export type MServer = Omit<ServerModel, 'Actors' | 'BlockedByAccounts'>
-
-// ############################################################################
-
-export type MServerHost = Pick<MServer, 'host'>
-export type MServerRedundancyAllowed = Pick<MServer, 'redundancyAllowed'>
-
-export type MServerHostBlocks =
-  MServerHost &
-  Use<'BlockedByAccounts', MAccountBlocklistId[]>
-
-// ############################################################################
-
-// Format for API or AP object
-
-export type MServerFormattable =
-  FunctionProperties<MServer> &
-  Pick<MServer, 'host'>