mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Create types for model enums
This commit is contained in:
parent
70c065d64c
commit
ee9e7b61f5
21 changed files with 89 additions and 29 deletions
|
@ -3,10 +3,12 @@ import * as Sequelize from 'sequelize'
|
|||
import { VideoInstance } from '../video'
|
||||
import { PodInstance } from '../pod'
|
||||
|
||||
import { RequestVideoEventType } from '../../../shared/models/request-scheduler.model'
|
||||
|
||||
export type RequestsVideoEventGrouped = {
|
||||
[ podId: number ]: {
|
||||
id: number
|
||||
type: string
|
||||
type: RequestVideoEventType
|
||||
count: number
|
||||
video: VideoInstance
|
||||
pod: PodInstance
|
||||
|
@ -35,7 +37,7 @@ export interface RequestVideoEventClass {
|
|||
}
|
||||
|
||||
export interface RequestVideoEventAttributes {
|
||||
type: string
|
||||
type: RequestVideoEventType
|
||||
count: number
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue