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

36 lines
711 B
TypeScript
Raw Normal View History

2020-01-10 10:11:28 +01: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
}
2020-01-31 16:56:52 +01:00
// eslint-disable-next-line @typescript-eslint/no-empty-interface
2020-01-10 10:11:28 +01:00
export interface FileRedundancyInformation extends RedundancyInformation {
}
2020-01-31 16:56:52 +01:00
// eslint-disable-next-line @typescript-eslint/no-empty-interface
2020-01-10 10:11:28 +01:00
export interface StreamingPlaylistRedundancyInformation extends RedundancyInformation {
}