@easyedu/js-lsm-api 1.29.0 → 1.31.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 (381) hide show
  1. package/.openapi-generator/FILES +211 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +378 -28
  4. package/dist/apis/ContentApi.d.ts +90 -1
  5. package/dist/apis/ContentApi.js +286 -17
  6. package/dist/apis/CourseApi.js +37 -12
  7. package/dist/apis/ModuleApi.js +14 -4
  8. package/dist/apis/OtherApi.js +2 -1
  9. package/dist/apis/PortalApi.js +19 -7
  10. package/dist/apis/QuestionApi.js +13 -5
  11. package/dist/apis/QuizApi.js +79 -25
  12. package/dist/apis/ReportingApi.js +39 -9
  13. package/dist/apis/UserApi.js +16 -7
  14. package/dist/esm/apis/ContentApi.d.ts +90 -1
  15. package/dist/esm/apis/ContentApi.js +286 -17
  16. package/dist/esm/apis/CourseApi.js +37 -12
  17. package/dist/esm/apis/ModuleApi.js +14 -4
  18. package/dist/esm/apis/OtherApi.js +2 -1
  19. package/dist/esm/apis/PortalApi.js +19 -7
  20. package/dist/esm/apis/QuestionApi.js +13 -5
  21. package/dist/esm/apis/QuizApi.js +79 -25
  22. package/dist/esm/apis/ReportingApi.js +39 -9
  23. package/dist/esm/apis/UserApi.js +16 -7
  24. package/dist/esm/models/GetContentContentData.js +6 -0
  25. package/dist/esm/models/GetContentSessionDetail.d.ts +4 -4
  26. package/dist/esm/models/GetContentSessionDetail.js +3 -3
  27. package/dist/esm/models/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
  28. package/dist/esm/models/GetContentSessionDetailScormSessionDataInner.js +47 -0
  29. package/dist/esm/models/GetContentSessionListItem.d.ts +3 -3
  30. package/dist/esm/models/GetContentSessionListItem.js +3 -3
  31. package/dist/esm/models/GetContentSessionListItemScormSessionData.d.ts +32 -0
  32. package/dist/esm/models/{GetContentSessionDetailScormSessionData.js → GetContentSessionListItemScormSessionData.js} +8 -8
  33. package/dist/esm/models/GetContentVersion.js +2 -2
  34. package/dist/esm/models/GetContentVersionListItemsInner.js +2 -2
  35. package/dist/esm/models/GetManualQuestionSelectionItem.js +1 -1
  36. package/dist/esm/models/GetQuestionListFilters.js +2 -2
  37. package/dist/esm/models/GetQuiz.js +2 -2
  38. package/dist/esm/models/GetQuizAttemptAnalyticsBasicInfo.js +2 -2
  39. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +1 -1
  40. package/dist/esm/models/GetQuizAttemptAttempt.js +3 -3
  41. package/dist/esm/models/GetQuizAttemptListAllOfAttempts.js +2 -2
  42. package/dist/esm/models/GetQuizAttemptListAllOfFiltersDateRange.js +2 -2
  43. package/dist/esm/models/GetQuizAttemptQuestionsInner.js +1 -1
  44. package/dist/esm/models/GetQuizAttemptQuestionsInnerCurrentAnswer.js +1 -1
  45. package/dist/esm/models/GetQuizCriteriaItem.js +2 -2
  46. package/dist/esm/models/GetQuizCriteriaListItemsInner.js +2 -2
  47. package/dist/esm/models/GetQuizListAllOfQuizzes.js +2 -2
  48. package/dist/esm/models/GetQuizQuestionsItemsInner.js +1 -1
  49. package/dist/esm/models/GetQuizResultsTiming.js +2 -2
  50. package/dist/esm/models/GetScormPackagePackageInfo.js +2 -2
  51. package/dist/esm/models/GetUserQuizAttemptsAllOfAttempts.js +2 -2
  52. package/dist/esm/models/PostContentQuizAssignment.js +3 -3
  53. package/dist/esm/models/PostContentQuizQuestionSelection.js +6 -0
  54. package/dist/esm/models/PostQuizAttemptAttempt.js +2 -2
  55. package/dist/esm/models/PostQuizAttemptSubmit.js +1 -1
  56. package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +6 -0
  57. package/dist/esm/models/PostVerifyManifest.d.ts +106 -0
  58. package/dist/esm/models/PostVerifyManifest.js +73 -0
  59. package/dist/esm/models/PostVerifyManifestItemsInner.d.ts +74 -0
  60. package/dist/esm/models/PostVerifyManifestItemsInner.js +55 -0
  61. package/dist/esm/models/PostVerifyManifestResourcesInner.d.ts +56 -0
  62. package/dist/esm/models/PostVerifyManifestResourcesInner.js +49 -0
  63. package/dist/esm/models/PutQuizAnswerAnswer.js +6 -0
  64. package/dist/esm/models/QuizContentAssignment.js +3 -3
  65. package/dist/esm/models/ScormGetValueResponse.d.ts +38 -0
  66. package/dist/esm/models/ScormGetValueResponse.js +47 -0
  67. package/dist/esm/models/ScormSetValueRequest.d.ts +38 -0
  68. package/dist/esm/models/ScormSetValueRequest.js +47 -0
  69. package/dist/esm/models/ScormSetValueResponse.d.ts +32 -0
  70. package/dist/esm/models/ScormSetValueResponse.js +43 -0
  71. package/dist/esm/models/index.d.ts +8 -1
  72. package/dist/esm/models/index.js +8 -1
  73. package/dist/esm/runtime.d.ts +3 -1
  74. package/dist/esm/runtime.js +5 -1
  75. package/dist/models/GetContentContentData.js +6 -0
  76. package/dist/models/GetContentSessionDetail.d.ts +4 -4
  77. package/dist/models/GetContentSessionDetail.js +3 -3
  78. package/dist/models/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
  79. package/dist/models/GetContentSessionDetailScormSessionDataInner.js +54 -0
  80. package/dist/models/GetContentSessionListItem.d.ts +3 -3
  81. package/dist/models/GetContentSessionListItem.js +3 -3
  82. package/dist/models/GetContentSessionListItemScormSessionData.d.ts +32 -0
  83. package/dist/models/GetContentSessionListItemScormSessionData.js +50 -0
  84. package/dist/models/GetContentVersion.js +2 -2
  85. package/dist/models/GetContentVersionListItemsInner.js +2 -2
  86. package/dist/models/GetManualQuestionSelectionItem.js +1 -1
  87. package/dist/models/GetQuestionListFilters.js +2 -2
  88. package/dist/models/GetQuiz.js +2 -2
  89. package/dist/models/GetQuizAttemptAnalyticsBasicInfo.js +2 -2
  90. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +1 -1
  91. package/dist/models/GetQuizAttemptAttempt.js +3 -3
  92. package/dist/models/GetQuizAttemptListAllOfAttempts.js +2 -2
  93. package/dist/models/GetQuizAttemptListAllOfFiltersDateRange.js +2 -2
  94. package/dist/models/GetQuizAttemptQuestionsInner.js +1 -1
  95. package/dist/models/GetQuizAttemptQuestionsInnerCurrentAnswer.js +1 -1
  96. package/dist/models/GetQuizCriteriaItem.js +2 -2
  97. package/dist/models/GetQuizCriteriaListItemsInner.js +2 -2
  98. package/dist/models/GetQuizListAllOfQuizzes.js +2 -2
  99. package/dist/models/GetQuizQuestionsItemsInner.js +1 -1
  100. package/dist/models/GetQuizResultsTiming.js +2 -2
  101. package/dist/models/GetScormPackagePackageInfo.js +2 -2
  102. package/dist/models/GetUserQuizAttemptsAllOfAttempts.js +2 -2
  103. package/dist/models/PostContentQuizAssignment.js +3 -3
  104. package/dist/models/PostContentQuizQuestionSelection.js +6 -0
  105. package/dist/models/PostQuizAttemptAttempt.js +2 -2
  106. package/dist/models/PostQuizAttemptSubmit.js +1 -1
  107. package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +6 -0
  108. package/dist/models/PostVerifyManifest.d.ts +106 -0
  109. package/dist/models/PostVerifyManifest.js +80 -0
  110. package/dist/models/PostVerifyManifestItemsInner.d.ts +74 -0
  111. package/dist/models/PostVerifyManifestItemsInner.js +62 -0
  112. package/dist/models/PostVerifyManifestResourcesInner.d.ts +56 -0
  113. package/dist/models/PostVerifyManifestResourcesInner.js +56 -0
  114. package/dist/models/PutQuizAnswerAnswer.js +6 -0
  115. package/dist/models/QuizContentAssignment.js +3 -3
  116. package/dist/models/ScormGetValueResponse.d.ts +38 -0
  117. package/dist/models/ScormGetValueResponse.js +54 -0
  118. package/dist/models/ScormSetValueRequest.d.ts +38 -0
  119. package/dist/models/ScormSetValueRequest.js +54 -0
  120. package/dist/models/ScormSetValueResponse.d.ts +32 -0
  121. package/dist/models/ScormSetValueResponse.js +50 -0
  122. package/dist/models/index.d.ts +8 -1
  123. package/dist/models/index.js +8 -1
  124. package/dist/runtime.d.ts +3 -1
  125. package/dist/runtime.js +5 -1
  126. package/docs/ContentApi.md +1642 -0
  127. package/docs/CourseApi.md +845 -0
  128. package/docs/CriteriaBasedSelection.md +40 -0
  129. package/docs/CriteriaBasedSelectionCriteria.md +42 -0
  130. package/docs/CriteriaBasedSelectionDistribution.md +37 -0
  131. package/docs/FillInBlank.md +36 -0
  132. package/docs/FillInBlank1.md +36 -0
  133. package/docs/GetContent.md +58 -0
  134. package/docs/GetContentContentData.md +53 -0
  135. package/docs/GetContentGradeDetail.md +50 -0
  136. package/docs/GetContentGrades.md +42 -0
  137. package/docs/GetContentGradesItemsInner.md +40 -0
  138. package/docs/GetContentGradesItemsInnerUser.md +38 -0
  139. package/docs/GetContentInstructorBasicReporting.md +38 -0
  140. package/docs/GetContentInstructorBasicReportingContentInfo.md +38 -0
  141. package/docs/GetContentInstructorBasicReportingEngagement.md +42 -0
  142. package/docs/GetContentInstructorBasicReportingPerformance.md +36 -0
  143. package/docs/GetContentList.md +43 -0
  144. package/docs/GetContentSession.md +45 -0
  145. package/docs/GetContentSessionDetail.md +51 -0
  146. package/docs/GetContentSessionDetailScormSessionDataInner.md +36 -0
  147. package/docs/GetContentSessionDetailUserData.md +36 -0
  148. package/docs/GetContentSessionList.md +43 -0
  149. package/docs/GetContentSessionListItem.md +45 -0
  150. package/docs/GetContentSessionListItemScormSessionData.md +35 -0
  151. package/docs/GetContentUpload.md +38 -0
  152. package/docs/GetContentVersion.md +49 -0
  153. package/docs/GetContentVersionList.md +43 -0
  154. package/docs/GetContentVersionListItemsInner.md +42 -0
  155. package/docs/GetContentVersionSandbox.md +35 -0
  156. package/docs/GetContentVersionScormData.md +35 -0
  157. package/docs/GetCourse.md +44 -0
  158. package/docs/GetCourseEnrollment.md +51 -0
  159. package/docs/GetCourseEnrollmentList.md +43 -0
  160. package/docs/GetCourseEnrollmentListItem.md +53 -0
  161. package/docs/GetCourseExport.md +49 -0
  162. package/docs/GetCourseExportList.md +43 -0
  163. package/docs/GetCourseList.md +43 -0
  164. package/docs/GetCourseReportingBasic.md +38 -0
  165. package/docs/GetCourseStudentReporting.md +38 -0
  166. package/docs/GetCourseStudentReportingCourseInfo.md +34 -0
  167. package/docs/GetCourseStudentReportingEngagement.md +36 -0
  168. package/docs/GetCourseStudentReportingPerformance.md +34 -0
  169. package/docs/GetManualQuestionSelectionItem.md +48 -0
  170. package/docs/GetManualQuestionSelectionList.md +44 -0
  171. package/docs/GetModule.md +44 -0
  172. package/docs/GetModuleInstructorBasicReporting.md +38 -0
  173. package/docs/GetModuleInstructorBasicReportingEngagement.md +34 -0
  174. package/docs/GetModuleInstructorBasicReportingModuleInfo.md +34 -0
  175. package/docs/GetModuleInstructorBasicReportingPerformance.md +34 -0
  176. package/docs/GetModuleList.md +43 -0
  177. package/docs/GetModuleStudentReporting.md +38 -0
  178. package/docs/GetModuleStudentReportingAccess.md +36 -0
  179. package/docs/GetModuleStudentReportingProgress.md +36 -0
  180. package/docs/GetPortal.md +48 -0
  181. package/docs/GetPortalBasicReporting.md +36 -0
  182. package/docs/GetPortalBasicReportingCertificates.md +34 -0
  183. package/docs/GetPortalBasicReportingPortalInfo.md +38 -0
  184. package/docs/GetPortalList.md +43 -0
  185. package/docs/GetPortalStudentReporting.md +36 -0
  186. package/docs/GetPortalStudentReportingCertificates.md +34 -0
  187. package/docs/GetPortalStudentReportingPortalInfo.md +38 -0
  188. package/docs/GetPortalUser.md +45 -0
  189. package/docs/GetPortalUserList.md +43 -0
  190. package/docs/GetQuestion.md +62 -0
  191. package/docs/GetQuestionAnswerChoicesInner.md +38 -0
  192. package/docs/GetQuestionList.md +44 -0
  193. package/docs/GetQuestionListFilters.md +48 -0
  194. package/docs/GetQuiz.md +68 -0
  195. package/docs/GetQuizAttempt.md +38 -0
  196. package/docs/GetQuizAttemptAnalytics.md +46 -0
  197. package/docs/GetQuizAttemptAnalyticsBasicInfo.md +49 -0
  198. package/docs/GetQuizAttemptAnalyticsPerformanceBreakdown.md +39 -0
  199. package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.md +44 -0
  200. package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.md +44 -0
  201. package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByTopicInner.md +44 -0
  202. package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInner.md +58 -0
  203. package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInnerCorrectAnswer.md +39 -0
  204. package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInnerUserAnswer.md +39 -0
  205. package/docs/GetQuizAttemptAnalyticsScoring.md +49 -0
  206. package/docs/GetQuizAttemptAttempt.md +61 -0
  207. package/docs/GetQuizAttemptList.md +46 -0
  208. package/docs/GetQuizAttemptListAllOfAttempts.md +68 -0
  209. package/docs/GetQuizAttemptListAllOfFilters.md +45 -0
  210. package/docs/GetQuizAttemptListAllOfFiltersDateRange.md +37 -0
  211. package/docs/GetQuizAttemptListAllOfSummary.md +45 -0
  212. package/docs/GetQuizAttemptQuestionsInner.md +52 -0
  213. package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +38 -0
  214. package/docs/GetQuizAttemptQuestionsInnerCurrentAnswer.md +41 -0
  215. package/docs/GetQuizAttemptQuizSettings.md +45 -0
  216. package/docs/GetQuizCriteria.md +38 -0
  217. package/docs/GetQuizCriteriaEstimatedQuestions.md +39 -0
  218. package/docs/GetQuizCriteriaItem.md +58 -0
  219. package/docs/GetQuizCriteriaList.md +42 -0
  220. package/docs/GetQuizCriteriaListItemsInner.md +58 -0
  221. package/docs/GetQuizList.md +44 -0
  222. package/docs/GetQuizListAllOfFilters.md +43 -0
  223. package/docs/GetQuizListAllOfQuizzes.md +64 -0
  224. package/docs/GetQuizListAllOfStatistics.md +43 -0
  225. package/docs/GetQuizQuestions.md +48 -0
  226. package/docs/GetQuizQuestionsItemsInner.md +48 -0
  227. package/docs/GetQuizQuestionsItemsInnerQuestionDetails.md +53 -0
  228. package/docs/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.md +42 -0
  229. package/docs/GetQuizResults.md +52 -0
  230. package/docs/GetQuizResultsFeedback.md +39 -0
  231. package/docs/GetQuizResultsFeedbackDifficultyPerformanceInner.md +40 -0
  232. package/docs/GetQuizResultsFeedbackTopicPerformanceInner.md +40 -0
  233. package/docs/GetQuizResultsQuestionsInner.md +50 -0
  234. package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +40 -0
  235. package/docs/GetQuizResultsQuestionsInnerStudentAnswer.md +43 -0
  236. package/docs/GetQuizResultsScore.md +41 -0
  237. package/docs/GetQuizResultsTiming.md +43 -0
  238. package/docs/GetQuizStatistics.md +43 -0
  239. package/docs/GetScormApiLogItem.md +45 -0
  240. package/docs/GetScormApiLogs.md +43 -0
  241. package/docs/GetScormPackage.md +37 -0
  242. package/docs/GetScormPackagePackageInfo.md +59 -0
  243. package/docs/GetScormSessionData.md +43 -0
  244. package/docs/GetScormSessionDataActivity.md +36 -0
  245. package/docs/GetUser.md +42 -0
  246. package/docs/GetUserQuizAttempts.md +46 -0
  247. package/docs/GetUserQuizAttemptsAllOfAttempts.md +70 -0
  248. package/docs/GetUserQuizAttemptsAllOfFilters.md +47 -0
  249. package/docs/GetUserQuizAttemptsAllOfSummary.md +47 -0
  250. package/docs/LoginRes.md +36 -0
  251. package/docs/LoginResAuthData.md +36 -0
  252. package/docs/LoginResUserData.md +40 -0
  253. package/docs/LoginResUserDataSelectedPortal.md +36 -0
  254. package/docs/ManualSelection.md +36 -0
  255. package/docs/MediaContent.md +38 -0
  256. package/docs/ModuleApi.md +284 -0
  257. package/docs/MultipleAnswer.md +36 -0
  258. package/docs/MultipleAnswer1.md +36 -0
  259. package/docs/NoAnswer.md +34 -0
  260. package/docs/OtherApi.md +66 -0
  261. package/docs/Paginated.md +40 -0
  262. package/docs/PortalApi.md +493 -0
  263. package/docs/PostContentQuiz.md +42 -0
  264. package/docs/PostContentQuizAssignment.md +41 -0
  265. package/docs/PostContentQuizQuestionSelection.md +43 -0
  266. package/docs/PostContentQuizSettings.md +51 -0
  267. package/docs/PostContentSession.md +43 -0
  268. package/docs/PostContentUpload.md +36 -0
  269. package/docs/PostCourse.md +38 -0
  270. package/docs/PostCourseEnrollment.md +40 -0
  271. package/docs/PostCourseExport.md +35 -0
  272. package/docs/PostLogin.md +36 -0
  273. package/docs/PostManualQuestionSelection.md +40 -0
  274. package/docs/PostModule.md +38 -0
  275. package/docs/PostPortal.md +38 -0
  276. package/docs/PostPortalInvite.md +40 -0
  277. package/docs/PostQuestion.md +52 -0
  278. package/docs/PostQuestionAnswerChoicesInner.md +36 -0
  279. package/docs/PostQuiz.md +58 -0
  280. package/docs/PostQuizAttempt.md +38 -0
  281. package/docs/PostQuizAttemptAttempt.md +55 -0
  282. package/docs/PostQuizAttemptQuestionsInner.md +48 -0
  283. package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +38 -0
  284. package/docs/PostQuizAttemptQuizSettings.md +45 -0
  285. package/docs/PostQuizAttemptSubmit.md +38 -0
  286. package/docs/PostQuizAttemptSubmitFinalAnswersInner.md +36 -0
  287. package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +41 -0
  288. package/docs/PostQuizCriteria.md +36 -0
  289. package/docs/PostQuizCriteriaCriteriaInner.md +49 -0
  290. package/docs/PostQuizQuestions.md +36 -0
  291. package/docs/PostQuizQuestionsQuestionsInner.md +40 -0
  292. package/docs/PostQuizSettings.md +41 -0
  293. package/docs/PostResetPassword.md +36 -0
  294. package/docs/PostSendResetPassword.md +34 -0
  295. package/docs/PostVerifyManifest.md +59 -0
  296. package/docs/PostVerifyManifestItemsInner.md +48 -0
  297. package/docs/PostVerifyManifestResourcesInner.md +42 -0
  298. package/docs/PutContent.md +36 -0
  299. package/docs/PutContentVersion.md +35 -0
  300. package/docs/PutCourse.md +44 -0
  301. package/docs/PutCourseEnrollment.md +40 -0
  302. package/docs/PutModule.md +40 -0
  303. package/docs/PutPortalBranding.md +38 -0
  304. package/docs/PutQuestion.md +52 -0
  305. package/docs/PutQuestionAnswerChoicesInner.md +38 -0
  306. package/docs/PutQuiz.md +56 -0
  307. package/docs/PutQuizAnswer.md +36 -0
  308. package/docs/PutQuizAnswerAnswer.md +41 -0
  309. package/docs/PutQuizSettings.md +41 -0
  310. package/docs/PutUser.md +42 -0
  311. package/docs/QuestionApi.md +368 -0
  312. package/docs/QuizApi.md +1793 -0
  313. package/docs/QuizContent.md +40 -0
  314. package/docs/QuizContentAssignment.md +39 -0
  315. package/docs/QuizContentSettings.md +43 -0
  316. package/docs/ReportingApi.md +674 -0
  317. package/docs/SCORMContent.md +38 -0
  318. package/docs/ScormGetValueResponse.md +37 -0
  319. package/docs/ScormSessionData.md +43 -0
  320. package/docs/ScormSessionDataProgress.md +36 -0
  321. package/docs/ScormSessionDataScore.md +40 -0
  322. package/docs/ScormSessionDataSession.md +34 -0
  323. package/docs/ScormSessionDataStatus.md +40 -0
  324. package/docs/ScormSessionDataTime.md +40 -0
  325. package/docs/ScormSetValueRequest.md +37 -0
  326. package/docs/ScormSetValueResponse.md +35 -0
  327. package/docs/SingleAnswer.md +36 -0
  328. package/docs/UserApi.md +460 -0
  329. package/package.json +2 -2
  330. package/src/apis/ContentApi.ts +411 -16
  331. package/src/apis/CourseApi.ts +61 -12
  332. package/src/apis/ModuleApi.ts +22 -4
  333. package/src/apis/OtherApi.ts +4 -1
  334. package/src/apis/PortalApi.ts +33 -7
  335. package/src/apis/QuestionApi.ts +23 -5
  336. package/src/apis/QuizApi.ts +129 -25
  337. package/src/apis/ReportingApi.ts +57 -9
  338. package/src/apis/UserApi.ts +30 -7
  339. package/src/models/GetContentContentData.ts +6 -3
  340. package/src/models/GetContentSessionDetail.ts +12 -12
  341. package/src/models/GetContentSessionDetailScormSessionDataInner.ts +75 -0
  342. package/src/models/GetContentSessionListItem.ts +11 -11
  343. package/src/models/GetContentSessionListItemScormSessionData.ts +66 -0
  344. package/src/models/GetContentVersion.ts +2 -2
  345. package/src/models/GetContentVersionListItemsInner.ts +2 -2
  346. package/src/models/GetManualQuestionSelectionItem.ts +1 -1
  347. package/src/models/GetQuestionListFilters.ts +2 -2
  348. package/src/models/GetQuiz.ts +2 -2
  349. package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +2 -2
  350. package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +1 -1
  351. package/src/models/GetQuizAttemptAttempt.ts +3 -3
  352. package/src/models/GetQuizAttemptListAllOfAttempts.ts +2 -2
  353. package/src/models/GetQuizAttemptListAllOfFiltersDateRange.ts +2 -2
  354. package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
  355. package/src/models/GetQuizAttemptQuestionsInnerCurrentAnswer.ts +1 -1
  356. package/src/models/GetQuizCriteriaItem.ts +2 -2
  357. package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
  358. package/src/models/GetQuizListAllOfQuizzes.ts +2 -2
  359. package/src/models/GetQuizQuestionsItemsInner.ts +1 -1
  360. package/src/models/GetQuizResultsTiming.ts +2 -2
  361. package/src/models/GetScormPackagePackageInfo.ts +2 -2
  362. package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +2 -2
  363. package/src/models/PostContentQuizAssignment.ts +3 -3
  364. package/src/models/PostContentQuizQuestionSelection.ts +6 -3
  365. package/src/models/PostQuizAttemptAttempt.ts +2 -2
  366. package/src/models/PostQuizAttemptSubmit.ts +1 -1
  367. package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +6 -3
  368. package/src/models/PostVerifyManifest.ts +179 -0
  369. package/src/models/PostVerifyManifestItemsInner.ts +121 -0
  370. package/src/models/PostVerifyManifestResourcesInner.ts +97 -0
  371. package/src/models/PutQuizAnswerAnswer.ts +6 -3
  372. package/src/models/QuizContentAssignment.ts +3 -3
  373. package/src/models/ScormGetValueResponse.ts +75 -0
  374. package/src/models/ScormSetValueRequest.ts +75 -0
  375. package/src/models/ScormSetValueResponse.ts +66 -0
  376. package/src/models/index.ts +8 -1
  377. package/src/runtime.ts +5 -4
  378. package/dist/esm/models/GetContentSessionDetailScormSessionData.d.ts +0 -32
  379. package/dist/models/GetContentSessionDetailScormSessionData.d.ts +0 -32
  380. package/dist/models/GetContentSessionDetailScormSessionData.js +0 -50
  381. package/src/models/GetContentSessionDetailScormSessionData.ts +0 -66
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { GetContentSessionDetailScormSessionDataInner } from './GetContentSessionDetailScormSessionDataInner';
17
+ import {
18
+ GetContentSessionDetailScormSessionDataInnerFromJSON,
19
+ GetContentSessionDetailScormSessionDataInnerFromJSONTyped,
20
+ GetContentSessionDetailScormSessionDataInnerToJSON,
21
+ GetContentSessionDetailScormSessionDataInnerToJSONTyped,
22
+ } from './GetContentSessionDetailScormSessionDataInner';
16
23
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
17
24
  import {
18
25
  GetContentSessionDetailUserDataFromJSON,
@@ -20,13 +27,6 @@ import {
20
27
  GetContentSessionDetailUserDataToJSON,
21
28
  GetContentSessionDetailUserDataToJSONTyped,
22
29
  } from './GetContentSessionDetailUserData';
23
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
24
- import {
25
- GetContentSessionDetailScormSessionDataFromJSON,
26
- GetContentSessionDetailScormSessionDataFromJSONTyped,
27
- GetContentSessionDetailScormSessionDataToJSON,
28
- GetContentSessionDetailScormSessionDataToJSONTyped,
29
- } from './GetContentSessionDetailScormSessionData';
30
30
 
31
31
  /**
32
32
  * Detailed content session information
@@ -83,11 +83,11 @@ export interface GetContentSessionDetail {
83
83
  */
84
84
  userData: GetContentSessionDetailUserData;
85
85
  /**
86
- *
87
- * @type {GetContentSessionDetailScormSessionData}
86
+ * SCORM session data if this is a SCORM session, null otherwise
87
+ * @type {Array<GetContentSessionDetailScormSessionDataInner>}
88
88
  * @memberof GetContentSessionDetail
89
89
  */
90
- scormSessionData: GetContentSessionDetailScormSessionData | null;
90
+ scormSessionData: Array<GetContentSessionDetailScormSessionDataInner> | null;
91
91
  }
