academe-kit 0.11.6 → 0.11.7
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.
- package/dist/index.cjs +29 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +378 -0
- package/dist/index.esm.js +29 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/types/services/QuizService.d.ts +178 -0
- package/dist/types/types/academe-api.d.ts +200 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5383,6 +5383,27 @@ function createQuizService(apiClient) {
|
|
|
5383
5383
|
},
|
|
5384
5384
|
});
|
|
5385
5385
|
},
|
|
5386
|
+
/**
|
|
5387
|
+
* List quizzes enriched with their course/module/category context.
|
|
5388
|
+
* Tailored for the backoffice listing.
|
|
5389
|
+
*/
|
|
5390
|
+
getAllWithContext(params) {
|
|
5391
|
+
return apiClient.GET('/quiz/with-context', {
|
|
5392
|
+
params: {
|
|
5393
|
+
query: params,
|
|
5394
|
+
},
|
|
5395
|
+
});
|
|
5396
|
+
},
|
|
5397
|
+
/**
|
|
5398
|
+
* Generate quiz questions from a base text using AI.
|
|
5399
|
+
* The OpenRouter key lives only on the server — this just calls the
|
|
5400
|
+
* authenticated backend endpoint.
|
|
5401
|
+
*/
|
|
5402
|
+
generateQuestions(body) {
|
|
5403
|
+
return apiClient.POST('/quiz/generate-questions', {
|
|
5404
|
+
body,
|
|
5405
|
+
});
|
|
5406
|
+
},
|
|
5386
5407
|
/**
|
|
5387
5408
|
* Get quiz by ID
|
|
5388
5409
|
*/
|
|
@@ -5445,6 +5466,14 @@ function createQuizService(apiClient) {
|
|
|
5445
5466
|
body: data,
|
|
5446
5467
|
});
|
|
5447
5468
|
},
|
|
5469
|
+
/**
|
|
5470
|
+
* Bulk create quiz questions (with their answers) for a quiz.
|
|
5471
|
+
*/
|
|
5472
|
+
bulkCreateQuestions(body) {
|
|
5473
|
+
return apiClient.POST('/quiz-questions/bulk', {
|
|
5474
|
+
body,
|
|
5475
|
+
});
|
|
5476
|
+
},
|
|
5448
5477
|
/**
|
|
5449
5478
|
* Update quiz question
|
|
5450
5479
|
*/
|