aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/request-video-qadu-interface.ts
blob: 6fe34ee9127ebd149a175f4da77b6ea4b310f6ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import * as Sequelize from 'sequelize'

export namespace RequestVideoQaduMethods {
  export type CountTotalRequests = (callback) => void
  export type ListWithLimitAndRandom = (limitPods, limitRequestsPerPod, callback) => void
  export type RemoveByRequestIdsAndPod = (ids, podId, callback) => void
  export type RemoveAll = (callback) => void
}

export interface RequestVideoQaduClass {
  countTotalRequests: RequestVideoQaduMethods.CountTotalRequests
  listWithLimitAndRandom: RequestVideoQaduMethods.ListWithLimitAndRandom
  removeByRequestIdsAndPod: RequestVideoQaduMethods.RemoveByRequestIdsAndPod
  removeAll: RequestVideoQaduMethods.RemoveAll
}

export interface RequestVideoQaduAttributes {
  type: string
}

export interface RequestVideoQaduInstance extends Sequelize.Instance<RequestVideoQaduAttributes> {
  id: number
}

export interface RequestVideoQaduModel extends RequestVideoQaduClass, Sequelize.Model<RequestVideoQaduInstance, RequestVideoQaduAttributes> {}