92
92
 
93
93
 
@@ -149,7 +149,7 @@ export function GetContentSessionDetailFromJSONTyped(json: any, ignoreDiscrimina
149
149
  'gradeStatus': json['grade_status'],
150
150
  'durationInSeconds': json['duration_in_seconds'],
151
151
  'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
152
- 'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
152
+ 'scormSessionData': (json['scorm_session_data'] == null ? null : (json['scorm_session_data'] as Array<any>).map(GetContentSessionDetailScormSessionDataInnerFromJSON)),
153
153
  };
154
154
  }
155
155
 
@@ -172,7 +172,7 @@ export function GetContentSessionDetailToJSONTyped(value?: GetContentSessionDeta
172
172
  'grade_status': value['gradeStatus'],
173
173
  'duration_in_seconds': value['durationInSeconds'],
174
174
  'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
175
- 'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
175
+ 'scorm_session_data': (value['scormSessionData'] == null ? null : (value['scormSessionData'] as Array<any>).map(GetContentSessionDetailScormSessionDataInnerToJSON)),
176
176
  };
177
177
  }
178
178
 
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetContentSessionDetailScormSessionDataInner
20
+ */
21
+ export interface GetContentSessionDetailScormSessionDataInner {
22
+ /**
23
+ * The external ID of the SCORM session
24
+ * @type {string}
25
+ * @memberof GetContentSessionDetailScormSessionDataInner
26
+ */
27
+ scormSessionId: string;
28
+ /**
29
+ * The name of the SCORM activity
30
+ * @type {string}
31
+ * @memberof GetContentSessionDetailScormSessionDataInner
32
+ */
33
+ activityName: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
38
+ */
39
+ export function instanceOfGetContentSessionDetailScormSessionDataInner(value: object): value is GetContentSessionDetailScormSessionDataInner {
40
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined) return false;
41
+ if (!('activityName' in value) || value['activityName'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GetContentSessionDetailScormSessionDataInnerFromJSON(json: any): GetContentSessionDetailScormSessionDataInner {
46
+ return GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionDataInner {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'scormSessionId': json['scorm_session_id'],
56
+ 'activityName': json['activity_name'],
57
+ };
58
+ }
59
+
60
+ export function GetContentSessionDetailScormSessionDataInnerToJSON(json: any): GetContentSessionDetailScormSessionDataInner {
61
+ return GetContentSessionDetailScormSessionDataInnerToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value?: GetContentSessionDetailScormSessionDataInner | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'scorm_session_id': value['scormSessionId'],
72
+ 'activity_name': value['activityName'],
73
+ };
74
+ }
75
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { GetContentSessionListItemScormSessionData } from './GetContentSessionListItemScormSessionData';
17
+ import {
18
+ GetContentSessionListItemScormSessionDataFromJSON,
19
+ GetContentSessionListItemScormSessionDataFromJSONTyped,
20
+ GetContentSessionListItemScormSessionDataToJSON,
21
+ GetContentSessionListItemScormSessionDataToJSONTyped,
22
+ } from './GetContentSessionListItemScormSessionData';
16
23
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
17
24
  import {
18
25
  GetContentSessionDetailUserDataFromJSON,
@@ -20,13 +27,6 @@ import {
20
27
  GetContentSessionDetailUserDataToJSON,
21
28
  GetContentSessionDetailUserDataToJSONTyped,
22
29
  } from './GetContentSessionDetailUserData';
23
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
24
- import {
25
- GetContentSessionDetailScormSessionDataFromJSON,
26
- GetContentSessionDetailScormSessionDataFromJSONTyped,
27
- GetContentSessionDetailScormSessionDataToJSON,
28
- GetContentSessionDetailScormSessionDataToJSONTyped,
29
- } from './GetContentSessionDetailScormSessionData';
30
30
 
31
31
  /**
32
32
  * A content session list item
@@ -66,10 +66,10 @@ export interface GetContentSessionListItem {
66
66
  userData: GetContentSessionDetailUserData;
67
67
  /**
68
68
  *
69
- * @type {GetContentSessionDetailScormSessionData}
69
+ * @type {GetContentSessionListItemScormSessionData}
70
70
  * @memberof GetContentSessionListItem
71
71
  */
72
- scormSessionData: GetContentSessionDetailScormSessionData | null;
72
+ scormSessionData: GetContentSessionListItemScormSessionData | null;
73
73
  }
74
74
 
75
75
  /**
@@ -100,7 +100,7 @@ export function GetContentSessionListItemFromJSONTyped(json: any, ignoreDiscrimi
100
100
  'updatedAt': json['updated_at'],
101
101
  'contentId': json['content_id'],
102
102
  'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
103
- 'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
103
+ 'scormSessionData': GetContentSessionListItemScormSessionDataFromJSON(json['scorm_session_data']),
104
104
  };
105
105
  }
106
106
 
@@ -120,7 +120,7 @@ export function GetContentSessionListItemToJSONTyped(value?: GetContentSessionLi
120
120
  'updated_at': value['updatedAt'],
121
121
  'content_id': value['contentId'],
122
122
  'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
123
- 'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
123
+ 'scorm_session_data': GetContentSessionListItemScormSessionDataToJSON(value['scormSessionData']),
124
124
  };
125
125
  }
126
126
 
@@ -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
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * SCORM session data if this is a SCORM session, null otherwise
18
+ * @export
19
+ * @interface GetContentSessionListItemScormSessionData
20
+ */
21
+ export interface GetContentSessionListItemScormSessionData {
22
+ /**
23
+ * The external ID of the SCORM session
24
+ * @type {string}
25
+ * @memberof GetContentSessionListItemScormSessionData
26
+ */
27
+ scormSessionId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GetContentSessionListItemScormSessionData interface.
32
+ */
33
+ export function instanceOfGetContentSessionListItemScormSessionData(value: object): value is GetContentSessionListItemScormSessionData {
34
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function GetContentSessionListItemScormSessionDataFromJSON(json: any): GetContentSessionListItemScormSessionData {
39
+ return GetContentSessionListItemScormSessionDataFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function GetContentSessionListItemScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItemScormSessionData {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'scormSessionId': json['scorm_session_id'],
49
+ };
50
+ }
51
+
52
+ export function GetContentSessionListItemScormSessionDataToJSON(json: any): GetContentSessionListItemScormSessionData {
53
+ return GetContentSessionListItemScormSessionDataToJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetContentSessionListItemScormSessionDataToJSONTyped(value?: GetContentSessionListItemScormSessionData | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'scorm_session_id': value['scormSessionId'],
64
+ };
65
+ }
66
+
@@ -134,8 +134,8 @@ export function GetContentVersionToJSONTyped(value?: GetContentVersion | null, i
134
134
  'content_id': value['contentId'],
135
135
  'version': value['version'],
136
136
  'is_active': value['isActive'],
137
- 'created_at': ((value['createdAt']).toISOString()),
138
- 'updated_at': ((value['updatedAt']).toISOString()),
137
+ 'created_at': value['createdAt'].toISOString(),
138
+ 'updated_at': value['updatedAt'].toISOString(),
139
139
  'sandbox': GetContentVersionSandboxToJSON(value['sandbox']),
140
140
  'scorm_data': GetContentVersionScormDataToJSON(value['scormData']),
141
141
  };
@@ -95,8 +95,8 @@ export function GetContentVersionListItemsInnerToJSONTyped(value?: GetContentVer
95
95
  'id': value['id'],
96
96
  'version': value['version'],
97
97
  'is_active': value['isActive'],
98
- 'created_at': ((value['createdAt']).toISOString()),
99
- 'updated_at': ((value['updatedAt']).toISOString()),
98
+ 'created_at': value['createdAt'].toISOString(),
99
+ 'updated_at': value['updatedAt'].toISOString(),
100
100
  };
101
101
  }
102
102
 
@@ -131,7 +131,7 @@ export function GetManualQuestionSelectionItemToJSONTyped(value?: GetManualQuest
131
131
  'points': value['points'],
132
132
  'version_locked': value['versionLocked'],
133
133
  'question_details': GetQuizQuestionsItemsInnerQuestionDetailsToJSON(value['questionDetails']),
134
- 'created_at': ((value['createdAt']).toISOString()),
134
+ 'created_at': value['createdAt'].toISOString(),
135
135
  };
136
136
  }
137
137
 
@@ -136,8 +136,8 @@ export function GetQuestionListFiltersToJSONTyped(value?: GetQuestionListFilters
136
136
  'difficulty_level': value['difficultyLevel'],
137
137
  'tags': value['tags'],
138
138
  'search': value['search'],
139
- 'created_after': value['createdAfter'] == null ? undefined : ((value['createdAfter']).toISOString().substring(0,10)),
140
- 'created_before': value['createdBefore'] == null ? undefined : ((value['createdBefore']).toISOString().substring(0,10)),
139
+ 'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0,10),
140
+ 'created_before': value['createdBefore'] == null ? value['createdBefore'] : value['createdBefore'].toISOString().substring(0,10),
141
141
  };
142
142
  }
143
143
 
@@ -221,8 +221,8 @@ export function GetQuizToJSONTyped(value?: GetQuiz | null, ignoreDiscriminator:
221
221
  'require_all_questions': value['requireAllQuestions'],
222
222
  'settings': value['settings'],
223
223
  'statistics': GetQuizStatisticsToJSON(value['statistics']),
224
- 'created_at': ((value['createdAt']).toISOString()),
225
- 'updated_at': ((value['updatedAt']).toISOString()),
224
+ 'created_at': value['createdAt'].toISOString(),
225
+ 'updated_at': value['updatedAt'].toISOString(),
226
226
  };
227
227
  }
