@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
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ScormGetValueResponse interface.
16
+ */
17
+ export function instanceOfScormGetValueResponse(value) {
18
+ if (!('success' in value) || value['success'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ScormGetValueResponseFromJSON(json) {
25
+ return ScormGetValueResponseFromJSONTyped(json, false);
26
+ }
27
+ export function ScormGetValueResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'success': json['success'],
33
+ 'value': json['value'],
34
+ };
35
+ }
36
+ export function ScormGetValueResponseToJSON(json) {
37
+ return ScormGetValueResponseToJSONTyped(json, false);
38
+ }
39
+ export function ScormGetValueResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'success': value['success'],
45
+ 'value': value['value'],
46
+ };
47
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Request to set a SCORM CMI data element value
14
+ * @export
15
+ * @interface ScormSetValueRequest
16
+ */
17
+ export interface ScormSetValueRequest {
18
+ /**
19
+ * The CMI element key to set (e.g., cmi.core.lesson_status, cmi.core.score.raw)
20
+ * @type {string}
21
+ * @memberof ScormSetValueRequest
22
+ */
23
+ key: string;
24
+ /**
25
+ * The value to set for the CMI element
26
+ * @type {string}
27
+ * @memberof ScormSetValueRequest
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ScormSetValueRequest interface.
33
+ */
34
+ export declare function instanceOfScormSetValueRequest(value: object): value is ScormSetValueRequest;
35
+ export declare function ScormSetValueRequestFromJSON(json: any): ScormSetValueRequest;
36
+ export declare function ScormSetValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormSetValueRequest;
37
+ export declare function ScormSetValueRequestToJSON(json: any): ScormSetValueRequest;
38
+ export declare function ScormSetValueRequestToJSONTyped(value?: ScormSetValueRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ScormSetValueRequest interface.
16
+ */
17
+ export function instanceOfScormSetValueRequest(value) {
18
+ if (!('key' in value) || value['key'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ScormSetValueRequestFromJSON(json) {
25
+ return ScormSetValueRequestFromJSONTyped(json, false);
26
+ }
27
+ export function ScormSetValueRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'key': json['key'],
33
+ 'value': json['value'],
34
+ };
35
+ }
36
+ export function ScormSetValueRequestToJSON(json) {
37
+ return ScormSetValueRequestToJSONTyped(json, false);
38
+ }
39
+ export function ScormSetValueRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'key': value['key'],
45
+ 'value': value['value'],
46
+ };
47
+ }
@@ -0,0 +1,32 @@
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
+ * Response from setting a SCORM CMI data element value
14
+ * @export
15
+ * @interface ScormSetValueResponse
16
+ */
17
+ export interface ScormSetValueResponse {
18
+ /**
19
+ * Whether the set operation was successful
20
+ * @type {boolean}
21
+ * @memberof ScormSetValueResponse
22
+ */
23
+ success: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ScormSetValueResponse interface.
27
+ */
28
+ export declare function instanceOfScormSetValueResponse(value: object): value is ScormSetValueResponse;
29
+ export declare function ScormSetValueResponseFromJSON(json: any): ScormSetValueResponse;
30
+ export declare function ScormSetValueResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormSetValueResponse;
31
+ export declare function ScormSetValueResponseToJSON(json: any): ScormSetValueResponse;
32
+ export declare function ScormSetValueResponseToJSONTyped(value?: ScormSetValueResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 ScormSetValueResponse interface.
16
+ */
17
+ export function instanceOfScormSetValueResponse(value) {
18
+ if (!('success' in value) || value['success'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ScormSetValueResponseFromJSON(json) {
23
+ return ScormSetValueResponseFromJSONTyped(json, false);
24
+ }
25
+ export function ScormSetValueResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'success': json['success'],
31
+ };
32
+ }
33
+ export function ScormSetValueResponseToJSON(json) {
34
+ return ScormSetValueResponseToJSONTyped(json, false);
35
+ }
36
+ export function ScormSetValueResponseToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'success': value['success'],
42
+ };
43
+ }
@@ -16,10 +16,11 @@ export * from './GetContentInstructorBasicReportingPerformance';
16
16
  export * from './GetContentList';
17
17
  export * from './GetContentSession';
18
18
  export * from './GetContentSessionDetail';
19
- export * from './GetContentSessionDetailScormSessionData';
19
+ export * from './GetContentSessionDetailScormSessionDataInner';
20
20
  export * from './GetContentSessionDetailUserData';
21
21
  export * from './GetContentSessionList';
22
22
  export * from './GetContentSessionListItem';
23
+ export * from './GetContentSessionListItemScormSessionData';
23
24
  export * from './GetContentUpload';
24
25
  export * from './GetContentVersion';
25
26
  export * from './GetContentVersionList';
@@ -161,6 +162,9 @@ export * from './PostQuizQuestionsQuestionsInner';
161
162
  export * from './PostQuizSettings';
162
163
  export * from './PostResetPassword';
163
164
  export * from './PostSendResetPassword';
165
+ export * from './PostVerifyManifest';
166
+ export * from './PostVerifyManifestItemsInner';
167
+ export * from './PostVerifyManifestResourcesInner';
164
168
  export * from './PutContent';
165
169
  export * from './PutContentVersion';
166
170
  export * from './PutCourse';
@@ -178,10 +182,13 @@ export * from './QuizContent';
178
182
  export * from './QuizContentAssignment';
179
183
  export * from './QuizContentSettings';
180
184
  export * from './SCORMContent';
185
+ export * from './ScormGetValueResponse';
181
186
  export * from './ScormSessionData';
182
187
  export * from './ScormSessionDataProgress';
183
188
  export * from './ScormSessionDataScore';
184
189
  export * from './ScormSessionDataSession';
185
190
  export * from './ScormSessionDataStatus';
186
191
  export * from './ScormSessionDataTime';
192
+ export * from './ScormSetValueRequest';
193
+ export * from './ScormSetValueResponse';
187
194
  export * from './SingleAnswer';
@@ -18,10 +18,11 @@ export * from './GetContentInstructorBasicReportingPerformance';
18
18
  export * from './GetContentList';
19
19
  export * from './GetContentSession';
20
20
  export * from './GetContentSessionDetail';
21
- export * from './GetContentSessionDetailScormSessionData';
21
+ export * from './GetContentSessionDetailScormSessionDataInner';
22
22
  export * from './GetContentSessionDetailUserData';
23
23
  export * from './GetContentSessionList';
24
24
  export * from './GetContentSessionListItem';
25
+ export * from './GetContentSessionListItemScormSessionData';
25
26
  export * from './GetContentUpload';
26
27
  export * from './GetContentVersion';
27
28
  export * from './GetContentVersionList';
@@ -163,6 +164,9 @@ export * from './PostQuizQuestionsQuestionsInner';
163
164
  export * from './PostQuizSettings';
164
165
  export * from './PostResetPassword';
165
166
  export * from './PostSendResetPassword';
167
+ export * from './PostVerifyManifest';
168
+ export * from './PostVerifyManifestItemsInner';
169
+ export * from './PostVerifyManifestResourcesInner';
166
170
  export * from './PutContent';
167
171
  export * from './PutContentVersion';
168
172
  export * from './PutCourse';
@@ -180,10 +184,13 @@ export * from './QuizContent';
180
184
  export * from './QuizContentAssignment';
181
185
  export * from './QuizContentSettings';
182
186
  export * from './SCORMContent';
187
+ export * from './ScormGetValueResponse';
183
188
  export * from './ScormSessionData';
184
189
  export * from './ScormSessionDataProgress';
185
190
  export * from './ScormSessionDataScore';
186
191
  export * from './ScormSessionDataSession';
187
192
  export * from './ScormSessionDataStatus';
188
193
  export * from './ScormSessionDataTime';
194
+ export * from './ScormSetValueRequest';
195
+ export * from './ScormSetValueResponse';
189
196
  export * from './SingleAnswer';
@@ -124,7 +124,9 @@ export interface RequestOpts {
124
124
  }
125
125
  export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
126
  export declare function exists(json: any, key: string): boolean;
127
- export declare function mapValues(data: any, fn: (item: any) => any): {};
127
+ export declare function mapValues(data: any, fn: (item: any) => any): {
128
+ [key: string]: any;
129
+ };
128
130
  export declare function canConsumeForm(consumes: Consume[]): boolean;
129
131
  export interface Consume {
130
132
  contentType: string;
@@ -275,7 +275,11 @@ export function exists(json, key) {
275
275
  return value !== null && value !== undefined;
276
276
  }
277
277
  export function mapValues(data, fn) {
278
- return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
278
+ const result = {};
279
+ for (const key of Object.keys(data)) {
280
+ result[key] = fn(data[key]);
281
+ }
282
+ return result;
279
283
  }
280
284
  export function canConsumeForm(consumes) {
281
285
  for (const consume of consumes) {
@@ -27,6 +27,9 @@ function GetContentContentDataFromJSONTyped(json, ignoreDiscriminator) {
27
27
  if (json == null) {
28
28
  return json;
29
29
  }
30
+ if (typeof json !== 'object') {
31
+ return json;
32
+ }
30
33
  if ((0, MediaContent_1.instanceOfMediaContent)(json)) {
31
34
  return (0, MediaContent_1.MediaContentFromJSONTyped)(json, true);
32
35
  }
@@ -45,6 +48,9 @@ function GetContentContentDataToJSONTyped(value, ignoreDiscriminator = false) {
45
48
  if (value == null) {
46
49
  return value;
47
50
  }
51
+ if (typeof value !== 'object') {
52
+ return value;
53
+ }
48
54
  if ((0, MediaContent_1.instanceOfMediaContent)(value)) {
49
55
  return (0, MediaContent_1.MediaContentToJSON)(value);
50
56
  }
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetContentSessionDetailScormSessionDataInner } from './GetContentSessionDetailScormSessionDataInner';
12
13
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
13
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
14
14
  /**
15
15
  * Detailed content session information
16
16
  * @export
@@ -66,11 +66,11 @@ export interface GetContentSessionDetail {
66
66
  */
67
67
  userData: GetContentSessionDetailUserData;
68
68
  /**
69
- *
70
- * @type {GetContentSessionDetailScormSessionData}
69
+ * SCORM session data if this is a SCORM session, null otherwise
70
+ * @type {Array<GetContentSessionDetailScormSessionDataInner>}
71
71
  * @memberof GetContentSessionDetail
72
72
  */
73
- scormSessionData: GetContentSessionDetailScormSessionData | null;
73
+ scormSessionData: Array<GetContentSessionDetailScormSessionDataInner> | null;
74
74
  }
75
75
  /**
76
76
  * @export
@@ -19,8 +19,8 @@ exports.GetContentSessionDetailFromJSON = GetContentSessionDetailFromJSON;
19
19
  exports.GetContentSessionDetailFromJSONTyped = GetContentSessionDetailFromJSONTyped;
20
20
  exports.GetContentSessionDetailToJSON = GetContentSessionDetailToJSON;
21
21
  exports.GetContentSessionDetailToJSONTyped = GetContentSessionDetailToJSONTyped;
22
+ const GetContentSessionDetailScormSessionDataInner_1 = require("./GetContentSessionDetailScormSessionDataInner");
22
23
  const GetContentSessionDetailUserData_1 = require("./GetContentSessionDetailUserData");
23
- const GetContentSessionDetailScormSessionData_1 = require("./GetContentSessionDetailScormSessionData");
24
24
  /**
25
25
  * @export
26
26
  */
@@ -80,7 +80,7 @@ function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator) {
80
80
  'gradeStatus': json['grade_status'],
81
81
  'durationInSeconds': json['duration_in_seconds'],
82
82
  'userData': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataFromJSON)(json['user_data']),
83
- 'scormSessionData': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataFromJSON)(json['scorm_session_data']),
83
+ 'scormSessionData': (json['scorm_session_data'] == null ? null : json['scorm_session_data'].map(GetContentSessionDetailScormSessionDataInner_1.GetContentSessionDetailScormSessionDataInnerFromJSON)),
84
84
  };
85
85
  }
86
86
  function GetContentSessionDetailToJSON(json) {
@@ -99,6 +99,6 @@ function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator = false)
99
99
  'grade_status': value['gradeStatus'],
100
100
  'duration_in_seconds': value['durationInSeconds'],
101
101
  'user_data': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataToJSON)(value['userData']),
