diff options
Diffstat (limited to 'server/models/request-video-qadu-interface.ts')
-rw-r--r-- | server/models/request-video-qadu-interface.ts | 25 |
1 files changed, 25 insertions, 0 deletions
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 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | export namespace RequestVideoQaduMethods { | ||
4 | export type CountTotalRequests = (callback) => void | ||
5 | export type ListWithLimitAndRandom = (limitPods, limitRequestsPerPod, callback) => void | ||
6 | export type RemoveByRequestIdsAndPod = (ids, podId, callback) => void | ||
7 | export type RemoveAll = (callback) => void | ||
8 | } | ||
9 | |||
10 | export interface RequestVideoQaduClass { | ||
11 | countTotalRequests: RequestVideoQaduMethods.CountTotalRequests | ||
12 | listWithLimitAndRandom: RequestVideoQaduMethods.ListWithLimitAndRandom | ||
13 | removeByRequestIdsAndPod: RequestVideoQaduMethods.RemoveByRequestIdsAndPod | ||
14 | removeAll: RequestVideoQaduMethods.RemoveAll | ||
15 | } | ||
16 | |||
17 | export interface RequestVideoQaduAttributes { | ||
18 | type: string | ||
19 | } | ||
20 | |||
21 | export interface RequestVideoQaduInstance extends Sequelize.Instance<RequestVideoQaduAttributes> { | ||
22 | id: number | ||
23 | } | ||
24 | |||
25 | export interface RequestVideoQaduModel extends RequestVideoQaduClass, Sequelize.Model<RequestVideoQaduInstance, RequestVideoQaduAttributes> {} | ||