228
228
 
@@ -132,8 +132,8 @@ export function GetQuizAttemptAnalyticsBasicInfoToJSONTyped(value?: GetQuizAttem
132
132
  'quiz_name': value['quizName'],
133
133
  'attempt_number': value['attemptNumber'],
134
134
  'status': value['status'],
135
- 'started_at': ((value['startedAt']).toISOString()),
136
- 'completed_at': value['completedAt'] == null ? undefined : ((value['completedAt']).toISOString()),
135
+ 'started_at': value['startedAt'].toISOString(),
136
+ 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
137
137
  'time_spent_seconds': value['timeSpentSeconds'],
138
138
  };
139
139
  }
@@ -201,7 +201,7 @@ export function GetQuizAttemptAnalyticsQuestionAnalysisInnerToJSONTyped(value?:
201
201
  'user_answer': GetQuizAttemptAnalyticsQuestionAnalysisInnerUserAnswerToJSON(value['userAnswer']),
202
202
  'correct_answer': GetQuizAttemptAnalyticsQuestionAnalysisInnerCorrectAnswerToJSON(value['correctAnswer']),
203
203
  'time_spent_seconds': value['timeSpentSeconds'],
204
- 'answered_at': value['answeredAt'] == null ? undefined : ((value['answeredAt']).toISOString()),
204
+ 'answered_at': value['answeredAt'] == null ? value['answeredAt'] : value['answeredAt'].toISOString(),
205
205
  };
