generated from fahricansecer/boilerplate-fe
fix: toast api call syntax
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -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),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user