moduel setgins fixed

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-20 22:49:31 +00:00
parent 5c9ef81aba
commit 646095da65
7 changed files with 220 additions and 54 deletions

View File

@@ -1841,6 +1841,25 @@ export async function updateModuleSetting(moduleName: string, key: string, data:
});
}
// Global Module Enable Settings (Platform-wide)
export interface GlobalModuleSettings {
id: number;
planner_enabled: boolean;
writer_enabled: boolean;
thinker_enabled: boolean;
automation_enabled: boolean;
site_builder_enabled: boolean;
linker_enabled: boolean;
optimizer_enabled: boolean;
publisher_enabled: boolean;
created_at: string | null;
updated_at: string | null;
}
export async function fetchGlobalModuleSettings(): Promise<GlobalModuleSettings> {
return fetchAPI('/v1/system/settings/modules/enable/');
}
// Billing API functions
export interface CreditBalance {
credits: number;