206
206
  }
207
207
 
@@ -181,9 +181,9 @@ export function GetQuizAttemptAttemptToJSONTyped(value?: GetQuizAttemptAttempt |
181
181
  'content_id': value['contentId'],
182
182
  'attempt_number': value['attemptNumber'],
183
183
  'status': value['status'],
184
- 'started_at': ((value['startedAt']).toISOString()),
185
- 'completed_at': value['completedAt'] == null ? undefined : ((value['completedAt']).toISOString()),
186
- 'time_limit_at': value['timeLimitAt'] == null ? undefined : ((value['timeLimitAt']).toISOString()),
184
+ 'started_at': value['startedAt'].toISOString(),
185
+ 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
186
+ 'time_limit_at': value['timeLimitAt'] == null ? value['timeLimitAt'] : value['timeLimitAt'].toISOString(),
187
187
  'total_questions': value['totalQuestions'],
188
188
  'questions_answered': value['questionsAnswered'],
189
189
  'total_points': value['totalPoints'],
@@ -213,8 +213,8 @@ export function GetQuizAttemptListAllOfAttemptsToJSONTyped(value?: GetQuizAttemp
213
213
  'content_name': value['contentName'],
214
214
  'attempt_number': value['attemptNumber'],
215
215
  'status': value['status'],
216
- 'started_at': ((value['startedAt']).toISOString()),
217
- 'completed_at': value['completedAt'] == null ? undefined : ((value['completedAt']).toISOString()),
216
+ 'started_at': value['startedAt'].toISOString(),
217
+ 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
218
218
  'total_questions': value['totalQuestions'],
219
219
  'questions_answered': value['questionsAnswered'],
220
220
  'correct_answers': value['correctAnswers'],
@@ -66,8 +66,8 @@ export function GetQuizAttemptListAllOfFiltersDateRangeToJSONTyped(value?: GetQu
66
66
 
67
67
  return {
68
68
 
69
- 'start_date': value['startDate'] == null ? undefined : ((value['startDate']).toISOString()),
70
- 'end_date': value['endDate'] == null ? undefined : ((value['endDate']).toISOString()),
69
+ 'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
70
+ 'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
71
71
  };
72
72
  }
73
73
 
@@ -165,7 +165,7 @@ export function GetQuizAttemptQuestionsInnerToJSONTyped(value?: GetQuizAttemptQu
165
165
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
166
166
  'is_answered': value['isAnswered'],
167
167
  'current_answer': GetQuizAttemptQuestionsInnerCurrentAnswerToJSON(value['currentAnswer']),
168
- 'answered_at': value['answeredAt'] == null ? undefined : ((value['answeredAt']).toISOString()),
168
+ 'answered_at': value['answeredAt'] == null ? value['answeredAt'] : value['answeredAt'].toISOString(),
169
169
  };
170
170
  }
171
171
 
@@ -83,7 +83,7 @@ export function GetQuizAttemptQuestionsInnerCurrentAnswerToJSONTyped(value?: Get
83
83
  'answer_choice_id': value['answerChoiceId'],
84
84
  'multiple_answers': value['multipleAnswers'],
85
85
  'text_answer': value['textAnswer'],
86
- 'answered_at': value['answeredAt'] == null ? undefined : ((value['answeredAt']).toISOString()),
86
+ 'answered_at': value['answeredAt'] == null ? value['answeredAt'] : value['answeredAt'].toISOString(),
87
87
  };
88
88
  }
