PeerTube/shared/models/redundancy/video-redundancy.model.ts

34 lines
579 B
TypeScript
Raw Normal View History

2020-01-10 03:11:28 -06:00
export interface VideoRedundancy {
id: number
name: string
url: string
uuid: string
redundancies: {
files: FileRedundancyInformation[]
streamingPlaylists: StreamingPlaylistRedundancyInformation[]
}
}
interface RedundancyInformation {
id: number
fileUrl: string
strategy: string
createdAt: Date | string
updatedAt: Date | string
expiresOn: Date | string
size: number
}
export interface FileRedundancyInformation extends RedundancyInformation {
}
export interface StreamingPlaylistRedundancyInformation extends RedundancyInformation {
}