diff options
Diffstat (limited to 'server/models/request')
-rw-r--r-- | server/models/request/request-interface.ts | 3 | ||||
-rw-r--r-- | server/models/request/request-video-event-interface.ts | 6 | ||||
-rw-r--r-- | server/models/request/request-video-qadu-interface.ts | 4 |
3 files changed, 9 insertions, 4 deletions
diff --git a/server/models/request/request-interface.ts b/server/models/request/request-interface.ts index 70fd734e1..483850633 100644 --- a/server/models/request/request-interface.ts +++ b/server/models/request/request-interface.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | 2 | ||
3 | import { PodInstance, PodAttributes } from '../pod' | 3 | import { PodInstance, PodAttributes } from '../pod' |
4 | import { RequestEndpoint } from '../../../shared/models/request-scheduler.model' | ||
4 | 5 | ||
5 | export type RequestsGrouped = { | 6 | export type RequestsGrouped = { |
6 | [ podId: number ]: { | 7 | [ podId: number ]: { |
@@ -32,7 +33,7 @@ export interface RequestClass { | |||
32 | 33 | ||
33 | export interface RequestAttributes { | 34 | export interface RequestAttributes { |
34 | request: object | 35 | request: object |
35 | endpoint: string | 36 | endpoint: RequestEndpoint |
36 | } | 37 | } |
37 | 38 | ||
38 | export interface RequestInstance extends RequestClass, RequestAttributes, Sequelize.Instance<RequestAttributes> { | 39 | export interface RequestInstance extends RequestClass, RequestAttributes, Sequelize.Instance<RequestAttributes> { |
diff --git a/server/models/request/request-video-event-interface.ts b/server/models/request/request-video-event-interface.ts index 219d8edc0..3ed03339a 100644 --- a/server/models/request/request-video-event-interface.ts +++ b/server/models/request/request-video-event-interface.ts | |||
@@ -3,10 +3,12 @@ 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 { RequestVideoEventType } from '../../../shared/models/request-scheduler.model' | ||
7 | |||
6 | export type RequestsVideoEventGrouped = { | 8 | export type RequestsVideoEventGrouped = { |
7 | [ podId: number ]: { | 9 | [ podId: number ]: { |
8 | id: number | 10 | id: number |
9 | type: string | 11 | type: RequestVideoEventType |
10 | count: number | 12 | count: number |
11 | video: VideoInstance | 13 | video: VideoInstance |
12 | pod: PodInstance | 14 | pod: PodInstance |
@@ -35,7 +37,7 @@ export interface RequestVideoEventClass { | |||
35 | } | 37 | } |
36 | 38 | ||
37 | export interface RequestVideoEventAttributes { | 39 | export interface RequestVideoEventAttributes { |
38 | type: string | 40 | type: RequestVideoEventType |
39 | count: number | 41 | count: number |
40 | } | 42 | } |
41 | 43 | ||
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> { |