@easyedu/js-lsm-api 1.90.0 → 1.92.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 (241) hide show
  1. package/.openapi-generator/FILES +70 -0
  2. package/README.md +65 -2
  3. package/dist/apis/ContentLibraryQuizApi.d.ts +451 -0
  4. package/dist/apis/ContentLibraryQuizApi.js +1162 -0
  5. package/dist/apis/PlayerApi.d.ts +130 -1
  6. package/dist/apis/PlayerApi.js +257 -1
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +451 -0
  10. package/dist/esm/apis/ContentLibraryQuizApi.js +1158 -0
  11. package/dist/esm/apis/PlayerApi.d.ts +130 -1
  12. package/dist/esm/apis/PlayerApi.js +256 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/GetCourseVersionItem.d.ts +14 -0
  16. package/dist/esm/models/GetCourseVersionItem.js +9 -0
  17. package/dist/esm/models/GetLibraryQuiz.d.ts +124 -0
  18. package/dist/esm/models/GetLibraryQuiz.js +100 -0
  19. package/dist/esm/models/GetLibraryQuizAnalytics.d.ts +68 -0
  20. package/dist/esm/models/GetLibraryQuizAnalytics.js +67 -0
  21. package/dist/esm/models/GetLibraryQuizList.d.ts +57 -0
  22. package/dist/esm/models/GetLibraryQuizList.js +60 -0
  23. package/dist/esm/models/GetLibraryQuizResult.d.ts +94 -0
  24. package/dist/esm/models/GetLibraryQuizResult.js +79 -0
  25. package/dist/esm/models/GetLibraryQuizSession.d.ts +177 -0
  26. package/dist/esm/models/GetLibraryQuizSession.js +129 -0
  27. package/dist/esm/models/GetLibraryQuizSessionList.d.ts +57 -0
  28. package/dist/esm/models/GetLibraryQuizSessionList.js +60 -0
  29. package/dist/esm/models/GetLibraryQuizUsage.d.ts +56 -0
  30. package/dist/esm/models/GetLibraryQuizUsage.js +59 -0
  31. package/dist/esm/models/GetLibraryQuizVersion.d.ts +170 -0
  32. package/dist/esm/models/GetLibraryQuizVersion.js +125 -0
  33. package/dist/esm/models/GetResourceSession.d.ts +30 -0
  34. package/dist/esm/models/GetResourceSession.js +16 -0
  35. package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
  36. package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
  37. package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
  38. package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
  39. package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
  40. package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
  41. package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
  42. package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
  43. package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
  44. package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
  45. package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
  46. package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
  47. package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
  48. package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
  49. package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
  50. package/dist/esm/models/GetResourceSessionScormData.js +66 -0
  51. package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
  52. package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
  53. package/dist/esm/models/LibraryQuizCriterion.d.ts +95 -0
  54. package/dist/esm/models/LibraryQuizCriterion.js +76 -0
  55. package/dist/esm/models/LibraryQuizQuestion.d.ts +70 -0
  56. package/dist/esm/models/LibraryQuizQuestion.js +63 -0
  57. package/dist/esm/models/LibraryQuizQuestionInput.d.ts +50 -0
  58. package/dist/esm/models/LibraryQuizQuestionInput.js +51 -0
  59. package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
  60. package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +54 -0
  61. package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +96 -0
  62. package/dist/esm/models/LibraryQuizSessionQuestion.js +84 -0
  63. package/dist/esm/models/PostCourseLibraryQuizSession.d.ts +32 -0
  64. package/dist/esm/models/PostCourseLibraryQuizSession.js +41 -0
  65. package/dist/esm/models/PostLibraryQuiz.d.ts +107 -0
  66. package/dist/esm/models/PostLibraryQuiz.js +70 -0
  67. package/dist/esm/models/PostLibraryQuizSession.d.ts +32 -0
  68. package/dist/esm/models/PostLibraryQuizSession.js +41 -0
  69. package/dist/esm/models/PostLibraryQuizVersion.d.ts +32 -0
  70. package/dist/esm/models/PostLibraryQuizVersion.js +41 -0
  71. package/dist/esm/models/PutLibraryQuiz.d.ts +38 -0
  72. package/dist/esm/models/PutLibraryQuiz.js +43 -0
  73. package/dist/esm/models/PutLibraryQuizCriteria.d.ts +33 -0
  74. package/dist/esm/models/PutLibraryQuizCriteria.js +44 -0
  75. package/dist/esm/models/PutLibraryQuizQuestions.d.ts +33 -0
  76. package/dist/esm/models/PutLibraryQuizQuestions.js +44 -0
  77. package/dist/esm/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
  78. package/dist/esm/models/PutLibraryQuizSessionAnswer.js +45 -0
  79. package/dist/esm/models/PutLibraryQuizSessionGrade.d.ts +38 -0
  80. package/dist/esm/models/PutLibraryQuizSessionGrade.js +45 -0
  81. package/dist/esm/models/PutLibraryQuizVersion.d.ts +101 -0
  82. package/dist/esm/models/PutLibraryQuizVersion.js +64 -0
  83. package/dist/esm/models/QuestionSelectionMethod.d.ts +25 -0
  84. package/dist/esm/models/QuestionSelectionMethod.js +43 -0
  85. package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
  86. package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
  87. package/dist/esm/models/index.d.ts +34 -0
  88. package/dist/esm/models/index.js +34 -0
  89. package/dist/models/GetCourseVersionItem.d.ts +14 -0
  90. package/dist/models/GetCourseVersionItem.js +10 -1
  91. package/dist/models/GetLibraryQuiz.d.ts +124 -0
  92. package/dist/models/GetLibraryQuiz.js +108 -0
  93. package/dist/models/GetLibraryQuizAnalytics.d.ts +68 -0
  94. package/dist/models/GetLibraryQuizAnalytics.js +74 -0
  95. package/dist/models/GetLibraryQuizList.d.ts +57 -0
  96. package/dist/models/GetLibraryQuizList.js +67 -0
  97. package/dist/models/GetLibraryQuizResult.d.ts +94 -0
  98. package/dist/models/GetLibraryQuizResult.js +86 -0
  99. package/dist/models/GetLibraryQuizSession.d.ts +177 -0
  100. package/dist/models/GetLibraryQuizSession.js +137 -0
  101. package/dist/models/GetLibraryQuizSessionList.d.ts +57 -0
  102. package/dist/models/GetLibraryQuizSessionList.js +67 -0
  103. package/dist/models/GetLibraryQuizUsage.d.ts +56 -0
  104. package/dist/models/GetLibraryQuizUsage.js +66 -0
  105. package/dist/models/GetLibraryQuizVersion.d.ts +170 -0
  106. package/dist/models/GetLibraryQuizVersion.js +132 -0
  107. package/dist/models/GetResourceSession.d.ts +30 -0
  108. package/dist/models/GetResourceSession.js +16 -0
  109. package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
  110. package/dist/models/GetResourceSessionDiagnostics.js +76 -0
  111. package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
  112. package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
  113. package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
  114. package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
  115. package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
  116. package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
  117. package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
  118. package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
  119. package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
  120. package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
  121. package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
  122. package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
  123. package/dist/models/GetResourceSessionScormData.d.ts +77 -0
  124. package/dist/models/GetResourceSessionScormData.js +73 -0
  125. package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
  126. package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
  127. package/dist/models/LibraryQuizCriterion.d.ts +95 -0
  128. package/dist/models/LibraryQuizCriterion.js +84 -0
  129. package/dist/models/LibraryQuizQuestion.d.ts +70 -0
  130. package/dist/models/LibraryQuizQuestion.js +70 -0
  131. package/dist/models/LibraryQuizQuestionInput.d.ts +50 -0
  132. package/dist/models/LibraryQuizQuestionInput.js +58 -0
  133. package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
  134. package/dist/models/LibraryQuizSessionAnswerChoice.js +61 -0
  135. package/dist/models/LibraryQuizSessionQuestion.d.ts +96 -0
  136. package/dist/models/LibraryQuizSessionQuestion.js +92 -0
  137. package/dist/models/PostCourseLibraryQuizSession.d.ts +32 -0
  138. package/dist/models/PostCourseLibraryQuizSession.js +48 -0
  139. package/dist/models/PostLibraryQuiz.d.ts +107 -0
  140. package/dist/models/PostLibraryQuiz.js +77 -0
  141. package/dist/models/PostLibraryQuizSession.d.ts +32 -0
  142. package/dist/models/PostLibraryQuizSession.js +48 -0
  143. package/dist/models/PostLibraryQuizVersion.d.ts +32 -0
  144. package/dist/models/PostLibraryQuizVersion.js +48 -0
  145. package/dist/models/PutLibraryQuiz.d.ts +38 -0
  146. package/dist/models/PutLibraryQuiz.js +50 -0
  147. package/dist/models/PutLibraryQuizCriteria.d.ts +33 -0
  148. package/dist/models/PutLibraryQuizCriteria.js +51 -0
  149. package/dist/models/PutLibraryQuizQuestions.d.ts +33 -0
  150. package/dist/models/PutLibraryQuizQuestions.js +51 -0
  151. package/dist/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
  152. package/dist/models/PutLibraryQuizSessionAnswer.js +52 -0
  153. package/dist/models/PutLibraryQuizSessionGrade.d.ts +38 -0
  154. package/dist/models/PutLibraryQuizSessionGrade.js +52 -0
  155. package/dist/models/PutLibraryQuizVersion.d.ts +101 -0
  156. package/dist/models/PutLibraryQuizVersion.js +71 -0
  157. package/dist/models/QuestionSelectionMethod.d.ts +25 -0
  158. package/dist/models/QuestionSelectionMethod.js +51 -0
  159. package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
  160. package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
  161. package/dist/models/index.d.ts +34 -0
  162. package/dist/models/index.js +34 -0
  163. package/docs/ContentLibraryQuizApi.md +1780 -0
  164. package/docs/GetCourseVersionItem.md +2 -0
  165. package/docs/GetLibraryQuiz.md +62 -0
  166. package/docs/GetLibraryQuizAnalytics.md +46 -0
  167. package/docs/GetLibraryQuizList.md +42 -0
  168. package/docs/GetLibraryQuizResult.md +54 -0
  169. package/docs/GetLibraryQuizSession.md +78 -0
  170. package/docs/GetLibraryQuizSessionList.md +42 -0
  171. package/docs/GetLibraryQuizUsage.md +42 -0
  172. package/docs/GetLibraryQuizVersion.md +78 -0
  173. package/docs/GetResourceSession.md +10 -0
  174. package/docs/GetResourceSessionDiagnostics.md +47 -0
  175. package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
  176. package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
  177. package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
  178. package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
  179. package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
  180. package/docs/GetResourceSessionScormApiLogs.md +43 -0
  181. package/docs/GetResourceSessionScormData.md +49 -0
  182. package/docs/GetResourceSessionScormDataActivity.md +38 -0
  183. package/docs/LibraryQuizCriterion.md +48 -0
  184. package/docs/LibraryQuizQuestion.md +46 -0
  185. package/docs/LibraryQuizQuestionInput.md +40 -0
  186. package/docs/LibraryQuizSessionAnswerChoice.md +40 -0
  187. package/docs/LibraryQuizSessionQuestion.md +50 -0
  188. package/docs/PlayerApi.md +320 -3
  189. package/docs/PostCourseLibraryQuizSession.md +34 -0
  190. package/docs/PostLibraryQuiz.md +58 -0
  191. package/docs/PostLibraryQuizSession.md +34 -0
  192. package/docs/PostLibraryQuizVersion.md +34 -0
  193. package/docs/PutLibraryQuiz.md +36 -0
  194. package/docs/PutLibraryQuizCriteria.md +34 -0
  195. package/docs/PutLibraryQuizQuestions.md +34 -0
  196. package/docs/PutLibraryQuizSessionAnswer.md +36 -0
  197. package/docs/PutLibraryQuizSessionGrade.md +36 -0
  198. package/docs/PutLibraryQuizVersion.md +56 -0
  199. package/docs/QuestionSelectionMethod.md +32 -0
  200. package/docs/ResourceSessionScormApiLogItem.md +47 -0
  201. package/package.json +1 -1
  202. package/src/apis/ContentLibraryQuizApi.ts +1624 -0
  203. package/src/apis/PlayerApi.ts +351 -1
  204. package/src/apis/index.ts +1 -0
  205. package/src/models/GetCourseVersionItem.ts +17 -0
  206. package/src/models/GetLibraryQuiz.ts +207 -0
  207. package/src/models/GetLibraryQuizAnalytics.ts +120 -0
  208. package/src/models/GetLibraryQuizList.ts +110 -0
  209. package/src/models/GetLibraryQuizResult.ts +154 -0
  210. package/src/models/GetLibraryQuizSession.ts +286 -0
  211. package/src/models/GetLibraryQuizSessionList.ts +110 -0
  212. package/src/models/GetLibraryQuizUsage.ts +102 -0
  213. package/src/models/GetLibraryQuizVersion.ts +290 -0
  214. package/src/models/GetResourceSession.ts +43 -0
  215. package/src/models/GetResourceSessionDiagnostics.ts +161 -0
  216. package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
  217. package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
  218. package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
  219. package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
  220. package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
  221. package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
  222. package/src/models/GetResourceSessionScormData.ts +134 -0
  223. package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
  224. package/src/models/LibraryQuizCriterion.ts +147 -0
  225. package/src/models/LibraryQuizQuestion.ts +118 -0
  226. package/src/models/LibraryQuizQuestionInput.ts +91 -0
  227. package/src/models/LibraryQuizSessionAnswerChoice.ts +100 -0
  228. package/src/models/LibraryQuizSessionQuestion.ts +166 -0
  229. package/src/models/PostCourseLibraryQuizSession.ts +65 -0
  230. package/src/models/PostLibraryQuiz.ts +173 -0
  231. package/src/models/PostLibraryQuizSession.ts +65 -0
  232. package/src/models/PostLibraryQuizVersion.ts +65 -0
  233. package/src/models/PutLibraryQuiz.ts +73 -0
  234. package/src/models/PutLibraryQuizCriteria.ts +74 -0
  235. package/src/models/PutLibraryQuizQuestions.ts +74 -0
  236. package/src/models/PutLibraryQuizSessionAnswer.ts +74 -0
  237. package/src/models/PutLibraryQuizSessionGrade.ts +74 -0
  238. package/src/models/PutLibraryQuizVersion.ts +163 -0
  239. package/src/models/QuestionSelectionMethod.ts +53 -0
  240. package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
  241. package/src/models/index.ts +34 -0
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetLibraryQuizAnalytics = instanceOfGetLibraryQuizAnalytics;
17
+ exports.GetLibraryQuizAnalyticsFromJSON = GetLibraryQuizAnalyticsFromJSON;
18
+ exports.GetLibraryQuizAnalyticsFromJSONTyped = GetLibraryQuizAnalyticsFromJSONTyped;
19
+ exports.GetLibraryQuizAnalyticsToJSON = GetLibraryQuizAnalyticsToJSON;
20
+ exports.GetLibraryQuizAnalyticsToJSONTyped = GetLibraryQuizAnalyticsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetLibraryQuizAnalytics interface.
23
+ */
24
+ function instanceOfGetLibraryQuizAnalytics(value) {
25
+ if (!('quizId' in value) || value['quizId'] === undefined)
26
+ return false;
27
+ if (!('totalAttempts' in value) || value['totalAttempts'] === undefined)
28
+ return false;
29
+ if (!('completedAttempts' in value) || value['completedAttempts'] === undefined)
30
+ return false;
31
+ if (!('pendingReviewAttempts' in value) || value['pendingReviewAttempts'] === undefined)
32
+ return false;
33
+ if (!('averageScore' in value) || value['averageScore'] === undefined)
34
+ return false;
35
+ if (!('passRate' in value) || value['passRate'] === undefined)
36
+ return false;
37
+ if (!('averageDurationSeconds' in value) || value['averageDurationSeconds'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function GetLibraryQuizAnalyticsFromJSON(json) {
42
+ return GetLibraryQuizAnalyticsFromJSONTyped(json, false);
43
+ }
44
+ function GetLibraryQuizAnalyticsFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'quizId': json['quiz_id'],
50
+ 'totalAttempts': json['total_attempts'],
51
+ 'completedAttempts': json['completed_attempts'],
52
+ 'pendingReviewAttempts': json['pending_review_attempts'],
53
+ 'averageScore': json['average_score'],
54
+ 'passRate': json['pass_rate'],
55
+ 'averageDurationSeconds': json['average_duration_seconds'],
56
+ };
57
+ }
58
+ function GetLibraryQuizAnalyticsToJSON(json) {
59
+ return GetLibraryQuizAnalyticsToJSONTyped(json, false);
60
+ }
61
+ function GetLibraryQuizAnalyticsToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'quiz_id': value['quizId'],
67
+ 'total_attempts': value['totalAttempts'],
68
+ 'completed_attempts': value['completedAttempts'],
69
+ 'pending_review_attempts': value['pendingReviewAttempts'],
70
+ 'average_score': value['averageScore'],
71
+ 'pass_rate': value['passRate'],
72
+ 'average_duration_seconds': value['averageDurationSeconds'],
73
+ };
74
+ }
@@ -0,0 +1,57 @@
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 { GetLibraryQuiz } from './GetLibraryQuiz';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetLibraryQuizList
17
+ */
18
+ export interface GetLibraryQuizList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetLibraryQuizList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetLibraryQuizList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetLibraryQuizList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetLibraryQuizList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<GetLibraryQuiz>}
46
+ * @memberof GetLibraryQuizList
47
+ */
48
+ items: Array<GetLibraryQuiz>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetLibraryQuizList interface.
52
+ */
53
+ export declare function instanceOfGetLibraryQuizList(value: object): value is GetLibraryQuizList;
54
+ export declare function GetLibraryQuizListFromJSON(json: any): GetLibraryQuizList;
55
+ export declare function GetLibraryQuizListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLibraryQuizList;
56
+ export declare function GetLibraryQuizListToJSON(json: any): GetLibraryQuizList;
57
+ export declare function GetLibraryQuizListToJSONTyped(value?: GetLibraryQuizList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetLibraryQuizList = instanceOfGetLibraryQuizList;
17
+ exports.GetLibraryQuizListFromJSON = GetLibraryQuizListFromJSON;
18
+ exports.GetLibraryQuizListFromJSONTyped = GetLibraryQuizListFromJSONTyped;
19
+ exports.GetLibraryQuizListToJSON = GetLibraryQuizListToJSON;
20
+ exports.GetLibraryQuizListToJSONTyped = GetLibraryQuizListToJSONTyped;
21
+ const GetLibraryQuiz_1 = require("./GetLibraryQuiz");
22
+ /**
23
+ * Check if a given object implements the GetLibraryQuizList interface.
24
+ */
25
+ function instanceOfGetLibraryQuizList(value) {
26
+ if (!('page' in value) || value['page'] === undefined)
27
+ return false;
28
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
29
+ return false;
30
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
31
+ return false;
32
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
33
+ return false;
34
+ if (!('items' in value) || value['items'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function GetLibraryQuizListFromJSON(json) {
39
+ return GetLibraryQuizListFromJSONTyped(json, false);
40
+ }
41
+ function GetLibraryQuizListFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'page': json['page'],
47
+ 'pageSize': json['pageSize'],
48
+ 'totalPages': json['totalPages'],
49
+ 'totalItems': json['totalItems'],
50
+ 'items': (json['items'].map(GetLibraryQuiz_1.GetLibraryQuizFromJSON)),
51
+ };
52
+ }
53
+ function GetLibraryQuizListToJSON(json) {
54
+ return GetLibraryQuizListToJSONTyped(json, false);
55
+ }
56
+ function GetLibraryQuizListToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'page': value['page'],
62
+ 'pageSize': value['pageSize'],
63
+ 'totalPages': value['totalPages'],
64
+ 'totalItems': value['totalItems'],
65
+ 'items': (value['items'].map(GetLibraryQuiz_1.GetLibraryQuizToJSON)),
66
+ };
67
+ }
@@ -0,0 +1,94 @@
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
+ *
14
+ * @export
15
+ * @interface GetLibraryQuizResult
16
+ */
17
+ export interface GetLibraryQuizResult {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetLibraryQuizResult
22
+ */
23
+ sessionId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetLibraryQuizResult
28
+ */
29
+ status: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetLibraryQuizResult
34
+ */
35
+ totalQuestions: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetLibraryQuizResult
40
+ */
41
+ questionsAnswered: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof GetLibraryQuizResult
46
+ */
47
+ correctAnswers: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof GetLibraryQuizResult
52
+ */
53
+ totalPoints: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof GetLibraryQuizResult
58
+ */
59
+ pointsEarned: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof GetLibraryQuizResult
64
+ */
65
+ scorePercentage?: number | null;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof GetLibraryQuizResult
70
+ */
71
+ passed?: boolean | null;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof GetLibraryQuizResult
76
+ */
77
+ pendingManualGrading: boolean;
78
+ /**
79
+ *
80
+ * @type {Array<{ [key: string]: any; }>}
81
+ * @memberof GetLibraryQuizResult
82
+ */
83
+ questions: Array<{
84
+ [key: string]: any;
85
+ }>;
86
+ }
87
+ /**
88
+ * Check if a given object implements the GetLibraryQuizResult interface.
89
+ */
90
+ export declare function instanceOfGetLibraryQuizResult(value: object): value is GetLibraryQuizResult;
91
+ export declare function GetLibraryQuizResultFromJSON(json: any): GetLibraryQuizResult;
92
+ export declare function GetLibraryQuizResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLibraryQuizResult;
93
+ export declare function GetLibraryQuizResultToJSON(json: any): GetLibraryQuizResult;
94
+ export declare function GetLibraryQuizResultToJSONTyped(value?: GetLibraryQuizResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetLibraryQuizResult = instanceOfGetLibraryQuizResult;
17
+ exports.GetLibraryQuizResultFromJSON = GetLibraryQuizResultFromJSON;
18
+ exports.GetLibraryQuizResultFromJSONTyped = GetLibraryQuizResultFromJSONTyped;
19
+ exports.GetLibraryQuizResultToJSON = GetLibraryQuizResultToJSON;
20
+ exports.GetLibraryQuizResultToJSONTyped = GetLibraryQuizResultToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetLibraryQuizResult interface.
23
+ */
24
+ function instanceOfGetLibraryQuizResult(value) {
25
+ if (!('sessionId' in value) || value['sessionId'] === undefined)
26
+ return false;
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
30
+ return false;
31
+ if (!('questionsAnswered' in value) || value['questionsAnswered'] === undefined)
32
+ return false;
33
+ if (!('correctAnswers' in value) || value['correctAnswers'] === undefined)
34
+ return false;
35
+ if (!('totalPoints' in value) || value['totalPoints'] === undefined)
36
+ return false;
37
+ if (!('pointsEarned' in value) || value['pointsEarned'] === undefined)
38
+ return false;
39
+ if (!('pendingManualGrading' in value) || value['pendingManualGrading'] === undefined)
40
+ return false;
41
+ if (!('questions' in value) || value['questions'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function GetLibraryQuizResultFromJSON(json) {
46
+ return GetLibraryQuizResultFromJSONTyped(json, false);
47
+ }
48
+ function GetLibraryQuizResultFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'sessionId': json['session_id'],
54
+ 'status': json['status'],
55
+ 'totalQuestions': json['total_questions'],
56
+ 'questionsAnswered': json['questions_answered'],
57
+ 'correctAnswers': json['correct_answers'],
58
+ 'totalPoints': json['total_points'],
59
+ 'pointsEarned': json['points_earned'],
60
+ 'scorePercentage': json['score_percentage'] == null ? undefined : json['score_percentage'],
61
+ 'passed': json['passed'] == null ? undefined : json['passed'],
62
+ 'pendingManualGrading': json['pending_manual_grading'],
63
+ 'questions': json['questions'],
64
+ };
65
+ }
66
+ function GetLibraryQuizResultToJSON(json) {
67
+ return GetLibraryQuizResultToJSONTyped(json, false);
68
+ }
69
+ function GetLibraryQuizResultToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'session_id': value['sessionId'],
75
+ 'status': value['status'],
76
+ 'total_questions': value['totalQuestions'],
77
+ 'questions_answered': value['questionsAnswered'],
78
+ 'correct_answers': value['correctAnswers'],
79
+ 'total_points': value['totalPoints'],
80
+ 'points_earned': value['pointsEarned'],
81
+ 'score_percentage': value['scorePercentage'],
82
+ 'passed': value['passed'],
83
+ 'pending_manual_grading': value['pendingManualGrading'],
84
+ 'questions': value['questions'],
85
+ };
86
+ }
@@ -0,0 +1,177 @@
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 { ResourceSessionEnvironment } from './ResourceSessionEnvironment';
13
+ import type { LibraryQuizSessionQuestion } from './LibraryQuizSessionQuestion';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetLibraryQuizSession
18
+ */
19
+ export interface GetLibraryQuizSession {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof GetLibraryQuizSession
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof GetLibraryQuizSession
30
+ */
31
+ userId: string;
32
+ /**
33
+ *
34
+ * @type {ResourceSessionEnvironment}
35
+ * @memberof GetLibraryQuizSession
36
+ */
37
+ environment: ResourceSessionEnvironment;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof GetLibraryQuizSession
42
+ */
43
+ courseId?: string | null;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof GetLibraryQuizSession
48
+ */
49
+ courseVersionId?: string | null;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof GetLibraryQuizSession
54
+ */
55
+ itemId?: string | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof GetLibraryQuizSession
60
+ */
61
+ quizId: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof GetLibraryQuizSession
66
+ */
67
+ quizVersionId: string;
68
+ /**
69
+ *
70
+ * @type {number}
71
+ * @memberof GetLibraryQuizSession
72
+ */
73
+ quizVersionNumber: number;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof GetLibraryQuizSession
78
+ */
79
+ quizName: string;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof GetLibraryQuizSession
84
+ */
85
+ attemptNumber: number;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof GetLibraryQuizSession
90
+ */
91
+ isCurrent: boolean;
92
+ /**
93
+ *
94
+ * @type {GetLibraryQuizSessionStatusEnum}
95
+ * @memberof GetLibraryQuizSession
96
+ */
97
+ status: GetLibraryQuizSessionStatusEnum;
98
+ /**
99
+ *
100
+ * @type {number}
101
+ * @memberof GetLibraryQuizSession
102
+ */
103
+ questionsAnswered: number;
104
+ /**
105
+ *
106
+ * @type {number}
107
+ * @memberof GetLibraryQuizSession
108
+ */
109
+ totalQuestions: number;
110
+ /**
111
+ *
112
+ * @type {number}
113
+ * @memberof GetLibraryQuizSession
114
+ */
115
+ scorePercentage?: number | null;
116
+ /**
117
+ *
118
+ * @type {boolean}
119
+ * @memberof GetLibraryQuizSession
120
+ */
121
+ passed?: boolean | null;
122
+ /**
123
+ *
124
+ * @type {number}
125
+ * @memberof GetLibraryQuizSession
126
+ */
127
+ timeLimitAt?: number | null;
128
+ /**
129
+ *
130
+ * @type {string}
131
+ * @memberof GetLibraryQuizSession
132
+ */
133
+ launchUrl: string;
134
+ /**
135
+ *
136
+ * @type {Array<LibraryQuizSessionQuestion>}
137
+ * @memberof GetLibraryQuizSession
138
+ */
139
+ questions: Array<LibraryQuizSessionQuestion>;
140
+ /**
141
+ *
142
+ * @type {number}
143
+ * @memberof GetLibraryQuizSession
144
+ */
145
+ createdAt: number;
146
+ /**
147
+ *
148
+ * @type {number}
149
+ * @memberof GetLibraryQuizSession
150
+ */
151
+ updatedAt: number;
152
+ /**
153
+ *
154
+ * @type {number}
155
+ * @memberof GetLibraryQuizSession
156
+ */
157
+ completedAt?: number | null;
158
+ }
159
+ /**
160
+ * @export
161
+ */
162
+ export declare const GetLibraryQuizSessionStatusEnum: {
163
+ readonly InProgress: "in_progress";
164
+ readonly PendingReview: "pending_review";
165
+ readonly Completed: "completed";
166
+ readonly TimedOut: "timed_out";
167
+ readonly Abandoned: "abandoned";
168
+ };
169
+ export type GetLibraryQuizSessionStatusEnum = typeof GetLibraryQuizSessionStatusEnum[keyof typeof GetLibraryQuizSessionStatusEnum];
170
+ /**
171
+ * Check if a given object implements the GetLibraryQuizSession interface.
172
+ */
173
+ export declare function instanceOfGetLibraryQuizSession(value: object): value is GetLibraryQuizSession;
174
+ export declare function GetLibraryQuizSessionFromJSON(json: any): GetLibraryQuizSession;
175
+ export declare function GetLibraryQuizSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLibraryQuizSession;
176
+ export declare function GetLibraryQuizSessionToJSON(json: any): GetLibraryQuizSession;
177
+ export declare function GetLibraryQuizSessionToJSONTyped(value?: GetLibraryQuizSession | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetLibraryQuizSessionStatusEnum = void 0;
17
+ exports.instanceOfGetLibraryQuizSession = instanceOfGetLibraryQuizSession;
18
+ exports.GetLibraryQuizSessionFromJSON = GetLibraryQuizSessionFromJSON;
19
+ exports.GetLibraryQuizSessionFromJSONTyped = GetLibraryQuizSessionFromJSONTyped;
20
+ exports.GetLibraryQuizSessionToJSON = GetLibraryQuizSessionToJSON;
21
+ exports.GetLibraryQuizSessionToJSONTyped = GetLibraryQuizSessionToJSONTyped;
22
+ const ResourceSessionEnvironment_1 = require("./ResourceSessionEnvironment");
23
+ const LibraryQuizSessionQuestion_1 = require("./LibraryQuizSessionQuestion");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.GetLibraryQuizSessionStatusEnum = {
28
+ InProgress: 'in_progress',
29
+ PendingReview: 'pending_review',
30
+ Completed: 'completed',
31
+ TimedOut: 'timed_out',
32
+ Abandoned: 'abandoned'
33
+ };
34
+ /**
35
+ * Check if a given object implements the GetLibraryQuizSession interface.
36
+ */
37
+ function instanceOfGetLibraryQuizSession(value) {
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('userId' in value) || value['userId'] === undefined)
41
+ return false;
42
+ if (!('environment' in value) || value['environment'] === undefined)
43
+ return false;
44
+ if (!('quizId' in value) || value['quizId'] === undefined)
45
+ return false;
46
+ if (!('quizVersionId' in value) || value['quizVersionId'] === undefined)
47
+ return false;
48
+ if (!('quizVersionNumber' in value) || value['quizVersionNumber'] === undefined)
49
+ return false;
50
+ if (!('quizName' in value) || value['quizName'] === undefined)
51
+ return false;
52
+ if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
53
+ return false;
54
+ if (!('isCurrent' in value) || value['isCurrent'] === undefined)
55
+ return false;
56
+ if (!('status' in value) || value['status'] === undefined)
57
+ return false;
58
+ if (!('questionsAnswered' in value) || value['questionsAnswered'] === undefined)
59
+ return false;
60
+ if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
61
+ return false;
62
+ if (!('launchUrl' in value) || value['launchUrl'] === undefined)
63
+ return false;
64
+ if (!('questions' in value) || value['questions'] === undefined)
65
+ return false;
66
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
67
+ return false;
68
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
69
+ return false;
70
+ return true;
71
+ }
72
+ function GetLibraryQuizSessionFromJSON(json) {
73
+ return GetLibraryQuizSessionFromJSONTyped(json, false);
74
+ }
75
+ function GetLibraryQuizSessionFromJSONTyped(json, ignoreDiscriminator) {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+ 'id': json['id'],
81
+ 'userId': json['user_id'],
82
+ 'environment': (0, ResourceSessionEnvironment_1.ResourceSessionEnvironmentFromJSON)(json['environment']),
83
+ 'courseId': json['course_id'] == null ? undefined : json['course_id'],
84
+ 'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
85
+ 'itemId': json['item_id'] == null ? undefined : json['item_id'],
86
+ 'quizId': json['quiz_id'],
87
+ 'quizVersionId': json['quiz_version_id'],
88
+ 'quizVersionNumber': json['quiz_version_number'],
89
+ 'quizName': json['quiz_name'],
90
+ 'attemptNumber': json['attempt_number'],
91
+ 'isCurrent': json['is_current'],
92
+ 'status': json['status'],
93
+ 'questionsAnswered': json['questions_answered'],
94
+ 'totalQuestions': json['total_questions'],
95
+ 'scorePercentage': json['score_percentage'] == null ? undefined : json['score_percentage'],
96
+ 'passed': json['passed'] == null ? undefined : json['passed'],
97
+ 'timeLimitAt': json['time_limit_at'] == null ? undefined : json['time_limit_at'],
98
+ 'launchUrl': json['launch_url'],
99
+ 'questions': (json['questions'].map(LibraryQuizSessionQuestion_1.LibraryQuizSessionQuestionFromJSON)),
100
+ 'createdAt': json['created_at'],
101
+ 'updatedAt': json['updated_at'],
102
+ 'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
103
+ };
104
+ }
105
+ function GetLibraryQuizSessionToJSON(json) {
106
+ return GetLibraryQuizSessionToJSONTyped(json, false);
107
+ }
108
+ function GetLibraryQuizSessionToJSONTyped(value, ignoreDiscriminator = false) {
109
+ if (value == null) {
110
+ return value;
111
+ }
112
+ return {
113
+ 'id': value['id'],
114
+ 'user_id': value['userId'],
115
+ 'environment': (0, ResourceSessionEnvironment_1.ResourceSessionEnvironmentToJSON)(value['environment']),
116
+ 'course_id': value['courseId'],
117
+ 'course_version_id': value['courseVersionId'],
118
+ 'item_id': value['itemId'],
119
+ 'quiz_id': value['quizId'],
120
+ 'quiz_version_id': value['quizVersionId'],
121
+ 'quiz_version_number': value['quizVersionNumber'],
122
+ 'quiz_name': value['quizName'],
123
+ 'attempt_number': value['attemptNumber'],
124
+ 'is_current': value['isCurrent'],
125
+ 'status': value['status'],
126
+ 'questions_answered': value['questionsAnswered'],
127
+ 'total_questions': value['totalQuestions'],
128
+ 'score_percentage': value['scorePercentage'],
129
+ 'passed': value['passed'],
130
+ 'time_limit_at': value['timeLimitAt'],
131
+ 'launch_url': value['launchUrl'],
132
+ 'questions': (value['questions'].map(LibraryQuizSessionQuestion_1.LibraryQuizSessionQuestionToJSON)),
133
+ 'created_at': value['createdAt'],
134
+ 'updated_at': value['updatedAt'],
135
+ 'completed_at': value['completedAt'],
136
+ };
137
+ }