ai fucntiosn adn otehr atuoamtion fixes
This commit is contained in:
@@ -730,6 +730,34 @@ export async function bulkUpdateKeywordsStatus(ids: number[], status: string): P
|
||||
});
|
||||
}
|
||||
|
||||
// Planner keyword stats interface and function
|
||||
export interface PlannerKeywordStats {
|
||||
total_keywords: number;
|
||||
total_volume: number;
|
||||
}
|
||||
|
||||
export async function fetchPlannerKeywordStats(siteId?: number): Promise<PlannerKeywordStats> {
|
||||
const queryParams = siteId ? `?site_id=${siteId}` : '';
|
||||
return fetchAPI(`/v1/planner/keywords/stats/${queryParams}`);
|
||||
}
|
||||
|
||||
// Planner keyword filter options interface and function
|
||||
export interface FilterOption {
|
||||
value: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
export interface PlannerKeywordFilterOptions {
|
||||
countries: FilterOption[];
|
||||
statuses: FilterOption[];
|
||||
clusters: FilterOption[];
|
||||
}
|
||||
|
||||
export async function fetchPlannerKeywordFilterOptions(siteId?: number): Promise<PlannerKeywordFilterOptions> {
|
||||
const queryParams = siteId ? `?site_id=${siteId}` : '';
|
||||
return fetchAPI(`/v1/planner/keywords/filter_options/${queryParams}`);
|
||||
}
|
||||
|
||||
// Clusters-specific API functions
|
||||
export interface ClusterFilters {
|
||||
search?: string;
|
||||
|
||||
Reference in New Issue
Block a user