feat(results): add generated video management
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Production Browser E2E (push) Failing after 2024h53m37s
Deploy / Deploy Production (push) Failing after 2024h53m39s
Deploy / Build Production Runtime Images (push) Failing after 2025h2m41s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Production Browser E2E (push) Failing after 2024h53m37s
Deploy / Deploy Production (push) Failing after 2024h53m39s
Deploy / Build Production Runtime Images (push) Failing after 2025h2m41s
This commit is contained in:
@@ -26,6 +26,9 @@ export interface GeneratedVideoItem {
|
||||
width: number;
|
||||
height: number;
|
||||
fps: number;
|
||||
status?: string;
|
||||
review_status?: 'pending_review' | 'approved' | 'rejected';
|
||||
generation_params?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export const createGenerationTask = async (data: {
|
||||
@@ -55,6 +58,11 @@ export const getGeneratedVideos = async (projectId: string): Promise<GeneratedVi
|
||||
return response.data.items;
|
||||
};
|
||||
|
||||
export const updateGeneratedVideoReviewStatus = async (videoId: string, reviewStatus: 'pending_review' | 'approved' | 'rejected'): Promise<GeneratedVideoItem> => {
|
||||
const response = await apiClient.patch(`/generated-videos/${videoId}/review`, { review_status: reviewStatus });
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const getGeneratedVideoDownloadUrl = async (videoId: string): Promise<string> => {
|
||||
const response = await apiClient.get(`/generated-videos/${videoId}/download-url`);
|
||||
return response.data.download_url;
|
||||
|
||||
Reference in New Issue
Block a user