@iblai/iblai-api 3.34.5-core
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/README.md +222 -0
- package/dist/index.cjs.js +7291 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +7267 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.umd.js +7297 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/types/core/ApiError.d.ts +10 -0
- package/dist/types/core/ApiRequestOptions.d.ts +13 -0
- package/dist/types/core/ApiResult.d.ts +7 -0
- package/dist/types/core/CancelablePromise.d.ts +20 -0
- package/dist/types/core/OpenAPI.d.ts +16 -0
- package/dist/types/core/request.d.ts +30 -0
- package/dist/types/index.d.ts +183 -0
- package/dist/types/models/AcceptanceEnum.d.ts +10 -0
- package/dist/types/models/ActiveUsersData.d.ts +18 -0
- package/dist/types/models/ActiveUsersList.d.ts +6 -0
- package/dist/types/models/ActiveUsersPerCourse.d.ts +10 -0
- package/dist/types/models/ActiveUsersPerCourseData.d.ts +14 -0
- package/dist/types/models/ActivityAPI.d.ts +8 -0
- package/dist/types/models/ActivityData.d.ts +38 -0
- package/dist/types/models/Assertion.d.ts +15 -0
- package/dist/types/models/Average.d.ts +4 -0
- package/dist/types/models/AverageData.d.ts +6 -0
- package/dist/types/models/AverageOvertime.d.ts +22 -0
- package/dist/types/models/AvgCourseGradeWithCutoff.d.ts +4 -0
- package/dist/types/models/AvgCourseGradeWithCutoffData.d.ts +10 -0
- package/dist/types/models/BlankEnum.d.ts +2 -0
- package/dist/types/models/BulkCreateAssertion.d.ts +4 -0
- package/dist/types/models/CampaignEnablement.d.ts +8 -0
- package/dist/types/models/CampaignExclusion.d.ts +8 -0
- package/dist/types/models/Company.d.ts +23 -0
- package/dist/types/models/ContextResponse.d.ts +7 -0
- package/dist/types/models/Count.d.ts +4 -0
- package/dist/types/models/CountData.d.ts +6 -0
- package/dist/types/models/CourseCompletionPerCourse.d.ts +6 -0
- package/dist/types/models/CourseCompletionPerCourseData.d.ts +22 -0
- package/dist/types/models/CourseCompletionSummaryDataOvertime.d.ts +18 -0
- package/dist/types/models/CourseCompletionSummaryOvertime.d.ts +6 -0
- package/dist/types/models/CourseGradeDetailBlock.d.ts +18 -0
- package/dist/types/models/CourseGradeDetailSubSection.d.ts +23 -0
- package/dist/types/models/CourseGradeSummary.d.ts +4 -0
- package/dist/types/models/CourseGradeSummaryData.d.ts +18 -0
- package/dist/types/models/CourseGradingDetail.d.ts +4 -0
- package/dist/types/models/CourseGradingDetailData.d.ts +12 -0
- package/dist/types/models/CoursePoint.d.ts +7 -0
- package/dist/types/models/CourseSkill.d.ts +8 -0
- package/dist/types/models/Credential.d.ts +28 -0
- package/dist/types/models/DesiredSkill.d.ts +4 -0
- package/dist/types/models/DetailedGradeSubsection.d.ts +22 -0
- package/dist/types/models/DetailedGradeView.d.ts +4 -0
- package/dist/types/models/DetailedGradeViewData.d.ts +12 -0
- package/dist/types/models/Education.d.ts +30 -0
- package/dist/types/models/EngagementPerCourse.d.ts +6 -0
- package/dist/types/models/EngagementPerCourseData.d.ts +26 -0
- package/dist/types/models/Enrollments.d.ts +8 -0
- package/dist/types/models/EnrollmentsData.d.ts +18 -0
- package/dist/types/models/EnrollmentsPerUser.d.ts +6 -0
- package/dist/types/models/EnrollmentsPerUserData.d.ts +18 -0
- package/dist/types/models/ErrorResponse.d.ts +8 -0
- package/dist/types/models/Experience.d.ts +29 -0
- package/dist/types/models/FloatOverTime.d.ts +10 -0
- package/dist/types/models/GradingPerUser.d.ts +8 -0
- package/dist/types/models/GradingPerUserData.d.ts +26 -0
- package/dist/types/models/GroupList.d.ts +6 -0
- package/dist/types/models/GroupListData.d.ts +16 -0
- package/dist/types/models/ImageUpload.d.ts +3 -0
- package/dist/types/models/Institution.d.ts +20 -0
- package/dist/types/models/InstitutionTypeEnum.d.ts +14 -0
- package/dist/types/models/Issuer.d.ts +9 -0
- package/dist/types/models/IssuerAuthority.d.ts +5 -0
- package/dist/types/models/LearnerInformationAPI.d.ts +4 -0
- package/dist/types/models/LearnerInformationAPIData.d.ts +83 -0
- package/dist/types/models/LtiKey.d.ts +19 -0
- package/dist/types/models/LtiLaunchGate.d.ts +8 -0
- package/dist/types/models/LtiTool.d.ts +46 -0
- package/dist/types/models/NetRevenueOverTime.d.ts +8 -0
- package/dist/types/models/NewPerLearnerList.d.ts +6 -0
- package/dist/types/models/NewPerLearnerListData.d.ts +17 -0
- package/dist/types/models/Notification.d.ts +13 -0
- package/dist/types/models/NotificationCount.d.ts +4 -0
- package/dist/types/models/NotificationPreview.d.ts +31 -0
- package/dist/types/models/NotificationSource.d.ts +8 -0
- package/dist/types/models/NotificationTemplateData.d.ts +26 -0
- package/dist/types/models/Order.d.ts +22 -0
- package/dist/types/models/OverTime.d.ts +3 -0
- package/dist/types/models/OverTimeWithTotal.d.ts +22 -0
- package/dist/types/models/OvertimeMeta.d.ts +30 -0
- package/dist/types/models/OvertimeWithChangeInfo.d.ts +24 -0
- package/dist/types/models/Pagination.d.ts +18 -0
- package/dist/types/models/PatchedNotification.d.ts +13 -0
- package/dist/types/models/PatchedPlatformPublicMetadata.d.ts +8 -0
- package/dist/types/models/PatchedSkillThreshold.d.ts +14 -0
- package/dist/types/models/PerLearnerCourseLastAccessData.d.ts +30 -0
- package/dist/types/models/PerLearnerCourseVideosWatched.d.ts +8 -0
- package/dist/types/models/PerLearnerCourseVideosWatchedData.d.ts +14 -0
- package/dist/types/models/PerLearnerLastAccess.d.ts +4 -0
- package/dist/types/models/PerLearnerLastAccessData.d.ts +11 -0
- package/dist/types/models/PerLearnerTimeSpentInCourseTree.d.ts +8 -0
- package/dist/types/models/PerformanceGradesPerCourse.d.ts +6 -0
- package/dist/types/models/PerformanceGradesPerCourseData.d.ts +22 -0
- package/dist/types/models/PerlearnerCourseProgress.d.ts +4 -0
- package/dist/types/models/PerlearnerCourseProgressData.d.ts +6 -0
- package/dist/types/models/PerlearnerEngagementVideosData.d.ts +30 -0
- package/dist/types/models/PerlearnerEngagementVideosWatchedPerCourse.d.ts +4 -0
- package/dist/types/models/PerlearnerGradeSummary.d.ts +4 -0
- package/dist/types/models/PerlearnerGradeSummaryData.d.ts +18 -0
- package/dist/types/models/PerlearnerGradeWithCutOff.d.ts +4 -0
- package/dist/types/models/PerlearnerGradeWithCutOffData.d.ts +10 -0
- package/dist/types/models/PerlearnerGradingPerCourseAPI.d.ts +4 -0
- package/dist/types/models/PerlearnerGradingPerCourseAPIData.d.ts +34 -0
- package/dist/types/models/PerlearnerUserList.d.ts +6 -0
- package/dist/types/models/PerlearnerUserListData.d.ts +34 -0
- package/dist/types/models/PlatformPublicMetadata.d.ts +8 -0
- package/dist/types/models/PointsPercentile.d.ts +8 -0
- package/dist/types/models/PreviewResponse.d.ts +11 -0
- package/dist/types/models/Product.d.ts +22 -0
- package/dist/types/models/ProductTable.d.ts +26 -0
- package/dist/types/models/Program.d.ts +24 -0
- package/dist/types/models/ProgramTypeEnum.d.ts +18 -0
- package/dist/types/models/Recipient.d.ts +8 -0
- package/dist/types/models/RecommendationSearchAPI.d.ts +3 -0
- package/dist/types/models/RedirectTokenRequest.d.ts +3 -0
- package/dist/types/models/RedirectTokenResponse.d.ts +5 -0
- package/dist/types/models/ReportCreate.d.ts +7 -0
- package/dist/types/models/ReportData.d.ts +28 -0
- package/dist/types/models/ReportDetail.d.ts +4 -0
- package/dist/types/models/ReportList.d.ts +4 -0
- package/dist/types/models/ReportRequest.d.ts +21 -0
- package/dist/types/models/ReportStatus.d.ts +41 -0
- package/dist/types/models/ReportedSkill.d.ts +4 -0
- package/dist/types/models/ResourcePoint.d.ts +7 -0
- package/dist/types/models/RevenueByProduct.d.ts +6 -0
- package/dist/types/models/SendNotification.d.ts +6 -0
- package/dist/types/models/SendResponse.d.ts +9 -0
- package/dist/types/models/Skill.d.ts +7 -0
- package/dist/types/models/SkillDetail.d.ts +9 -0
- package/dist/types/models/SkillInfo.d.ts +23 -0
- package/dist/types/models/SkillThreshold.d.ts +14 -0
- package/dist/types/models/StateEnum.d.ts +22 -0
- package/dist/types/models/StatusEnum.d.ts +10 -0
- package/dist/types/models/SubTimeChild.d.ts +18 -0
- package/dist/types/models/Summary.d.ts +18 -0
- package/dist/types/models/TimeChildData.d.ts +20 -0
- package/dist/types/models/TimeDetail.d.ts +8 -0
- package/dist/types/models/TimeDetailChild.d.ts +26 -0
- package/dist/types/models/TimeDetailData.d.ts +24 -0
- package/dist/types/models/TimeSpentByUsersInCourse.d.ts +6 -0
- package/dist/types/models/TimeSpentByUsersInCourseData.d.ts +22 -0
- package/dist/types/models/TimeSpentPerCourse.d.ts +6 -0
- package/dist/types/models/TimeSpentPerCourseData.d.ts +26 -0
- package/dist/types/models/TimeSpentPerUserResponse.d.ts +3 -0
- package/dist/types/models/TimeSpentUpdateRequest.d.ts +11 -0
- package/dist/types/models/TimeSpentUpdateResponse.d.ts +4 -0
- package/dist/types/models/TypeEnum.d.ts +18 -0
- package/dist/types/models/UploadedImage.d.ts +5 -0
- package/dist/types/models/UserInfo.d.ts +13 -0
- package/dist/types/models/UserSkill.d.ts +22 -0
- package/dist/types/models/UserSkillPointsPercentile.d.ts +8 -0
- package/dist/types/models/ValidateSourceResponse.d.ts +10 -0
- package/dist/types/models/Value.d.ts +4 -0
- package/dist/types/models/ValueData.d.ts +6 -0
- package/dist/types/models/VideoBlock.d.ts +14 -0
- package/dist/types/models/VideoEngagementPerCourse.d.ts +6 -0
- package/dist/types/models/VideoEngagementPerCourseData.d.ts +30 -0
- package/dist/types/models/VideosCount.d.ts +4 -0
- package/dist/types/models/VideosCountData.d.ts +6 -0
- package/dist/types/models/VideosInCourseSummary.d.ts +4 -0
- package/dist/types/models/VideosInCourseSummaryData.d.ts +12 -0
- package/dist/types/models/VideosSpecificCourse.d.ts +4 -0
- package/dist/types/models/VideosSpecificCourseData.d.ts +26 -0
- package/dist/types/models/VideosWatchedSubSection.d.ts +19 -0
- package/dist/types/models/WatchedVideosPerUser.d.ts +8 -0
- package/dist/types/models/WatchedVideosPerUserData.d.ts +18 -0
- package/dist/types/services/AnalyticsService.d.ts +51 -0
- package/dist/types/services/AudienceService.d.ts +348 -0
- package/dist/types/services/CareerService.d.ts +210 -0
- package/dist/types/services/CoreService.d.ts +196 -0
- package/dist/types/services/CredentialsService.d.ts +1184 -0
- package/dist/types/services/DepartmentsService.d.ts +43 -0
- package/dist/types/services/EngagementService.d.ts +467 -0
- package/dist/types/services/FinanceService.d.ts +52 -0
- package/dist/types/services/NotificationBuilderService.d.ts +58 -0
- package/dist/types/services/NotificationService.d.ts +118 -0
- package/dist/types/services/OverviewService.d.ts +184 -0
- package/dist/types/services/PerformanceService.d.ts +183 -0
- package/dist/types/services/PerlearnerService.d.ts +501 -0
- package/dist/types/services/PlatformService.d.ts +77 -0
- package/dist/types/services/RecommendationsService.d.ts +13 -0
- package/dist/types/services/ReportsService.d.ts +142 -0
- package/dist/types/services/SearchService.d.ts +276 -0
- package/dist/types/services/SkillsService.d.ts +377 -0
- package/dist/types/services/UserGroupsService.d.ts +49 -0
- package/package.json +39 -0
- package/rollup.config.js +113 -0
- package/src/core/ApiError.ts +25 -0
- package/src/core/ApiRequestOptions.ts +17 -0
- package/src/core/ApiResult.ts +11 -0
- package/src/core/CancelablePromise.ts +131 -0
- package/src/core/OpenAPI.ts +32 -0
- package/src/core/request.ts +322 -0
- package/src/index.ts +189 -0
- package/src/models/AcceptanceEnum.ts +14 -0
- package/src/models/ActiveUsersData.ts +23 -0
- package/src/models/ActiveUsersList.ts +11 -0
- package/src/models/ActiveUsersPerCourse.ts +15 -0
- package/src/models/ActiveUsersPerCourseData.ts +19 -0
- package/src/models/ActivityAPI.ts +13 -0
- package/src/models/ActivityData.ts +43 -0
- package/src/models/Assertion.ts +20 -0
- package/src/models/Average.ts +9 -0
- package/src/models/AverageData.ts +11 -0
- package/src/models/AverageOvertime.ts +27 -0
- package/src/models/AvgCourseGradeWithCutoff.ts +9 -0
- package/src/models/AvgCourseGradeWithCutoffData.ts +15 -0
- package/src/models/BlankEnum.ts +7 -0
- package/src/models/BulkCreateAssertion.ts +9 -0
- package/src/models/CampaignEnablement.ts +13 -0
- package/src/models/CampaignExclusion.ts +13 -0
- package/src/models/Company.ts +28 -0
- package/src/models/ContextResponse.ts +12 -0
- package/src/models/Count.ts +9 -0
- package/src/models/CountData.ts +11 -0
- package/src/models/CourseCompletionPerCourse.ts +11 -0
- package/src/models/CourseCompletionPerCourseData.ts +27 -0
- package/src/models/CourseCompletionSummaryDataOvertime.ts +23 -0
- package/src/models/CourseCompletionSummaryOvertime.ts +11 -0
- package/src/models/CourseGradeDetailBlock.ts +23 -0
- package/src/models/CourseGradeDetailSubSection.ts +28 -0
- package/src/models/CourseGradeSummary.ts +9 -0
- package/src/models/CourseGradeSummaryData.ts +23 -0
- package/src/models/CourseGradingDetail.ts +9 -0
- package/src/models/CourseGradingDetailData.ts +17 -0
- package/src/models/CoursePoint.ts +12 -0
- package/src/models/CourseSkill.ts +13 -0
- package/src/models/Credential.ts +33 -0
- package/src/models/DesiredSkill.ts +9 -0
- package/src/models/DetailedGradeSubsection.ts +27 -0
- package/src/models/DetailedGradeView.ts +9 -0
- package/src/models/DetailedGradeViewData.ts +17 -0
- package/src/models/Education.ts +35 -0
- package/src/models/EngagementPerCourse.ts +11 -0
- package/src/models/EngagementPerCourseData.ts +31 -0
- package/src/models/Enrollments.ts +13 -0
- package/src/models/EnrollmentsData.ts +23 -0
- package/src/models/EnrollmentsPerUser.ts +11 -0
- package/src/models/EnrollmentsPerUserData.ts +23 -0
- package/src/models/ErrorResponse.ts +13 -0
- package/src/models/Experience.ts +34 -0
- package/src/models/FloatOverTime.ts +15 -0
- package/src/models/GradingPerUser.ts +13 -0
- package/src/models/GradingPerUserData.ts +31 -0
- package/src/models/GroupList.ts +11 -0
- package/src/models/GroupListData.ts +21 -0
- package/src/models/ImageUpload.ts +8 -0
- package/src/models/Institution.ts +25 -0
- package/src/models/InstitutionTypeEnum.ts +18 -0
- package/src/models/Issuer.ts +14 -0
- package/src/models/IssuerAuthority.ts +10 -0
- package/src/models/LearnerInformationAPI.ts +9 -0
- package/src/models/LearnerInformationAPIData.ts +88 -0
- package/src/models/LtiKey.ts +24 -0
- package/src/models/LtiLaunchGate.ts +13 -0
- package/src/models/LtiTool.ts +51 -0
- package/src/models/NetRevenueOverTime.ts +13 -0
- package/src/models/NewPerLearnerList.ts +11 -0
- package/src/models/NewPerLearnerListData.ts +22 -0
- package/src/models/Notification.ts +18 -0
- package/src/models/NotificationCount.ts +9 -0
- package/src/models/NotificationPreview.ts +36 -0
- package/src/models/NotificationSource.ts +13 -0
- package/src/models/NotificationTemplateData.ts +31 -0
- package/src/models/Order.ts +27 -0
- package/src/models/OverTime.ts +8 -0
- package/src/models/OverTimeWithTotal.ts +27 -0
- package/src/models/OvertimeMeta.ts +35 -0
- package/src/models/OvertimeWithChangeInfo.ts +29 -0
- package/src/models/Pagination.ts +23 -0
- package/src/models/PatchedNotification.ts +18 -0
- package/src/models/PatchedPlatformPublicMetadata.ts +13 -0
- package/src/models/PatchedSkillThreshold.ts +19 -0
- package/src/models/PerLearnerCourseLastAccessData.ts +35 -0
- package/src/models/PerLearnerCourseVideosWatched.ts +13 -0
- package/src/models/PerLearnerCourseVideosWatchedData.ts +19 -0
- package/src/models/PerLearnerLastAccess.ts +9 -0
- package/src/models/PerLearnerLastAccessData.ts +16 -0
- package/src/models/PerLearnerTimeSpentInCourseTree.ts +13 -0
- package/src/models/PerformanceGradesPerCourse.ts +11 -0
- package/src/models/PerformanceGradesPerCourseData.ts +27 -0
- package/src/models/PerlearnerCourseProgress.ts +9 -0
- package/src/models/PerlearnerCourseProgressData.ts +11 -0
- package/src/models/PerlearnerEngagementVideosData.ts +35 -0
- package/src/models/PerlearnerEngagementVideosWatchedPerCourse.ts +9 -0
- package/src/models/PerlearnerGradeSummary.ts +9 -0
- package/src/models/PerlearnerGradeSummaryData.ts +23 -0
- package/src/models/PerlearnerGradeWithCutOff.ts +9 -0
- package/src/models/PerlearnerGradeWithCutOffData.ts +15 -0
- package/src/models/PerlearnerGradingPerCourseAPI.ts +9 -0
- package/src/models/PerlearnerGradingPerCourseAPIData.ts +39 -0
- package/src/models/PerlearnerUserList.ts +11 -0
- package/src/models/PerlearnerUserListData.ts +39 -0
- package/src/models/PlatformPublicMetadata.ts +13 -0
- package/src/models/PointsPercentile.ts +13 -0
- package/src/models/PreviewResponse.ts +16 -0
- package/src/models/Product.ts +27 -0
- package/src/models/ProductTable.ts +31 -0
- package/src/models/Program.ts +29 -0
- package/src/models/ProgramTypeEnum.ts +22 -0
- package/src/models/Recipient.ts +13 -0
- package/src/models/RecommendationSearchAPI.ts +8 -0
- package/src/models/RedirectTokenRequest.ts +8 -0
- package/src/models/RedirectTokenResponse.ts +10 -0
- package/src/models/ReportCreate.ts +12 -0
- package/src/models/ReportData.ts +33 -0
- package/src/models/ReportDetail.ts +9 -0
- package/src/models/ReportList.ts +9 -0
- package/src/models/ReportRequest.ts +26 -0
- package/src/models/ReportStatus.ts +46 -0
- package/src/models/ReportedSkill.ts +9 -0
- package/src/models/ResourcePoint.ts +12 -0
- package/src/models/RevenueByProduct.ts +11 -0
- package/src/models/SendNotification.ts +11 -0
- package/src/models/SendResponse.ts +14 -0
- package/src/models/Skill.ts +12 -0
- package/src/models/SkillDetail.ts +14 -0
- package/src/models/SkillInfo.ts +28 -0
- package/src/models/SkillThreshold.ts +19 -0
- package/src/models/StateEnum.ts +26 -0
- package/src/models/StatusEnum.ts +14 -0
- package/src/models/SubTimeChild.ts +23 -0
- package/src/models/Summary.ts +23 -0
- package/src/models/TimeChildData.ts +25 -0
- package/src/models/TimeDetail.ts +13 -0
- package/src/models/TimeDetailChild.ts +31 -0
- package/src/models/TimeDetailData.ts +29 -0
- package/src/models/TimeSpentByUsersInCourse.ts +11 -0
- package/src/models/TimeSpentByUsersInCourseData.ts +27 -0
- package/src/models/TimeSpentPerCourse.ts +11 -0
- package/src/models/TimeSpentPerCourseData.ts +31 -0
- package/src/models/TimeSpentPerUserResponse.ts +8 -0
- package/src/models/TimeSpentUpdateRequest.ts +16 -0
- package/src/models/TimeSpentUpdateResponse.ts +9 -0
- package/src/models/TypeEnum.ts +22 -0
- package/src/models/UploadedImage.ts +10 -0
- package/src/models/UserInfo.ts +18 -0
- package/src/models/UserSkill.ts +27 -0
- package/src/models/UserSkillPointsPercentile.ts +13 -0
- package/src/models/ValidateSourceResponse.ts +15 -0
- package/src/models/Value.ts +9 -0
- package/src/models/ValueData.ts +11 -0
- package/src/models/VideoBlock.ts +19 -0
- package/src/models/VideoEngagementPerCourse.ts +11 -0
- package/src/models/VideoEngagementPerCourseData.ts +35 -0
- package/src/models/VideosCount.ts +9 -0
- package/src/models/VideosCountData.ts +11 -0
- package/src/models/VideosInCourseSummary.ts +9 -0
- package/src/models/VideosInCourseSummaryData.ts +17 -0
- package/src/models/VideosSpecificCourse.ts +9 -0
- package/src/models/VideosSpecificCourseData.ts +31 -0
- package/src/models/VideosWatchedSubSection.ts +24 -0
- package/src/models/WatchedVideosPerUser.ts +13 -0
- package/src/models/WatchedVideosPerUserData.ts +23 -0
- package/src/services/AnalyticsService.ts +94 -0
- package/src/services/AudienceService.ts +602 -0
- package/src/services/CareerService.ts +568 -0
- package/src/services/CoreService.ts +487 -0
- package/src/services/CredentialsService.ts +1647 -0
- package/src/services/DepartmentsService.ts +85 -0
- package/src/services/EngagementService.ts +907 -0
- package/src/services/FinanceService.ts +136 -0
- package/src/services/NotificationBuilderService.ts +133 -0
- package/src/services/NotificationService.ts +294 -0
- package/src/services/OverviewService.ts +324 -0
- package/src/services/PerformanceService.ts +329 -0
- package/src/services/PerlearnerService.ts +1009 -0
- package/src/services/PlatformService.ts +181 -0
- package/src/services/RecommendationsService.ts +31 -0
- package/src/services/ReportsService.ts +218 -0
- package/src/services/SearchService.ts +309 -0
- package/src/services/SkillsService.ts +521 -0
- package/src/services/UserGroupsService.ts +91 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { Average } from '../models/Average';
|
|
6
|
+
import type { CourseCompletionSummaryOvertime } from '../models/CourseCompletionSummaryOvertime';
|
|
7
|
+
import type { OvertimeWithChangeInfo } from '../models/OvertimeWithChangeInfo';
|
|
8
|
+
import type { PerlearnerUserList } from '../models/PerlearnerUserList';
|
|
9
|
+
import type { TimeSpentPerCourse } from '../models/TimeSpentPerCourse';
|
|
10
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
12
|
+
import { request as __request } from '../core/request';
|
|
13
|
+
export class OverviewService {
|
|
14
|
+
/**
|
|
15
|
+
* Get active user counts over time.
|
|
16
|
+
*
|
|
17
|
+
* This endpoint provides daily counts of active users (users with known activity)
|
|
18
|
+
* over a specified time period.
|
|
19
|
+
*
|
|
20
|
+
* Query Parameters:
|
|
21
|
+
* start_date (str, optional): Start date for the time range (ISO format)
|
|
22
|
+
* end_date (str, optional): End date for the time range (ISO format)
|
|
23
|
+
*
|
|
24
|
+
* Returns:
|
|
25
|
+
* Daily active user counts over the specified time period, with change metrics
|
|
26
|
+
* compared to previous periods.
|
|
27
|
+
*
|
|
28
|
+
* Default time range is the last 7 days if no dates are specified.
|
|
29
|
+
*
|
|
30
|
+
* An active user is defined as a user with any activity within the past 30 days.
|
|
31
|
+
* @param org
|
|
32
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
33
|
+
* @param endDate end date. ISO 8601
|
|
34
|
+
* @param format Format
|
|
35
|
+
*
|
|
36
|
+
* * `json` - json
|
|
37
|
+
* @param includeMainPlatform Include main platform data
|
|
38
|
+
* @param startDate start date. ISO 8601
|
|
39
|
+
* @returns OvertimeWithChangeInfo
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
public static overviewOrgsActiveUsersRetrieve(
|
|
43
|
+
org: string,
|
|
44
|
+
departmentId?: number,
|
|
45
|
+
endDate?: string,
|
|
46
|
+
format: 'json' = 'json',
|
|
47
|
+
includeMainPlatform: boolean = true,
|
|
48
|
+
startDate?: string,
|
|
49
|
+
): CancelablePromise<OvertimeWithChangeInfo> {
|
|
50
|
+
return __request(OpenAPI, {
|
|
51
|
+
method: 'GET',
|
|
52
|
+
url: '/api/overview/orgs/{org}/active-users',
|
|
53
|
+
path: {
|
|
54
|
+
'org': org,
|
|
55
|
+
},
|
|
56
|
+
query: {
|
|
57
|
+
'department_id': departmentId,
|
|
58
|
+
'end_date': endDate,
|
|
59
|
+
'format': format,
|
|
60
|
+
'include_main_platform': includeMainPlatform,
|
|
61
|
+
'start_date': startDate,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get average grade value for platform, course, or user.
|
|
67
|
+
*
|
|
68
|
+
* This endpoint returns the average grade at different levels:
|
|
69
|
+
* - Platform level: Average grade across all courses
|
|
70
|
+
* - Course level: Average grade for a specific course
|
|
71
|
+
* - Learner level: Average grade for a specific learner
|
|
72
|
+
* - Course-learner level: Grade for a specific learner in a specific course
|
|
73
|
+
*
|
|
74
|
+
* Query Parameters:
|
|
75
|
+
* course_id (str, optional): Filter by course ID
|
|
76
|
+
* learner_id (str, optional): Filter by username or email
|
|
77
|
+
*
|
|
78
|
+
* Returns:
|
|
79
|
+
* The average grade value based on the specified filters.
|
|
80
|
+
*
|
|
81
|
+
* Access Control:
|
|
82
|
+
* - Platform admins can access any grade data
|
|
83
|
+
* - Learners can access their own grade data
|
|
84
|
+
* @param org
|
|
85
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
86
|
+
* @param format Format
|
|
87
|
+
*
|
|
88
|
+
* * `json` - json
|
|
89
|
+
* @param includeMainPlatform Include main platform data
|
|
90
|
+
* @returns Average
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
public static overviewOrgsAverageGradeRetrieve(
|
|
94
|
+
org: string,
|
|
95
|
+
departmentId?: number,
|
|
96
|
+
format: 'json' = 'json',
|
|
97
|
+
includeMainPlatform: boolean = true,
|
|
98
|
+
): CancelablePromise<Average> {
|
|
99
|
+
return __request(OpenAPI, {
|
|
100
|
+
method: 'GET',
|
|
101
|
+
url: '/api/overview/orgs/{org}/average-grade',
|
|
102
|
+
path: {
|
|
103
|
+
'org': org,
|
|
104
|
+
},
|
|
105
|
+
query: {
|
|
106
|
+
'department_id': departmentId,
|
|
107
|
+
'format': format,
|
|
108
|
+
'include_main_platform': includeMainPlatform,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Get course completion summary metrics over time.
|
|
114
|
+
*
|
|
115
|
+
* This endpoint provides completion statistics across the platform over a
|
|
116
|
+
* specified time period, including daily completion counts and overall metrics.
|
|
117
|
+
*
|
|
118
|
+
* Query Parameters:
|
|
119
|
+
* start_date (str): Start date for the time range (ISO format)
|
|
120
|
+
* end_date (str): End date for the time range (ISO format)
|
|
121
|
+
*
|
|
122
|
+
* Returns:
|
|
123
|
+
* Completion data including:
|
|
124
|
+
* - Daily completion counts over time
|
|
125
|
+
* - Total unique user count
|
|
126
|
+
* - Total completion count
|
|
127
|
+
* - Completion percentage
|
|
128
|
+
* - Change metrics compared to previous periods
|
|
129
|
+
*
|
|
130
|
+
* Default time range is the last 7 days if no dates are specified.
|
|
131
|
+
* @param org
|
|
132
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
133
|
+
* @param endDate end date. ISO 8601
|
|
134
|
+
* @param format Format
|
|
135
|
+
*
|
|
136
|
+
* * `json` - json
|
|
137
|
+
* @param includeMainPlatform Include main platform data
|
|
138
|
+
* @param startDate start date. ISO 8601
|
|
139
|
+
* @returns CourseCompletionSummaryOvertime
|
|
140
|
+
* @throws ApiError
|
|
141
|
+
*/
|
|
142
|
+
public static overviewOrgsCoursesCompletionsRetrieve(
|
|
143
|
+
org: string,
|
|
144
|
+
departmentId?: number,
|
|
145
|
+
endDate?: string,
|
|
146
|
+
format: 'json' = 'json',
|
|
147
|
+
includeMainPlatform: boolean = true,
|
|
148
|
+
startDate?: string,
|
|
149
|
+
): CancelablePromise<CourseCompletionSummaryOvertime> {
|
|
150
|
+
return __request(OpenAPI, {
|
|
151
|
+
method: 'GET',
|
|
152
|
+
url: '/api/overview/orgs/{org}/courses/completions',
|
|
153
|
+
path: {
|
|
154
|
+
'org': org,
|
|
155
|
+
},
|
|
156
|
+
query: {
|
|
157
|
+
'department_id': departmentId,
|
|
158
|
+
'end_date': endDate,
|
|
159
|
+
'format': format,
|
|
160
|
+
'include_main_platform': includeMainPlatform,
|
|
161
|
+
'start_date': startDate,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* List all learners on the platform with aggregated metrics.
|
|
167
|
+
*
|
|
168
|
+
* This endpoint returns a paginated list of all learners with key metrics including:
|
|
169
|
+
* - Enrollment counts
|
|
170
|
+
* - Completion counts
|
|
171
|
+
* - Time spent on platform
|
|
172
|
+
*
|
|
173
|
+
* Query Parameters:
|
|
174
|
+
* page (int): Page number for pagination
|
|
175
|
+
* length (int): Number of items per page
|
|
176
|
+
* search (str): Filter learners by username, email, or name
|
|
177
|
+
*
|
|
178
|
+
* Returns:
|
|
179
|
+
* A paginated list of learners with their associated metrics.
|
|
180
|
+
* @param org
|
|
181
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
182
|
+
* @param format Format
|
|
183
|
+
*
|
|
184
|
+
* * `json` - json
|
|
185
|
+
* @param includeMainPlatform Include main platform data
|
|
186
|
+
* @param length Size of data to return
|
|
187
|
+
* @param page Page offset
|
|
188
|
+
* @param search Search string for learner
|
|
189
|
+
* @returns PerlearnerUserList
|
|
190
|
+
* @throws ApiError
|
|
191
|
+
*/
|
|
192
|
+
public static overviewOrgsLearnersRetrieve(
|
|
193
|
+
org: string,
|
|
194
|
+
departmentId?: number,
|
|
195
|
+
format: 'json' = 'json',
|
|
196
|
+
includeMainPlatform: boolean = true,
|
|
197
|
+
length?: number,
|
|
198
|
+
page?: number,
|
|
199
|
+
search?: string,
|
|
200
|
+
): CancelablePromise<PerlearnerUserList> {
|
|
201
|
+
return __request(OpenAPI, {
|
|
202
|
+
method: 'GET',
|
|
203
|
+
url: '/api/overview/orgs/{org}/learners',
|
|
204
|
+
path: {
|
|
205
|
+
'org': org,
|
|
206
|
+
},
|
|
207
|
+
query: {
|
|
208
|
+
'department_id': departmentId,
|
|
209
|
+
'format': format,
|
|
210
|
+
'include_main_platform': includeMainPlatform,
|
|
211
|
+
'length': length,
|
|
212
|
+
'page': page,
|
|
213
|
+
'search': search,
|
|
214
|
+
},
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Get time spent statistics on a per-course basis.
|
|
219
|
+
*
|
|
220
|
+
* This endpoint provides a paginated list of courses with the total time
|
|
221
|
+
* spent by users in each course.
|
|
222
|
+
*
|
|
223
|
+
* Query Parameters:
|
|
224
|
+
* start_date (str, optional): Start date for filtering (ISO format)
|
|
225
|
+
* end_date (str, optional): End date for filtering (ISO format)
|
|
226
|
+
* page (int, optional): Page number for pagination
|
|
227
|
+
* length (int, optional): Number of items per page
|
|
228
|
+
*
|
|
229
|
+
* Returns:
|
|
230
|
+
* A paginated list of courses with:
|
|
231
|
+
* - Course identification (ID and name)
|
|
232
|
+
* - Total time spent (in seconds)
|
|
233
|
+
* - Formatted time spent (human-readable)
|
|
234
|
+
* - Percentage of total platform time
|
|
235
|
+
* @param org
|
|
236
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
237
|
+
* @param endDate end date. ISO 8601
|
|
238
|
+
* @param format Format
|
|
239
|
+
*
|
|
240
|
+
* * `json` - json
|
|
241
|
+
* @param includeMainPlatform Include main platform data
|
|
242
|
+
* @param length Size of data to return
|
|
243
|
+
* @param page Page offset
|
|
244
|
+
* @param startDate start date. ISO 8601
|
|
245
|
+
* @returns TimeSpentPerCourse
|
|
246
|
+
* @throws ApiError
|
|
247
|
+
*/
|
|
248
|
+
public static overviewOrgsMostActiveCoursesRetrieve(
|
|
249
|
+
org: string,
|
|
250
|
+
departmentId?: number,
|
|
251
|
+
endDate?: string,
|
|
252
|
+
format: 'json' = 'json',
|
|
253
|
+
includeMainPlatform: boolean = true,
|
|
254
|
+
length?: number,
|
|
255
|
+
page?: number,
|
|
256
|
+
startDate?: string,
|
|
257
|
+
): CancelablePromise<TimeSpentPerCourse> {
|
|
258
|
+
return __request(OpenAPI, {
|
|
259
|
+
method: 'GET',
|
|
260
|
+
url: '/api/overview/orgs/{org}/most-active-courses',
|
|
261
|
+
path: {
|
|
262
|
+
'org': org,
|
|
263
|
+
},
|
|
264
|
+
query: {
|
|
265
|
+
'department_id': departmentId,
|
|
266
|
+
'end_date': endDate,
|
|
267
|
+
'format': format,
|
|
268
|
+
'include_main_platform': includeMainPlatform,
|
|
269
|
+
'length': length,
|
|
270
|
+
'page': page,
|
|
271
|
+
'start_date': startDate,
|
|
272
|
+
},
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Get registered user counts over time.
|
|
277
|
+
*
|
|
278
|
+
* This endpoint provides daily counts of new user registrations over a
|
|
279
|
+
* specified time period.
|
|
280
|
+
*
|
|
281
|
+
* Query Parameters:
|
|
282
|
+
* start_date (str, optional): Start date for the time range (ISO format)
|
|
283
|
+
* end_date (str, optional): End date for the time range (ISO format)
|
|
284
|
+
*
|
|
285
|
+
* Returns:
|
|
286
|
+
* Daily registration counts over the specified time period, with change metrics
|
|
287
|
+
* compared to previous periods.
|
|
288
|
+
*
|
|
289
|
+
* Default time range is the last 7 days if no dates are specified.
|
|
290
|
+
* @param org
|
|
291
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
292
|
+
* @param endDate end date. ISO 8601
|
|
293
|
+
* @param format Format
|
|
294
|
+
*
|
|
295
|
+
* * `json` - json
|
|
296
|
+
* @param includeMainPlatform Include main platform data
|
|
297
|
+
* @param startDate start date. ISO 8601
|
|
298
|
+
* @returns OvertimeWithChangeInfo
|
|
299
|
+
* @throws ApiError
|
|
300
|
+
*/
|
|
301
|
+
public static overviewOrgsRegisteredUsersRetrieve(
|
|
302
|
+
org: string,
|
|
303
|
+
departmentId?: number,
|
|
304
|
+
endDate?: string,
|
|
305
|
+
format: 'json' = 'json',
|
|
306
|
+
includeMainPlatform: boolean = true,
|
|
307
|
+
startDate?: string,
|
|
308
|
+
): CancelablePromise<OvertimeWithChangeInfo> {
|
|
309
|
+
return __request(OpenAPI, {
|
|
310
|
+
method: 'GET',
|
|
311
|
+
url: '/api/overview/orgs/{org}/registered-users',
|
|
312
|
+
path: {
|
|
313
|
+
'org': org,
|
|
314
|
+
},
|
|
315
|
+
query: {
|
|
316
|
+
'department_id': departmentId,
|
|
317
|
+
'end_date': endDate,
|
|
318
|
+
'format': format,
|
|
319
|
+
'include_main_platform': includeMainPlatform,
|
|
320
|
+
'start_date': startDate,
|
|
321
|
+
},
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { Average } from '../models/Average';
|
|
6
|
+
import type { AvgCourseGradeWithCutoff } from '../models/AvgCourseGradeWithCutoff';
|
|
7
|
+
import type { CourseGradeSummary } from '../models/CourseGradeSummary';
|
|
8
|
+
import type { CourseGradingDetail } from '../models/CourseGradingDetail';
|
|
9
|
+
import type { GradingPerUser } from '../models/GradingPerUser';
|
|
10
|
+
import type { PerformanceGradesPerCourse } from '../models/PerformanceGradesPerCourse';
|
|
11
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
13
|
+
import { request as __request } from '../core/request';
|
|
14
|
+
export class PerformanceService {
|
|
15
|
+
/**
|
|
16
|
+
* Get average grade value for platform, course, or user.
|
|
17
|
+
*
|
|
18
|
+
* This endpoint returns the average grade at different levels:
|
|
19
|
+
* - Platform level: Average grade across all courses
|
|
20
|
+
* - Course level: Average grade for a specific course
|
|
21
|
+
* - Learner level: Average grade for a specific learner
|
|
22
|
+
* - Course-learner level: Grade for a specific learner in a specific course
|
|
23
|
+
*
|
|
24
|
+
* Query Parameters:
|
|
25
|
+
* course_id (str, optional): Filter by course ID
|
|
26
|
+
* learner_id (str, optional): Filter by username or email
|
|
27
|
+
*
|
|
28
|
+
* Returns:
|
|
29
|
+
* The average grade value based on the specified filters.
|
|
30
|
+
*
|
|
31
|
+
* Access Control:
|
|
32
|
+
* - Platform admins can access any grade data
|
|
33
|
+
* - Learners can access their own grade data
|
|
34
|
+
* @param courseId
|
|
35
|
+
* @param org
|
|
36
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
37
|
+
* @param format Format
|
|
38
|
+
*
|
|
39
|
+
* * `json` - json
|
|
40
|
+
* @param includeMainPlatform Include main platform data
|
|
41
|
+
* @returns Average
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
public static performanceOrgsCoursesGradingAverageRetrieve(
|
|
45
|
+
courseId: string,
|
|
46
|
+
org: string,
|
|
47
|
+
departmentId?: number,
|
|
48
|
+
format: 'json' = 'json',
|
|
49
|
+
includeMainPlatform: boolean = true,
|
|
50
|
+
): CancelablePromise<Average> {
|
|
51
|
+
return __request(OpenAPI, {
|
|
52
|
+
method: 'GET',
|
|
53
|
+
url: '/api/performance/orgs/{org}/courses/{course_id}/grading/average',
|
|
54
|
+
path: {
|
|
55
|
+
'course_id': courseId,
|
|
56
|
+
'org': org,
|
|
57
|
+
},
|
|
58
|
+
query: {
|
|
59
|
+
'department_id': departmentId,
|
|
60
|
+
'format': format,
|
|
61
|
+
'include_main_platform': includeMainPlatform,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns average course grade and grade cuttoff
|
|
67
|
+
*
|
|
68
|
+
* e.g
|
|
69
|
+
* ```
|
|
70
|
+
* {
|
|
71
|
+
* "data": {
|
|
72
|
+
* "grade_cutoffs": {
|
|
73
|
+
* "A": 90,
|
|
74
|
+
* "B": 80,
|
|
75
|
+
* "C": 70,
|
|
76
|
+
* },
|
|
77
|
+
* "average_grade": 50.0,
|
|
78
|
+
* }
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* Kwargs
|
|
83
|
+
* course_id
|
|
84
|
+
* @param courseId
|
|
85
|
+
* @param org
|
|
86
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
87
|
+
* @param format Format
|
|
88
|
+
*
|
|
89
|
+
* * `json` - json
|
|
90
|
+
* @param includeMainPlatform Include main platform data
|
|
91
|
+
* @returns AvgCourseGradeWithCutoff
|
|
92
|
+
* @throws ApiError
|
|
93
|
+
*/
|
|
94
|
+
public static performanceOrgsCoursesGradingAverageWithCutoffRetrieve(
|
|
95
|
+
courseId: string,
|
|
96
|
+
org: string,
|
|
97
|
+
departmentId?: number,
|
|
98
|
+
format: 'json' = 'json',
|
|
99
|
+
includeMainPlatform: boolean = true,
|
|
100
|
+
): CancelablePromise<AvgCourseGradeWithCutoff> {
|
|
101
|
+
return __request(OpenAPI, {
|
|
102
|
+
method: 'GET',
|
|
103
|
+
url: '/api/performance/orgs/{org}/courses/{course_id}/grading/average-with-cutoff',
|
|
104
|
+
path: {
|
|
105
|
+
'course_id': courseId,
|
|
106
|
+
'org': org,
|
|
107
|
+
},
|
|
108
|
+
query: {
|
|
109
|
+
'department_id': departmentId,
|
|
110
|
+
'format': format,
|
|
111
|
+
'include_main_platform': includeMainPlatform,
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Grading summary for the entire course overview in a tree-like format
|
|
117
|
+
*
|
|
118
|
+
* Kwargs
|
|
119
|
+
* course_id <required>
|
|
120
|
+
* @param courseId
|
|
121
|
+
* @param org
|
|
122
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
123
|
+
* @param format Format
|
|
124
|
+
*
|
|
125
|
+
* * `json` - json
|
|
126
|
+
* @param includeMainPlatform Include main platform data
|
|
127
|
+
* @returns CourseGradingDetail
|
|
128
|
+
* @throws ApiError
|
|
129
|
+
*/
|
|
130
|
+
public static performanceOrgsCoursesGradingDetailRetrieve(
|
|
131
|
+
courseId: string,
|
|
132
|
+
org: string,
|
|
133
|
+
departmentId?: number,
|
|
134
|
+
format: 'json' = 'json',
|
|
135
|
+
includeMainPlatform: boolean = true,
|
|
136
|
+
): CancelablePromise<CourseGradingDetail> {
|
|
137
|
+
return __request(OpenAPI, {
|
|
138
|
+
method: 'GET',
|
|
139
|
+
url: '/api/performance/orgs/{org}/courses/{course_id}/grading/detail',
|
|
140
|
+
path: {
|
|
141
|
+
'course_id': courseId,
|
|
142
|
+
'org': org,
|
|
143
|
+
},
|
|
144
|
+
query: {
|
|
145
|
+
'department_id': departmentId,
|
|
146
|
+
'format': format,
|
|
147
|
+
'include_main_platform': includeMainPlatform,
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Grading information per enrolled user in a course
|
|
153
|
+
*
|
|
154
|
+
* Kwargs
|
|
155
|
+
* course_id <required>
|
|
156
|
+
* @param courseId
|
|
157
|
+
* @param org
|
|
158
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
159
|
+
* @param format Format
|
|
160
|
+
*
|
|
161
|
+
* * `json` - json
|
|
162
|
+
* @param includeMainPlatform Include main platform data
|
|
163
|
+
* @returns GradingPerUser
|
|
164
|
+
* @throws ApiError
|
|
165
|
+
*/
|
|
166
|
+
public static performanceOrgsCoursesGradingPerLearnerRetrieve(
|
|
167
|
+
courseId: string,
|
|
168
|
+
org: string,
|
|
169
|
+
departmentId?: number,
|
|
170
|
+
format: 'json' = 'json',
|
|
171
|
+
includeMainPlatform: boolean = true,
|
|
172
|
+
): CancelablePromise<GradingPerUser> {
|
|
173
|
+
return __request(OpenAPI, {
|
|
174
|
+
method: 'GET',
|
|
175
|
+
url: '/api/performance/orgs/{org}/courses/{course_id}/grading/per-learner',
|
|
176
|
+
path: {
|
|
177
|
+
'course_id': courseId,
|
|
178
|
+
'org': org,
|
|
179
|
+
},
|
|
180
|
+
query: {
|
|
181
|
+
'department_id': departmentId,
|
|
182
|
+
'format': format,
|
|
183
|
+
'include_main_platform': includeMainPlatform,
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns average grades across various assignment types in a course
|
|
189
|
+
*
|
|
190
|
+
* Query Params
|
|
191
|
+
* course_id
|
|
192
|
+
*
|
|
193
|
+
* Returns:
|
|
194
|
+
* dict
|
|
195
|
+
* {
|
|
196
|
+
* "data": [
|
|
197
|
+
* {
|
|
198
|
+
* "assignment_type': <str>,
|
|
199
|
+
* "weight": <float>,
|
|
200
|
+
* "average_weighted_grade": <float>,
|
|
201
|
+
* "average_section_grade": <float>
|
|
202
|
+
* }, ...
|
|
203
|
+
* ]
|
|
204
|
+
* }
|
|
205
|
+
* @param courseId
|
|
206
|
+
* @param org
|
|
207
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
208
|
+
* @param format Format
|
|
209
|
+
*
|
|
210
|
+
* * `json` - json
|
|
211
|
+
* @param includeMainPlatform Include main platform data
|
|
212
|
+
* @returns CourseGradeSummary
|
|
213
|
+
* @throws ApiError
|
|
214
|
+
*/
|
|
215
|
+
public static performanceOrgsCoursesGradingSummaryRetrieve(
|
|
216
|
+
courseId: string,
|
|
217
|
+
org: string,
|
|
218
|
+
departmentId?: number,
|
|
219
|
+
format: 'json' = 'json',
|
|
220
|
+
includeMainPlatform: boolean = true,
|
|
221
|
+
): CancelablePromise<CourseGradeSummary> {
|
|
222
|
+
return __request(OpenAPI, {
|
|
223
|
+
method: 'GET',
|
|
224
|
+
url: '/api/performance/orgs/{org}/courses/{course_id}/grading/summary',
|
|
225
|
+
path: {
|
|
226
|
+
'course_id': courseId,
|
|
227
|
+
'org': org,
|
|
228
|
+
},
|
|
229
|
+
query: {
|
|
230
|
+
'department_id': departmentId,
|
|
231
|
+
'format': format,
|
|
232
|
+
'include_main_platform': includeMainPlatform,
|
|
233
|
+
},
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Get average grade value for platform, course, or user.
|
|
238
|
+
*
|
|
239
|
+
* This endpoint returns the average grade at different levels:
|
|
240
|
+
* - Platform level: Average grade across all courses
|
|
241
|
+
* - Course level: Average grade for a specific course
|
|
242
|
+
* - Learner level: Average grade for a specific learner
|
|
243
|
+
* - Course-learner level: Grade for a specific learner in a specific course
|
|
244
|
+
*
|
|
245
|
+
* Query Parameters:
|
|
246
|
+
* course_id (str, optional): Filter by course ID
|
|
247
|
+
* learner_id (str, optional): Filter by username or email
|
|
248
|
+
*
|
|
249
|
+
* Returns:
|
|
250
|
+
* The average grade value based on the specified filters.
|
|
251
|
+
*
|
|
252
|
+
* Access Control:
|
|
253
|
+
* - Platform admins can access any grade data
|
|
254
|
+
* - Learners can access their own grade data
|
|
255
|
+
* @param org
|
|
256
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
257
|
+
* @param format Format
|
|
258
|
+
*
|
|
259
|
+
* * `json` - json
|
|
260
|
+
* @param includeMainPlatform Include main platform data
|
|
261
|
+
* @returns Average
|
|
262
|
+
* @throws ApiError
|
|
263
|
+
*/
|
|
264
|
+
public static performanceOrgsGradingAverageRetrieve(
|
|
265
|
+
org: string,
|
|
266
|
+
departmentId?: number,
|
|
267
|
+
format: 'json' = 'json',
|
|
268
|
+
includeMainPlatform: boolean = true,
|
|
269
|
+
): CancelablePromise<Average> {
|
|
270
|
+
return __request(OpenAPI, {
|
|
271
|
+
method: 'GET',
|
|
272
|
+
url: '/api/performance/orgs/{org}/grading/average',
|
|
273
|
+
path: {
|
|
274
|
+
'org': org,
|
|
275
|
+
},
|
|
276
|
+
query: {
|
|
277
|
+
'department_id': departmentId,
|
|
278
|
+
'format': format,
|
|
279
|
+
'include_main_platform': includeMainPlatform,
|
|
280
|
+
},
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* List grade-related performance data for all courses.
|
|
285
|
+
*
|
|
286
|
+
* This endpoint provides a comprehensive view of grade performance across
|
|
287
|
+
* courses, including enrollment counts, pass rates, and average grades.
|
|
288
|
+
*
|
|
289
|
+
* Returns:
|
|
290
|
+
* A paginated list of courses with:
|
|
291
|
+
* - Course identification (ID and name)
|
|
292
|
+
* - Enrollment count
|
|
293
|
+
* - Number of students who passed
|
|
294
|
+
* - Average grade
|
|
295
|
+
* @param org
|
|
296
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
297
|
+
* @param format Format
|
|
298
|
+
*
|
|
299
|
+
* * `json` - json
|
|
300
|
+
* @param includeMainPlatform Include main platform data
|
|
301
|
+
* @param length Size of data to return
|
|
302
|
+
* @param page Page offset
|
|
303
|
+
* @returns PerformanceGradesPerCourse
|
|
304
|
+
* @throws ApiError
|
|
305
|
+
*/
|
|
306
|
+
public static performanceOrgsGradingPerCourseRetrieve(
|
|
307
|
+
org: string,
|
|
308
|
+
departmentId?: number,
|
|
309
|
+
format: 'json' = 'json',
|
|
310
|
+
includeMainPlatform: boolean = true,
|
|
311
|
+
length?: number,
|
|
312
|
+
page?: number,
|
|
313
|
+
): CancelablePromise<PerformanceGradesPerCourse> {
|
|
314
|
+
return __request(OpenAPI, {
|
|
315
|
+
method: 'GET',
|
|
316
|
+
url: '/api/performance/orgs/{org}/grading/per-course',
|
|
317
|
+
path: {
|
|
318
|
+
'org': org,
|
|
319
|
+
},
|
|
320
|
+
query: {
|
|
321
|
+
'department_id': departmentId,
|
|
322
|
+
'format': format,
|
|
323
|
+
'include_main_platform': includeMainPlatform,
|
|
324
|
+
'length': length,
|
|
325
|
+
'page': page,
|
|
326
|
+
},
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|