102
- 'scorm_session_data': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataToJSON)(value['scormSessionData']),
102
+ 'scorm_session_data': (value['scormSessionData'] == null ? null : value['scormSessionData'].map(GetContentSessionDetailScormSessionDataInner_1.GetContentSessionDetailScormSessionDataInnerToJSON)),
103
103
  };
104
104
  }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetContentSessionDetailScormSessionDataInner
16
+ */
17
+ export interface GetContentSessionDetailScormSessionDataInner {
18
+ /**
19
+ * The external ID of the SCORM session
20
+ * @type {string}
21
+ * @memberof GetContentSessionDetailScormSessionDataInner
22
+ */
23
+ scormSessionId: string;
24
+ /**
25
+ * The name of the SCORM activity
26
+ * @type {string}
27
+ * @memberof GetContentSessionDetailScormSessionDataInner
28
+ */
29
+ activityName: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
33
+ */
34
+ export declare function instanceOfGetContentSessionDetailScormSessionDataInner(value: object): value is GetContentSessionDetailScormSessionDataInner;
35
+ export declare function GetContentSessionDetailScormSessionDataInnerFromJSON(json: any): GetContentSessionDetailScormSessionDataInner;
36
+ export declare function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionDataInner;
37
+ export declare function GetContentSessionDetailScormSessionDataInnerToJSON(json: any): GetContentSessionDetailScormSessionDataInner;
38
+ export declare function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value?: GetContentSessionDetailScormSessionDataInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfGetContentSessionDetailScormSessionDataInner = instanceOfGetContentSessionDetailScormSessionDataInner;
17
+ exports.GetContentSessionDetailScormSessionDataInnerFromJSON = GetContentSessionDetailScormSessionDataInnerFromJSON;
18
+ exports.GetContentSessionDetailScormSessionDataInnerFromJSONTyped = GetContentSessionDetailScormSessionDataInnerFromJSONTyped;
19
+ exports.GetContentSessionDetailScormSessionDataInnerToJSON = GetContentSessionDetailScormSessionDataInnerToJSON;
20
+ exports.GetContentSessionDetailScormSessionDataInnerToJSONTyped = GetContentSessionDetailScormSessionDataInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
23
+ */
24
+ function instanceOfGetContentSessionDetailScormSessionDataInner(value) {
25
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
26
+ return false;
27
+ if (!('activityName' in value) || value['activityName'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetContentSessionDetailScormSessionDataInnerFromJSON(json) {
32
+ return GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, false);
33
+ }
34
+ function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'scormSessionId': json['scorm_session_id'],
40
+ 'activityName': json['activity_name'],
41
+ };
42
+ }
43
+ function GetContentSessionDetailScormSessionDataInnerToJSON(json) {
44
+ return GetContentSessionDetailScormSessionDataInnerToJSONTyped(json, false);
45
+ }
46
+ function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'scorm_session_id': value['scormSessionId'],
52
+ 'activity_name': value['activityName'],
53
+ };
54
+ }
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetContentSessionListItemScormSessionData } from './GetContentSessionListItemScormSessionData';
12
13
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
13
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
14
14
  /**
15
15
  * A content session list item
16
16
  * @export
@@ -49,10 +49,10 @@ export interface GetContentSessionListItem {
49
49
  userData: GetContentSessionDetailUserData;
50
50
  /**
51
51
  *
52
- * @type {GetContentSessionDetailScormSessionData}
52
+ * @type {GetContentSessionListItemScormSessionData}
53
53
  * @memberof GetContentSessionListItem
54
54
  */
55
- scormSessionData: GetContentSessionDetailScormSessionData | null;
55
+ scormSessionData: GetContentSessionListItemScormSessionData | null;
56
56
  }
57
57
  /**
58
58
  * Check if a given object implements the GetContentSessionListItem interface.
@@ -18,8 +18,8 @@ exports.GetContentSessionListItemFromJSON = GetContentSessionListItemFromJSON;
18
18
  exports.GetContentSessionListItemFromJSONTyped = GetContentSessionListItemFromJSONTyped;
19
19
  exports.GetContentSessionListItemToJSON = GetContentSessionListItemToJSON;
20
20
  exports.GetContentSessionListItemToJSONTyped = GetContentSessionListItemToJSONTyped;
21
+ const GetContentSessionListItemScormSessionData_1 = require("./GetContentSessionListItemScormSessionData");
21
22
  const GetContentSessionDetailUserData_1 = require("./GetContentSessionDetailUserData");
22
- const GetContentSessionDetailScormSessionData_1 = require("./GetContentSessionDetailScormSessionData");
23
23
  /**
24
24
  * Check if a given object implements the GetContentSessionListItem interface.
25
25
  */
@@ -51,7 +51,7 @@ function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'updatedAt': json['updated_at'],
52
52
  'contentId': json['content_id'],
