wp plugin and app fixes adn automation page update
This commit is contained in:
@@ -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 }));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user