fix: toast api call syntax
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-04-30 16:48:44 +02:00
parent 7d161fdb3d
commit bc9a1587a8
5 changed files with 394 additions and 5 deletions
+29 -1
View File
@@ -30,6 +30,19 @@ export interface Project {
renderJobs?: RenderJob[];
sourceType?: 'MANUAL' | 'X_TWEET' | 'YOUTUBE';
sourceTweetData?: Record<string, unknown>;
// SEO Power Engine
seoTitle?: string;
seoDescription?: string;
seoKeywords?: string[];
seoTitleAlts?: string[];
seoScore?: number;
socialContent?: {
youtubeTitle?: string;
youtubeDescription?: string;
tiktokCaption?: string;
instagramCaption?: string;
twitterText?: string;
};
createdAt: string;
updatedAt: string;
completedAt?: string;
@@ -99,13 +112,17 @@ export interface ScriptJson {
language: string;
hashtags: string[];
};
seo?: {
seo: {
title: string;
description: string;
keywords: string[];
hashtags: string[];
trendingHashtags?: string[];
estimatedSearchVolume?: string;
schemaMarkup: Record<string, unknown>;
};
seoTitleAlternatives?: string[];
seoScore?: number;
scenes: Array<{
order: number;
title?: string;
@@ -363,6 +380,17 @@ export const projectsApi = {
`/projects/${id}/cancel-render`,
).then((r) => r.data),
generateSeoTitles: (id: string) =>
apiClient.post<{ titles: string[]; seoScore: number; currentTitle: string }>(
`/projects/${id}/generate-seo-titles`,
).then((r) => r.data),
selectSeoTitle: (id: string, title: string) =>
apiClient.patch<Project>(
`/projects/${id}/select-title`,
{ title },
).then((r) => r.data),
getRenderQueue: () =>
apiClient.get<any>('/projects/render-queue').then((r) => r.data),