@easyedu/js-lsm-api 1.30.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 (357) hide show
  1. package/.openapi-generator/FILES +209 -0
  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/GetContentVersion.js +2 -2
  26. package/dist/esm/models/GetContentVersionListItemsInner.js +2 -2
  27. package/dist/esm/models/GetManualQuestionSelectionItem.js +1 -1
  28. package/dist/esm/models/GetQuestionListFilters.js +2 -2
  29. package/dist/esm/models/GetQuiz.js +2 -2
  30. package/dist/esm/models/GetQuizAttemptAnalyticsBasicInfo.js +2 -2
  31. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +1 -1
  32. package/dist/esm/models/GetQuizAttemptAttempt.js +3 -3
  33. package/dist/esm/models/GetQuizAttemptListAllOfAttempts.js +2 -2
  34. package/dist/esm/models/GetQuizAttemptListAllOfFiltersDateRange.js +2 -2
  35. package/dist/esm/models/GetQuizAttemptQuestionsInner.js +1 -1
  36. package/dist/esm/models/GetQuizAttemptQuestionsInnerCurrentAnswer.js +1 -1
  37. package/dist/esm/models/GetQuizCriteriaItem.js +2 -2
  38. package/dist/esm/models/GetQuizCriteriaListItemsInner.js +2 -2
  39. package/dist/esm/models/GetQuizListAllOfQuizzes.js +2 -2
  40. package/dist/esm/models/GetQuizQuestionsItemsInner.js +1 -1
  41. package/dist/esm/models/GetQuizResultsTiming.js +2 -2
  42. package/dist/esm/models/GetScormPackagePackageInfo.js +2 -2
  43. package/dist/esm/models/GetUserQuizAttemptsAllOfAttempts.js +2 -2
  44. package/dist/esm/models/PostContentQuizAssignment.js +3 -3
  45. package/dist/esm/models/PostContentQuizQuestionSelection.js +6 -0
  46. package/dist/esm/models/PostQuizAttemptAttempt.js +2 -2
  47. package/dist/esm/models/PostQuizAttemptSubmit.js +1 -1
  48. package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +6 -0
  49. package/dist/esm/models/PostVerifyManifest.d.ts +106 -0
  50. package/dist/esm/models/PostVerifyManifest.js +73 -0
  51. package/dist/esm/models/PostVerifyManifestItemsInner.d.ts +74 -0
  52. package/dist/esm/models/PostVerifyManifestItemsInner.js +55 -0
  53. package/dist/esm/models/PostVerifyManifestResourcesInner.d.ts +56 -0
  54. package/dist/esm/models/PostVerifyManifestResourcesInner.js +49 -0
  55. package/dist/esm/models/PutQuizAnswerAnswer.js +6 -0
  56. package/dist/esm/models/QuizContentAssignment.js +3 -3
  57. package/dist/esm/models/ScormGetValueResponse.d.ts +38 -0
  58. package/dist/esm/models/ScormGetValueResponse.js +47 -0
  59. package/dist/esm/models/ScormSetValueRequest.d.ts +38 -0
  60. package/dist/esm/models/ScormSetValueRequest.js +47 -0
  61. package/dist/esm/models/ScormSetValueResponse.d.ts +32 -0
  62. package/dist/esm/models/ScormSetValueResponse.js +43 -0
  63. package/dist/esm/models/index.d.ts +6 -0
  64. package/dist/esm/models/index.js +6 -0
  65. package/dist/esm/runtime.d.ts +3 -1
  66. package/dist/esm/runtime.js +5 -1
  67. package/dist/models/GetContentContentData.js +6 -0
  68. package/dist/models/GetContentVersion.js +2 -2
  69. package/dist/models/GetContentVersionListItemsInner.js +2 -2
  70. package/dist/models/GetManualQuestionSelectionItem.js +1 -1
  71. package/dist/models/GetQuestionListFilters.js +2 -2
  72. package/dist/models/GetQuiz.js +2 -2
  73. package/dist/models/GetQuizAttemptAnalyticsBasicInfo.js +2 -2
  74. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +1 -1
  75. package/dist/models/GetQuizAttemptAttempt.js +3 -3
  76. package/dist/models/GetQuizAttemptListAllOfAttempts.js +2 -2
  77. package/dist/models/GetQuizAttemptListAllOfFiltersDateRange.js +2 -2
  78. package/dist/models/GetQuizAttemptQuestionsInner.js +1 -1
  79. package/dist/models/GetQuizAttemptQuestionsInnerCurrentAnswer.js +1 -1
  80. package/dist/models/GetQuizCriteriaItem.js +2 -2
  81. package/dist/models/GetQuizCriteriaListItemsInner.js +2 -2
  82. package/dist/models/GetQuizListAllOfQuizzes.js +2 -2
  83. package/dist/models/GetQuizQuestionsItemsInner.js +1 -1
  84. package/dist/models/GetQuizResultsTiming.js +2 -2
  85. package/dist/models/GetScormPackagePackageInfo.js +2 -2
  86. package/dist/models/GetUserQuizAttemptsAllOfAttempts.js +2 -2
  87. package/dist/models/PostContentQuizAssignment.js +3 -3
  88. package/dist/models/PostContentQuizQuestionSelection.js +6 -0
  89. package/dist/models/PostQuizAttemptAttempt.js +2 -2
  90. package/dist/models/PostQuizAttemptSubmit.js +1 -1
  91. package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +6 -0
  92. package/dist/models/PostVerifyManifest.d.ts +106 -0
  93. package/dist/models/PostVerifyManifest.js +80 -0
  94. package/dist/models/PostVerifyManifestItemsInner.d.ts +74 -0
  95. package/dist/models/PostVerifyManifestItemsInner.js +62 -0
  96. package/dist/models/PostVerifyManifestResourcesInner.d.ts +56 -0
  97. package/dist/models/PostVerifyManifestResourcesInner.js +56 -0
  98. package/dist/models/PutQuizAnswerAnswer.js +6 -0
  99. package/dist/models/QuizContentAssignment.js +3 -3
  100. package/dist/models/ScormGetValueResponse.d.ts +38 -0
  101. package/dist/models/ScormGetValueResponse.js +54 -0
  102. package/dist/models/ScormSetValueRequest.d.ts +38 -0
  103. package/dist/models/ScormSetValueRequest.js +54 -0
  104. package/dist/models/ScormSetValueResponse.d.ts +32 -0
  105. package/dist/models/ScormSetValueResponse.js +50 -0
  106. package/dist/models/index.d.ts +6 -0
  107. package/dist/models/index.js +6 -0
  108. package/dist/runtime.d.ts +3 -1
  109. package/dist/runtime.js +5 -1
  110. package/docs/ContentApi.md +1642 -0
  111. package/docs/CourseApi.md +845 -0
  112. package/docs/CriteriaBasedSelection.md +40 -0
  113. package/docs/CriteriaBasedSelectionCriteria.md +42 -0
  114. package/docs/CriteriaBasedSelectionDistribution.md +37 -0
  115. package/docs/FillInBlank.md +36 -0
  116. package/docs/FillInBlank1.md +36 -0
  117. package/docs/GetContent.md +58 -0
  118. package/docs/GetContentContentData.md +53 -0
  119. package/docs/GetContentGradeDetail.md +50 -0
  120. package/docs/GetContentGrades.md +42 -0
  121. package/docs/GetContentGradesItemsInner.md +40 -0
  122. package/docs/GetContentGradesItemsInnerUser.md +38 -0
  123. package/docs/GetContentInstructorBasicReporting.md +38 -0
  124. package/docs/GetContentInstructorBasicReportingContentInfo.md +38 -0
  125. package/docs/GetContentInstructorBasicReportingEngagement.md +42 -0
  126. package/docs/GetContentInstructorBasicReportingPerformance.md +36 -0
  127. package/docs/GetContentList.md +43 -0
  128. package/docs/GetContentSession.md +45 -0
  129. package/docs/GetContentSessionDetail.md +51 -0
  130. package/docs/GetContentSessionDetailScormSessionDataInner.md +36 -0
  131. package/docs/GetContentSessionDetailUserData.md +36 -0
  132. package/docs/GetContentSessionList.md +43 -0
  133. package/docs/GetContentSessionListItem.md +45 -0
  134. package/docs/GetContentSessionListItemScormSessionData.md +35 -0
  135. package/docs/GetContentUpload.md +38 -0
  136. package/docs/GetContentVersion.md +49 -0
  137. package/docs/GetContentVersionList.md +43 -0
  138. package/docs/GetContentVersionListItemsInner.md +42 -0
  139. package/docs/GetContentVersionSandbox.md +35 -0
  140. package/docs/GetContentVersionScormData.md +35 -0
  141. package/docs/GetCourse.md +44 -0
  142. package/docs/GetCourseEnrollment.md +51 -0
  143. package/docs/GetCourseEnrollmentList.md +43 -0
  144. package/docs/GetCourseEnrollmentListItem.md +53 -0
  145. package/docs/GetCourseExport.md +49 -0
  146. package/docs/GetCourseExportList.md +43 -0
  147. package/docs/GetCourseList.md +43 -0
  148. package/docs/GetCourseReportingBasic.md +38 -0
  149. package/docs/GetCourseStudentReporting.md +38 -0
  150. package/docs/GetCourseStudentReportingCourseInfo.md +34 -0
  151. package/docs/GetCourseStudentReportingEngagement.md +36 -0
  152. package/docs/GetCourseStudentReportingPerformance.md +34 -0
  153. package/docs/GetManualQuestionSelectionItem.md +48 -0
  154. package/docs/GetManualQuestionSelectionList.md +44 -0
  155. package/docs/GetModule.md +44 -0
  156. package/docs/GetModuleInstructorBasicReporting.md +38 -0
  157. package/docs/GetModuleInstructorBasicReportingEngagement.md +34 -0
  158. package/docs/GetModuleInstructorBasicReportingModuleInfo.md +34 -0
  159. package/docs/GetModuleInstructorBasicReportingPerformance.md +34 -0
  160. package/docs/GetModuleList.md +43 -0
  161. package/docs/GetModuleStudentReporting.md +38 -0
  162. package/docs/GetModuleStudentReportingAccess.md +36 -0
  163. package/docs/GetModuleStudentReportingProgress.md +36 -0
  164. package/docs/GetPortal.md +48 -0
  165. package/docs/GetPortalBasicReporting.md +36 -0
  166. package/docs/GetPortalBasicReportingCertificates.md +34 -0
  167. package/docs/GetPortalBasicReportingPortalInfo.md +38 -0
  168. package/docs/GetPortalList.md +43 -0
  169. package/docs/GetPortalStudentReporting.md +36 -0
  170. package/docs/GetPortalStudentReportingCertificates.md +34 -0
  171. package/docs/GetPortalStudentReportingPortalInfo.md +38 -0
  172. package/docs/GetPortalUser.md +45 -0
  173. package/docs/GetPortalUserList.md +43 -0
  174. package/docs/GetQuestion.md +62 -0
  175. package/docs/GetQuestionAnswerChoicesInner.md +38 -0
  176. package/docs/GetQuestionList.md +44 -0
  177. package/docs/GetQuestionListFilters.md +48 -0
  178. package/docs/GetQuiz.md +68 -0
  179. package/docs/GetQuizAttempt.md +38 -0
  180. package/docs/GetQuizAttemptAnalytics.md +46 -0
  181. package/docs/GetQuizAttemptAnalyticsBasicInfo.md +49 -0
  182. package/docs/GetQuizAttemptAnalyticsPerformanceBreakdown.md +39 -0
  183. package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.md +44 -0
  184. package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.md +44 -0
  185. package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByTopicInner.md +44 -0
  186. package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInner.md +58 -0
  187. package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInnerCorrectAnswer.md +39 -0
  188. package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInnerUserAnswer.md +39 -0
  189. package/docs/GetQuizAttemptAnalyticsScoring.md +49 -0
  190. package/docs/GetQuizAttemptAttempt.md +61 -0
  191. package/docs/GetQuizAttemptList.md +46 -0
  192. package/docs/GetQuizAttemptListAllOfAttempts.md +68 -0
  193. package/docs/GetQuizAttemptListAllOfFilters.md +45 -0
  194. package/docs/GetQuizAttemptListAllOfFiltersDateRange.md +37 -0
  195. package/docs/GetQuizAttemptListAllOfSummary.md +45 -0
  196. package/docs/GetQuizAttemptQuestionsInner.md +52 -0
  197. package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +38 -0
  198. package/docs/GetQuizAttemptQuestionsInnerCurrentAnswer.md +41 -0
  199. package/docs/GetQuizAttemptQuizSettings.md +45 -0
  200. package/docs/GetQuizCriteria.md +38 -0
  201. package/docs/GetQuizCriteriaEstimatedQuestions.md +39 -0
  202. package/docs/GetQuizCriteriaItem.md +58 -0
  203. package/docs/GetQuizCriteriaList.md +42 -0
  204. package/docs/GetQuizCriteriaListItemsInner.md +58 -0
  205. package/docs/GetQuizList.md +44 -0
  206. package/docs/GetQuizListAllOfFilters.md +43 -0
  207. package/docs/GetQuizListAllOfQuizzes.md +64 -0
  208. package/docs/GetQuizListAllOfStatistics.md +43 -0
  209. package/docs/GetQuizQuestions.md +48 -0
  210. package/docs/GetQuizQuestionsItemsInner.md +48 -0
  211. package/docs/GetQuizQuestionsItemsInnerQuestionDetails.md +53 -0
  212. package/docs/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.md +42 -0
  213. package/docs/GetQuizResults.md +52 -0
  214. package/docs/GetQuizResultsFeedback.md +39 -0
  215. package/docs/GetQuizResultsFeedbackDifficultyPerformanceInner.md +40 -0
  216. package/docs/GetQuizResultsFeedbackTopicPerformanceInner.md +40 -0
  217. package/docs/GetQuizResultsQuestionsInner.md +50 -0
  218. package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +40 -0
  219. package/docs/GetQuizResultsQuestionsInnerStudentAnswer.md +43 -0
  220. package/docs/GetQuizResultsScore.md +41 -0
  221. package/docs/GetQuizResultsTiming.md +43 -0
  222. package/docs/GetQuizStatistics.md +43 -0
  223. package/docs/GetScormApiLogItem.md +45 -0
  224. package/docs/GetScormApiLogs.md +43 -0
  225. package/docs/GetScormPackage.md +37 -0
  226. package/docs/GetScormPackagePackageInfo.md +59 -0
  227. package/docs/GetScormSessionData.md +43 -0
  228. package/docs/GetScormSessionDataActivity.md +36 -0
  229. package/docs/GetUser.md +42 -0
  230. package/docs/GetUserQuizAttempts.md +46 -0
  231. package/docs/GetUserQuizAttemptsAllOfAttempts.md +70 -0
  232. package/docs/GetUserQuizAttemptsAllOfFilters.md +47 -0
  233. package/docs/GetUserQuizAttemptsAllOfSummary.md +47 -0
  234. package/docs/LoginRes.md +36 -0
  235. package/docs/LoginResAuthData.md +36 -0
  236. package/docs/LoginResUserData.md +40 -0
  237. package/docs/LoginResUserDataSelectedPortal.md +36 -0
  238. package/docs/ManualSelection.md +36 -0
  239. package/docs/MediaContent.md +38 -0
  240. package/docs/ModuleApi.md +284 -0
  241. package/docs/MultipleAnswer.md +36 -0
  242. package/docs/MultipleAnswer1.md +36 -0
  243. package/docs/NoAnswer.md +34 -0
  244. package/docs/OtherApi.md +66 -0
  245. package/docs/Paginated.md +40 -0
  246. package/docs/PortalApi.md +493 -0
  247. package/docs/PostContentQuiz.md +42 -0
  248. package/docs/PostContentQuizAssignment.md +41 -0
  249. package/docs/PostContentQuizQuestionSelection.md +43 -0
  250. package/docs/PostContentQuizSettings.md +51 -0
  251. package/docs/PostContentSession.md +43 -0
  252. package/docs/PostContentUpload.md +36 -0
  253. package/docs/PostCourse.md +38 -0
  254. package/docs/PostCourseEnrollment.md +40 -0
  255. package/docs/PostCourseExport.md +35 -0
  256. package/docs/PostLogin.md +36 -0
  257. package/docs/PostManualQuestionSelection.md +40 -0
  258. package/docs/PostModule.md +38 -0
  259. package/docs/PostPortal.md +38 -0
  260. package/docs/PostPortalInvite.md +40 -0
  261. package/docs/PostQuestion.md +52 -0
  262. package/docs/PostQuestionAnswerChoicesInner.md +36 -0
  263. package/docs/PostQuiz.md +58 -0
  264. package/docs/PostQuizAttempt.md +38 -0
  265. package/docs/PostQuizAttemptAttempt.md +55 -0
  266. package/docs/PostQuizAttemptQuestionsInner.md +48 -0
  267. package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +38 -0
  268. package/docs/PostQuizAttemptQuizSettings.md +45 -0
  269. package/docs/PostQuizAttemptSubmit.md +38 -0
  270. package/docs/PostQuizAttemptSubmitFinalAnswersInner.md +36 -0
  271. package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +41 -0
  272. package/docs/PostQuizCriteria.md +36 -0
  273. package/docs/PostQuizCriteriaCriteriaInner.md +49 -0
  274. package/docs/PostQuizQuestions.md +36 -0
  275. package/docs/PostQuizQuestionsQuestionsInner.md +40 -0
  276. package/docs/PostQuizSettings.md +41 -0
  277. package/docs/PostResetPassword.md +36 -0
  278. package/docs/PostSendResetPassword.md +34 -0
  279. package/docs/PostVerifyManifest.md +59 -0
  280. package/docs/PostVerifyManifestItemsInner.md +48 -0
  281. package/docs/PostVerifyManifestResourcesInner.md +42 -0
  282. package/docs/PutContent.md +36 -0
  283. package/docs/PutContentVersion.md +35 -0
  284. package/docs/PutCourse.md +44 -0
  285. package/docs/PutCourseEnrollment.md +40 -0
  286. package/docs/PutModule.md +40 -0
  287. package/docs/PutPortalBranding.md +38 -0
  288. package/docs/PutQuestion.md +52 -0
  289. package/docs/PutQuestionAnswerChoicesInner.md +38 -0
  290. package/docs/PutQuiz.md +56 -0
  291. package/docs/PutQuizAnswer.md +36 -0
  292. package/docs/PutQuizAnswerAnswer.md +41 -0
  293. package/docs/PutQuizSettings.md +41 -0
  294. package/docs/PutUser.md +42 -0
  295. package/docs/QuestionApi.md +368 -0
  296. package/docs/QuizApi.md +1793 -0
  297. package/docs/QuizContent.md +40 -0
  298. package/docs/QuizContentAssignment.md +39 -0
  299. package/docs/QuizContentSettings.md +43 -0
  300. package/docs/ReportingApi.md +674 -0
  301. package/docs/SCORMContent.md +38 -0
  302. package/docs/ScormGetValueResponse.md +37 -0
  303. package/docs/ScormSessionData.md +43 -0
  304. package/docs/ScormSessionDataProgress.md +36 -0
  305. package/docs/ScormSessionDataScore.md +40 -0
  306. package/docs/ScormSessionDataSession.md +34 -0
  307. package/docs/ScormSessionDataStatus.md +40 -0
  308. package/docs/ScormSessionDataTime.md +40 -0
  309. package/docs/ScormSetValueRequest.md +37 -0
  310. package/docs/ScormSetValueResponse.md +35 -0
  311. package/docs/SingleAnswer.md +36 -0
  312. package/docs/UserApi.md +460 -0
  313. package/package.json +2 -2
  314. package/src/apis/ContentApi.ts +411 -16
  315. package/src/apis/CourseApi.ts +61 -12
  316. package/src/apis/ModuleApi.ts +22 -4
  317. package/src/apis/OtherApi.ts +4 -1
  318. package/src/apis/PortalApi.ts +33 -7
  319. package/src/apis/QuestionApi.ts +23 -5
  320. package/src/apis/QuizApi.ts +129 -25
  321. package/src/apis/ReportingApi.ts +57 -9
  322. package/src/apis/UserApi.ts +30 -7
  323. package/src/models/GetContentContentData.ts +6 -3
  324. package/src/models/GetContentVersion.ts +2 -2
  325. package/src/models/GetContentVersionListItemsInner.ts +2 -2
  326. package/src/models/GetManualQuestionSelectionItem.ts +1 -1
  327. package/src/models/GetQuestionListFilters.ts +2 -2
  328. package/src/models/GetQuiz.ts +2 -2
  329. package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +2 -2
  330. package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +1 -1
  331. package/src/models/GetQuizAttemptAttempt.ts +3 -3
  332. package/src/models/GetQuizAttemptListAllOfAttempts.ts +2 -2
  333. package/src/models/GetQuizAttemptListAllOfFiltersDateRange.ts +2 -2
  334. package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
  335. package/src/models/GetQuizAttemptQuestionsInnerCurrentAnswer.ts +1 -1
  336. package/src/models/GetQuizCriteriaItem.ts +2 -2
  337. package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
  338. package/src/models/GetQuizListAllOfQuizzes.ts +2 -2
  339. package/src/models/GetQuizQuestionsItemsInner.ts +1 -1
  340. package/src/models/GetQuizResultsTiming.ts +2 -2
  341. package/src/models/GetScormPackagePackageInfo.ts +2 -2
  342. package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +2 -2
  343. package/src/models/PostContentQuizAssignment.ts +3 -3
  344. package/src/models/PostContentQuizQuestionSelection.ts +6 -3
  345. package/src/models/PostQuizAttemptAttempt.ts +2 -2
  346. package/src/models/PostQuizAttemptSubmit.ts +1 -1
  347. package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +6 -3
  348. package/src/models/PostVerifyManifest.ts +179 -0
  349. package/src/models/PostVerifyManifestItemsInner.ts +121 -0
  350. package/src/models/PostVerifyManifestResourcesInner.ts +97 -0
  351. package/src/models/PutQuizAnswerAnswer.ts +6 -3
  352. package/src/models/QuizContentAssignment.ts +3 -3
  353. package/src/models/ScormGetValueResponse.ts +75 -0
  354. package/src/models/ScormSetValueRequest.ts +75 -0
  355. package/src/models/ScormSetValueResponse.ts +66 -0
  356. package/src/models/index.ts +6 -0
  357. package/src/runtime.ts +5 -4
