decompose application.py into enrichment, scholar processing, run completion
This commit is contained in:
parent
9a7fa5004e
commit
6379c97e90
28 changed files with 2982 additions and 2576 deletions
|
|
@ -34,6 +34,13 @@ export interface UserSettingsUpdate {
|
|||
crossref_api_mailto: string | null;
|
||||
}
|
||||
|
||||
export interface AdminScholarHttpSettings {
|
||||
user_agent: string;
|
||||
rotate_user_agent: boolean;
|
||||
accept_language: string;
|
||||
cookie: string;
|
||||
}
|
||||
|
||||
export interface ChangePasswordPayload {
|
||||
current_password: string;
|
||||
new_password: string;
|
||||
|
|
@ -60,3 +67,20 @@ export async function changePassword(payload: ChangePasswordPayload): Promise<{
|
|||
});
|
||||
return response.data;
|
||||
}
|
||||
|
||||
export async function fetchAdminScholarHttpSettings(): Promise<AdminScholarHttpSettings> {
|
||||
const response = await apiRequest<AdminScholarHttpSettings>("/admin/settings/scholar-http", {
|
||||
method: "GET",
|
||||
});
|
||||
return response.data;
|
||||
}
|
||||
|
||||
export async function updateAdminScholarHttpSettings(
|
||||
payload: AdminScholarHttpSettings,
|
||||
): Promise<AdminScholarHttpSettings> {
|
||||
const response = await apiRequest<AdminScholarHttpSettings>("/admin/settings/scholar-http", {
|
||||
method: "PUT",
|
||||
body: payload,
|
||||
});
|
||||
return response.data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue