moduel setgins fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user