|
|
@ -1,4 +1,5 @@
|
|
|
|
import Video from "@interfaces/api/trending";
|
|
|
|
import { Quality } from "@interfaces/api";
|
|
|
|
|
|
|
|
import VideoTrending from "@interfaces/api/trending";
|
|
|
|
|
|
|
|
|
|
|
|
interface Channel {
|
|
|
|
interface Channel {
|
|
|
|
author: string;
|
|
|
|
author: string;
|
|
|
@ -14,7 +15,7 @@ interface Channel {
|
|
|
|
description: string;
|
|
|
|
description: string;
|
|
|
|
descriptionHtml: string;
|
|
|
|
descriptionHtml: string;
|
|
|
|
allowedRegions: string[];
|
|
|
|
allowedRegions: string[];
|
|
|
|
latestVideos: Video[];
|
|
|
|
latestVideos: VideoTrending[];
|
|
|
|
relatedChannels: RelatedChannel[];
|
|
|
|
relatedChannels: RelatedChannel[];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -25,18 +26,6 @@ interface AuthorBanner {
|
|
|
|
quality?: Quality;
|
|
|
|
quality?: Quality;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
enum Quality {
|
|
|
|
|
|
|
|
Default = "default",
|
|
|
|
|
|
|
|
End = "end",
|
|
|
|
|
|
|
|
High = "high",
|
|
|
|
|
|
|
|
Maxres = "maxres",
|
|
|
|
|
|
|
|
Maxresdefault = "maxresdefault",
|
|
|
|
|
|
|
|
Medium = "medium",
|
|
|
|
|
|
|
|
Middle = "middle",
|
|
|
|
|
|
|
|
Sddefault = "sddefault",
|
|
|
|
|
|
|
|
Start = "start"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface RelatedChannel {
|
|
|
|
interface RelatedChannel {
|
|
|
|
author: string;
|
|
|
|
author: string;
|
|
|
|
authorId: string;
|
|
|
|
authorId: string;
|
|
|
|