fix: resolve all QA/UAT report issues (P0-P3)
Made-with: Cursor
This commit is contained in:
@@ -9,22 +9,22 @@ import type {
|
||||
import type { ApiSuccessResponse } from "@/types";
|
||||
|
||||
export const adaptiveEngineService = {
|
||||
getDashboard: () => api.get<AdaptiveDashboardMetrics>("/adaptive-engine/dashboard"),
|
||||
getDashboard: () => api.get<AdaptiveDashboardMetrics>("/adaptive/dashboard"),
|
||||
|
||||
getStudents: (params?: { page?: number; limit?: number }) =>
|
||||
api.get<{ data: AdaptiveEngineStudentRow[]; pagination?: { total: number; page: number } }>(
|
||||
"/adaptive-engine/students",
|
||||
"/adaptive/students",
|
||||
params as Record<string, string | number | boolean | undefined>,
|
||||
),
|
||||
|
||||
getStudentSignals: (studentId: number) =>
|
||||
api.get<StudentAdaptiveSignal[]>(`/adaptive-engine/students/${studentId}/signals`),
|
||||
api.get<StudentAdaptiveSignal[]>(`/adaptive/student/${studentId}/signals`),
|
||||
|
||||
getStudentAbility: (studentId: number) =>
|
||||
api.get<StudentAbilityModel>(`/adaptive-engine/students/${studentId}/ability`),
|
||||
api.get<StudentAbilityModel>(`/adaptive/student/${studentId}/ability`),
|
||||
|
||||
getSettings: () => api.get<AdaptiveThresholdSettings>("/adaptive-engine/settings"),
|
||||
getSettings: () => api.get<AdaptiveThresholdSettings>("/adaptive/settings"),
|
||||
|
||||
updateSettings: (data: AdaptiveThresholdSettings) =>
|
||||
api.put<ApiSuccessResponse>("/adaptive-engine/settings", data),
|
||||
api.put<ApiSuccessResponse>("/adaptive/settings", data),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user