diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 10:36:18 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 10:36:18 +0200 |
commit | ee9e7b61f59a427208386738057c8eff48fba599 (patch) | |
tree | 9097de886128e15f21f0b5920a2076d16a087467 /server/models/request/request-video-qadu-interface.ts | |
parent | 70c065d64c330196d371941d9294a55da6e3aa37 (diff) | |
download | PeerTube-ee9e7b61f59a427208386738057c8eff48fba599.tar.gz PeerTube-ee9e7b61f59a427208386738057c8eff48fba599.tar.zst PeerTube-ee9e7b61f59a427208386738057c8eff48fba599.zip |
Create types for model enums
Diffstat (limited to 'server/models/request/request-video-qadu-interface.ts')
-rw-r--r-- | server/models/request/request-video-qadu-interface.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/request/request-video-qadu-interface.ts b/server/models/request/request-video-qadu-interface.ts index 625b063dc..805771cda 100644 --- a/server/models/request/request-video-qadu-interface.ts +++ b/server/models/request/request-video-qadu-interface.ts | |||
@@ -3,6 +3,8 @@ import * as Sequelize from 'sequelize' | |||
3 | import { VideoInstance } from '../video' | 3 | import { VideoInstance } from '../video' |
4 | import { PodInstance } from '../pod' | 4 | import { PodInstance } from '../pod' |
5 | 5 | ||
6 | import { RequestVideoQaduType } from '../../../shared/models/request-scheduler.model' | ||
7 | |||
6 | export type RequestsVideoQaduGrouped = { | 8 | export type RequestsVideoQaduGrouped = { |
7 | [ podId: number ]: { | 9 | [ podId: number ]: { |
8 | request: RequestVideoQaduInstance | 10 | request: RequestVideoQaduInstance |
@@ -33,7 +35,7 @@ export interface RequestVideoQaduClass { | |||
33 | } | 35 | } |
34 | 36 | ||
35 | export interface RequestVideoQaduAttributes { | 37 | export interface RequestVideoQaduAttributes { |
36 | type: string | 38 | type: RequestVideoQaduType |
37 | } | 39 | } |
38 | 40 | ||
39 | export interface RequestVideoQaduInstance extends RequestVideoQaduClass, RequestVideoQaduAttributes, Sequelize.Instance<RequestVideoQaduAttributes> { | 41 | export interface RequestVideoQaduInstance extends RequestVideoQaduClass, RequestVideoQaduAttributes, Sequelize.Instance<RequestVideoQaduAttributes> { |