@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,1009 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ActivityAPI } from '../models/ActivityAPI';
|
|
6
|
+
import type { Average } from '../models/Average';
|
|
7
|
+
import type { DetailedGradeView } from '../models/DetailedGradeView';
|
|
8
|
+
import type { LearnerInformationAPI } from '../models/LearnerInformationAPI';
|
|
9
|
+
import type { NewPerLearnerList } from '../models/NewPerLearnerList';
|
|
10
|
+
import type { OverTimeWithTotal } from '../models/OverTimeWithTotal';
|
|
11
|
+
import type { PerLearnerCourseVideosWatched } from '../models/PerLearnerCourseVideosWatched';
|
|
12
|
+
import type { PerlearnerEngagementVideosWatchedPerCourse } from '../models/PerlearnerEngagementVideosWatchedPerCourse';
|
|
13
|
+
import type { PerlearnerGradeSummary } from '../models/PerlearnerGradeSummary';
|
|
14
|
+
import type { PerlearnerGradeWithCutOff } from '../models/PerlearnerGradeWithCutOff';
|
|
15
|
+
import type { PerlearnerGradingPerCourseAPI } from '../models/PerlearnerGradingPerCourseAPI';
|
|
16
|
+
import type { PerLearnerLastAccess } from '../models/PerLearnerLastAccess';
|
|
17
|
+
import type { PerlearnerUserList } from '../models/PerlearnerUserList';
|
|
18
|
+
import type { Value } from '../models/Value';
|
|
19
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
20
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
21
|
+
import { request as __request } from '../core/request';
|
|
22
|
+
export class PerlearnerService {
|
|
23
|
+
/**
|
|
24
|
+
* Enhanced API endpoint for listing learners with comprehensive filtering.
|
|
25
|
+
*
|
|
26
|
+
* This endpoint provides a paginated list of learners with detailed metrics
|
|
27
|
+
* and supports advanced filtering options. It uses DM token authentication
|
|
28
|
+
* and respects department-based access controls.
|
|
29
|
+
*
|
|
30
|
+
* Query Parameters:
|
|
31
|
+
* page (int): Page number for pagination
|
|
32
|
+
* length (int): Number of items per page
|
|
33
|
+
* search (str): Filter by username, email, or full name
|
|
34
|
+
* program (str): Filter by program
|
|
35
|
+
* location (str): Filter by location
|
|
36
|
+
* is_enrolled (bool): Filter for users with enrollments
|
|
37
|
+
* platform (str): Filter by platform
|
|
38
|
+
* start_date (date): Filter by join date (start range)
|
|
39
|
+
* end_date (date): Filter by join date (end range)
|
|
40
|
+
*
|
|
41
|
+
* Returns:
|
|
42
|
+
* A paginated list of learners with comprehensive metrics including:
|
|
43
|
+
* - Course enrollments and completions
|
|
44
|
+
* - Time spent on platform
|
|
45
|
+
* - Pathway progress
|
|
46
|
+
* - Certificate and skill information
|
|
47
|
+
* - Location data
|
|
48
|
+
*
|
|
49
|
+
* Access Control:
|
|
50
|
+
* - Platform admins can see all learners
|
|
51
|
+
* - Department admins can only see learners in their departments
|
|
52
|
+
* @param org
|
|
53
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
54
|
+
* @param endDate Learner date_joined end date. ISO 8601
|
|
55
|
+
* @param format Format
|
|
56
|
+
*
|
|
57
|
+
* * `json` - json
|
|
58
|
+
* @param includeMainPlatform Include main platform data
|
|
59
|
+
* @param isEnrolled Filter for users who have at least an enrollment
|
|
60
|
+
* @param length Size of data to return
|
|
61
|
+
* @param location Location search string
|
|
62
|
+
* @param page Page offset
|
|
63
|
+
* @param platform Platform search string
|
|
64
|
+
* @param program Program search string
|
|
65
|
+
* @param search Search string for learner. email, username or full name
|
|
66
|
+
* @param startDate Learner date_joined start date. ISO 8601
|
|
67
|
+
* @returns NewPerLearnerList
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
public static perlearnerOrgsLearnersRetrieve(
|
|
71
|
+
org: string,
|
|
72
|
+
departmentId?: number,
|
|
73
|
+
endDate?: string,
|
|
74
|
+
format: 'json' = 'json',
|
|
75
|
+
includeMainPlatform: boolean = true,
|
|
76
|
+
isEnrolled?: boolean | null,
|
|
77
|
+
length?: number,
|
|
78
|
+
location?: string,
|
|
79
|
+
page?: number,
|
|
80
|
+
platform?: string,
|
|
81
|
+
program?: string,
|
|
82
|
+
search?: string,
|
|
83
|
+
startDate?: string,
|
|
84
|
+
): CancelablePromise<NewPerLearnerList> {
|
|
85
|
+
return __request(OpenAPI, {
|
|
86
|
+
method: 'GET',
|
|
87
|
+
url: '/api/perlearner/orgs/{org}/learners',
|
|
88
|
+
path: {
|
|
89
|
+
'org': org,
|
|
90
|
+
},
|
|
91
|
+
query: {
|
|
92
|
+
'department_id': departmentId,
|
|
93
|
+
'end_date': endDate,
|
|
94
|
+
'format': format,
|
|
95
|
+
'include_main_platform': includeMainPlatform,
|
|
96
|
+
'is_enrolled': isEnrolled,
|
|
97
|
+
'length': length,
|
|
98
|
+
'location': location,
|
|
99
|
+
'page': page,
|
|
100
|
+
'platform': platform,
|
|
101
|
+
'program': program,
|
|
102
|
+
'search': search,
|
|
103
|
+
'start_date': startDate,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* List all learners on the platform with aggregated metrics.
|
|
109
|
+
*
|
|
110
|
+
* This endpoint returns a paginated list of all learners with key metrics including:
|
|
111
|
+
* - Enrollment counts
|
|
112
|
+
* - Completion counts
|
|
113
|
+
* - Time spent on platform
|
|
114
|
+
*
|
|
115
|
+
* Query Parameters:
|
|
116
|
+
* page (int): Page number for pagination
|
|
117
|
+
* length (int): Number of items per page
|
|
118
|
+
* search (str): Filter learners by username, email, or name
|
|
119
|
+
*
|
|
120
|
+
* Returns:
|
|
121
|
+
* A paginated list of learners with their associated metrics.
|
|
122
|
+
* @param org
|
|
123
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
124
|
+
* @param format Format
|
|
125
|
+
*
|
|
126
|
+
* * `json` - json
|
|
127
|
+
* @param includeMainPlatform Include main platform data
|
|
128
|
+
* @param length Size of data to return
|
|
129
|
+
* @param page Page offset
|
|
130
|
+
* @param search Search string for learner
|
|
131
|
+
* @returns PerlearnerUserList
|
|
132
|
+
* @throws ApiError
|
|
133
|
+
*/
|
|
134
|
+
public static perlearnerOrgsUsersRetrieve(
|
|
135
|
+
org: string,
|
|
136
|
+
departmentId?: number,
|
|
137
|
+
format: 'json' = 'json',
|
|
138
|
+
includeMainPlatform: boolean = true,
|
|
139
|
+
length?: number,
|
|
140
|
+
page?: number,
|
|
141
|
+
search?: string,
|
|
142
|
+
): CancelablePromise<PerlearnerUserList> {
|
|
143
|
+
return __request(OpenAPI, {
|
|
144
|
+
method: 'GET',
|
|
145
|
+
url: '/api/perlearner/orgs/{org}/users',
|
|
146
|
+
path: {
|
|
147
|
+
'org': org,
|
|
148
|
+
},
|
|
149
|
+
query: {
|
|
150
|
+
'department_id': departmentId,
|
|
151
|
+
'format': format,
|
|
152
|
+
'include_main_platform': includeMainPlatform,
|
|
153
|
+
'length': length,
|
|
154
|
+
'page': page,
|
|
155
|
+
'search': search,
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Provides information on user enrollments
|
|
161
|
+
*
|
|
162
|
+
* Params
|
|
163
|
+
* user_id e.g developer@ibleducation.com| developer
|
|
164
|
+
* @param org
|
|
165
|
+
* @param userId
|
|
166
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
167
|
+
* @param format Format
|
|
168
|
+
*
|
|
169
|
+
* * `json` - json
|
|
170
|
+
* @param includeMainPlatform Include main platform data
|
|
171
|
+
* @returns ActivityAPI
|
|
172
|
+
* @throws ApiError
|
|
173
|
+
*/
|
|
174
|
+
public static perlearnerOrgsUsersActivityRetrieve(
|
|
175
|
+
org: string,
|
|
176
|
+
userId: string,
|
|
177
|
+
departmentId?: number,
|
|
178
|
+
format: 'json' = 'json',
|
|
179
|
+
includeMainPlatform: boolean = true,
|
|
180
|
+
): CancelablePromise<ActivityAPI> {
|
|
181
|
+
return __request(OpenAPI, {
|
|
182
|
+
method: 'GET',
|
|
183
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/activity/',
|
|
184
|
+
path: {
|
|
185
|
+
'org': org,
|
|
186
|
+
'user_id': userId,
|
|
187
|
+
},
|
|
188
|
+
query: {
|
|
189
|
+
'department_id': departmentId,
|
|
190
|
+
'format': format,
|
|
191
|
+
'include_main_platform': includeMainPlatform,
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Provides about a learner current grade in a course with the course cut
|
|
197
|
+
* Kwargs
|
|
198
|
+
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
199
|
+
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
200
|
+
* @param courseId
|
|
201
|
+
* @param org
|
|
202
|
+
* @param userId
|
|
203
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
204
|
+
* @param endDate end date. ISO 8601
|
|
205
|
+
* @param format Format
|
|
206
|
+
*
|
|
207
|
+
* * `json` - json
|
|
208
|
+
* @param includeMainPlatform Include main platform data
|
|
209
|
+
* @param startDate start date. ISO 8601
|
|
210
|
+
* @returns PerlearnerGradeWithCutOff
|
|
211
|
+
* @throws ApiError
|
|
212
|
+
*/
|
|
213
|
+
public static perlearnerOrgsUsersCoursesGradingCutoffsRetrieve(
|
|
214
|
+
courseId: string,
|
|
215
|
+
org: string,
|
|
216
|
+
userId: string,
|
|
217
|
+
departmentId?: number,
|
|
218
|
+
endDate?: string,
|
|
219
|
+
format: 'json' = 'json',
|
|
220
|
+
includeMainPlatform: boolean = true,
|
|
221
|
+
startDate?: string,
|
|
222
|
+
): CancelablePromise<PerlearnerGradeWithCutOff> {
|
|
223
|
+
return __request(OpenAPI, {
|
|
224
|
+
method: 'GET',
|
|
225
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/grading/cutoffs',
|
|
226
|
+
path: {
|
|
227
|
+
'course_id': courseId,
|
|
228
|
+
'org': org,
|
|
229
|
+
'user_id': userId,
|
|
230
|
+
},
|
|
231
|
+
query: {
|
|
232
|
+
'department_id': departmentId,
|
|
233
|
+
'end_date': endDate,
|
|
234
|
+
'format': format,
|
|
235
|
+
'include_main_platform': includeMainPlatform,
|
|
236
|
+
'start_date': startDate,
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
242
|
+
* @param courseId
|
|
243
|
+
* @param org
|
|
244
|
+
* @param userId
|
|
245
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
246
|
+
* @param endDate end date. ISO 8601
|
|
247
|
+
* @param format Format
|
|
248
|
+
*
|
|
249
|
+
* * `json` - json
|
|
250
|
+
* @param includeMainPlatform Include main platform data
|
|
251
|
+
* @param startDate start date. ISO 8601
|
|
252
|
+
* @returns DetailedGradeView
|
|
253
|
+
* @throws ApiError
|
|
254
|
+
*/
|
|
255
|
+
public static perlearnerOrgsUsersCoursesGradingDetailRetrieve(
|
|
256
|
+
courseId: string,
|
|
257
|
+
org: string,
|
|
258
|
+
userId: string,
|
|
259
|
+
departmentId?: number,
|
|
260
|
+
endDate?: string,
|
|
261
|
+
format: 'json' = 'json',
|
|
262
|
+
includeMainPlatform: boolean = true,
|
|
263
|
+
startDate?: string,
|
|
264
|
+
): CancelablePromise<DetailedGradeView> {
|
|
265
|
+
return __request(OpenAPI, {
|
|
266
|
+
method: 'GET',
|
|
267
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/grading/detail',
|
|
268
|
+
path: {
|
|
269
|
+
'course_id': courseId,
|
|
270
|
+
'org': org,
|
|
271
|
+
'user_id': userId,
|
|
272
|
+
},
|
|
273
|
+
query: {
|
|
274
|
+
'department_id': departmentId,
|
|
275
|
+
'end_date': endDate,
|
|
276
|
+
'format': format,
|
|
277
|
+
'include_main_platform': includeMainPlatform,
|
|
278
|
+
'start_date': startDate,
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Query Params
|
|
284
|
+
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
285
|
+
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
286
|
+
* @param courseId
|
|
287
|
+
* @param org
|
|
288
|
+
* @param userId
|
|
289
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
290
|
+
* @param endDate end date. ISO 8601
|
|
291
|
+
* @param format Format
|
|
292
|
+
*
|
|
293
|
+
* * `json` - json
|
|
294
|
+
* @param includeMainPlatform Include main platform data
|
|
295
|
+
* @param startDate start date. ISO 8601
|
|
296
|
+
* @returns PerlearnerGradeSummary
|
|
297
|
+
* @throws ApiError
|
|
298
|
+
*/
|
|
299
|
+
public static perlearnerOrgsUsersCoursesGradingSummaryRetrieve(
|
|
300
|
+
courseId: string,
|
|
301
|
+
org: string,
|
|
302
|
+
userId: string,
|
|
303
|
+
departmentId?: number,
|
|
304
|
+
endDate?: string,
|
|
305
|
+
format: 'json' = 'json',
|
|
306
|
+
includeMainPlatform: boolean = true,
|
|
307
|
+
startDate?: string,
|
|
308
|
+
): CancelablePromise<PerlearnerGradeSummary> {
|
|
309
|
+
return __request(OpenAPI, {
|
|
310
|
+
method: 'GET',
|
|
311
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/grading/summary',
|
|
312
|
+
path: {
|
|
313
|
+
'course_id': courseId,
|
|
314
|
+
'org': org,
|
|
315
|
+
'user_id': userId,
|
|
316
|
+
},
|
|
317
|
+
query: {
|
|
318
|
+
'department_id': departmentId,
|
|
319
|
+
'end_date': endDate,
|
|
320
|
+
'format': format,
|
|
321
|
+
'include_main_platform': includeMainPlatform,
|
|
322
|
+
'start_date': startDate,
|
|
323
|
+
},
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Average of days with atleast an activity within ENGAGEMENT_INDEX_PERIOD consecutive days for a learner in a course
|
|
328
|
+
* @param courseId
|
|
329
|
+
* @param org
|
|
330
|
+
* @param userId
|
|
331
|
+
* @returns Value
|
|
332
|
+
* @throws ApiError
|
|
333
|
+
*/
|
|
334
|
+
public static perlearnerOrgsUsersCoursesOverviewEngagementIndexRetrieve(
|
|
335
|
+
courseId: string,
|
|
336
|
+
org: string,
|
|
337
|
+
userId: string,
|
|
338
|
+
): CancelablePromise<Value> {
|
|
339
|
+
return __request(OpenAPI, {
|
|
340
|
+
method: 'GET',
|
|
341
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/overview/engagement-index',
|
|
342
|
+
path: {
|
|
343
|
+
'course_id': courseId,
|
|
344
|
+
'org': org,
|
|
345
|
+
'user_id': userId,
|
|
346
|
+
},
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Provides about a learner current grade in a course with the course cut
|
|
351
|
+
* Kwargs
|
|
352
|
+
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
353
|
+
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
354
|
+
* @param courseId
|
|
355
|
+
* @param org
|
|
356
|
+
* @param userId
|
|
357
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
358
|
+
* @param endDate end date. ISO 8601
|
|
359
|
+
* @param format Format
|
|
360
|
+
*
|
|
361
|
+
* * `json` - json
|
|
362
|
+
* @param includeMainPlatform Include main platform data
|
|
363
|
+
* @param startDate start date. ISO 8601
|
|
364
|
+
* @returns PerlearnerGradeWithCutOff
|
|
365
|
+
* @throws ApiError
|
|
366
|
+
*/
|
|
367
|
+
public static perlearnerOrgsUsersCoursesOverviewGradeRetrieve(
|
|
368
|
+
courseId: string,
|
|
369
|
+
org: string,
|
|
370
|
+
userId: string,
|
|
371
|
+
departmentId?: number,
|
|
372
|
+
endDate?: string,
|
|
373
|
+
format: 'json' = 'json',
|
|
374
|
+
includeMainPlatform: boolean = true,
|
|
375
|
+
startDate?: string,
|
|
376
|
+
): CancelablePromise<PerlearnerGradeWithCutOff> {
|
|
377
|
+
return __request(OpenAPI, {
|
|
378
|
+
method: 'GET',
|
|
379
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/overview/grade',
|
|
380
|
+
path: {
|
|
381
|
+
'course_id': courseId,
|
|
382
|
+
'org': org,
|
|
383
|
+
'user_id': userId,
|
|
384
|
+
},
|
|
385
|
+
query: {
|
|
386
|
+
'department_id': departmentId,
|
|
387
|
+
'end_date': endDate,
|
|
388
|
+
'format': format,
|
|
389
|
+
'include_main_platform': includeMainPlatform,
|
|
390
|
+
'start_date': startDate,
|
|
391
|
+
},
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Evaluates performance index for platform, per course, per user and per user-per course
|
|
396
|
+
*
|
|
397
|
+
* Query Params
|
|
398
|
+
* course_id <optional>
|
|
399
|
+
* learner_id <optional>
|
|
400
|
+
* @param courseId
|
|
401
|
+
* @param org
|
|
402
|
+
* @param userId
|
|
403
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
404
|
+
* @param endDate end date. ISO 8601
|
|
405
|
+
* @param format Format
|
|
406
|
+
*
|
|
407
|
+
* * `json` - json
|
|
408
|
+
* @param includeMainPlatform Include main platform data
|
|
409
|
+
* @param startDate start date. ISO 8601
|
|
410
|
+
* @returns Value
|
|
411
|
+
* @throws ApiError
|
|
412
|
+
*/
|
|
413
|
+
public static perlearnerOrgsUsersCoursesOverviewPerformanceIndexRetrieve(
|
|
414
|
+
courseId: string,
|
|
415
|
+
org: string,
|
|
416
|
+
userId: string,
|
|
417
|
+
departmentId?: number,
|
|
418
|
+
endDate?: string,
|
|
419
|
+
format: 'json' = 'json',
|
|
420
|
+
includeMainPlatform: boolean = true,
|
|
421
|
+
startDate?: string,
|
|
422
|
+
): CancelablePromise<Value> {
|
|
423
|
+
return __request(OpenAPI, {
|
|
424
|
+
method: 'GET',
|
|
425
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/overview/performance-index',
|
|
426
|
+
path: {
|
|
427
|
+
'course_id': courseId,
|
|
428
|
+
'org': org,
|
|
429
|
+
'user_id': userId,
|
|
430
|
+
},
|
|
431
|
+
query: {
|
|
432
|
+
'department_id': departmentId,
|
|
433
|
+
'end_date': endDate,
|
|
434
|
+
'format': format,
|
|
435
|
+
'include_main_platform': includeMainPlatform,
|
|
436
|
+
'start_date': startDate,
|
|
437
|
+
},
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Time spent within a course in secs on a per-day basis
|
|
442
|
+
*
|
|
443
|
+
* Kwargs
|
|
444
|
+
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
445
|
+
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
446
|
+
* Query Params
|
|
447
|
+
* 3. start_date e.g 2020-10-01
|
|
448
|
+
* 4. end_date e.g 2020-10-10
|
|
449
|
+
*
|
|
450
|
+
* Default result when no query param is added is last_7_days (today inclusive)
|
|
451
|
+
* @param courseId
|
|
452
|
+
* @param org
|
|
453
|
+
* @param userId
|
|
454
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
455
|
+
* @param endDate end date. ISO 8601
|
|
456
|
+
* @param format Format
|
|
457
|
+
*
|
|
458
|
+
* * `json` - json
|
|
459
|
+
* @param includeMainPlatform Include main platform data
|
|
460
|
+
* @param startDate start date. ISO 8601
|
|
461
|
+
* @returns OverTimeWithTotal
|
|
462
|
+
* @throws ApiError
|
|
463
|
+
*/
|
|
464
|
+
public static perlearnerOrgsUsersCoursesOverviewTimeOverTimeRetrieve(
|
|
465
|
+
courseId: string,
|
|
466
|
+
org: string,
|
|
467
|
+
userId: string,
|
|
468
|
+
departmentId?: number,
|
|
469
|
+
endDate?: string,
|
|
470
|
+
format: 'json' = 'json',
|
|
471
|
+
includeMainPlatform: boolean = true,
|
|
472
|
+
startDate?: string,
|
|
473
|
+
): CancelablePromise<OverTimeWithTotal> {
|
|
474
|
+
return __request(OpenAPI, {
|
|
475
|
+
method: 'GET',
|
|
476
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/overview/time/over-time',
|
|
477
|
+
path: {
|
|
478
|
+
'course_id': courseId,
|
|
479
|
+
'org': org,
|
|
480
|
+
'user_id': userId,
|
|
481
|
+
},
|
|
482
|
+
query: {
|
|
483
|
+
'department_id': departmentId,
|
|
484
|
+
'end_date': endDate,
|
|
485
|
+
'format': format,
|
|
486
|
+
'include_main_platform': includeMainPlatform,
|
|
487
|
+
'start_date': startDate,
|
|
488
|
+
},
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* List of videos within a course a learner has watched
|
|
493
|
+
*
|
|
494
|
+
* Kwargs
|
|
495
|
+
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
496
|
+
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
497
|
+
*
|
|
498
|
+
* Default result when no query param is added is [], 0
|
|
499
|
+
* @param courseId
|
|
500
|
+
* @param org
|
|
501
|
+
* @param userId
|
|
502
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
503
|
+
* @param format Format
|
|
504
|
+
*
|
|
505
|
+
* * `json` - json
|
|
506
|
+
* @param includeMainPlatform Include main platform data
|
|
507
|
+
* @returns PerLearnerCourseVideosWatched
|
|
508
|
+
* @throws ApiError
|
|
509
|
+
*/
|
|
510
|
+
public static perlearnerOrgsUsersCoursesVideosRetrieve(
|
|
511
|
+
courseId: string,
|
|
512
|
+
org: string,
|
|
513
|
+
userId: string,
|
|
514
|
+
departmentId?: number,
|
|
515
|
+
format: 'json' = 'json',
|
|
516
|
+
includeMainPlatform: boolean = true,
|
|
517
|
+
): CancelablePromise<PerLearnerCourseVideosWatched> {
|
|
518
|
+
return __request(OpenAPI, {
|
|
519
|
+
method: 'GET',
|
|
520
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/videos',
|
|
521
|
+
path: {
|
|
522
|
+
'course_id': courseId,
|
|
523
|
+
'org': org,
|
|
524
|
+
'user_id': userId,
|
|
525
|
+
},
|
|
526
|
+
query: {
|
|
527
|
+
'department_id': departmentId,
|
|
528
|
+
'format': format,
|
|
529
|
+
'include_main_platform': includeMainPlatform,
|
|
530
|
+
},
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Get video watch counts over time.
|
|
535
|
+
*
|
|
536
|
+
* This endpoint provides daily counts of videos watched over a specified time period,
|
|
537
|
+
* with options to filter by course or user.
|
|
538
|
+
*
|
|
539
|
+
* Query Parameters:
|
|
540
|
+
* start_date (str, optional): Start date for the time range (ISO format)
|
|
541
|
+
* end_date (str, optional): End date for the time range (ISO format)
|
|
542
|
+
* course_id (str, optional): Filter by course ID
|
|
543
|
+
* user_id (str, optional): Filter by username or email
|
|
544
|
+
*
|
|
545
|
+
* Returns:
|
|
546
|
+
* Daily video watch counts over the specified time period.
|
|
547
|
+
*
|
|
548
|
+
* Default time range is the last 7 days if no dates are specified.
|
|
549
|
+
*
|
|
550
|
+
* Access Control:
|
|
551
|
+
* - Platform admins can access any video watch data
|
|
552
|
+
* - Learners can access their own video watch data
|
|
553
|
+
* @param courseId
|
|
554
|
+
* @param org
|
|
555
|
+
* @param userId
|
|
556
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
557
|
+
* @param endDate end date. ISO 8601
|
|
558
|
+
* @param format Format
|
|
559
|
+
*
|
|
560
|
+
* * `json` - json
|
|
561
|
+
* @param includeMainPlatform Include main platform data
|
|
562
|
+
* @param startDate start date. ISO 8601
|
|
563
|
+
* @returns OverTimeWithTotal
|
|
564
|
+
* @throws ApiError
|
|
565
|
+
*/
|
|
566
|
+
public static perlearnerOrgsUsersCoursesVideosOverTimeRetrieve(
|
|
567
|
+
courseId: string,
|
|
568
|
+
org: string,
|
|
569
|
+
userId: string,
|
|
570
|
+
departmentId?: number,
|
|
571
|
+
endDate?: string,
|
|
572
|
+
format: 'json' = 'json',
|
|
573
|
+
includeMainPlatform: boolean = true,
|
|
574
|
+
startDate?: string,
|
|
575
|
+
): CancelablePromise<OverTimeWithTotal> {
|
|
576
|
+
return __request(OpenAPI, {
|
|
577
|
+
method: 'GET',
|
|
578
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/videos/over-time',
|
|
579
|
+
path: {
|
|
580
|
+
'course_id': courseId,
|
|
581
|
+
'org': org,
|
|
582
|
+
'user_id': userId,
|
|
583
|
+
},
|
|
584
|
+
query: {
|
|
585
|
+
'department_id': departmentId,
|
|
586
|
+
'end_date': endDate,
|
|
587
|
+
'format': format,
|
|
588
|
+
'include_main_platform': includeMainPlatform,
|
|
589
|
+
'start_date': startDate,
|
|
590
|
+
},
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Summary Grading Information for a learner on a per-enrollment basis
|
|
595
|
+
*
|
|
596
|
+
* Query Params
|
|
597
|
+
* 1. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
598
|
+
* @param org
|
|
599
|
+
* @param userId
|
|
600
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
601
|
+
* @param format Format
|
|
602
|
+
*
|
|
603
|
+
* * `json` - json
|
|
604
|
+
* @param includeMainPlatform Include main platform data
|
|
605
|
+
* @returns PerlearnerGradingPerCourseAPI
|
|
606
|
+
* @throws ApiError
|
|
607
|
+
*/
|
|
608
|
+
public static perlearnerOrgsUsersGradesPerCourseRetrieve(
|
|
609
|
+
org: string,
|
|
610
|
+
userId: string,
|
|
611
|
+
departmentId?: number,
|
|
612
|
+
format: 'json' = 'json',
|
|
613
|
+
includeMainPlatform: boolean = true,
|
|
614
|
+
): CancelablePromise<PerlearnerGradingPerCourseAPI> {
|
|
615
|
+
return __request(OpenAPI, {
|
|
616
|
+
method: 'GET',
|
|
617
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/grades/per-course',
|
|
618
|
+
path: {
|
|
619
|
+
'org': org,
|
|
620
|
+
'user_id': userId,
|
|
621
|
+
},
|
|
622
|
+
query: {
|
|
623
|
+
'department_id': departmentId,
|
|
624
|
+
'format': format,
|
|
625
|
+
'include_main_platform': includeMainPlatform,
|
|
626
|
+
},
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* Retrieve detailed information about a specific learner.
|
|
631
|
+
*
|
|
632
|
+
* This endpoint returns personal and activity information about a learner,
|
|
633
|
+
* including profile data, activity metrics, and location information.
|
|
634
|
+
*
|
|
635
|
+
* Path Parameters:
|
|
636
|
+
* user_id (str): The username or email of the learner
|
|
637
|
+
*
|
|
638
|
+
* Query Parameters:
|
|
639
|
+
* meta (bool): Include additional analytics information when true
|
|
640
|
+
*
|
|
641
|
+
* Returns:
|
|
642
|
+
* Detailed learner information including:
|
|
643
|
+
* - Profile data (username, name, email)
|
|
644
|
+
* - Registration and activity dates
|
|
645
|
+
* - Activity metrics (assessments, time spent, videos watched)
|
|
646
|
+
* - Location and browser information (when available)
|
|
647
|
+
*
|
|
648
|
+
* Access Control:
|
|
649
|
+
* - Platform admins can access any learner
|
|
650
|
+
* - Learners can access their own information
|
|
651
|
+
* - Department admins can access learners in their departments
|
|
652
|
+
* @param org
|
|
653
|
+
* @param userId
|
|
654
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
655
|
+
* @param format Format
|
|
656
|
+
*
|
|
657
|
+
* * `json` - json
|
|
658
|
+
* @param includeMainPlatform Include main platform data
|
|
659
|
+
* @param meta Include extra analytics information?
|
|
660
|
+
*
|
|
661
|
+
* * `y` - y
|
|
662
|
+
* * `yes` - yes
|
|
663
|
+
* * `true` - true
|
|
664
|
+
* * `True` - True
|
|
665
|
+
* * `n` - n
|
|
666
|
+
* * `no` - no
|
|
667
|
+
* * `false` - false
|
|
668
|
+
* * `False` - False
|
|
669
|
+
* @param search
|
|
670
|
+
* @returns LearnerInformationAPI
|
|
671
|
+
* @throws ApiError
|
|
672
|
+
*/
|
|
673
|
+
public static perlearnerOrgsUsersInfoRetrieve(
|
|
674
|
+
org: string,
|
|
675
|
+
userId: string,
|
|
676
|
+
departmentId?: number,
|
|
677
|
+
format: 'json' = 'json',
|
|
678
|
+
includeMainPlatform: boolean = true,
|
|
679
|
+
meta: 'y' | 'yes' | 'true' | 'True' | 'n' | 'no' | 'false' | 'False' = 'n',
|
|
680
|
+
search?: string,
|
|
681
|
+
): CancelablePromise<LearnerInformationAPI> {
|
|
682
|
+
return __request(OpenAPI, {
|
|
683
|
+
method: 'GET',
|
|
684
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/info',
|
|
685
|
+
path: {
|
|
686
|
+
'org': org,
|
|
687
|
+
'user_id': userId,
|
|
688
|
+
},
|
|
689
|
+
query: {
|
|
690
|
+
'department_id': departmentId,
|
|
691
|
+
'format': format,
|
|
692
|
+
'include_main_platform': includeMainPlatform,
|
|
693
|
+
'meta': meta,
|
|
694
|
+
'search': search,
|
|
695
|
+
},
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Last course accessed by a learner, includes upto unit information as well
|
|
700
|
+
* @param org
|
|
701
|
+
* @param userId
|
|
702
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
703
|
+
* @param format Format
|
|
704
|
+
*
|
|
705
|
+
* * `json` - json
|
|
706
|
+
* @param includeMainPlatform Include main platform data
|
|
707
|
+
* @returns PerLearnerLastAccess
|
|
708
|
+
* @throws ApiError
|
|
709
|
+
*/
|
|
710
|
+
public static perlearnerOrgsUsersLastAccessRetrieve(
|
|
711
|
+
org: string,
|
|
712
|
+
userId: string,
|
|
713
|
+
departmentId?: number,
|
|
714
|
+
format: 'json' = 'json',
|
|
715
|
+
includeMainPlatform: boolean = true,
|
|
716
|
+
): CancelablePromise<PerLearnerLastAccess> {
|
|
717
|
+
return __request(OpenAPI, {
|
|
718
|
+
method: 'GET',
|
|
719
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/last-access',
|
|
720
|
+
path: {
|
|
721
|
+
'org': org,
|
|
722
|
+
'user_id': userId,
|
|
723
|
+
},
|
|
724
|
+
query: {
|
|
725
|
+
'department_id': departmentId,
|
|
726
|
+
'format': format,
|
|
727
|
+
'include_main_platform': includeMainPlatform,
|
|
728
|
+
},
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Average of days with atleast an activity within ENGAGEMENT_INDEX_PERIOD consecutive days
|
|
733
|
+
* @param org
|
|
734
|
+
* @param userId
|
|
735
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
736
|
+
* @param endDate end date. ISO 8601
|
|
737
|
+
* @param format Format
|
|
738
|
+
*
|
|
739
|
+
* * `json` - json
|
|
740
|
+
* @param includeMainPlatform Include main platform data
|
|
741
|
+
* @param startDate start date. ISO 8601
|
|
742
|
+
* @returns Value
|
|
743
|
+
* @throws ApiError
|
|
744
|
+
*/
|
|
745
|
+
public static perlearnerOrgsUsersOverviewEngagementIndexRetrieve(
|
|
746
|
+
org: string,
|
|
747
|
+
userId: string,
|
|
748
|
+
departmentId?: number,
|
|
749
|
+
endDate?: string,
|
|
750
|
+
format: 'json' = 'json',
|
|
751
|
+
includeMainPlatform: boolean = true,
|
|
752
|
+
startDate?: string,
|
|
753
|
+
): CancelablePromise<Value> {
|
|
754
|
+
return __request(OpenAPI, {
|
|
755
|
+
method: 'GET',
|
|
756
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/overview/engagement-index',
|
|
757
|
+
path: {
|
|
758
|
+
'org': org,
|
|
759
|
+
'user_id': userId,
|
|
760
|
+
},
|
|
761
|
+
query: {
|
|
762
|
+
'department_id': departmentId,
|
|
763
|
+
'end_date': endDate,
|
|
764
|
+
'format': format,
|
|
765
|
+
'include_main_platform': includeMainPlatform,
|
|
766
|
+
'start_date': startDate,
|
|
767
|
+
},
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Get average grade value for platform, course, or user.
|
|
772
|
+
*
|
|
773
|
+
* This endpoint returns the average grade at different levels:
|
|
774
|
+
* - Platform level: Average grade across all courses
|
|
775
|
+
* - Course level: Average grade for a specific course
|
|
776
|
+
* - Learner level: Average grade for a specific learner
|
|
777
|
+
* - Course-learner level: Grade for a specific learner in a specific course
|
|
778
|
+
*
|
|
779
|
+
* Query Parameters:
|
|
780
|
+
* course_id (str, optional): Filter by course ID
|
|
781
|
+
* learner_id (str, optional): Filter by username or email
|
|
782
|
+
*
|
|
783
|
+
* Returns:
|
|
784
|
+
* The average grade value based on the specified filters.
|
|
785
|
+
*
|
|
786
|
+
* Access Control:
|
|
787
|
+
* - Platform admins can access any grade data
|
|
788
|
+
* - Learners can access their own grade data
|
|
789
|
+
* @param org
|
|
790
|
+
* @param userId
|
|
791
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
792
|
+
* @param format Format
|
|
793
|
+
*
|
|
794
|
+
* * `json` - json
|
|
795
|
+
* @param includeMainPlatform Include main platform data
|
|
796
|
+
* @returns Average
|
|
797
|
+
* @throws ApiError
|
|
798
|
+
*/
|
|
799
|
+
public static perlearnerOrgsUsersOverviewGradesAverageRetrieve(
|
|
800
|
+
org: string,
|
|
801
|
+
userId: string,
|
|
802
|
+
departmentId?: number,
|
|
803
|
+
format: 'json' = 'json',
|
|
804
|
+
includeMainPlatform: boolean = true,
|
|
805
|
+
): CancelablePromise<Average> {
|
|
806
|
+
return __request(OpenAPI, {
|
|
807
|
+
method: 'GET',
|
|
808
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/overview/grades/average',
|
|
809
|
+
path: {
|
|
810
|
+
'org': org,
|
|
811
|
+
'user_id': userId,
|
|
812
|
+
},
|
|
813
|
+
query: {
|
|
814
|
+
'department_id': departmentId,
|
|
815
|
+
'format': format,
|
|
816
|
+
'include_main_platform': includeMainPlatform,
|
|
817
|
+
},
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Evaluates performance index for platform, per course, per user and per user-per course
|
|
822
|
+
*
|
|
823
|
+
* Query Params
|
|
824
|
+
* course_id <optional>
|
|
825
|
+
* learner_id <optional>
|
|
826
|
+
* @param org
|
|
827
|
+
* @param userId
|
|
828
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
829
|
+
* @param endDate end date. ISO 8601
|
|
830
|
+
* @param format Format
|
|
831
|
+
*
|
|
832
|
+
* * `json` - json
|
|
833
|
+
* @param includeMainPlatform Include main platform data
|
|
834
|
+
* @param startDate start date. ISO 8601
|
|
835
|
+
* @returns Value
|
|
836
|
+
* @throws ApiError
|
|
837
|
+
*/
|
|
838
|
+
public static perlearnerOrgsUsersOverviewPerformanceIndexRetrieve(
|
|
839
|
+
org: string,
|
|
840
|
+
userId: string,
|
|
841
|
+
departmentId?: number,
|
|
842
|
+
endDate?: string,
|
|
843
|
+
format: 'json' = 'json',
|
|
844
|
+
includeMainPlatform: boolean = true,
|
|
845
|
+
startDate?: string,
|
|
846
|
+
): CancelablePromise<Value> {
|
|
847
|
+
return __request(OpenAPI, {
|
|
848
|
+
method: 'GET',
|
|
849
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/overview/performance-index',
|
|
850
|
+
path: {
|
|
851
|
+
'org': org,
|
|
852
|
+
'user_id': userId,
|
|
853
|
+
},
|
|
854
|
+
query: {
|
|
855
|
+
'department_id': departmentId,
|
|
856
|
+
'end_date': endDate,
|
|
857
|
+
'format': format,
|
|
858
|
+
'include_main_platform': includeMainPlatform,
|
|
859
|
+
'start_date': startDate,
|
|
860
|
+
},
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Time spent in secs on a per-day basis
|
|
865
|
+
*
|
|
866
|
+
* Query Params
|
|
867
|
+
* 1. course_id <optional> e.g course-v1:Org+Course4+Run
|
|
868
|
+
* 2. user_id <optional> e.g developer@ibleducation.com or dev123 (username|email)
|
|
869
|
+
* 3. start_date e.g 2020-10-01
|
|
870
|
+
* 4. end_date e.g 2020-10-10
|
|
871
|
+
*
|
|
872
|
+
* Default result when no query param is added is last_7_days (today inclusive)
|
|
873
|
+
* @param org
|
|
874
|
+
* @param userId
|
|
875
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
876
|
+
* @param endDate end date. ISO 8601
|
|
877
|
+
* @param format Format
|
|
878
|
+
*
|
|
879
|
+
* * `json` - json
|
|
880
|
+
* @param includeMainPlatform Include main platform data
|
|
881
|
+
* @param startDate start date. ISO 8601
|
|
882
|
+
* @returns OverTimeWithTotal
|
|
883
|
+
* @throws ApiError
|
|
884
|
+
*/
|
|
885
|
+
public static perlearnerOrgsUsersOverviewTimeOverTimeRetrieve(
|
|
886
|
+
org: string,
|
|
887
|
+
userId: string,
|
|
888
|
+
departmentId?: number,
|
|
889
|
+
endDate?: string,
|
|
890
|
+
format: 'json' = 'json',
|
|
891
|
+
includeMainPlatform: boolean = true,
|
|
892
|
+
startDate?: string,
|
|
893
|
+
): CancelablePromise<OverTimeWithTotal> {
|
|
894
|
+
return __request(OpenAPI, {
|
|
895
|
+
method: 'GET',
|
|
896
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/overview/time/over-time',
|
|
897
|
+
path: {
|
|
898
|
+
'org': org,
|
|
899
|
+
'user_id': userId,
|
|
900
|
+
},
|
|
901
|
+
query: {
|
|
902
|
+
'department_id': departmentId,
|
|
903
|
+
'end_date': endDate,
|
|
904
|
+
'format': format,
|
|
905
|
+
'include_main_platform': includeMainPlatform,
|
|
906
|
+
'start_date': startDate,
|
|
907
|
+
},
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Get video watch counts over time.
|
|
912
|
+
*
|
|
913
|
+
* This endpoint provides daily counts of videos watched over a specified time period,
|
|
914
|
+
* with options to filter by course or user.
|
|
915
|
+
*
|
|
916
|
+
* Query Parameters:
|
|
917
|
+
* start_date (str, optional): Start date for the time range (ISO format)
|
|
918
|
+
* end_date (str, optional): End date for the time range (ISO format)
|
|
919
|
+
* course_id (str, optional): Filter by course ID
|
|
920
|
+
* user_id (str, optional): Filter by username or email
|
|
921
|
+
*
|
|
922
|
+
* Returns:
|
|
923
|
+
* Daily video watch counts over the specified time period.
|
|
924
|
+
*
|
|
925
|
+
* Default time range is the last 7 days if no dates are specified.
|
|
926
|
+
*
|
|
927
|
+
* Access Control:
|
|
928
|
+
* - Platform admins can access any video watch data
|
|
929
|
+
* - Learners can access their own video watch data
|
|
930
|
+
* @param org
|
|
931
|
+
* @param userId
|
|
932
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
933
|
+
* @param endDate end date. ISO 8601
|
|
934
|
+
* @param format Format
|
|
935
|
+
*
|
|
936
|
+
* * `json` - json
|
|
937
|
+
* @param includeMainPlatform Include main platform data
|
|
938
|
+
* @param startDate start date. ISO 8601
|
|
939
|
+
* @returns OverTimeWithTotal
|
|
940
|
+
* @throws ApiError
|
|
941
|
+
*/
|
|
942
|
+
public static perlearnerOrgsUsersVideosOverTimeRetrieve(
|
|
943
|
+
org: string,
|
|
944
|
+
userId: string,
|
|
945
|
+
departmentId?: number,
|
|
946
|
+
endDate?: string,
|
|
947
|
+
format: 'json' = 'json',
|
|
948
|
+
includeMainPlatform: boolean = true,
|
|
949
|
+
startDate?: string,
|
|
950
|
+
): CancelablePromise<OverTimeWithTotal> {
|
|
951
|
+
return __request(OpenAPI, {
|
|
952
|
+
method: 'GET',
|
|
953
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/videos/over-time',
|
|
954
|
+
path: {
|
|
955
|
+
'org': org,
|
|
956
|
+
'user_id': userId,
|
|
957
|
+
},
|
|
958
|
+
query: {
|
|
959
|
+
'department_id': departmentId,
|
|
960
|
+
'end_date': endDate,
|
|
961
|
+
'format': format,
|
|
962
|
+
'include_main_platform': includeMainPlatform,
|
|
963
|
+
'start_date': startDate,
|
|
964
|
+
},
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* Summary Videos watched data for a learner per enrollment
|
|
969
|
+
*
|
|
970
|
+
* Query Params
|
|
971
|
+
* 1. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
972
|
+
* @param org
|
|
973
|
+
* @param userId
|
|
974
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
975
|
+
* @param endDate end date. ISO 8601
|
|
976
|
+
* @param format Format
|
|
977
|
+
*
|
|
978
|
+
* * `json` - json
|
|
979
|
+
* @param includeMainPlatform Include main platform data
|
|
980
|
+
* @param startDate start date. ISO 8601
|
|
981
|
+
* @returns PerlearnerEngagementVideosWatchedPerCourse
|
|
982
|
+
* @throws ApiError
|
|
983
|
+
*/
|
|
984
|
+
public static perlearnerOrgsUsersVideosPerCourseRetrieve(
|
|
985
|
+
org: string,
|
|
986
|
+
userId: string,
|
|
987
|
+
departmentId?: number,
|
|
988
|
+
endDate?: string,
|
|
989
|
+
format: 'json' = 'json',
|
|
990
|
+
includeMainPlatform: boolean = true,
|
|
991
|
+
startDate?: string,
|
|
992
|
+
): CancelablePromise<PerlearnerEngagementVideosWatchedPerCourse> {
|
|
993
|
+
return __request(OpenAPI, {
|
|
994
|
+
method: 'GET',
|
|
995
|
+
url: '/api/perlearner/orgs/{org}/users/{user_id}/videos/per-course',
|
|
996
|
+
path: {
|
|
997
|
+
'org': org,
|
|
998
|
+
'user_id': userId,
|
|
999
|
+
},
|
|
1000
|
+
query: {
|
|
1001
|
+
'department_id': departmentId,
|
|
1002
|
+
'end_date': endDate,
|
|
1003
|
+
'format': format,
|
|
1004
|
+
'include_main_platform': includeMainPlatform,
|
|
1005
|
+
'start_date': startDate,
|
|
1006
|
+
},
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
}
|