X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fmodels%2Faccount%2Faccount.ts;h=d10b904abf94e279b10833954ebe29a2af9c0654;hb=cb0eda5602a21d1626a7face32de6153ed07b5f9;hp=9848412919eeb9454ff165f70db6b0716ea3c4aa;hpb=1e4d2cb5aef11898585fae4053da4ebd0a69b480;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/models/account/account.ts b/server/types/models/account/account.ts index 984841291..d10b904ab 100644 --- a/server/types/models/account/account.ts +++ b/server/types/models/account/account.ts @@ -1,4 +1,4 @@ -import { FunctionProperties, PickWith } from '@shared/core-utils' +import { FunctionProperties, PickWith } from '@shared/typescript-utils' import { AccountModel } from '../../../models/account/account' import { MActor, @@ -8,8 +8,8 @@ import { MActorDefault, MActorDefaultLight, MActorFormattable, + MActorHost, MActorId, - MActorServer, MActorSummary, MActorSummaryFormattable, MActorUrl @@ -23,7 +23,7 @@ type Use = PickWith export type MAccount = Omit + 'VideoComments' | 'BlockedBy'> // ############################################################################ @@ -68,10 +68,9 @@ export type MAccountActor = MAccount & Use<'Actor', MActor> -// Full actor with server -export type MAccountServer = +export type MAccountHost = MAccount & - Use<'Actor', MActorServer> + Use<'Actor', MActorHost> // ############################################################################ @@ -84,7 +83,7 @@ export type MAccountSummary = export type MAccountSummaryBlocks = MAccountSummary & - Use<'BlockedAccounts', MAccountBlocklistId[]> + Use<'BlockedBy', MAccountBlocklistId[]> export type MAccountAPI = MAccount &