@easyedu/js-lsm-api 1.29.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +211 -1
- 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/GetContentSessionDetail.d.ts +4 -4
- package/dist/esm/models/GetContentSessionDetail.js +3 -3
- package/dist/esm/models/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
- package/dist/esm/models/GetContentSessionDetailScormSessionDataInner.js +47 -0
- package/dist/esm/models/GetContentSessionListItem.d.ts +3 -3
- package/dist/esm/models/GetContentSessionListItem.js +3 -3
- package/dist/esm/models/GetContentSessionListItemScormSessionData.d.ts +32 -0
- package/dist/esm/models/{GetContentSessionDetailScormSessionData.js → GetContentSessionListItemScormSessionData.js} +8 -8
- 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 +8 -1
- package/dist/esm/models/index.js +8 -1
- 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/GetContentSessionDetail.d.ts +4 -4
- package/dist/models/GetContentSessionDetail.js +3 -3
- package/dist/models/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
- package/dist/models/GetContentSessionDetailScormSessionDataInner.js +54 -0
- package/dist/models/GetContentSessionListItem.d.ts +3 -3
- package/dist/models/GetContentSessionListItem.js +3 -3
- package/dist/models/GetContentSessionListItemScormSessionData.d.ts +32 -0
- package/dist/models/GetContentSessionListItemScormSessionData.js +50 -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 +8 -1
- package/dist/models/index.js +8 -1
- 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/GetContentSessionDetail.ts +12 -12
- package/src/models/GetContentSessionDetailScormSessionDataInner.ts +75 -0
- package/src/models/GetContentSessionListItem.ts +11 -11
- package/src/models/GetContentSessionListItemScormSessionData.ts +66 -0
- 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 +8 -1
- package/src/runtime.ts +5 -4
- package/dist/esm/models/GetContentSessionDetailScormSessionData.d.ts +0 -32
- package/dist/models/GetContentSessionDetailScormSessionData.d.ts +0 -32
- package/dist/models/GetContentSessionDetailScormSessionData.js +0 -50
- package/src/models/GetContentSessionDetailScormSessionData.ts +0 -66
|
@@ -45,8 +45,13 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
45
45
|
}
|
|
46
46
|
const queryParameters = {};
|
|
47
47
|
const headerParameters = {};
|
|
48
|
+
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/grades/{studentId}`;
|
|
49
|
+
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
50
|
+
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
51
|
+
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
52
|
+
urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
|
|
48
53
|
const response = yield this.request({
|
|
49
|
-
path:
|
|
54
|
+
path: urlPath,
|
|
50
55
|
method: 'GET',
|
|
51
56
|
headers: headerParameters,
|
|
52
57
|
query: queryParameters,
|
|
@@ -88,8 +93,12 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
88
93
|
queryParameters['search'] = requestParameters['search'];
|
|
89
94
|
}
|
|
90
95
|
const headerParameters = {};
|
|
96
|
+
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/grades`;
|
|
97
|
+
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
98
|
+
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
99
|
+
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
91
100
|
const response = yield this.request({
|
|
92
|
-
path:
|
|
101
|
+
path: urlPath,
|
|
93
102
|
method: 'GET',
|
|
94
103
|
headers: headerParameters,
|
|
95
104
|
query: queryParameters,
|
|
@@ -122,8 +131,12 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
122
131
|
}
|
|
123
132
|
const queryParameters = {};
|
|
124
133
|
const headerParameters = {};
|
|
134
|
+
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/instructor/basic`;
|
|
135
|
+
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
136
|
+
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
137
|
+
urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
|
|
125
138
|
const response = yield this.request({
|
|
126
|
-
path:
|
|
139
|
+
path: urlPath,
|
|
127
140
|
method: 'GET',
|
|
128
141
|
headers: headerParameters,
|
|
129
142
|
query: queryParameters,
|
|
@@ -150,8 +163,10 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
150
163
|
}
|
|
151
164
|
const queryParameters = {};
|
|
152
165
|
const headerParameters = {};
|
|
166
|
+
let urlPath = `/courses/{courseId}/reporting/instructor/basic`;
|
|
167
|
+
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
153
168
|
const response = yield this.request({
|
|
154
|
-
path:
|
|
169
|
+
path: urlPath,
|
|
155
170
|
method: 'GET',
|
|
156
171
|
headers: headerParameters,
|
|
157
172
|
query: queryParameters,
|
|
@@ -181,8 +196,11 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
181
196
|
}
|
|
182
197
|
const queryParameters = {};
|
|
183
198
|
const headerParameters = {};
|
|
199
|
+
let urlPath = `/courses/{courseId}/reporting/students/{studentId}`;
|
|
200
|
+
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
201
|
+
urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
|
|
184
202
|
const response = yield this.request({
|
|
185
|
-
path:
|
|
203
|
+
path: urlPath,
|
|
186
204
|
method: 'GET',
|
|
187
205
|
headers: headerParameters,
|
|
188
206
|
query: queryParameters,
|
|
@@ -212,8 +230,11 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
212
230
|
}
|
|
213
231
|
const queryParameters = {};
|
|
214
232
|
const headerParameters = {};
|
|
233
|
+
let urlPath = `/courses/{courseId}/modules/{moduleId}/reporting/instructor/basic`;
|
|
234
|
+
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
235
|
+
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
215
236
|
const response = yield this.request({
|
|
216
|
-
path:
|
|
237
|
+
path: urlPath,
|
|
217
238
|
method: 'GET',
|
|
218
239
|
headers: headerParameters,
|
|
219
240
|
query: queryParameters,
|
|
@@ -246,8 +267,12 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
246
267
|
}
|
|
247
268
|
const queryParameters = {};
|
|
248
269
|
const headerParameters = {};
|
|
270
|
+
let urlPath = `/courses/{courseId}/modules/{moduleId}/reporting/students/{studentId}`;
|
|
271
|
+
urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
|
|
272
|
+
urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
|
|
273
|
+
urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
|
|
249
274
|
const response = yield this.request({
|
|
250
|
-
path:
|
|
275
|
+
path: urlPath,
|
|
251
276
|
method: 'GET',
|
|
252
277
|
headers: headerParameters,
|
|
253
278
|
query: queryParameters,
|
|
@@ -274,8 +299,10 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
274
299
|
}
|
|
275
300
|
const queryParameters = {};
|
|
276
301
|
const headerParameters = {};
|
|
302
|
+
let urlPath = `/portals/{portalId}/reporting/basic`;
|
|
303
|
+
urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
|
|
277
304
|
const response = yield this.request({
|
|
278
|
-
path:
|
|
305
|
+
path: urlPath,
|
|
279
306
|
method: 'GET',
|
|
280
307
|
headers: headerParameters,
|
|
281
308
|
query: queryParameters,
|
|
@@ -305,8 +332,11 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
305
332
|
}
|
|
306
333
|
const queryParameters = {};
|
|
307
334
|
const headerParameters = {};
|
|
335
|
+
let urlPath = `/portals/{portalId}/reporting/students/{studentId}`;
|
|
336
|
+
urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
|
|
337
|
+
urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
|
|
308
338
|
const response = yield this.request({
|
|
309
|
-
path:
|
|
339
|
+
path: urlPath,
|
|
310
340
|
method: 'GET',
|
|
311
341
|
headers: headerParameters,
|
|
312
342
|
query: queryParameters,
|
package/dist/esm/apis/UserApi.js
CHANGED
|
@@ -33,8 +33,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const queryParameters = {};
|
|
35
35
|
const headerParameters = {};
|
|
36
|
+
let urlPath = `/auth/check`;
|
|
36
37
|
const response = yield this.request({
|
|
37
|
-
path:
|
|
38
|
+
path: urlPath,
|
|
38
39
|
method: 'GET',
|
|
39
40
|
headers: headerParameters,
|
|
40
41
|
query: queryParameters,
|
|
@@ -60,8 +61,10 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
60
61
|
}
|
|
61
62
|
const queryParameters = {};
|
|
62
63
|
const headerParameters = {};
|
|
64
|
+
let urlPath = `/users/{userId}`;
|
|
65
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
63
66
|
const response = yield this.request({
|
|
64
|
-
path:
|
|
67
|
+
path: urlPath,
|
|
65
68
|
method: 'GET',
|
|
66
69
|
headers: headerParameters,
|
|
67
70
|
query: queryParameters,
|
|
@@ -89,8 +92,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
89
92
|
const queryParameters = {};
|
|
90
93
|
const headerParameters = {};
|
|
91
94
|
headerParameters['Content-Type'] = 'application/json';
|
|
95
|
+
let urlPath = `/auth/login`;
|
|
92
96
|
const response = yield this.request({
|
|
93
|
-
path:
|
|
97
|
+
path: urlPath,
|
|
94
98
|
method: 'POST',
|
|
95
99
|
headers: headerParameters,
|
|
96
100
|
query: queryParameters,
|
|
@@ -115,8 +119,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
115
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
120
|
const queryParameters = {};
|
|
117
121
|
const headerParameters = {};
|
|
122
|
+
let urlPath = `/auth/logout`;
|
|
118
123
|
const response = yield this.request({
|
|
119
|
-
path:
|
|
124
|
+
path: urlPath,
|
|
120
125
|
method: 'POST',
|
|
121
126
|
headers: headerParameters,
|
|
122
127
|
query: queryParameters,
|
|
@@ -146,8 +151,10 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
146
151
|
const queryParameters = {};
|
|
147
152
|
const headerParameters = {};
|
|
148
153
|
headerParameters['Content-Type'] = 'application/json';
|
|
154
|
+
let urlPath = `/users/{userId}`;
|
|
155
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
149
156
|
const response = yield this.request({
|
|
150
|
-
path:
|
|
157
|
+
path: urlPath,
|
|
151
158
|
method: 'PUT',
|
|
152
159
|
headers: headerParameters,
|
|
153
160
|
query: queryParameters,
|
|
@@ -176,8 +183,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
176
183
|
const queryParameters = {};
|
|
177
184
|
const headerParameters = {};
|
|
178
185
|
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
+
let urlPath = `/auth/reset-password`;
|
|
179
187
|
const response = yield this.request({
|
|
180
|
-
path:
|
|
188
|
+
path: urlPath,
|
|
181
189
|
method: 'POST',
|
|
182
190
|
headers: headerParameters,
|
|
183
191
|
query: queryParameters,
|
|
@@ -205,8 +213,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
205
213
|
const queryParameters = {};
|
|
206
214
|
const headerParameters = {};
|
|
207
215
|
headerParameters['Content-Type'] = 'application/json';
|
|
216
|
+
let urlPath = `/auth/send-reset-password`;
|
|
208
217
|
const response = yield this.request({
|
|
209
|
-
path:
|
|
218
|
+
path: urlPath,
|
|
210
219
|
method: 'POST',
|
|
211
220
|
headers: headerParameters,
|
|
212
221
|
query: queryParameters,
|
|
@@ -21,6 +21,9 @@ export function GetContentContentDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
if (json == null) {
|
|
22
22
|
return json;
|
|
23
23
|
}
|
|
24
|
+
if (typeof json !== 'object') {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
24
27
|
if (instanceOfMediaContent(json)) {
|
|
25
28
|
return MediaContentFromJSONTyped(json, true);
|
|
26
29
|
}
|
|
@@ -39,6 +42,9 @@ export function GetContentContentDataToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
39
42
|
if (value == null) {
|
|
40
43
|
return value;
|
|
41
44
|
}
|
|
45
|
+
if (typeof value !== 'object') {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
42
48
|
if (instanceOfMediaContent(value)) {
|
|
43
49
|
return MediaContentToJSON(value);
|
|
44
50
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { GetContentSessionDetailScormSessionDataInner } from './GetContentSessionDetailScormSessionDataInner';
|
|
12
13
|
import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
|
|
13
|
-
import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
|
|
14
14
|
/**
|
|
15
15
|
* Detailed content session information
|
|
16
16
|
* @export
|
|
@@ -66,11 +66,11 @@ export interface GetContentSessionDetail {
|
|
|
66
66
|
*/
|
|
67
67
|
userData: GetContentSessionDetailUserData;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {
|
|
69
|
+
* SCORM session data if this is a SCORM session, null otherwise
|
|
70
|
+
* @type {Array<GetContentSessionDetailScormSessionDataInner>}
|
|
71
71
|
* @memberof GetContentSessionDetail
|
|
72
72
|
*/
|
|
73
|
-
scormSessionData:
|
|
73
|
+
scormSessionData: Array<GetContentSessionDetailScormSessionDataInner> | null;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @export
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { GetContentSessionDetailScormSessionDataInnerFromJSON, GetContentSessionDetailScormSessionDataInnerToJSON, } from './GetContentSessionDetailScormSessionDataInner';
|
|
14
15
|
import { GetContentSessionDetailUserDataFromJSON, GetContentSessionDetailUserDataToJSON, } from './GetContentSessionDetailUserData';
|
|
15
|
-
import { GetContentSessionDetailScormSessionDataFromJSON, GetContentSessionDetailScormSessionDataToJSON, } from './GetContentSessionDetailScormSessionData';
|
|
16
16
|
/**
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
@@ -72,7 +72,7 @@ export function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator)
|
|
|
72
72
|
'gradeStatus': json['grade_status'],
|
|
73
73
|
'durationInSeconds': json['duration_in_seconds'],
|
|
74
74
|
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
75
|
-
'scormSessionData':
|
|
75
|
+
'scormSessionData': (json['scorm_session_data'] == null ? null : json['scorm_session_data'].map(GetContentSessionDetailScormSessionDataInnerFromJSON)),
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
export function GetContentSessionDetailToJSON(json) {
|
|
@@ -91,6 +91,6 @@ export function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator =
|
|
|
91
91
|
'grade_status': value['gradeStatus'],
|
|
92
92
|
'duration_in_seconds': value['durationInSeconds'],
|
|
93
93
|
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
94
|
-
'scorm_session_data':
|
|
94
|
+
'scorm_session_data': (value['scormSessionData'] == null ? null : value['scormSessionData'].map(GetContentSessionDetailScormSessionDataInnerToJSON)),
|
|
95
95
|
};
|
|
96
96
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentSessionDetailScormSessionDataInner
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentSessionDetailScormSessionDataInner {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the SCORM session
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentSessionDetailScormSessionDataInner
|
|
22
|
+
*/
|
|
23
|
+
scormSessionId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the SCORM activity
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContentSessionDetailScormSessionDataInner
|
|
28
|
+
*/
|
|
29
|
+
activityName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGetContentSessionDetailScormSessionDataInner(value: object): value is GetContentSessionDetailScormSessionDataInner;
|
|
35
|
+
export declare function GetContentSessionDetailScormSessionDataInnerFromJSON(json: any): GetContentSessionDetailScormSessionDataInner;
|
|
36
|
+
export declare function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionDataInner;
|
|
37
|
+
export declare function GetContentSessionDetailScormSessionDataInnerToJSON(json: any): GetContentSessionDetailScormSessionDataInner;
|
|
38
|
+
export declare function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value?: GetContentSessionDetailScormSessionDataInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentSessionDetailScormSessionDataInner(value) {
|
|
18
|
+
if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('activityName' in value) || value['activityName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function GetContentSessionDetailScormSessionDataInnerFromJSON(json) {
|
|
25
|
+
return GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'scormSessionId': json['scorm_session_id'],
|
|
33
|
+
'activityName': json['activity_name'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function GetContentSessionDetailScormSessionDataInnerToJSON(json) {
|
|
37
|
+
return GetContentSessionDetailScormSessionDataInnerToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'scorm_session_id': value['scormSessionId'],
|
|
45
|
+
'activity_name': value['activityName'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { GetContentSessionListItemScormSessionData } from './GetContentSessionListItemScormSessionData';
|
|
12
13
|
import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
|
|
13
|
-
import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
|
|
14
14
|
/**
|
|
15
15
|
* A content session list item
|
|
16
16
|
* @export
|
|
@@ -49,10 +49,10 @@ export interface GetContentSessionListItem {
|
|
|
49
49
|
userData: GetContentSessionDetailUserData;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {GetContentSessionListItemScormSessionData}
|
|
53
53
|
* @memberof GetContentSessionListItem
|
|
54
54
|
*/
|
|
55
|
-
scormSessionData:
|
|
55
|
+
scormSessionData: GetContentSessionListItemScormSessionData | null;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Check if a given object implements the GetContentSessionListItem interface.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { GetContentSessionListItemScormSessionDataFromJSON, GetContentSessionListItemScormSessionDataToJSON, } from './GetContentSessionListItemScormSessionData';
|
|
14
15
|
import { GetContentSessionDetailUserDataFromJSON, GetContentSessionDetailUserDataToJSON, } from './GetContentSessionDetailUserData';
|
|
15
|
-
import { GetContentSessionDetailScormSessionDataFromJSON, GetContentSessionDetailScormSessionDataToJSON, } from './GetContentSessionDetailScormSessionData';
|
|
16
16
|
/**
|
|
17
17
|
* Check if a given object implements the GetContentSessionListItem interface.
|
|
18
18
|
*/
|
|
@@ -44,7 +44,7 @@ export function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator
|
|
|
44
44
|
'updatedAt': json['updated_at'],
|
|
45
45
|
'contentId': json['content_id'],
|
|
46
46
|
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
47
|
-
'scormSessionData':
|
|
47
|
+
'scormSessionData': GetContentSessionListItemScormSessionDataFromJSON(json['scorm_session_data']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
export function GetContentSessionListItemToJSON(json) {
|
|
@@ -60,6 +60,6 @@ export function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator
|
|
|
60
60
|
'updated_at': value['updatedAt'],
|
|
61
61
|
'content_id': value['contentId'],
|
|
62
62
|
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
63
|
-
'scorm_session_data':
|
|
63
|
+
'scorm_session_data': GetContentSessionListItemScormSessionDataToJSON(value['scormSessionData']),
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* SCORM session data if this is a SCORM session, null otherwise
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentSessionListItemScormSessionData
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentSessionListItemScormSessionData {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the SCORM session
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentSessionListItemScormSessionData
|
|
22
|
+
*/
|
|
23
|
+
scormSessionId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetContentSessionListItemScormSessionData interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetContentSessionListItemScormSessionData(value: object): value is GetContentSessionListItemScormSessionData;
|
|
29
|
+
export declare function GetContentSessionListItemScormSessionDataFromJSON(json: any): GetContentSessionListItemScormSessionData;
|
|
30
|
+
export declare function GetContentSessionListItemScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItemScormSessionData;
|
|
31
|
+
export declare function GetContentSessionListItemScormSessionDataToJSON(json: any): GetContentSessionListItemScormSessionData;
|
|
32
|
+
export declare function GetContentSessionListItemScormSessionDataToJSONTyped(value?: GetContentSessionListItemScormSessionData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the GetContentSessionListItemScormSessionData interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfGetContentSessionListItemScormSessionData(value) {
|
|
18
18
|
if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
|
-
export function
|
|
23
|
-
return
|
|
22
|
+
export function GetContentSessionListItemScormSessionDataFromJSON(json) {
|
|
23
|
+
return GetContentSessionListItemScormSessionDataFromJSONTyped(json, false);
|
|
24
24
|
}
|
|
25
|
-
export function
|
|
25
|
+
export function GetContentSessionListItemScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
26
|
if (json == null) {
|
|
27
27
|
return json;
|
|
28
28
|
}
|
|
@@ -30,10 +30,10 @@ export function GetContentSessionDetailScormSessionDataFromJSONTyped(json, ignor
|
|
|
30
30
|
'scormSessionId': json['scorm_session_id'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export function
|
|
34
|
-
return
|
|
33
|
+
export function GetContentSessionListItemScormSessionDataToJSON(json) {
|
|
34
|
+
return GetContentSessionListItemScormSessionDataToJSONTyped(json, false);
|
|
35
35
|
}
|
|
36
|
-
export function
|
|
36
|
+
export function GetContentSessionListItemScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
37
|
if (value == null) {
|
|
38
38
|
return value;
|
|
39
39
|
}
|
|
@@ -63,8 +63,8 @@ export function GetContentVersionToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
63
63
|
'content_id': value['contentId'],
|
|
64
64
|
'version': value['version'],
|
|
65
65
|
'is_active': value['isActive'],
|
|
66
|
-
'created_at':
|
|
67
|
-
'updated_at':
|
|
66
|
+
'created_at': value['createdAt'].toISOString(),
|
|
67
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
68
68
|
'sandbox': GetContentVersionSandboxToJSON(value['sandbox']),
|
|
69
69
|
'scorm_data': GetContentVersionScormDataToJSON(value['scormData']),
|
|
70
70
|
};
|
|
@@ -53,7 +53,7 @@ export function GetContentVersionListItemsInnerToJSONTyped(value, ignoreDiscrimi
|
|
|
53
53
|
'id': value['id'],
|
|
54
54
|
'version': value['version'],
|
|
55
55
|
'is_active': value['isActive'],
|
|
56
|
-
'created_at':
|
|
57
|
-
'updated_at':
|
|
56
|
+
'created_at': value['createdAt'].toISOString(),
|
|
57
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -67,6 +67,6 @@ export function GetManualQuestionSelectionItemToJSONTyped(value, ignoreDiscrimin
|
|
|
67
67
|
'points': value['points'],
|
|
68
68
|
'version_locked': value['versionLocked'],
|
|
69
69
|
'question_details': GetQuizQuestionsItemsInnerQuestionDetailsToJSON(value['questionDetails']),
|
|
70
|
-
'created_at':
|
|
70
|
+
'created_at': value['createdAt'].toISOString(),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -65,7 +65,7 @@ export function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = f
|
|
|
65
65
|
'difficulty_level': value['difficultyLevel'],
|
|
66
66
|
'tags': value['tags'],
|
|
67
67
|
'search': value['search'],
|
|
68
|
-
'created_after': value['createdAfter'] == null ?
|
|
69
|
-
'created_before': value['createdBefore'] == null ?
|
|
68
|
+
'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0, 10),
|
|
69
|
+
'created_before': value['createdBefore'] == null ? value['createdBefore'] : value['createdBefore'].toISOString().substring(0, 10),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
@@ -93,7 +93,7 @@ export function GetQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
93
93
|
'require_all_questions': value['requireAllQuestions'],
|
|
94
94
|
'settings': value['settings'],
|
|
95
95
|
'statistics': GetQuizStatisticsToJSON(value['statistics']),
|
|
96
|
-
'created_at':
|
|
97
|
-
'updated_at':
|
|
96
|
+
'created_at': value['createdAt'].toISOString(),
|
|
97
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
98
98
|
};
|
|
99
99
|
}
|
|
@@ -69,8 +69,8 @@ export function GetQuizAttemptAnalyticsBasicInfoToJSONTyped(value, ignoreDiscrim
|
|
|
69
69
|
'quiz_name': value['quizName'],
|
|
70
70
|
'attempt_number': value['attemptNumber'],
|
|
71
71
|
'status': value['status'],
|
|
72
|
-
'started_at':
|
|
73
|
-
'completed_at': value['completedAt'] == null ?
|
|
72
|
+
'started_at': value['startedAt'].toISOString(),
|
|
73
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
74
74
|
'time_spent_seconds': value['timeSpentSeconds'],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
@@ -96,6 +96,6 @@ export function GetQuizAttemptAnalyticsQuestionAnalysisInnerToJSONTyped(value, i
|
|
|
96
96
|
'user_answer': GetQuizAttemptAnalyticsQuestionAnalysisInnerUserAnswerToJSON(value['userAnswer']),
|
|
97
97
|
'correct_answer': GetQuizAttemptAnalyticsQuestionAnalysisInnerCorrectAnswerToJSON(value['correctAnswer']),
|
|
98
98
|
'time_spent_seconds': value['timeSpentSeconds'],
|
|
99
|
-
'answered_at': value['answeredAt'] == null ?
|
|
99
|
+
'answered_at': value['answeredAt'] == null ? value['answeredAt'] : value['answeredAt'].toISOString(),
|
|
100
100
|
};
|
|
101
101
|
}
|
|
@@ -87,9 +87,9 @@ export function GetQuizAttemptAttemptToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
87
87
|
'content_id': value['contentId'],
|
|
88
88
|
'attempt_number': value['attemptNumber'],
|
|
89
89
|
'status': value['status'],
|
|
90
|
-
'started_at':
|
|
91
|
-
'completed_at': value['completedAt'] == null ?
|
|
92
|
-
'time_limit_at': value['timeLimitAt'] == null ?
|
|
90
|
+
'started_at': value['startedAt'].toISOString(),
|
|
91
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
92
|
+
'time_limit_at': value['timeLimitAt'] == null ? value['timeLimitAt'] : value['timeLimitAt'].toISOString(),
|
|
93
93
|
'total_questions': value['totalQuestions'],
|
|
94
94
|
'questions_answered': value['questionsAnswered'],
|
|
95
95
|
'total_points': value['totalPoints'],
|
|
@@ -96,8 +96,8 @@ export function GetQuizAttemptListAllOfAttemptsToJSONTyped(value, ignoreDiscrimi
|
|
|
96
96
|
'content_name': value['contentName'],
|
|
97
97
|
'attempt_number': value['attemptNumber'],
|
|
98
98
|
'status': value['status'],
|
|
99
|
-
'started_at':
|
|
100
|
-
'completed_at': value['completedAt'] == null ?
|
|
99
|
+
'started_at': value['startedAt'].toISOString(),
|
|
100
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
101
101
|
'total_questions': value['totalQuestions'],
|
|
102
102
|
'questions_answered': value['questionsAnswered'],
|
|
103
103
|
'correct_answers': value['correctAnswers'],
|
|
@@ -37,7 +37,7 @@ export function GetQuizAttemptListAllOfFiltersDateRangeToJSONTyped(value, ignore
|
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'start_date': value['startDate'] == null ?
|
|
41
|
-
'end_date': value['endDate'] == null ?
|
|
40
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
41
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -78,6 +78,6 @@ export function GetQuizAttemptQuestionsInnerToJSONTyped(value, ignoreDiscriminat
|
|
|
78
78
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
79
79
|
'is_answered': value['isAnswered'],
|
|
80
80
|
'current_answer': GetQuizAttemptQuestionsInnerCurrentAnswerToJSON(value['currentAnswer']),
|
|
81
|
-
'answered_at': value['answeredAt'] == null ?
|
|
81
|
+
'answered_at': value['answeredAt'] == null ? value['answeredAt'] : value['answeredAt'].toISOString(),
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -42,6 +42,6 @@ export function GetQuizAttemptQuestionsInnerCurrentAnswerToJSONTyped(value, igno
|
|
|
42
42
|
'answer_choice_id': value['answerChoiceId'],
|
|
43
43
|
'multiple_answers': value['multipleAnswers'],
|
|
44
44
|
'text_answer': value['textAnswer'],
|
|
45
|
-
'answered_at': value['answeredAt'] == null ?
|
|
45
|
+
'answered_at': value['answeredAt'] == null ? value['answeredAt'] : value['answeredAt'].toISOString(),
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -87,7 +87,7 @@ export function GetQuizCriteriaItemToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
87
87
|
'max_questions': value['maxQuestions'],
|
|
88
88
|
'priority': value['priority'],
|
|
89
89
|
'matching_questions_count': value['matchingQuestionsCount'],
|
|
90
|
-
'created_at':
|
|
91
|
-
'updated_at':
|
|
90
|
+
'created_at': value['createdAt'].toISOString(),
|
|
91
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
92
92
|
};
|
|
93
93
|
}
|