@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,77 @@
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 { GetResourceSessionScormDataActivity } from './GetResourceSessionScormDataActivity';
13
+ /**
14
+ * Current SCORM CMI state for a reusable resource session.
15
+ * @export
16
+ * @interface GetResourceSessionScormData
17
+ */
18
+ export interface GetResourceSessionScormData {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof GetResourceSessionScormData
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GetResourceSessionScormData
29
+ */
30
+ scormVersion: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GetResourceSessionScormData
35
+ */
36
+ createdAt: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof GetResourceSessionScormData
41
+ */
42
+ updatedAt: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof GetResourceSessionScormData
47
+ */
48
+ initializedAt?: number | null;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof GetResourceSessionScormData
53
+ */
54
+ terminatedAt?: number | null;
55
+ /**
56
+ *
57
+ * @type {GetResourceSessionScormDataActivity}
58
+ * @memberof GetResourceSessionScormData
59
+ */
60
+ activity?: GetResourceSessionScormDataActivity | null;
61
+ /**
62
+ *
63
+ * @type {{ [key: string]: string; }}
64
+ * @memberof GetResourceSessionScormData
65
+ */
66
+ cmiData: {
67
+ [key: string]: string;
68
+ };
69
+ }
70
+ /**
71
+ * Check if a given object implements the GetResourceSessionScormData interface.
72
+ */
73
+ export declare function instanceOfGetResourceSessionScormData(value: object): value is GetResourceSessionScormData;
74
+ export declare function GetResourceSessionScormDataFromJSON(json: any): GetResourceSessionScormData;
75
+ export declare function GetResourceSessionScormDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormData;
76
+ export declare function GetResourceSessionScormDataToJSON(json: any): GetResourceSessionScormData;
77
+ export declare function GetResourceSessionScormDataToJSONTyped(value?: GetResourceSessionScormData | 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 { GetResourceSessionScormDataActivityFromJSON, GetResourceSessionScormDataActivityToJSON, } from './GetResourceSessionScormDataActivity';
15
+ /**
16
+ * Check if a given object implements the GetResourceSessionScormData interface.
17
+ */
18
+ export function instanceOfGetResourceSessionScormData(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('scormVersion' in value) || value['scormVersion'] === undefined)
22
+ return false;
23
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
24
+ return false;
25
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
26
+ return false;
27
+ if (!('cmiData' in value) || value['cmiData'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetResourceSessionScormDataFromJSON(json) {
32
+ return GetResourceSessionScormDataFromJSONTyped(json, false);
33
+ }
34
+ export function GetResourceSessionScormDataFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'scormVersion': json['scorm_version'],
41
+ 'createdAt': json['created_at'],
42
+ 'updatedAt': json['updated_at'],
43
+ 'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
44
+ 'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
45
+ 'activity': json['activity'] == null ? undefined : GetResourceSessionScormDataActivityFromJSON(json['activity']),
46
+ 'cmiData': json['cmi_data'],
47
+ };
48
+ }
49
+ export function GetResourceSessionScormDataToJSON(json) {
50
+ return GetResourceSessionScormDataToJSONTyped(json, false);
51
+ }
52
+ export function GetResourceSessionScormDataToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'scorm_version': value['scormVersion'],
59
+ 'created_at': value['createdAt'],
60
+ 'updated_at': value['updatedAt'],
61
+ 'initialized_at': value['initializedAt'],
62
+ 'terminated_at': value['terminatedAt'],
63
+ 'activity': GetResourceSessionScormDataActivityToJSON(value['activity']),
64
+ 'cmi_data': value['cmiData'],
65
+ };
66
+ }
@@ -0,0 +1,44 @@
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 GetResourceSessionScormDataActivity
16
+ */
17
+ export interface GetResourceSessionScormDataActivity {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetResourceSessionScormDataActivity
22
+ */
23
+ identifier?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetResourceSessionScormDataActivity
28
+ */
29
+ name?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetResourceSessionScormDataActivity
34
+ */
35
+ launchPath?: string | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the GetResourceSessionScormDataActivity interface.
39
+ */
40
+ export declare function instanceOfGetResourceSessionScormDataActivity(value: object): value is GetResourceSessionScormDataActivity;
41
+ export declare function GetResourceSessionScormDataActivityFromJSON(json: any): GetResourceSessionScormDataActivity;
42
+ export declare function GetResourceSessionScormDataActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormDataActivity;
43
+ export declare function GetResourceSessionScormDataActivityToJSON(json: any): GetResourceSessionScormDataActivity;
44
+ export declare function GetResourceSessionScormDataActivityToJSONTyped(value?: GetResourceSessionScormDataActivity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 GetResourceSessionScormDataActivity interface.
16
+ */
17
+ export function instanceOfGetResourceSessionScormDataActivity(value) {
18
+ return true;
19
+ }
20
+ export function GetResourceSessionScormDataActivityFromJSON(json) {
21
+ return GetResourceSessionScormDataActivityFromJSONTyped(json, false);
22
+ }
23
+ export function GetResourceSessionScormDataActivityFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'launchPath': json['launch_path'] == null ? undefined : json['launch_path'],
31
+ };
32
+ }
33
+ export function GetResourceSessionScormDataActivityToJSON(json) {
34
+ return GetResourceSessionScormDataActivityToJSONTyped(json, false);
35
+ }
36
+ export function GetResourceSessionScormDataActivityToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'identifier': value['identifier'],
42
+ 'name': value['name'],
43
+ 'launch_path': value['launchPath'],
44
+ };
45
+ }
@@ -0,0 +1,95 @@
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 LibraryQuizCriterion
16
+ */
17
+ export interface LibraryQuizCriterion {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LibraryQuizCriterion
22
+ */
23
+ id?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LibraryQuizCriterion
28
+ */
29
+ topic?: string | null;
30
+ /**
31
+ *
32
+ * @type {LibraryQuizCriterionDifficultyLevelEnum}
33
+ * @memberof LibraryQuizCriterion
34
+ */
35
+ difficultyLevel?: LibraryQuizCriterionDifficultyLevelEnum | null;
36
+ /**
37
+ *
38
+ * @type {LibraryQuizCriterionQuestionTypeEnum}
39
+ * @memberof LibraryQuizCriterion
40
+ */
41
+ questionType?: LibraryQuizCriterionQuestionTypeEnum | null;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof LibraryQuizCriterion
46
+ */
47
+ tags?: Array<string>;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof LibraryQuizCriterion
52
+ */
53
+ minQuestions?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof LibraryQuizCriterion
58
+ */
59
+ maxQuestions?: number | null;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof LibraryQuizCriterion
64
+ */
65
+ priority: number;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const LibraryQuizCriterionDifficultyLevelEnum: {
71
+ readonly Beginner: "beginner";
72
+ readonly Intermediate: "intermediate";
73
+ readonly Advanced: "advanced";
74
+ };
75
+ export type LibraryQuizCriterionDifficultyLevelEnum = typeof LibraryQuizCriterionDifficultyLevelEnum[keyof typeof LibraryQuizCriterionDifficultyLevelEnum];
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const LibraryQuizCriterionQuestionTypeEnum: {
80
+ readonly SingleAnswer: "single_answer";
81
+ readonly MultipleAnswer: "multiple_answer";
82
+ readonly FillInBlank: "fill_in_blank";
83
+ readonly ShortAnswer: "short_answer";
84
+ readonly Matching: "matching";
85
+ readonly Essay: "essay";
86
+ };
87
+ export type LibraryQuizCriterionQuestionTypeEnum = typeof LibraryQuizCriterionQuestionTypeEnum[keyof typeof LibraryQuizCriterionQuestionTypeEnum];
88
+ /**
89
+ * Check if a given object implements the LibraryQuizCriterion interface.
90
+ */
91
+ export declare function instanceOfLibraryQuizCriterion(value: object): value is LibraryQuizCriterion;
92
+ export declare function LibraryQuizCriterionFromJSON(json: any): LibraryQuizCriterion;
93
+ export declare function LibraryQuizCriterionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizCriterion;
94
+ export declare function LibraryQuizCriterionToJSON(json: any): LibraryQuizCriterion;
95
+ export declare function LibraryQuizCriterionToJSONTyped(value?: LibraryQuizCriterion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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
+ * @export
16
+ */
17
+ export const LibraryQuizCriterionDifficultyLevelEnum = {
18
+ Beginner: 'beginner',
19
+ Intermediate: 'intermediate',
20
+ Advanced: 'advanced'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const LibraryQuizCriterionQuestionTypeEnum = {
26
+ SingleAnswer: 'single_answer',
27
+ MultipleAnswer: 'multiple_answer',
28
+ FillInBlank: 'fill_in_blank',
29
+ ShortAnswer: 'short_answer',
30
+ Matching: 'matching',
31
+ Essay: 'essay'
32
+ };
33
+ /**
34
+ * Check if a given object implements the LibraryQuizCriterion interface.
35
+ */
36
+ export function instanceOfLibraryQuizCriterion(value) {
37
+ if (!('priority' in value) || value['priority'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function LibraryQuizCriterionFromJSON(json) {
42
+ return LibraryQuizCriterionFromJSONTyped(json, false);
43
+ }
44
+ export function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'] == null ? undefined : json['id'],
50
+ 'topic': json['topic'] == null ? undefined : json['topic'],
51
+ 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
52
+ 'questionType': json['question_type'] == null ? undefined : json['question_type'],
53
+ 'tags': json['tags'] == null ? undefined : json['tags'],
54
+ 'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
55
+ 'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
56
+ 'priority': json['priority'],
57
+ };
58
+ }
59
+ export function LibraryQuizCriterionToJSON(json) {
60
+ return LibraryQuizCriterionToJSONTyped(json, false);
61
+ }
62
+ export function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'id': value['id'],
68
+ 'topic': value['topic'],
69
+ 'difficulty_level': value['difficultyLevel'],
70
+ 'question_type': value['questionType'],
71
+ 'tags': value['tags'],
72
+ 'min_questions': value['minQuestions'],
73
+ 'max_questions': value['maxQuestions'],
74
+ 'priority': value['priority'],
75
+ };
76
+ }
@@ -0,0 +1,70 @@
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 LibraryQuizQuestion
16
+ */
17
+ export interface LibraryQuizQuestion {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LibraryQuizQuestion
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LibraryQuizQuestion
28
+ */
29
+ questionId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof LibraryQuizQuestion
34
+ */
35
+ questionGroupId?: string | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof LibraryQuizQuestion
40
+ */
41
+ displayOrder: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof LibraryQuizQuestion
46
+ */
47
+ points: number;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof LibraryQuizQuestion
52
+ */
53
+ versionLocked: boolean;
54
+ /**
55
+ *
56
+ * @type {{ [key: string]: any; }}
57
+ * @memberof LibraryQuizQuestion
58
+ */
59
+ snapshot?: {
60
+ [key: string]: any;
61
+ } | null;
62
+ }
63
+ /**
64
+ * Check if a given object implements the LibraryQuizQuestion interface.
65
+ */
66
+ export declare function instanceOfLibraryQuizQuestion(value: object): value is LibraryQuizQuestion;
67
+ export declare function LibraryQuizQuestionFromJSON(json: any): LibraryQuizQuestion;
68
+ export declare function LibraryQuizQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizQuestion;
69
+ export declare function LibraryQuizQuestionToJSON(json: any): LibraryQuizQuestion;
70
+ export declare function LibraryQuizQuestionToJSONTyped(value?: LibraryQuizQuestion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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 LibraryQuizQuestion interface.
16
+ */
17
+ export function instanceOfLibraryQuizQuestion(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('questionId' in value) || value['questionId'] === undefined)
21
+ return false;
22
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
23
+ return false;
24
+ if (!('points' in value) || value['points'] === undefined)
25
+ return false;
26
+ if (!('versionLocked' in value) || value['versionLocked'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function LibraryQuizQuestionFromJSON(json) {
31
+ return LibraryQuizQuestionFromJSONTyped(json, false);
32
+ }
33
+ export function LibraryQuizQuestionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'questionId': json['question_id'],
40
+ 'questionGroupId': json['question_group_id'] == null ? undefined : json['question_group_id'],
41
+ 'displayOrder': json['display_order'],
42
+ 'points': json['points'],
43
+ 'versionLocked': json['version_locked'],
44
+ 'snapshot': json['snapshot'] == null ? undefined : json['snapshot'],
45
+ };
46
+ }
47
+ export function LibraryQuizQuestionToJSON(json) {
48
+ return LibraryQuizQuestionToJSONTyped(json, false);
49
+ }
50
+ export function LibraryQuizQuestionToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'question_id': value['questionId'],
57
+ 'question_group_id': value['questionGroupId'],
58
+ 'display_order': value['displayOrder'],
59
+ 'points': value['points'],
60
+ 'version_locked': value['versionLocked'],
61
+ 'snapshot': value['snapshot'],
62
+ };
63
+ }
@@ -0,0 +1,50 @@
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 LibraryQuizQuestionInput
16
+ */
17
+ export interface LibraryQuizQuestionInput {
18
+ /**
19
+ * External ID of the selected question version.
20
+ * @type {string}
21
+ * @memberof LibraryQuizQuestionInput
22
+ */
23
+ questionId: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LibraryQuizQuestionInput
28
+ */
29
+ displayOrder: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof LibraryQuizQuestionInput
34
+ */
35
+ points?: number;
36
+ /**
37
+ * When false, publication resolves the latest question in the same version group.
38
+ * @type {boolean}
39
+ * @memberof LibraryQuizQuestionInput
40
+ */
41
+ versionLocked?: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the LibraryQuizQuestionInput interface.
45
+ */
46
+ export declare function instanceOfLibraryQuizQuestionInput(value: object): value is LibraryQuizQuestionInput;
47
+ export declare function LibraryQuizQuestionInputFromJSON(json: any): LibraryQuizQuestionInput;
48
+ export declare function LibraryQuizQuestionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizQuestionInput;
49
+ export declare function LibraryQuizQuestionInputToJSON(json: any): LibraryQuizQuestionInput;
50
+ export declare function LibraryQuizQuestionInputToJSONTyped(value?: LibraryQuizQuestionInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 LibraryQuizQuestionInput interface.
16
+ */
17
+ export function instanceOfLibraryQuizQuestionInput(value) {
18
+ if (!('questionId' in value) || value['questionId'] === undefined)
19
+ return false;
20
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function LibraryQuizQuestionInputFromJSON(json) {
25
+ return LibraryQuizQuestionInputFromJSONTyped(json, false);
26
+ }
27
+ export function LibraryQuizQuestionInputFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'questionId': json['question_id'],
33
+ 'displayOrder': json['display_order'],
34
+ 'points': json['points'] == null ? undefined : json['points'],
35
+ 'versionLocked': json['version_locked'] == null ? undefined : json['version_locked'],
36
+ };
37
+ }
38
+ export function LibraryQuizQuestionInputToJSON(json) {
39
+ return LibraryQuizQuestionInputToJSONTyped(json, false);
40
+ }
41
+ export function LibraryQuizQuestionInputToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'question_id': value['questionId'],
47
+ 'display_order': value['displayOrder'],
48
+ 'points': value['points'],
49
+ 'version_locked': value['versionLocked'],
50
+ };
51
+ }
@@ -0,0 +1,51 @@
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
+ *
15
+ * @export
16
+ * @interface LibraryQuizSessionAnswerChoice
17
+ */
18
+ export interface LibraryQuizSessionAnswerChoice {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof LibraryQuizSessionAnswerChoice
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof LibraryQuizSessionAnswerChoice
29
+ */
30
+ text: string;
31
+ /**
32
+ *
33
+ * @type {RichTextDocument}
34
+ * @memberof LibraryQuizSessionAnswerChoice
35
+ */
36
+ textRich?: RichTextDocument | null;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof LibraryQuizSessionAnswerChoice
41
+ */
42
+ displayOrder: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the LibraryQuizSessionAnswerChoice interface.
46
+ */
47
+ export declare function instanceOfLibraryQuizSessionAnswerChoice(value: object): value is LibraryQuizSessionAnswerChoice;
48
+ export declare function LibraryQuizSessionAnswerChoiceFromJSON(json: any): LibraryQuizSessionAnswerChoice;
49
+ export declare function LibraryQuizSessionAnswerChoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizSessionAnswerChoice;
50
+ export declare function LibraryQuizSessionAnswerChoiceToJSON(json: any): LibraryQuizSessionAnswerChoice;
51
+ export declare function LibraryQuizSessionAnswerChoiceToJSONTyped(value?: LibraryQuizSessionAnswerChoice | null, ignoreDiscriminator?: boolean): any;