diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-23 17:36:15 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | 39445ead45aaaea801ec09991b8dd2464f722e47 (patch) | |
tree | 9306c6b89115dabdd4a7c31a59784134a0e1c804 /server/models/account/account-interface.ts | |
parent | 16b90975941b78d01d7202d441bf731a10048c16 (diff) | |
download | PeerTube-39445ead45aaaea801ec09991b8dd2464f722e47.tar.gz PeerTube-39445ead45aaaea801ec09991b8dd2464f722e47.tar.zst PeerTube-39445ead45aaaea801ec09991b8dd2464f722e47.zip |
Cleanup models
Diffstat (limited to 'server/models/account/account-interface.ts')
-rw-r--r-- | server/models/account/account-interface.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/server/models/account/account-interface.ts b/server/models/account/account-interface.ts index e30260f76..2e4b0382d 100644 --- a/server/models/account/account-interface.ts +++ b/server/models/account/account-interface.ts | |||
@@ -10,10 +10,8 @@ export namespace AccountMethods { | |||
10 | export type Load = (id: number) => Bluebird<AccountInstance> | 10 | export type Load = (id: number) => Bluebird<AccountInstance> |
11 | export type LoadByUUID = (uuid: string) => Bluebird<AccountInstance> | 11 | export type LoadByUUID = (uuid: string) => Bluebird<AccountInstance> |
12 | export type LoadByUrl = (url: string, transaction?: Sequelize.Transaction) => Bluebird<AccountInstance> | 12 | export type LoadByUrl = (url: string, transaction?: Sequelize.Transaction) => Bluebird<AccountInstance> |
13 | export type LoadAccountByServerAndUUID = (uuid: string, serverId: number, transaction: Sequelize.Transaction) => Bluebird<AccountInstance> | ||
14 | export type LoadLocalByName = (name: string) => Bluebird<AccountInstance> | 13 | export type LoadLocalByName = (name: string) => Bluebird<AccountInstance> |
15 | export type LoadByNameAndHost = (name: string, host: string) => Bluebird<AccountInstance> | 14 | export type LoadByNameAndHost = (name: string, host: string) => Bluebird<AccountInstance> |
16 | export type ListOwned = () => Bluebird<AccountInstance[]> | ||
17 | 15 | ||
18 | export type ToActivityPubObject = (this: AccountInstance) => ActivityPubActor | 16 | export type ToActivityPubObject = (this: AccountInstance) => ActivityPubActor |
19 | export type ToFormattedJSON = (this: AccountInstance) => FormattedAccount | 17 | export type ToFormattedJSON = (this: AccountInstance) => FormattedAccount |
@@ -26,13 +24,11 @@ export namespace AccountMethods { | |||
26 | 24 | ||
27 | export interface AccountClass { | 25 | export interface AccountClass { |
28 | loadApplication: AccountMethods.LoadApplication | 26 | loadApplication: AccountMethods.LoadApplication |
29 | loadAccountByServerAndUUID: AccountMethods.LoadAccountByServerAndUUID | ||
30 | load: AccountMethods.Load | 27 | load: AccountMethods.Load |
31 | loadByUUID: AccountMethods.LoadByUUID | 28 | loadByUUID: AccountMethods.LoadByUUID |
32 | loadByUrl: AccountMethods.LoadByUrl | 29 | loadByUrl: AccountMethods.LoadByUrl |
33 | loadLocalByName: AccountMethods.LoadLocalByName | 30 | loadLocalByName: AccountMethods.LoadLocalByName |
34 | loadByNameAndHost: AccountMethods.LoadByNameAndHost | 31 | loadByNameAndHost: AccountMethods.LoadByNameAndHost |
35 | listOwned: AccountMethods.ListOwned | ||
36 | } | 32 | } |
37 | 33 | ||
38 | export interface AccountAttributes { | 34 | export interface AccountAttributes { |