53
53
  'userData': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataFromJSON)(json['user_data']),
54
- 'scormSessionData': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataFromJSON)(json['scorm_session_data']),
54
+ 'scormSessionData': (0, GetContentSessionListItemScormSessionData_1.GetContentSessionListItemScormSessionDataFromJSON)(json['scorm_session_data']),
55
55
  };
56
56
  }
57
57
  function GetContentSessionListItemToJSON(json) {
@@ -67,6 +67,6 @@ function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator = false
67
67
  'updated_at': value['updatedAt'],
68
68
  'content_id': value['contentId'],
69
69
  'user_data': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataToJSON)(value['userData']),
70
- 'scorm_session_data': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataToJSON)(value['scormSessionData']),
70
+ 'scorm_session_data': (0, GetContentSessionListItemScormSessionData_1.GetContentSessionListItemScormSessionDataToJSON)(value['scormSessionData']),
71
71
  };
72
72
  }
@@ -0,0 +1,32 @@
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
+ * SCORM session data if this is a SCORM session, null otherwise
14
+ * @export
15
+ * @interface GetContentSessionListItemScormSessionData
16
+ */
17
+ export interface GetContentSessionListItemScormSessionData {
18
+ /**
19
+ * The external ID of the SCORM session
20
+ * @type {string}
21
+ * @memberof GetContentSessionListItemScormSessionData
22
+ */
23
+ scormSessionId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetContentSessionListItemScormSessionData interface.
27
+ */
28
+ export declare function instanceOfGetContentSessionListItemScormSessionData(value: object): value is GetContentSessionListItemScormSessionData;
29
+ export declare function GetContentSessionListItemScormSessionDataFromJSON(json: any): GetContentSessionListItemScormSessionData;
30
+ export declare function GetContentSessionListItemScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItemScormSessionData;
31
+ export declare function GetContentSessionListItemScormSessionDataToJSON(json: any): GetContentSessionListItemScormSessionData;
32
+ export declare function GetContentSessionListItemScormSessionDataToJSONTyped(value?: GetContentSessionListItemScormSessionData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfGetContentSessionListItemScormSessionData = instanceOfGetContentSessionListItemScormSessionData;
17
+ exports.GetContentSessionListItemScormSessionDataFromJSON = GetContentSessionListItemScormSessionDataFromJSON;
18
+ exports.GetContentSessionListItemScormSessionDataFromJSONTyped = GetContentSessionListItemScormSessionDataFromJSONTyped;
19
+ exports.GetContentSessionListItemScormSessionDataToJSON = GetContentSessionListItemScormSessionDataToJSON;
20
+ exports.GetContentSessionListItemScormSessionDataToJSONTyped = GetContentSessionListItemScormSessionDataToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetContentSessionListItemScormSessionData interface.
23
+ */
24
+ function instanceOfGetContentSessionListItemScormSessionData(value) {
25
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function GetContentSessionListItemScormSessionDataFromJSON(json) {
30
+ return GetContentSessionListItemScormSessionDataFromJSONTyped(json, false);
31
+ }
32
+ function GetContentSessionListItemScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'scormSessionId': json['scorm_session_id'],
38
+ };
39
+ }
40
+ function GetContentSessionListItemScormSessionDataToJSON(json) {
41
+ return GetContentSessionListItemScormSessionDataToJSONTyped(json, false);
42
+ }
43
+ function GetContentSessionListItemScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'scorm_session_id': value['scormSessionId'],
49
+ };
50
+ }
@@ -70,8 +70,8 @@ function GetContentVersionToJSONTyped(value, ignoreDiscriminator = false) {
70
70
  'content_id': value['contentId'],
71
71
  'version': value['version'],
72
72
  'is_active': value['isActive'],
73
- 'created_at': ((value['createdAt']).toISOString()),
74
- 'updated_at': ((value['updatedAt']).toISOString()),
73
+ 'created_at': value['createdAt'].toISOString(),
74
+ 'updated_at': value['updatedAt'].toISOString(),
75
75
  'sandbox': (0, GetContentVersionSandbox_1.GetContentVersionSandboxToJSON)(value['sandbox']),
76
76
  'scorm_data': (0, GetContentVersionScormData_1.GetContentVersionScormDataToJSON)(value['scormData']),
77
77
  };
