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

This commit is contained in:
Harun CAN
2026-05-06 10:47:57 +02:00
parent d3a83bf901
commit 1f8f24fcf5
25 changed files with 5077 additions and 1423 deletions
+24 -1
View File
@@ -370,9 +370,10 @@ export const projectsApi = {
generateScript: (id: string) =>
apiClient.post<Project>(`/projects/${id}/generate-script`).then((r) => r.data),
approveAndQueue: (id: string) =>
approveAndQueue: (id: string, data?: { ttsProvider?: string; visualEffect?: string }) =>
apiClient.post<{ projectId: string; renderJobId: string; bullJobId: string }>(
`/projects/${id}/approve`,
data || {}
).then((r) => r.data),
cancelRender: (id: string) =>
@@ -385,6 +386,9 @@ export const projectsApi = {
`/projects/${id}/generate-seo-titles`,
).then((r) => r.data),
generateSocialContent: (id: string) =>
apiClient.post<any>(`/projects/${id}/generate-social-content`).then((r) => r.data),
selectSeoTitle: (id: string, title: string) =>
apiClient.patch<Project>(
`/projects/${id}/select-title`,
@@ -445,6 +449,25 @@ export const projectsApi = {
apiClient.post<Scene>(`/projects/${projectId}/scenes/${sceneId}/upscale-image`).then((r) => r.data),
};
export const toolsApi = {
analyzeYoutubeVideo: (url: string) =>
apiClient.post<any>('/youtube-tools/analyze', { url }).then((r) => r.data),
getYoutubeAnalysisHistory: () =>
apiClient.get<any[]>('/youtube-tools/history').then((r) => r.data),
getYoutubeAnalysisById: (id: string) =>
apiClient.get<any>(`/youtube-tools/analyze/${id}`).then((r) => r.data),
// SEO
analyzeYoutubeSEO: (url: string) =>
apiClient.post<any>('/youtube-tools/seo/analyze', { url }).then((r) => r.data),
getYoutubeSeoHistory: () =>
apiClient.get<any[]>('/youtube-tools/seo/history').then((r) => r.data),
getYoutubeSeoAnalysisById: (id: string) =>
apiClient.get<any>(`/youtube-tools/seo/analyze/${id}`).then((r) => r.data),
generateYoutubeSeoImage: (prompt: string) =>
apiClient.post<{ url: string }>('/youtube-tools/seo/generate-image', { prompt }).then((r) => r.data),
};
// Backend path: /billing/credits/balance (billing controller prefix)
export const creditsApi = {
getBalance: () =>