@uniteverses/shared 1.0.36 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -252,6 +252,126 @@ export interface OrgStudent {
|
|
|
252
252
|
export interface CreateOrgStudentInput {
|
|
253
253
|
userId: string;
|
|
254
254
|
}
|
|
255
|
+
export interface OrgWithExams {
|
|
256
|
+
id: string;
|
|
257
|
+
name: string;
|
|
258
|
+
exams: SatExam[];
|
|
259
|
+
}
|
|
260
|
+
export type SatExamSessionStatus = 'in_progress' | 'completed';
|
|
261
|
+
export interface SatExamSession {
|
|
262
|
+
id: string;
|
|
263
|
+
examId: string;
|
|
264
|
+
userId: string;
|
|
265
|
+
status: SatExamSessionStatus;
|
|
266
|
+
currentSectionId: string | null;
|
|
267
|
+
currentQuestionIndex: number;
|
|
268
|
+
overallTheta: number | null;
|
|
269
|
+
overallScaledScore: number | null;
|
|
270
|
+
rwTheta: number | null;
|
|
271
|
+
rwScaledScore: number | null;
|
|
272
|
+
mathTheta: number | null;
|
|
273
|
+
mathScaledScore: number | null;
|
|
274
|
+
totalCorrect: number | null;
|
|
275
|
+
totalQuestions: number | null;
|
|
276
|
+
startedAt: string;
|
|
277
|
+
completedAt: string | null;
|
|
278
|
+
}
|
|
279
|
+
export interface SatExamSessionAnswer {
|
|
280
|
+
id: string;
|
|
281
|
+
sessionId: string;
|
|
282
|
+
questionId: string;
|
|
283
|
+
sectionId: string;
|
|
284
|
+
selectedOptionId: string | null;
|
|
285
|
+
freeResponseValue: string | null;
|
|
286
|
+
isCorrect: boolean;
|
|
287
|
+
timeSpentSeconds: number;
|
|
288
|
+
}
|
|
289
|
+
export interface SatExamSessionSectionResult {
|
|
290
|
+
id: string;
|
|
291
|
+
sessionId: string;
|
|
292
|
+
sectionId: string;
|
|
293
|
+
difficulty: SatExamSectionDifficulty;
|
|
294
|
+
rawScore: number;
|
|
295
|
+
totalQuestions: number;
|
|
296
|
+
theta: number;
|
|
297
|
+
timeUsedSeconds: number;
|
|
298
|
+
timeLimitSeconds: number | null;
|
|
299
|
+
section: {
|
|
300
|
+
id: string;
|
|
301
|
+
name: string;
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
export interface SatExamSessionRoutingDecision {
|
|
305
|
+
id: string;
|
|
306
|
+
sessionId: string;
|
|
307
|
+
fromSectionId: string;
|
|
308
|
+
theta: number;
|
|
309
|
+
threshold: number;
|
|
310
|
+
routedTo: SatExamSectionDifficulty;
|
|
311
|
+
toSectionId: string;
|
|
312
|
+
fromSection: {
|
|
313
|
+
id: string;
|
|
314
|
+
name: string;
|
|
315
|
+
};
|
|
316
|
+
toSection: {
|
|
317
|
+
id: string;
|
|
318
|
+
name: string;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
export interface SatExamSessionWithDetails extends SatExamSession {
|
|
322
|
+
exam: SatExam;
|
|
323
|
+
answers: SatExamSessionAnswer[];
|
|
324
|
+
sectionResults: SatExamSessionSectionResult[];
|
|
325
|
+
routingDecisions: SatExamSessionRoutingDecision[];
|
|
326
|
+
}
|
|
327
|
+
export interface SatExamSessionSummary extends SatExamSession {
|
|
328
|
+
exam: {
|
|
329
|
+
id: string;
|
|
330
|
+
title: string;
|
|
331
|
+
description: string | null;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
export interface CreateSatExamSessionInput {
|
|
335
|
+
examId: string;
|
|
336
|
+
}
|
|
337
|
+
export interface SaveAnswerInput {
|
|
338
|
+
questionId: string;
|
|
339
|
+
sectionId: string;
|
|
340
|
+
selectedOptionId: string | null;
|
|
341
|
+
freeResponseValue: string | null;
|
|
342
|
+
isCorrect: boolean;
|
|
343
|
+
timeSpentSeconds: number;
|
|
344
|
+
}
|
|
345
|
+
export interface UpdateSessionProgressInput {
|
|
346
|
+
currentSectionId: string;
|
|
347
|
+
currentQuestionIndex: number;
|
|
348
|
+
}
|
|
349
|
+
export interface SaveSectionResultInput {
|
|
350
|
+
sectionId: string;
|
|
351
|
+
difficulty: SatExamSectionDifficulty;
|
|
352
|
+
rawScore: number;
|
|
353
|
+
totalQuestions: number;
|
|
354
|
+
theta: number;
|
|
355
|
+
timeUsedSeconds: number;
|
|
356
|
+
timeLimitSeconds: number | null;
|
|
357
|
+
routingDecision?: {
|
|
358
|
+
fromSectionId: string;
|
|
359
|
+
theta: number;
|
|
360
|
+
threshold: number;
|
|
361
|
+
routedTo: SatExamSectionDifficulty;
|
|
362
|
+
toSectionId: string;
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
export interface CompleteSatExamSessionInput {
|
|
366
|
+
overallTheta: number;
|
|
367
|
+
overallScaledScore: number;
|
|
368
|
+
rwTheta: number;
|
|
369
|
+
rwScaledScore: number;
|
|
370
|
+
mathTheta: number;
|
|
371
|
+
mathScaledScore: number;
|
|
372
|
+
totalCorrect: number;
|
|
373
|
+
totalQuestions: number;
|
|
374
|
+
}
|
|
255
375
|
export interface CreateSatExamTemplateInput {
|
|
256
376
|
organizationId: string;
|
|
257
377
|
title: string;
|