@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,309 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
7
|
+
import { request as __request } from '../core/request';
|
|
8
|
+
export class SearchService {
|
|
9
|
+
/**
|
|
10
|
+
* Search and filter content across the learning catalog.
|
|
11
|
+
*
|
|
12
|
+
* This endpoint provides a powerful search interface for discovering content across
|
|
13
|
+
* multiple content types (courses, programs, pathways, skills, roles, resources).
|
|
14
|
+
* It supports full-text search, faceted filtering, and pagination.
|
|
15
|
+
*
|
|
16
|
+
* Query Parameters:
|
|
17
|
+
* query (str, optional): Search term to filter content by name or description
|
|
18
|
+
* content (list, optional): Content types to include in results
|
|
19
|
+
* (courses, programs, pathways, skills, roles, resources)
|
|
20
|
+
* Default: ["programs", "courses", "pathways", "skills"]
|
|
21
|
+
*
|
|
22
|
+
* # Filtering parameters
|
|
23
|
+
* course_id (str, optional): Filter by specific course ID
|
|
24
|
+
* program_id (str, optional): Filter by specific program ID
|
|
25
|
+
* pathway_id (str, optional): Filter by specific pathway ID
|
|
26
|
+
* skill_id (str, optional): Filter by specific skill ID
|
|
27
|
+
* subject (list, optional): Filter by subject areas
|
|
28
|
+
* tenant (list, optional): Filter by tenant/organization
|
|
29
|
+
* topics (list, optional): Filter by topic areas
|
|
30
|
+
* tags (list, optional): Filter by tags
|
|
31
|
+
* level (list, optional): Filter by difficulty level
|
|
32
|
+
* self_paced (list, optional): Filter by course format (self-paced, instructor-led)
|
|
33
|
+
* promotion (list, optional): Filter by promotion status
|
|
34
|
+
* language (list, optional): Filter by content language
|
|
35
|
+
* certificate (list, optional): Filter by certificate type
|
|
36
|
+
* program_type (list, optional): Filter by program type
|
|
37
|
+
* duration (list, optional): Filter by course duration range
|
|
38
|
+
* price (str, optional): Filter by price/audit status
|
|
39
|
+
* resource_type (list, optional): Filter by resource type
|
|
40
|
+
* skills (list, optional): Filter by skills
|
|
41
|
+
*
|
|
42
|
+
* # Sorting and pagination
|
|
43
|
+
* order_by (str, optional): Field to sort results by
|
|
44
|
+
* order_ascending (bool, optional): Sort direction (default: false)
|
|
45
|
+
* alphabetical (bool, optional): Sort alphabetically by name (default: false)
|
|
46
|
+
* limit (int, optional): Number of results per page (default: 12, max: 100)
|
|
47
|
+
* offset (int, optional): Starting position for pagination
|
|
48
|
+
*
|
|
49
|
+
* # Response options
|
|
50
|
+
* return_facet (bool, optional): Include facet data in response (default: true)
|
|
51
|
+
* return_items (bool, optional): Include items in programs/pathways (default: false)
|
|
52
|
+
* allow_skill_search (bool, optional): Enable skill-based search (default: false)
|
|
53
|
+
* update_facet (str, optional): Force facet update
|
|
54
|
+
*
|
|
55
|
+
* Returns:
|
|
56
|
+
* A JSON response containing:
|
|
57
|
+
* - results: List of content items with metadata
|
|
58
|
+
* - count: Total number of matching items
|
|
59
|
+
* - next: URL for the next page of results (if available)
|
|
60
|
+
* - previous: URL for the previous page of results (if available)
|
|
61
|
+
* - current_page: Current page number
|
|
62
|
+
* - total_pages: Total number of pages
|
|
63
|
+
* - facets: Aggregated counts for each filter category (if requested)
|
|
64
|
+
*
|
|
65
|
+
* Each content item contains type-specific fields:
|
|
66
|
+
* - Courses:
|
|
67
|
+
* {
|
|
68
|
+
* "id": 123,
|
|
69
|
+
* "type": "course",
|
|
70
|
+
* "course_id": "CS101",
|
|
71
|
+
* "name": "Introduction to Computer Science",
|
|
72
|
+
* "description": "Learn the fundamentals of computer science",
|
|
73
|
+
* "short_description": "CS fundamentals",
|
|
74
|
+
* "image_url": "https://example.com/images/cs101.jpg",
|
|
75
|
+
* "level": "Beginner",
|
|
76
|
+
* "subject": "Computer Science",
|
|
77
|
+
* "topics": ["Programming", "Algorithms"],
|
|
78
|
+
* "tags": ["python", "coding"],
|
|
79
|
+
* "language": "English",
|
|
80
|
+
* "tenant": "example-university",
|
|
81
|
+
* "self_paced": true,
|
|
82
|
+
* "duration": "6 weeks",
|
|
83
|
+
* "certificate": "Professional Certificate",
|
|
84
|
+
* "price": "Free",
|
|
85
|
+
* "skills": [
|
|
86
|
+
* {"id": 1, "name": "Python Programming"},
|
|
87
|
+
* {"id": 2, "name": "Algorithms"}
|
|
88
|
+
* ],
|
|
89
|
+
* "url": "https://example.com/courses/cs101"
|
|
90
|
+
* }
|
|
91
|
+
*
|
|
92
|
+
* - Programs:
|
|
93
|
+
* {
|
|
94
|
+
* "id": 456,
|
|
95
|
+
* "type": "program",
|
|
96
|
+
* "program_id": "PROG123",
|
|
97
|
+
* "name": "Data Science Program",
|
|
98
|
+
* "description": "Comprehensive data science curriculum",
|
|
99
|
+
* "short_description": "Learn data science",
|
|
100
|
+
* "image_url": "https://example.com/images/datascience.jpg",
|
|
101
|
+
* "level": "Intermediate",
|
|
102
|
+
* "subject": "Data Science",
|
|
103
|
+
* "topics": ["Machine Learning", "Statistics"],
|
|
104
|
+
* "program_type": "Professional Certificate",
|
|
105
|
+
* "courses": [
|
|
106
|
+
* {"id": 123, "name": "Introduction to Python"},
|
|
107
|
+
* {"id": 124, "name": "Statistics for Data Science"}
|
|
108
|
+
* ],
|
|
109
|
+
* "url": "https://example.com/programs/prog123"
|
|
110
|
+
* }
|
|
111
|
+
*
|
|
112
|
+
* - Pathways:
|
|
113
|
+
* {
|
|
114
|
+
* "id": 789,
|
|
115
|
+
* "type": "pathway",
|
|
116
|
+
* "pathway_id": "PATH456",
|
|
117
|
+
* "name": "Software Engineering Career Path",
|
|
118
|
+
* "description": "Complete pathway to become a software engineer",
|
|
119
|
+
* "image_url": "https://example.com/images/swe-path.jpg",
|
|
120
|
+
* "programs": [
|
|
121
|
+
* {"id": 456, "name": "Programming Fundamentals"},
|
|
122
|
+
* {"id": 457, "name": "Web Development"}
|
|
123
|
+
* ],
|
|
124
|
+
* "url": "https://example.com/pathways/path456"
|
|
125
|
+
* }
|
|
126
|
+
*
|
|
127
|
+
* - Skills:
|
|
128
|
+
* {
|
|
129
|
+
* "id": 321,
|
|
130
|
+
* "type": "skill",
|
|
131
|
+
* "name": "Machine Learning",
|
|
132
|
+
* "description": "Building systems that learn from data",
|
|
133
|
+
* "courses": [
|
|
134
|
+
* {"id": 125, "name": "Machine Learning Fundamentals"}
|
|
135
|
+
* ],
|
|
136
|
+
* "related_skills": [
|
|
137
|
+
* {"id": 322, "name": "Deep Learning"}
|
|
138
|
+
* ]
|
|
139
|
+
* }
|
|
140
|
+
*
|
|
141
|
+
* - Roles:
|
|
142
|
+
* {
|
|
143
|
+
* "id": 654,
|
|
144
|
+
* "type": "role",
|
|
145
|
+
* "name": "Data Scientist",
|
|
146
|
+
* "description": "Professional who analyzes and interprets complex data",
|
|
147
|
+
* "skills": [
|
|
148
|
+
* {"id": 321, "name": "Machine Learning"},
|
|
149
|
+
* {"id": 323, "name": "Data Analysis"}
|
|
150
|
+
* ],
|
|
151
|
+
* "recommended_courses": [
|
|
152
|
+
* {"id": 125, "name": "Machine Learning Fundamentals"}
|
|
153
|
+
* ]
|
|
154
|
+
* }
|
|
155
|
+
*
|
|
156
|
+
* - Resources:
|
|
157
|
+
* {
|
|
158
|
+
* "id": 987,
|
|
159
|
+
* "type": "resource",
|
|
160
|
+
* "name": "Python Cheat Sheet",
|
|
161
|
+
* "description": "Quick reference guide for Python",
|
|
162
|
+
* "resource_type": "PDF",
|
|
163
|
+
* "url": "https://example.com/resources/python-cheatsheet.pdf",
|
|
164
|
+
* "topics": ["Programming", "Python"]
|
|
165
|
+
* }
|
|
166
|
+
*
|
|
167
|
+
* Error Responses:
|
|
168
|
+
* 500 Internal Server Error: If an unexpected error occurs during processing
|
|
169
|
+
*
|
|
170
|
+
* Notes:
|
|
171
|
+
* - Results are cached for performance
|
|
172
|
+
* - The 'resources' content type is only included by default if IBL_ENABLE_RESOURCES_IN_FACET is true
|
|
173
|
+
* - For debugging, add ?debug=true to see detailed information about skill matching
|
|
174
|
+
* @returns any No response body
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
public static searchCatalogRetrieve(): CancelablePromise<any> {
|
|
178
|
+
return __request(OpenAPI, {
|
|
179
|
+
method: 'GET',
|
|
180
|
+
url: '/api/search/catalog/',
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Determine whether to serve a detail view or a list view.
|
|
185
|
+
* If any detail-identifying parameters are present (course_id, program_id, etc.)
|
|
186
|
+
* the detail view is returned; otherwise the aggregated list view is returned.
|
|
187
|
+
* @param username
|
|
188
|
+
* @returns any No response body
|
|
189
|
+
* @throws ApiError
|
|
190
|
+
*/
|
|
191
|
+
public static searchPersonalizedCatalogRetrieve(
|
|
192
|
+
username: string,
|
|
193
|
+
): CancelablePromise<any> {
|
|
194
|
+
return __request(OpenAPI, {
|
|
195
|
+
method: 'GET',
|
|
196
|
+
url: '/api/search/personalized-catalog/{username}/',
|
|
197
|
+
path: {
|
|
198
|
+
'username': username,
|
|
199
|
+
},
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Search and filter users within a specific organization/tenant.
|
|
204
|
+
*
|
|
205
|
+
* This endpoint provides a search interface for discovering users within an organization,
|
|
206
|
+
* with support for filtering by departments, pagination, and faceted filtering.
|
|
207
|
+
*
|
|
208
|
+
* Path Parameters:
|
|
209
|
+
* org (str): The organization/tenant identifier
|
|
210
|
+
* username (str): The username of the user making the request
|
|
211
|
+
*
|
|
212
|
+
* Query Parameters:
|
|
213
|
+
* # Search parameters
|
|
214
|
+
* query (str, optional): Search term to filter users by name, username, or email
|
|
215
|
+
*
|
|
216
|
+
* # Department filtering
|
|
217
|
+
* department_mode (bool, optional): Enable department-based filtering (default: false)
|
|
218
|
+
* user_department (bool, optional): Legacy parameter for department_mode (default: false)
|
|
219
|
+
* department (list, optional): Filter by specific departments
|
|
220
|
+
*
|
|
221
|
+
* # Additional filters
|
|
222
|
+
* role (list, optional): Filter by user role
|
|
223
|
+
* status (list, optional): Filter by user status (active, inactive)
|
|
224
|
+
* joined_date (list, optional): Filter by join date range
|
|
225
|
+
* last_login (list, optional): Filter by last login date range
|
|
226
|
+
*
|
|
227
|
+
* # Pagination
|
|
228
|
+
* limit (int, optional): Number of results per page (default: 10)
|
|
229
|
+
* offset (int, optional): Starting position for pagination
|
|
230
|
+
*
|
|
231
|
+
* Returns:
|
|
232
|
+
* A JSON response containing:
|
|
233
|
+
* ```
|
|
234
|
+
* {
|
|
235
|
+
* "results": [
|
|
236
|
+
* {
|
|
237
|
+
* "id": 123,
|
|
238
|
+
* "username": "john.doe",
|
|
239
|
+
* "email": "john.doe@example.com",
|
|
240
|
+
* "first_name": "John",
|
|
241
|
+
* "last_name": "Doe",
|
|
242
|
+
* "full_name": "John Doe",
|
|
243
|
+
* "profile_image": "https://example.com/profiles/john-doe.jpg",
|
|
244
|
+
* "role": "Student",
|
|
245
|
+
* "departments": ["Computer Science", "Data Science"],
|
|
246
|
+
* "status": "active",
|
|
247
|
+
* "joined_date": "2023-01-15T12:00:00Z",
|
|
248
|
+
* "last_login": "2023-06-20T15:30:00Z",
|
|
249
|
+
* "metadata": {
|
|
250
|
+
* "location": "New York",
|
|
251
|
+
* "title": "Software Engineer",
|
|
252
|
+
* "bio": "Experienced software engineer with a passion for education"
|
|
253
|
+
* }
|
|
254
|
+
* },
|
|
255
|
+
* // Additional user objects...
|
|
256
|
+
* ],
|
|
257
|
+
* "count": 50,
|
|
258
|
+
* "next": "https://api.example.com/api/search/users/example-org/admin/?limit=10&offset=10",
|
|
259
|
+
* "previous": null,
|
|
260
|
+
* "current_page": 1,
|
|
261
|
+
* "total_pages": 5,
|
|
262
|
+
* "facets": {
|
|
263
|
+
* "role": [
|
|
264
|
+
* {"key": "Student", "doc_count": 30},
|
|
265
|
+
* {"key": "Instructor", "doc_count": 15},
|
|
266
|
+
* {"key": "Admin", "doc_count": 5}
|
|
267
|
+
* ],
|
|
268
|
+
* "department": [
|
|
269
|
+
* {"key": "Computer Science", "doc_count": 20},
|
|
270
|
+
* {"key": "Data Science", "doc_count": 15},
|
|
271
|
+
* {"key": "Business", "doc_count": 10},
|
|
272
|
+
* {"key": "Engineering", "doc_count": 5}
|
|
273
|
+
* ],
|
|
274
|
+
* "status": [
|
|
275
|
+
* {"key": "active", "doc_count": 45},
|
|
276
|
+
* {"key": "inactive", "doc_count": 5}
|
|
277
|
+
* ]
|
|
278
|
+
* }
|
|
279
|
+
* }
|
|
280
|
+
* ```
|
|
281
|
+
* Error Responses:
|
|
282
|
+
* 400 Bad Request: If the request parameters are invalid
|
|
283
|
+
* 403 Forbidden: If the user doesn't have department admin privileges (when using department_mode)
|
|
284
|
+
* 404 Not Found: If the user or organization doesn't exist
|
|
285
|
+
* 500 Internal Server Error: If an unexpected error occurs
|
|
286
|
+
*
|
|
287
|
+
* Access Control:
|
|
288
|
+
* - The requesting user must have an active account in the specified organization
|
|
289
|
+
* - When department_mode is enabled, the user must be an admin of at least one department
|
|
290
|
+
* - Department filtering restricts results to users in departments where the requesting user is an admin
|
|
291
|
+
* @param org
|
|
292
|
+
* @param username
|
|
293
|
+
* @returns any No response body
|
|
294
|
+
* @throws ApiError
|
|
295
|
+
*/
|
|
296
|
+
public static searchUsersOrgsUsersRetrieve(
|
|
297
|
+
org: string,
|
|
298
|
+
username: string,
|
|
299
|
+
): CancelablePromise<any> {
|
|
300
|
+
return __request(OpenAPI, {
|
|
301
|
+
method: 'GET',
|
|
302
|
+
url: '/api/search/users/orgs/{org}/users/{username}/',
|
|
303
|
+
path: {
|
|
304
|
+
'org': org,
|
|
305
|
+
'username': username,
|
|
306
|
+
},
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|