@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,907 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { AverageOvertime } from '../models/AverageOvertime';
|
|
6
|
+
import type { CourseCompletionPerCourse } from '../models/CourseCompletionPerCourse';
|
|
7
|
+
import type { EngagementPerCourse } from '../models/EngagementPerCourse';
|
|
8
|
+
import type { OvertimeWithChangeInfo } from '../models/OvertimeWithChangeInfo';
|
|
9
|
+
import type { OverTimeWithTotal } from '../models/OverTimeWithTotal';
|
|
10
|
+
import type { PerLearnerTimeSpentInCourseTree } from '../models/PerLearnerTimeSpentInCourseTree';
|
|
11
|
+
import type { TimeDetail } from '../models/TimeDetail';
|
|
12
|
+
import type { TimeSpentByUsersInCourse } from '../models/TimeSpentByUsersInCourse';
|
|
13
|
+
import type { TimeSpentPerCourse } from '../models/TimeSpentPerCourse';
|
|
14
|
+
import type { VideoEngagementPerCourse } from '../models/VideoEngagementPerCourse';
|
|
15
|
+
import type { VideosInCourseSummary } from '../models/VideosInCourseSummary';
|
|
16
|
+
import type { VideosSpecificCourse } from '../models/VideosSpecificCourse';
|
|
17
|
+
import type { WatchedVideosPerUser } from '../models/WatchedVideosPerUser';
|
|
18
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
19
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
20
|
+
import { request as __request } from '../core/request';
|
|
21
|
+
export class EngagementService {
|
|
22
|
+
/**
|
|
23
|
+
* Get engagement metrics on a per-course basis.
|
|
24
|
+
*
|
|
25
|
+
* This endpoint provides a paginated list of courses with engagement metrics
|
|
26
|
+
* including activity counts, time spent, and interaction data.
|
|
27
|
+
*
|
|
28
|
+
* Query Parameters:
|
|
29
|
+
* page (int, optional): Page number for pagination
|
|
30
|
+
* length (int, optional): Number of items per page
|
|
31
|
+
*
|
|
32
|
+
* Returns:
|
|
33
|
+
* A paginated list of courses with their engagement metrics.
|
|
34
|
+
* @param org
|
|
35
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
36
|
+
* @param format Format
|
|
37
|
+
*
|
|
38
|
+
* * `json` - json
|
|
39
|
+
* @param includeMainPlatform Include main platform data
|
|
40
|
+
* @param length Size of data to return
|
|
41
|
+
* @param page Page offset
|
|
42
|
+
* @returns EngagementPerCourse
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
public static engagementOrgsActivityRetrieve(
|
|
46
|
+
org: string,
|
|
47
|
+
departmentId?: number,
|
|
48
|
+
format: 'json' = 'json',
|
|
49
|
+
includeMainPlatform: boolean = true,
|
|
50
|
+
length?: number,
|
|
51
|
+
page?: number,
|
|
52
|
+
): CancelablePromise<EngagementPerCourse> {
|
|
53
|
+
return __request(OpenAPI, {
|
|
54
|
+
method: 'GET',
|
|
55
|
+
url: '/api/engagement/orgs/{org}/activity',
|
|
56
|
+
path: {
|
|
57
|
+
'org': org,
|
|
58
|
+
},
|
|
59
|
+
query: {
|
|
60
|
+
'department_id': departmentId,
|
|
61
|
+
'format': format,
|
|
62
|
+
'include_main_platform': includeMainPlatform,
|
|
63
|
+
'length': length,
|
|
64
|
+
'page': page,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Completion count per user per course across the platform
|
|
70
|
+
*
|
|
71
|
+
* Query Params
|
|
72
|
+
* 1. start_date e.g 2020-10-01
|
|
73
|
+
* 2. end_date e.g 2020-10-10
|
|
74
|
+
*
|
|
75
|
+
* Default result when no query param is added is last_7_days (today inclusive)
|
|
76
|
+
* @param org
|
|
77
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
78
|
+
* @param endDate end date. ISO 8601
|
|
79
|
+
* @param format Format
|
|
80
|
+
*
|
|
81
|
+
* * `json` - json
|
|
82
|
+
* @param includeMainPlatform Include main platform data
|
|
83
|
+
* @param startDate start date. ISO 8601
|
|
84
|
+
* @returns OvertimeWithChangeInfo
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
public static engagementOrgsCourseCompletionOverTimeRetrieve(
|
|
88
|
+
org: string,
|
|
89
|
+
departmentId?: number,
|
|
90
|
+
endDate?: string,
|
|
91
|
+
format: 'json' = 'json',
|
|
92
|
+
includeMainPlatform: boolean = true,
|
|
93
|
+
startDate?: string,
|
|
94
|
+
): CancelablePromise<OvertimeWithChangeInfo> {
|
|
95
|
+
return __request(OpenAPI, {
|
|
96
|
+
method: 'GET',
|
|
97
|
+
url: '/api/engagement/orgs/{org}/course_completion/over-time',
|
|
98
|
+
path: {
|
|
99
|
+
'org': org,
|
|
100
|
+
},
|
|
101
|
+
query: {
|
|
102
|
+
'department_id': departmentId,
|
|
103
|
+
'end_date': endDate,
|
|
104
|
+
'format': format,
|
|
105
|
+
'include_main_platform': includeMainPlatform,
|
|
106
|
+
'start_date': startDate,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* List course completion metrics on a per-course basis.
|
|
112
|
+
*
|
|
113
|
+
* This endpoint provides a paginated table of courses with enrollment and
|
|
114
|
+
* completion statistics for each course.
|
|
115
|
+
*
|
|
116
|
+
* Returns:
|
|
117
|
+
* A paginated list of courses with:
|
|
118
|
+
* - Course identification (ID and name)
|
|
119
|
+
* - Enrollment count
|
|
120
|
+
* - Completion count
|
|
121
|
+
* - Average completion rate
|
|
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
|
+
* @returns CourseCompletionPerCourse
|
|
131
|
+
* @throws ApiError
|
|
132
|
+
*/
|
|
133
|
+
public static engagementOrgsCourseCompletionPerCourseRetrieve(
|
|
134
|
+
org: string,
|
|
135
|
+
departmentId?: number,
|
|
136
|
+
format: 'json' = 'json',
|
|
137
|
+
includeMainPlatform: boolean = true,
|
|
138
|
+
length?: number,
|
|
139
|
+
page?: number,
|
|
140
|
+
): CancelablePromise<CourseCompletionPerCourse> {
|
|
141
|
+
return __request(OpenAPI, {
|
|
142
|
+
method: 'GET',
|
|
143
|
+
url: '/api/engagement/orgs/{org}/course_completion/per-course',
|
|
144
|
+
path: {
|
|
145
|
+
'org': org,
|
|
146
|
+
},
|
|
147
|
+
query: {
|
|
148
|
+
'department_id': departmentId,
|
|
149
|
+
'format': format,
|
|
150
|
+
'include_main_platform': includeMainPlatform,
|
|
151
|
+
'length': length,
|
|
152
|
+
'page': page,
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Average time spent in secs on a per-day basis
|
|
158
|
+
*
|
|
159
|
+
* Query Params
|
|
160
|
+
* 1. start_date e.g 2020-10-01
|
|
161
|
+
* 2. end_date e.g 2020-10-10
|
|
162
|
+
* 3. course_id <optional>
|
|
163
|
+
*
|
|
164
|
+
* Default result when no query param is added is last_7_days (today inclusive)
|
|
165
|
+
* @param courseId
|
|
166
|
+
* @param org
|
|
167
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
168
|
+
* @param endDate end date. ISO 8601
|
|
169
|
+
* @param format Format
|
|
170
|
+
*
|
|
171
|
+
* * `json` - json
|
|
172
|
+
* @param includeMainPlatform Include main platform data
|
|
173
|
+
* @param startDate start date. ISO 8601
|
|
174
|
+
* @returns AverageOvertime
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
public static engagementOrgsCoursesTimeAverageRetrieve(
|
|
178
|
+
courseId: string,
|
|
179
|
+
org: string,
|
|
180
|
+
departmentId?: number,
|
|
181
|
+
endDate?: string,
|
|
182
|
+
format: 'json' = 'json',
|
|
183
|
+
includeMainPlatform: boolean = true,
|
|
184
|
+
startDate?: string,
|
|
185
|
+
): CancelablePromise<AverageOvertime> {
|
|
186
|
+
return __request(OpenAPI, {
|
|
187
|
+
method: 'GET',
|
|
188
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/time/average',
|
|
189
|
+
path: {
|
|
190
|
+
'course_id': courseId,
|
|
191
|
+
'org': org,
|
|
192
|
+
},
|
|
193
|
+
query: {
|
|
194
|
+
'department_id': departmentId,
|
|
195
|
+
'end_date': endDate,
|
|
196
|
+
'format': format,
|
|
197
|
+
'include_main_platform': includeMainPlatform,
|
|
198
|
+
'start_date': startDate,
|
|
199
|
+
},
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Time spent per course in secs in a tree like form
|
|
204
|
+
*
|
|
205
|
+
* Kwargs
|
|
206
|
+
* course_id e.g course-v1:Org+Course4+Run
|
|
207
|
+
*
|
|
208
|
+
* Query Params
|
|
209
|
+
* 1. start_date <optional> e.g 2020-10-01
|
|
210
|
+
* 2. end_date <optional> e.g 2020-10-10
|
|
211
|
+
* @param courseId
|
|
212
|
+
* @param org
|
|
213
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
214
|
+
* @param format Format
|
|
215
|
+
*
|
|
216
|
+
* * `json` - json
|
|
217
|
+
* @param includeMainPlatform Include main platform data
|
|
218
|
+
* @returns TimeDetail
|
|
219
|
+
* @throws ApiError
|
|
220
|
+
*/
|
|
221
|
+
public static engagementOrgsCoursesTimeDetailRetrieve(
|
|
222
|
+
courseId: string,
|
|
223
|
+
org: string,
|
|
224
|
+
departmentId?: number,
|
|
225
|
+
format: 'json' = 'json',
|
|
226
|
+
includeMainPlatform: boolean = true,
|
|
227
|
+
): CancelablePromise<TimeDetail> {
|
|
228
|
+
return __request(OpenAPI, {
|
|
229
|
+
method: 'GET',
|
|
230
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/time/detail',
|
|
231
|
+
path: {
|
|
232
|
+
'course_id': courseId,
|
|
233
|
+
'org': org,
|
|
234
|
+
},
|
|
235
|
+
query: {
|
|
236
|
+
'department_id': departmentId,
|
|
237
|
+
'format': format,
|
|
238
|
+
'include_main_platform': includeMainPlatform,
|
|
239
|
+
},
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Time spent per course in secs on a per-day basis
|
|
244
|
+
*
|
|
245
|
+
* Query Params
|
|
246
|
+
* 1. start_date e.g 2020-10-01
|
|
247
|
+
* 2. end_date e.g 2020-10-10
|
|
248
|
+
* Kwargs
|
|
249
|
+
* 3. course_id
|
|
250
|
+
*
|
|
251
|
+
* Default result when no query param is added is last_7_days (today inclusive)
|
|
252
|
+
* @param courseId
|
|
253
|
+
* @param org
|
|
254
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
255
|
+
* @param endDate end date. ISO 8601
|
|
256
|
+
* @param format Format
|
|
257
|
+
*
|
|
258
|
+
* * `json` - json
|
|
259
|
+
* @param includeMainPlatform Include main platform data
|
|
260
|
+
* @param startDate start date. ISO 8601
|
|
261
|
+
* @returns OverTimeWithTotal
|
|
262
|
+
* @throws ApiError
|
|
263
|
+
*/
|
|
264
|
+
public static engagementOrgsCoursesTimeOverTimeRetrieve(
|
|
265
|
+
courseId: string,
|
|
266
|
+
org: string,
|
|
267
|
+
departmentId?: number,
|
|
268
|
+
endDate?: string,
|
|
269
|
+
format: 'json' = 'json',
|
|
270
|
+
includeMainPlatform: boolean = true,
|
|
271
|
+
startDate?: string,
|
|
272
|
+
): CancelablePromise<OverTimeWithTotal> {
|
|
273
|
+
return __request(OpenAPI, {
|
|
274
|
+
method: 'GET',
|
|
275
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/time/over-time',
|
|
276
|
+
path: {
|
|
277
|
+
'course_id': courseId,
|
|
278
|
+
'org': org,
|
|
279
|
+
},
|
|
280
|
+
query: {
|
|
281
|
+
'department_id': departmentId,
|
|
282
|
+
'end_date': endDate,
|
|
283
|
+
'format': format,
|
|
284
|
+
'include_main_platform': includeMainPlatform,
|
|
285
|
+
'start_date': startDate,
|
|
286
|
+
},
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Time spent by users in a course
|
|
291
|
+
*
|
|
292
|
+
* Query Params
|
|
293
|
+
* course_id e.g course-v1:Org+Course4+Run
|
|
294
|
+
* @param courseId
|
|
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 endDate end date. ISO 8601
|
|
298
|
+
* @param format Format
|
|
299
|
+
*
|
|
300
|
+
* * `json` - json
|
|
301
|
+
* @param includeMainPlatform Include main platform data
|
|
302
|
+
* @param length Size of data to return
|
|
303
|
+
* @param page Page offset
|
|
304
|
+
* @param startDate start date. ISO 8601
|
|
305
|
+
* @returns TimeSpentByUsersInCourse
|
|
306
|
+
* @throws ApiError
|
|
307
|
+
*/
|
|
308
|
+
public static engagementOrgsCoursesTimeUsersRetrieve(
|
|
309
|
+
courseId: string,
|
|
310
|
+
org: string,
|
|
311
|
+
departmentId?: number,
|
|
312
|
+
endDate?: string,
|
|
313
|
+
format: 'json' = 'json',
|
|
314
|
+
includeMainPlatform: boolean = true,
|
|
315
|
+
length?: number,
|
|
316
|
+
page?: number,
|
|
317
|
+
startDate?: string,
|
|
318
|
+
): CancelablePromise<TimeSpentByUsersInCourse> {
|
|
319
|
+
return __request(OpenAPI, {
|
|
320
|
+
method: 'GET',
|
|
321
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/time/users',
|
|
322
|
+
path: {
|
|
323
|
+
'course_id': courseId,
|
|
324
|
+
'org': org,
|
|
325
|
+
},
|
|
326
|
+
query: {
|
|
327
|
+
'department_id': departmentId,
|
|
328
|
+
'end_date': endDate,
|
|
329
|
+
'format': format,
|
|
330
|
+
'include_main_platform': includeMainPlatform,
|
|
331
|
+
'length': length,
|
|
332
|
+
'page': page,
|
|
333
|
+
'start_date': startDate,
|
|
334
|
+
},
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Time spent within a course in ordered hierarchical format
|
|
339
|
+
*
|
|
340
|
+
* Kwargs
|
|
341
|
+
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
342
|
+
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
343
|
+
* Query Params
|
|
344
|
+
* 3. start_date <optional> e.g 2020-10-01
|
|
345
|
+
* 4. end_date <optional> e.g 2020-10-10
|
|
346
|
+
* @param courseId
|
|
347
|
+
* @param org
|
|
348
|
+
* @param userId
|
|
349
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
350
|
+
* @param endDate end date. ISO 8601
|
|
351
|
+
* @param format Format
|
|
352
|
+
*
|
|
353
|
+
* * `json` - json
|
|
354
|
+
* @param includeMainPlatform Include main platform data
|
|
355
|
+
* @param startDate start date. ISO 8601
|
|
356
|
+
* @returns PerLearnerTimeSpentInCourseTree
|
|
357
|
+
* @throws ApiError
|
|
358
|
+
*/
|
|
359
|
+
public static engagementOrgsCoursesTimeUsersDetailRetrieve(
|
|
360
|
+
courseId: string,
|
|
361
|
+
org: string,
|
|
362
|
+
userId: string,
|
|
363
|
+
departmentId?: number,
|
|
364
|
+
endDate?: string,
|
|
365
|
+
format: 'json' = 'json',
|
|
366
|
+
includeMainPlatform: boolean = true,
|
|
367
|
+
startDate?: string,
|
|
368
|
+
): CancelablePromise<PerLearnerTimeSpentInCourseTree> {
|
|
369
|
+
return __request(OpenAPI, {
|
|
370
|
+
method: 'GET',
|
|
371
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/time/users/{user_id}/detail',
|
|
372
|
+
path: {
|
|
373
|
+
'course_id': courseId,
|
|
374
|
+
'org': org,
|
|
375
|
+
'user_id': userId,
|
|
376
|
+
},
|
|
377
|
+
query: {
|
|
378
|
+
'department_id': departmentId,
|
|
379
|
+
'end_date': endDate,
|
|
380
|
+
'format': format,
|
|
381
|
+
'include_main_platform': includeMainPlatform,
|
|
382
|
+
'start_date': startDate,
|
|
383
|
+
},
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Time spent in secs on a per-day basis
|
|
388
|
+
*
|
|
389
|
+
* Query Params
|
|
390
|
+
* 1. course_id <optional> e.g course-v1:Org+Course4+Run
|
|
391
|
+
* 2. user_id <optional> e.g developer@ibleducation.com or dev123 (username|email)
|
|
392
|
+
* 3. start_date e.g 2020-10-01
|
|
393
|
+
* 4. end_date e.g 2020-10-10
|
|
394
|
+
*
|
|
395
|
+
* Default result when no query param is added is last_7_days (today inclusive)
|
|
396
|
+
* @param courseId
|
|
397
|
+
* @param org
|
|
398
|
+
* @param userId
|
|
399
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
400
|
+
* @param endDate end date. ISO 8601
|
|
401
|
+
* @param format Format
|
|
402
|
+
*
|
|
403
|
+
* * `json` - json
|
|
404
|
+
* @param includeMainPlatform Include main platform data
|
|
405
|
+
* @param startDate start date. ISO 8601
|
|
406
|
+
* @returns OverTimeWithTotal
|
|
407
|
+
* @throws ApiError
|
|
408
|
+
*/
|
|
409
|
+
public static engagementOrgsCoursesTimeUsersOverTimeRetrieve(
|
|
410
|
+
courseId: string,
|
|
411
|
+
org: string,
|
|
412
|
+
userId: string,
|
|
413
|
+
departmentId?: number,
|
|
414
|
+
endDate?: string,
|
|
415
|
+
format: 'json' = 'json',
|
|
416
|
+
includeMainPlatform: boolean = true,
|
|
417
|
+
startDate?: string,
|
|
418
|
+
): CancelablePromise<OverTimeWithTotal> {
|
|
419
|
+
return __request(OpenAPI, {
|
|
420
|
+
method: 'GET',
|
|
421
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/time/users/{user_id}/over-time',
|
|
422
|
+
path: {
|
|
423
|
+
'course_id': courseId,
|
|
424
|
+
'org': org,
|
|
425
|
+
'user_id': userId,
|
|
426
|
+
},
|
|
427
|
+
query: {
|
|
428
|
+
'department_id': departmentId,
|
|
429
|
+
'end_date': endDate,
|
|
430
|
+
'format': format,
|
|
431
|
+
'include_main_platform': includeMainPlatform,
|
|
432
|
+
'start_date': startDate,
|
|
433
|
+
},
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Get video engagement metrics for a specific course.
|
|
438
|
+
*
|
|
439
|
+
* This endpoint provides detailed video engagement statistics for a single course,
|
|
440
|
+
* including view counts, completion rates, and time spent on videos.
|
|
441
|
+
*
|
|
442
|
+
* Query Parameters:
|
|
443
|
+
* course_id (str): The course ID to get video engagement data for
|
|
444
|
+
*
|
|
445
|
+
* Returns:
|
|
446
|
+
* Detailed video engagement metrics for the specified course.
|
|
447
|
+
* @param courseId
|
|
448
|
+
* @param org
|
|
449
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
450
|
+
* @param format Format
|
|
451
|
+
*
|
|
452
|
+
* * `json` - json
|
|
453
|
+
* @param includeMainPlatform Include main platform data
|
|
454
|
+
* @returns VideosSpecificCourse
|
|
455
|
+
* @throws ApiError
|
|
456
|
+
*/
|
|
457
|
+
public static engagementOrgsCoursesVideosRetrieve(
|
|
458
|
+
courseId: string,
|
|
459
|
+
org: string,
|
|
460
|
+
departmentId?: number,
|
|
461
|
+
format: 'json' = 'json',
|
|
462
|
+
includeMainPlatform: boolean = true,
|
|
463
|
+
): CancelablePromise<VideosSpecificCourse> {
|
|
464
|
+
return __request(OpenAPI, {
|
|
465
|
+
method: 'GET',
|
|
466
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/videos/',
|
|
467
|
+
path: {
|
|
468
|
+
'course_id': courseId,
|
|
469
|
+
'org': org,
|
|
470
|
+
},
|
|
471
|
+
query: {
|
|
472
|
+
'department_id': departmentId,
|
|
473
|
+
'format': format,
|
|
474
|
+
'include_main_platform': includeMainPlatform,
|
|
475
|
+
},
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Get video watch counts over time.
|
|
480
|
+
*
|
|
481
|
+
* This endpoint provides daily counts of videos watched over a specified time period,
|
|
482
|
+
* with options to filter by course or user.
|
|
483
|
+
*
|
|
484
|
+
* Query Parameters:
|
|
485
|
+
* start_date (str, optional): Start date for the time range (ISO format)
|
|
486
|
+
* end_date (str, optional): End date for the time range (ISO format)
|
|
487
|
+
* course_id (str, optional): Filter by course ID
|
|
488
|
+
* user_id (str, optional): Filter by username or email
|
|
489
|
+
*
|
|
490
|
+
* Returns:
|
|
491
|
+
* Daily video watch counts over the specified time period.
|
|
492
|
+
*
|
|
493
|
+
* Default time range is the last 7 days if no dates are specified.
|
|
494
|
+
*
|
|
495
|
+
* Access Control:
|
|
496
|
+
* - Platform admins can access any video watch data
|
|
497
|
+
* - Learners can access their own video watch data
|
|
498
|
+
* @param courseId
|
|
499
|
+
* @param org
|
|
500
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
501
|
+
* @param endDate end date. ISO 8601
|
|
502
|
+
* @param format Format
|
|
503
|
+
*
|
|
504
|
+
* * `json` - json
|
|
505
|
+
* @param includeMainPlatform Include main platform data
|
|
506
|
+
* @param startDate start date. ISO 8601
|
|
507
|
+
* @returns OverTimeWithTotal
|
|
508
|
+
* @throws ApiError
|
|
509
|
+
*/
|
|
510
|
+
public static engagementOrgsCoursesVideosOverTimeRetrieve(
|
|
511
|
+
courseId: string,
|
|
512
|
+
org: string,
|
|
513
|
+
departmentId?: number,
|
|
514
|
+
endDate?: string,
|
|
515
|
+
format: 'json' = 'json',
|
|
516
|
+
includeMainPlatform: boolean = true,
|
|
517
|
+
startDate?: string,
|
|
518
|
+
): CancelablePromise<OverTimeWithTotal> {
|
|
519
|
+
return __request(OpenAPI, {
|
|
520
|
+
method: 'GET',
|
|
521
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/videos/over-time',
|
|
522
|
+
path: {
|
|
523
|
+
'course_id': courseId,
|
|
524
|
+
'org': org,
|
|
525
|
+
},
|
|
526
|
+
query: {
|
|
527
|
+
'department_id': departmentId,
|
|
528
|
+
'end_date': endDate,
|
|
529
|
+
'format': format,
|
|
530
|
+
'include_main_platform': includeMainPlatform,
|
|
531
|
+
'start_date': startDate,
|
|
532
|
+
},
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Get a summary of video watch statistics for a specific course.
|
|
537
|
+
*
|
|
538
|
+
* This endpoint provides a structured summary of video watch data for a course,
|
|
539
|
+
* organized in a tree-like format by course sections and subsections.
|
|
540
|
+
*
|
|
541
|
+
* Query Parameters:
|
|
542
|
+
* course_id (str): The course ID to get video summary for
|
|
543
|
+
*
|
|
544
|
+
* Returns:
|
|
545
|
+
* A hierarchical structure of video watch data for the course, including:
|
|
546
|
+
* - Section and subsection organization
|
|
547
|
+
* - Video identification and metadata
|
|
548
|
+
* - Watch counts and completion rates
|
|
549
|
+
* @param courseId
|
|
550
|
+
* @param org
|
|
551
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
552
|
+
* @param format Format
|
|
553
|
+
*
|
|
554
|
+
* * `json` - json
|
|
555
|
+
* @param includeMainPlatform Include main platform data
|
|
556
|
+
* @returns VideosInCourseSummary
|
|
557
|
+
* @throws ApiError
|
|
558
|
+
*/
|
|
559
|
+
public static engagementOrgsCoursesVideosSummaryRetrieve(
|
|
560
|
+
courseId: string,
|
|
561
|
+
org: string,
|
|
562
|
+
departmentId?: number,
|
|
563
|
+
format: 'json' = 'json',
|
|
564
|
+
includeMainPlatform: boolean = true,
|
|
565
|
+
): CancelablePromise<VideosInCourseSummary> {
|
|
566
|
+
return __request(OpenAPI, {
|
|
567
|
+
method: 'GET',
|
|
568
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/videos/summary',
|
|
569
|
+
path: {
|
|
570
|
+
'course_id': courseId,
|
|
571
|
+
'org': org,
|
|
572
|
+
},
|
|
573
|
+
query: {
|
|
574
|
+
'department_id': departmentId,
|
|
575
|
+
'format': format,
|
|
576
|
+
'include_main_platform': includeMainPlatform,
|
|
577
|
+
},
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* List of users' videos completed records for a specific course
|
|
582
|
+
*
|
|
583
|
+
* Kwargs
|
|
584
|
+
* course_id e.g course-v1:Org+Course4+Run
|
|
585
|
+
* @param courseId
|
|
586
|
+
* @param org
|
|
587
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
588
|
+
* @param format Format
|
|
589
|
+
*
|
|
590
|
+
* * `json` - json
|
|
591
|
+
* @param includeMainPlatform Include main platform data
|
|
592
|
+
* @returns WatchedVideosPerUser
|
|
593
|
+
* @throws ApiError
|
|
594
|
+
*/
|
|
595
|
+
public static engagementOrgsCoursesVideosUsersRetrieve(
|
|
596
|
+
courseId: string,
|
|
597
|
+
org: string,
|
|
598
|
+
departmentId?: number,
|
|
599
|
+
format: 'json' = 'json',
|
|
600
|
+
includeMainPlatform: boolean = true,
|
|
601
|
+
): CancelablePromise<WatchedVideosPerUser> {
|
|
602
|
+
return __request(OpenAPI, {
|
|
603
|
+
method: 'GET',
|
|
604
|
+
url: '/api/engagement/orgs/{org}/courses/{course_id}/videos/users',
|
|
605
|
+
path: {
|
|
606
|
+
'course_id': courseId,
|
|
607
|
+
'org': org,
|
|
608
|
+
},
|
|
609
|
+
query: {
|
|
610
|
+
'department_id': departmentId,
|
|
611
|
+
'format': format,
|
|
612
|
+
'include_main_platform': includeMainPlatform,
|
|
613
|
+
},
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Average time spent by a learner in enrolled courses. Gives a rough estimate of whats the average time
|
|
618
|
+
* that would be spent by a learner in a course
|
|
619
|
+
*
|
|
620
|
+
* Query Params
|
|
621
|
+
* 1. start_date e.g 2020-10-01
|
|
622
|
+
* 2. end_date e.g 2020-10-10
|
|
623
|
+
* @param org
|
|
624
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
625
|
+
* @param endDate end date. ISO 8601
|
|
626
|
+
* @param format Format
|
|
627
|
+
*
|
|
628
|
+
* * `json` - json
|
|
629
|
+
* @param includeMainPlatform Include main platform data
|
|
630
|
+
* @param startDate start date. ISO 8601
|
|
631
|
+
* @returns AverageOvertime
|
|
632
|
+
* @throws ApiError
|
|
633
|
+
*/
|
|
634
|
+
public static engagementOrgsTimeAveragePerlearnerPercourseRetrieve(
|
|
635
|
+
org: string,
|
|
636
|
+
departmentId?: number,
|
|
637
|
+
endDate?: string,
|
|
638
|
+
format: 'json' = 'json',
|
|
639
|
+
includeMainPlatform: boolean = true,
|
|
640
|
+
startDate?: string,
|
|
641
|
+
): CancelablePromise<AverageOvertime> {
|
|
642
|
+
return __request(OpenAPI, {
|
|
643
|
+
method: 'GET',
|
|
644
|
+
url: '/api/engagement/orgs/{org}/time/average-perlearner-percourse',
|
|
645
|
+
path: {
|
|
646
|
+
'org': org,
|
|
647
|
+
},
|
|
648
|
+
query: {
|
|
649
|
+
'department_id': departmentId,
|
|
650
|
+
'end_date': endDate,
|
|
651
|
+
'format': format,
|
|
652
|
+
'include_main_platform': includeMainPlatform,
|
|
653
|
+
'start_date': startDate,
|
|
654
|
+
},
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Average time spent in secs on a per-day basis
|
|
659
|
+
*
|
|
660
|
+
* Query Params
|
|
661
|
+
* 1. start_date e.g 2020-10-01
|
|
662
|
+
* 2. end_date e.g 2020-10-10
|
|
663
|
+
* 3. course_id <optional>
|
|
664
|
+
*
|
|
665
|
+
* Default result when no query param is added is last_7_days (today inclusive)
|
|
666
|
+
* @param org
|
|
667
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
668
|
+
* @param endDate end date. ISO 8601
|
|
669
|
+
* @param format Format
|
|
670
|
+
*
|
|
671
|
+
* * `json` - json
|
|
672
|
+
* @param includeMainPlatform Include main platform data
|
|
673
|
+
* @param startDate start date. ISO 8601
|
|
674
|
+
* @returns AverageOvertime
|
|
675
|
+
* @throws ApiError
|
|
676
|
+
*/
|
|
677
|
+
public static engagementOrgsTimeAverageWithOverTimeRetrieve(
|
|
678
|
+
org: string,
|
|
679
|
+
departmentId?: number,
|
|
680
|
+
endDate?: string,
|
|
681
|
+
format: 'json' = 'json',
|
|
682
|
+
includeMainPlatform: boolean = true,
|
|
683
|
+
startDate?: string,
|
|
684
|
+
): CancelablePromise<AverageOvertime> {
|
|
685
|
+
return __request(OpenAPI, {
|
|
686
|
+
method: 'GET',
|
|
687
|
+
url: '/api/engagement/orgs/{org}/time/average-with-over-time',
|
|
688
|
+
path: {
|
|
689
|
+
'org': org,
|
|
690
|
+
},
|
|
691
|
+
query: {
|
|
692
|
+
'department_id': departmentId,
|
|
693
|
+
'end_date': endDate,
|
|
694
|
+
'format': format,
|
|
695
|
+
'include_main_platform': includeMainPlatform,
|
|
696
|
+
'start_date': startDate,
|
|
697
|
+
},
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Get time spent on the platform over time.
|
|
702
|
+
*
|
|
703
|
+
* This endpoint provides daily time spent values (in seconds) across the
|
|
704
|
+
* platform over a specified time period.
|
|
705
|
+
*
|
|
706
|
+
* Query Parameters:
|
|
707
|
+
* start_date (str, optional): Start date for the time range (ISO format)
|
|
708
|
+
* end_date (str, optional): End date for the time range (ISO format)
|
|
709
|
+
*
|
|
710
|
+
* Returns:
|
|
711
|
+
* Daily time spent values over the specified time period, with change metrics
|
|
712
|
+
* compared to previous periods.
|
|
713
|
+
*
|
|
714
|
+
* Default time range is the last 7 days if no dates are specified.
|
|
715
|
+
* @param org
|
|
716
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
717
|
+
* @param endDate end date. ISO 8601
|
|
718
|
+
* @param format Format
|
|
719
|
+
*
|
|
720
|
+
* * `json` - json
|
|
721
|
+
* @param includeMainPlatform Include main platform data
|
|
722
|
+
* @param startDate start date. ISO 8601
|
|
723
|
+
* @returns OvertimeWithChangeInfo
|
|
724
|
+
* @throws ApiError
|
|
725
|
+
*/
|
|
726
|
+
public static engagementOrgsTimeOverTimeRetrieve(
|
|
727
|
+
org: string,
|
|
728
|
+
departmentId?: number,
|
|
729
|
+
endDate?: string,
|
|
730
|
+
format: 'json' = 'json',
|
|
731
|
+
includeMainPlatform: boolean = true,
|
|
732
|
+
startDate?: string,
|
|
733
|
+
): CancelablePromise<OvertimeWithChangeInfo> {
|
|
734
|
+
return __request(OpenAPI, {
|
|
735
|
+
method: 'GET',
|
|
736
|
+
url: '/api/engagement/orgs/{org}/time/over-time',
|
|
737
|
+
path: {
|
|
738
|
+
'org': org,
|
|
739
|
+
},
|
|
740
|
+
query: {
|
|
741
|
+
'department_id': departmentId,
|
|
742
|
+
'end_date': endDate,
|
|
743
|
+
'format': format,
|
|
744
|
+
'include_main_platform': includeMainPlatform,
|
|
745
|
+
'start_date': startDate,
|
|
746
|
+
},
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Get time spent statistics on a per-course basis.
|
|
751
|
+
*
|
|
752
|
+
* This endpoint provides a paginated list of courses with the total time
|
|
753
|
+
* spent by users in each course.
|
|
754
|
+
*
|
|
755
|
+
* Query Parameters:
|
|
756
|
+
* start_date (str, optional): Start date for filtering (ISO format)
|
|
757
|
+
* end_date (str, optional): End date for filtering (ISO format)
|
|
758
|
+
* page (int, optional): Page number for pagination
|
|
759
|
+
* length (int, optional): Number of items per page
|
|
760
|
+
*
|
|
761
|
+
* Returns:
|
|
762
|
+
* A paginated list of courses with:
|
|
763
|
+
* - Course identification (ID and name)
|
|
764
|
+
* - Total time spent (in seconds)
|
|
765
|
+
* - Formatted time spent (human-readable)
|
|
766
|
+
* - Percentage of total platform time
|
|
767
|
+
* @param org
|
|
768
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
769
|
+
* @param endDate end date. ISO 8601
|
|
770
|
+
* @param format Format
|
|
771
|
+
*
|
|
772
|
+
* * `json` - json
|
|
773
|
+
* @param includeMainPlatform Include main platform data
|
|
774
|
+
* @param length Size of data to return
|
|
775
|
+
* @param page Page offset
|
|
776
|
+
* @param startDate start date. ISO 8601
|
|
777
|
+
* @returns TimeSpentPerCourse
|
|
778
|
+
* @throws ApiError
|
|
779
|
+
*/
|
|
780
|
+
public static engagementOrgsTimePerCourseRetrieve(
|
|
781
|
+
org: string,
|
|
782
|
+
departmentId?: number,
|
|
783
|
+
endDate?: string,
|
|
784
|
+
format: 'json' = 'json',
|
|
785
|
+
includeMainPlatform: boolean = true,
|
|
786
|
+
length?: number,
|
|
787
|
+
page?: number,
|
|
788
|
+
startDate?: string,
|
|
789
|
+
): CancelablePromise<TimeSpentPerCourse> {
|
|
790
|
+
return __request(OpenAPI, {
|
|
791
|
+
method: 'GET',
|
|
792
|
+
url: '/api/engagement/orgs/{org}/time/per-course',
|
|
793
|
+
path: {
|
|
794
|
+
'org': org,
|
|
795
|
+
},
|
|
796
|
+
query: {
|
|
797
|
+
'department_id': departmentId,
|
|
798
|
+
'end_date': endDate,
|
|
799
|
+
'format': format,
|
|
800
|
+
'include_main_platform': includeMainPlatform,
|
|
801
|
+
'length': length,
|
|
802
|
+
'page': page,
|
|
803
|
+
'start_date': startDate,
|
|
804
|
+
},
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Get video engagement metrics on a per-course basis.
|
|
809
|
+
*
|
|
810
|
+
* This endpoint provides a paginated list of courses with video engagement metrics
|
|
811
|
+
* including view counts, completion rates, and time spent on videos.
|
|
812
|
+
*
|
|
813
|
+
* Query Parameters:
|
|
814
|
+
* page (int, optional): Page number for pagination
|
|
815
|
+
* length (int, optional): Number of items per page
|
|
816
|
+
*
|
|
817
|
+
* Returns:
|
|
818
|
+
* A paginated list of courses with their video engagement metrics.
|
|
819
|
+
* @param org
|
|
820
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
821
|
+
* @param format Format
|
|
822
|
+
*
|
|
823
|
+
* * `json` - json
|
|
824
|
+
* @param includeMainPlatform Include main platform data
|
|
825
|
+
* @param length Size of data to return
|
|
826
|
+
* @param page Page offset
|
|
827
|
+
* @returns VideoEngagementPerCourse
|
|
828
|
+
* @throws ApiError
|
|
829
|
+
*/
|
|
830
|
+
public static engagementOrgsVideosRetrieve(
|
|
831
|
+
org: string,
|
|
832
|
+
departmentId?: number,
|
|
833
|
+
format: 'json' = 'json',
|
|
834
|
+
includeMainPlatform: boolean = true,
|
|
835
|
+
length?: number,
|
|
836
|
+
page?: number,
|
|
837
|
+
): CancelablePromise<VideoEngagementPerCourse> {
|
|
838
|
+
return __request(OpenAPI, {
|
|
839
|
+
method: 'GET',
|
|
840
|
+
url: '/api/engagement/orgs/{org}/videos/',
|
|
841
|
+
path: {
|
|
842
|
+
'org': org,
|
|
843
|
+
},
|
|
844
|
+
query: {
|
|
845
|
+
'department_id': departmentId,
|
|
846
|
+
'format': format,
|
|
847
|
+
'include_main_platform': includeMainPlatform,
|
|
848
|
+
'length': length,
|
|
849
|
+
'page': page,
|
|
850
|
+
},
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Get video watch counts over time.
|
|
855
|
+
*
|
|
856
|
+
* This endpoint provides daily counts of videos watched over a specified time period,
|
|
857
|
+
* with options to filter by course or user.
|
|
858
|
+
*
|
|
859
|
+
* Query Parameters:
|
|
860
|
+
* start_date (str, optional): Start date for the time range (ISO format)
|
|
861
|
+
* end_date (str, optional): End date for the time range (ISO format)
|
|
862
|
+
* course_id (str, optional): Filter by course ID
|
|
863
|
+
* user_id (str, optional): Filter by username or email
|
|
864
|
+
*
|
|
865
|
+
* Returns:
|
|
866
|
+
* Daily video watch counts over the specified time period.
|
|
867
|
+
*
|
|
868
|
+
* Default time range is the last 7 days if no dates are specified.
|
|
869
|
+
*
|
|
870
|
+
* Access Control:
|
|
871
|
+
* - Platform admins can access any video watch data
|
|
872
|
+
* - Learners can access their own video watch data
|
|
873
|
+
* @param org
|
|
874
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
875
|
+
* @param endDate end date. ISO 8601
|
|
876
|
+
* @param format Format
|
|
877
|
+
*
|
|
878
|
+
* * `json` - json
|
|
879
|
+
* @param includeMainPlatform Include main platform data
|
|
880
|
+
* @param startDate start date. ISO 8601
|
|
881
|
+
* @returns OverTimeWithTotal
|
|
882
|
+
* @throws ApiError
|
|
883
|
+
*/
|
|
884
|
+
public static engagementOrgsVideosOverTimeRetrieve(
|
|
885
|
+
org: string,
|
|
886
|
+
departmentId?: number,
|
|
887
|
+
endDate?: string,
|
|
888
|
+
format: 'json' = 'json',
|
|
889
|
+
includeMainPlatform: boolean = true,
|
|
890
|
+
startDate?: string,
|
|
891
|
+
): CancelablePromise<OverTimeWithTotal> {
|
|
892
|
+
return __request(OpenAPI, {
|
|
893
|
+
method: 'GET',
|
|
894
|
+
url: '/api/engagement/orgs/{org}/videos/over-time',
|
|
895
|
+
path: {
|
|
896
|
+
'org': org,
|
|
897
|
+
},
|
|
898
|
+
query: {
|
|
899
|
+
'department_id': departmentId,
|
|
900
|
+
'end_date': endDate,
|
|
901
|
+
'format': format,
|
|
902
|
+
'include_main_platform': includeMainPlatform,
|
|
903
|
+
'start_date': startDate,
|
|
904
|
+
},
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
}
|