main
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-04-27 12:50:54 +02:00
parent cf12fc3942
commit 89eb9d4dfd
6 changed files with 622 additions and 34 deletions
+9
View File
@@ -71,6 +71,7 @@ export interface RenderJob {
id: string;
status: string;
currentStage?: string;
progress?: number;
attemptNumber: number;
processingTimeMs?: number;
errorMessage?: string;
@@ -347,6 +348,14 @@ export const projectsApi = {
`/projects/${id}/approve`,
).then((r) => r.data),
cancelRender: (id: string) =>
apiClient.post<{ message: string; projectId: string; renderJobId: string; status: string }>(
`/projects/${id}/cancel-render`,
).then((r) => r.data),
getRenderQueue: () =>
apiClient.get<any>('/projects/render-queue').then((r) => r.data),
createFromTweet: (data: CreateFromTweetPayload) =>
apiClient.post<Project>('/projects/from-tweet', data).then((r) => r.data),