1 import * as Sequelize from 'sequelize'
2 import * as Promise from 'bluebird'
4 import { PodInstance } from '../pod'
5 import { ResultList } from '../../../shared'
7 // Don't use barrel, import just what we need
8 import { VideoAbuse as FormatedVideoAbuse } from '../../../shared/models/video-abuse.model'
10 export namespace VideoAbuseMethods {
11 export type ToFormatedJSON = (this: VideoAbuseInstance) => FormatedVideoAbuse
13 export type ListForApi = (start: number, count: number, sort: string) => Promise< ResultList<VideoAbuseInstance> >
16 export interface VideoAbuseClass {
17 listForApi: VideoAbuseMethods.ListForApi
20 export interface VideoAbuseAttributes {
21 reporterUsername: string
26 export interface VideoAbuseInstance extends VideoAbuseClass, VideoAbuseAttributes, Sequelize.Instance<VideoAbuseAttributes> {
33 toFormatedJSON: VideoAbuseMethods.ToFormatedJSON
36 export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model<VideoAbuseInstance, VideoAbuseAttributes> {}