1 import * as Bluebird from 'bluebird'
2 import * as Sequelize from 'sequelize'
3 import { Transaction } from 'sequelize'
4 import { AccountInstance } from '../account/account-interface'
5 import { VideoChannelInstance } from './video-channel-interface'
7 export namespace VideoChannelShareMethods {
8 export type LoadAccountsByShare = (videoChannelId: number, t: Transaction) => Bluebird<AccountInstance[]>
9 export type Load = (accountId: number, videoId: number, t: Transaction) => Bluebird<VideoChannelShareInstance>
12 export interface VideoChannelShareClass {
13 loadAccountsByShare: VideoChannelShareMethods.LoadAccountsByShare
14 load: VideoChannelShareMethods.Load
17 export interface VideoChannelShareAttributes {
19 videoChannelId: number
22 export interface VideoChannelShareInstance
23 extends VideoChannelShareClass, VideoChannelShareAttributes, Sequelize.Instance<VideoChannelShareAttributes> {
28 Account?: AccountInstance
29 VideoChannel?: VideoChannelInstance
32 export interface VideoChannelShareModel
33 extends VideoChannelShareClass, Sequelize.Model<VideoChannelShareInstance, VideoChannelShareAttributes> {}