style: prettier format
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
79bbbdc4e8
commit
99617f117c
45 changed files with 229 additions and 302 deletions
|
|
@ -33,10 +33,7 @@ export function getSimulation(id: string): Promise<Production> {
|
|||
* Endpoint : `GET /simulations?page=X&limit=Y`. Tri `created_at DESC` côté backend.
|
||||
* Champs lourds exclus (contenu, rapport, exercices, modele) — cf. SimulationListItem.
|
||||
*/
|
||||
export function listSimulations(
|
||||
page: number,
|
||||
limit: number,
|
||||
): Promise<SimulationsListResponse> {
|
||||
export function listSimulations(page: number, limit: number): Promise<SimulationsListResponse> {
|
||||
const qs = new URLSearchParams({ page: String(page), limit: String(limit) })
|
||||
return apiFetch<SimulationsListResponse>(`/simulations?${qs.toString()}`)
|
||||
}
|
||||
|
|
@ -83,9 +80,7 @@ export async function updateSujet(id: string, sujetId: string): Promise<void> {
|
|||
* Retourne `null` pour les tâches sans catalogue de sujets côté base
|
||||
* (EO_T1 : sujet fixe connu, EO_T2_LIVE : interaction sans sujet).
|
||||
*/
|
||||
function mapTacheToSujetParams(
|
||||
tache: Tache,
|
||||
): { mode: 'EE' | 'EO'; tacheNumber: 1 | 2 | 3 } | null {
|
||||
function mapTacheToSujetParams(tache: Tache): { mode: 'EE' | 'EO'; tacheNumber: 1 | 2 | 3 } | null {
|
||||
switch (tache) {
|
||||
case 'EE_T1':
|
||||
return { mode: 'EE', tacheNumber: 1 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue