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 { VideoInstance } from './video-interface'
7 export namespace VideoShareMethods {
8 export type LoadAccountsByShare = (videoId: number, t: Transaction) => Bluebird<AccountInstance[]>
9 export type Load = (accountId: number, videoId: number, t: Transaction) => Bluebird<VideoShareInstance>
12 export interface VideoShareClass {
13 loadAccountsByShare: VideoShareMethods.LoadAccountsByShare
14 load: VideoShareMethods.Load
17 export interface VideoShareAttributes {
22 export interface VideoShareInstance extends VideoShareClass, VideoShareAttributes, Sequelize.Instance<VideoShareAttributes> {
27 Account?: AccountInstance
31 export interface VideoShareModel extends VideoShareClass, Sequelize.Model<VideoShareInstance, VideoShareAttributes> {}