wp plugin and app fixes adn automation page update

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-12 01:12:08 +00:00
parent 3925ddf894
commit 90b9d6aadc
19 changed files with 1918 additions and 336 deletions

View File

@@ -282,4 +282,24 @@ export const automationService = {
}
return fetchAPI(buildUrl('/run_progress/', params));
},
/**
* Check if site is eligible for automation
* A site is eligible if it has any data in the pipeline (keywords, clusters, ideas, etc.)
*/
checkEligibility: async (siteId: number): Promise<{
is_eligible: boolean;
totals: {
keywords: number;
clusters: number;
ideas: number;
tasks: number;
content: number;
images: number;
};
total_items: number;
message: string | null;
}> => {
return fetchAPI(buildUrl('/eligibility/', { site_id: siteId }));
},
};