@@ -60,7 +60,7 @@ function GetContentVersionListItemsInnerToJSONTyped(value, ignoreDiscriminator =
60
60
  'id': value['id'],
61
61
  'version': value['version'],
62
62
  'is_active': value['isActive'],
63
- 'created_at': ((value['createdAt']).toISOString()),
64
- 'updated_at': ((value['updatedAt']).toISOString()),
63
+ 'created_at': value['createdAt'].toISOString(),
64
+ 'updated_at': value['updatedAt'].toISOString(),
65
65
  };
66
66
  }
@@ -74,6 +74,6 @@ function GetManualQuestionSelectionItemToJSONTyped(value, ignoreDiscriminator =
74
74
  'points': value['points'],
75
75
  'version_locked': value['versionLocked'],
76
76
  'question_details': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsToJSON)(value['questionDetails']),
77
- 'created_at': ((value['createdAt']).toISOString()),
77
+ 'created_at': value['createdAt'].toISOString(),
78
78
  };
79
79
  }
@@ -73,7 +73,7 @@ function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = false) {
73
73
  'difficulty_level': value['difficultyLevel'],
74
74
  'tags': value['tags'],
75
75
  'search': value['search'],
76
- 'created_after': value['createdAfter'] == null ? undefined : ((value['createdAfter']).toISOString().substring(0, 10)),
77
- 'created_before': value['createdBefore'] == null ? undefined : ((value['createdBefore']).toISOString().substring(0, 10)),
76
+ 'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0, 10),
77
+ 'created_before': value['createdBefore'] == null ? value['createdBefore'] : value['createdBefore'].toISOString().substring(0, 10),
78
78
  };
79
79
  }