academe-kit 0.11.6 → 0.12.0
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 +31 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +382 -2
- package/dist/index.esm.js +31 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/JourneyStep/JourneyStep.d.ts +1 -1
- package/dist/types/services/QuizService.d.ts +178 -0
- package/dist/types/types/academe-api.d.ts +203 -1
- 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
|
*/
|
|
@@ -10712,6 +10741,7 @@ const STEP_TYPE_TO_THEME = {
|
|
|
10712
10741
|
publication: 'orange',
|
|
10713
10742
|
evaluation: 'gold',
|
|
10714
10743
|
certificate: 'green',
|
|
10744
|
+
redirect: 'blue',
|
|
10715
10745
|
};
|
|
10716
10746
|
// Espelha a página de journey do app: todo step é uma esfera 3D, diferenciada
|
|
10717
10747
|
// apenas por cor (STEP_TYPE_TO_THEME) e ícone. Os frames de polígono seguem
|
|
@@ -10723,6 +10753,7 @@ const STEP_TYPE_TO_FRAME = {
|
|
|
10723
10753
|
publication: 'sphere',
|
|
10724
10754
|
evaluation: 'sphere',
|
|
10725
10755
|
certificate: 'sphere',
|
|
10756
|
+
redirect: 'sphere',
|
|
10726
10757
|
};
|
|
10727
10758
|
const INACTIVE_THEME = {
|
|
10728
10759
|
shadow: '#0a0a0a',
|