89
89
 
@@ -182,8 +182,8 @@ export function GetQuizCriteriaItemToJSONTyped(value?: GetQuizCriteriaItem | nul
182
182
  'max_questions': value['maxQuestions'],
183
183
  'priority': value['priority'],
184
184
  'matching_questions_count': value['matchingQuestionsCount'],
185
- 'created_at': ((value['createdAt']).toISOString()),
186
- 'updated_at': ((value['updatedAt']).toISOString()),
185
+ 'created_at': value['createdAt'].toISOString(),
186
+ 'updated_at': value['updatedAt'].toISOString(),
187
187
  };
188
188
  }
189
189
 
@@ -182,8 +182,8 @@ export function GetQuizCriteriaListItemsInnerToJSONTyped(value?: GetQuizCriteria
182
182
  'max_questions': value['maxQuestions'],
183
183
  'priority': value['priority'],
184
184
  'matching_questions_count': value['matchingQuestionsCount'],
185
- 'created_at': ((value['createdAt']).toISOString()),
186
- 'updated_at': ((value['updatedAt']).toISOString()),
185
+ 'created_at': value['createdAt'].toISOString(),
186
+ 'updated_at': value['updatedAt'].toISOString(),
187
187
  };
188
188
  }
189
189
 
@@ -206,8 +206,8 @@ export function GetQuizListAllOfQuizzesToJSONTyped(value?: GetQuizListAllOfQuizz
206
206
  'passing_score': value['passingScore'],
207
207
  'time_limit_minutes': value['timeLimitMinutes'],
208
208
  'statistics': GetQuizListAllOfStatisticsToJSON(value['statistics']),
209
- 'created_at': ((value['createdAt']).toISOString()),
210
- 'updated_at': ((value['updatedAt']).toISOString()),
209
+ 'created_at': value['createdAt'].toISOString(),
210
+ 'updated_at': value['updatedAt'].toISOString(),
211
211
  };
