Phase 3 - credts, usage, plans app pages #Migrations
This commit is contained in:
@@ -225,6 +225,8 @@ export async function getCreditUsage(params?: {
|
||||
operation_type?: string;
|
||||
start_date?: string;
|
||||
end_date?: string;
|
||||
page?: number;
|
||||
page_size?: number;
|
||||
}): Promise<{
|
||||
results: CreditUsageLog[];
|
||||
count: number;
|
||||
@@ -233,6 +235,8 @@ export async function getCreditUsage(params?: {
|
||||
if (params?.operation_type) queryParams.append('operation_type', params.operation_type);
|
||||
if (params?.start_date) queryParams.append('start_date', params.start_date);
|
||||
if (params?.end_date) queryParams.append('end_date', params.end_date);
|
||||
if (params?.page) queryParams.append('page', params.page.toString());
|
||||
if (params?.page_size) queryParams.append('page_size', params.page_size.toString());
|
||||
|
||||
const url = `/v1/billing/credits/usage/${queryParams.toString() ? '?' + queryParams.toString() : ''}`;
|
||||
return fetchAPI(url);
|
||||
@@ -905,17 +909,13 @@ export interface Plan {
|
||||
features?: string[];
|
||||
limits?: Record<string, any>;
|
||||
display_order?: number;
|
||||
// Hard Limits
|
||||
// Hard Limits (only 3 persistent limits)
|
||||
max_sites?: number;
|
||||
max_users?: number;
|
||||
max_keywords?: number;
|
||||
max_clusters?: number;
|
||||
// Monthly Limits
|
||||
max_content_ideas?: number;
|
||||
max_content_words?: number;
|
||||
max_images_basic?: number;
|
||||
max_images_premium?: number;
|
||||
max_image_prompts?: number;
|
||||
// Monthly Limits (only ahrefs queries)
|
||||
max_ahrefs_queries?: number;
|
||||
// Credits
|
||||
included_credits?: number;
|
||||
}
|
||||
|
||||
@@ -934,18 +934,15 @@ export interface UsageSummary {
|
||||
period_start: string;
|
||||
period_end: string;
|
||||
days_until_reset: number;
|
||||
// Simplified to only 3 hard limits
|
||||
hard_limits: {
|
||||
sites?: LimitUsage;
|
||||
users?: LimitUsage;
|
||||
keywords?: LimitUsage;
|
||||
clusters?: LimitUsage;
|
||||
};
|
||||
// Simplified to only 1 monthly limit (Ahrefs queries)
|
||||
monthly_limits: {
|
||||
content_ideas?: LimitUsage;
|
||||
content_words?: LimitUsage;
|
||||
images_basic?: LimitUsage;
|
||||
images_premium?: LimitUsage;
|
||||
image_prompts?: LimitUsage;
|
||||
ahrefs_queries?: LimitUsage;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user