From e02643f32e4c97ca307f8fc5b69be79c40d70a3b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 May 2017 20:58:25 +0200 Subject: Type models --- server/models/request-video-qadu-interface.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 server/models/request-video-qadu-interface.ts (limited to 'server/models/request-video-qadu-interface.ts') diff --git a/server/models/request-video-qadu-interface.ts b/server/models/request-video-qadu-interface.ts new file mode 100644 index 000000000..6fe34ee91 --- /dev/null +++ b/server/models/request-video-qadu-interface.ts @@ -0,0 +1,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 { + id: number +} + +export interface RequestVideoQaduModel extends RequestVideoQaduClass, Sequelize.Model {} -- cgit v1.2.3