DocDoeAI / src /lib /api /physics-video.ts
asnannp's picture
deploy: sync backend to Space root (learn-lesson HF cache fix)
65d68f5
Raw History Blame Contribute Delete
564 Bytes
import { apiGet } from "@/lib/api/client";
export type PhysicsChapterVideoStatus = {
chapterId: string;
title: string | null;
status: string;
ready: boolean;
qaPassed: boolean;
audioPresent: boolean;
resolution: { width?: number; height?: number } | null;
durationSeconds: number | null;
downloadUrl: string | null;
};
export function getPhysicsChapterVideoStatus(chapterId: string) {
return apiGet<PhysicsChapterVideoStatus>(
`/video/physics-curriculum/chapters/${encodeURIComponent(chapterId)}/video`,
{ cache: "no-store" },
);
}