@easyedu/js-lsm-api 1.30.0 → 1.32.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.
- package/.openapi-generator/FILES +209 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +378 -28
- package/dist/apis/ContentApi.d.ts +94 -4
- package/dist/apis/ContentApi.js +292 -20
- package/dist/apis/CourseApi.js +37 -12
- package/dist/apis/ModuleApi.js +14 -4
- package/dist/apis/OtherApi.js +2 -1
- package/dist/apis/PortalApi.js +19 -7
- package/dist/apis/QuestionApi.js +13 -5
- package/dist/apis/QuizApi.js +79 -25
- package/dist/apis/ReportingApi.js +39 -9
- package/dist/apis/UserApi.js +16 -7
- package/dist/esm/apis/ContentApi.d.ts +94 -4
- package/dist/esm/apis/ContentApi.js +292 -20
- package/dist/esm/apis/CourseApi.js +37 -12
- package/dist/esm/apis/ModuleApi.js +14 -4
- package/dist/esm/apis/OtherApi.js +2 -1
- package/dist/esm/apis/PortalApi.js +19 -7
- package/dist/esm/apis/QuestionApi.js +13 -5
- package/dist/esm/apis/QuizApi.js +79 -25
- package/dist/esm/apis/ReportingApi.js +39 -9
- package/dist/esm/apis/UserApi.js +16 -7
- package/dist/esm/models/GetContentContentData.js +6 -0
- package/dist/esm/models/GetContentVersion.js +2 -2
- package/dist/esm/models/GetContentVersionListItemsInner.js +2 -2
- package/dist/esm/models/GetManualQuestionSelectionItem.js +1 -1
- package/dist/esm/models/GetQuestionListFilters.js +2 -2
- package/dist/esm/models/GetQuiz.js +2 -2
- package/dist/esm/models/GetQuizAttemptAnalyticsBasicInfo.js +2 -2
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +1 -1
- package/dist/esm/models/GetQuizAttemptAttempt.js +3 -3
- package/dist/esm/models/GetQuizAttemptListAllOfAttempts.js +2 -2
- package/dist/esm/models/GetQuizAttemptListAllOfFiltersDateRange.js +2 -2
- package/dist/esm/models/GetQuizAttemptQuestionsInner.js +1 -1
- package/dist/esm/models/GetQuizAttemptQuestionsInnerCurrentAnswer.js +1 -1
- package/dist/esm/models/GetQuizCriteriaItem.js +2 -2
- package/dist/esm/models/GetQuizCriteriaListItemsInner.js +2 -2
- package/dist/esm/models/GetQuizListAllOfQuizzes.js +2 -2
- package/dist/esm/models/GetQuizQuestionsItemsInner.js +1 -1
- package/dist/esm/models/GetQuizResultsTiming.js +2 -2
- package/dist/esm/models/GetScormPackagePackageInfo.js +2 -2
- package/dist/esm/models/GetUserQuizAttemptsAllOfAttempts.js +2 -2
- package/dist/esm/models/PostContentQuizAssignment.js +3 -3
- package/dist/esm/models/PostContentQuizQuestionSelection.js +6 -0
- package/dist/esm/models/PostQuizAttemptAttempt.js +2 -2
- package/dist/esm/models/PostQuizAttemptSubmit.js +1 -1
- package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +6 -0
- package/dist/esm/models/PostVerifyManifest.d.ts +106 -0
- package/dist/esm/models/PostVerifyManifest.js +73 -0
- package/dist/esm/models/PostVerifyManifestItemsInner.d.ts +74 -0
- package/dist/esm/models/PostVerifyManifestItemsInner.js +55 -0
- package/dist/esm/models/PostVerifyManifestResourcesInner.d.ts +56 -0
- package/dist/esm/models/PostVerifyManifestResourcesInner.js +49 -0
- package/dist/esm/models/PutQuizAnswerAnswer.js +6 -0
- package/dist/esm/models/QuizContentAssignment.js +3 -3
- package/dist/esm/models/ScormGetValueResponse.d.ts +38 -0
- package/dist/esm/models/ScormGetValueResponse.js +47 -0
- package/dist/esm/models/ScormSetValueRequest.d.ts +38 -0
- package/dist/esm/models/ScormSetValueRequest.js +47 -0
- package/dist/esm/models/ScormSetValueResponse.d.ts +32 -0
- package/dist/esm/models/ScormSetValueResponse.js +43 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/runtime.d.ts +3 -1
- package/dist/esm/runtime.js +5 -1
- package/dist/models/GetContentContentData.js +6 -0
- package/dist/models/GetContentVersion.js +2 -2
- package/dist/models/GetContentVersionListItemsInner.js +2 -2
- package/dist/models/GetManualQuestionSelectionItem.js +1 -1
- package/dist/models/GetQuestionListFilters.js +2 -2
- package/dist/models/GetQuiz.js +2 -2
- package/dist/models/GetQuizAttemptAnalyticsBasicInfo.js +2 -2
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +1 -1
- package/dist/models/GetQuizAttemptAttempt.js +3 -3
- package/dist/models/GetQuizAttemptListAllOfAttempts.js +2 -2
- package/dist/models/GetQuizAttemptListAllOfFiltersDateRange.js +2 -2
- package/dist/models/GetQuizAttemptQuestionsInner.js +1 -1
- package/dist/models/GetQuizAttemptQuestionsInnerCurrentAnswer.js +1 -1
- package/dist/models/GetQuizCriteriaItem.js +2 -2
- package/dist/models/GetQuizCriteriaListItemsInner.js +2 -2
- package/dist/models/GetQuizListAllOfQuizzes.js +2 -2
- package/dist/models/GetQuizQuestionsItemsInner.js +1 -1
- package/dist/models/GetQuizResultsTiming.js +2 -2
- package/dist/models/GetScormPackagePackageInfo.js +2 -2
- package/dist/models/GetUserQuizAttemptsAllOfAttempts.js +2 -2
- package/dist/models/PostContentQuizAssignment.js +3 -3
- package/dist/models/PostContentQuizQuestionSelection.js +6 -0
- package/dist/models/PostQuizAttemptAttempt.js +2 -2
- package/dist/models/PostQuizAttemptSubmit.js +1 -1
- package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +6 -0
- package/dist/models/PostVerifyManifest.d.ts +106 -0
- package/dist/models/PostVerifyManifest.js +80 -0
- package/dist/models/PostVerifyManifestItemsInner.d.ts +74 -0
- package/dist/models/PostVerifyManifestItemsInner.js +62 -0
- package/dist/models/PostVerifyManifestResourcesInner.d.ts +56 -0
- package/dist/models/PostVerifyManifestResourcesInner.js +56 -0
- package/dist/models/PutQuizAnswerAnswer.js +6 -0
- package/dist/models/QuizContentAssignment.js +3 -3
- package/dist/models/ScormGetValueResponse.d.ts +38 -0
- package/dist/models/ScormGetValueResponse.js +54 -0
- package/dist/models/ScormSetValueRequest.d.ts +38 -0
- package/dist/models/ScormSetValueRequest.js +54 -0
- package/dist/models/ScormSetValueResponse.d.ts +32 -0
- package/dist/models/ScormSetValueResponse.js +50 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.d.ts +3 -1
- package/dist/runtime.js +5 -1
- package/docs/ContentApi.md +1645 -0
- package/docs/CourseApi.md +845 -0
- package/docs/CriteriaBasedSelection.md +40 -0
- package/docs/CriteriaBasedSelectionCriteria.md +42 -0
- package/docs/CriteriaBasedSelectionDistribution.md +37 -0
- package/docs/FillInBlank.md +36 -0
- package/docs/FillInBlank1.md +36 -0
- package/docs/GetContent.md +58 -0
- package/docs/GetContentContentData.md +53 -0
- package/docs/GetContentGradeDetail.md +50 -0
- package/docs/GetContentGrades.md +42 -0
- package/docs/GetContentGradesItemsInner.md +40 -0
- package/docs/GetContentGradesItemsInnerUser.md +38 -0
- package/docs/GetContentInstructorBasicReporting.md +38 -0
- package/docs/GetContentInstructorBasicReportingContentInfo.md +38 -0
- package/docs/GetContentInstructorBasicReportingEngagement.md +42 -0
- package/docs/GetContentInstructorBasicReportingPerformance.md +36 -0
- package/docs/GetContentList.md +43 -0
- package/docs/GetContentSession.md +45 -0
- package/docs/GetContentSessionDetail.md +51 -0
- package/docs/GetContentSessionDetailScormSessionDataInner.md +36 -0
- package/docs/GetContentSessionDetailUserData.md +36 -0
- package/docs/GetContentSessionList.md +43 -0
- package/docs/GetContentSessionListItem.md +45 -0
- package/docs/GetContentSessionListItemScormSessionData.md +35 -0
- package/docs/GetContentUpload.md +38 -0
- package/docs/GetContentVersion.md +49 -0
- package/docs/GetContentVersionList.md +43 -0
- package/docs/GetContentVersionListItemsInner.md +42 -0
- package/docs/GetContentVersionSandbox.md +35 -0
- package/docs/GetContentVersionScormData.md +35 -0
- package/docs/GetCourse.md +44 -0
- package/docs/GetCourseEnrollment.md +51 -0
- package/docs/GetCourseEnrollmentList.md +43 -0
- package/docs/GetCourseEnrollmentListItem.md +53 -0
- package/docs/GetCourseExport.md +49 -0
- package/docs/GetCourseExportList.md +43 -0
- package/docs/GetCourseList.md +43 -0
- package/docs/GetCourseReportingBasic.md +38 -0
- package/docs/GetCourseStudentReporting.md +38 -0
- package/docs/GetCourseStudentReportingCourseInfo.md +34 -0
- package/docs/GetCourseStudentReportingEngagement.md +36 -0
- package/docs/GetCourseStudentReportingPerformance.md +34 -0
- package/docs/GetManualQuestionSelectionItem.md +48 -0
- package/docs/GetManualQuestionSelectionList.md +44 -0
- package/docs/GetModule.md +44 -0
- package/docs/GetModuleInstructorBasicReporting.md +38 -0
- package/docs/GetModuleInstructorBasicReportingEngagement.md +34 -0
- package/docs/GetModuleInstructorBasicReportingModuleInfo.md +34 -0
- package/docs/GetModuleInstructorBasicReportingPerformance.md +34 -0
- package/docs/GetModuleList.md +43 -0
- package/docs/GetModuleStudentReporting.md +38 -0
- package/docs/GetModuleStudentReportingAccess.md +36 -0
- package/docs/GetModuleStudentReportingProgress.md +36 -0
- package/docs/GetPortal.md +48 -0
- package/docs/GetPortalBasicReporting.md +36 -0
- package/docs/GetPortalBasicReportingCertificates.md +34 -0
- package/docs/GetPortalBasicReportingPortalInfo.md +38 -0
- package/docs/GetPortalList.md +43 -0
- package/docs/GetPortalStudentReporting.md +36 -0
- package/docs/GetPortalStudentReportingCertificates.md +34 -0
- package/docs/GetPortalStudentReportingPortalInfo.md +38 -0
- package/docs/GetPortalUser.md +45 -0
- package/docs/GetPortalUserList.md +43 -0
- package/docs/GetQuestion.md +62 -0
- package/docs/GetQuestionAnswerChoicesInner.md +38 -0
- package/docs/GetQuestionList.md +44 -0
- package/docs/GetQuestionListFilters.md +48 -0
- package/docs/GetQuiz.md +68 -0
- package/docs/GetQuizAttempt.md +38 -0
- package/docs/GetQuizAttemptAnalytics.md +46 -0
- package/docs/GetQuizAttemptAnalyticsBasicInfo.md +49 -0
- package/docs/GetQuizAttemptAnalyticsPerformanceBreakdown.md +39 -0
- package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.md +44 -0
- package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.md +44 -0
- package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByTopicInner.md +44 -0
- package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInner.md +58 -0
- package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInnerCorrectAnswer.md +39 -0
- package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInnerUserAnswer.md +39 -0
- package/docs/GetQuizAttemptAnalyticsScoring.md +49 -0
- package/docs/GetQuizAttemptAttempt.md +61 -0
- package/docs/GetQuizAttemptList.md +46 -0
- package/docs/GetQuizAttemptListAllOfAttempts.md +68 -0
- package/docs/GetQuizAttemptListAllOfFilters.md +45 -0
- package/docs/GetQuizAttemptListAllOfFiltersDateRange.md +37 -0
- package/docs/GetQuizAttemptListAllOfSummary.md +45 -0
- package/docs/GetQuizAttemptQuestionsInner.md +52 -0
- package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +38 -0
- package/docs/GetQuizAttemptQuestionsInnerCurrentAnswer.md +41 -0
- package/docs/GetQuizAttemptQuizSettings.md +45 -0
- package/docs/GetQuizCriteria.md +38 -0
- package/docs/GetQuizCriteriaEstimatedQuestions.md +39 -0
- package/docs/GetQuizCriteriaItem.md +58 -0
- package/docs/GetQuizCriteriaList.md +42 -0
- package/docs/GetQuizCriteriaListItemsInner.md +58 -0
- package/docs/GetQuizList.md +44 -0
- package/docs/GetQuizListAllOfFilters.md +43 -0
- package/docs/GetQuizListAllOfQuizzes.md +64 -0
- package/docs/GetQuizListAllOfStatistics.md +43 -0
- package/docs/GetQuizQuestions.md +48 -0
- package/docs/GetQuizQuestionsItemsInner.md +48 -0
- package/docs/GetQuizQuestionsItemsInnerQuestionDetails.md +53 -0
- package/docs/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.md +42 -0
- package/docs/GetQuizResults.md +52 -0
- package/docs/GetQuizResultsFeedback.md +39 -0
- package/docs/GetQuizResultsFeedbackDifficultyPerformanceInner.md +40 -0
- package/docs/GetQuizResultsFeedbackTopicPerformanceInner.md +40 -0
- package/docs/GetQuizResultsQuestionsInner.md +50 -0
- package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +40 -0
- package/docs/GetQuizResultsQuestionsInnerStudentAnswer.md +43 -0
- package/docs/GetQuizResultsScore.md +41 -0
- package/docs/GetQuizResultsTiming.md +43 -0
- package/docs/GetQuizStatistics.md +43 -0
- package/docs/GetScormApiLogItem.md +45 -0
- package/docs/GetScormApiLogs.md +43 -0
- package/docs/GetScormPackage.md +37 -0
- package/docs/GetScormPackagePackageInfo.md +59 -0
- package/docs/GetScormSessionData.md +43 -0
- package/docs/GetScormSessionDataActivity.md +36 -0
- package/docs/GetUser.md +42 -0
- package/docs/GetUserQuizAttempts.md +46 -0
- package/docs/GetUserQuizAttemptsAllOfAttempts.md +70 -0
- package/docs/GetUserQuizAttemptsAllOfFilters.md +47 -0
- package/docs/GetUserQuizAttemptsAllOfSummary.md +47 -0
- package/docs/LoginRes.md +36 -0
- package/docs/LoginResAuthData.md +36 -0
- package/docs/LoginResUserData.md +40 -0
- package/docs/LoginResUserDataSelectedPortal.md +36 -0
- package/docs/ManualSelection.md +36 -0
- package/docs/MediaContent.md +38 -0
- package/docs/ModuleApi.md +284 -0
- package/docs/MultipleAnswer.md +36 -0
- package/docs/MultipleAnswer1.md +36 -0
- package/docs/NoAnswer.md +34 -0
- package/docs/OtherApi.md +66 -0
- package/docs/Paginated.md +40 -0
- package/docs/PortalApi.md +493 -0
- package/docs/PostContentQuiz.md +42 -0
- package/docs/PostContentQuizAssignment.md +41 -0
- package/docs/PostContentQuizQuestionSelection.md +43 -0
- package/docs/PostContentQuizSettings.md +51 -0
- package/docs/PostContentSession.md +43 -0
- package/docs/PostContentUpload.md +36 -0
- package/docs/PostCourse.md +38 -0
- package/docs/PostCourseEnrollment.md +40 -0
- package/docs/PostCourseExport.md +35 -0
- package/docs/PostLogin.md +36 -0
- package/docs/PostManualQuestionSelection.md +40 -0
- package/docs/PostModule.md +38 -0
- package/docs/PostPortal.md +38 -0
- package/docs/PostPortalInvite.md +40 -0
- package/docs/PostQuestion.md +52 -0
- package/docs/PostQuestionAnswerChoicesInner.md +36 -0
- package/docs/PostQuiz.md +58 -0
- package/docs/PostQuizAttempt.md +38 -0
- package/docs/PostQuizAttemptAttempt.md +55 -0
- package/docs/PostQuizAttemptQuestionsInner.md +48 -0
- package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +38 -0
- package/docs/PostQuizAttemptQuizSettings.md +45 -0
- package/docs/PostQuizAttemptSubmit.md +38 -0
- package/docs/PostQuizAttemptSubmitFinalAnswersInner.md +36 -0
- package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +41 -0
- package/docs/PostQuizCriteria.md +36 -0
- package/docs/PostQuizCriteriaCriteriaInner.md +49 -0
- package/docs/PostQuizQuestions.md +36 -0
- package/docs/PostQuizQuestionsQuestionsInner.md +40 -0
- package/docs/PostQuizSettings.md +41 -0
- package/docs/PostResetPassword.md +36 -0
- package/docs/PostSendResetPassword.md +34 -0
- package/docs/PostVerifyManifest.md +59 -0
- package/docs/PostVerifyManifestItemsInner.md +48 -0
- package/docs/PostVerifyManifestResourcesInner.md +42 -0
- package/docs/PutContent.md +36 -0
- package/docs/PutContentVersion.md +35 -0
- package/docs/PutCourse.md +44 -0
- package/docs/PutCourseEnrollment.md +40 -0
- package/docs/PutModule.md +40 -0
- package/docs/PutPortalBranding.md +38 -0
- package/docs/PutQuestion.md +52 -0
- package/docs/PutQuestionAnswerChoicesInner.md +38 -0
- package/docs/PutQuiz.md +56 -0
- package/docs/PutQuizAnswer.md +36 -0
- package/docs/PutQuizAnswerAnswer.md +41 -0
- package/docs/PutQuizSettings.md +41 -0
- package/docs/PutUser.md +42 -0
- package/docs/QuestionApi.md +368 -0
- package/docs/QuizApi.md +1793 -0
- package/docs/QuizContent.md +40 -0
- package/docs/QuizContentAssignment.md +39 -0
- package/docs/QuizContentSettings.md +43 -0
- package/docs/ReportingApi.md +674 -0
- package/docs/SCORMContent.md +38 -0
- package/docs/ScormGetValueResponse.md +37 -0
- package/docs/ScormSessionData.md +43 -0
- package/docs/ScormSessionDataProgress.md +36 -0
- package/docs/ScormSessionDataScore.md +40 -0
- package/docs/ScormSessionDataSession.md +34 -0
- package/docs/ScormSessionDataStatus.md +40 -0
- package/docs/ScormSessionDataTime.md +40 -0
- package/docs/ScormSetValueRequest.md +37 -0
- package/docs/ScormSetValueResponse.md +35 -0
- package/docs/SingleAnswer.md +36 -0
- package/docs/UserApi.md +460 -0
- package/package.json +2 -2
- package/src/apis/ContentApi.ts +421 -21
- package/src/apis/CourseApi.ts +61 -12
- package/src/apis/ModuleApi.ts +22 -4
- package/src/apis/OtherApi.ts +4 -1
- package/src/apis/PortalApi.ts +33 -7
- package/src/apis/QuestionApi.ts +23 -5
- package/src/apis/QuizApi.ts +129 -25
- package/src/apis/ReportingApi.ts +57 -9
- package/src/apis/UserApi.ts +30 -7
- package/src/models/GetContentContentData.ts +6 -3
- package/src/models/GetContentVersion.ts +2 -2
- package/src/models/GetContentVersionListItemsInner.ts +2 -2
- package/src/models/GetManualQuestionSelectionItem.ts +1 -1
- package/src/models/GetQuestionListFilters.ts +2 -2
- package/src/models/GetQuiz.ts +2 -2
- package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +2 -2
- package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +1 -1
- package/src/models/GetQuizAttemptAttempt.ts +3 -3
- package/src/models/GetQuizAttemptListAllOfAttempts.ts +2 -2
- package/src/models/GetQuizAttemptListAllOfFiltersDateRange.ts +2 -2
- package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
- package/src/models/GetQuizAttemptQuestionsInnerCurrentAnswer.ts +1 -1
- package/src/models/GetQuizCriteriaItem.ts +2 -2
- package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
- package/src/models/GetQuizListAllOfQuizzes.ts +2 -2
- package/src/models/GetQuizQuestionsItemsInner.ts +1 -1
- package/src/models/GetQuizResultsTiming.ts +2 -2
- package/src/models/GetScormPackagePackageInfo.ts +2 -2
- package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +2 -2
- package/src/models/PostContentQuizAssignment.ts +3 -3
- package/src/models/PostContentQuizQuestionSelection.ts +6 -3
- package/src/models/PostQuizAttemptAttempt.ts +2 -2
- package/src/models/PostQuizAttemptSubmit.ts +1 -1
- package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +6 -3
- package/src/models/PostVerifyManifest.ts +179 -0
- package/src/models/PostVerifyManifestItemsInner.ts +121 -0
- package/src/models/PostVerifyManifestResourcesInner.ts +97 -0
- package/src/models/PutQuizAnswerAnswer.ts +6 -3
- package/src/models/QuizContentAssignment.ts +3 -3
- package/src/models/ScormGetValueResponse.ts +75 -0
- package/src/models/ScormSetValueRequest.ts +75 -0
- package/src/models/ScormSetValueResponse.ts +66 -0
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +5 -4
|
@@ -0,0 +1,845 @@
|
|
|
1
|
+
# CourseApi
|
|
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
|
+
| [**getCourse**](CourseApi.md#getcourse) | **GET** /courses/{courseId} | get course |
|
|
8
|
+
| [**getCourseEnrollment**](CourseApi.md#getcourseenrollment) | **GET** /courses/{courseId}/enrollments/{enrollmentId} | Get a specific course enrollment |
|
|
9
|
+
| [**getCourseEnrollments**](CourseApi.md#getcourseenrollments) | **GET** /courses/{courseId}/enrollments | Get course enrollments |
|
|
10
|
+
| [**getCourseExport**](CourseApi.md#getcourseexport) | **GET** /courses/{courseId}/exports/{exportId} | Get details of a specific SCORM export |
|
|
11
|
+
| [**getCourseExports**](CourseApi.md#getcourseexports) | **GET** /courses/{courseId}/exports | List all SCORM exports for a course |
|
|
12
|
+
| [**getCourseList**](CourseApi.md#getcourselist) | **GET** /courses | get course list |
|
|
13
|
+
| [**getCourseReportingBasic**](CourseApi.md#getcoursereportingbasic) | **GET** /courses/{courseId}/reporting/basic | Get basic course reporting data |
|
|
14
|
+
| [**postCourse**](CourseApi.md#postcourse) | **POST** /courses | Post a new course |
|
|
15
|
+
| [**postCourseEnrollment**](CourseApi.md#postcourseenrollment) | **POST** /courses/{courseId}/enrollments | Create a new course enrollment |
|
|
16
|
+
| [**postCourseExport**](CourseApi.md#postcourseexport) | **POST** /courses/{courseId}/exports | Create a new SCORM export for a course |
|
|
17
|
+
| [**putCourse**](CourseApi.md#putcourse) | **PUT** /courses/{courseId} | Update a course by id |
|
|
18
|
+
| [**putCourseEnrollment**](CourseApi.md#putcourseenrollment) | **PUT** /courses/{courseId}/enrollments/{enrollmentId} | Update a course enrollment |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## getCourse
|
|
23
|
+
|
|
24
|
+
> GetCourse getCourse(courseId)
|
|
25
|
+
|
|
26
|
+
get course
|
|
27
|
+
|
|
28
|
+
### Example
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import {
|
|
32
|
+
Configuration,
|
|
33
|
+
CourseApi,
|
|
34
|
+
} from '@easyedu/js-lsm-api';
|
|
35
|
+
import type { GetCourseRequest } from '@easyedu/js-lsm-api';
|
|
36
|
+
|
|
37
|
+
async function example() {
|
|
38
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
39
|
+
const api = new CourseApi();
|
|
40
|
+
|
|
41
|
+
const body = {
|
|
42
|
+
// string
|
|
43
|
+
courseId: courseId_example,
|
|
44
|
+
} satisfies GetCourseRequest;
|
|
45
|
+
|
|
46
|
+
try {
|
|
47
|
+
const data = await api.getCourse(body);
|
|
48
|
+
console.log(data);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
console.error(error);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Run the test
|
|
55
|
+
example().catch(console.error);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Parameters
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
| Name | Type | Description | Notes |
|
|
62
|
+
|------------- | ------------- | ------------- | -------------|
|
|
63
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
64
|
+
|
|
65
|
+
### Return type
|
|
66
|
+
|
|
67
|
+
[**GetCourse**](GetCourse.md)
|
|
68
|
+
|
|
69
|
+
### Authorization
|
|
70
|
+
|
|
71
|
+
No authorization required
|
|
72
|
+
|
|
73
|
+
### HTTP request headers
|
|
74
|
+
|
|
75
|
+
- **Content-Type**: Not defined
|
|
76
|
+
- **Accept**: `application/json`
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### HTTP response details
|
|
80
|
+
| Status code | Description | Response headers |
|
|
81
|
+
|-------------|-------------|------------------|
|
|
82
|
+
| **200** | get course response OK | - |
|
|
83
|
+
|
|
84
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## getCourseEnrollment
|
|
88
|
+
|
|
89
|
+
> GetCourseEnrollment getCourseEnrollment(courseId, enrollmentId)
|
|
90
|
+
|
|
91
|
+
Get a specific course enrollment
|
|
92
|
+
|
|
93
|
+
### Example
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
import {
|
|
97
|
+
Configuration,
|
|
98
|
+
CourseApi,
|
|
99
|
+
} from '@easyedu/js-lsm-api';
|
|
100
|
+
import type { GetCourseEnrollmentRequest } from '@easyedu/js-lsm-api';
|
|
101
|
+
|
|
102
|
+
async function example() {
|
|
103
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
104
|
+
const api = new CourseApi();
|
|
105
|
+
|
|
106
|
+
const body = {
|
|
107
|
+
// string
|
|
108
|
+
courseId: courseId_example,
|
|
109
|
+
// string
|
|
110
|
+
enrollmentId: enrollmentId_example,
|
|
111
|
+
} satisfies GetCourseEnrollmentRequest;
|
|
112
|
+
|
|
113
|
+
try {
|
|
114
|
+
const data = await api.getCourseEnrollment(body);
|
|
115
|
+
console.log(data);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error(error);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Run the test
|
|
122
|
+
example().catch(console.error);
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Parameters
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
| Name | Type | Description | Notes |
|
|
129
|
+
|------------- | ------------- | ------------- | -------------|
|
|
130
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
131
|
+
| **enrollmentId** | `string` | | [Defaults to `undefined`] |
|
|
132
|
+
|
|
133
|
+
### Return type
|
|
134
|
+
|
|
135
|
+
[**GetCourseEnrollment**](GetCourseEnrollment.md)
|
|
136
|
+
|
|
137
|
+
### Authorization
|
|
138
|
+
|
|
139
|
+
No authorization required
|
|
140
|
+
|
|
141
|
+
### HTTP request headers
|
|
142
|
+
|
|
143
|
+
- **Content-Type**: Not defined
|
|
144
|
+
- **Accept**: `application/json`
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### HTTP response details
|
|
148
|
+
| Status code | Description | Response headers |
|
|
149
|
+
|-------------|-------------|------------------|
|
|
150
|
+
| **200** | get course enrollment response OK | - |
|
|
151
|
+
|
|
152
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## getCourseEnrollments
|
|
156
|
+
|
|
157
|
+
> GetCourseEnrollmentList getCourseEnrollments(courseId, type, page, pageSize)
|
|
158
|
+
|
|
159
|
+
Get course enrollments
|
|
160
|
+
|
|
161
|
+
### Example
|
|
162
|
+
|
|
163
|
+
```ts
|
|
164
|
+
import {
|
|
165
|
+
Configuration,
|
|
166
|
+
CourseApi,
|
|
167
|
+
} from '@easyedu/js-lsm-api';
|
|
168
|
+
import type { GetCourseEnrollmentsRequest } from '@easyedu/js-lsm-api';
|
|
169
|
+
|
|
170
|
+
async function example() {
|
|
171
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
172
|
+
const api = new CourseApi();
|
|
173
|
+
|
|
174
|
+
const body = {
|
|
175
|
+
// string
|
|
176
|
+
courseId: courseId_example,
|
|
177
|
+
// 'student' | 'instructor' | Filter enrollments by user type (optional)
|
|
178
|
+
type: type_example,
|
|
179
|
+
// number | Page number for pagination (optional)
|
|
180
|
+
page: 56,
|
|
181
|
+
// number | Number of items per page (optional)
|
|
182
|
+
pageSize: 56,
|
|
183
|
+
} satisfies GetCourseEnrollmentsRequest;
|
|
184
|
+
|
|
185
|
+
try {
|
|
186
|
+
const data = await api.getCourseEnrollments(body);
|
|
187
|
+
console.log(data);
|
|
188
|
+
} catch (error) {
|
|
189
|
+
console.error(error);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// Run the test
|
|
194
|
+
example().catch(console.error);
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Parameters
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
| Name | Type | Description | Notes |
|
|
201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
202
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
203
|
+
| **type** | `student`, `instructor` | Filter enrollments by user type | [Optional] [Defaults to `undefined`] [Enum: student, instructor] |
|
|
204
|
+
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
205
|
+
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
206
|
+
|
|
207
|
+
### Return type
|
|
208
|
+
|
|
209
|
+
[**GetCourseEnrollmentList**](GetCourseEnrollmentList.md)
|
|
210
|
+
|
|
211
|
+
### Authorization
|
|
212
|
+
|
|
213
|
+
No authorization required
|
|
214
|
+
|
|
215
|
+
### HTTP request headers
|
|
216
|
+
|
|
217
|
+
- **Content-Type**: Not defined
|
|
218
|
+
- **Accept**: `application/json`
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### HTTP response details
|
|
222
|
+
| Status code | Description | Response headers |
|
|
223
|
+
|-------------|-------------|------------------|
|
|
224
|
+
| **200** | get course enrollments response OK | - |
|
|
225
|
+
|
|
226
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
## getCourseExport
|
|
230
|
+
|
|
231
|
+
> GetCourseExport getCourseExport(courseId, exportId)
|
|
232
|
+
|
|
233
|
+
Get details of a specific SCORM export
|
|
234
|
+
|
|
235
|
+
### Example
|
|
236
|
+
|
|
237
|
+
```ts
|
|
238
|
+
import {
|
|
239
|
+
Configuration,
|
|
240
|
+
CourseApi,
|
|
241
|
+
} from '@easyedu/js-lsm-api';
|
|
242
|
+
import type { GetCourseExportRequest } from '@easyedu/js-lsm-api';
|
|
243
|
+
|
|
244
|
+
async function example() {
|
|
245
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
246
|
+
const api = new CourseApi();
|
|
247
|
+
|
|
248
|
+
const body = {
|
|
249
|
+
// string
|
|
250
|
+
courseId: courseId_example,
|
|
251
|
+
// string
|
|
252
|
+
exportId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
253
|
+
} satisfies GetCourseExportRequest;
|
|
254
|
+
|
|
255
|
+
try {
|
|
256
|
+
const data = await api.getCourseExport(body);
|
|
257
|
+
console.log(data);
|
|
258
|
+
} catch (error) {
|
|
259
|
+
console.error(error);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Run the test
|
|
264
|
+
example().catch(console.error);
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
| Name | Type | Description | Notes |
|
|
271
|
+
|------------- | ------------- | ------------- | -------------|
|
|
272
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
273
|
+
| **exportId** | `string` | | [Defaults to `undefined`] |
|
|
274
|
+
|
|
275
|
+
### Return type
|
|
276
|
+
|
|
277
|
+
[**GetCourseExport**](GetCourseExport.md)
|
|
278
|
+
|
|
279
|
+
### Authorization
|
|
280
|
+
|
|
281
|
+
No authorization required
|
|
282
|
+
|
|
283
|
+
### HTTP request headers
|
|
284
|
+
|
|
285
|
+
- **Content-Type**: Not defined
|
|
286
|
+
- **Accept**: `application/json`
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### HTTP response details
|
|
290
|
+
| Status code | Description | Response headers |
|
|
291
|
+
|-------------|-------------|------------------|
|
|
292
|
+
| **200** | Export details | - |
|
|
293
|
+
| **401** | Unauthorized | - |
|
|
294
|
+
| **404** | Export or course not found | - |
|
|
295
|
+
|
|
296
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
## getCourseExports
|
|
300
|
+
|
|
301
|
+
> GetCourseExportList getCourseExports(courseId, page, pageSize)
|
|
302
|
+
|
|
303
|
+
List all SCORM exports for a course
|
|
304
|
+
|
|
305
|
+
### Example
|
|
306
|
+
|
|
307
|
+
```ts
|
|
308
|
+
import {
|
|
309
|
+
Configuration,
|
|
310
|
+
CourseApi,
|
|
311
|
+
} from '@easyedu/js-lsm-api';
|
|
312
|
+
import type { GetCourseExportsRequest } from '@easyedu/js-lsm-api';
|
|
313
|
+
|
|
314
|
+
async function example() {
|
|
315
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
316
|
+
const api = new CourseApi();
|
|
317
|
+
|
|
318
|
+
const body = {
|
|
319
|
+
// string
|
|
320
|
+
courseId: courseId_example,
|
|
321
|
+
// number | Page number for pagination (optional)
|
|
322
|
+
page: 56,
|
|
323
|
+
// number | Number of items per page (optional)
|
|
324
|
+
pageSize: 56,
|
|
325
|
+
} satisfies GetCourseExportsRequest;
|
|
326
|
+
|
|
327
|
+
try {
|
|
328
|
+
const data = await api.getCourseExports(body);
|
|
329
|
+
console.log(data);
|
|
330
|
+
} catch (error) {
|
|
331
|
+
console.error(error);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// Run the test
|
|
336
|
+
example().catch(console.error);
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
### Parameters
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
| Name | Type | Description | Notes |
|
|
343
|
+
|------------- | ------------- | ------------- | -------------|
|
|
344
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
345
|
+
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
346
|
+
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
347
|
+
|
|
348
|
+
### Return type
|
|
349
|
+
|
|
350
|
+
[**GetCourseExportList**](GetCourseExportList.md)
|
|
351
|
+
|
|
352
|
+
### Authorization
|
|
353
|
+
|
|
354
|
+
No authorization required
|
|
355
|
+
|
|
356
|
+
### HTTP request headers
|
|
357
|
+
|
|
358
|
+
- **Content-Type**: Not defined
|
|
359
|
+
- **Accept**: `application/json`
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
### HTTP response details
|
|
363
|
+
| Status code | Description | Response headers |
|
|
364
|
+
|-------------|-------------|------------------|
|
|
365
|
+
| **200** | List of course exports | - |
|
|
366
|
+
| **401** | Unauthorized | - |
|
|
367
|
+
| **404** | Course not found | - |
|
|
368
|
+
|
|
369
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
## getCourseList
|
|
373
|
+
|
|
374
|
+
> GetCourseList getCourseList(enrolled)
|
|
375
|
+
|
|
376
|
+
get course list
|
|
377
|
+
|
|
378
|
+
### Example
|
|
379
|
+
|
|
380
|
+
```ts
|
|
381
|
+
import {
|
|
382
|
+
Configuration,
|
|
383
|
+
CourseApi,
|
|
384
|
+
} from '@easyedu/js-lsm-api';
|
|
385
|
+
import type { GetCourseListRequest } from '@easyedu/js-lsm-api';
|
|
386
|
+
|
|
387
|
+
async function example() {
|
|
388
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
389
|
+
const api = new CourseApi();
|
|
390
|
+
|
|
391
|
+
const body = {
|
|
392
|
+
// boolean | Filter to only courses the authenticated user is enrolled in (optional)
|
|
393
|
+
enrolled: true,
|
|
394
|
+
} satisfies GetCourseListRequest;
|
|
395
|
+
|
|
396
|
+
try {
|
|
397
|
+
const data = await api.getCourseList(body);
|
|
398
|
+
console.log(data);
|
|
399
|
+
} catch (error) {
|
|
400
|
+
console.error(error);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
// Run the test
|
|
405
|
+
example().catch(console.error);
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
### Parameters
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
| Name | Type | Description | Notes |
|
|
412
|
+
|------------- | ------------- | ------------- | -------------|
|
|
413
|
+
| **enrolled** | `boolean` | Filter to only courses the authenticated user is enrolled in | [Optional] [Defaults to `undefined`] |
|
|
414
|
+
|
|
415
|
+
### Return type
|
|
416
|
+
|
|
417
|
+
[**GetCourseList**](GetCourseList.md)
|
|
418
|
+
|
|
419
|
+
### Authorization
|
|
420
|
+
|
|
421
|
+
No authorization required
|
|
422
|
+
|
|
423
|
+
### HTTP request headers
|
|
424
|
+
|
|
425
|
+
- **Content-Type**: Not defined
|
|
426
|
+
- **Accept**: `application/json`
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
### HTTP response details
|
|
430
|
+
| Status code | Description | Response headers |
|
|
431
|
+
|-------------|-------------|------------------|
|
|
432
|
+
| **200** | get course list response OK | - |
|
|
433
|
+
|
|
434
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
## getCourseReportingBasic
|
|
438
|
+
|
|
439
|
+
> GetCourseReportingBasic getCourseReportingBasic(courseId)
|
|
440
|
+
|
|
441
|
+
Get basic course reporting data
|
|
442
|
+
|
|
443
|
+
### Example
|
|
444
|
+
|
|
445
|
+
```ts
|
|
446
|
+
import {
|
|
447
|
+
Configuration,
|
|
448
|
+
CourseApi,
|
|
449
|
+
} from '@easyedu/js-lsm-api';
|
|
450
|
+
import type { GetCourseReportingBasicRequest } from '@easyedu/js-lsm-api';
|
|
451
|
+
|
|
452
|
+
async function example() {
|
|
453
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
454
|
+
const api = new CourseApi();
|
|
455
|
+
|
|
456
|
+
const body = {
|
|
457
|
+
// string
|
|
458
|
+
courseId: courseId_example,
|
|
459
|
+
} satisfies GetCourseReportingBasicRequest;
|
|
460
|
+
|
|
461
|
+
try {
|
|
462
|
+
const data = await api.getCourseReportingBasic(body);
|
|
463
|
+
console.log(data);
|
|
464
|
+
} catch (error) {
|
|
465
|
+
console.error(error);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// Run the test
|
|
470
|
+
example().catch(console.error);
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
### Parameters
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
| Name | Type | Description | Notes |
|
|
477
|
+
|------------- | ------------- | ------------- | -------------|
|
|
478
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
479
|
+
|
|
480
|
+
### Return type
|
|
481
|
+
|
|
482
|
+
[**GetCourseReportingBasic**](GetCourseReportingBasic.md)
|
|
483
|
+
|
|
484
|
+
### Authorization
|
|
485
|
+
|
|
486
|
+
No authorization required
|
|
487
|
+
|
|
488
|
+
### HTTP request headers
|
|
489
|
+
|
|
490
|
+
- **Content-Type**: Not defined
|
|
491
|
+
- **Accept**: `application/json`
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
### HTTP response details
|
|
495
|
+
| Status code | Description | Response headers |
|
|
496
|
+
|-------------|-------------|------------------|
|
|
497
|
+
| **200** | get course reporting basic response OK | - |
|
|
498
|
+
|
|
499
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
## postCourse
|
|
503
|
+
|
|
504
|
+
> GetCourse postCourse(postCourse)
|
|
505
|
+
|
|
506
|
+
Post a new course
|
|
507
|
+
|
|
508
|
+
### Example
|
|
509
|
+
|
|
510
|
+
```ts
|
|
511
|
+
import {
|
|
512
|
+
Configuration,
|
|
513
|
+
CourseApi,
|
|
514
|
+
} from '@easyedu/js-lsm-api';
|
|
515
|
+
import type { PostCourseRequest } from '@easyedu/js-lsm-api';
|
|
516
|
+
|
|
517
|
+
async function example() {
|
|
518
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
519
|
+
const api = new CourseApi();
|
|
520
|
+
|
|
521
|
+
const body = {
|
|
522
|
+
// PostCourse | Course object that needs to be added
|
|
523
|
+
postCourse: ...,
|
|
524
|
+
} satisfies PostCourseRequest;
|
|
525
|
+
|
|
526
|
+
try {
|
|
527
|
+
const data = await api.postCourse(body);
|
|
528
|
+
console.log(data);
|
|
529
|
+
} catch (error) {
|
|
530
|
+
console.error(error);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// Run the test
|
|
535
|
+
example().catch(console.error);
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
### Parameters
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
| Name | Type | Description | Notes |
|
|
542
|
+
|------------- | ------------- | ------------- | -------------|
|
|
543
|
+
| **postCourse** | [PostCourse](PostCourse.md) | Course object that needs to be added | |
|
|
544
|
+
|
|
545
|
+
### Return type
|
|
546
|
+
|
|
547
|
+
[**GetCourse**](GetCourse.md)
|
|
548
|
+
|
|
549
|
+
### Authorization
|
|
550
|
+
|
|
551
|
+
No authorization required
|
|
552
|
+
|
|
553
|
+
### HTTP request headers
|
|
554
|
+
|
|
555
|
+
- **Content-Type**: `application/json`
|
|
556
|
+
- **Accept**: `application/json`
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
### HTTP response details
|
|
560
|
+
| Status code | Description | Response headers |
|
|
561
|
+
|-------------|-------------|------------------|
|
|
562
|
+
| **200** | post course response OK | - |
|
|
563
|
+
|
|
564
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
## postCourseEnrollment
|
|
568
|
+
|
|
569
|
+
> GetCourseEnrollment postCourseEnrollment(courseId, postCourseEnrollment)
|
|
570
|
+
|
|
571
|
+
Create a new course enrollment
|
|
572
|
+
|
|
573
|
+
### Example
|
|
574
|
+
|
|
575
|
+
```ts
|
|
576
|
+
import {
|
|
577
|
+
Configuration,
|
|
578
|
+
CourseApi,
|
|
579
|
+
} from '@easyedu/js-lsm-api';
|
|
580
|
+
import type { PostCourseEnrollmentRequest } from '@easyedu/js-lsm-api';
|
|
581
|
+
|
|
582
|
+
async function example() {
|
|
583
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
584
|
+
const api = new CourseApi();
|
|
585
|
+
|
|
586
|
+
const body = {
|
|
587
|
+
// string
|
|
588
|
+
courseId: courseId_example,
|
|
589
|
+
// PostCourseEnrollment | Course enrollment object that needs to be added
|
|
590
|
+
postCourseEnrollment: ...,
|
|
591
|
+
} satisfies PostCourseEnrollmentRequest;
|
|
592
|
+
|
|
593
|
+
try {
|
|
594
|
+
const data = await api.postCourseEnrollment(body);
|
|
595
|
+
console.log(data);
|
|
596
|
+
} catch (error) {
|
|
597
|
+
console.error(error);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// Run the test
|
|
602
|
+
example().catch(console.error);
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
### Parameters
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
| Name | Type | Description | Notes |
|
|
609
|
+
|------------- | ------------- | ------------- | -------------|
|
|
610
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
611
|
+
| **postCourseEnrollment** | [PostCourseEnrollment](PostCourseEnrollment.md) | Course enrollment object that needs to be added | |
|
|
612
|
+
|
|
613
|
+
### Return type
|
|
614
|
+
|
|
615
|
+
[**GetCourseEnrollment**](GetCourseEnrollment.md)
|
|
616
|
+
|
|
617
|
+
### Authorization
|
|
618
|
+
|
|
619
|
+
No authorization required
|
|
620
|
+
|
|
621
|
+
### HTTP request headers
|
|
622
|
+
|
|
623
|
+
- **Content-Type**: `application/json`
|
|
624
|
+
- **Accept**: `application/json`
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
### HTTP response details
|
|
628
|
+
| Status code | Description | Response headers |
|
|
629
|
+
|-------------|-------------|------------------|
|
|
630
|
+
| **200** | post course enrollment response OK | - |
|
|
631
|
+
|
|
632
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
## postCourseExport
|
|
636
|
+
|
|
637
|
+
> GetCourseExport postCourseExport(courseId, postCourseExport)
|
|
638
|
+
|
|
639
|
+
Create a new SCORM export for a course
|
|
640
|
+
|
|
641
|
+
Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Actual SCORM package generation is not yet implemented (TODO) - Export metadata should be persisted to a database table (TODO) - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
|
|
642
|
+
|
|
643
|
+
### Example
|
|
644
|
+
|
|
645
|
+
```ts
|
|
646
|
+
import {
|
|
647
|
+
Configuration,
|
|
648
|
+
CourseApi,
|
|
649
|
+
} from '@easyedu/js-lsm-api';
|
|
650
|
+
import type { PostCourseExportRequest } from '@easyedu/js-lsm-api';
|
|
651
|
+
|
|
652
|
+
async function example() {
|
|
653
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
654
|
+
const api = new CourseApi();
|
|
655
|
+
|
|
656
|
+
const body = {
|
|
657
|
+
// string
|
|
658
|
+
courseId: courseId_example,
|
|
659
|
+
// PostCourseExport | SCORM export request
|
|
660
|
+
postCourseExport: ...,
|
|
661
|
+
} satisfies PostCourseExportRequest;
|
|
662
|
+
|
|
663
|
+
try {
|
|
664
|
+
const data = await api.postCourseExport(body);
|
|
665
|
+
console.log(data);
|
|
666
|
+
} catch (error) {
|
|
667
|
+
console.error(error);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// Run the test
|
|
672
|
+
example().catch(console.error);
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
### Parameters
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
| Name | Type | Description | Notes |
|
|
679
|
+
|------------- | ------------- | ------------- | -------------|
|
|
680
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
681
|
+
| **postCourseExport** | [PostCourseExport](PostCourseExport.md) | SCORM export request | |
|
|
682
|
+
|
|
683
|
+
### Return type
|
|
684
|
+
|
|
685
|
+
[**GetCourseExport**](GetCourseExport.md)
|
|
686
|
+
|
|
687
|
+
### Authorization
|
|
688
|
+
|
|
689
|
+
No authorization required
|
|
690
|
+
|
|
691
|
+
### HTTP request headers
|
|
692
|
+
|
|
693
|
+
- **Content-Type**: `application/json`
|
|
694
|
+
- **Accept**: `application/json`
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
### HTTP response details
|
|
698
|
+
| Status code | Description | Response headers |
|
|
699
|
+
|-------------|-------------|------------------|
|
|
700
|
+
| **202** | Export job created successfully | - |
|
|
701
|
+
| **400** | Invalid request | - |
|
|
702
|
+
| **401** | Unauthorized | - |
|
|
703
|
+
| **404** | Course not found | - |
|
|
704
|
+
|
|
705
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
## putCourse
|
|
709
|
+
|
|
710
|
+
> GetCourse putCourse(courseId, putCourse)
|
|
711
|
+
|
|
712
|
+
Update a course by id
|
|
713
|
+
|
|
714
|
+
### Example
|
|
715
|
+
|
|
716
|
+
```ts
|
|
717
|
+
import {
|
|
718
|
+
Configuration,
|
|
719
|
+
CourseApi,
|
|
720
|
+
} from '@easyedu/js-lsm-api';
|
|
721
|
+
import type { PutCourseRequest } from '@easyedu/js-lsm-api';
|
|
722
|
+
|
|
723
|
+
async function example() {
|
|
724
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
725
|
+
const api = new CourseApi();
|
|
726
|
+
|
|
727
|
+
const body = {
|
|
728
|
+
// string
|
|
729
|
+
courseId: courseId_example,
|
|
730
|
+
// PutCourse | Course object that needs to be updated
|
|
731
|
+
putCourse: ...,
|
|
732
|
+
} satisfies PutCourseRequest;
|
|
733
|
+
|
|
734
|
+
try {
|
|
735
|
+
const data = await api.putCourse(body);
|
|
736
|
+
console.log(data);
|
|
737
|
+
} catch (error) {
|
|
738
|
+
console.error(error);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
// Run the test
|
|
743
|
+
example().catch(console.error);
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
### Parameters
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
| Name | Type | Description | Notes |
|
|
750
|
+
|------------- | ------------- | ------------- | -------------|
|
|
751
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
752
|
+
| **putCourse** | [PutCourse](PutCourse.md) | Course object that needs to be updated | |
|
|
753
|
+
|
|
754
|
+
### Return type
|
|
755
|
+
|
|
756
|
+
[**GetCourse**](GetCourse.md)
|
|
757
|
+
|
|
758
|
+
### Authorization
|
|
759
|
+
|
|
760
|
+
No authorization required
|
|
761
|
+
|
|
762
|
+
### HTTP request headers
|
|
763
|
+
|
|
764
|
+
- **Content-Type**: `application/json`
|
|
765
|
+
- **Accept**: `application/json`
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
### HTTP response details
|
|
769
|
+
| Status code | Description | Response headers |
|
|
770
|
+
|-------------|-------------|------------------|
|
|
771
|
+
| **200** | put course response OK | - |
|
|
772
|
+
|
|
773
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
## putCourseEnrollment
|
|
777
|
+
|
|
778
|
+
> GetCourseEnrollment putCourseEnrollment(courseId, enrollmentId, putCourseEnrollment)
|
|
779
|
+
|
|
780
|
+
Update a course enrollment
|
|
781
|
+
|
|
782
|
+
### Example
|
|
783
|
+
|
|
784
|
+
```ts
|
|
785
|
+
import {
|
|
786
|
+
Configuration,
|
|
787
|
+
CourseApi,
|
|
788
|
+
} from '@easyedu/js-lsm-api';
|
|
789
|
+
import type { PutCourseEnrollmentRequest } from '@easyedu/js-lsm-api';
|
|
790
|
+
|
|
791
|
+
async function example() {
|
|
792
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
793
|
+
const api = new CourseApi();
|
|
794
|
+
|
|
795
|
+
const body = {
|
|
796
|
+
// string
|
|
797
|
+
courseId: courseId_example,
|
|
798
|
+
// string
|
|
799
|
+
enrollmentId: enrollmentId_example,
|
|
800
|
+
// PutCourseEnrollment | Course enrollment fields to update
|
|
801
|
+
putCourseEnrollment: ...,
|
|
802
|
+
} satisfies PutCourseEnrollmentRequest;
|
|
803
|
+
|
|
804
|
+
try {
|
|
805
|
+
const data = await api.putCourseEnrollment(body);
|
|
806
|
+
console.log(data);
|
|
807
|
+
} catch (error) {
|
|
808
|
+
console.error(error);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
// Run the test
|
|
813
|
+
example().catch(console.error);
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
### Parameters
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
| Name | Type | Description | Notes |
|
|
820
|
+
|------------- | ------------- | ------------- | -------------|
|
|
821
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
822
|
+
| **enrollmentId** | `string` | | [Defaults to `undefined`] |
|
|
823
|
+
| **putCourseEnrollment** | [PutCourseEnrollment](PutCourseEnrollment.md) | Course enrollment fields to update | |
|
|
824
|
+
|
|
825
|
+
### Return type
|
|
826
|
+
|
|
827
|
+
[**GetCourseEnrollment**](GetCourseEnrollment.md)
|
|
828
|
+
|
|
829
|
+
### Authorization
|
|
830
|
+
|
|
831
|
+
No authorization required
|
|
832
|
+
|
|
833
|
+
### HTTP request headers
|
|
834
|
+
|
|
835
|
+
- **Content-Type**: `application/json`
|
|
836
|
+
- **Accept**: `application/json`
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
### HTTP response details
|
|
840
|
+
| Status code | Description | Response headers |
|
|
841
|
+
|-------------|-------------|------------------|
|
|
842
|
+
| **200** | put course enrollment response OK | - |
|
|
843
|
+
|
|
844
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
845
|
+
|