@@ -0,0 +1,1642 @@
1
+ # ContentApi
2
+
3
+ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com/stage1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**commitScormSession**](ContentApi.md#commitscormsession) | **POST** /scorm/sessions/{scormSessionId}/commit | Commit SCORM session data |
8
+ | [**getContent**](ContentApi.md#getcontent) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | get content |
9
+ | [**getContentList**](ContentApi.md#getcontentlist) | **GET** /courses/{courseId}/modules/{moduleId}/contents | get content list |
10
+ | [**getContentSession**](ContentApi.md#getcontentsession) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/session | get content session |
11
+ | [**getContentSessionDetail**](ContentApi.md#getcontentsessiondetail) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions/{sessionId} | Get content session details (instructor only) |
12
+ | [**getContentVersion**](ContentApi.md#getcontentversion) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Get details of a specific content version |
13
+ | [**getContentVersionList**](ContentApi.md#getcontentversionlist) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions | Get all versions of a content |
14
+ | [**getScormApiLogs**](ContentApi.md#getscormapilogs) | **GET** /scorm/sessions/{sessionId}/api-logs | Get SCORM API call logs (instructor only) |
15
+ | [**getScormPackage**](ContentApi.md#getscormpackage) | **GET** /scorm/packages/{packageId} | Get details of a SCORM package |
16
+ | [**getScormSessionData**](ContentApi.md#getscormsessiondata) | **GET** /scorm/sessions/{scormSessionId}/session-data | Get SCORM session data (instructor only) |
17
+ | [**getScormValue**](ContentApi.md#getscormvalue) | **GET** /scorm/sessions/{scormSessionId}/get-value | Get a SCORM CMI data element value |
18
+ | [**initializeScormSession**](ContentApi.md#initializescormsession) | **POST** /scorm/sessions/{scormSessionId}/initialize | Initialize a SCORM session |
19
+ | [**listContentSessions**](ContentApi.md#listcontentsessions) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions | List content sessions (instructor only) |
20
+ | [**postContentProcess**](ContentApi.md#postcontentprocess) | **POST** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/process | Post a new content process |
21
+ | [**postContentQuiz**](ContentApi.md#postcontentquiz) | **POST** /courses/{courseId}/modules/{moduleId}/contents/quiz | Create a new quiz content |
22
+ | [**postContentSession**](ContentApi.md#postcontentsession) | **POST** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/session | Post a new content session |
23
+ | [**postContentUpload**](ContentApi.md#postcontentupload) | **POST** /courses/{courseId}/modules/{moduleId}/contents/upload | Post a new content upload |
24
+ | [**putContent**](ContentApi.md#putcontent) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | Update content by id |
25
+ | [**putContentVersion**](ContentApi.md#putcontentversion) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Update a content version |
26
+ | [**setScormValue**](ContentApi.md#setscormvalue) | **POST** /scorm/sessions/{scormSessionId}/set-value | Set a SCORM CMI data element value |
27
+ | [**terminateScormSession**](ContentApi.md#terminatescormsession) | **POST** /scorm/sessions/{scormSessionId}/terminate | Terminate a SCORM session |
28
+ | [**verifyScormManifest**](ContentApi.md#verifyscormmanifest) | **POST** /scorm/tools/verify-manifest | Parse and verify a SCORM manifest |
29
+
30
+
31
+
32
+ ## commitScormSession
33
+
34
+ > commitScormSession(scormSessionId)
35
+
36
+ Commit SCORM session data
37
+
38
+ Commit/persist SCORM CMI data changes to the database
39
+
40
+ ### Example
41
+
42
+ ```ts
43
+ import {
44
+ Configuration,
45
+ ContentApi,
46
+ } from '@easyedu/js-lsm-api';
47
+ import type { CommitScormSessionRequest } from '@easyedu/js-lsm-api';
48
+
49
+ async function example() {
50
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
51
+ const api = new ContentApi();
52
+
53
+ const body = {
54
+ // string | The external_id of the SCORM session
55
+ scormSessionId: scormSessionId_example,
56
+ } satisfies CommitScormSessionRequest;
57
+
58
+ try {
59
+ const data = await api.commitScormSession(body);
60
+ console.log(data);
61
+ } catch (error) {
62
+ console.error(error);
63
+ }
64
+ }
65
+
66
+ // Run the test
67
+ example().catch(console.error);
68
+ ```
69
+
70
+ ### Parameters
71
+
72
+
73
+ | Name | Type | Description | Notes |
74
+ |------------- | ------------- | ------------- | -------------|
75
+ | **scormSessionId** | `string` | The external_id of the SCORM session | [Defaults to `undefined`] |
76
+
77
+ ### Return type
78
+
79
+ `void` (Empty response body)
80
+
81
+ ### Authorization
82
+
83
+ No authorization required
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: Not defined
88
+ - **Accept**: Not defined
89
+
90
+
91
+ ### HTTP response details
92
+ | Status code | Description | Response headers |
93
+ |-------------|-------------|------------------|
94
+ | **200** | Successfully committed SCORM session data | - |
95
+ | **401** | Unauthorized | - |
96
+ | **404** | SCORM session not found | - |
97
+
98
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
99
+
100
+
101
+ ## getContent
102
+
103
+ > GetContent getContent(contentId, moduleId, courseId)
104
+
105
+ get content
106
+
107
+ ### Example
108
+
109
+ ```ts
110
+ import {
111
+ Configuration,
112
+ ContentApi,
113
+ } from '@easyedu/js-lsm-api';
114
+ import type { GetContentRequest } from '@easyedu/js-lsm-api';
115
+
116
+ async function example() {
117
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
118
+ const api = new ContentApi();
119
+
120
+ const body = {
121
+ // string
122
+ contentId: contentId_example,
123
+ // string
124
+ moduleId: moduleId_example,
125
+ // string
126
+ courseId: courseId_example,
127
+ } satisfies GetContentRequest;
128
+
129
+ try {
130
+ const data = await api.getContent(body);
131
+ console.log(data);
132
+ } catch (error) {
133
+ console.error(error);
134
+ }
135
+ }
136
+
137
+ // Run the test
138
+ example().catch(console.error);
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+
144
+ | Name | Type | Description | Notes |
145
+ |------------- | ------------- | ------------- | -------------|
146
+ | **contentId** | `string` | | [Defaults to `undefined`] |
147
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
148
+ | **courseId** | `string` | | [Defaults to `undefined`] |
149
+
150
+ ### Return type
151
+
152
+ [**GetContent**](GetContent.md)
153
+
154
+ ### Authorization
155
+
156
+ No authorization required
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: `application/json`
162
+
163
+
164
+ ### HTTP response details
165
+ | Status code | Description | Response headers |
166
+ |-------------|-------------|------------------|
167
+ | **200** | get content response OK | - |
168
+
169
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
170
+
171
+
172
+ ## getContentList
173
+
174
+ > GetContentList getContentList(moduleId, courseId)
175
+
176
+ get content list
177
+
178
+ ### Example
179
+
180
+ ```ts
181
+ import {
182
+ Configuration,
183
+ ContentApi,
184
+ } from '@easyedu/js-lsm-api';
185
+ import type { GetContentListRequest } from '@easyedu/js-lsm-api';
186
+
187
+ async function example() {
188
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
189
+ const api = new ContentApi();
190
+
191
+ const body = {
192
+ // string
193
+ moduleId: moduleId_example,
194
+ // string
195
+ courseId: courseId_example,
196
+ } satisfies GetContentListRequest;
197
+
198
+ try {
199
+ const data = await api.getContentList(body);
200
+ console.log(data);
201
+ } catch (error) {
202
+ console.error(error);
203
+ }
204
+ }
205
+
206
+ // Run the test
207
+ example().catch(console.error);
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+
213
+ | Name | Type | Description | Notes |
214
+ |------------- | ------------- | ------------- | -------------|
215
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
216
+ | **courseId** | `string` | | [Defaults to `undefined`] |
217
+
218
+ ### Return type
219
+
220
+ [**GetContentList**](GetContentList.md)
221
+
222
+ ### Authorization
223
+
224
+ No authorization required
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: `application/json`
230
+
231
+
232
+ ### HTTP response details
233
+ | Status code | Description | Response headers |
234
+ |-------------|-------------|------------------|
235
+ | **200** | get content list response OK | - |
236
+
237
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
238
+
239
+
240
+ ## getContentSession
241
+
242
+ > GetContentSession getContentSession(contentId, moduleId, courseId)
243
+
244
+ get content session
245
+
246
+ ### Example
247
+
248
+ ```ts
249
+ import {
250
+ Configuration,
251
+ ContentApi,
252
+ } from '@easyedu/js-lsm-api';
253
+ import type { GetContentSessionRequest } from '@easyedu/js-lsm-api';
254
+
255
+ async function example() {
256
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
257
+ const api = new ContentApi();
258
+
259
+ const body = {
260
+ // string
261
+ contentId: contentId_example,
262
+ // string
263
+ moduleId: moduleId_example,
264
+ // string
265
+ courseId: courseId_example,
266
+ } satisfies GetContentSessionRequest;
267
+
268
+ try {
269
+ const data = await api.getContentSession(body);
270
+ console.log(data);
271
+ } catch (error) {
272
+ console.error(error);
273
+ }
274
+ }
275
+
276
+ // Run the test
277
+ example().catch(console.error);
278
+ ```
279
+
280
+ ### Parameters
281
+
282
+
283
+ | Name | Type | Description | Notes |
284
+ |------------- | ------------- | ------------- | -------------|
285
+ | **contentId** | `string` | | [Defaults to `undefined`] |
286
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
287
+ | **courseId** | `string` | | [Defaults to `undefined`] |
288
+
289
+ ### Return type
290
+
291
+ [**GetContentSession**](GetContentSession.md)
292
+
293
+ ### Authorization
294
+
295
+ No authorization required
296
+
297
+ ### HTTP request headers
298
+
299
+ - **Content-Type**: Not defined
300
+ - **Accept**: `application/json`
301
+
302
+
303
+ ### HTTP response details
304
+ | Status code | Description | Response headers |
305
+ |-------------|-------------|------------------|
306
+ | **200** | get content session response OK | - |
307
+
308
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
309
+
310
+
311
+ ## getContentSessionDetail
312
+
313
+ > GetContentSessionDetail getContentSessionDetail(contentId, moduleId, courseId, sessionId)
314
+
315
+ Get content session details (instructor only)
316
+
317
+ Get detailed information about a specific content session
318
+
319
+ ### Example
320
+
321
+ ```ts
322
+ import {
323
+ Configuration,
324
+ ContentApi,
325
+ } from '@easyedu/js-lsm-api';
326
+ import type { GetContentSessionDetailRequest } from '@easyedu/js-lsm-api';
327
+
328
+ async function example() {
329
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
330
+ const api = new ContentApi();
331
+
332
+ const body = {
333
+ // string
334
+ contentId: contentId_example,
335
+ // string
336
+ moduleId: moduleId_example,
337
+ // string
338
+ courseId: courseId_example,
339
+ // string | The external_id of the content session
340
+ sessionId: sessionId_example,
341
+ } satisfies GetContentSessionDetailRequest;
342
+
343
+ try {
344
+ const data = await api.getContentSessionDetail(body);
345
+ console.log(data);
346
+ } catch (error) {
347
+ console.error(error);
348
+ }
349
+ }
350
+
351
+ // Run the test
352
+ example().catch(console.error);
353
+ ```
354
+
355
+ ### Parameters
356
+
357
+
358
+ | Name | Type | Description | Notes |
359
+ |------------- | ------------- | ------------- | -------------|
360
+ | **contentId** | `string` | | [Defaults to `undefined`] |
361
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
362
+ | **courseId** | `string` | | [Defaults to `undefined`] |
363
+ | **sessionId** | `string` | The external_id of the content session | [Defaults to `undefined`] |
364
+
365
+ ### Return type
366
+
367
+ [**GetContentSessionDetail**](GetContentSessionDetail.md)
368
+
369
+ ### Authorization
370
+
371
+ No authorization required
372
+
373
+ ### HTTP request headers
374
+
375
+ - **Content-Type**: Not defined
376
+ - **Accept**: `application/json`
377
+
378
+
379
+ ### HTTP response details
380
+ | Status code | Description | Response headers |
381
+ |-------------|-------------|------------------|
382
+ | **200** | Successfully retrieved content session details | - |
383
+ | **401** | Unauthorized | - |
384
+ | **403** | Forbidden - instructor role required | - |
385
+ | **404** | Content session not found | - |
386
+
387
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
388
+
389
+
390
+ ## getContentVersion
391
+
392
+ > GetContentVersion getContentVersion(contentId, moduleId, courseId, versionId)
393
+
394
+ Get details of a specific content version
395
+
396
+ Returns detailed information about a specific version of the content, including sandbox launch URL and SCORM-specific data (package info and table of contents) if applicable.
397
+
398
+ ### Example
399
+
400
+ ```ts
401
+ import {
402
+ Configuration,
403
+ ContentApi,
404
+ } from '@easyedu/js-lsm-api';
405
+ import type { GetContentVersionRequest } from '@easyedu/js-lsm-api';
406
+
407
+ async function example() {
408
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
409
+ const api = new ContentApi();
410
+
411
+ const body = {
412
+ // string | The content\'s external_id
413
+ contentId: contentId_example,
414
+ // string
415
+ moduleId: moduleId_example,
416
+ // string
417
+ courseId: courseId_example,
418
+ // string | The version\'s external_id
419
+ versionId: versionId_example,
420
+ } satisfies GetContentVersionRequest;
421
+
422
+ try {
423
+ const data = await api.getContentVersion(body);
424
+ console.log(data);
425
+ } catch (error) {
426
+ console.error(error);
427
+ }
428
+ }
429
+
430
+ // Run the test
431
+ example().catch(console.error);
432
+ ```
433
+
434
+ ### Parameters
435
+
436
+
437
+ | Name | Type | Description | Notes |
438
+ |------------- | ------------- | ------------- | -------------|
439
+ | **contentId** | `string` | The content\'s external_id | [Defaults to `undefined`] |
440
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
441
+ | **courseId** | `string` | | [Defaults to `undefined`] |
442
+ | **versionId** | `string` | The version\'s external_id | [Defaults to `undefined`] |
443
+
444
+ ### Return type
445
+
446
+ [**GetContentVersion**](GetContentVersion.md)
447
+
448
+ ### Authorization
449
+
450
+ No authorization required
451
+
452
+ ### HTTP request headers
453
+
454
+ - **Content-Type**: Not defined
455
+ - **Accept**: `application/json`
456
+
457
+
458
+ ### HTTP response details
459
+ | Status code | Description | Response headers |
460
+ |-------------|-------------|------------------|
461
+ | **200** | Successfully retrieved content version details | - |
462
+ | **404** | Content or version not found | - |
463
+ | **401** | Unauthorized | - |
464
+
465
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
466
+
467
+
468
+ ## getContentVersionList
469
+
470
+ > GetContentVersionList getContentVersionList(contentId, moduleId, courseId, page, pageSize)
471
+
472
+ Get all versions of a content
473
+
474
+ Returns a paginated list of all versions for the specified content. Returns an empty array if the content has no versions.
475
+
476
+ ### Example
477
+
478
+ ```ts
479
+ import {
480
+ Configuration,
481
+ ContentApi,
482
+ } from '@easyedu/js-lsm-api';
483
+ import type { GetContentVersionListRequest } from '@easyedu/js-lsm-api';
484
+
485
+ async function example() {
486
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
487
+ const api = new ContentApi();
488
+
489
+ const body = {
490
+ // string | The content\'s external_id
491
+ contentId: contentId_example,
492
+ // string
493
+ moduleId: moduleId_example,
494
+ // string
495
+ courseId: courseId_example,
496
+ // number | Page number for pagination (optional)
497
+ page: 56,
498
+ // number | Number of items per page (optional)
499
+ pageSize: 56,
500
+ } satisfies GetContentVersionListRequest;
501
+
502
+ try {
503
+ const data = await api.getContentVersionList(body);
504
+ console.log(data);
505
+ } catch (error) {
506
+ console.error(error);
507
+ }
508
+ }
509
+
510
+ // Run the test
511
+ example().catch(console.error);
512
+ ```
513
+
514
+ ### Parameters
515
+
516
+
517
+ | Name | Type | Description | Notes |
518
+ |------------- | ------------- | ------------- | -------------|
519
+ | **contentId** | `string` | The content\'s external_id | [Defaults to `undefined`] |
520
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
521
+ | **courseId** | `string` | | [Defaults to `undefined`] |
522
+ | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
523
+ | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
524
+
525
+ ### Return type
526
+
527
+ [**GetContentVersionList**](GetContentVersionList.md)
528
+
529
+ ### Authorization
530
+
531
+ No authorization required
532
+
533
+ ### HTTP request headers
534
+
535
+ - **Content-Type**: Not defined
536
+ - **Accept**: `application/json`
537
+
538
+
539
+ ### HTTP response details
540
+ | Status code | Description | Response headers |
541
+ |-------------|-------------|------------------|
542
+ | **200** | Successfully retrieved content versions | - |
543
+ | **404** | Content not found | - |
544
+ | **401** | Unauthorized | - |
545
+
546
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
547
+
548
+
549
+ ## getScormApiLogs
550
+
551
+ > GetScormApiLogs getScormApiLogs(sessionId, page, pageSize)
552
+
553
+ Get SCORM API call logs (instructor only)
554
+
555
+ Get a paginated history of all SCORM API calls made during this session for debugging and troubleshooting
556
+
557
+ ### Example
558
+
559
+ ```ts
560
+ import {
561
+ Configuration,
562
+ ContentApi,
563
+ } from '@easyedu/js-lsm-api';
564
+ import type { GetScormApiLogsRequest } from '@easyedu/js-lsm-api';
565
+
566
+ async function example() {
567
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
568
+ const api = new ContentApi();
569
+
570
+ const body = {
571
+ // string | The external_id of the SCORM session
572
+ sessionId: sessionId_example,
573
+ // number | Page number for pagination (optional)
574
+ page: 56,
575
+ // number | Number of items per page (optional)
576
+ pageSize: 56,
577
+ } satisfies GetScormApiLogsRequest;
578
+
579
+ try {
580
+ const data = await api.getScormApiLogs(body);
581
+ console.log(data);
582
+ } catch (error) {
583
+ console.error(error);
584
+ }
585
+ }
586
+
587
+ // Run the test
588
+ example().catch(console.error);
589
+ ```
590
+
591
+ ### Parameters
592
+
593
+
594
+ | Name | Type | Description | Notes |
595
+ |------------- | ------------- | ------------- | -------------|
596
+ | **sessionId** | `string` | The external_id of the SCORM session | [Defaults to `undefined`] |
597
+ | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
598
+ | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `50`] |
599
+
600
+ ### Return type
601
+
602
+ [**GetScormApiLogs**](GetScormApiLogs.md)
603
+
604
+ ### Authorization
605
+
606
+ No authorization required
607
+
608
+ ### HTTP request headers
609
+
610
+ - **Content-Type**: Not defined
611
+ - **Accept**: `application/json`
612
+
613
+
614
+ ### HTTP response details
615
+ | Status code | Description | Response headers |
616
+ |-------------|-------------|------------------|
617
+ | **200** | Successfully retrieved SCORM API logs | - |
618
+ | **401** | Unauthorized | - |
619
+ | **403** | Forbidden - instructor role required | - |
620
+ | **404** | SCORM session not found | - |
621
+
622
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
623
+
624
+
625
+ ## getScormPackage
626
+
627
+ > GetScormPackage getScormPackage(packageId)
628
+
629
+ Get details of a SCORM package
630
+
631
+ Returns package information and table of contents for a SCORM package
632
+
633
+ ### Example
634
+
635
+ ```ts
636
+ import {
637
+ Configuration,
638
+ ContentApi,
639
+ } from '@easyedu/js-lsm-api';
640
+ import type { GetScormPackageRequest } from '@easyedu/js-lsm-api';
641
+
642
+ async function example() {
643
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
644
+ const api = new ContentApi();
645
+
646
+ const body = {
647
+ // string | The external_id of the SCORM package
648
+ packageId: packageId_example,
649
+ } satisfies GetScormPackageRequest;
650
+
651
+ try {
652
+ const data = await api.getScormPackage(body);
653
+ console.log(data);
654
+ } catch (error) {
655
+ console.error(error);
656
+ }
657
+ }
658
+
659
+ // Run the test
660
+ example().catch(console.error);
661
+ ```
662
+
663
+ ### Parameters
664
+
665
+
666
+ | Name | Type | Description | Notes |
667
+ |------------- | ------------- | ------------- | -------------|
668
+ | **packageId** | `string` | The external_id of the SCORM package | [Defaults to `undefined`] |
669
+
670
+ ### Return type
671
+
672
+ [**GetScormPackage**](GetScormPackage.md)
673
+
674
+ ### Authorization
675
+
676
+ No authorization required
677
+
678
+ ### HTTP request headers
679
+
680
+ - **Content-Type**: Not defined
681
+ - **Accept**: `application/json`
682
+
683
+
684
+ ### HTTP response details
685
+ | Status code | Description | Response headers |
686
+ |-------------|-------------|------------------|
687
+ | **200** | Successfully retrieved SCORM package details | - |
688
+ | **401** | Unauthorized | - |
689
+ | **404** | SCORM package not found | - |
690
+
691
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
692
+
693
+
694
+ ## getScormSessionData
695
+
696
+ > GetScormSessionData getScormSessionData(scormSessionId)
697
+
698
+ Get SCORM session data (instructor only)
699
+
700
+ Get detailed SCORM session data including CMI data dump for debugging
701
+
702
+ ### Example
703
+
704
+ ```ts
705
+ import {
706
+ Configuration,
707
+ ContentApi,
708
+ } from '@easyedu/js-lsm-api';
709
+ import type { GetScormSessionDataRequest } from '@easyedu/js-lsm-api';
710
+
711
+ async function example() {
712
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
713
+ const api = new ContentApi();
714
+
715
+ const body = {
716
+ // string | The external_id of the SCORM session
717
+ scormSessionId: scormSessionId_example,
718
+ } satisfies GetScormSessionDataRequest;
719
+
720
+ try {
721
+ const data = await api.getScormSessionData(body);
722
+ console.log(data);
723
+ } catch (error) {
724
+ console.error(error);
725
+ }
726
+ }
727
+
728
+ // Run the test
729
+ example().catch(console.error);
730
+ ```
731
+
732
+ ### Parameters
733
+
734
+
735
+ | Name | Type | Description | Notes |
736
+ |------------- | ------------- | ------------- | -------------|
737
+ | **scormSessionId** | `string` | The external_id of the SCORM session | [Defaults to `undefined`] |
738
+
739
+ ### Return type
740
+
741
+ [**GetScormSessionData**](GetScormSessionData.md)
742
+
743
+ ### Authorization
744
+
745
+ No authorization required
746
+
747
+ ### HTTP request headers
748
+
749
+ - **Content-Type**: Not defined
750
+ - **Accept**: `application/json`
751
+
752
+
753
+ ### HTTP response details
754
+ | Status code | Description | Response headers |
755
+ |-------------|-------------|------------------|
756
+ | **200** | Successfully retrieved SCORM session data | - |
757
+ | **401** | Unauthorized | - |
758
+ | **403** | Forbidden - instructor role required | - |
759
+ | **404** | SCORM session not found | - |
760
+
761
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
762
+
763
+
764
+ ## getScormValue
765
+
766
+ > ScormGetValueResponse getScormValue(scormSessionId, key)
767
+
768
+ Get a SCORM CMI data element value
769
+
770
+ Retrieve the value of a specific SCORM CMI data element from the session
771
+
772
+ ### Example
773
+
774
+ ```ts
775
+ import {
776
+ Configuration,
777
+ ContentApi,
778
+ } from '@easyedu/js-lsm-api';
779
+ import type { GetScormValueRequest } from '@easyedu/js-lsm-api';
780
+
781
+ async function example() {
782
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
783
+ const api = new ContentApi();
784
+
785
+ const body = {
786
+ // string | The external_id of the SCORM session
787
+ scormSessionId: scormSessionId_example,
788
+ // string | The CMI element key to retrieve (e.g., cmi.core.lesson_status)
789
+ key: key_example,
790
+ } satisfies GetScormValueRequest;
791
+
792
+ try {
793
+ const data = await api.getScormValue(body);
794
+ console.log(data);
795
+ } catch (error) {
796
+ console.error(error);
797
+ }
798
+ }
799
+
800
+ // Run the test
801
+ example().catch(console.error);
802
+ ```
803
+
804
+ ### Parameters
805
+
806
+
807
+ | Name | Type | Description | Notes |
808
+ |------------- | ------------- | ------------- | -------------|
809
+ | **scormSessionId** | `string` | The external_id of the SCORM session | [Defaults to `undefined`] |
810
+ | **key** | `string` | The CMI element key to retrieve (e.g., cmi.core.lesson_status) | [Defaults to `undefined`] |
811
+
812
+ ### Return type
813
+
814
+ [**ScormGetValueResponse**](ScormGetValueResponse.md)
815
+
816
+ ### Authorization
817
+
818
+ No authorization required
819
+
820
+ ### HTTP request headers
821
+
822
+ - **Content-Type**: Not defined
823
+ - **Accept**: `application/json`
824
+
825
+
826
+ ### HTTP response details
827
+ | Status code | Description | Response headers |
828
+ |-------------|-------------|------------------|
829
+ | **200** | Successfully retrieved CMI element value | - |
830
+ | **401** | Unauthorized | - |
831
+ | **404** | SCORM session not found | - |
832
+
833
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
834
+
835
+
836
+ ## initializeScormSession
837
+
838
+ > initializeScormSession(scormSessionId)
839
+
840
+ Initialize a SCORM session
841
+
842
+ Initialize a SCORM session for content playback
843
+
844
+ ### Example
845
+
846
+ ```ts
847
+ import {
848
+ Configuration,
849
+ ContentApi,
850
+ } from '@easyedu/js-lsm-api';
851
+ import type { InitializeScormSessionRequest } from '@easyedu/js-lsm-api';
852
+
853
+ async function example() {
854
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
855
+ const api = new ContentApi();
856
+
857
+ const body = {
858
+ // string | The external_id of the SCORM session
859
+ scormSessionId: scormSessionId_example,
860
+ } satisfies InitializeScormSessionRequest;
861
+
862
+ try {
863
+ const data = await api.initializeScormSession(body);
864
+ console.log(data);
865
+ } catch (error) {
866
+ console.error(error);
867
+ }
868
+ }
869
+
870
+ // Run the test
871
+ example().catch(console.error);
872
+ ```
873
+
874
+ ### Parameters
875
+
876
+
877
+ | Name | Type | Description | Notes |
878
+ |------------- | ------------- | ------------- | -------------|
879
+ | **scormSessionId** | `string` | The external_id of the SCORM session | [Defaults to `undefined`] |
880
+
881
+ ### Return type
882
+
883
+ `void` (Empty response body)
884
+
885
+ ### Authorization
886
+
887
+ No authorization required
888
+
889
+ ### HTTP request headers
890
+
891
+ - **Content-Type**: Not defined
892
+ - **Accept**: Not defined
893
+
894
+
895
+ ### HTTP response details
896
+ | Status code | Description | Response headers |
897
+ |-------------|-------------|------------------|
898
+ | **200** | Successfully initialized SCORM session | - |
899
+ | **401** | Unauthorized | - |
900
+ | **404** | SCORM session not found | - |
901
+
902
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
903
+
904
+
905
+ ## listContentSessions
906
+
907
+ > GetContentSessionList listContentSessions(contentId, moduleId, courseId, sessionType, page, pageSize)
908
+
909
+ List content sessions (instructor only)
910
+
911
+ Get a paginated list of all content sessions for a specific content item
912
+
913
+ ### Example
914
+
915
+ ```ts
916
+ import {
917
+ Configuration,
918
+ ContentApi,
919
+ } from '@easyedu/js-lsm-api';
920
+ import type { ListContentSessionsRequest } from '@easyedu/js-lsm-api';
921
+
922
+ async function example() {
923
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
924
+ const api = new ContentApi();
925
+
926
+ const body = {
927
+ // string
928
+ contentId: contentId_example,
929
+ // string
930
+ moduleId: moduleId_example,
931
+ // string
932
+ courseId: courseId_example,
933
+ // 'SANDBOX' | 'LIVE' | Filter sessions by environment type (SANDBOX or LIVE) (optional)
934
+ sessionType: sessionType_example,
935
+ // number | Page number for pagination (optional)
936
+ page: 56,
937
+ // number | Number of items per page (optional)
938
+ pageSize: 56,
939
+ } satisfies ListContentSessionsRequest;
940
+
941
+ try {
942
+ const data = await api.listContentSessions(body);
943
+ console.log(data);
944
+ } catch (error) {
945
+ console.error(error);
946
+ }
947
+ }
948
+
949
+ // Run the test
950
+ example().catch(console.error);
951
+ ```
952
+
953
+ ### Parameters
954
+
955
+
956
+ | Name | Type | Description | Notes |
957
+ |------------- | ------------- | ------------- | -------------|
958
+ | **contentId** | `string` | | [Defaults to `undefined`] |
959
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
960
+ | **courseId** | `string` | | [Defaults to `undefined`] |
961
+ | **sessionType** | `SANDBOX`, `LIVE` | Filter sessions by environment type (SANDBOX or LIVE) | [Optional] [Defaults to `undefined`] [Enum: SANDBOX, LIVE] |
962
+ | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
963
+ | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
964
+
965
+ ### Return type
966
+
967
+ [**GetContentSessionList**](GetContentSessionList.md)
968
+
969
+ ### Authorization
970
+
971
+ No authorization required
972
+
973
+ ### HTTP request headers
974
+
975
+ - **Content-Type**: Not defined
976
+ - **Accept**: `application/json`
977
+
978
+
979
+ ### HTTP response details
980
+ | Status code | Description | Response headers |
981
+ |-------------|-------------|------------------|
982
+ | **200** | Successfully retrieved content sessions | - |
983
+ | **401** | Unauthorized | - |
984
+ | **403** | Forbidden - instructor role required | - |
985
+ | **404** | Content not found | - |
986
+
987
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
988
+
989
+
990
+ ## postContentProcess
991
+
992
+ > GetContent postContentProcess(moduleId, courseId, contentId)
993
+
994
+ Post a new content process
995
+
996
+ ### Example
997
+
998
+ ```ts
999
+ import {
1000
+ Configuration,
1001
+ ContentApi,
1002
+ } from '@easyedu/js-lsm-api';
1003
+ import type { PostContentProcessRequest } from '@easyedu/js-lsm-api';
1004
+
1005
+ async function example() {
1006
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1007
+ const api = new ContentApi();
1008
+
1009
+ const body = {
1010
+ // string
1011
+ moduleId: moduleId_example,
1012
+ // string
1013
+ courseId: courseId_example,
1014
+ // string
1015
+ contentId: contentId_example,
1016
+ } satisfies PostContentProcessRequest;
1017
+
1018
+ try {
1019
+ const data = await api.postContentProcess(body);
1020
+ console.log(data);
1021
+ } catch (error) {
1022
+ console.error(error);
1023
+ }
1024
+ }
1025
+
1026
+ // Run the test
1027
+ example().catch(console.error);
1028
+ ```
1029
+
1030
+ ### Parameters
1031
+
1032
+
1033
+ | Name | Type | Description | Notes |
1034
+ |------------- | ------------- | ------------- | -------------|
1035
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
1036
+ | **courseId** | `string` | | [Defaults to `undefined`] |
1037
+ | **contentId** | `string` | | [Defaults to `undefined`] |
1038
+
1039
+ ### Return type
1040
+
1041
+ [**GetContent**](GetContent.md)
1042
+
1043
+ ### Authorization
1044
+
1045
+ No authorization required
1046
+
1047
+ ### HTTP request headers
1048
+
1049
+ - **Content-Type**: Not defined
1050
+ - **Accept**: `application/json`
1051
+
1052
+
1053
+ ### HTTP response details
1054
+ | Status code | Description | Response headers |
1055
+ |-------------|-------------|------------------|
1056
+ | **200** | post content response OK | - |
1057
+
1058
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1059
+
1060
+
1061
+ ## postContentQuiz
1062
+
1063
+ > GetContent postContentQuiz(moduleId, courseId, postContentQuiz)
1064
+
1065
+ Create a new quiz content
1066
+
1067
+ ### Example
1068
+
1069
+ ```ts
1070
+ import {
1071
+ Configuration,
1072
+ ContentApi,
1073
+ } from '@easyedu/js-lsm-api';
1074
+ import type { PostContentQuizRequest } from '@easyedu/js-lsm-api';
1075
+
1076
+ async function example() {
1077
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1078
+ const api = new ContentApi();
1079
+
1080
+ const body = {
1081
+ // string
1082
+ moduleId: moduleId_example,
1083
+ // string
1084
+ courseId: courseId_example,
1085
+ // PostContentQuiz | Quiz content object that needs to be created
1086
+ postContentQuiz: ...,
1087
+ } satisfies PostContentQuizRequest;
1088
+
1089
+ try {
1090
+ const data = await api.postContentQuiz(body);
1091
+ console.log(data);
1092
+ } catch (error) {
1093
+ console.error(error);
1094
+ }
1095
+ }
1096
+
1097
+ // Run the test
1098
+ example().catch(console.error);
1099
+ ```
1100
+
1101
+ ### Parameters
1102
+
1103
+
1104
+ | Name | Type | Description | Notes |
1105
+ |------------- | ------------- | ------------- | -------------|
1106
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
1107
+ | **courseId** | `string` | | [Defaults to `undefined`] |
1108
+ | **postContentQuiz** | [PostContentQuiz](PostContentQuiz.md) | Quiz content object that needs to be created | |
1109
+
1110
+ ### Return type
1111
+
1112
+ [**GetContent**](GetContent.md)
1113
+
1114
+ ### Authorization
1115
+
1116
+ No authorization required
1117
+
1118
+ ### HTTP request headers
1119
+
1120
+ - **Content-Type**: `application/json`
1121
+ - **Accept**: `application/json`
1122
+
1123
+
1124
+ ### HTTP response details
1125
+ | Status code | Description | Response headers |
1126
+ |-------------|-------------|------------------|
1127
+ | **200** | post content quiz response OK | - |
1128
+ | **400** | post content quiz response error | - |
1129
+
1130
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1131
+
1132
+
1133
+ ## postContentSession
1134
+
1135
+ > PostContentSession postContentSession(contentId, moduleId, courseId, environment)
1136
+
1137
+ Post a new content session
1138
+
1139
+ ### Example
1140
+
1141
+ ```ts
1142
+ import {
1143
+ Configuration,
1144
+ ContentApi,
1145
+ } from '@easyedu/js-lsm-api';
1146
+ import type { PostContentSessionRequest } from '@easyedu/js-lsm-api';
1147
+
1148
+ async function example() {
1149
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1150
+ const api = new ContentApi();
1151
+
1152
+ const body = {
1153
+ // string
1154
+ contentId: contentId_example,
1155
+ // string
1156
+ moduleId: moduleId_example,
1157
+ // string
1158
+ courseId: courseId_example,
1159
+ // 'sandbox' | 'live' | Environment type for the session (defaults to live) (optional)
1160
+ environment: environment_example,
1161
+ } satisfies PostContentSessionRequest;
1162
+
1163
+ try {
1164
+ const data = await api.postContentSession(body);
1165
+ console.log(data);
1166
+ } catch (error) {
1167
+ console.error(error);
1168
+ }
1169
+ }
1170
+
1171
+ // Run the test
1172
+ example().catch(console.error);
1173
+ ```
1174
+
1175
+ ### Parameters
1176
+
1177
+
1178
+ | Name | Type | Description | Notes |
1179
+ |------------- | ------------- | ------------- | -------------|
1180
+ | **contentId** | `string` | | [Defaults to `undefined`] |
1181
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
1182
+ | **courseId** | `string` | | [Defaults to `undefined`] |
1183
+ | **environment** | `sandbox`, `live` | Environment type for the session (defaults to live) | [Optional] [Defaults to `'live'`] [Enum: sandbox, live] |
1184
+
1185
+ ### Return type
1186
+
1187
+ [**PostContentSession**](PostContentSession.md)
1188
+
1189
+ ### Authorization
1190
+
1191
+ No authorization required
1192
+
1193
+ ### HTTP request headers
1194
+
1195
+ - **Content-Type**: Not defined
1196
+ - **Accept**: `application/json`
1197
+
1198
+
1199
+ ### HTTP response details
1200
+ | Status code | Description | Response headers |
1201
+ |-------------|-------------|------------------|
1202
+ | **200** | post session response OK | - |
1203
+
1204
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1205
+
1206
+
1207
+ ## postContentUpload
1208
+
1209
+ > GetContentUpload postContentUpload(moduleId, courseId, postContentUpload)
1210
+
1211
+ Post a new content upload
1212
+
1213
+ ### Example
1214
+
1215
+ ```ts
1216
+ import {
1217
+ Configuration,
1218
+ ContentApi,
1219
+ } from '@easyedu/js-lsm-api';
1220
+ import type { PostContentUploadRequest } from '@easyedu/js-lsm-api';
1221
+
1222
+ async function example() {
1223
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1224
+ const api = new ContentApi();
1225
+
1226
+ const body = {
1227
+ // string
1228
+ moduleId: moduleId_example,
1229
+ // string
1230
+ courseId: courseId_example,
1231
+ // PostContentUpload | Content object that needs to be added
1232
+ postContentUpload: ...,
1233
+ } satisfies PostContentUploadRequest;
1234
+
1235
+ try {
1236
+ const data = await api.postContentUpload(body);
1237
+ console.log(data);
1238
+ } catch (error) {
1239
+ console.error(error);
1240
+ }
1241
+ }
1242
+
1243
+ // Run the test
1244
+ example().catch(console.error);
1245
+ ```
1246
+
1247
+ ### Parameters
1248
+
1249
+
1250
+ | Name | Type | Description | Notes |
1251
+ |------------- | ------------- | ------------- | -------------|
1252
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
1253
+ | **courseId** | `string` | | [Defaults to `undefined`] |
1254
+ | **postContentUpload** | [PostContentUpload](PostContentUpload.md) | Content object that needs to be added | |
1255
+
1256
+ ### Return type
1257
+
1258
+ [**GetContentUpload**](GetContentUpload.md)
1259
+
1260
+ ### Authorization
1261
+
1262
+ No authorization required
1263
+
1264
+ ### HTTP request headers
1265
+
1266
+ - **Content-Type**: `application/json`
1267
+ - **Accept**: `application/json`
1268
+
1269
+
1270
+ ### HTTP response details
1271
+ | Status code | Description | Response headers |
1272
+ |-------------|-------------|------------------|
1273
+ | **200** | post content upload response OK | - |
1274
+
1275
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1276
+
1277
+
1278
+ ## putContent
1279
+
1280
+ > GetContent putContent(contentId, moduleId, courseId, putContent)
1281
+
1282
+ Update content by id
1283
+
1284
+ ### Example
1285
+
1286
+ ```ts
1287
+ import {
1288
+ Configuration,
1289
+ ContentApi,
1290
+ } from '@easyedu/js-lsm-api';
1291
+ import type { PutContentRequest } from '@easyedu/js-lsm-api';
1292
+
1293
+ async function example() {
1294
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1295
+ const api = new ContentApi();
1296
+
1297
+ const body = {
1298
+ // string
1299
+ contentId: contentId_example,
1300
+ // string
1301
+ moduleId: moduleId_example,
1302
+ // string
1303
+ courseId: courseId_example,
1304
+ // PutContent | Content object that needs to be updated
1305
+ putContent: ...,
1306
+ } satisfies PutContentRequest;
1307
+
1308
+ try {
1309
+ const data = await api.putContent(body);
1310
+ console.log(data);
1311
+ } catch (error) {
1312
+ console.error(error);
1313
+ }
1314
+ }
1315
+
1316
+ // Run the test
1317
+ example().catch(console.error);
1318
+ ```
1319
+
1320
+ ### Parameters
1321
+
1322
+
1323
+ | Name | Type | Description | Notes |
1324
+ |------------- | ------------- | ------------- | -------------|
1325
+ | **contentId** | `string` | | [Defaults to `undefined`] |
1326
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
1327
+ | **courseId** | `string` | | [Defaults to `undefined`] |
1328
+ | **putContent** | [PutContent](PutContent.md) | Content object that needs to be updated | |
1329
+
1330
+ ### Return type
1331
+
1332
+ [**GetContent**](GetContent.md)
1333
+
1334
+ ### Authorization
1335
+
1336
+ No authorization required
1337
+
1338
+ ### HTTP request headers
1339
+
1340
+ - **Content-Type**: `application/json`
1341
+ - **Accept**: `application/json`
1342
+
1343
+
1344
+ ### HTTP response details
1345
+ | Status code | Description | Response headers |
1346
+ |-------------|-------------|------------------|
1347
+ | **200** | put content response OK | - |
1348
+
1349
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1350
+
1351
+
1352
+ ## putContentVersion
1353
+
1354
+ > GetContentVersion putContentVersion(contentId, moduleId, courseId, versionId, putContentVersion)
1355
+
1356
+ Update a content version
1357
+
1358
+ Activates this version by setting is_active to true. Automatically deactivates all other versions of the same content. Only setting is_active to true is allowed.
1359
+
1360
+ ### Example
1361
+
1362
+ ```ts
1363
+ import {
1364
+ Configuration,
1365
+ ContentApi,
1366
+ } from '@easyedu/js-lsm-api';
1367
+ import type { PutContentVersionRequest } from '@easyedu/js-lsm-api';
1368
+
1369
+ async function example() {
1370
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1371
+ const api = new ContentApi();
1372
+
1373
+ const body = {
1374
+ // string | The content\'s external_id
1375
+ contentId: contentId_example,
1376
+ // string
1377
+ moduleId: moduleId_example,
1378
+ // string
1379
+ courseId: courseId_example,
1380
+ // string | The version\'s external_id
1381
+ versionId: versionId_example,
1382
+ // PutContentVersion
1383
+ putContentVersion: ...,
1384
+ } satisfies PutContentVersionRequest;
1385
+
1386
+ try {
1387
+ const data = await api.putContentVersion(body);
1388
+ console.log(data);
1389
+ } catch (error) {
1390
+ console.error(error);
1391
+ }
1392
+ }
1393
+
1394
+ // Run the test
1395
+ example().catch(console.error);
1396
+ ```
1397
+
1398
+ ### Parameters
1399
+
1400
+
1401
+ | Name | Type | Description | Notes |
1402
+ |------------- | ------------- | ------------- | -------------|
1403
+ | **contentId** | `string` | The content\'s external_id | [Defaults to `undefined`] |
1404
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
1405
+ | **courseId** | `string` | | [Defaults to `undefined`] |
1406
+ | **versionId** | `string` | The version\'s external_id | [Defaults to `undefined`] |
1407
+ | **putContentVersion** | [PutContentVersion](PutContentVersion.md) | | |
1408
+
1409
+ ### Return type
1410
+
1411
+ [**GetContentVersion**](GetContentVersion.md)
1412
+
1413
+ ### Authorization
1414
+
1415
+ No authorization required
1416
+
1417
+ ### HTTP request headers
1418
+
1419
+ - **Content-Type**: `application/json`
1420
+ - **Accept**: `application/json`
1421
+
1422
+
1423
+ ### HTTP response details
1424
+ | Status code | Description | Response headers |
1425
+ |-------------|-------------|------------------|
1426
+ | **200** | Successfully updated content version | - |
1427
+ | **400** | Bad request (e.g., trying to set is_active to false) | - |
1428
+ | **401** | Unauthorized | - |
1429
+ | **403** | Forbidden - you do not have permission to update this content version | - |
1430
+ | **404** | Content or version not found | - |
1431
+
1432
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1433
+
1434
+
1435
+ ## setScormValue
1436
+
1437
+ > ScormSetValueResponse setScormValue(scormSessionId, scormSetValueRequest)
1438
+
1439
+ Set a SCORM CMI data element value
1440
+
1441
+ Update the value of a specific SCORM CMI data element in the session
1442
+
1443
+ ### Example
1444
+
1445
+ ```ts
1446
+ import {
1447
+ Configuration,
1448
+ ContentApi,
1449
+ } from '@easyedu/js-lsm-api';
1450
+ import type { SetScormValueRequest } from '@easyedu/js-lsm-api';
1451
+
1452
+ async function example() {
1453
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1454
+ const api = new ContentApi();
1455
+
1456
+ const body = {
1457
+ // string | The external_id of the SCORM session
1458
+ scormSessionId: scormSessionId_example,
1459
+ // ScormSetValueRequest
1460
+ scormSetValueRequest: ...,
1461
+ } satisfies SetScormValueRequest;
1462
+
1463
+ try {
1464
+ const data = await api.setScormValue(body);
1465
+ console.log(data);
1466
+ } catch (error) {
1467
+ console.error(error);
1468
+ }
1469
+ }
1470
+
1471
+ // Run the test
1472
+ example().catch(console.error);
1473
+ ```
1474
+
1475
+ ### Parameters
1476
+
1477
+
1478
+ | Name | Type | Description | Notes |
1479
+ |------------- | ------------- | ------------- | -------------|
1480
+ | **scormSessionId** | `string` | The external_id of the SCORM session | [Defaults to `undefined`] |
1481
+ | **scormSetValueRequest** | [ScormSetValueRequest](ScormSetValueRequest.md) | | |
1482
+
1483
+ ### Return type
1484
+
1485
+ [**ScormSetValueResponse**](ScormSetValueResponse.md)
1486
+
1487
+ ### Authorization
1488
+
1489
+ No authorization required
1490
+
1491
+ ### HTTP request headers
1492
+
1493
+ - **Content-Type**: `application/json`
1494
+ - **Accept**: `application/json`
1495
+
1496
+
1497
+ ### HTTP response details
1498
+ | Status code | Description | Response headers |
1499
+ |-------------|-------------|------------------|
1500
+ | **200** | Successfully set CMI element value | - |
1501
+ | **401** | Unauthorized | - |
1502
+ | **404** | SCORM session not found | - |
1503
+
1504
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1505
+
1506
+
1507
+ ## terminateScormSession
1508
+
1509
+ > terminateScormSession(scormSessionId)
1510
+
1511
+ Terminate a SCORM session
1512
+
1513
+ Terminate the SCORM session and finalize all data
1514
+
1515
+ ### Example
1516
+
1517
+ ```ts
1518
+ import {
1519
+ Configuration,
1520
+ ContentApi,
1521
+ } from '@easyedu/js-lsm-api';
1522
+ import type { TerminateScormSessionRequest } from '@easyedu/js-lsm-api';
1523
+
1524
+ async function example() {
1525
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1526
+ const api = new ContentApi();
1527
+
1528
+ const body = {
1529
+ // string | The external_id of the SCORM session
1530
+ scormSessionId: scormSessionId_example,
1531
+ } satisfies TerminateScormSessionRequest;
1532
+
1533
+ try {
1534
+ const data = await api.terminateScormSession(body);
1535
+ console.log(data);
1536
+ } catch (error) {
1537
+ console.error(error);
1538
+ }
1539
+ }
1540
+
1541
+ // Run the test
1542
+ example().catch(console.error);
1543
+ ```
1544
+
1545
+ ### Parameters
1546
+
1547
+
1548
+ | Name | Type | Description | Notes |
1549
+ |------------- | ------------- | ------------- | -------------|
1550
+ | **scormSessionId** | `string` | The external_id of the SCORM session | [Defaults to `undefined`] |
1551
+
1552
+ ### Return type
1553
+
1554
+ `void` (Empty response body)
1555
+
1556
+ ### Authorization
1557
+
1558
+ No authorization required
1559
+
1560
+ ### HTTP request headers
1561
+
1562
+ - **Content-Type**: Not defined
1563
+ - **Accept**: Not defined
1564
+
1565
+
1566
+ ### HTTP response details
1567
+ | Status code | Description | Response headers |
1568
+ |-------------|-------------|------------------|
1569
+ | **200** | Successfully terminated SCORM session | - |
1570
+ | **401** | Unauthorized | - |
1571
+ | **404** | SCORM session not found | - |
1572
+
1573
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1574
+
1575
+
1576
+ ## verifyScormManifest
1577
+
1578
+ > PostVerifyManifest verifyScormManifest(body)
1579
+
1580
+ Parse and verify a SCORM manifest
1581
+
1582
+ Takes raw imsmanifest.xml content and returns the parsed manifest structure with validation warnings
1583
+
1584
+ ### Example
1585
+
1586
+ ```ts
1587
+ import {
1588
+ Configuration,
1589
+ ContentApi,
1590
+ } from '@easyedu/js-lsm-api';
1591
+ import type { VerifyScormManifestRequest } from '@easyedu/js-lsm-api';
1592
+
1593
+ async function example() {
1594
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1595
+ const api = new ContentApi();
1596
+
1597
+ const body = {
1598
+ // string
1599
+ body: body_example,
1600
+ } satisfies VerifyScormManifestRequest;
1601
+
1602
+ try {
1603
+ const data = await api.verifyScormManifest(body);
1604
+ console.log(data);
1605
+ } catch (error) {
1606
+ console.error(error);
1607
+ }
1608
+ }
1609
+
1610
+ // Run the test
1611
+ example().catch(console.error);
1612
+ ```
1613
+
1614
+ ### Parameters
1615
+
1616
+
1617
+ | Name | Type | Description | Notes |
1618
+ |------------- | ------------- | ------------- | -------------|
1619
+ | **body** | `string` | | |
1620
+
1621
+ ### Return type
1622
+
1623
+ [**PostVerifyManifest**](PostVerifyManifest.md)
1624
+
1625
+ ### Authorization
1626
+
1627
+ No authorization required
1628
+
1629
+ ### HTTP request headers
1630
+
1631
+ - **Content-Type**: `application/xml`, `text/xml`
1632
+ - **Accept**: `application/json`
1633
+
1634
+
1635
+ ### HTTP response details
1636
+ | Status code | Description | Response headers |
1637
+ |-------------|-------------|------------------|
1638
+ | **200** | Manifest parsed (check valid field for success) | - |
1639
+ | **400** | Request body is empty or not XML | - |
1640
+
1641
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1642
+