2020-03-12 00:35:20 +01:00
|
|
|
import SubmissionNotice from "./render/SubmissionNotice";
|
|
|
|
import SkipNoticeComponent from "./components/SkipNoticeComponent";
|
|
|
|
|
|
|
|
interface ContentContainer {
|
|
|
|
(): {
|
2020-05-10 22:44:53 +02:00
|
|
|
vote: (type: any, UUID: any, category?: string, skipNotice?: SkipNoticeComponent) => void,
|
2020-03-12 00:35:20 +01:00
|
|
|
dontShowNoticeAgain: () => void,
|
2020-05-20 05:21:51 +02:00
|
|
|
unskipSponsorTime: (segment: SponsorTime) => void,
|
2020-04-05 03:04:17 +02:00
|
|
|
sponsorTimes: SponsorTime[],
|
|
|
|
sponsorTimesSubmitting: SponsorTime[],
|
2020-03-12 00:35:20 +01:00
|
|
|
v: HTMLVideoElement,
|
|
|
|
sponsorVideoID,
|
2020-05-20 05:21:51 +02:00
|
|
|
reskipSponsorTime: (segment: SponsorTime) => void,
|
2020-03-12 00:35:20 +01:00
|
|
|
updatePreviewBar: () => void,
|
|
|
|
onMobileYouTube: boolean,
|
|
|
|
sponsorSubmissionNotice: SubmissionNotice,
|
|
|
|
resetSponsorSubmissionNotice: () => void,
|
2020-03-12 00:56:16 +01:00
|
|
|
changeStartSponsorButton: (showStartSponsor: any, uploadButtonVisible: any) => Promise<boolean>,
|
2020-05-11 00:48:28 +02:00
|
|
|
previewTime: (time: number) => void,
|
2020-05-11 03:06:15 +02:00
|
|
|
videoInfo: any,
|
2020-05-12 03:04:10 +02:00
|
|
|
getRealCurrentTime: () => number
|
2020-03-12 00:35:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
interface VideoDurationResponse {
|
2020-01-29 05:52:15 +01:00
|
|
|
duration: number;
|
|
|
|
}
|
|
|
|
|
2020-04-04 18:58:02 +02:00
|
|
|
enum CategorySkipOption {
|
|
|
|
ShowOverlay,
|
|
|
|
ManualSkip,
|
|
|
|
AutoSkip
|
|
|
|
}
|
|
|
|
|
2020-04-03 04:13:36 +02:00
|
|
|
interface CategorySelection {
|
|
|
|
name: string;
|
2020-04-04 18:58:02 +02:00
|
|
|
option: CategorySkipOption
|
2020-04-03 04:13:36 +02:00
|
|
|
}
|
2020-03-12 00:35:20 +01:00
|
|
|
|
2020-04-26 05:41:08 +02:00
|
|
|
enum SponsorHideType {
|
|
|
|
Visible = undefined,
|
|
|
|
Downvoted = 1,
|
|
|
|
MinimumDuration
|
|
|
|
}
|
|
|
|
|
2020-04-05 03:04:17 +02:00
|
|
|
interface SponsorTime {
|
|
|
|
segment: number[];
|
|
|
|
UUID: string;
|
|
|
|
|
|
|
|
category: string;
|
2020-04-26 05:41:08 +02:00
|
|
|
|
|
|
|
hidden?: SponsorHideType;
|
2020-04-05 03:04:17 +02:00
|
|
|
}
|
|
|
|
|
2020-04-05 20:28:26 +02:00
|
|
|
type VideoID = string;
|
|
|
|
|
2020-01-29 05:52:15 +01:00
|
|
|
export {
|
2020-03-12 00:35:20 +01:00
|
|
|
VideoDurationResponse,
|
2020-04-03 04:13:36 +02:00
|
|
|
ContentContainer,
|
2020-04-05 03:04:17 +02:00
|
|
|
CategorySelection,
|
2020-04-04 18:58:02 +02:00
|
|
|
CategorySkipOption,
|
2020-04-05 20:28:26 +02:00
|
|
|
SponsorTime,
|
2020-04-26 05:41:08 +02:00
|
|
|
VideoID,
|
|
|
|
SponsorHideType
|
2020-01-29 05:52:15 +01:00
|
|
|
};
|