@easyedu/js-lsm-api 1.30.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +209 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +378 -28
- package/dist/apis/ContentApi.d.ts +94 -4
- package/dist/apis/ContentApi.js +292 -20
- package/dist/apis/CourseApi.js +37 -12
- package/dist/apis/ModuleApi.js +14 -4
- package/dist/apis/OtherApi.js +2 -1
- package/dist/apis/PortalApi.js +19 -7
- package/dist/apis/QuestionApi.js +13 -5
- package/dist/apis/QuizApi.js +79 -25
- package/dist/apis/ReportingApi.js +39 -9
- package/dist/apis/UserApi.js +16 -7
- package/dist/esm/apis/ContentApi.d.ts +94 -4
- package/dist/esm/apis/ContentApi.js +292 -20
- package/dist/esm/apis/CourseApi.js +37 -12
- package/dist/esm/apis/ModuleApi.js +14 -4
- package/dist/esm/apis/OtherApi.js +2 -1
- package/dist/esm/apis/PortalApi.js +19 -7
- package/dist/esm/apis/QuestionApi.js +13 -5
- package/dist/esm/apis/QuizApi.js +79 -25
- package/dist/esm/apis/ReportingApi.js +39 -9
- package/dist/esm/apis/UserApi.js +16 -7
- package/dist/esm/models/GetContentContentData.js +6 -0
- package/dist/esm/models/GetContentVersion.js +2 -2
- package/dist/esm/models/GetContentVersionListItemsInner.js +2 -2
- package/dist/esm/models/GetManualQuestionSelectionItem.js +1 -1
- package/dist/esm/models/GetQuestionListFilters.js +2 -2
- package/dist/esm/models/GetQuiz.js +2 -2
- package/dist/esm/models/GetQuizAttemptAnalyticsBasicInfo.js +2 -2
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +1 -1
- package/dist/esm/models/GetQuizAttemptAttempt.js +3 -3
- package/dist/esm/models/GetQuizAttemptListAllOfAttempts.js +2 -2
- package/dist/esm/models/GetQuizAttemptListAllOfFiltersDateRange.js +2 -2
- package/dist/esm/models/GetQuizAttemptQuestionsInner.js +1 -1
- package/dist/esm/models/GetQuizAttemptQuestionsInnerCurrentAnswer.js +1 -1
- package/dist/esm/models/GetQuizCriteriaItem.js +2 -2
- package/dist/esm/models/GetQuizCriteriaListItemsInner.js +2 -2
- package/dist/esm/models/GetQuizListAllOfQuizzes.js +2 -2
- package/dist/esm/models/GetQuizQuestionsItemsInner.js +1 -1
- package/dist/esm/models/GetQuizResultsTiming.js +2 -2
- package/dist/esm/models/GetScormPackagePackageInfo.js +2 -2
- package/dist/esm/models/GetUserQuizAttemptsAllOfAttempts.js +2 -2
- package/dist/esm/models/PostContentQuizAssignment.js +3 -3
- package/dist/esm/models/PostContentQuizQuestionSelection.js +6 -0
- package/dist/esm/models/PostQuizAttemptAttempt.js +2 -2
- package/dist/esm/models/PostQuizAttemptSubmit.js +1 -1
- package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +6 -0
- package/dist/esm/models/PostVerifyManifest.d.ts +106 -0
- package/dist/esm/models/PostVerifyManifest.js +73 -0
- package/dist/esm/models/PostVerifyManifestItemsInner.d.ts +74 -0
- package/dist/esm/models/PostVerifyManifestItemsInner.js +55 -0
- package/dist/esm/models/PostVerifyManifestResourcesInner.d.ts +56 -0
- package/dist/esm/models/PostVerifyManifestResourcesInner.js +49 -0
- package/dist/esm/models/PutQuizAnswerAnswer.js +6 -0
- package/dist/esm/models/QuizContentAssignment.js +3 -3
- package/dist/esm/models/ScormGetValueResponse.d.ts +38 -0
- package/dist/esm/models/ScormGetValueResponse.js +47 -0
- package/dist/esm/models/ScormSetValueRequest.d.ts +38 -0
- package/dist/esm/models/ScormSetValueRequest.js +47 -0
- package/dist/esm/models/ScormSetValueResponse.d.ts +32 -0
- package/dist/esm/models/ScormSetValueResponse.js +43 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/runtime.d.ts +3 -1
- package/dist/esm/runtime.js +5 -1
- package/dist/models/GetContentContentData.js +6 -0
- package/dist/models/GetContentVersion.js +2 -2
- package/dist/models/GetContentVersionListItemsInner.js +2 -2
- package/dist/models/GetManualQuestionSelectionItem.js +1 -1
- package/dist/models/GetQuestionListFilters.js +2 -2
- package/dist/models/GetQuiz.js +2 -2
- package/dist/models/GetQuizAttemptAnalyticsBasicInfo.js +2 -2
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +1 -1
- package/dist/models/GetQuizAttemptAttempt.js +3 -3
- package/dist/models/GetQuizAttemptListAllOfAttempts.js +2 -2
- package/dist/models/GetQuizAttemptListAllOfFiltersDateRange.js +2 -2
- package/dist/models/GetQuizAttemptQuestionsInner.js +1 -1
- package/dist/models/GetQuizAttemptQuestionsInnerCurrentAnswer.js +1 -1
- package/dist/models/GetQuizCriteriaItem.js +2 -2
- package/dist/models/GetQuizCriteriaListItemsInner.js +2 -2
- package/dist/models/GetQuizListAllOfQuizzes.js +2 -2
- package/dist/models/GetQuizQuestionsItemsInner.js +1 -1
- package/dist/models/GetQuizResultsTiming.js +2 -2
- package/dist/models/GetScormPackagePackageInfo.js +2 -2
- package/dist/models/GetUserQuizAttemptsAllOfAttempts.js +2 -2
- package/dist/models/PostContentQuizAssignment.js +3 -3
- package/dist/models/PostContentQuizQuestionSelection.js +6 -0
- package/dist/models/PostQuizAttemptAttempt.js +2 -2
- package/dist/models/PostQuizAttemptSubmit.js +1 -1
- package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +6 -0
- package/dist/models/PostVerifyManifest.d.ts +106 -0
- package/dist/models/PostVerifyManifest.js +80 -0
- package/dist/models/PostVerifyManifestItemsInner.d.ts +74 -0
- package/dist/models/PostVerifyManifestItemsInner.js +62 -0
- package/dist/models/PostVerifyManifestResourcesInner.d.ts +56 -0
- package/dist/models/PostVerifyManifestResourcesInner.js +56 -0
- package/dist/models/PutQuizAnswerAnswer.js +6 -0
- package/dist/models/QuizContentAssignment.js +3 -3
- package/dist/models/ScormGetValueResponse.d.ts +38 -0
- package/dist/models/ScormGetValueResponse.js +54 -0
- package/dist/models/ScormSetValueRequest.d.ts +38 -0
- package/dist/models/ScormSetValueRequest.js +54 -0
- package/dist/models/ScormSetValueResponse.d.ts +32 -0
- package/dist/models/ScormSetValueResponse.js +50 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.d.ts +3 -1
- package/dist/runtime.js +5 -1
- package/docs/ContentApi.md +1645 -0
- package/docs/CourseApi.md +845 -0
- package/docs/CriteriaBasedSelection.md +40 -0
- package/docs/CriteriaBasedSelectionCriteria.md +42 -0
- package/docs/CriteriaBasedSelectionDistribution.md +37 -0
- package/docs/FillInBlank.md +36 -0
- package/docs/FillInBlank1.md +36 -0
- package/docs/GetContent.md +58 -0
- package/docs/GetContentContentData.md +53 -0
- package/docs/GetContentGradeDetail.md +50 -0
- package/docs/GetContentGrades.md +42 -0
- package/docs/GetContentGradesItemsInner.md +40 -0
- package/docs/GetContentGradesItemsInnerUser.md +38 -0
- package/docs/GetContentInstructorBasicReporting.md +38 -0
- package/docs/GetContentInstructorBasicReportingContentInfo.md +38 -0
- package/docs/GetContentInstructorBasicReportingEngagement.md +42 -0
- package/docs/GetContentInstructorBasicReportingPerformance.md +36 -0
- package/docs/GetContentList.md +43 -0
- package/docs/GetContentSession.md +45 -0
- package/docs/GetContentSessionDetail.md +51 -0
- package/docs/GetContentSessionDetailScormSessionDataInner.md +36 -0
- package/docs/GetContentSessionDetailUserData.md +36 -0
- package/docs/GetContentSessionList.md +43 -0
- package/docs/GetContentSessionListItem.md +45 -0
- package/docs/GetContentSessionListItemScormSessionData.md +35 -0
- package/docs/GetContentUpload.md +38 -0
- package/docs/GetContentVersion.md +49 -0
- package/docs/GetContentVersionList.md +43 -0
- package/docs/GetContentVersionListItemsInner.md +42 -0
- package/docs/GetContentVersionSandbox.md +35 -0
- package/docs/GetContentVersionScormData.md +35 -0
- package/docs/GetCourse.md +44 -0
- package/docs/GetCourseEnrollment.md +51 -0
- package/docs/GetCourseEnrollmentList.md +43 -0
- package/docs/GetCourseEnrollmentListItem.md +53 -0
- package/docs/GetCourseExport.md +49 -0
- package/docs/GetCourseExportList.md +43 -0
- package/docs/GetCourseList.md +43 -0
- package/docs/GetCourseReportingBasic.md +38 -0
- package/docs/GetCourseStudentReporting.md +38 -0
- package/docs/GetCourseStudentReportingCourseInfo.md +34 -0
- package/docs/GetCourseStudentReportingEngagement.md +36 -0
- package/docs/GetCourseStudentReportingPerformance.md +34 -0
- package/docs/GetManualQuestionSelectionItem.md +48 -0
- package/docs/GetManualQuestionSelectionList.md +44 -0
- package/docs/GetModule.md +44 -0
- package/docs/GetModuleInstructorBasicReporting.md +38 -0
- package/docs/GetModuleInstructorBasicReportingEngagement.md +34 -0
- package/docs/GetModuleInstructorBasicReportingModuleInfo.md +34 -0
- package/docs/GetModuleInstructorBasicReportingPerformance.md +34 -0
- package/docs/GetModuleList.md +43 -0
- package/docs/GetModuleStudentReporting.md +38 -0
- package/docs/GetModuleStudentReportingAccess.md +36 -0
- package/docs/GetModuleStudentReportingProgress.md +36 -0
- package/docs/GetPortal.md +48 -0
- package/docs/GetPortalBasicReporting.md +36 -0
- package/docs/GetPortalBasicReportingCertificates.md +34 -0
- package/docs/GetPortalBasicReportingPortalInfo.md +38 -0
- package/docs/GetPortalList.md +43 -0
- package/docs/GetPortalStudentReporting.md +36 -0
- package/docs/GetPortalStudentReportingCertificates.md +34 -0
- package/docs/GetPortalStudentReportingPortalInfo.md +38 -0
- package/docs/GetPortalUser.md +45 -0
- package/docs/GetPortalUserList.md +43 -0
- package/docs/GetQuestion.md +62 -0
- package/docs/GetQuestionAnswerChoicesInner.md +38 -0
- package/docs/GetQuestionList.md +44 -0
- package/docs/GetQuestionListFilters.md +48 -0
- package/docs/GetQuiz.md +68 -0
- package/docs/GetQuizAttempt.md +38 -0
- package/docs/GetQuizAttemptAnalytics.md +46 -0
- package/docs/GetQuizAttemptAnalyticsBasicInfo.md +49 -0
- package/docs/GetQuizAttemptAnalyticsPerformanceBreakdown.md +39 -0
- package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.md +44 -0
- package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.md +44 -0
- package/docs/GetQuizAttemptAnalyticsPerformanceBreakdownByTopicInner.md +44 -0
- package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInner.md +58 -0
- package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInnerCorrectAnswer.md +39 -0
- package/docs/GetQuizAttemptAnalyticsQuestionAnalysisInnerUserAnswer.md +39 -0
- package/docs/GetQuizAttemptAnalyticsScoring.md +49 -0
- package/docs/GetQuizAttemptAttempt.md +61 -0
- package/docs/GetQuizAttemptList.md +46 -0
- package/docs/GetQuizAttemptListAllOfAttempts.md +68 -0
- package/docs/GetQuizAttemptListAllOfFilters.md +45 -0
- package/docs/GetQuizAttemptListAllOfFiltersDateRange.md +37 -0
- package/docs/GetQuizAttemptListAllOfSummary.md +45 -0
- package/docs/GetQuizAttemptQuestionsInner.md +52 -0
- package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +38 -0
- package/docs/GetQuizAttemptQuestionsInnerCurrentAnswer.md +41 -0
- package/docs/GetQuizAttemptQuizSettings.md +45 -0
- package/docs/GetQuizCriteria.md +38 -0
- package/docs/GetQuizCriteriaEstimatedQuestions.md +39 -0
- package/docs/GetQuizCriteriaItem.md +58 -0
- package/docs/GetQuizCriteriaList.md +42 -0
- package/docs/GetQuizCriteriaListItemsInner.md +58 -0
- package/docs/GetQuizList.md +44 -0
- package/docs/GetQuizListAllOfFilters.md +43 -0
- package/docs/GetQuizListAllOfQuizzes.md +64 -0
- package/docs/GetQuizListAllOfStatistics.md +43 -0
- package/docs/GetQuizQuestions.md +48 -0
- package/docs/GetQuizQuestionsItemsInner.md +48 -0
- package/docs/GetQuizQuestionsItemsInnerQuestionDetails.md +53 -0
- package/docs/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.md +42 -0
- package/docs/GetQuizResults.md +52 -0
- package/docs/GetQuizResultsFeedback.md +39 -0
- package/docs/GetQuizResultsFeedbackDifficultyPerformanceInner.md +40 -0
- package/docs/GetQuizResultsFeedbackTopicPerformanceInner.md +40 -0
- package/docs/GetQuizResultsQuestionsInner.md +50 -0
- package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +40 -0
- package/docs/GetQuizResultsQuestionsInnerStudentAnswer.md +43 -0
- package/docs/GetQuizResultsScore.md +41 -0
- package/docs/GetQuizResultsTiming.md +43 -0
- package/docs/GetQuizStatistics.md +43 -0
- package/docs/GetScormApiLogItem.md +45 -0
- package/docs/GetScormApiLogs.md +43 -0
- package/docs/GetScormPackage.md +37 -0
- package/docs/GetScormPackagePackageInfo.md +59 -0
- package/docs/GetScormSessionData.md +43 -0
- package/docs/GetScormSessionDataActivity.md +36 -0
- package/docs/GetUser.md +42 -0
- package/docs/GetUserQuizAttempts.md +46 -0
- package/docs/GetUserQuizAttemptsAllOfAttempts.md +70 -0
- package/docs/GetUserQuizAttemptsAllOfFilters.md +47 -0
- package/docs/GetUserQuizAttemptsAllOfSummary.md +47 -0
- package/docs/LoginRes.md +36 -0
- package/docs/LoginResAuthData.md +36 -0
- package/docs/LoginResUserData.md +40 -0
- package/docs/LoginResUserDataSelectedPortal.md +36 -0
- package/docs/ManualSelection.md +36 -0
- package/docs/MediaContent.md +38 -0
- package/docs/ModuleApi.md +284 -0
- package/docs/MultipleAnswer.md +36 -0
- package/docs/MultipleAnswer1.md +36 -0
- package/docs/NoAnswer.md +34 -0
- package/docs/OtherApi.md +66 -0
- package/docs/Paginated.md +40 -0
- package/docs/PortalApi.md +493 -0
- package/docs/PostContentQuiz.md +42 -0
- package/docs/PostContentQuizAssignment.md +41 -0
- package/docs/PostContentQuizQuestionSelection.md +43 -0
- package/docs/PostContentQuizSettings.md +51 -0
- package/docs/PostContentSession.md +43 -0
- package/docs/PostContentUpload.md +36 -0
- package/docs/PostCourse.md +38 -0
- package/docs/PostCourseEnrollment.md +40 -0
- package/docs/PostCourseExport.md +35 -0
- package/docs/PostLogin.md +36 -0
- package/docs/PostManualQuestionSelection.md +40 -0
- package/docs/PostModule.md +38 -0
- package/docs/PostPortal.md +38 -0
- package/docs/PostPortalInvite.md +40 -0
- package/docs/PostQuestion.md +52 -0
- package/docs/PostQuestionAnswerChoicesInner.md +36 -0
- package/docs/PostQuiz.md +58 -0
- package/docs/PostQuizAttempt.md +38 -0
- package/docs/PostQuizAttemptAttempt.md +55 -0
- package/docs/PostQuizAttemptQuestionsInner.md +48 -0
- package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +38 -0
- package/docs/PostQuizAttemptQuizSettings.md +45 -0
- package/docs/PostQuizAttemptSubmit.md +38 -0
- package/docs/PostQuizAttemptSubmitFinalAnswersInner.md +36 -0
- package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +41 -0
- package/docs/PostQuizCriteria.md +36 -0
- package/docs/PostQuizCriteriaCriteriaInner.md +49 -0
- package/docs/PostQuizQuestions.md +36 -0
- package/docs/PostQuizQuestionsQuestionsInner.md +40 -0
- package/docs/PostQuizSettings.md +41 -0
- package/docs/PostResetPassword.md +36 -0
- package/docs/PostSendResetPassword.md +34 -0
- package/docs/PostVerifyManifest.md +59 -0
- package/docs/PostVerifyManifestItemsInner.md +48 -0
- package/docs/PostVerifyManifestResourcesInner.md +42 -0
- package/docs/PutContent.md +36 -0
- package/docs/PutContentVersion.md +35 -0
- package/docs/PutCourse.md +44 -0
- package/docs/PutCourseEnrollment.md +40 -0
- package/docs/PutModule.md +40 -0
- package/docs/PutPortalBranding.md +38 -0
- package/docs/PutQuestion.md +52 -0
- package/docs/PutQuestionAnswerChoicesInner.md +38 -0
- package/docs/PutQuiz.md +56 -0
- package/docs/PutQuizAnswer.md +36 -0
- package/docs/PutQuizAnswerAnswer.md +41 -0
- package/docs/PutQuizSettings.md +41 -0
- package/docs/PutUser.md +42 -0
- package/docs/QuestionApi.md +368 -0
- package/docs/QuizApi.md +1793 -0
- package/docs/QuizContent.md +40 -0
- package/docs/QuizContentAssignment.md +39 -0
- package/docs/QuizContentSettings.md +43 -0
- package/docs/ReportingApi.md +674 -0
- package/docs/SCORMContent.md +38 -0
- package/docs/ScormGetValueResponse.md +37 -0
- package/docs/ScormSessionData.md +43 -0
- package/docs/ScormSessionDataProgress.md +36 -0
- package/docs/ScormSessionDataScore.md +40 -0
- package/docs/ScormSessionDataSession.md +34 -0
- package/docs/ScormSessionDataStatus.md +40 -0
- package/docs/ScormSessionDataTime.md +40 -0
- package/docs/ScormSetValueRequest.md +37 -0
- package/docs/ScormSetValueResponse.md +35 -0
- package/docs/SingleAnswer.md +36 -0
- package/docs/UserApi.md +460 -0
- package/package.json +2 -2
- package/src/apis/ContentApi.ts +421 -21
- package/src/apis/CourseApi.ts +61 -12
- package/src/apis/ModuleApi.ts +22 -4
- package/src/apis/OtherApi.ts +4 -1
- package/src/apis/PortalApi.ts +33 -7
- package/src/apis/QuestionApi.ts +23 -5
- package/src/apis/QuizApi.ts +129 -25
- package/src/apis/ReportingApi.ts +57 -9
- package/src/apis/UserApi.ts +30 -7
- package/src/models/GetContentContentData.ts +6 -3
- package/src/models/GetContentVersion.ts +2 -2
- package/src/models/GetContentVersionListItemsInner.ts +2 -2
- package/src/models/GetManualQuestionSelectionItem.ts +1 -1
- package/src/models/GetQuestionListFilters.ts +2 -2
- package/src/models/GetQuiz.ts +2 -2
- package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +2 -2
- package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +1 -1
- package/src/models/GetQuizAttemptAttempt.ts +3 -3
- package/src/models/GetQuizAttemptListAllOfAttempts.ts +2 -2
- package/src/models/GetQuizAttemptListAllOfFiltersDateRange.ts +2 -2
- package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
- package/src/models/GetQuizAttemptQuestionsInnerCurrentAnswer.ts +1 -1
- package/src/models/GetQuizCriteriaItem.ts +2 -2
- package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
- package/src/models/GetQuizListAllOfQuizzes.ts +2 -2
- package/src/models/GetQuizQuestionsItemsInner.ts +1 -1
- package/src/models/GetQuizResultsTiming.ts +2 -2
- package/src/models/GetScormPackagePackageInfo.ts +2 -2
- package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +2 -2
- package/src/models/PostContentQuizAssignment.ts +3 -3
- package/src/models/PostContentQuizQuestionSelection.ts +6 -3
- package/src/models/PostQuizAttemptAttempt.ts +2 -2
- package/src/models/PostQuizAttemptSubmit.ts +1 -1
- package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +6 -3
- package/src/models/PostVerifyManifest.ts +179 -0
- package/src/models/PostVerifyManifestItemsInner.ts +121 -0
- package/src/models/PostVerifyManifestResourcesInner.ts +97 -0
- package/src/models/PutQuizAnswerAnswer.ts +6 -3
- package/src/models/QuizContentAssignment.ts +3 -3
- package/src/models/ScormGetValueResponse.ts +75 -0
- package/src/models/ScormSetValueRequest.ts +75 -0
- package/src/models/ScormSetValueResponse.ts +66 -0
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +5 -4
|
@@ -86,6 +86,6 @@ function GetQuizAttemptQuestionsInnerToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
86
86
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizAttemptQuestionsInnerAnswerChoicesInner_1.GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
87
87
|
'is_answered': value['isAnswered'],
|
|
88
88
|
'current_answer': (0, GetQuizAttemptQuestionsInnerCurrentAnswer_1.GetQuizAttemptQuestionsInnerCurrentAnswerToJSON)(value['currentAnswer']),
|
|
89
|
-
'answered_at': value['answeredAt'] == null ?
|
|
89
|
+
'answered_at': value['answeredAt'] == null ? value['answeredAt'] : value['answeredAt'].toISOString(),
|
|
90
90
|
};
|
|
91
91
|
}
|
|
@@ -49,6 +49,6 @@ function GetQuizAttemptQuestionsInnerCurrentAnswerToJSONTyped(value, ignoreDiscr
|
|
|
49
49
|
'answer_choice_id': value['answerChoiceId'],
|
|
50
50
|
'multiple_answers': value['multipleAnswers'],
|
|
51
51
|
'text_answer': value['textAnswer'],
|
|
52
|
-
'answered_at': value['answeredAt'] == null ?
|
|
52
|
+
'answered_at': value['answeredAt'] == null ? value['answeredAt'] : value['answeredAt'].toISOString(),
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -95,7 +95,7 @@ function GetQuizCriteriaItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
95
|
'max_questions': value['maxQuestions'],
|
|
96
96
|
'priority': value['priority'],
|
|
97
97
|
'matching_questions_count': value['matchingQuestionsCount'],
|
|
98
|
-
'created_at':
|
|
99
|
-
'updated_at':
|
|
98
|
+
'created_at': value['createdAt'].toISOString(),
|
|
99
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
100
100
|
};
|
|
101
101
|
}
|
|
@@ -95,7 +95,7 @@ function GetQuizCriteriaListItemsInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
95
95
|
'max_questions': value['maxQuestions'],
|
|
96
96
|
'priority': value['priority'],
|
|
97
97
|
'matching_questions_count': value['matchingQuestionsCount'],
|
|
98
|
-
'created_at':
|
|
99
|
-
'updated_at':
|
|
98
|
+
'created_at': value['createdAt'].toISOString(),
|
|
99
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
100
100
|
};
|
|
101
101
|
}
|
|
@@ -99,7 +99,7 @@ function GetQuizListAllOfQuizzesToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
99
99
|
'passing_score': value['passingScore'],
|
|
100
100
|
'time_limit_minutes': value['timeLimitMinutes'],
|
|
101
101
|
'statistics': (0, GetQuizListAllOfStatistics_1.GetQuizListAllOfStatisticsToJSON)(value['statistics']),
|
|
102
|
-
'created_at':
|
|
103
|
-
'updated_at':
|
|
102
|
+
'created_at': value['createdAt'].toISOString(),
|
|
103
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
104
104
|
};
|
|
105
105
|
}
|
|
@@ -74,6 +74,6 @@ function GetQuizQuestionsItemsInnerToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
74
74
|
'points': value['points'],
|
|
75
75
|
'version_locked': value['versionLocked'],
|
|
76
76
|
'question_details': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsToJSON)(value['questionDetails']),
|
|
77
|
-
'created_at':
|
|
77
|
+
'created_at': value['createdAt'].toISOString(),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
@@ -47,8 +47,8 @@ function GetQuizResultsTimingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
47
|
return value;
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
|
-
'started_at': value['startedAt'] == null ?
|
|
51
|
-
'submitted_at': value['submittedAt'] == null ?
|
|
50
|
+
'started_at': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
|
|
51
|
+
'submitted_at': value['submittedAt'] == null ? value['submittedAt'] : value['submittedAt'].toISOString(),
|
|
52
52
|
'time_limit': value['timeLimit'],
|
|
53
53
|
'time_spent': value['timeSpent'],
|
|
54
54
|
'time_remaining': value['timeRemaining'],
|
|
@@ -82,7 +82,7 @@ function GetScormPackagePackageInfoToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
82
82
|
'storage_key': value['storageKey'],
|
|
83
83
|
'total_file_count': value['totalFileCount'],
|
|
84
84
|
'package_size_bytes': value['packageSizeBytes'],
|
|
85
|
-
'created_at':
|
|
86
|
-
'updated_at':
|
|
85
|
+
'created_at': value['createdAt'].toISOString(),
|
|
86
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
87
87
|
};
|
|
88
88
|
}
|
|
@@ -102,8 +102,8 @@ function GetUserQuizAttemptsAllOfAttemptsToJSONTyped(value, ignoreDiscriminator
|
|
|
102
102
|
'course_name': value['courseName'],
|
|
103
103
|
'attempt_number': value['attemptNumber'],
|
|
104
104
|
'status': value['status'],
|
|
105
|
-
'started_at':
|
|
106
|
-
'completed_at': value['completedAt'] == null ?
|
|
105
|
+
'started_at': value['startedAt'].toISOString(),
|
|
106
|
+
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
|
|
107
107
|
'total_questions': value['totalQuestions'],
|
|
108
108
|
'questions_answered': value['questionsAnswered'],
|
|
109
109
|
'correct_answers': value['correctAnswers'],
|
|
@@ -46,9 +46,9 @@ function PostContentQuizAssignmentToJSONTyped(value, ignoreDiscriminator = false
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'due_date': value['dueDate'] == null ?
|
|
50
|
-
'available_from': value['availableFrom'] == null ?
|
|
51
|
-
'available_until': value['availableUntil'] == null ?
|
|
49
|
+
'due_date': value['dueDate'] == null ? value['dueDate'] : value['dueDate'].toISOString(),
|
|
50
|
+
'available_from': value['availableFrom'] == null ? value['availableFrom'] : value['availableFrom'].toISOString(),
|
|
51
|
+
'available_until': value['availableUntil'] == null ? value['availableUntil'] : value['availableUntil'].toISOString(),
|
|
52
52
|
'assigned_users': value['assignedUsers'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -26,6 +26,9 @@ function PostContentQuizQuestionSelectionFromJSONTyped(json, ignoreDiscriminator
|
|
|
26
26
|
if (json == null) {
|
|
27
27
|
return json;
|
|
28
28
|
}
|
|
29
|
+
if (typeof json !== 'object') {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
29
32
|
if ((0, CriteriaBasedSelection_1.instanceOfCriteriaBasedSelection)(json)) {
|
|
30
33
|
return (0, CriteriaBasedSelection_1.CriteriaBasedSelectionFromJSONTyped)(json, true);
|
|
31
34
|
}
|
|
@@ -41,6 +44,9 @@ function PostContentQuizQuestionSelectionToJSONTyped(value, ignoreDiscriminator
|
|
|
41
44
|
if (value == null) {
|
|
42
45
|
return value;
|
|
43
46
|
}
|
|
47
|
+
if (typeof value !== 'object') {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
44
50
|
if ((0, CriteriaBasedSelection_1.instanceOfCriteriaBasedSelection)(value)) {
|
|
45
51
|
return (0, CriteriaBasedSelection_1.CriteriaBasedSelectionToJSON)(value);
|
|
46
52
|
}
|
|
@@ -87,8 +87,8 @@ function PostQuizAttemptAttemptToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
87
|
'content_id': value['contentId'],
|
|
88
88
|
'attempt_number': value['attemptNumber'],
|
|
89
89
|
'status': value['status'],
|
|
90
|
-
'started_at':
|
|
91
|
-
'time_limit_at': value['timeLimitAt'] == null ?
|
|
90
|
+
'started_at': value['startedAt'].toISOString(),
|
|
91
|
+
'time_limit_at': value['timeLimitAt'] == null ? value['timeLimitAt'] : value['timeLimitAt'].toISOString(),
|
|
92
92
|
'total_questions': value['totalQuestions'],
|
|
93
93
|
'total_points': value['totalPoints'],
|
|
94
94
|
};
|
|
@@ -63,6 +63,6 @@ function PostQuizAttemptSubmitToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
63
|
return {
|
|
64
64
|
'submission_type': value['submissionType'],
|
|
65
65
|
'final_answers': (value['finalAnswers'].map(PostQuizAttemptSubmitFinalAnswersInner_1.PostQuizAttemptSubmitFinalAnswersInnerToJSON)),
|
|
66
|
-
'submitted_at':
|
|
66
|
+
'submitted_at': value['submittedAt'].toISOString(),
|
|
67
67
|
};
|
|
68
68
|
}
|
|
@@ -28,6 +28,9 @@ function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json, ignoreD
|
|
|
28
28
|
if (json == null) {
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
|
+
if (typeof json !== 'object') {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
31
34
|
if ((0, FillInBlank1_1.instanceOfFillInBlank1)(json)) {
|
|
32
35
|
return (0, FillInBlank1_1.FillInBlank1FromJSONTyped)(json, true);
|
|
33
36
|
}
|
|
@@ -49,6 +52,9 @@ function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped(value, ignoreDi
|
|
|
49
52
|
if (value == null) {
|
|
50
53
|
return value;
|
|
51
54
|
}
|
|
55
|
+
if (typeof value !== 'object') {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
52
58
|
if ((0, FillInBlank1_1.instanceOfFillInBlank1)(value)) {
|
|
53
59
|
return (0, FillInBlank1_1.FillInBlank1ToJSON)(value);
|
|
54
60
|
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
import type { PostVerifyManifestResourcesInner } from './PostVerifyManifestResourcesInner';
|
|
13
|
+
import type { PostVerifyManifestItemsInner } from './PostVerifyManifestItemsInner';
|
|
14
|
+
/**
|
|
15
|
+
* Response from parsing and verifying a SCORM manifest
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PostVerifyManifest
|
|
18
|
+
*/
|
|
19
|
+
export interface PostVerifyManifest {
|
|
20
|
+
/**
|
|
21
|
+
* Whether the manifest parsed successfully
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof PostVerifyManifest
|
|
24
|
+
*/
|
|
25
|
+
valid: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Parse errors that prevented successful parsing
|
|
28
|
+
* @type {Array<string>}
|
|
29
|
+
* @memberof PostVerifyManifest
|
|
30
|
+
*/
|
|
31
|
+
errors: Array<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Non-fatal issues or potential problems detected
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof PostVerifyManifest
|
|
36
|
+
*/
|
|
37
|
+
warnings: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Detected SCORM version (e.g., "1.2", "2004 4th Edition")
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof PostVerifyManifest
|
|
42
|
+
*/
|
|
43
|
+
scormVersion?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Manifest identifier attribute
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PostVerifyManifest
|
|
48
|
+
*/
|
|
49
|
+
identifier?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Manifest version attribute
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PostVerifyManifest
|
|
54
|
+
*/
|
|
55
|
+
version?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Organization title (course title)
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof PostVerifyManifest
|
|
60
|
+
*/
|
|
61
|
+
title?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Metadata schema (e.g., "ADL SCORM")
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof PostVerifyManifest
|
|
66
|
+
*/
|
|
67
|
+
schema?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Metadata schema version
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof PostVerifyManifest
|
|
72
|
+
*/
|
|
73
|
+
schemaVersion?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Default organization identifier
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof PostVerifyManifest
|
|
78
|
+
*/
|
|
79
|
+
defaultOrganization?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* List of items (SCOs) from the organization
|
|
82
|
+
* @type {Array<PostVerifyManifestItemsInner>}
|
|
83
|
+
* @memberof PostVerifyManifest
|
|
84
|
+
*/
|
|
85
|
+
items?: Array<PostVerifyManifestItemsInner>;
|
|
86
|
+
/**
|
|
87
|
+
* List of resources from the manifest
|
|
88
|
+
* @type {Array<PostVerifyManifestResourcesInner>}
|
|
89
|
+
* @memberof PostVerifyManifest
|
|
90
|
+
*/
|
|
91
|
+
resources?: Array<PostVerifyManifestResourcesInner>;
|
|
92
|
+
/**
|
|
93
|
+
* List of SCO entry point URLs
|
|
94
|
+
* @type {Array<string>}
|
|
95
|
+
* @memberof PostVerifyManifest
|
|
96
|
+
*/
|
|
97
|
+
entryPoints?: Array<string>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the PostVerifyManifest interface.
|
|
101
|
+
*/
|
|
102
|
+
export declare function instanceOfPostVerifyManifest(value: object): value is PostVerifyManifest;
|
|
103
|
+
export declare function PostVerifyManifestFromJSON(json: any): PostVerifyManifest;
|
|
104
|
+
export declare function PostVerifyManifestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifest;
|
|
105
|
+
export declare function PostVerifyManifestToJSON(json: any): PostVerifyManifest;
|
|
106
|
+
export declare function PostVerifyManifestToJSONTyped(value?: PostVerifyManifest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPostVerifyManifest = instanceOfPostVerifyManifest;
|
|
17
|
+
exports.PostVerifyManifestFromJSON = PostVerifyManifestFromJSON;
|
|
18
|
+
exports.PostVerifyManifestFromJSONTyped = PostVerifyManifestFromJSONTyped;
|
|
19
|
+
exports.PostVerifyManifestToJSON = PostVerifyManifestToJSON;
|
|
20
|
+
exports.PostVerifyManifestToJSONTyped = PostVerifyManifestToJSONTyped;
|
|
21
|
+
const PostVerifyManifestResourcesInner_1 = require("./PostVerifyManifestResourcesInner");
|
|
22
|
+
const PostVerifyManifestItemsInner_1 = require("./PostVerifyManifestItemsInner");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PostVerifyManifest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPostVerifyManifest(value) {
|
|
27
|
+
if (!('valid' in value) || value['valid'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('warnings' in value) || value['warnings'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PostVerifyManifestFromJSON(json) {
|
|
36
|
+
return PostVerifyManifestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PostVerifyManifestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'valid': json['valid'],
|
|
44
|
+
'errors': json['errors'],
|
|
45
|
+
'warnings': json['warnings'],
|
|
46
|
+
'scormVersion': json['scorm_version'] == null ? undefined : json['scorm_version'],
|
|
47
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
48
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
49
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
50
|
+
'schema': json['schema'] == null ? undefined : json['schema'],
|
|
51
|
+
'schemaVersion': json['schema_version'] == null ? undefined : json['schema_version'],
|
|
52
|
+
'defaultOrganization': json['default_organization'] == null ? undefined : json['default_organization'],
|
|
53
|
+
'items': json['items'] == null ? undefined : (json['items'].map(PostVerifyManifestItemsInner_1.PostVerifyManifestItemsInnerFromJSON)),
|
|
54
|
+
'resources': json['resources'] == null ? undefined : (json['resources'].map(PostVerifyManifestResourcesInner_1.PostVerifyManifestResourcesInnerFromJSON)),
|
|
55
|
+
'entryPoints': json['entry_points'] == null ? undefined : json['entry_points'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function PostVerifyManifestToJSON(json) {
|
|
59
|
+
return PostVerifyManifestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function PostVerifyManifestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'valid': value['valid'],
|
|
67
|
+
'errors': value['errors'],
|
|
68
|
+
'warnings': value['warnings'],
|
|
69
|
+
'scorm_version': value['scormVersion'],
|
|
70
|
+
'identifier': value['identifier'],
|
|
71
|
+
'version': value['version'],
|
|
72
|
+
'title': value['title'],
|
|
73
|
+
'schema': value['schema'],
|
|
74
|
+
'schema_version': value['schemaVersion'],
|
|
75
|
+
'default_organization': value['defaultOrganization'],
|
|
76
|
+
'items': value['items'] == null ? undefined : (value['items'].map(PostVerifyManifestItemsInner_1.PostVerifyManifestItemsInnerToJSON)),
|
|
77
|
+
'resources': value['resources'] == null ? undefined : (value['resources'].map(PostVerifyManifestResourcesInner_1.PostVerifyManifestResourcesInnerToJSON)),
|
|
78
|
+
'entry_points': value['entryPoints'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 PostVerifyManifestItemsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface PostVerifyManifestItemsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostVerifyManifestItemsInner
|
|
22
|
+
*/
|
|
23
|
+
identifier?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostVerifyManifestItemsInner
|
|
28
|
+
*/
|
|
29
|
+
identifierRef?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostVerifyManifestItemsInner
|
|
34
|
+
*/
|
|
35
|
+
title?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostVerifyManifestItemsInner
|
|
40
|
+
*/
|
|
41
|
+
masteryScore?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostVerifyManifestItemsInner
|
|
46
|
+
*/
|
|
47
|
+
maxTimeAllowed?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PostVerifyManifestItemsInner
|
|
52
|
+
*/
|
|
53
|
+
timeLimitAction?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PostVerifyManifestItemsInner
|
|
58
|
+
*/
|
|
59
|
+
dataFromLms?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PostVerifyManifestItemsInner
|
|
64
|
+
*/
|
|
65
|
+
minNormalizedMeasure?: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the PostVerifyManifestItemsInner interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfPostVerifyManifestItemsInner(value: object): value is PostVerifyManifestItemsInner;
|
|
71
|
+
export declare function PostVerifyManifestItemsInnerFromJSON(json: any): PostVerifyManifestItemsInner;
|
|
72
|
+
export declare function PostVerifyManifestItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifestItemsInner;
|
|
73
|
+
export declare function PostVerifyManifestItemsInnerToJSON(json: any): PostVerifyManifestItemsInner;
|
|
74
|
+
export declare function PostVerifyManifestItemsInnerToJSONTyped(value?: PostVerifyManifestItemsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPostVerifyManifestItemsInner = instanceOfPostVerifyManifestItemsInner;
|
|
17
|
+
exports.PostVerifyManifestItemsInnerFromJSON = PostVerifyManifestItemsInnerFromJSON;
|
|
18
|
+
exports.PostVerifyManifestItemsInnerFromJSONTyped = PostVerifyManifestItemsInnerFromJSONTyped;
|
|
19
|
+
exports.PostVerifyManifestItemsInnerToJSON = PostVerifyManifestItemsInnerToJSON;
|
|
20
|
+
exports.PostVerifyManifestItemsInnerToJSONTyped = PostVerifyManifestItemsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostVerifyManifestItemsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostVerifyManifestItemsInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PostVerifyManifestItemsInnerFromJSON(json) {
|
|
28
|
+
return PostVerifyManifestItemsInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PostVerifyManifestItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
36
|
+
'identifierRef': json['identifier_ref'] == null ? undefined : json['identifier_ref'],
|
|
37
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
38
|
+
'masteryScore': json['mastery_score'] == null ? undefined : json['mastery_score'],
|
|
39
|
+
'maxTimeAllowed': json['max_time_allowed'] == null ? undefined : json['max_time_allowed'],
|
|
40
|
+
'timeLimitAction': json['time_limit_action'] == null ? undefined : json['time_limit_action'],
|
|
41
|
+
'dataFromLms': json['data_from_lms'] == null ? undefined : json['data_from_lms'],
|
|
42
|
+
'minNormalizedMeasure': json['min_normalized_measure'] == null ? undefined : json['min_normalized_measure'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PostVerifyManifestItemsInnerToJSON(json) {
|
|
46
|
+
return PostVerifyManifestItemsInnerToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PostVerifyManifestItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'identifier': value['identifier'],
|
|
54
|
+
'identifier_ref': value['identifierRef'],
|
|
55
|
+
'title': value['title'],
|
|
56
|
+
'mastery_score': value['masteryScore'],
|
|
57
|
+
'max_time_allowed': value['maxTimeAllowed'],
|
|
58
|
+
'time_limit_action': value['timeLimitAction'],
|
|
59
|
+
'data_from_lms': value['dataFromLms'],
|
|
60
|
+
'min_normalized_measure': value['minNormalizedMeasure'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 PostVerifyManifestResourcesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface PostVerifyManifestResourcesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
22
|
+
*/
|
|
23
|
+
identifier?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
28
|
+
*/
|
|
29
|
+
resourceType?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
34
|
+
*/
|
|
35
|
+
scormType?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
40
|
+
*/
|
|
41
|
+
href?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof PostVerifyManifestResourcesInner
|
|
46
|
+
*/
|
|
47
|
+
files?: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PostVerifyManifestResourcesInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfPostVerifyManifestResourcesInner(value: object): value is PostVerifyManifestResourcesInner;
|
|
53
|
+
export declare function PostVerifyManifestResourcesInnerFromJSON(json: any): PostVerifyManifestResourcesInner;
|
|
54
|
+
export declare function PostVerifyManifestResourcesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostVerifyManifestResourcesInner;
|
|
55
|
+
export declare function PostVerifyManifestResourcesInnerToJSON(json: any): PostVerifyManifestResourcesInner;
|
|
56
|
+
export declare function PostVerifyManifestResourcesInnerToJSONTyped(value?: PostVerifyManifestResourcesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPostVerifyManifestResourcesInner = instanceOfPostVerifyManifestResourcesInner;
|
|
17
|
+
exports.PostVerifyManifestResourcesInnerFromJSON = PostVerifyManifestResourcesInnerFromJSON;
|
|
18
|
+
exports.PostVerifyManifestResourcesInnerFromJSONTyped = PostVerifyManifestResourcesInnerFromJSONTyped;
|
|
19
|
+
exports.PostVerifyManifestResourcesInnerToJSON = PostVerifyManifestResourcesInnerToJSON;
|
|
20
|
+
exports.PostVerifyManifestResourcesInnerToJSONTyped = PostVerifyManifestResourcesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostVerifyManifestResourcesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostVerifyManifestResourcesInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PostVerifyManifestResourcesInnerFromJSON(json) {
|
|
28
|
+
return PostVerifyManifestResourcesInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PostVerifyManifestResourcesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
36
|
+
'resourceType': json['resource_type'] == null ? undefined : json['resource_type'],
|
|
37
|
+
'scormType': json['scorm_type'] == null ? undefined : json['scorm_type'],
|
|
38
|
+
'href': json['href'] == null ? undefined : json['href'],
|
|
39
|
+
'files': json['files'] == null ? undefined : json['files'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function PostVerifyManifestResourcesInnerToJSON(json) {
|
|
43
|
+
return PostVerifyManifestResourcesInnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function PostVerifyManifestResourcesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'identifier': value['identifier'],
|
|
51
|
+
'resource_type': value['resourceType'],
|
|
52
|
+
'scorm_type': value['scormType'],
|
|
53
|
+
'href': value['href'],
|
|
54
|
+
'files': value['files'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -27,6 +27,9 @@ function PutQuizAnswerAnswerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
if (json == null) {
|
|
28
28
|
return json;
|
|
29
29
|
}
|
|
30
|
+
if (typeof json !== 'object') {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
30
33
|
if ((0, FillInBlank_1.instanceOfFillInBlank)(json)) {
|
|
31
34
|
return (0, FillInBlank_1.FillInBlankFromJSONTyped)(json, true);
|
|
32
35
|
}
|
|
@@ -45,6 +48,9 @@ function PutQuizAnswerAnswerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
48
|
if (value == null) {
|
|
46
49
|
return value;
|
|
47
50
|
}
|
|
51
|
+
if (typeof value !== 'object') {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
48
54
|
if ((0, FillInBlank_1.instanceOfFillInBlank)(value)) {
|
|
49
55
|
return (0, FillInBlank_1.FillInBlankToJSON)(value);
|
|
50
56
|
}
|
|
@@ -45,8 +45,8 @@ function QuizContentAssignmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
'due_date': value['dueDate'] == null ?
|
|
49
|
-
'available_from': value['availableFrom'] == null ?
|
|
50
|
-
'available_until': value['availableUntil'] == null ?
|
|
48
|
+
'due_date': value['dueDate'] == null ? value['dueDate'] : value['dueDate'].toISOString(),
|
|
49
|
+
'available_from': value['availableFrom'] == null ? value['availableFrom'] : value['availableFrom'].toISOString(),
|
|
50
|
+
'available_until': value['availableUntil'] == null ? value['availableUntil'] : value['availableUntil'].toISOString(),
|
|
51
51
|
};
|
|
52
52
|
}
|