@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
|
@@ -0,0 +1,179 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PostVerifyManifestResourcesInner } from './PostVerifyManifestResourcesInner';
|
|
17
|
+
import {
|
|
18
|
+
PostVerifyManifestResourcesInnerFromJSON,
|
|
19
|
+
PostVerifyManifestResourcesInnerFromJSONTyped,
|
|
20
|
+
PostVerifyManifestResourcesInnerToJSON,
|
|
21
|
+
PostVerifyManifestResourcesInnerToJSONTyped,
|
|
22
|
+
} from './PostVerifyManifestResourcesInner';
|
|
23
|
+
import type { PostVerifyManifestItemsInner } from './PostVerifyManifestItemsInner';
|
|
24
|
+
import {
|
|
25
|
+
PostVerifyManifestItemsInnerFromJSON,
|
|
26
|
+
PostVerifyManifestItemsInnerFromJSONTyped,
|
|
27
|
+
PostVerifyManifestItemsInnerToJSON,
|
|
28
|
+
PostVerifyManifestItemsInnerToJSONTyped,
|
|
29
|
+
} from './PostVerifyManifestItemsInner';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Response from parsing and verifying a SCORM manifest
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PostVerifyManifest
|
|
35
|
+
*/
|
|
36
|
+
export interface PostVerifyManifest {
|
|
37
|
+
/**
|
|
38
|
+
* Whether the manifest parsed successfully
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof PostVerifyManifest
|
|
41
|
+
*/
|
|
42
|
+
valid: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Parse errors that prevented successful parsing
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof PostVerifyManifest
|
|
47
|
+
*/
|
|
48
|
+
errors: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Non-fatal issues or potential problems detected
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof PostVerifyManifest
|
|
53
|
+
*/
|
|
54
|
+
warnings: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Detected SCORM version (e.g., "1.2", "2004 4th Edition")
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PostVerifyManifest
|
|
59
|
+
*/
|
|
60
|
+
scormVersion?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Manifest identifier attribute
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PostVerifyManifest
|
|
65
|
+
*/
|
|
66
|
+
identifier?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Manifest version attribute
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PostVerifyManifest
|
|
71
|
+
*/
|
|
72
|
+
version?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Organization title (course title)
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof PostVerifyManifest
|
|
77
|
+
*/
|
|
78
|
+
title?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Metadata schema (e.g., "ADL SCORM")
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof PostVerifyManifest
|
|
83
|
+
*/
|
|
84
|
+
schema?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Metadata schema version
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof PostVerifyManifest
|
|
89
|
+
*/
|
|
90
|
+
schemaVersion?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Default organization identifier
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof PostVerifyManifest
|
|
95
|
+
*/
|
|
96
|
+
defaultOrganization?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* List of items (SCOs) from the organization
|
|
99
|
+
* @type {Array<PostVerifyManifestItemsInner>}
|
|
100
|
+
* @memberof PostVerifyManifest
|
|
101
|
+
*/
|
|
102
|
+
items?: Array<PostVerifyManifestItemsInner>;
|
|
103
|
+
/**
|
|
104
|
+
* List of resources from the manifest
|
|
105
|
+
* @type {Array<PostVerifyManifestResourcesInner>}
|
|
106
|
+
* @memberof PostVerifyManifest
|
|
107
|
+
*/
|
|
108
|
+
resources?: Array<PostVerifyManifestResourcesInner>;
|
|
109
|
+
/**
|
|
110
|
+
* List of SCO entry point URLs
|
|
111
|
+
* @type {Array<string>}
|
|
112
|
+
* @memberof PostVerifyManifest
|
|
113
|
+
*/
|
|
114
|
+
entryPoints?: Array<string>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the PostVerifyManifest interface.
|
|
119
|
+
*/
|
|
120
|
+
export function instanceOfPostVerifyManifest(value: object): value is PostVerifyManifest {
|
|
121
|
+
if (!('valid' in value) || value['valid'] === undefined) return false;
|
|
122
|
+
if (!('errors' in value) || value['errors'] === undefined) return false;
|
|
123
|
+
if (!('warnings' in value) || value['warnings'] === undefined) return false;
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function PostVerifyManifestFromJSON(json: any): PostVerifyManifest {
|
|
128
|
+
return PostVerifyManifestFromJSONTyped(json, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function PostVerifyManifestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifest {
|
|
132
|
+
if (json == null) {
|
|
133
|
+
return json;
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
|
|
137
|
+
'valid': json['valid'],
|
|
138
|
+
'errors': json['errors'],
|
|
139
|
+
'warnings': json['warnings'],
|
|
140
|
+
'scormVersion': json['scorm_version'] == null ? undefined : json['scorm_version'],
|
|
141
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
142
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
143
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
144
|
+
'schema': json['schema'] == null ? undefined : json['schema'],
|
|
145
|
+
'schemaVersion': json['schema_version'] == null ? undefined : json['schema_version'],
|
|
146
|
+
'defaultOrganization': json['default_organization'] == null ? undefined : json['default_organization'],
|
|
147
|
+
'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(PostVerifyManifestItemsInnerFromJSON)),
|
|
148
|
+
'resources': json['resources'] == null ? undefined : ((json['resources'] as Array<any>).map(PostVerifyManifestResourcesInnerFromJSON)),
|
|
149
|
+
'entryPoints': json['entry_points'] == null ? undefined : json['entry_points'],
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function PostVerifyManifestToJSON(json: any): PostVerifyManifest {
|
|
154
|
+
return PostVerifyManifestToJSONTyped(json, false);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function PostVerifyManifestToJSONTyped(value?: PostVerifyManifest | null, ignoreDiscriminator: boolean = false): any {
|
|
158
|
+
if (value == null) {
|
|
159
|
+
return value;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return {
|
|
163
|
+
|
|
164
|
+
'valid': value['valid'],
|
|
165
|
+
'errors': value['errors'],
|
|
166
|
+
'warnings': value['warnings'],
|
|
167
|
+
'scorm_version': value['scormVersion'],
|
|
168
|
+
'identifier': value['identifier'],
|
|
169
|
+
'version': value['version'],
|
|
170
|
+
'title': value['title'],
|
|
171
|
+
'schema': value['schema'],
|
|
172
|
+
'schema_version': value['schemaVersion'],
|
|
173
|
+
'default_organization': value['defaultOrganization'],
|
|
174
|
+
'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(PostVerifyManifestItemsInnerToJSON)),
|
|
175
|
+
'resources': value['resources'] == null ? undefined : ((value['resources'] as Array<any>).map(PostVerifyManifestResourcesInnerToJSON)),
|
|
176
|
+
'entry_points': value['entryPoints'],
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostVerifyManifestItemsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface PostVerifyManifestItemsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostVerifyManifestItemsInner
|
|
26
|
+
*/
|
|
27
|
+
identifier?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostVerifyManifestItemsInner
|
|
32
|
+
*/
|
|
33
|
+
identifierRef?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostVerifyManifestItemsInner
|
|
38
|
+
*/
|
|
39
|
+
title?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PostVerifyManifestItemsInner
|
|
44
|
+
*/
|
|
45
|
+
masteryScore?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PostVerifyManifestItemsInner
|
|
50
|
+
*/
|
|
51
|
+
maxTimeAllowed?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PostVerifyManifestItemsInner
|
|
56
|
+
*/
|
|
57
|
+
timeLimitAction?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof PostVerifyManifestItemsInner
|
|
62
|
+
*/
|
|
63
|
+
dataFromLms?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof PostVerifyManifestItemsInner
|
|
68
|
+
*/
|
|
69
|
+
minNormalizedMeasure?: string | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the PostVerifyManifestItemsInner interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfPostVerifyManifestItemsInner(value: object): value is PostVerifyManifestItemsInner {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PostVerifyManifestItemsInnerFromJSON(json: any): PostVerifyManifestItemsInner {
|
|
80
|
+
return PostVerifyManifestItemsInnerFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PostVerifyManifestItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifestItemsInner {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
90
|
+
'identifierRef': json['identifier_ref'] == null ? undefined : json['identifier_ref'],
|
|
91
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
92
|
+
'masteryScore': json['mastery_score'] == null ? undefined : json['mastery_score'],
|
|
93
|
+
'maxTimeAllowed': json['max_time_allowed'] == null ? undefined : json['max_time_allowed'],
|
|
94
|
+
'timeLimitAction': json['time_limit_action'] == null ? undefined : json['time_limit_action'],
|
|
95
|
+
'dataFromLms': json['data_from_lms'] == null ? undefined : json['data_from_lms'],
|
|
96
|
+
'minNormalizedMeasure': json['min_normalized_measure'] == null ? undefined : json['min_normalized_measure'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PostVerifyManifestItemsInnerToJSON(json: any): PostVerifyManifestItemsInner {
|
|
101
|
+
return PostVerifyManifestItemsInnerToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function PostVerifyManifestItemsInnerToJSONTyped(value?: PostVerifyManifestItemsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'identifier': value['identifier'],
|
|
112
|
+
'identifier_ref': value['identifierRef'],
|
|
113
|
+
'title': value['title'],
|
|
114
|
+
'mastery_score': value['masteryScore'],
|
|
115
|
+
'max_time_allowed': value['maxTimeAllowed'],
|
|
116
|
+
'time_limit_action': value['timeLimitAction'],
|
|
117
|
+
'data_from_lms': value['dataFromLms'],
|
|
118
|
+
'min_normalized_measure': value['minNormalizedMeasure'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostVerifyManifestResourcesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface PostVerifyManifestResourcesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
26
|
+
*/
|
|
27
|
+
identifier?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
32
|
+
*/
|
|
33
|
+
resourceType?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
38
|
+
*/
|
|
39
|
+
scormType?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
44
|
+
*/
|
|
45
|
+
href?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
50
|
+
*/
|
|
51
|
+
files?: Array<string>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PostVerifyManifestResourcesInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPostVerifyManifestResourcesInner(value: object): value is PostVerifyManifestResourcesInner {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function PostVerifyManifestResourcesInnerFromJSON(json: any): PostVerifyManifestResourcesInner {
|
|
62
|
+
return PostVerifyManifestResourcesInnerFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PostVerifyManifestResourcesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifestResourcesInner {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
72
|
+
'resourceType': json['resource_type'] == null ? undefined : json['resource_type'],
|
|
73
|
+
'scormType': json['scorm_type'] == null ? undefined : json['scorm_type'],
|
|
74
|
+
'href': json['href'] == null ? undefined : json['href'],
|
|
75
|
+
'files': json['files'] == null ? undefined : json['files'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PostVerifyManifestResourcesInnerToJSON(json: any): PostVerifyManifestResourcesInner {
|
|
80
|
+
return PostVerifyManifestResourcesInnerToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PostVerifyManifestResourcesInnerToJSONTyped(value?: PostVerifyManifestResourcesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'identifier': value['identifier'],
|
|
91
|
+
'resource_type': value['resourceType'],
|
|
92
|
+
'scorm_type': value['scormType'],
|
|
93
|
+
'href': value['href'],
|
|
94
|
+
'files': value['files'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -49,6 +49,9 @@ export function PutQuizAnswerAnswerFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
49
49
|
if (json == null) {
|
|
50
50
|
return json;
|
|
51
51
|
}
|
|
52
|
+
if (typeof json !== 'object') {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
52
55
|
if (instanceOfFillInBlank(json)) {
|
|
53
56
|
return FillInBlankFromJSONTyped(json, true);
|
|
54
57
|
}
|
|
@@ -58,7 +61,6 @@ export function PutQuizAnswerAnswerFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
58
61
|
if (instanceOfSingleAnswer(json)) {
|
|
59
62
|
return SingleAnswerFromJSONTyped(json, true);
|
|
60
63
|
}
|
|
61
|
-
|
|
62
64
|
return {} as any;
|
|
63
65
|
}
|
|
64
66
|
|
|
@@ -70,7 +72,9 @@ export function PutQuizAnswerAnswerToJSONTyped(value?: PutQuizAnswerAnswer | nul
|
|
|
70
72
|
if (value == null) {
|
|
71
73
|
return value;
|
|
72
74
|
}
|
|
73
|
-
|
|
75
|
+
if (typeof value !== 'object') {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
74
78
|
if (instanceOfFillInBlank(value)) {
|
|
75
79
|
return FillInBlankToJSON(value as FillInBlank);
|
|
76
80
|
}
|
|
@@ -80,7 +84,6 @@ export function PutQuizAnswerAnswerToJSONTyped(value?: PutQuizAnswerAnswer | nul
|
|
|
80
84
|
if (instanceOfSingleAnswer(value)) {
|
|
81
85
|
return SingleAnswerToJSON(value as SingleAnswer);
|
|
82
86
|
}
|
|
83
|
-
|
|
84
87
|
return {};
|
|
85
88
|
}
|
|
86
89
|
|
|
@@ -73,9 +73,9 @@ export function QuizContentAssignmentToJSONTyped(value?: QuizContentAssignment |
|
|
|
73
73
|
|
|
74
74
|
return {
|
|
75
75
|
|
|
76
|
-
'due_date': value['dueDate'] == null ?
|
|
77
|
-
'available_from': value['availableFrom'] == null ?
|
|
78
|
-
'available_until': value['availableUntil'] == null ?
|
|
76
|
+
'due_date': value['dueDate'] == null ? value['dueDate'] : value['dueDate'].toISOString(),
|
|
77
|
+
'available_from': value['availableFrom'] == null ? value['availableFrom'] : value['availableFrom'].toISOString(),
|
|
78
|
+
'available_until': value['availableUntil'] == null ? value['availableUntil'] : value['availableUntil'].toISOString(),
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response from getting a SCORM CMI data element value
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScormGetValueResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ScormGetValueResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the get operation was successful
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ScormGetValueResponse
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The value of the requested CMI element (empty string if not found or unsuccessful)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ScormGetValueResponse
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ScormGetValueResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfScormGetValueResponse(value: object): value is ScormGetValueResponse {
|
|
40
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ScormGetValueResponseFromJSON(json: any): ScormGetValueResponse {
|
|
46
|
+
return ScormGetValueResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ScormGetValueResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormGetValueResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'success': json['success'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ScormGetValueResponseToJSON(json: any): ScormGetValueResponse {
|
|
61
|
+
return ScormGetValueResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ScormGetValueResponseToJSONTyped(value?: ScormGetValueResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'success': value['success'],
|
|
72
|
+
'value': value['value'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request to set a SCORM CMI data element value
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScormSetValueRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ScormSetValueRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The CMI element key to set (e.g., cmi.core.lesson_status, cmi.core.score.raw)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ScormSetValueRequest
|
|
26
|
+
*/
|
|
27
|
+
key: string;
|
|
28
|
+
/**
|
|
29
|
+
* The value to set for the CMI element
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ScormSetValueRequest
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ScormSetValueRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfScormSetValueRequest(value: object): value is ScormSetValueRequest {
|
|
40
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ScormSetValueRequestFromJSON(json: any): ScormSetValueRequest {
|
|
46
|
+
return ScormSetValueRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ScormSetValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormSetValueRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'key': json['key'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ScormSetValueRequestToJSON(json: any): ScormSetValueRequest {
|
|
61
|
+
return ScormSetValueRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ScormSetValueRequestToJSONTyped(value?: ScormSetValueRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'key': value['key'],
|
|
72
|
+
'value': value['value'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response from setting a SCORM CMI data element value
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScormSetValueResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ScormSetValueResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the set operation was successful
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ScormSetValueResponse
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ScormSetValueResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfScormSetValueResponse(value: object): value is ScormSetValueResponse {
|
|
34
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ScormSetValueResponseFromJSON(json: any): ScormSetValueResponse {
|
|
39
|
+
return ScormSetValueResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ScormSetValueResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormSetValueResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'success': json['success'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ScormSetValueResponseToJSON(json: any): ScormSetValueResponse {
|
|
53
|
+
return ScormSetValueResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ScormSetValueResponseToJSONTyped(value?: ScormSetValueResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'success': value['success'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|