212
212
  }
213
213
 
@@ -131,7 +131,7 @@ export function GetQuizQuestionsItemsInnerToJSONTyped(value?: GetQuizQuestionsIt
131
131
  'points': value['points'],
132
132
  'version_locked': value['versionLocked'],
133
133
  'question_details': GetQuizQuestionsItemsInnerQuestionDetailsToJSON(value['questionDetails']),
134
- 'created_at': ((value['createdAt']).toISOString()),
134
+ 'created_at': value['createdAt'].toISOString(),
135
135
  };
136
136
  }
137
137
 
@@ -87,8 +87,8 @@ export function GetQuizResultsTimingToJSONTyped(value?: GetQuizResultsTiming | n
87
87
 
88
88
  return {
89
89
 
90
- 'started_at': value['startedAt'] == null ? undefined : ((value['startedAt']).toISOString()),
91
- 'submitted_at': value['submittedAt'] == null ? undefined : ((value['submittedAt']).toISOString()),
90
+ 'started_at': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
91
+ 'submitted_at': value['submittedAt'] == null ? value['submittedAt'] : value['submittedAt'].toISOString(),
92
92
  'time_limit': value['timeLimit'],
93
93
  'time_spent': value['timeSpent'],
94
94
  'time_remaining': value['timeRemaining'],
@@ -162,8 +162,8 @@ export function GetScormPackagePackageInfoToJSONTyped(value?: GetScormPackagePac
162
162
  'storage_key': value['storageKey'],
163
163
  'total_file_count': value['totalFileCount'],
164
164
  'package_size_bytes': value['packageSizeBytes'],
165
- 'created_at': ((value['createdAt']).toISOString()),
166
- 'updated_at': ((value['updatedAt']).toISOString()),
165
+ 'created_at': value['createdAt'].toISOString(),
166
+ 'updated_at': value['updatedAt'].toISOString(),
167
167
  };
168
168
  }
169
169
 
@@ -218,8 +218,8 @@ export function GetUserQuizAttemptsAllOfAttemptsToJSONTyped(value?: GetUserQuizA
218
218
  'course_name': value['courseName'],
219
219
  'attempt_number': value['attemptNumber'],
220
220
  'status': value['status'],
221
- 'started_at': ((value['startedAt']).toISOString()),
222
- 'completed_at': value['completedAt'] == null ? undefined : ((value['completedAt']).toISOString()),
221
+ 'started_at': value['startedAt'].toISOString(),
222
+ 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
223
223
  'total_questions': value['totalQuestions'],
224
224
  'questions_answered': value['questionsAnswered'],
225
225
  'correct_answers': value['correctAnswers'],
@@ -80,9 +80,9 @@ export function PostContentQuizAssignmentToJSONTyped(value?: PostContentQuizAssi
80
80
 
81
81
  return {
82
82
 
83
- 'due_date': value['dueDate'] == null ? undefined : ((value['dueDate']).toISOString()),
84
- 'available_from': value['availableFrom'] == null ? undefined : ((value['availableFrom']).toISOString()),
85
- 'available_until': value['availableUntil'] == null ? undefined : ((value['availableUntil']).toISOString()),
83
+ 'due_date': value['dueDate'] == null ? value['dueDate'] : value['dueDate'].toISOString(),
84
+ 'available_from': value['availableFrom'] == null ? value['availableFrom'] : value['availableFrom'].toISOString(),
85
+ 'available_until': value['availableUntil'] == null ? value['availableUntil'] : value['availableUntil'].toISOString(),
86
86
  'assigned_users': value['assignedUsers'],
87
87
  };
88
88
  }
@@ -42,13 +42,15 @@ export function PostContentQuizQuestionSelectionFromJSONTyped(json: any, ignoreD
42
42
  if (json == null) {
43
43
  return json;
44
44
  }
45
+ if (typeof json !== 'object') {
46
+ return json;
47
+ }
45
48
  if (instanceOfCriteriaBasedSelection(json)) {
46
49
  return CriteriaBasedSelectionFromJSONTyped(json, true);
47
50
  }
48
51
  if (instanceOfManualSelection(json)) {
49
52
  return ManualSelectionFromJSONTyped(json, true);
50
53
  }
51
-
52
54
  return {} as any;
53
55
  }
54
56
 
@@ -60,14 +62,15 @@ export function PostContentQuizQuestionSelectionToJSONTyped(value?: PostContentQ
60
62
  if (value == null) {
61
63
  return value;
62
64
  }
63
-
65
+ if (typeof value !== 'object') {
66
+ return value;
67
+ }
64
68
  if (instanceOfCriteriaBasedSelection(value)) {
65
69
  return CriteriaBasedSelectionToJSON(value as CriteriaBasedSelection);
66
70
  }
67
71
  if (instanceOfManualSelection(value)) {
68
72
  return ManualSelectionToJSON(value as ManualSelection);
69
73
  }
70
-
71
74
  return {};
72
75
  }
73
76
 
@@ -156,8 +156,8 @@ export function PostQuizAttemptAttemptToJSONTyped(value?: PostQuizAttemptAttempt
156
156
  'content_id': value['contentId'],
157
157
  'attempt_number': value['attemptNumber'],
158
158
  'status': value['status'],
159
- 'started_at': ((value['startedAt']).toISOString()),
160
- 'time_limit_at': value['timeLimitAt'] == null ? undefined : ((value['timeLimitAt']).toISOString()),
159
+ 'started_at': value['startedAt'].toISOString(),
160
+ 'time_limit_at': value['timeLimitAt'] == null ? value['timeLimitAt'] : value['timeLimitAt'].toISOString(),
161
161
  'total_questions': value['totalQuestions'],
162
162
  'total_points': value['totalPoints'],
163
163
  };
@@ -98,7 +98,7 @@ export function PostQuizAttemptSubmitToJSONTyped(value?: PostQuizAttemptSubmit |
98
98
 
99
99
  'submission_type': value['submissionType'],
100
100
  'final_answers': ((value['finalAnswers'] as Array<any>).map(PostQuizAttemptSubmitFinalAnswersInnerToJSON)),
101
- 'submitted_at': ((value['submittedAt']).toISOString()),
101
+ 'submitted_at': value['submittedAt'].toISOString(),
102
102
  };
103
103
  }
104
104
 
@@ -56,6 +56,9 @@ export function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json:
56
56
  if (json == null) {
57
57
  return json;
58
58
  }
59
+ if (typeof json !== 'object') {
60
+ return json;
61
+ }
59
62
  if (instanceOfFillInBlank1(json)) {
60
63
  return FillInBlank1FromJSONTyped(json, true);
61
64
  }
@@ -68,7 +71,6 @@ export function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json:
68
71
  if (instanceOfSingleAnswer(json)) {
69
72
  return SingleAnswerFromJSONTyped(json, true);
70
73
  }
71
-
72
74
  return {} as any;
73
75
  }
74
76
 
@@ -80,7 +82,9 @@ export function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped(value?:
80
82
  if (value == null) {
81
83
  return value;
82
84
  }
83
-
85
+ if (typeof value !== 'object') {
86
+ return value;
87
+ }
84
88
  if (instanceOfFillInBlank1(value)) {
85
89
  return FillInBlank1ToJSON(value as FillInBlank1);
86
90
  }
@@ -93,7 +97,6 @@ export function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped(value?:
93
97
  if (instanceOfSingleAnswer(value)) {
94
98
  return SingleAnswerToJSON(value as SingleAnswer);
95
99
  }
96
-
97
100
  return {};
98
101
  }
99
102