diff options
Diffstat (limited to 'server/models/video/video-share-interface.ts')
-rw-r--r-- | server/models/video/video-share-interface.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/models/video/video-share-interface.ts b/server/models/video/video-share-interface.ts index 569568842..ad23444b6 100644 --- a/server/models/video/video-share-interface.ts +++ b/server/models/video/video-share-interface.ts | |||
@@ -1,14 +1,16 @@ | |||
1 | import * as Bluebird from 'bluebird' | ||
1 | import * as Sequelize from 'sequelize' | 2 | import * as Sequelize from 'sequelize' |
2 | import { AccountInstance } from '../account/account-interface' | 3 | import { AccountInstance } from '../account/account-interface' |
3 | import { VideoInstance } from './video-interface' | 4 | import { VideoInstance } from './video-interface' |
4 | import * as Bluebird from 'bluebird' | ||
5 | 5 | ||
6 | export namespace VideoShareMethods { | 6 | export namespace VideoShareMethods { |
7 | export type LoadAccountsByShare = (videoChannelId: number) => Bluebird<AccountInstance[]> | 7 | export type LoadAccountsByShare = (videoId: number) => Bluebird<AccountInstance[]> |
8 | export type Load = (accountId: number, videoId: number) => Bluebird<VideoShareInstance> | ||
8 | } | 9 | } |
9 | 10 | ||
10 | export interface VideoShareClass { | 11 | export interface VideoShareClass { |
11 | loadAccountsByShare: VideoShareMethods.LoadAccountsByShare | 12 | loadAccountsByShare: VideoShareMethods.LoadAccountsByShare |
13 | load: VideoShareMethods.Load | ||
12 | } | 14 | } |
13 | 15 | ||
14 | export interface VideoShareAttributes { | 16 | export interface VideoShareAttributes { |