@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.
- package/.openapi-generator/FILES +209 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +378 -28
- package/dist/apis/ContentApi.d.ts +90 -1
- package/dist/apis/ContentApi.js +286 -17
- 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 +90 -1
- package/dist/esm/apis/ContentApi.js +286 -17
- 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 +1642 -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 +411 -16
- 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
package/docs/OtherApi.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# OtherApi
|
|
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
|
+
| [**getHealth**](OtherApi.md#gethealth) | **GET** /healthcheck | Health check endpoint |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getHealth
|
|
12
|
+
|
|
13
|
+
> getHealth()
|
|
14
|
+
|
|
15
|
+
Health check endpoint
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
OtherApi,
|
|
23
|
+
} from '@easyedu/js-lsm-api';
|
|
24
|
+
import type { GetHealthRequest } from '@easyedu/js-lsm-api';
|
|
25
|
+
|
|
26
|
+
async function example() {
|
|
27
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
28
|
+
const api = new OtherApi();
|
|
29
|
+
|
|
30
|
+
try {
|
|
31
|
+
const data = await api.getHealth();
|
|
32
|
+
console.log(data);
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.error(error);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Run the test
|
|
39
|
+
example().catch(console.error);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
This endpoint does not need any parameter.
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
`void` (Empty response body)
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
No authorization required
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: Not defined
|
|
57
|
+
- **Accept**: Not defined
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
| **200** | Service is healthy | - |
|
|
64
|
+
|
|
65
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
66
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# Paginated
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`page` | number
|
|
10
|
+
`pageSize` | number
|
|
11
|
+
`totalPages` | number
|
|
12
|
+
`totalItems` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { Paginated } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"page": null,
|
|
22
|
+
"pageSize": null,
|
|
23
|
+
"totalPages": null,
|
|
24
|
+
"totalItems": null,
|
|
25
|
+
} satisfies Paginated
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as Paginated
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
# PortalApi
|
|
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
|
+
| [**getPortalById**](PortalApi.md#getportalbyid) | **GET** /portals/{portalId} | Get a portal by id (can use \'current\' to get the current users selected portal) |
|
|
8
|
+
| [**getPortalList**](PortalApi.md#getportallist) | **GET** /portals | Get all portals a user has access to |
|
|
9
|
+
| [**getPortalUsers**](PortalApi.md#getportalusers) | **GET** /portals/{portalId}/users | Get all users for a portal with optional role filtering |
|
|
10
|
+
| [**inviteUserToPortal**](PortalApi.md#inviteusertoportal) | **POST** /portals/{portalId}/invite | Invite a new user to a portal |
|
|
11
|
+
| [**postPortal**](PortalApi.md#postportal) | **POST** /portals | Create a new portal as a child of the current selected portal |
|
|
12
|
+
| [**putPortalBranding**](PortalApi.md#putportalbranding) | **PUT** /portals/{portalId} | Update portal branding (name, background color, text color) |
|
|
13
|
+
| [**updateSelectedPortal**](PortalApi.md#updateselectedportal) | **PUT** /portals/{portalId}/selected | Update the users current selected portal |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## getPortalById
|
|
18
|
+
|
|
19
|
+
> GetPortal getPortalById(portalId)
|
|
20
|
+
|
|
21
|
+
Get a portal by id (can use \'current\' to get the current users selected portal)
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import {
|
|
27
|
+
Configuration,
|
|
28
|
+
PortalApi,
|
|
29
|
+
} from '@easyedu/js-lsm-api';
|
|
30
|
+
import type { GetPortalByIdRequest } from '@easyedu/js-lsm-api';
|
|
31
|
+
|
|
32
|
+
async function example() {
|
|
33
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
34
|
+
const api = new PortalApi();
|
|
35
|
+
|
|
36
|
+
const body = {
|
|
37
|
+
// string
|
|
38
|
+
portalId: portalId_example,
|
|
39
|
+
} satisfies GetPortalByIdRequest;
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
const data = await api.getPortalById(body);
|
|
43
|
+
console.log(data);
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.error(error);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Run the test
|
|
50
|
+
example().catch(console.error);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
| Name | Type | Description | Notes |
|
|
57
|
+
|------------- | ------------- | ------------- | -------------|
|
|
58
|
+
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
[**GetPortal**](GetPortal.md)
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
No authorization required
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: Not defined
|
|
71
|
+
- **Accept**: `application/json`
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### HTTP response details
|
|
75
|
+
| Status code | Description | Response headers |
|
|
76
|
+
|-------------|-------------|------------------|
|
|
77
|
+
| **200** | get portal response OK | - |
|
|
78
|
+
|
|
79
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## getPortalList
|
|
83
|
+
|
|
84
|
+
> GetPortalList getPortalList()
|
|
85
|
+
|
|
86
|
+
Get all portals a user has access to
|
|
87
|
+
|
|
88
|
+
### Example
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
import {
|
|
92
|
+
Configuration,
|
|
93
|
+
PortalApi,
|
|
94
|
+
} from '@easyedu/js-lsm-api';
|
|
95
|
+
import type { GetPortalListRequest } from '@easyedu/js-lsm-api';
|
|
96
|
+
|
|
97
|
+
async function example() {
|
|
98
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
99
|
+
const api = new PortalApi();
|
|
100
|
+
|
|
101
|
+
try {
|
|
102
|
+
const data = await api.getPortalList();
|
|
103
|
+
console.log(data);
|
|
104
|
+
} catch (error) {
|
|
105
|
+
console.error(error);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Run the test
|
|
110
|
+
example().catch(console.error);
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Parameters
|
|
114
|
+
|
|
115
|
+
This endpoint does not need any parameter.
|
|
116
|
+
|
|
117
|
+
### Return type
|
|
118
|
+
|
|
119
|
+
[**GetPortalList**](GetPortalList.md)
|
|
120
|
+
|
|
121
|
+
### Authorization
|
|
122
|
+
|
|
123
|
+
No authorization required
|
|
124
|
+
|
|
125
|
+
### HTTP request headers
|
|
126
|
+
|
|
127
|
+
- **Content-Type**: Not defined
|
|
128
|
+
- **Accept**: `application/json`
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### HTTP response details
|
|
132
|
+
| Status code | Description | Response headers |
|
|
133
|
+
|-------------|-------------|------------------|
|
|
134
|
+
| **200** | get portal list response OK | - |
|
|
135
|
+
|
|
136
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## getPortalUsers
|
|
140
|
+
|
|
141
|
+
> GetPortalUserList getPortalUsers(portalId, type, roles, search, page, pageSize)
|
|
142
|
+
|
|
143
|
+
Get all users for a portal with optional role filtering
|
|
144
|
+
|
|
145
|
+
### Example
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
import {
|
|
149
|
+
Configuration,
|
|
150
|
+
PortalApi,
|
|
151
|
+
} from '@easyedu/js-lsm-api';
|
|
152
|
+
import type { GetPortalUsersRequest } from '@easyedu/js-lsm-api';
|
|
153
|
+
|
|
154
|
+
async function example() {
|
|
155
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
156
|
+
const api = new PortalApi();
|
|
157
|
+
|
|
158
|
+
const body = {
|
|
159
|
+
// string
|
|
160
|
+
portalId: portalId_example,
|
|
161
|
+
// 'student' | 'instructor' | Filter users by type (student maps to Learner, instructor maps to Instructor) (optional)
|
|
162
|
+
type: type_example,
|
|
163
|
+
// Array<'Admin' | 'Instructor' | 'Learner'> | Filter users by role (can specify multiple) (optional)
|
|
164
|
+
roles: ...,
|
|
165
|
+
// string | Search users by first name, last name, or email (optional)
|
|
166
|
+
search: Josh,
|
|
167
|
+
// number (optional)
|
|
168
|
+
page: 56,
|
|
169
|
+
// number (optional)
|
|
170
|
+
pageSize: 56,
|
|
171
|
+
} satisfies GetPortalUsersRequest;
|
|
172
|
+
|
|
173
|
+
try {
|
|
174
|
+
const data = await api.getPortalUsers(body);
|
|
175
|
+
console.log(data);
|
|
176
|
+
} catch (error) {
|
|
177
|
+
console.error(error);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Run the test
|
|
182
|
+
example().catch(console.error);
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Parameters
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
| Name | Type | Description | Notes |
|
|
189
|
+
|------------- | ------------- | ------------- | -------------|
|
|
190
|
+
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
191
|
+
| **type** | `student`, `instructor` | Filter users by type (student maps to Learner, instructor maps to Instructor) | [Optional] [Defaults to `undefined`] [Enum: student, instructor] |
|
|
192
|
+
| **roles** | `Admin`, `Instructor`, `Learner` | Filter users by role (can specify multiple) | [Optional] [Enum: Admin, Instructor, Learner] |
|
|
193
|
+
| **search** | `string` | Search users by first name, last name, or email | [Optional] [Defaults to `undefined`] |
|
|
194
|
+
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
195
|
+
| **pageSize** | `number` | | [Optional] [Defaults to `20`] |
|
|
196
|
+
|
|
197
|
+
### Return type
|
|
198
|
+
|
|
199
|
+
[**GetPortalUserList**](GetPortalUserList.md)
|
|
200
|
+
|
|
201
|
+
### Authorization
|
|
202
|
+
|
|
203
|
+
No authorization required
|
|
204
|
+
|
|
205
|
+
### HTTP request headers
|
|
206
|
+
|
|
207
|
+
- **Content-Type**: Not defined
|
|
208
|
+
- **Accept**: `application/json`
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### HTTP response details
|
|
212
|
+
| Status code | Description | Response headers |
|
|
213
|
+
|-------------|-------------|------------------|
|
|
214
|
+
| **200** | get portal users response OK | - |
|
|
215
|
+
| **400** | get portal users response error | - |
|
|
216
|
+
| **404** | portal not found | - |
|
|
217
|
+
|
|
218
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
## inviteUserToPortal
|
|
222
|
+
|
|
223
|
+
> inviteUserToPortal(portalId, postPortalInvite)
|
|
224
|
+
|
|
225
|
+
Invite a new user to a portal
|
|
226
|
+
|
|
227
|
+
### Example
|
|
228
|
+
|
|
229
|
+
```ts
|
|
230
|
+
import {
|
|
231
|
+
Configuration,
|
|
232
|
+
PortalApi,
|
|
233
|
+
} from '@easyedu/js-lsm-api';
|
|
234
|
+
import type { InviteUserToPortalRequest } from '@easyedu/js-lsm-api';
|
|
235
|
+
|
|
236
|
+
async function example() {
|
|
237
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
238
|
+
const api = new PortalApi();
|
|
239
|
+
|
|
240
|
+
const body = {
|
|
241
|
+
// string
|
|
242
|
+
portalId: portalId_example,
|
|
243
|
+
// PostPortalInvite | User object that needs to be added
|
|
244
|
+
postPortalInvite: ...,
|
|
245
|
+
} satisfies InviteUserToPortalRequest;
|
|
246
|
+
|
|
247
|
+
try {
|
|
248
|
+
const data = await api.inviteUserToPortal(body);
|
|
249
|
+
console.log(data);
|
|
250
|
+
} catch (error) {
|
|
251
|
+
console.error(error);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// Run the test
|
|
256
|
+
example().catch(console.error);
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Parameters
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
| Name | Type | Description | Notes |
|
|
263
|
+
|------------- | ------------- | ------------- | -------------|
|
|
264
|
+
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
265
|
+
| **postPortalInvite** | [PostPortalInvite](PostPortalInvite.md) | User object that needs to be added | |
|
|
266
|
+
|
|
267
|
+
### Return type
|
|
268
|
+
|
|
269
|
+
`void` (Empty response body)
|
|
270
|
+
|
|
271
|
+
### Authorization
|
|
272
|
+
|
|
273
|
+
No authorization required
|
|
274
|
+
|
|
275
|
+
### HTTP request headers
|
|
276
|
+
|
|
277
|
+
- **Content-Type**: `application/json`
|
|
278
|
+
- **Accept**: Not defined
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
### HTTP response details
|
|
282
|
+
| Status code | Description | Response headers |
|
|
283
|
+
|-------------|-------------|------------------|
|
|
284
|
+
| **200** | invite user to portal response OK | - |
|
|
285
|
+
| **400** | invite user to portal response error | - |
|
|
286
|
+
|
|
287
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
## postPortal
|
|
291
|
+
|
|
292
|
+
> GetPortal postPortal(postPortal)
|
|
293
|
+
|
|
294
|
+
Create a new portal as a child of the current selected portal
|
|
295
|
+
|
|
296
|
+
### Example
|
|
297
|
+
|
|
298
|
+
```ts
|
|
299
|
+
import {
|
|
300
|
+
Configuration,
|
|
301
|
+
PortalApi,
|
|
302
|
+
} from '@easyedu/js-lsm-api';
|
|
303
|
+
import type { PostPortalRequest } from '@easyedu/js-lsm-api';
|
|
304
|
+
|
|
305
|
+
async function example() {
|
|
306
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
307
|
+
const api = new PortalApi();
|
|
308
|
+
|
|
309
|
+
const body = {
|
|
310
|
+
// PostPortal | Portal object that needs to be created
|
|
311
|
+
postPortal: ...,
|
|
312
|
+
} satisfies PostPortalRequest;
|
|
313
|
+
|
|
314
|
+
try {
|
|
315
|
+
const data = await api.postPortal(body);
|
|
316
|
+
console.log(data);
|
|
317
|
+
} catch (error) {
|
|
318
|
+
console.error(error);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// Run the test
|
|
323
|
+
example().catch(console.error);
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Parameters
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
| Name | Type | Description | Notes |
|
|
330
|
+
|------------- | ------------- | ------------- | -------------|
|
|
331
|
+
| **postPortal** | [PostPortal](PostPortal.md) | Portal object that needs to be created | |
|
|
332
|
+
|
|
333
|
+
### Return type
|
|
334
|
+
|
|
335
|
+
[**GetPortal**](GetPortal.md)
|
|
336
|
+
|
|
337
|
+
### Authorization
|
|
338
|
+
|
|
339
|
+
No authorization required
|
|
340
|
+
|
|
341
|
+
### HTTP request headers
|
|
342
|
+
|
|
343
|
+
- **Content-Type**: `application/json`
|
|
344
|
+
- **Accept**: `application/json`
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
### HTTP response details
|
|
348
|
+
| Status code | Description | Response headers |
|
|
349
|
+
|-------------|-------------|------------------|
|
|
350
|
+
| **200** | post portal response OK | - |
|
|
351
|
+
| **400** | post portal response error | - |
|
|
352
|
+
|
|
353
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
## putPortalBranding
|
|
357
|
+
|
|
358
|
+
> GetPortal putPortalBranding(portalId, putPortalBranding)
|
|
359
|
+
|
|
360
|
+
Update portal branding (name, background color, text color)
|
|
361
|
+
|
|
362
|
+
### Example
|
|
363
|
+
|
|
364
|
+
```ts
|
|
365
|
+
import {
|
|
366
|
+
Configuration,
|
|
367
|
+
PortalApi,
|
|
368
|
+
} from '@easyedu/js-lsm-api';
|
|
369
|
+
import type { PutPortalBrandingRequest } from '@easyedu/js-lsm-api';
|
|
370
|
+
|
|
371
|
+
async function example() {
|
|
372
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
373
|
+
const api = new PortalApi();
|
|
374
|
+
|
|
375
|
+
const body = {
|
|
376
|
+
// string
|
|
377
|
+
portalId: portalId_example,
|
|
378
|
+
// PutPortalBranding | Portal branding fields to update
|
|
379
|
+
putPortalBranding: ...,
|
|
380
|
+
} satisfies PutPortalBrandingRequest;
|
|
381
|
+
|
|
382
|
+
try {
|
|
383
|
+
const data = await api.putPortalBranding(body);
|
|
384
|
+
console.log(data);
|
|
385
|
+
} catch (error) {
|
|
386
|
+
console.error(error);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// Run the test
|
|
391
|
+
example().catch(console.error);
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
### Parameters
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
| Name | Type | Description | Notes |
|
|
398
|
+
|------------- | ------------- | ------------- | -------------|
|
|
399
|
+
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
400
|
+
| **putPortalBranding** | [PutPortalBranding](PutPortalBranding.md) | Portal branding fields to update | |
|
|
401
|
+
|
|
402
|
+
### Return type
|
|
403
|
+
|
|
404
|
+
[**GetPortal**](GetPortal.md)
|
|
405
|
+
|
|
406
|
+
### Authorization
|
|
407
|
+
|
|
408
|
+
No authorization required
|
|
409
|
+
|
|
410
|
+
### HTTP request headers
|
|
411
|
+
|
|
412
|
+
- **Content-Type**: `application/json`
|
|
413
|
+
- **Accept**: `application/json`
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
### HTTP response details
|
|
417
|
+
| Status code | Description | Response headers |
|
|
418
|
+
|-------------|-------------|------------------|
|
|
419
|
+
| **200** | put portal branding response OK | - |
|
|
420
|
+
| **400** | put portal branding response error | - |
|
|
421
|
+
| **404** | portal not found | - |
|
|
422
|
+
|
|
423
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
## updateSelectedPortal
|
|
427
|
+
|
|
428
|
+
> updateSelectedPortal(portalId, selectedUserRole)
|
|
429
|
+
|
|
430
|
+
Update the users current selected portal
|
|
431
|
+
|
|
432
|
+
### Example
|
|
433
|
+
|
|
434
|
+
```ts
|
|
435
|
+
import {
|
|
436
|
+
Configuration,
|
|
437
|
+
PortalApi,
|
|
438
|
+
} from '@easyedu/js-lsm-api';
|
|
439
|
+
import type { UpdateSelectedPortalRequest } from '@easyedu/js-lsm-api';
|
|
440
|
+
|
|
441
|
+
async function example() {
|
|
442
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
443
|
+
const api = new PortalApi();
|
|
444
|
+
|
|
445
|
+
const body = {
|
|
446
|
+
// string
|
|
447
|
+
portalId: portalId_example,
|
|
448
|
+
// string (optional)
|
|
449
|
+
selectedUserRole: selectedUserRole_example,
|
|
450
|
+
} satisfies UpdateSelectedPortalRequest;
|
|
451
|
+
|
|
452
|
+
try {
|
|
453
|
+
const data = await api.updateSelectedPortal(body);
|
|
454
|
+
console.log(data);
|
|
455
|
+
} catch (error) {
|
|
456
|
+
console.error(error);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// Run the test
|
|
461
|
+
example().catch(console.error);
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
### Parameters
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
| Name | Type | Description | Notes |
|
|
468
|
+
|------------- | ------------- | ------------- | -------------|
|
|
469
|
+
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
470
|
+
| **selectedUserRole** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
471
|
+
|
|
472
|
+
### Return type
|
|
473
|
+
|
|
474
|
+
`void` (Empty response body)
|
|
475
|
+
|
|
476
|
+
### Authorization
|
|
477
|
+
|
|
478
|
+
No authorization required
|
|
479
|
+
|
|
480
|
+
### HTTP request headers
|
|
481
|
+
|
|
482
|
+
- **Content-Type**: Not defined
|
|
483
|
+
- **Accept**: Not defined
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
### HTTP response details
|
|
487
|
+
| Status code | Description | Response headers |
|
|
488
|
+
|-------------|-------------|------------------|
|
|
489
|
+
| **200** | update selected portal response OK | - |
|
|
490
|
+
| **400** | update selected portal response error | - |
|
|
491
|
+
|
|
492
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
493
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PostContentQuiz
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`description` | string
|
|
11
|
+
`questionSelection` | [PostContentQuizQuestionSelection](PostContentQuizQuestionSelection.md)
|
|
12
|
+
`settings` | [PostContentQuizSettings](PostContentQuizSettings.md)
|
|
13
|
+
`assignment` | [PostContentQuizAssignment](PostContentQuizAssignment.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PostContentQuiz } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"name": null,
|
|
23
|
+
"description": null,
|
|
24
|
+
"questionSelection": null,
|
|
25
|
+
"settings": null,
|
|
26
|
+
"assignment": null,
|
|
27
|
+
} satisfies PostContentQuiz
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostContentQuiz
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# PostContentQuizAssignment
|
|
3
|
+
|
|
4
|
+
Assignment settings for the quiz
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`dueDate` | Date
|
|
11
|
+
`availableFrom` | Date
|
|
12
|
+
`availableUntil` | Date
|
|
13
|
+
`assignedUsers` | Array<string>
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PostContentQuizAssignment } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"dueDate": null,
|
|
23
|
+
"availableFrom": null,
|
|
24
|
+
"availableUntil": null,
|
|
25
|
+
"assignedUsers": null,
|
|
26
|
+
} satisfies PostContentQuizAssignment
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostContentQuizAssignment
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|