@easyedu/js-lsm-api 1.139.0 → 1.141.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 (253) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +41 -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 +71 -0
  6. package/dist/apis/DispatchApi.js +178 -0
  7. package/dist/apis/LRSApi.d.ts +152 -0
  8. package/dist/apis/LRSApi.js +369 -0
  9. package/dist/apis/PlayerApi.d.ts +71 -0
  10. package/dist/apis/PlayerApi.js +177 -0
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +86 -0
  14. package/dist/esm/apis/ContentLibraryQuizApi.js +216 -0
  15. package/dist/esm/apis/DispatchApi.d.ts +71 -0
  16. package/dist/esm/apis/DispatchApi.js +178 -0
  17. package/dist/esm/apis/LRSApi.d.ts +152 -0
  18. package/dist/esm/apis/LRSApi.js +365 -0
  19. package/dist/esm/apis/PlayerApi.d.ts +71 -0
  20. package/dist/esm/apis/PlayerApi.js +177 -0
  21. package/dist/esm/apis/index.d.ts +1 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/models/Cmi5Launch.d.ts +52 -0
  24. package/dist/esm/models/Cmi5Launch.js +58 -0
  25. package/dist/esm/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
  26. package/dist/esm/models/DeleteLrsUserRecordsResponse.js +47 -0
  27. package/dist/esm/models/GetAttemptAllowance.d.ts +9 -3
  28. package/dist/esm/models/GetAttemptAllowance.js +4 -0
  29. package/dist/esm/models/GetCourseExport.d.ts +2 -1
  30. package/dist/esm/models/GetCourseExport.js +2 -1
  31. package/dist/esm/models/GetCourseVersionItem.d.ts +1 -1
  32. package/dist/esm/models/GetLibraryQuizResult.d.ts +30 -0
  33. package/dist/esm/models/GetLibraryQuizResult.js +20 -0
  34. package/dist/esm/models/GetLibraryQuizSession.d.ts +43 -0
  35. package/dist/esm/models/GetLibraryQuizSession.js +27 -0
  36. package/dist/esm/models/GetLibraryQuizVersion.d.ts +19 -0
  37. package/dist/esm/models/GetLibraryQuizVersion.js +13 -0
  38. package/dist/esm/models/GetLrsCredentials.d.ts +46 -0
  39. package/dist/esm/models/GetLrsCredentials.js +53 -0
  40. package/dist/esm/models/GetLrsStatementList.d.ts +57 -0
  41. package/dist/esm/models/GetLrsStatementList.js +60 -0
  42. package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
  43. package/dist/esm/models/GetQuestionAnswerChoicesInner.js +4 -0
  44. package/dist/esm/models/GetQuizSettings.d.ts +56 -0
  45. package/dist/esm/models/GetQuizSettings.js +57 -0
  46. package/dist/esm/models/GetResourceSessionActivity.d.ts +2 -1
  47. package/dist/esm/models/GetResourceSessionActivity.js +2 -1
  48. package/dist/esm/models/H5pState.d.ts +34 -0
  49. package/dist/esm/models/H5pState.js +43 -0
  50. package/dist/esm/models/H5pStatementResult.d.ts +44 -0
  51. package/dist/esm/models/H5pStatementResult.js +49 -0
  52. package/dist/esm/models/HostedScormAccessPolicy.d.ts +1 -1
  53. package/dist/esm/models/HostedScormOutlineEntry.d.ts +1 -1
  54. package/dist/esm/models/LibraryQuizQuestionFeedback.d.ts +78 -0
  55. package/dist/esm/models/LibraryQuizQuestionFeedback.js +66 -0
  56. package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
  57. package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +2 -0
  58. package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +19 -0
  59. package/dist/esm/models/LibraryQuizSessionQuestion.js +11 -0
  60. package/dist/esm/models/LrsCredential.d.ts +74 -0
  61. package/dist/esm/models/LrsCredential.js +67 -0
  62. package/dist/esm/models/LrsScope.d.ts +38 -0
  63. package/dist/esm/models/LrsScope.js +47 -0
  64. package/dist/esm/models/LrsStatement.d.ts +112 -0
  65. package/dist/esm/models/LrsStatement.js +81 -0
  66. package/dist/esm/models/PostCourseExport.d.ts +2 -1
  67. package/dist/esm/models/PostCourseExport.js +2 -1
  68. package/dist/esm/models/PostCourseVersionItem.d.ts +1 -1
  69. package/dist/esm/models/PostDispatchCmi5Launch.d.ts +64 -0
  70. package/dist/esm/models/PostDispatchCmi5Launch.js +63 -0
  71. package/dist/esm/models/PostH5pStatement.d.ts +40 -0
  72. package/dist/esm/models/PostH5pStatement.js +47 -0
  73. package/dist/esm/models/PostLibraryQuiz.d.ts +21 -2
  74. package/dist/esm/models/PostLibraryQuiz.js +7 -0
  75. package/dist/esm/models/PostLrsCredential.d.ts +38 -0
  76. package/dist/esm/models/PostLrsCredential.js +47 -0
  77. package/dist/esm/models/PostLrsCredentialResponse.d.ts +45 -0
  78. package/dist/esm/models/PostLrsCredentialResponse.js +52 -0
  79. package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
  80. package/dist/esm/models/PostQuestionAnswerChoicesInner.js +2 -0
  81. package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
  82. package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
  83. package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.js +43 -0
  84. package/dist/esm/models/PutLibraryQuizVersion.d.ts +19 -0
  85. package/dist/esm/models/PutLibraryQuizVersion.js +7 -0
  86. package/dist/esm/models/PutLrsCredential.d.ts +38 -0
  87. package/dist/esm/models/PutLrsCredential.js +43 -0
  88. package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
  89. package/dist/esm/models/PutQuestionAnswerChoicesInner.js +2 -0
  90. package/dist/esm/models/PutQuizSettings.d.ts +44 -0
  91. package/dist/esm/models/PutQuizSettings.js +51 -0
  92. package/dist/esm/models/QuizFeedbackTiming.d.ts +25 -0
  93. package/dist/esm/models/QuizFeedbackTiming.js +43 -0
  94. package/dist/esm/models/ResourceType.d.ts +2 -0
  95. package/dist/esm/models/ResourceType.js +3 -1
  96. package/dist/esm/models/index.d.ts +19 -0
  97. package/dist/esm/models/index.js +19 -0
  98. package/dist/models/Cmi5Launch.d.ts +52 -0
  99. package/dist/models/Cmi5Launch.js +66 -0
  100. package/dist/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
  101. package/dist/models/DeleteLrsUserRecordsResponse.js +54 -0
  102. package/dist/models/GetAttemptAllowance.d.ts +9 -3
  103. package/dist/models/GetAttemptAllowance.js +4 -0
  104. package/dist/models/GetCourseExport.d.ts +2 -1
  105. package/dist/models/GetCourseExport.js +2 -1
  106. package/dist/models/GetCourseVersionItem.d.ts +1 -1
  107. package/dist/models/GetLibraryQuizResult.d.ts +30 -0
  108. package/dist/models/GetLibraryQuizResult.js +20 -0
  109. package/dist/models/GetLibraryQuizSession.d.ts +43 -0
  110. package/dist/models/GetLibraryQuizSession.js +27 -0
  111. package/dist/models/GetLibraryQuizVersion.d.ts +19 -0
  112. package/dist/models/GetLibraryQuizVersion.js +13 -0
  113. package/dist/models/GetLrsCredentials.d.ts +46 -0
  114. package/dist/models/GetLrsCredentials.js +60 -0
  115. package/dist/models/GetLrsStatementList.d.ts +57 -0
  116. package/dist/models/GetLrsStatementList.js +67 -0
  117. package/dist/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
  118. package/dist/models/GetQuestionAnswerChoicesInner.js +4 -0
  119. package/dist/models/GetQuizSettings.d.ts +56 -0
  120. package/dist/models/GetQuizSettings.js +64 -0
  121. package/dist/models/GetResourceSessionActivity.d.ts +2 -1
  122. package/dist/models/GetResourceSessionActivity.js +2 -1
  123. package/dist/models/H5pState.d.ts +34 -0
  124. package/dist/models/H5pState.js +50 -0
  125. package/dist/models/H5pStatementResult.d.ts +44 -0
  126. package/dist/models/H5pStatementResult.js +56 -0
  127. package/dist/models/HostedScormAccessPolicy.d.ts +1 -1
  128. package/dist/models/HostedScormOutlineEntry.d.ts +1 -1
  129. package/dist/models/LibraryQuizQuestionFeedback.d.ts +78 -0
  130. package/dist/models/LibraryQuizQuestionFeedback.js +74 -0
  131. package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
  132. package/dist/models/LibraryQuizSessionAnswerChoice.js +2 -0
  133. package/dist/models/LibraryQuizSessionQuestion.d.ts +19 -0
  134. package/dist/models/LibraryQuizSessionQuestion.js +11 -0
  135. package/dist/models/LrsCredential.d.ts +74 -0
  136. package/dist/models/LrsCredential.js +74 -0
  137. package/dist/models/LrsScope.d.ts +38 -0
  138. package/dist/models/LrsScope.js +54 -0
  139. package/dist/models/LrsStatement.d.ts +112 -0
  140. package/dist/models/LrsStatement.js +88 -0
  141. package/dist/models/PostCourseExport.d.ts +2 -1
  142. package/dist/models/PostCourseExport.js +2 -1
  143. package/dist/models/PostCourseVersionItem.d.ts +1 -1
  144. package/dist/models/PostDispatchCmi5Launch.d.ts +64 -0
  145. package/dist/models/PostDispatchCmi5Launch.js +70 -0
  146. package/dist/models/PostH5pStatement.d.ts +40 -0
  147. package/dist/models/PostH5pStatement.js +54 -0
  148. package/dist/models/PostLibraryQuiz.d.ts +21 -2
  149. package/dist/models/PostLibraryQuiz.js +7 -0
  150. package/dist/models/PostLrsCredential.d.ts +38 -0
  151. package/dist/models/PostLrsCredential.js +54 -0
  152. package/dist/models/PostLrsCredentialResponse.d.ts +45 -0
  153. package/dist/models/PostLrsCredentialResponse.js +59 -0
  154. package/dist/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
  155. package/dist/models/PostQuestionAnswerChoicesInner.js +2 -0
  156. package/dist/models/PutCourseVersionItem.d.ts +1 -1
  157. package/dist/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
  158. package/dist/models/PutLibraryQuizSessionQuestionFlag.js +50 -0
  159. package/dist/models/PutLibraryQuizVersion.d.ts +19 -0
  160. package/dist/models/PutLibraryQuizVersion.js +7 -0
  161. package/dist/models/PutLrsCredential.d.ts +38 -0
  162. package/dist/models/PutLrsCredential.js +50 -0
  163. package/dist/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
  164. package/dist/models/PutQuestionAnswerChoicesInner.js +2 -0
  165. package/dist/models/PutQuizSettings.d.ts +44 -0
  166. package/dist/models/PutQuizSettings.js +58 -0
  167. package/dist/models/QuizFeedbackTiming.d.ts +25 -0
  168. package/dist/models/QuizFeedbackTiming.js +51 -0
  169. package/dist/models/ResourceType.d.ts +2 -0
  170. package/dist/models/ResourceType.js +3 -1
  171. package/dist/models/index.d.ts +19 -0
  172. package/dist/models/index.js +19 -0
  173. package/docs/Cmi5Launch.md +39 -0
  174. package/docs/ContentLibraryApi.md +2 -2
  175. package/docs/ContentLibraryQuizApi.md +343 -0
  176. package/docs/DeleteLrsUserRecordsResponse.md +37 -0
  177. package/docs/DispatchApi.md +287 -0
  178. package/docs/GetAttemptAllowance.md +2 -0
  179. package/docs/GetLibraryQuizResult.md +10 -0
  180. package/docs/GetLibraryQuizSession.md +14 -0
  181. package/docs/GetLibraryQuizVersion.md +6 -0
  182. package/docs/GetLrsCredentials.md +38 -0
  183. package/docs/GetLrsStatementList.md +42 -0
  184. package/docs/GetQuestionAnswerChoicesInner.md +2 -0
  185. package/docs/GetQuizSettings.md +43 -0
  186. package/docs/H5pState.md +35 -0
  187. package/docs/H5pStatementResult.md +39 -0
  188. package/docs/LRSApi.md +531 -0
  189. package/docs/LibraryQuizQuestionFeedback.md +47 -0
  190. package/docs/LibraryQuizSessionAnswerChoice.md +2 -0
  191. package/docs/LibraryQuizSessionQuestion.md +6 -0
  192. package/docs/LrsCredential.md +49 -0
  193. package/docs/LrsScope.md +37 -0
  194. package/docs/LrsStatement.md +61 -0
  195. package/docs/PlayerApi.md +286 -1
  196. package/docs/PostDispatchCmi5Launch.md +45 -0
  197. package/docs/PostH5pStatement.md +37 -0
  198. package/docs/PostLibraryQuiz.md +6 -0
  199. package/docs/PostLrsCredential.md +36 -0
  200. package/docs/PostLrsCredentialResponse.md +39 -0
  201. package/docs/PostQuestionAnswerChoicesInner.md +2 -0
  202. package/docs/PutLibraryQuizSessionQuestionFlag.md +34 -0
  203. package/docs/PutLibraryQuizVersion.md +6 -0
  204. package/docs/PutLrsCredential.md +36 -0
  205. package/docs/PutQuestionAnswerChoicesInner.md +2 -0
  206. package/docs/PutQuizSettings.md +38 -0
  207. package/docs/QuizFeedbackTiming.md +33 -0
  208. package/package.json +1 -1
  209. package/src/apis/ContentLibraryQuizApi.ts +287 -0
  210. package/src/apis/DispatchApi.ts +243 -0
  211. package/src/apis/LRSApi.ts +486 -0
  212. package/src/apis/PlayerApi.ts +250 -0
  213. package/src/apis/index.ts +1 -0
  214. package/src/models/Cmi5Launch.ts +95 -0
  215. package/src/models/DeleteLrsUserRecordsResponse.ts +75 -0
  216. package/src/models/GetAttemptAllowance.ts +12 -3
  217. package/src/models/GetCourseExport.ts +3 -2
  218. package/src/models/GetCourseVersionItem.ts +1 -1
  219. package/src/models/GetLibraryQuizResult.ts +45 -0
  220. package/src/models/GetLibraryQuizSession.ts +69 -0
  221. package/src/models/GetLibraryQuizVersion.ts +34 -0
  222. package/src/models/GetLrsCredentials.ts +99 -0
  223. package/src/models/GetLrsStatementList.ts +110 -0
  224. package/src/models/GetQuestionAnswerChoicesInner.ts +9 -0
  225. package/src/models/GetQuizSettings.ts +101 -0
  226. package/src/models/GetResourceSessionActivity.ts +3 -2
  227. package/src/models/H5pState.ts +66 -0
  228. package/src/models/H5pStatementResult.ts +83 -0
  229. package/src/models/HostedScormAccessPolicy.ts +1 -1
  230. package/src/models/HostedScormOutlineEntry.ts +1 -1
  231. package/src/models/LibraryQuizQuestionFeedback.ts +135 -0
  232. package/src/models/LibraryQuizSessionAnswerChoice.ts +8 -0
  233. package/src/models/LibraryQuizSessionQuestion.ts +33 -0
  234. package/src/models/LrsCredential.ts +127 -0
  235. package/src/models/LrsScope.ts +75 -0
  236. package/src/models/LrsStatement.ts +176 -0
  237. package/src/models/PostCourseExport.ts +3 -2
  238. package/src/models/PostCourseVersionItem.ts +1 -1
  239. package/src/models/PostDispatchCmi5Launch.ts +111 -0
  240. package/src/models/PostH5pStatement.ts +75 -0
  241. package/src/models/PostLibraryQuiz.ts +33 -2
  242. package/src/models/PostLrsCredential.ts +75 -0
  243. package/src/models/PostLrsCredentialResponse.ts +92 -0
  244. package/src/models/PostQuestionAnswerChoicesInner.ts +8 -0
  245. package/src/models/PutCourseVersionItem.ts +1 -1
  246. package/src/models/PutLibraryQuizSessionQuestionFlag.ts +66 -0
  247. package/src/models/PutLibraryQuizVersion.ts +31 -0
  248. package/src/models/PutLrsCredential.ts +73 -0
  249. package/src/models/PutQuestionAnswerChoicesInner.ts +8 -0
  250. package/src/models/PutQuizSettings.ts +84 -0
  251. package/src/models/QuizFeedbackTiming.ts +53 -0
  252. package/src/models/ResourceType.ts +3 -1
  253. package/src/models/index.ts +19 -0
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the H5pStatementResult interface.
16
+ */
17
+ export function instanceOfH5pStatementResult(value) {
18
+ if (!('completionStatus' in value) || value['completionStatus'] === undefined)
19
+ return false;
20
+ if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function H5pStatementResultFromJSON(json) {
25
+ return H5pStatementResultFromJSONTyped(json, false);
26
+ }
27
+ export function H5pStatementResultFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'completionStatus': json['completion_status'],
33
+ 'gradeStatus': json['grade_status'],
34
+ 'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
35
+ };
36
+ }
37
+ export function H5pStatementResultToJSON(json) {
38
+ return H5pStatementResultToJSONTyped(json, false);
39
+ }
40
+ export function H5pStatementResultToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'completion_status': value['completionStatus'],
46
+ 'grade_status': value['gradeStatus'],
47
+ 'score_raw': value['scoreRaw'],
48
+ };
49
+ }
@@ -34,7 +34,7 @@ export interface HostedScormAccessPolicy {
34
34
  */
35
35
  validUntil: number | null;
36
36
  /**
37
- * Exact HTTP(S) origins. Empty permits any origin.
37
+ * Exact HTTP(S) origins. Empty permits any origin. For a CMI5 export the entries name the client's LRS and may also be endpoint URLs with a path (stored with a trailing slash), which permit only LRS endpoints under that path.
38
38
  * @type {Array<string>}
39
39
  * @memberof HostedScormAccessPolicy
40
40
  */
@@ -76,7 +76,7 @@ export interface HostedScormOutlineEntry {
76
76
  */
77
77
  attemptNumber: number | null;
78
78
  /**
79
- * Attempts the learner may take. For quizzes this includes any extra attempts granted to the learner; null for sections.
79
+ * Attempts the learner may take. For quizzes this includes any extra attempts granted to the learner, and zero means unlimited; null for sections.
80
80
  * @type {number}
81
81
  * @memberof HostedScormOutlineEntry
82
82
  */
@@ -0,0 +1,78 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RichTextDocument } from './RichTextDocument';
13
+ /**
14
+ * 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`.
15
+ * @export
16
+ * @interface LibraryQuizQuestionFeedback
17
+ */
18
+ export interface LibraryQuizQuestionFeedback {
19
+ /**
20
+ * Null while the answer is waiting for manual grading.
21
+ * @type {boolean}
22
+ * @memberof LibraryQuizQuestionFeedback
23
+ */
24
+ isCorrect?: boolean | null;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof LibraryQuizQuestionFeedback
29
+ */
30
+ pointsEarned: number;
31
+ /**
32
+ *
33
+ * @type {LibraryQuizQuestionFeedbackGradingStatusEnum}
34
+ * @memberof LibraryQuizQuestionFeedback
35
+ */
36
+ gradingStatus: LibraryQuizQuestionFeedbackGradingStatusEnum;
37
+ /**
38
+ * Correct answer-choice IDs. Present only when correct answers are shown.
39
+ * @type {Array<string>}
40
+ * @memberof LibraryQuizQuestionFeedback
41
+ */
42
+ correctChoiceIds?: Array<string>;
43
+ /**
44
+ * Correct text answer. Present only when correct answers are shown.
45
+ * @type {string}
46
+ * @memberof LibraryQuizQuestionFeedback
47
+ */
48
+ correctAnswer?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof LibraryQuizQuestionFeedback
53
+ */
54
+ explanation?: string | null;
55
+ /**
56
+ *
57
+ * @type {RichTextDocument}
58
+ * @memberof LibraryQuizQuestionFeedback
59
+ */
60
+ explanationRich?: RichTextDocument | null;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const LibraryQuizQuestionFeedbackGradingStatusEnum: {
66
+ readonly AutoGraded: "auto_graded";
67
+ readonly PendingReview: "pending_review";
68
+ readonly Graded: "graded";
69
+ };
70
+ export type LibraryQuizQuestionFeedbackGradingStatusEnum = typeof LibraryQuizQuestionFeedbackGradingStatusEnum[keyof typeof LibraryQuizQuestionFeedbackGradingStatusEnum];
71
+ /**
72
+ * Check if a given object implements the LibraryQuizQuestionFeedback interface.
73
+ */
74
+ export declare function instanceOfLibraryQuizQuestionFeedback(value: object): value is LibraryQuizQuestionFeedback;
75
+ export declare function LibraryQuizQuestionFeedbackFromJSON(json: any): LibraryQuizQuestionFeedback;
76
+ export declare function LibraryQuizQuestionFeedbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizQuestionFeedback;
77
+ export declare function LibraryQuizQuestionFeedbackToJSON(json: any): LibraryQuizQuestionFeedback;
78
+ export declare function LibraryQuizQuestionFeedbackToJSONTyped(value?: LibraryQuizQuestionFeedback | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
15
+ /**
16
+ * @export
17
+ */
18
+ export const LibraryQuizQuestionFeedbackGradingStatusEnum = {
19
+ AutoGraded: 'auto_graded',
20
+ PendingReview: 'pending_review',
21
+ Graded: 'graded'
22
+ };
23
+ /**
24
+ * Check if a given object implements the LibraryQuizQuestionFeedback interface.
25
+ */
26
+ export function instanceOfLibraryQuizQuestionFeedback(value) {
27
+ if (!('pointsEarned' in value) || value['pointsEarned'] === undefined)
28
+ return false;
29
+ if (!('gradingStatus' in value) || value['gradingStatus'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function LibraryQuizQuestionFeedbackFromJSON(json) {
34
+ return LibraryQuizQuestionFeedbackFromJSONTyped(json, false);
35
+ }
36
+ export function LibraryQuizQuestionFeedbackFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'isCorrect': json['is_correct'] == null ? undefined : json['is_correct'],
42
+ 'pointsEarned': json['points_earned'],
43
+ 'gradingStatus': json['grading_status'],
44
+ 'correctChoiceIds': json['correct_choice_ids'] == null ? undefined : json['correct_choice_ids'],
45
+ 'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
46
+ 'explanation': json['explanation'] == null ? undefined : json['explanation'],
47
+ 'explanationRich': json['explanation_rich'] == null ? undefined : RichTextDocumentFromJSON(json['explanation_rich']),
48
+ };
49
+ }
50
+ export function LibraryQuizQuestionFeedbackToJSON(json) {
51
+ return LibraryQuizQuestionFeedbackToJSONTyped(json, false);
52
+ }
53
+ export function LibraryQuizQuestionFeedbackToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'is_correct': value['isCorrect'],
59
+ 'points_earned': value['pointsEarned'],
60
+ 'grading_status': value['gradingStatus'],
61
+ 'correct_choice_ids': value['correctChoiceIds'],
62
+ 'correct_answer': value['correctAnswer'],
63
+ 'explanation': value['explanation'],
64
+ 'explanation_rich': RichTextDocumentToJSON(value['explanationRich']),
65
+ };
66
+ }
@@ -40,6 +40,12 @@ export interface LibraryQuizSessionAnswerChoice {
40
40
  * @memberof LibraryQuizSessionAnswerChoice
41
41
  */
42
42
  displayOrder: number;
43
+ /**
44
+ * This answer keeps its authored position when answers are randomized.
45
+ * @type {boolean}
46
+ * @memberof LibraryQuizSessionAnswerChoice
47
+ */
48
+ lockPosition?: boolean;
43
49
  }
44
50
  /**
45
51
  * Check if a given object implements the LibraryQuizSessionAnswerChoice interface.
@@ -36,6 +36,7 @@ export function LibraryQuizSessionAnswerChoiceFromJSONTyped(json, ignoreDiscrimi
36
36
  'text': json['text'],
37
37
  'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
38
38
  'displayOrder': json['display_order'],
39
+ 'lockPosition': json['lock_position'] == null ? undefined : json['lock_position'],
39
40
  };
40
41
  }
41
42
  export function LibraryQuizSessionAnswerChoiceToJSON(json) {
@@ -50,5 +51,6 @@ export function LibraryQuizSessionAnswerChoiceToJSONTyped(value, ignoreDiscrimin
50
51
  'text': value['text'],
51
52
  'text_rich': RichTextDocumentToJSON(value['textRich']),
52
53
  'display_order': value['displayOrder'],
54
+ 'lock_position': value['lockPosition'],
53
55
  };
54
56
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LibraryQuizQuestionFeedback } from './LibraryQuizQuestionFeedback';
12
13
  import type { RichTextDocument } from './RichTextDocument';
13
14
  import type { LibraryQuizSessionAnswerChoice } from './LibraryQuizSessionAnswerChoice';
14
15
  /**
@@ -65,6 +66,24 @@ export interface LibraryQuizSessionQuestion {
65
66
  * @memberof LibraryQuizSessionQuestion
66
67
  */
67
68
  isAnswered: boolean;
69
+ /**
70
+ * The learner flagged this question to come back to before submitting.
71
+ * @type {boolean}
72
+ * @memberof LibraryQuizSessionQuestion
73
+ */
74
+ isFlagged: boolean;
75
+ /**
76
+ * The learner checked this answer for immediate feedback. A checked answer can no longer be changed.
77
+ * @type {boolean}
78
+ * @memberof LibraryQuizSessionQuestion
79
+ */
80
+ isChecked: boolean;
81
+ /**
82
+ * Present once the answer has been checked for immediate feedback.
83
+ * @type {LibraryQuizQuestionFeedback}
84
+ * @memberof LibraryQuizSessionQuestion
85
+ */
86
+ feedback?: LibraryQuizQuestionFeedback | null;
68
87
  /**
69
88
  *
70
89
  * @type {{ [key: string]: any; }}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { LibraryQuizQuestionFeedbackFromJSON, LibraryQuizQuestionFeedbackToJSON, } from './LibraryQuizQuestionFeedback';
14
15
  import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
15
16
  import { LibraryQuizSessionAnswerChoiceFromJSON, LibraryQuizSessionAnswerChoiceToJSON, } from './LibraryQuizSessionAnswerChoice';
16
17
  /**
@@ -42,6 +43,10 @@ export function instanceOfLibraryQuizSessionQuestion(value) {
42
43
  return false;
43
44
  if (!('isAnswered' in value) || value['isAnswered'] === undefined)
44
45
  return false;
46
+ if (!('isFlagged' in value) || value['isFlagged'] === undefined)
47
+ return false;
48
+ if (!('isChecked' in value) || value['isChecked'] === undefined)
49
+ return false;
45
50
  return true;
46
51
  }
47
52
  export function LibraryQuizSessionQuestionFromJSON(json) {
@@ -60,6 +65,9 @@ export function LibraryQuizSessionQuestionFromJSONTyped(json, ignoreDiscriminato
60
65
  'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
61
66
  'answerChoices': (json['answer_choices'].map(LibraryQuizSessionAnswerChoiceFromJSON)),
62
67
  'isAnswered': json['is_answered'],
68
+ 'isFlagged': json['is_flagged'],
69
+ 'isChecked': json['is_checked'],
70
+ 'feedback': json['feedback'] == null ? undefined : LibraryQuizQuestionFeedbackFromJSON(json['feedback']),
63
71
  'answer': json['answer'] == null ? undefined : json['answer'],
64
72
  };
65
73
  }
@@ -79,6 +87,9 @@ export function LibraryQuizSessionQuestionToJSONTyped(value, ignoreDiscriminator
79
87
  'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
80
88
  'answer_choices': (value['answerChoices'].map(LibraryQuizSessionAnswerChoiceToJSON)),
81
89
  'is_answered': value['isAnswered'],
90
+ 'is_flagged': value['isFlagged'],
91
+ 'is_checked': value['isChecked'],
92
+ 'feedback': LibraryQuizQuestionFeedbackToJSON(value['feedback']),
82
93
  'answer': value['answer'],
83
94
  };
84
95
  }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A portal-scoped credential for the xAPI Learning Record Store. External systems use the key and secret as HTTP Basic credentials. The secret is never included here.
14
+ * @export
15
+ * @interface LrsCredential
16
+ */
17
+ export interface LrsCredential {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LrsCredential
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LrsCredential
28
+ */
29
+ name: string;
30
+ /**
31
+ * The HTTP Basic user name. Not secret.
32
+ * @type {string}
33
+ * @memberof LrsCredential
34
+ */
35
+ apiKey: string;
36
+ /**
37
+ *
38
+ * @type {Array<string>}
39
+ * @memberof LrsCredential
40
+ */
41
+ scopes: Array<string>;
42
+ /**
43
+ * Unix epoch timestamp
44
+ * @type {number}
45
+ * @memberof LrsCredential
46
+ */
47
+ createdAt: number;
48
+ /**
49
+ * Unix epoch timestamp
50
+ * @type {number}
51
+ * @memberof LrsCredential
52
+ */
53
+ updatedAt: number;
54
+ /**
55
+ * Unix epoch timestamp, refreshed at most every few minutes
56
+ * @type {number}
57
+ * @memberof LrsCredential
58
+ */
59
+ lastUsedAt?: number | null;
60
+ /**
61
+ * Unix epoch timestamp
62
+ * @type {number}
63
+ * @memberof LrsCredential
64
+ */
65
+ revokedAt?: number | null;
66
+ }
67
+ /**
68
+ * Check if a given object implements the LrsCredential interface.
69
+ */
70
+ export declare function instanceOfLrsCredential(value: object): value is LrsCredential;
71
+ export declare function LrsCredentialFromJSON(json: any): LrsCredential;
72
+ export declare function LrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsCredential;
73
+ export declare function LrsCredentialToJSON(json: any): LrsCredential;
74
+ export declare function LrsCredentialToJSONTyped(value?: LrsCredential | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the LrsCredential interface.
16
+ */
17
+ export function instanceOfLrsCredential(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('apiKey' in value) || value['apiKey'] === undefined)
23
+ return false;
24
+ if (!('scopes' in value) || value['scopes'] === undefined)
25
+ return false;
26
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function LrsCredentialFromJSON(json) {
33
+ return LrsCredentialFromJSONTyped(json, false);
34
+ }
35
+ export function LrsCredentialFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'name': json['name'],
42
+ 'apiKey': json['api_key'],
43
+ 'scopes': json['scopes'],
44
+ 'createdAt': json['created_at'],
45
+ 'updatedAt': json['updated_at'],
46
+ 'lastUsedAt': json['last_used_at'] == null ? undefined : json['last_used_at'],
47
+ 'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
48
+ };
49
+ }
50
+ export function LrsCredentialToJSON(json) {
51
+ return LrsCredentialToJSONTyped(json, false);
52
+ }
53
+ export function LrsCredentialToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'name': value['name'],
60
+ 'api_key': value['apiKey'],
61
+ 'scopes': value['scopes'],
62
+ 'created_at': value['createdAt'],
63
+ 'updated_at': value['updatedAt'],
64
+ 'last_used_at': value['lastUsedAt'],
65
+ 'revoked_at': value['revokedAt'],
66
+ };
67
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * An xAPI authorization scope that can be granted to an LRS credential.
14
+ * @export
15
+ * @interface LrsScope
16
+ */
17
+ export interface LrsScope {
18
+ /**
19
+ * The scope as defined by the xAPI specification, for example `statements/write`.
20
+ * @type {string}
21
+ * @memberof LrsScope
22
+ */
23
+ key: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LrsScope
28
+ */
29
+ description: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LrsScope interface.
33
+ */
34
+ export declare function instanceOfLrsScope(value: object): value is LrsScope;
35
+ export declare function LrsScopeFromJSON(json: any): LrsScope;
36
+ export declare function LrsScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsScope;
37
+ export declare function LrsScopeToJSON(json: any): LrsScope;
38
+ export declare function LrsScopeToJSONTyped(value?: LrsScope | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the LrsScope interface.
16
+ */
17
+ export function instanceOfLrsScope(value) {
18
+ if (!('key' in value) || value['key'] === undefined)
19
+ return false;
20
+ if (!('description' in value) || value['description'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function LrsScopeFromJSON(json) {
25
+ return LrsScopeFromJSONTyped(json, false);
26
+ }
27
+ export function LrsScopeFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'key': json['key'],
33
+ 'description': json['description'],
34
+ };
35
+ }
36
+ export function LrsScopeToJSON(json) {
37
+ return LrsScopeToJSONTyped(json, false);
38
+ }
39
+ export function LrsScopeToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'key': value['key'],
45
+ 'description': value['description'],
46
+ };
47
+ }
@@ -0,0 +1,112 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * An xAPI statement stored for the portal, with the fields administrators filter on.
14
+ * @export
15
+ * @interface LrsStatement
16
+ */
17
+ export interface LrsStatement {
18
+ /**
19
+ * The statement id.
20
+ * @type {string}
21
+ * @memberof LrsStatement
22
+ */
23
+ id: string;
24
+ /**
25
+ * Unix epoch timestamp of when the LRS stored the statement
26
+ * @type {number}
27
+ * @memberof LrsStatement
28
+ */
29
+ stored: number;
30
+ /**
31
+ * Unix epoch timestamp of when the experience happened
32
+ * @type {number}
33
+ * @memberof LrsStatement
34
+ */
35
+ timestamp: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof LrsStatement
40
+ */
41
+ verbId: string;
42
+ /**
43
+ * A display label for the verb, when the statement supplies one.
44
+ * @type {string}
45
+ * @memberof LrsStatement
46
+ */
47
+ verbDisplay?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof LrsStatement
52
+ */
53
+ actorName?: string | null;
54
+ /**
55
+ * Activity, Agent, Group, SubStatement, or StatementRef.
56
+ * @type {string}
57
+ * @memberof LrsStatement
58
+ */
59
+ objectType: string;
60
+ /**
61
+ * The activity id or referenced statement id, when the object has one.
62
+ * @type {string}
63
+ * @memberof LrsStatement
64
+ */
65
+ objectId?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof LrsStatement
70
+ */
71
+ objectName?: string | null;
72
+ /**
73
+ * The LMS user the statement's actor identifies, when it is a member of this portal.
74
+ * @type {string}
75
+ * @memberof LrsStatement
76
+ */
77
+ userId?: string | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof LrsStatement
82
+ */
83
+ registration?: string | null;
84
+ /**
85
+ * The LRS credential that stored the statement, when it still exists.
86
+ * @type {string}
87
+ * @memberof LrsStatement
88
+ */
89
+ credentialId?: string | null;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof LrsStatement
94
+ */
95
+ voided: boolean;
96
+ /**
97
+ * The complete statement exactly as stored.
98
+ * @type {{ [key: string]: any; }}
99
+ * @memberof LrsStatement
100
+ */
101
+ statement: {
102
+ [key: string]: any;
103
+ };
104
+ }
105
+ /**
106
+ * Check if a given object implements the LrsStatement interface.
107
+ */
108
+ export declare function instanceOfLrsStatement(value: object): value is LrsStatement;
109
+ export declare function LrsStatementFromJSON(json: any): LrsStatement;
110
+ export declare function LrsStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsStatement;
111
+ export declare function LrsStatementToJSON(json: any): LrsStatement;
112
+ export declare function LrsStatementToJSONTyped(value?: LrsStatement | null, ignoreDiscriminator?: boolean): any;