@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,181 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { Count } from '../models/Count';
|
|
6
|
+
import type { PerlearnerCourseProgress } from '../models/PerlearnerCourseProgress';
|
|
7
|
+
import type { VideosCount } from '../models/VideosCount';
|
|
8
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
10
|
+
import { request as __request } from '../core/request';
|
|
11
|
+
export class PlatformService {
|
|
12
|
+
/**
|
|
13
|
+
* Base class for API views that return a single count value.
|
|
14
|
+
*
|
|
15
|
+
* This class formats the response as {"data": {value_key: count}} where
|
|
16
|
+
* value_key is configurable (defaults to "count").
|
|
17
|
+
*
|
|
18
|
+
* Attributes:
|
|
19
|
+
* value_key: The key used in the response for the count value
|
|
20
|
+
* @param courseId
|
|
21
|
+
* @param org
|
|
22
|
+
* @param userId
|
|
23
|
+
* @returns any No response body
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
public static platformOrgsCoursesUsersGradesPassedRetrieve(
|
|
27
|
+
courseId: string,
|
|
28
|
+
org: string,
|
|
29
|
+
userId: string,
|
|
30
|
+
): CancelablePromise<any> {
|
|
31
|
+
return __request(OpenAPI, {
|
|
32
|
+
method: 'GET',
|
|
33
|
+
url: '/api/platform/orgs/{org}/courses/{course_id}/users/{user_id}/grades/passed',
|
|
34
|
+
path: {
|
|
35
|
+
'course_id': courseId,
|
|
36
|
+
'org': org,
|
|
37
|
+
'user_id': userId,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Gives Percentage of units completed in course for a specific learner
|
|
43
|
+
* @param courseId
|
|
44
|
+
* @param org
|
|
45
|
+
* @param userId
|
|
46
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
47
|
+
* @param format Format
|
|
48
|
+
*
|
|
49
|
+
* * `json` - json
|
|
50
|
+
* @param includeMainPlatform Include main platform data
|
|
51
|
+
* @returns PerlearnerCourseProgress
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
public static platformOrgsCoursesUsersProgressRetrieve(
|
|
55
|
+
courseId: string,
|
|
56
|
+
org: string,
|
|
57
|
+
userId: string,
|
|
58
|
+
departmentId?: number,
|
|
59
|
+
format: 'json' = 'json',
|
|
60
|
+
includeMainPlatform: boolean = true,
|
|
61
|
+
): CancelablePromise<PerlearnerCourseProgress> {
|
|
62
|
+
return __request(OpenAPI, {
|
|
63
|
+
method: 'GET',
|
|
64
|
+
url: '/api/platform/orgs/{org}/courses/{course_id}/users/{user_id}/progress',
|
|
65
|
+
path: {
|
|
66
|
+
'course_id': courseId,
|
|
67
|
+
'org': org,
|
|
68
|
+
'user_id': userId,
|
|
69
|
+
},
|
|
70
|
+
query: {
|
|
71
|
+
'department_id': departmentId,
|
|
72
|
+
'format': format,
|
|
73
|
+
'include_main_platform': includeMainPlatform,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Average days used to complete a course
|
|
79
|
+
*
|
|
80
|
+
* Query Params
|
|
81
|
+
* 1. course_id <optional> e.g course-v1:Org+Course4+Run
|
|
82
|
+
* @param courseId
|
|
83
|
+
* @param org
|
|
84
|
+
* @param userId
|
|
85
|
+
* @returns any No response body
|
|
86
|
+
* @throws ApiError
|
|
87
|
+
*/
|
|
88
|
+
public static platformOrgsCoursesUsersProgressDaysToCompleteRetrieve(
|
|
89
|
+
courseId: string,
|
|
90
|
+
org: string,
|
|
91
|
+
userId: string,
|
|
92
|
+
): CancelablePromise<any> {
|
|
93
|
+
return __request(OpenAPI, {
|
|
94
|
+
method: 'GET',
|
|
95
|
+
url: '/api/platform/orgs/{org}/courses/{course_id}/users/{user_id}/progress/days-to-complete',
|
|
96
|
+
path: {
|
|
97
|
+
'course_id': courseId,
|
|
98
|
+
'org': org,
|
|
99
|
+
'user_id': userId,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Time spent count in seconds within a course by a learner
|
|
105
|
+
* @param courseId
|
|
106
|
+
* @param org
|
|
107
|
+
* @param userId
|
|
108
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
109
|
+
* @param endDate end date. ISO 8601
|
|
110
|
+
* @param format Format
|
|
111
|
+
*
|
|
112
|
+
* * `json` - json
|
|
113
|
+
* @param includeMainPlatform Include main platform data
|
|
114
|
+
* @param startDate start date. ISO 8601
|
|
115
|
+
* @returns Count
|
|
116
|
+
* @throws ApiError
|
|
117
|
+
*/
|
|
118
|
+
public static platformOrgsCoursesUsersTimeCountRetrieve(
|
|
119
|
+
courseId: string,
|
|
120
|
+
org: string,
|
|
121
|
+
userId: string,
|
|
122
|
+
departmentId?: number,
|
|
123
|
+
endDate?: string,
|
|
124
|
+
format: 'json' = 'json',
|
|
125
|
+
includeMainPlatform: boolean = true,
|
|
126
|
+
startDate?: string,
|
|
127
|
+
): CancelablePromise<Count> {
|
|
128
|
+
return __request(OpenAPI, {
|
|
129
|
+
method: 'GET',
|
|
130
|
+
url: '/api/platform/orgs/{org}/courses/{course_id}/users/{user_id}/time/count',
|
|
131
|
+
path: {
|
|
132
|
+
'course_id': courseId,
|
|
133
|
+
'org': org,
|
|
134
|
+
'user_id': userId,
|
|
135
|
+
},
|
|
136
|
+
query: {
|
|
137
|
+
'department_id': departmentId,
|
|
138
|
+
'end_date': endDate,
|
|
139
|
+
'format': format,
|
|
140
|
+
'include_main_platform': includeMainPlatform,
|
|
141
|
+
'start_date': startDate,
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* (Total videos watched / Total Course Videos) or Total Videos watched in a course by a learner
|
|
147
|
+
* @param courseId
|
|
148
|
+
* @param org
|
|
149
|
+
* @param userId
|
|
150
|
+
* @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
151
|
+
* @param format Format
|
|
152
|
+
*
|
|
153
|
+
* * `json` - json
|
|
154
|
+
* @param includeMainPlatform Include main platform data
|
|
155
|
+
* @returns VideosCount
|
|
156
|
+
* @throws ApiError
|
|
157
|
+
*/
|
|
158
|
+
public static platformOrgsCoursesUsersVideosCountRetrieve(
|
|
159
|
+
courseId: string,
|
|
160
|
+
org: string,
|
|
161
|
+
userId: string,
|
|
162
|
+
departmentId?: number,
|
|
163
|
+
format: 'json' = 'json',
|
|
164
|
+
includeMainPlatform: boolean = true,
|
|
165
|
+
): CancelablePromise<VideosCount> {
|
|
166
|
+
return __request(OpenAPI, {
|
|
167
|
+
method: 'GET',
|
|
168
|
+
url: '/api/platform/orgs/{org}/courses/{course_id}/users/{user_id}/videos/count',
|
|
169
|
+
path: {
|
|
170
|
+
'course_id': courseId,
|
|
171
|
+
'org': org,
|
|
172
|
+
'user_id': userId,
|
|
173
|
+
},
|
|
174
|
+
query: {
|
|
175
|
+
'department_id': departmentId,
|
|
176
|
+
'format': format,
|
|
177
|
+
'include_main_platform': includeMainPlatform,
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RecommendationSearchAPI } from '../models/RecommendationSearchAPI';
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
8
|
+
import { request as __request } from '../core/request';
|
|
9
|
+
export class RecommendationsService {
|
|
10
|
+
/**
|
|
11
|
+
* API endpoint that returns a search api url prepopulated with context data
|
|
12
|
+
* See http://localhost:8000/api/schema/swagger-ui/#/recommendations
|
|
13
|
+
* @param org
|
|
14
|
+
* @param userId
|
|
15
|
+
* @returns RecommendationSearchAPI
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
public static recommendationsOrgsUsersRetrieve(
|
|
19
|
+
org: string,
|
|
20
|
+
userId: string,
|
|
21
|
+
): CancelablePromise<RecommendationSearchAPI> {
|
|
22
|
+
return __request(OpenAPI, {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/api/recommendations/orgs/{org}/users/{user_id}/',
|
|
25
|
+
path: {
|
|
26
|
+
'org': org,
|
|
27
|
+
'user_id': userId,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ReportCreate } from '../models/ReportCreate';
|
|
6
|
+
import type { ReportDetail } from '../models/ReportDetail';
|
|
7
|
+
import type { ReportList } from '../models/ReportList';
|
|
8
|
+
import type { ReportRequest } from '../models/ReportRequest';
|
|
9
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
11
|
+
import { request as __request } from '../core/request';
|
|
12
|
+
export class ReportsService {
|
|
13
|
+
/**
|
|
14
|
+
* Lists all available reports in the system.
|
|
15
|
+
*
|
|
16
|
+
* This endpoint returns a list of all reports available to the user, including:
|
|
17
|
+
* - Report metadata (name, description, icon)
|
|
18
|
+
* - Available query parameters for each report
|
|
19
|
+
* - Result columns that will be returned
|
|
20
|
+
* - Current status of any previously requested reports
|
|
21
|
+
*
|
|
22
|
+
* If a report has been previously requested by the user, its status will be included
|
|
23
|
+
* in the response. Expired reports are automatically cleaned up.
|
|
24
|
+
*
|
|
25
|
+
* Returns:
|
|
26
|
+
* A list of report objects with their metadata and status information.
|
|
27
|
+
* @param org
|
|
28
|
+
* @returns ReportList
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
public static reportsOrgsRetrieve(
|
|
32
|
+
org: string,
|
|
33
|
+
): CancelablePromise<ReportList> {
|
|
34
|
+
return __request(OpenAPI, {
|
|
35
|
+
method: 'GET',
|
|
36
|
+
url: '/api/reports/orgs/{org}/',
|
|
37
|
+
path: {
|
|
38
|
+
'org': org,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves detailed information about a specific report type.
|
|
44
|
+
*
|
|
45
|
+
* This endpoint provides:
|
|
46
|
+
* - Metadata about the report (name, description, icon)
|
|
47
|
+
* - Available query parameters for the report
|
|
48
|
+
* - Result columns that will be returned
|
|
49
|
+
* - Current status of the most recent report of this type requested by the user
|
|
50
|
+
*
|
|
51
|
+
* Path Parameters:
|
|
52
|
+
* report_name (str): The identifier of the report to retrieve details for
|
|
53
|
+
*
|
|
54
|
+
* Returns:
|
|
55
|
+
* Detailed information about the report type and its current status if previously requested.
|
|
56
|
+
*
|
|
57
|
+
* Error Responses:
|
|
58
|
+
* 404 Not Found: If the specified report type doesn't exist
|
|
59
|
+
* @param org
|
|
60
|
+
* @param reportName
|
|
61
|
+
* @returns ReportDetail
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
public static reportsOrgsRetrieve2(
|
|
65
|
+
org: string,
|
|
66
|
+
reportName: string,
|
|
67
|
+
): CancelablePromise<ReportDetail> {
|
|
68
|
+
return __request(OpenAPI, {
|
|
69
|
+
method: 'GET',
|
|
70
|
+
url: '/api/reports/orgs/{org}/{report_name}',
|
|
71
|
+
path: {
|
|
72
|
+
'org': org,
|
|
73
|
+
'report_name': reportName,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates and manages report generation requests.
|
|
79
|
+
*
|
|
80
|
+
* This endpoint allows users to:
|
|
81
|
+
* 1. Request a new report generation
|
|
82
|
+
* 2. Check the status of a previously requested report
|
|
83
|
+
* 3. Force regeneration of an existing report
|
|
84
|
+
*
|
|
85
|
+
* Reports expire after a configured time period (default is typically 24-48 hours).
|
|
86
|
+
*
|
|
87
|
+
* Request Parameters:
|
|
88
|
+
* report_name (str): The identifier of the report to generate
|
|
89
|
+
* owner (str): The username of the report owner (usually the current user)
|
|
90
|
+
* learner_id (str, optional): Filter by specific learner
|
|
91
|
+
* course_id (str, optional): Filter by specific course
|
|
92
|
+
* start_date (str, optional): Start date for report data (ISO format)
|
|
93
|
+
* end_date (str, optional): End date for report data (ISO format)
|
|
94
|
+
* filters (dict, optional): Additional filters specific to the report type
|
|
95
|
+
* force (bool, optional): Force regeneration even if a valid report exists
|
|
96
|
+
*
|
|
97
|
+
* Returns:
|
|
98
|
+
* For new reports:
|
|
99
|
+
* - report_id: The unique identifier for the report task
|
|
100
|
+
* - state: The current state of the report (PENDING, RUNNING, etc.)
|
|
101
|
+
*
|
|
102
|
+
* For completed reports:
|
|
103
|
+
* - report_id: The unique identifier for the report task
|
|
104
|
+
* - report_name: The name of the report
|
|
105
|
+
* - url: Download URL for the report
|
|
106
|
+
* - state: COMPLETED
|
|
107
|
+
* - expires: Expiration timestamp for the report
|
|
108
|
+
*
|
|
109
|
+
* For in-progress reports:
|
|
110
|
+
* - report_id: The unique identifier for the report task
|
|
111
|
+
* - state: Current state (PENDING, RUNNING)
|
|
112
|
+
* - started_on: When the report generation started
|
|
113
|
+
* - owner: Username of the report owner
|
|
114
|
+
*
|
|
115
|
+
* Error Responses:
|
|
116
|
+
* 400 Bad Request: Invalid parameters or report configuration
|
|
117
|
+
* 404 Not Found: Report type not found
|
|
118
|
+
* 403 Forbidden: User doesn't have permission for the requested report
|
|
119
|
+
* @param org
|
|
120
|
+
* @param requestBody
|
|
121
|
+
* @returns ReportCreate
|
|
122
|
+
* @throws ApiError
|
|
123
|
+
*/
|
|
124
|
+
public static reportsOrgsNewCreate(
|
|
125
|
+
org: string,
|
|
126
|
+
requestBody?: ReportRequest,
|
|
127
|
+
): CancelablePromise<ReportCreate> {
|
|
128
|
+
return __request(OpenAPI, {
|
|
129
|
+
method: 'POST',
|
|
130
|
+
url: '/api/reports/orgs/{org}/new',
|
|
131
|
+
path: {
|
|
132
|
+
'org': org,
|
|
133
|
+
},
|
|
134
|
+
body: requestBody,
|
|
135
|
+
mediaType: 'application/json',
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Returns a list of reports available in the system.
|
|
140
|
+
*
|
|
141
|
+
* For each report, it includes:
|
|
142
|
+
* - display_name: Human-readable name of the report
|
|
143
|
+
* - description: Description of what the report contains
|
|
144
|
+
* - icon: URL to an icon representing the report
|
|
145
|
+
* - report_name: Unique identifier for the report
|
|
146
|
+
* - extra_query_params: Additional parameters that can be passed when creating the report
|
|
147
|
+
* - result_columns: Columns that will be included in the report results
|
|
148
|
+
* - status: Current status of the report if it has been previously requested
|
|
149
|
+
*
|
|
150
|
+
* The status will include details like the report ID, state, and download URL if completed.
|
|
151
|
+
* @param key
|
|
152
|
+
* @returns ReportList
|
|
153
|
+
* @throws ApiError
|
|
154
|
+
*/
|
|
155
|
+
public static reportsPlatformsRetrieve(
|
|
156
|
+
key: string,
|
|
157
|
+
): CancelablePromise<ReportList> {
|
|
158
|
+
return __request(OpenAPI, {
|
|
159
|
+
method: 'GET',
|
|
160
|
+
url: '/api/reports/platforms/{key}/',
|
|
161
|
+
path: {
|
|
162
|
+
'key': key,
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Returns details of a specific report type including its status if previously requested.
|
|
168
|
+
* @param key
|
|
169
|
+
* @param reportName
|
|
170
|
+
* @returns ReportDetail
|
|
171
|
+
* @throws ApiError
|
|
172
|
+
*/
|
|
173
|
+
public static reportsPlatformsRetrieve2(
|
|
174
|
+
key: string,
|
|
175
|
+
reportName: string,
|
|
176
|
+
): CancelablePromise<ReportDetail> {
|
|
177
|
+
return __request(OpenAPI, {
|
|
178
|
+
method: 'GET',
|
|
179
|
+
url: '/api/reports/platforms/{key}/{report_name}',
|
|
180
|
+
path: {
|
|
181
|
+
'key': key,
|
|
182
|
+
'report_name': reportName,
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Triggers a new report generation.
|
|
188
|
+
*
|
|
189
|
+
* If the report has been previously requested, it returns the status of the report.
|
|
190
|
+
* Reports expire after a configured duration.
|
|
191
|
+
*
|
|
192
|
+
* The request body should include:
|
|
193
|
+
* - report_name: Name of the report to generate
|
|
194
|
+
* - learner_id: (optional) ID of the learner to filter by
|
|
195
|
+
* - course_id: (optional) ID of the course to filter by
|
|
196
|
+
* - force: (optional) Force generation of a new report even if one exists
|
|
197
|
+
* - filters: (optional) Additional filters for the report
|
|
198
|
+
* - departments: (optional) Department IDs to filter by
|
|
199
|
+
* @param key
|
|
200
|
+
* @param requestBody
|
|
201
|
+
* @returns ReportCreate
|
|
202
|
+
* @throws ApiError
|
|
203
|
+
*/
|
|
204
|
+
public static reportsPlatformsNewCreate(
|
|
205
|
+
key: string,
|
|
206
|
+
requestBody?: ReportRequest,
|
|
207
|
+
): CancelablePromise<ReportCreate> {
|
|
208
|
+
return __request(OpenAPI, {
|
|
209
|
+
method: 'POST',
|
|
210
|
+
url: '/api/reports/platforms/{key}/new',
|
|
211
|
+
path: {
|
|
212
|
+
'key': key,
|
|
213
|
+
},
|
|
214
|
+
body: requestBody,
|
|
215
|
+
mediaType: 'application/json',
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|