diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-10 14:34:45 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 0d0e8dd0904b380b70e19ebcb4763d65601c4632 (patch) | |
tree | acb625d7c88fbe863fa14bf6783fafe4a8e35137 /server/models/video/video-channel-interface.ts | |
parent | e4f97babf701481b55cc10fb3448feab5f97c867 (diff) | |
download | PeerTube-0d0e8dd0904b380b70e19ebcb4763d65601c4632.tar.gz PeerTube-0d0e8dd0904b380b70e19ebcb4763d65601c4632.tar.zst PeerTube-0d0e8dd0904b380b70e19ebcb4763d65601c4632.zip |
Continue activitypub
Diffstat (limited to 'server/models/video/video-channel-interface.ts')
-rw-r--r-- | server/models/video/video-channel-interface.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/video/video-channel-interface.ts b/server/models/video/video-channel-interface.ts index 477f97cd4..55e772063 100644 --- a/server/models/video/video-channel-interface.ts +++ b/server/models/video/video-channel-interface.ts | |||
@@ -24,6 +24,8 @@ export namespace VideoChannelMethods { | |||
24 | export type LoadByUUID = (uuid: string, t?: Sequelize.Transaction) => Promise<VideoChannelInstance> | 24 | export type LoadByUUID = (uuid: string, t?: Sequelize.Transaction) => Promise<VideoChannelInstance> |
25 | export type LoadByHostAndUUID = (uuid: string, podHost: string, t?: Sequelize.Transaction) => Promise<VideoChannelInstance> | 25 | export type LoadByHostAndUUID = (uuid: string, podHost: string, t?: Sequelize.Transaction) => Promise<VideoChannelInstance> |
26 | export type LoadAndPopulateAccountAndVideos = (id: number) => Promise<VideoChannelInstance> | 26 | export type LoadAndPopulateAccountAndVideos = (id: number) => Promise<VideoChannelInstance> |
27 | export type LoadByUrl = (uuid: string, t?: Sequelize.Transaction) => Promise<VideoChannelInstance> | ||
28 | export type LoadByUUIDOrUrl = (uuid: string, url: string, t?: Sequelize.Transaction) => Promise<VideoChannelInstance> | ||
27 | } | 29 | } |
28 | 30 | ||
29 | export interface VideoChannelClass { | 31 | export interface VideoChannelClass { |
@@ -37,6 +39,8 @@ export interface VideoChannelClass { | |||
37 | loadAndPopulateAccount: VideoChannelMethods.LoadAndPopulateAccount | 39 | loadAndPopulateAccount: VideoChannelMethods.LoadAndPopulateAccount |
38 | loadByUUIDAndPopulateAccount: VideoChannelMethods.LoadByUUIDAndPopulateAccount | 40 | loadByUUIDAndPopulateAccount: VideoChannelMethods.LoadByUUIDAndPopulateAccount |
39 | loadAndPopulateAccountAndVideos: VideoChannelMethods.LoadAndPopulateAccountAndVideos | 41 | loadAndPopulateAccountAndVideos: VideoChannelMethods.LoadAndPopulateAccountAndVideos |
42 | loadByUrl: VideoChannelMethods.LoadByUrl | ||
43 | loadByUUIDOrUrl: VideoChannelMethods.LoadByUUIDOrUrl | ||
40 | } | 44 | } |
41 | 45 | ||
42 | export interface VideoChannelAttributes { | 46 | export interface VideoChannelAttributes { |
@@ -45,7 +49,7 @@ export interface VideoChannelAttributes { | |||
45 | name: string | 49 | name: string |
46 | description: string | 50 | description: string |
47 | remote: boolean | 51 | remote: boolean |
48 | url: string | 52 | url?: string |
49 | 53 | ||
50 | Account?: AccountInstance | 54 | Account?: AccountInstance |
51 | Videos?: VideoInstance[] | 55 | Videos?: VideoInstance[] |