@easyedu/js-lsm-api 1.138.0 → 1.140.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.
Files changed (128) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +15 -2
  3. package/dist/apis/ContentLibraryQuizApi.d.ts +86 -0
  4. package/dist/apis/ContentLibraryQuizApi.js +216 -0
  5. package/dist/apis/DispatchApi.d.ts +53 -0
  6. package/dist/apis/DispatchApi.js +135 -0
  7. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +86 -0
  8. package/dist/esm/apis/ContentLibraryQuizApi.js +216 -0
  9. package/dist/esm/apis/DispatchApi.d.ts +53 -0
  10. package/dist/esm/apis/DispatchApi.js +135 -0
  11. package/dist/esm/models/GetAttemptAllowance.d.ts +9 -3
  12. package/dist/esm/models/GetAttemptAllowance.js +4 -0
  13. package/dist/esm/models/GetCourseVersionItem.d.ts +1 -1
  14. package/dist/esm/models/GetLibraryQuizResult.d.ts +30 -0
  15. package/dist/esm/models/GetLibraryQuizResult.js +20 -0
  16. package/dist/esm/models/GetLibraryQuizSession.d.ts +43 -0
  17. package/dist/esm/models/GetLibraryQuizSession.js +27 -0
  18. package/dist/esm/models/GetLibraryQuizVersion.d.ts +19 -0
  19. package/dist/esm/models/GetLibraryQuizVersion.js +13 -0
  20. package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
  21. package/dist/esm/models/GetQuestionAnswerChoicesInner.js +4 -0
  22. package/dist/esm/models/GetQuizSettings.d.ts +56 -0
  23. package/dist/esm/models/GetQuizSettings.js +57 -0
  24. package/dist/esm/models/HostedScormOutlineEntry.d.ts +2 -2
  25. package/dist/esm/models/LibraryQuizQuestionFeedback.d.ts +78 -0
  26. package/dist/esm/models/LibraryQuizQuestionFeedback.js +66 -0
  27. package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
  28. package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +2 -0
  29. package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +19 -0
  30. package/dist/esm/models/LibraryQuizSessionQuestion.js +11 -0
  31. package/dist/esm/models/PostCourseVersionItem.d.ts +1 -1
  32. package/dist/esm/models/PostLibraryQuiz.d.ts +21 -2
  33. package/dist/esm/models/PostLibraryQuiz.js +7 -0
  34. package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
  35. package/dist/esm/models/PostQuestionAnswerChoicesInner.js +2 -0
  36. package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
  37. package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
  38. package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.js +43 -0
  39. package/dist/esm/models/PutLibraryQuizVersion.d.ts +19 -0
  40. package/dist/esm/models/PutLibraryQuizVersion.js +7 -0
  41. package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
  42. package/dist/esm/models/PutQuestionAnswerChoicesInner.js +2 -0
  43. package/dist/esm/models/PutQuizSettings.d.ts +44 -0
  44. package/dist/esm/models/PutQuizSettings.js +51 -0
  45. package/dist/esm/models/QuizFeedbackTiming.d.ts +25 -0
  46. package/dist/esm/models/QuizFeedbackTiming.js +43 -0
  47. package/dist/esm/models/index.d.ts +5 -0
  48. package/dist/esm/models/index.js +5 -0
  49. package/dist/models/GetAttemptAllowance.d.ts +9 -3
  50. package/dist/models/GetAttemptAllowance.js +4 -0
  51. package/dist/models/GetCourseVersionItem.d.ts +1 -1
  52. package/dist/models/GetLibraryQuizResult.d.ts +30 -0
  53. package/dist/models/GetLibraryQuizResult.js +20 -0
  54. package/dist/models/GetLibraryQuizSession.d.ts +43 -0
  55. package/dist/models/GetLibraryQuizSession.js +27 -0
  56. package/dist/models/GetLibraryQuizVersion.d.ts +19 -0
  57. package/dist/models/GetLibraryQuizVersion.js +13 -0
  58. package/dist/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
  59. package/dist/models/GetQuestionAnswerChoicesInner.js +4 -0
  60. package/dist/models/GetQuizSettings.d.ts +56 -0
  61. package/dist/models/GetQuizSettings.js +64 -0
  62. package/dist/models/HostedScormOutlineEntry.d.ts +2 -2
  63. package/dist/models/LibraryQuizQuestionFeedback.d.ts +78 -0
  64. package/dist/models/LibraryQuizQuestionFeedback.js +74 -0
  65. package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
  66. package/dist/models/LibraryQuizSessionAnswerChoice.js +2 -0
  67. package/dist/models/LibraryQuizSessionQuestion.d.ts +19 -0
  68. package/dist/models/LibraryQuizSessionQuestion.js +11 -0
  69. package/dist/models/PostCourseVersionItem.d.ts +1 -1
  70. package/dist/models/PostLibraryQuiz.d.ts +21 -2
  71. package/dist/models/PostLibraryQuiz.js +7 -0
  72. package/dist/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
  73. package/dist/models/PostQuestionAnswerChoicesInner.js +2 -0
  74. package/dist/models/PutCourseVersionItem.d.ts +1 -1
  75. package/dist/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
  76. package/dist/models/PutLibraryQuizSessionQuestionFlag.js +50 -0
  77. package/dist/models/PutLibraryQuizVersion.d.ts +19 -0
  78. package/dist/models/PutLibraryQuizVersion.js +7 -0
  79. package/dist/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
  80. package/dist/models/PutQuestionAnswerChoicesInner.js +2 -0
  81. package/dist/models/PutQuizSettings.d.ts +44 -0
  82. package/dist/models/PutQuizSettings.js +58 -0
  83. package/dist/models/QuizFeedbackTiming.d.ts +25 -0
  84. package/dist/models/QuizFeedbackTiming.js +51 -0
  85. package/dist/models/index.d.ts +5 -0
  86. package/dist/models/index.js +5 -0
  87. package/docs/ContentLibraryQuizApi.md +343 -0
  88. package/docs/DispatchApi.md +214 -0
  89. package/docs/GetAttemptAllowance.md +2 -0
  90. package/docs/GetLibraryQuizResult.md +10 -0
  91. package/docs/GetLibraryQuizSession.md +14 -0
  92. package/docs/GetLibraryQuizVersion.md +6 -0
  93. package/docs/GetQuestionAnswerChoicesInner.md +2 -0
  94. package/docs/GetQuizSettings.md +43 -0
  95. package/docs/LibraryQuizQuestionFeedback.md +47 -0
  96. package/docs/LibraryQuizSessionAnswerChoice.md +2 -0
  97. package/docs/LibraryQuizSessionQuestion.md +6 -0
  98. package/docs/PostLibraryQuiz.md +6 -0
  99. package/docs/PostQuestionAnswerChoicesInner.md +2 -0
  100. package/docs/PutLibraryQuizSessionQuestionFlag.md +34 -0
  101. package/docs/PutLibraryQuizVersion.md +6 -0
  102. package/docs/PutQuestionAnswerChoicesInner.md +2 -0
  103. package/docs/PutQuizSettings.md +38 -0
  104. package/docs/QuizFeedbackTiming.md +33 -0
  105. package/package.json +1 -1
  106. package/src/apis/ContentLibraryQuizApi.ts +287 -0
  107. package/src/apis/DispatchApi.ts +185 -0
  108. package/src/models/GetAttemptAllowance.ts +12 -3
  109. package/src/models/GetCourseVersionItem.ts +1 -1
  110. package/src/models/GetLibraryQuizResult.ts +45 -0
  111. package/src/models/GetLibraryQuizSession.ts +69 -0
  112. package/src/models/GetLibraryQuizVersion.ts +34 -0
  113. package/src/models/GetQuestionAnswerChoicesInner.ts +9 -0
  114. package/src/models/GetQuizSettings.ts +101 -0
  115. package/src/models/HostedScormOutlineEntry.ts +2 -2
  116. package/src/models/LibraryQuizQuestionFeedback.ts +135 -0
  117. package/src/models/LibraryQuizSessionAnswerChoice.ts +8 -0
  118. package/src/models/LibraryQuizSessionQuestion.ts +33 -0
  119. package/src/models/PostCourseVersionItem.ts +1 -1
  120. package/src/models/PostLibraryQuiz.ts +33 -2
  121. package/src/models/PostQuestionAnswerChoicesInner.ts +8 -0
  122. package/src/models/PutCourseVersionItem.ts +1 -1
  123. package/src/models/PutLibraryQuizSessionQuestionFlag.ts +66 -0
  124. package/src/models/PutLibraryQuizVersion.ts +31 -0
  125. package/src/models/PutQuestionAnswerChoicesInner.ts +8 -0
  126. package/src/models/PutQuizSettings.ts +84 -0
  127. package/src/models/QuizFeedbackTiming.ts +53 -0
  128. package/src/models/index.ts +5 -0
