@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,136 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { NetRevenueOverTime } from '../models/NetRevenueOverTime';
|
|
6
|
+
import type { Order } from '../models/Order';
|
|
7
|
+
import type { Product } from '../models/Product';
|
|
8
|
+
import type { RevenueByProduct } from '../models/RevenueByProduct';
|
|
9
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
11
|
+
import { request as __request } from '../core/request';
|
|
12
|
+
export class FinanceService {
|
|
13
|
+
/**
|
|
14
|
+
* Returns table listing products and product info for all or specific org
|
|
15
|
+
* @param org
|
|
16
|
+
* @returns Product
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
public static financeOrgsProductsRetrieve(
|
|
20
|
+
org: string,
|
|
21
|
+
): CancelablePromise<Product> {
|
|
22
|
+
return __request(OpenAPI, {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/api/finance/orgs/{org}/products',
|
|
25
|
+
path: {
|
|
26
|
+
'org': org,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Return list of WooCommerce orders for product item_id over optional date range
|
|
32
|
+
* @param itemId
|
|
33
|
+
* @param org
|
|
34
|
+
* @param endDate End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
35
|
+
* @param startDate Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
36
|
+
* @returns Order
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
public static financeOrgsProductsOrdersRetrieve(
|
|
40
|
+
itemId: string,
|
|
41
|
+
org: string,
|
|
42
|
+
endDate?: string,
|
|
43
|
+
startDate?: string,
|
|
44
|
+
): CancelablePromise<Order> {
|
|
45
|
+
return __request(OpenAPI, {
|
|
46
|
+
method: 'GET',
|
|
47
|
+
url: '/api/finance/orgs/{org}/products/{item_id}/orders',
|
|
48
|
+
path: {
|
|
49
|
+
'item_id': itemId,
|
|
50
|
+
'org': org,
|
|
51
|
+
},
|
|
52
|
+
query: {
|
|
53
|
+
'end_date': endDate,
|
|
54
|
+
'start_date': startDate,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns Net Revenue over time for org and slug
|
|
60
|
+
* @param itemId
|
|
61
|
+
* @param org
|
|
62
|
+
* @param endDate End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
63
|
+
* @param startDate Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
64
|
+
* @returns NetRevenueOverTime
|
|
65
|
+
* @throws ApiError
|
|
66
|
+
*/
|
|
67
|
+
public static financeOrgsProductsSalesOverTimeRetrieve(
|
|
68
|
+
itemId: string,
|
|
69
|
+
org: string,
|
|
70
|
+
endDate?: string,
|
|
71
|
+
startDate?: string,
|
|
72
|
+
): CancelablePromise<NetRevenueOverTime> {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/api/finance/orgs/{org}/products/{item_id}/sales-over-time',
|
|
76
|
+
path: {
|
|
77
|
+
'item_id': itemId,
|
|
78
|
+
'org': org,
|
|
79
|
+
},
|
|
80
|
+
query: {
|
|
81
|
+
'end_date': endDate,
|
|
82
|
+
'start_date': startDate,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Returns Net Revenue over time for org and slug
|
|
88
|
+
* @param org
|
|
89
|
+
* @param endDate End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
90
|
+
* @param startDate Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
91
|
+
* @returns NetRevenueOverTime
|
|
92
|
+
* @throws ApiError
|
|
93
|
+
*/
|
|
94
|
+
public static financeOrgsRevenueNetOverTimeRetrieve(
|
|
95
|
+
org: string,
|
|
96
|
+
endDate?: string,
|
|
97
|
+
startDate?: string,
|
|
98
|
+
): CancelablePromise<NetRevenueOverTime> {
|
|
99
|
+
return __request(OpenAPI, {
|
|
100
|
+
method: 'GET',
|
|
101
|
+
url: '/api/finance/orgs/{org}/revenue/net-over-time',
|
|
102
|
+
path: {
|
|
103
|
+
'org': org,
|
|
104
|
+
},
|
|
105
|
+
query: {
|
|
106
|
+
'end_date': endDate,
|
|
107
|
+
'start_date': startDate,
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Returns Revenue by Product + summary for specific org
|
|
113
|
+
* @param org
|
|
114
|
+
* @param endDate End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
115
|
+
* @param startDate Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
116
|
+
* @returns RevenueByProduct
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
public static financeOrgsRevenueProductsRetrieve(
|
|
120
|
+
org: string,
|
|
121
|
+
endDate?: string,
|
|
122
|
+
startDate?: string,
|
|
123
|
+
): CancelablePromise<RevenueByProduct> {
|
|
124
|
+
return __request(OpenAPI, {
|
|
125
|
+
method: 'GET',
|
|
126
|
+
url: '/api/finance/orgs/{org}/revenue/products',
|
|
127
|
+
path: {
|
|
128
|
+
'org': org,
|
|
129
|
+
},
|
|
130
|
+
query: {
|
|
131
|
+
'end_date': endDate,
|
|
132
|
+
'start_date': startDate,
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ContextResponse } from '../models/ContextResponse';
|
|
6
|
+
import type { NotificationPreview } from '../models/NotificationPreview';
|
|
7
|
+
import type { NotificationSource } from '../models/NotificationSource';
|
|
8
|
+
import type { PreviewResponse } from '../models/PreviewResponse';
|
|
9
|
+
import type { Recipient } from '../models/Recipient';
|
|
10
|
+
import type { SendNotification } from '../models/SendNotification';
|
|
11
|
+
import type { SendResponse } from '../models/SendResponse';
|
|
12
|
+
import type { ValidateSourceResponse } from '../models/ValidateSourceResponse';
|
|
13
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
14
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
15
|
+
import { request as __request } from '../core/request';
|
|
16
|
+
export class NotificationBuilderService {
|
|
17
|
+
/**
|
|
18
|
+
* Get build recipients
|
|
19
|
+
* Get paginated list of recipients for a notification build
|
|
20
|
+
* @param id
|
|
21
|
+
* @param platformKey
|
|
22
|
+
* @param page Page number
|
|
23
|
+
* @param pageSize Number of items per page
|
|
24
|
+
* @param search Search recipients by username or email
|
|
25
|
+
* @returns Recipient
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
public static notificationV1OrgsNotificationBuilderRecipientsList(
|
|
29
|
+
id: string,
|
|
30
|
+
platformKey: string,
|
|
31
|
+
page?: number,
|
|
32
|
+
pageSize?: number,
|
|
33
|
+
search?: string,
|
|
34
|
+
): CancelablePromise<Array<Recipient>> {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/{id}/recipients/',
|
|
38
|
+
path: {
|
|
39
|
+
'id': id,
|
|
40
|
+
'platform_key': platformKey,
|
|
41
|
+
},
|
|
42
|
+
query: {
|
|
43
|
+
'page': page,
|
|
44
|
+
'page_size': pageSize,
|
|
45
|
+
'search': search,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get notification context data
|
|
51
|
+
* Get all context data needed for notification building including templates, channels, and platforms
|
|
52
|
+
* @param platformKey
|
|
53
|
+
* @returns ContextResponse
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
public static notificationV1OrgsNotificationBuilderContextRetrieve(
|
|
57
|
+
platformKey: string,
|
|
58
|
+
): CancelablePromise<ContextResponse> {
|
|
59
|
+
return __request(OpenAPI, {
|
|
60
|
+
method: 'GET',
|
|
61
|
+
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/context/',
|
|
62
|
+
path: {
|
|
63
|
+
'platform_key': platformKey,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Preview notification
|
|
69
|
+
* Preview notification recipients and get build ID for sending
|
|
70
|
+
* @param platformKey
|
|
71
|
+
* @param requestBody
|
|
72
|
+
* @returns PreviewResponse
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
public static notificationV1OrgsNotificationBuilderPreviewCreate(
|
|
76
|
+
platformKey: string,
|
|
77
|
+
requestBody: NotificationPreview,
|
|
78
|
+
): CancelablePromise<PreviewResponse> {
|
|
79
|
+
return __request(OpenAPI, {
|
|
80
|
+
method: 'POST',
|
|
81
|
+
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/preview/',
|
|
82
|
+
path: {
|
|
83
|
+
'platform_key': platformKey,
|
|
84
|
+
},
|
|
85
|
+
body: requestBody,
|
|
86
|
+
mediaType: 'application/json',
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Send notification
|
|
91
|
+
* Send notifications to all recipients in a build
|
|
92
|
+
* @param platformKey
|
|
93
|
+
* @param requestBody
|
|
94
|
+
* @returns SendResponse
|
|
95
|
+
* @throws ApiError
|
|
96
|
+
*/
|
|
97
|
+
public static notificationV1OrgsNotificationBuilderSendCreate(
|
|
98
|
+
platformKey: string,
|
|
99
|
+
requestBody: SendNotification,
|
|
100
|
+
): CancelablePromise<SendResponse> {
|
|
101
|
+
return __request(OpenAPI, {
|
|
102
|
+
method: 'POST',
|
|
103
|
+
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/send/',
|
|
104
|
+
path: {
|
|
105
|
+
'platform_key': platformKey,
|
|
106
|
+
},
|
|
107
|
+
body: requestBody,
|
|
108
|
+
mediaType: 'application/json',
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Validate notification source
|
|
113
|
+
* Validate a single notification source (email, username, platform, csv)
|
|
114
|
+
* @param platformKey
|
|
115
|
+
* @param requestBody
|
|
116
|
+
* @returns ValidateSourceResponse
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
public static notificationV1OrgsNotificationBuilderValidateSourceCreate(
|
|
120
|
+
platformKey: string,
|
|
121
|
+
requestBody: NotificationSource,
|
|
122
|
+
): CancelablePromise<ValidateSourceResponse> {
|
|
123
|
+
return __request(OpenAPI, {
|
|
124
|
+
method: 'POST',
|
|
125
|
+
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/validate_source/',
|
|
126
|
+
path: {
|
|
127
|
+
'platform_key': platformKey,
|
|
128
|
+
},
|
|
129
|
+
body: requestBody,
|
|
130
|
+
mediaType: 'application/json',
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CampaignEnablement } from '../models/CampaignEnablement';
|
|
6
|
+
import type { CampaignExclusion } from '../models/CampaignExclusion';
|
|
7
|
+
import type { Notification } from '../models/Notification';
|
|
8
|
+
import type { NotificationCount } from '../models/NotificationCount';
|
|
9
|
+
import type { PatchedNotification } from '../models/PatchedNotification';
|
|
10
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
12
|
+
import { request as __request } from '../core/request';
|
|
13
|
+
export class NotificationService {
|
|
14
|
+
/**
|
|
15
|
+
* Unsubscribe from a campaign using a hash
|
|
16
|
+
* @param unsubscribeHash
|
|
17
|
+
* @returns any
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static notificationV1CampaignsUnsubscribeRetrieve(
|
|
21
|
+
unsubscribeHash: string,
|
|
22
|
+
): CancelablePromise<{
|
|
23
|
+
success?: boolean;
|
|
24
|
+
message?: string;
|
|
25
|
+
}> {
|
|
26
|
+
return __request(OpenAPI, {
|
|
27
|
+
method: 'GET',
|
|
28
|
+
url: '/api/notification/v1/campaigns/unsubscribe/{unsubscribe_hash}/',
|
|
29
|
+
path: {
|
|
30
|
+
'unsubscribe_hash': unsubscribeHash,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get notifications for a user
|
|
36
|
+
* @param org
|
|
37
|
+
* @param channel
|
|
38
|
+
* @param endDate
|
|
39
|
+
* @param excludeChannel
|
|
40
|
+
* @param startDate
|
|
41
|
+
* @param status
|
|
42
|
+
* @returns Notification
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
public static notificationV1OrgsNotificationsRetrieve(
|
|
46
|
+
org: string,
|
|
47
|
+
channel?: string,
|
|
48
|
+
endDate?: string,
|
|
49
|
+
excludeChannel?: string,
|
|
50
|
+
startDate?: string,
|
|
51
|
+
status?: string,
|
|
52
|
+
): CancelablePromise<Notification> {
|
|
53
|
+
return __request(OpenAPI, {
|
|
54
|
+
method: 'GET',
|
|
55
|
+
url: '/api/notification/v1/orgs/{org}/notifications/',
|
|
56
|
+
path: {
|
|
57
|
+
'org': org,
|
|
58
|
+
},
|
|
59
|
+
query: {
|
|
60
|
+
'channel': channel,
|
|
61
|
+
'end_date': endDate,
|
|
62
|
+
'exclude_channel': excludeChannel,
|
|
63
|
+
'start_date': startDate,
|
|
64
|
+
'status': status,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
70
|
+
* @param org
|
|
71
|
+
* @param requestBody
|
|
72
|
+
* @returns Notification
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
public static notificationV1OrgsNotificationsUpdate(
|
|
76
|
+
org: string,
|
|
77
|
+
requestBody: Notification,
|
|
78
|
+
): CancelablePromise<Notification> {
|
|
79
|
+
return __request(OpenAPI, {
|
|
80
|
+
method: 'PUT',
|
|
81
|
+
url: '/api/notification/v1/orgs/{org}/notifications/',
|
|
82
|
+
path: {
|
|
83
|
+
'org': org,
|
|
84
|
+
},
|
|
85
|
+
body: requestBody,
|
|
86
|
+
mediaType: 'application/json',
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
91
|
+
* @param org
|
|
92
|
+
* @param requestBody
|
|
93
|
+
* @returns Notification
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
public static notificationV1OrgsNotificationsBulkUpdatePartialUpdate(
|
|
97
|
+
org: string,
|
|
98
|
+
requestBody?: PatchedNotification,
|
|
99
|
+
): CancelablePromise<Notification> {
|
|
100
|
+
return __request(OpenAPI, {
|
|
101
|
+
method: 'PATCH',
|
|
102
|
+
url: '/api/notification/v1/orgs/{org}/notifications/bulk-update/',
|
|
103
|
+
path: {
|
|
104
|
+
'org': org,
|
|
105
|
+
},
|
|
106
|
+
body: requestBody,
|
|
107
|
+
mediaType: 'application/json',
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Get notifications for a user
|
|
112
|
+
* @param org
|
|
113
|
+
* @param userId
|
|
114
|
+
* @param channel
|
|
115
|
+
* @param endDate
|
|
116
|
+
* @param excludeChannel
|
|
117
|
+
* @param startDate
|
|
118
|
+
* @param status
|
|
119
|
+
* @returns Notification
|
|
120
|
+
* @throws ApiError
|
|
121
|
+
*/
|
|
122
|
+
public static notificationV1OrgsUsersNotificationsRetrieve(
|
|
123
|
+
org: string,
|
|
124
|
+
userId: string,
|
|
125
|
+
channel?: string,
|
|
126
|
+
endDate?: string,
|
|
127
|
+
excludeChannel?: string,
|
|
128
|
+
startDate?: string,
|
|
129
|
+
status?: string,
|
|
130
|
+
): CancelablePromise<Notification> {
|
|
131
|
+
return __request(OpenAPI, {
|
|
132
|
+
method: 'GET',
|
|
133
|
+
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications/',
|
|
134
|
+
path: {
|
|
135
|
+
'org': org,
|
|
136
|
+
'user_id': userId,
|
|
137
|
+
},
|
|
138
|
+
query: {
|
|
139
|
+
'channel': channel,
|
|
140
|
+
'end_date': endDate,
|
|
141
|
+
'exclude_channel': excludeChannel,
|
|
142
|
+
'start_date': startDate,
|
|
143
|
+
'status': status,
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
149
|
+
* @param org
|
|
150
|
+
* @param userId
|
|
151
|
+
* @param requestBody
|
|
152
|
+
* @returns Notification
|
|
153
|
+
* @throws ApiError
|
|
154
|
+
*/
|
|
155
|
+
public static notificationV1OrgsUsersNotificationsUpdate(
|
|
156
|
+
org: string,
|
|
157
|
+
userId: string,
|
|
158
|
+
requestBody: Notification,
|
|
159
|
+
): CancelablePromise<Notification> {
|
|
160
|
+
return __request(OpenAPI, {
|
|
161
|
+
method: 'PUT',
|
|
162
|
+
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications/',
|
|
163
|
+
path: {
|
|
164
|
+
'org': org,
|
|
165
|
+
'user_id': userId,
|
|
166
|
+
},
|
|
167
|
+
body: requestBody,
|
|
168
|
+
mediaType: 'application/json',
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Get notifications count for a user
|
|
173
|
+
* @param org
|
|
174
|
+
* @param userId
|
|
175
|
+
* @param channel
|
|
176
|
+
* @param status
|
|
177
|
+
* @returns NotificationCount
|
|
178
|
+
* @throws ApiError
|
|
179
|
+
*/
|
|
180
|
+
public static notificationV1OrgsUsersNotificationsCountRetrieve(
|
|
181
|
+
org: string,
|
|
182
|
+
userId: string,
|
|
183
|
+
channel?: string,
|
|
184
|
+
status?: string,
|
|
185
|
+
): CancelablePromise<NotificationCount> {
|
|
186
|
+
return __request(OpenAPI, {
|
|
187
|
+
method: 'GET',
|
|
188
|
+
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications-count/',
|
|
189
|
+
path: {
|
|
190
|
+
'org': org,
|
|
191
|
+
'user_id': userId,
|
|
192
|
+
},
|
|
193
|
+
query: {
|
|
194
|
+
'channel': channel,
|
|
195
|
+
'status': status,
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
201
|
+
* @param notificationId
|
|
202
|
+
* @param org
|
|
203
|
+
* @param userId
|
|
204
|
+
* @returns void
|
|
205
|
+
* @throws ApiError
|
|
206
|
+
*/
|
|
207
|
+
public static notificationV1OrgsUsersNotificationsDestroy(
|
|
208
|
+
notificationId: string,
|
|
209
|
+
org: string,
|
|
210
|
+
userId: string,
|
|
211
|
+
): CancelablePromise<void> {
|
|
212
|
+
return __request(OpenAPI, {
|
|
213
|
+
method: 'DELETE',
|
|
214
|
+
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications/{notification_id}/',
|
|
215
|
+
path: {
|
|
216
|
+
'notification_id': notificationId,
|
|
217
|
+
'org': org,
|
|
218
|
+
'user_id': userId,
|
|
219
|
+
},
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
224
|
+
* @param org
|
|
225
|
+
* @param userId
|
|
226
|
+
* @param requestBody
|
|
227
|
+
* @returns Notification
|
|
228
|
+
* @throws ApiError
|
|
229
|
+
*/
|
|
230
|
+
public static notificationV1OrgsUsersNotificationsBulkUpdatePartialUpdate(
|
|
231
|
+
org: string,
|
|
232
|
+
userId: string,
|
|
233
|
+
requestBody?: PatchedNotification,
|
|
234
|
+
): CancelablePromise<Notification> {
|
|
235
|
+
return __request(OpenAPI, {
|
|
236
|
+
method: 'PATCH',
|
|
237
|
+
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications/bulk-update/',
|
|
238
|
+
path: {
|
|
239
|
+
'org': org,
|
|
240
|
+
'user_id': userId,
|
|
241
|
+
},
|
|
242
|
+
body: requestBody,
|
|
243
|
+
mediaType: 'application/json',
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Re-enable campaigns for a user
|
|
248
|
+
* @param platformKey
|
|
249
|
+
* @param requestBody
|
|
250
|
+
* @returns any
|
|
251
|
+
* @throws ApiError
|
|
252
|
+
*/
|
|
253
|
+
public static notificationV1OrgsCampaignsEnableCreate(
|
|
254
|
+
platformKey: string,
|
|
255
|
+
requestBody?: CampaignEnablement,
|
|
256
|
+
): CancelablePromise<{
|
|
257
|
+
success?: boolean;
|
|
258
|
+
message?: string;
|
|
259
|
+
}> {
|
|
260
|
+
return __request(OpenAPI, {
|
|
261
|
+
method: 'POST',
|
|
262
|
+
url: '/api/notification/v1/orgs/{platform_key}/campaigns/enable/',
|
|
263
|
+
path: {
|
|
264
|
+
'platform_key': platformKey,
|
|
265
|
+
},
|
|
266
|
+
body: requestBody,
|
|
267
|
+
mediaType: 'application/json',
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Exclude a user from specified campaigns
|
|
272
|
+
* @param platformKey
|
|
273
|
+
* @param requestBody
|
|
274
|
+
* @returns any
|
|
275
|
+
* @throws ApiError
|
|
276
|
+
*/
|
|
277
|
+
public static notificationV1OrgsCampaignsExcludeCreate(
|
|
278
|
+
platformKey: string,
|
|
279
|
+
requestBody?: CampaignExclusion,
|
|
280
|
+
): CancelablePromise<{
|
|
281
|
+
success?: boolean;
|
|
282
|
+
message?: string;
|
|
283
|
+
}> {
|
|
284
|
+
return __request(OpenAPI, {
|
|
285
|
+
method: 'POST',
|
|
286
|
+
url: '/api/notification/v1/orgs/{platform_key}/campaigns/exclude/',
|
|
287
|
+
path: {
|
|
288
|
+
'platform_key': platformKey,
|
|
289
|
+
},
|
|
290
|
+
body: requestBody,
|
|
291
|
+
mediaType: 'application/json',
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
}
|