@@ -10,10 +10,13 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
10
10
  | [**getDispatchRollup**](DispatchApi.md#getdispatchrollup) | **GET** /dispatch/sessions/{dispatchPackageId}/rollup | Get dispatch package rollup data |
11
11
  | [**postDispatchItemLaunch**](DispatchApi.md#postdispatchitemlaunch) | **POST** /dispatch/runtime/items/{itemId}/launch | Start or resume a selected hosted course item |
12
12
  | [**postDispatchLaunch**](DispatchApi.md#postdispatchlaunch) | **POST** /dispatch/launch | Launch a dispatch package |
13
+ | [**postDispatchQuizSessionAnswerCheck**](DispatchApi.md#postdispatchquizsessionanswercheck) | **POST** /dispatch/runtime/quiz-sessions/{sessionId}/answers/{sessionQuestionId}/check | Check a saved answer for immediate feedback |
14
+ | [**postDispatchQuizSessionStart**](DispatchApi.md#postdispatchquizsessionstart) | **POST** /dispatch/runtime/quiz-sessions/{sessionId}/start | Begin a quiz attempt from its introduction page |
13
15
  | [**postDispatchQuizSessionSubmit**](DispatchApi.md#postdispatchquizsessionsubmit) | **POST** /dispatch/runtime/quiz-sessions/{sessionId}/submit | Submit a registration-owned native quiz session |
14
16
  | [**postDispatchTokenExchange**](DispatchApi.md#postdispatchtokenexchange) | **POST** /dispatch/runtime/token | Exchange a one-time hosted SCORM launch code |
15
17
  | [**postDispatchTokenRefresh**](DispatchApi.md#postdispatchtokenrefresh) | **POST** /dispatch/runtime/token/refresh | Extend a valid hosted SCORM access token |
16
18
  | [**putDispatchQuizSessionAnswer**](DispatchApi.md#putdispatchquizsessionanswer) | **PUT** /dispatch/runtime/quiz-sessions/{sessionId}/answers/{sessionQuestionId} | Save a registration-owned native quiz answer |
19
+ | [**putDispatchQuizSessionQuestionFlag**](DispatchApi.md#putdispatchquizsessionquestionflag) | **PUT** /dispatch/runtime/quiz-sessions/{sessionId}/questions/{sessionQuestionId}/flag | Flag or unflag a question to review before submitting |
17
20
 
18
21
 
19
22
 
@@ -416,6 +419,145 @@ No authorization required
416
419
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
417
420
 
418
421
 
422
+ ## postDispatchQuizSessionAnswerCheck
423
+
424
+ > GetLibraryQuizSession postDispatchQuizSessionAnswerCheck(sessionId, sessionQuestionId)
425
+
426
+ Check a saved answer for immediate feedback
427
+
428
+ Available when the quiz shows feedback after each question. Locks the saved answer and returns the session with that question\'s feedback.
429
+
430
+ ### Example
431
+
432
+ ```ts
433
+ import {
434
+ Configuration,
435
+ DispatchApi,
436
+ } from '@easyedu/js-lsm-api';
437
+ import type { PostDispatchQuizSessionAnswerCheckRequest } from '@easyedu/js-lsm-api';
438
+
439
+ async function example() {
440
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
441
+ const api = new DispatchApi();
442
+
443
+ const body = {
444
+ // string
445
+ sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
446
+ // string
447
+ sessionQuestionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
448
+ } satisfies PostDispatchQuizSessionAnswerCheckRequest;
449
+
450
+ try {
451
+ const data = await api.postDispatchQuizSessionAnswerCheck(body);
452
+ console.log(data);
453
+ } catch (error) {
454
+ console.error(error);
455
+ }
456
+ }
457
+
458
+ // Run the test
459
+ example().catch(console.error);
460
+ ```
461
+
462
+ ### Parameters
463
+
464
+
465
+ | Name | Type | Description | Notes |
466
+ |------------- | ------------- | ------------- | -------------|
467
+ | **sessionId** | `string` | | [Defaults to `undefined`] |
468
+ | **sessionQuestionId** | `string` | | [Defaults to `undefined`] |
469
+
470
+ ### Return type
471
+
472
+ [**GetLibraryQuizSession**](GetLibraryQuizSession.md)
473
+
474
+ ### Authorization
475
+
476
+ No authorization required
477
+
478
+ ### HTTP request headers
479
+
480
+ - **Content-Type**: Not defined
481
+ - **Accept**: `application/json`
482
+
483
+
484
+ ### HTTP response details
485
+ | Status code | Description | Response headers |
486
+ |-------------|-------------|------------------|
487
+ | **200** | Quiz session including the checked question\'s feedback | - |
488
+ | **409** | The quiz shows feedback only after submission, the question has no saved answer, or the attempt has already been submitted | - |
489
+
490
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
491
+
492
+
493
+ ## postDispatchQuizSessionStart
494
+
495
+ > GetLibraryQuizSession postDispatchQuizSessionStart(sessionId)
496
+
497
+ Begin a quiz attempt from its introduction page
498
+
499
+ Marks the attempt as started and starts its time limit. Answers cannot be saved before the attempt has started. Calling this again for an attempt that already started returns it unchanged.
500
+
501
+ ### Example
502
+
503
+ ```ts
504
+ import {
505
+ Configuration,
506
+ DispatchApi,
507
+ } from '@easyedu/js-lsm-api';
508
+ import type { PostDispatchQuizSessionStartRequest } from '@easyedu/js-lsm-api';
509
+
510
+ async function example() {
511
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
512
+ const api = new DispatchApi();
513
+
514
+ const body = {
515
+ // string
516
+ sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
517
+ } satisfies PostDispatchQuizSessionStartRequest;
518
+
519
+ try {
520
+ const data = await api.postDispatchQuizSessionStart(body);
521
+ console.log(data);
522
+ } catch (error) {
523
+ console.error(error);
524
+ }
525
+ }
526
+
527
+ // Run the test
528
+ example().catch(console.error);
529
+ ```
530
+
531
+ ### Parameters
532
+
533
+
534
+ | Name | Type | Description | Notes |
535
+ |------------- | ------------- | ------------- | -------------|
536
+ | **sessionId** | `string` | | [Defaults to `undefined`] |
537
+
538
+ ### Return type
539
+
540
+ [**GetLibraryQuizSession**](GetLibraryQuizSession.md)
541
+
542
+ ### Authorization
543
+
544
+ No authorization required
545
+
546
+ ### HTTP request headers
547
+
548
+ - **Content-Type**: Not defined
549
+ - **Accept**: `application/json`
550
+
551
+
552
+ ### HTTP response details
553
+ | Status code | Description | Response headers |
554
+ |-------------|-------------|------------------|
555
+ | **200** | Started quiz session | - |
556
+ | **409** | The attempt has already been submitted | - |
557
+
558
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
559
+
560
+
419
561
  ## postDispatchQuizSessionSubmit
420
562
 
421
563
  > GetLibraryQuizResult postDispatchQuizSessionSubmit(sessionId)
@@ -677,3 +819,75 @@ No authorization required
677
819
 
678
820
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
679
821
 
822
+
823
+ ## putDispatchQuizSessionQuestionFlag
824
+
825
+ > GetLibraryQuizSession putDispatchQuizSessionQuestionFlag(sessionId, sessionQuestionId, putLibraryQuizSessionQuestionFlag)
826
+
827
+ Flag or unflag a question to review before submitting
828
+
829
+ ### Example
830
+
831
+ ```ts
832
+ import {
833
+ Configuration,
834
+ DispatchApi,
835
+ } from '@easyedu/js-lsm-api';
836
+ import type { PutDispatchQuizSessionQuestionFlagRequest } from '@easyedu/js-lsm-api';
837
+
838
+ async function example() {
839
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
840
+ const api = new DispatchApi();
841
+
842
+ const body = {
843
+ // string
844
+ sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
845
+ // string
846
+ sessionQuestionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
847
+ // PutLibraryQuizSessionQuestionFlag
848
+ putLibraryQuizSessionQuestionFlag: ...,
849
+ } satisfies PutDispatchQuizSessionQuestionFlagRequest;
850
+
851
+ try {
852
+ const data = await api.putDispatchQuizSessionQuestionFlag(body);
853
+ console.log(data);
854
+ } catch (error) {
855
+ console.error(error);
856
+ }
857
+ }
858
+
859
+ // Run the test
860
+ example().catch(console.error);
861
+ ```
862
+
863
+ ### Parameters
864
+
865
+
866
+ | Name | Type | Description | Notes |
867
+ |------------- | ------------- | ------------- | -------------|
868
+ | **sessionId** | `string` | | [Defaults to `undefined`] |
869
+ | **sessionQuestionId** | `string` | | [Defaults to `undefined`] |
870
+ | **putLibraryQuizSessionQuestionFlag** | [PutLibraryQuizSessionQuestionFlag](PutLibraryQuizSessionQuestionFlag.md) | | |
871
+
872
+ ### Return type
873
+
874
+ [**GetLibraryQuizSession**](GetLibraryQuizSession.md)
875
+
876
+ ### Authorization
877
+
878
+ No authorization required
879
+
880
+ ### HTTP request headers
881
+
882
+ - **Content-Type**: `application/json`
883
+ - **Accept**: `application/json`
884
+
885
+
886
+ ### HTTP response details
887
+ | Status code | Description | Response headers |
888
+ |-------------|-------------|------------------|
889
+ | **200** | Updated quiz session | - |
890
+ | **409** | The attempt has already been submitted | - |
891
+
892
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
893
+
@@ -16,6 +16,7 @@ Name | Type
16
16
  `effectiveMaxAttempts` | number
17
17
  `attemptsUsed` | number
18
18
  `attemptsRemaining` | number
19
+ `unlimited` | boolean
19
20
 
20
21
  ## Example
21
22
 
@@ -33,6 +34,7 @@ const example = {
33
34
  "effectiveMaxAttempts": null,
34
35
  "attemptsUsed": null,
35
36
  "attemptsRemaining": null,
37
+ "unlimited": null,
36
38
  } satisfies GetAttemptAllowance
37
39
 
38
40
  console.log(example)
@@ -16,6 +16,11 @@ Name | Type
16
16
  `scorePercentage` | number
17
17
  `passed` | boolean
18
18
  `pendingManualGrading` | boolean
19
+ `timedOut` | boolean
20
+ `passingScore` | number
21
+ `attemptNumber` | number
22
+ `maxAttempts` | number
23
+ `canRetake` | boolean
19
24
  `questions` | Array<{ [key: string]: any; }>
20
25
 
21
26
  ## Example
@@ -35,6 +40,11 @@ const example = {
35
40
  "scorePercentage": null,
36
41
  "passed": null,
37
42
  "pendingManualGrading": null,
43
+ "timedOut": null,
44
+ "passingScore": null,
45
+ "attemptNumber": null,
46
+ "maxAttempts": null,
47
+ "canRetake": null,
38
48
  "questions": null,
39
49
  } satisfies GetLibraryQuizResult
40
50
 
@@ -16,6 +16,13 @@ Name | Type
16
16
  `quizVersionId` | string
17
17
  `quizVersionNumber` | number
18
18
  `quizName` | string
19
+ `description` | string
20
+ `hasStarted` | boolean
21
+ `passingScore` | number
22
+ `timeLimitMinutes` | number
23
+ `maxAttempts` | number
24
+ `feedbackTiming` | [QuizFeedbackTiming](QuizFeedbackTiming.md)
25
+ `requireAllQuestions` | boolean
19
26
  `attemptNumber` | number
20
27
  `isCurrent` | boolean
21
28
  `status` | string
@@ -48,6 +55,13 @@ const example = {
48
55
  "quizVersionId": null,
49
56
  "quizVersionNumber": null,
50
57
  "quizName": null,
58
+ "description": null,
59
+ "hasStarted": null,
60
+ "passingScore": null,
61
+ "timeLimitMinutes": null,
62
+ "maxAttempts": null,
63
+ "feedbackTiming": null,
64
+ "requireAllQuestions": null,
51
65
  "attemptNumber": null,
52
66
  "isCurrent": null,
53
67
  "status": null,
@@ -20,6 +20,9 @@ Name | Type
20
20
  `showCorrectAnswers` | boolean
21
21
  `allowReview` | boolean
22
22
  `requireAllQuestions` | boolean
23
+ `maxAttempts` | number
24
+ `showExplanations` | boolean
25
+ `feedbackTiming` | [QuizFeedbackTiming](QuizFeedbackTiming.md)
23
26
  `settings` | { [key: string]: any; }
24
27
  `questions` | [Array<LibraryQuizQuestion>](LibraryQuizQuestion.md)
25
28
  `criteria` | [Array<LibraryQuizCriterion>](LibraryQuizCriterion.md)
@@ -51,6 +54,9 @@ const example = {
51
54
  "showCorrectAnswers": null,
52
55
  "allowReview": null,
53
56
  "requireAllQuestions": null,
57
+ "maxAttempts": null,
58
+ "showExplanations": null,
59
+ "feedbackTiming": null,
54
60
  "settings": null,
55
61
  "questions": null,
56
62
  "criteria": null,
@@ -9,6 +9,7 @@ Name | Type
9
9
  `id` | string
10
10
  `text` | [RichTextDocument](RichTextDocument.md)
11
11
  `isCorrect` | boolean
12
+ `lockPosition` | boolean
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "id": null,
21
22
  "text": null,
22
23
  "isCorrect": null,
24
+ "lockPosition": null,
23
25
  } satisfies GetQuestionAnswerChoicesInner
24
26
 
25
27
  console.log(example)
@@ -0,0 +1,43 @@
1
+
2
+ # GetQuizSettings
3
+
4
+ The selected portal\'s defaults for new quizzes. The values are copied into a quiz when it is created; changing them later does not change existing quizzes.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `defaultMaxAttempts` | number
11
+ `defaultTimeLimitMinutes` | number
12
+ `defaultPassingScore` | number
13
+ `isCustomized` | boolean
14
+ `updatedAt` | number
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { GetQuizSettings } from '@easyedu/js-lsm-api'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "defaultMaxAttempts": null,
24
+ "defaultTimeLimitMinutes": null,
25
+ "defaultPassingScore": null,
26
+ "isCustomized": null,
27
+ "updatedAt": null,
28
+ } satisfies GetQuizSettings
29
+
30
+ console.log(example)
31
+
32
+ // Convert the instance to a JSON string
33
+ const exampleJSON: string = JSON.stringify(example)
34
+ console.log(exampleJSON)
35
+
36
+ // Parse the JSON string back to an object
37
+ const exampleParsed = JSON.parse(exampleJSON) as GetQuizSettings
38
+ console.log(exampleParsed)
39
+ ```
40
+
41
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
42
+
43
+
@@ -0,0 +1,47 @@
1
+
2
+ # LibraryQuizQuestionFeedback
3
+
4
+ Feedback for one answered question. Which parts are present depends on the quiz settings: correct answers need `show_correct_answers` and explanations need `show_explanations`.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `isCorrect` | boolean
11
+ `pointsEarned` | number
12
+ `gradingStatus` | string
13
+ `correctChoiceIds` | Array<string>
14
+ `correctAnswer` | string
15
+ `explanation` | string
16
+ `explanationRich` | [RichTextDocument](RichTextDocument.md)
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { LibraryQuizQuestionFeedback } from '@easyedu/js-lsm-api'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "isCorrect": null,
26
+ "pointsEarned": null,
27
+ "gradingStatus": null,
28
+ "correctChoiceIds": null,
29
+ "correctAnswer": null,
30
+ "explanation": null,
31
+ "explanationRich": null,
32
+ } satisfies LibraryQuizQuestionFeedback
33
+
34
+ console.log(example)
35
+
36
+ // Convert the instance to a JSON string
37
+ const exampleJSON: string = JSON.stringify(example)
38
+ console.log(exampleJSON)
39
+
40
+ // Parse the JSON string back to an object
41
+ const exampleParsed = JSON.parse(exampleJSON) as LibraryQuizQuestionFeedback
42
+ console.log(exampleParsed)
43
+ ```
44
+
45
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
46
+
47
+
@@ -10,6 +10,7 @@ Name | Type
10
10
  `text` | string
11
11
  `textRich` | [RichTextDocument](RichTextDocument.md)
12
12
  `displayOrder` | number
13
+ `lockPosition` | boolean
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "text": null,
23
24
  "textRich": null,
24
25
  "displayOrder": null,
26
+ "lockPosition": null,
25
27
  } satisfies LibraryQuizSessionAnswerChoice
26
28
 
27
29
  console.log(example)
@@ -14,6 +14,9 @@ Name | Type
14
14
  `questionTextRich` | [RichTextDocument](RichTextDocument.md)
15
15
  `answerChoices` | [Array<LibraryQuizSessionAnswerChoice>](LibraryQuizSessionAnswerChoice.md)
16
16
  `isAnswered` | boolean
17
+ `isFlagged` | boolean
18
+ `isChecked` | boolean
19
+ `feedback` | [LibraryQuizQuestionFeedback](LibraryQuizQuestionFeedback.md)
17
20
  `answer` | { [key: string]: any; }
18
21
 
19
22
  ## Example
@@ -31,6 +34,9 @@ const example = {
31
34
  "questionTextRich": null,
32
35
  "answerChoices": null,
33
36
  "isAnswered": null,
37
+ "isFlagged": null,
38
+ "isChecked": null,
39
+ "feedback": null,
34
40
  "answer": null,
35
41
  } satisfies LibraryQuizSessionQuestion
36
42
 
@@ -18,6 +18,9 @@ Name | Type
18
18
  `showCorrectAnswers` | boolean
19
19
  `allowReview` | boolean
20
20
  `requireAllQuestions` | boolean
21
+ `maxAttempts` | number
22
+ `showExplanations` | boolean
23
+ `feedbackTiming` | [QuizFeedbackTiming](QuizFeedbackTiming.md)
21
24
  `settings` | { [key: string]: any; }
22
25
  `tags` | Set<string>
23
26
 
@@ -40,6 +43,9 @@ const example = {
40
43
  "showCorrectAnswers": null,
41
44
  "allowReview": null,
42
45
  "requireAllQuestions": null,
46
+ "maxAttempts": null,
47
+ "showExplanations": null,
48
+ "feedbackTiming": null,
43
49
  "settings": null,
44
50
  "tags": null,
45
51
  } satisfies PostLibraryQuiz
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `text` | [RichTextInput](RichTextInput.md)
10
10
  `isCorrect` | boolean
11
+ `lockPosition` | boolean
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { PostQuestionAnswerChoicesInner } from '@easyedu/js-lsm-api'
18
19
  const example = {
19
20
  "text": null,
20
21
  "isCorrect": null,
22
+ "lockPosition": null,
21
23
  } satisfies PostQuestionAnswerChoicesInner
22
24
 
23
25
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # PutLibraryQuizSessionQuestionFlag
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `flagged` | boolean
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PutLibraryQuizSessionQuestionFlag } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "flagged": null,
19
+ } satisfies PutLibraryQuizSessionQuestionFlag
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as PutLibraryQuizSessionQuestionFlag
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -17,6 +17,9 @@ Name | Type
17
17
  `showCorrectAnswers` | boolean
18
18
  `allowReview` | boolean
19
19
  `requireAllQuestions` | boolean
20
+ `maxAttempts` | number
21
+ `showExplanations` | boolean
22
+ `feedbackTiming` | [QuizFeedbackTiming](QuizFeedbackTiming.md)
20
23
  `settings` | { [key: string]: any; }
21
24
 
22
25
  ## Example
@@ -37,6 +40,9 @@ const example = {
37
40
  "showCorrectAnswers": null,
38
41
  "allowReview": null,
39
42
  "requireAllQuestions": null,
43
+ "maxAttempts": null,
44
+ "showExplanations": null,
45
+ "feedbackTiming": null,
40
46
  "settings": null,
41
47
  } satisfies PutLibraryQuizVersion
42
48
 
@@ -9,6 +9,7 @@ Name | Type
9
9
  `id` | string
10
10
  `text` | [RichTextInput](RichTextInput.md)
11
11
  `isCorrect` | boolean
12
+ `lockPosition` | boolean
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "id": null,
21
22
  "text": null,
22
23
  "isCorrect": null,
24
+ "lockPosition": null,
23
25
  } satisfies PutQuestionAnswerChoicesInner
24
26
 
25
27
  console.log(example)
@@ -0,0 +1,38 @@
1
+
2
+ # PutQuizSettings
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `defaultMaxAttempts` | number
10
+ `defaultTimeLimitMinutes` | number
11
+ `defaultPassingScore` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { PutQuizSettings } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "defaultMaxAttempts": null,
21
+ "defaultTimeLimitMinutes": null,
22
+ "defaultPassingScore": null,
23
+ } satisfies PutQuizSettings
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as PutQuizSettings
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,33 @@
1
+
2
+ # QuizFeedbackTiming
3
+
4
+ When learners see feedback. `after_submission` shows it once the whole attempt is submitted. `after_each_question` lets the learner check each answer as they go; a checked answer is locked and can no longer be changed.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { QuizFeedbackTiming } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies QuizFeedbackTiming
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as QuizFeedbackTiming
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.138.0",
3
+ "version": "1.140.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {