@iblai/iblai-api 3.58.0-core → 3.59.0-ai
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/dist/index.cjs.js +27088 -11660
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +27078 -11642
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +27088 -11660
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +296 -28
- package/dist/types/models/AIGeneratedImage.d.ts +13 -0
- package/dist/types/models/AIUserProfileMemoryRelation.d.ts +4 -0
- package/dist/types/models/AIUserProfileRequest.d.ts +4 -0
- package/dist/types/models/APITokenCost.d.ts +14 -0
- package/dist/types/models/AccessEnum.d.ts +8 -0
- package/dist/types/models/AlignMentorBubbleEnum.d.ts +8 -0
- package/dist/types/models/AnalyticsOverview.d.ts +7 -0
- package/dist/types/models/Answer.d.ts +11 -0
- package/dist/types/models/AssumedKnowledge.d.ts +4 -0
- package/dist/types/models/AssumedKnowledgeLevel.d.ts +4 -0
- package/dist/types/models/AudioToTextRequest.d.ts +3 -0
- package/dist/types/models/AudioToTextResponse.d.ts +3 -0
- package/dist/types/models/CallAuthenticationRequest.d.ts +13 -0
- package/dist/types/models/CallAuthenticationResponse.d.ts +21 -0
- package/dist/types/models/CallConfiguration.d.ts +26 -0
- package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
- package/dist/types/models/ChatHistory.d.ts +8 -0
- package/dist/types/models/ChatHistoryFilterData.d.ts +9 -0
- package/dist/types/models/ChatHistoryFilterUser.d.ts +5 -0
- package/dist/types/models/ChatHistoryItem.d.ts +5 -0
- package/dist/types/models/ChatHistorySessionId.d.ts +3 -0
- package/dist/types/models/ChatSessionRequest.d.ts +10 -0
- package/dist/types/models/ChatSessionResponse.d.ts +5 -0
- package/dist/types/models/CheckDocumentTrainingStatus.d.ts +10 -0
- package/dist/types/models/ComponentBlock.d.ts +9 -0
- package/dist/types/models/ComponentBlockTypeEnum.d.ts +8 -0
- package/dist/types/models/ConversationMessage.d.ts +11 -0
- package/dist/types/models/ConversationRating.d.ts +6 -0
- package/dist/types/models/ConversationSummary.d.ts +5 -0
- package/dist/types/models/ConversationVolume.d.ts +4 -0
- package/dist/types/models/Conversations.d.ts +28 -0
- package/dist/types/models/Cost.d.ts +3 -0
- package/dist/types/models/CostPerTenant.d.ts +6 -0
- package/dist/types/models/CourseCreationTask.d.ts +31 -0
- package/dist/types/models/CourseCreationTaskFile.d.ts +7 -0
- package/dist/types/models/CourseCreationTaskStatusEnum.d.ts +16 -0
- package/dist/types/models/CredentialRequest.d.ts +14 -0
- package/dist/types/models/CrontabSchedule.d.ts +22 -0
- package/dist/types/models/CustomInstructionResponse.d.ts +13 -0
- package/dist/types/models/DateRange.d.ts +4 -0
- package/dist/types/models/Document.d.ts +41 -0
- package/dist/types/models/DocumentFacet.d.ts +17 -0
- package/dist/types/models/DocumentSearchResponse.d.ts +35 -0
- package/dist/types/models/DocumentSettingsResponse.d.ts +3 -0
- package/dist/types/models/EdxCourse.d.ts +11 -0
- package/dist/types/models/ElevenlabsCustomVoice.d.ts +4 -0
- package/dist/types/models/ElevenlabsCustomVoiceResponse.d.ts +8 -0
- package/dist/types/models/EmailPromptDetail.d.ts +13 -0
- package/dist/types/models/EmailPromptList.d.ts +11 -0
- package/dist/types/models/EmailPromptSummary.d.ts +5 -0
- package/dist/types/models/FreeUsageCount.d.ts +3 -0
- package/dist/types/models/FullCourse.d.ts +13 -0
- package/dist/types/models/GreetingMethodEnum.d.ts +8 -0
- package/dist/types/models/GuidedPromptsResponse.d.ts +3 -0
- package/dist/types/models/HeygenMarketingVideoDetail.d.ts +8 -0
- package/dist/types/models/HeygenMarketingVideoList.d.ts +6 -0
- package/dist/types/models/HeygenTemplateRequest.d.ts +5 -0
- package/dist/types/models/HeygenTemplateResponseSingle.d.ts +6 -0
- package/dist/types/models/HeygenVideoDetail.d.ts +8 -0
- package/dist/types/models/HeygenVideoRequest.d.ts +5 -0
- package/dist/types/models/IBLAIPlatformMeta.d.ts +3 -0
- package/dist/types/models/IBLAIPlatformMetaRequest.d.ts +6 -0
- package/dist/types/models/IBLAIPlatformMetaUpdateRequest.d.ts +10 -0
- package/dist/types/models/InputQuestion.d.ts +6 -0
- package/dist/types/models/IntegrationCredential.d.ts +8 -0
- package/dist/types/models/IntialQuestionAnswer.d.ts +3 -0
- package/dist/types/models/JobRun.d.ts +11 -0
- package/dist/types/models/KindEnum.d.ts +10 -0
- package/dist/types/models/LLMCredentialRequest.d.ts +14 -0
- package/dist/types/models/LLMCredentialResponse.d.ts +8 -0
- package/dist/types/models/LLMModelForTenant.d.ts +6 -0
- package/dist/types/models/LLMQuestion.d.ts +15 -0
- package/dist/types/models/LLMResponse.d.ts +14 -0
- package/dist/types/models/LLMTracesListResponse.d.ts +5 -0
- package/dist/types/models/LanguagesView.d.ts +5 -0
- package/dist/types/models/LinkCourseRequest.d.ts +3 -0
- package/dist/types/models/LinkCourseResponse.d.ts +5 -0
- package/dist/types/models/LlmProviderEnum.d.ts +8 -0
- package/dist/types/models/MCPServer.d.ts +21 -0
- package/dist/types/models/MemoryComponentData.d.ts +5 -0
- package/dist/types/models/MemoryComponentMemory.d.ts +4 -0
- package/dist/types/models/MemoryComponentMemoryDetail.d.ts +8 -0
- package/dist/types/models/MemoryComponentResponse.d.ts +5 -0
- package/dist/types/models/MemoryProgress.d.ts +8 -0
- package/dist/types/models/MemoryStatusRequestView.d.ts +6 -0
- package/dist/types/models/MemoryStatusView.d.ts +6 -0
- package/dist/types/models/Mentor.d.ts +87 -0
- package/dist/types/models/MentorAudience.d.ts +5 -0
- package/dist/types/models/MentorCategory.d.ts +9 -0
- package/dist/types/models/MentorCategoryCreate.d.ts +11 -0
- package/dist/types/models/MentorCategoryGroup.d.ts +11 -0
- package/dist/types/models/MentorCategoryGroupCreate.d.ts +11 -0
- package/dist/types/models/MentorCreate.d.ts +84 -0
- package/dist/types/models/MentorCustomVoice.d.ts +4 -0
- package/dist/types/models/MentorCustomVoiceResponse.d.ts +4 -0
- package/dist/types/models/MentorData.d.ts +7 -0
- package/dist/types/models/MentorDetailAnalytics.d.ts +6 -0
- package/dist/types/models/MentorEval.d.ts +11 -0
- package/dist/types/models/MentorEvalQuestion.d.ts +5 -0
- package/dist/types/models/MentorEvalQuestionRequest.d.ts +4 -0
- package/dist/types/models/MentorEvalReport.d.ts +10 -0
- package/dist/types/models/MentorEvalRequest.d.ts +8 -0
- package/dist/types/models/MentorFacet.d.ts +17 -0
- package/dist/types/models/MentorFork.d.ts +5 -0
- package/dist/types/models/MentorFromTemplateRequest.d.ts +4 -0
- package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +47 -0
- package/dist/types/models/MentorMemorySettingsRequest.d.ts +6 -0
- package/dist/types/models/MentorMemorySettingsResponse.d.ts +6 -0
- package/dist/types/models/MentorMetadata.d.ts +5 -0
- package/dist/types/models/MentorScenario.d.ts +6 -0
- package/dist/types/models/MentorScenarioPrompt.d.ts +5 -0
- package/dist/types/models/MentorSearchResponse.d.ts +35 -0
- package/dist/types/models/MentorSession.d.ts +4 -0
- package/dist/types/models/MentorSettings.d.ts +60 -0
- package/dist/types/models/MentorSettingsPublic.d.ts +46 -0
- package/dist/types/models/MentorSettingsRequest.d.ts +62 -0
- package/dist/types/models/MentorVisibilityEnum.d.ts +10 -0
- package/dist/types/models/MentorWizard.d.ts +4 -0
- package/dist/types/models/MessageStatistics.d.ts +5 -0
- package/dist/types/models/MessageView.d.ts +10 -0
- package/dist/types/models/MessageViewRequest.d.ts +7 -0
- package/dist/types/models/MessageViewUpdatResponse.d.ts +3 -0
- package/dist/types/models/Metadata.d.ts +5 -0
- package/dist/types/models/MetricChange.d.ts +4 -0
- package/dist/types/models/ModelCost.d.ts +4 -0
- package/dist/types/models/ModerationLog.d.ts +11 -0
- package/dist/types/models/NoChatMessagesFound.d.ts +3 -0
- package/dist/types/models/NotificationSource.d.ts +2 -2
- package/dist/types/models/{TypeEnum.d.ts → NotificationSourceTypeEnum.d.ts} +1 -1
- package/dist/types/models/NullEnum.d.ts +1 -0
- package/dist/types/models/Observation.d.ts +31 -0
- package/dist/types/models/PageContent.d.ts +6 -0
- package/dist/types/models/PaginatedAIGeneratedImageList.d.ts +7 -0
- package/dist/types/models/PaginatedConversationsList.d.ts +7 -0
- package/dist/types/models/PaginatedCourseCreationTaskFileList.d.ts +7 -0
- package/dist/types/models/PaginatedCourseCreationTaskList.d.ts +7 -0
- package/dist/types/models/PaginatedEdxCourseList.d.ts +7 -0
- package/dist/types/models/PaginatedEmailPromptListList.d.ts +7 -0
- package/dist/types/models/PaginatedHeygenMarketingVideoListList.d.ts +7 -0
- package/dist/types/models/PaginatedHeygenTemplateResponseSingleList.d.ts +7 -0
- package/dist/types/models/PaginatedJobRunList.d.ts +7 -0
- package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
- package/dist/types/models/PaginatedMentorList.d.ts +7 -0
- package/dist/types/models/PaginatedModerationLogList.d.ts +7 -0
- package/dist/types/models/PaginatedObservationList.d.ts +7 -0
- package/dist/types/models/PaginatedPeriodicAgentList.d.ts +7 -0
- package/dist/types/models/PaginatedPeriodicAgentLogList.d.ts +7 -0
- package/dist/types/models/PaginatedPlayWrightScriptList.d.ts +7 -0
- package/dist/types/models/PaginatedRetrieverDocumentEmbeddingList.d.ts +7 -0
- package/dist/types/models/PaginatedSectionList.d.ts +7 -0
- package/dist/types/models/PaginatedSubSectionList.d.ts +7 -0
- package/dist/types/models/PaginatedTopicStatisticsResponse.d.ts +7 -0
- package/dist/types/models/PaginatedTraceList.d.ts +7 -0
- package/dist/types/models/PaginatedUnitList.d.ts +7 -0
- package/dist/types/models/PaginatedUserEdxMemoryList.d.ts +7 -0
- package/dist/types/models/PaginatedVoiceList.d.ts +7 -0
- package/dist/types/models/PatchedCallConfiguration.d.ts +26 -0
- package/dist/types/models/PatchedConversations.d.ts +28 -0
- package/dist/types/models/PatchedCourseCreationTaskFile.d.ts +7 -0
- package/dist/types/models/PatchedCredentialRequest.d.ts +14 -0
- package/dist/types/models/PatchedLLMCredentialRequest.d.ts +14 -0
- package/dist/types/models/PatchedMCPServer.d.ts +21 -0
- package/dist/types/models/PatchedMentorCategoryGroupCreate.d.ts +11 -0
- package/dist/types/models/PatchedMentorCreate.d.ts +84 -0
- package/dist/types/models/PatchedPeriodicAgentCreate.d.ts +41 -0
- package/dist/types/models/PatchedPlayWrightScript.d.ts +12 -0
- package/dist/types/models/PatchedPrompt.d.ts +22 -0
- package/dist/types/models/PatchedSection.d.ts +9 -0
- package/dist/types/models/PatchedSubSection.d.ts +9 -0
- package/dist/types/models/PatchedUnit.d.ts +11 -0
- package/dist/types/models/PeriodicAgent.d.ts +42 -0
- package/dist/types/models/PeriodicAgentCreate.d.ts +41 -0
- package/dist/types/models/PeriodicAgentLog.d.ts +11 -0
- package/dist/types/models/PeriodicAgentLogStatusEnum.d.ts +10 -0
- package/dist/types/models/PeriodicTask.d.ts +21 -0
- package/dist/types/models/PieChartData.d.ts +5 -0
- package/dist/types/models/PieChartSegment.d.ts +4 -0
- package/dist/types/models/PinnedMessageCreate.d.ts +9 -0
- package/dist/types/models/PinnedMessageGet.d.ts +7 -0
- package/dist/types/models/PinnedMessageRequest.d.ts +6 -0
- package/dist/types/models/PlayWrightScript.d.ts +12 -0
- package/dist/types/models/PredictiveAnalyticsRequest.d.ts +4 -0
- package/dist/types/models/PredictiveAnalyticsResponse.d.ts +4 -0
- package/dist/types/models/PreviousAgentStatusEnum.d.ts +12 -0
- package/dist/types/models/Prompt.d.ts +22 -0
- package/dist/types/models/PromptCategory.d.ts +7 -0
- package/dist/types/models/PromptFacet.d.ts +17 -0
- package/dist/types/models/PromptSearchResponse.d.ts +35 -0
- package/dist/types/models/PromptVisibilityEnum.d.ts +10 -0
- package/dist/types/models/ProviderEnum.d.ts +10 -0
- package/dist/types/models/QuestionCardTag.d.ts +8 -0
- package/dist/types/models/QuestionRequest.d.ts +15 -0
- package/dist/types/models/QuestionResponse.d.ts +10 -0
- package/dist/types/models/RatingEnum.d.ts +8 -0
- package/dist/types/models/RatingRecord.d.ts +4 -0
- package/dist/types/models/RecentlyAccessedMentor.d.ts +8 -0
- package/dist/types/models/RecommendCourseBlock.d.ts +3 -0
- package/dist/types/models/RecommendCourseResponse.d.ts +3 -0
- package/dist/types/models/RecommendedCoursesResponse.d.ts +33 -0
- package/dist/types/models/RelatedText.d.ts +3 -0
- package/dist/types/models/RequestDataVariable.d.ts +14 -0
- package/dist/types/models/ResourceScrappedData.d.ts +13 -0
- package/dist/types/models/ResourceScrappedDataStatusEnum.d.ts +12 -0
- package/dist/types/models/ResponseDataVariable.d.ts +14 -0
- package/dist/types/models/RetreiverTrainViewRequest.d.ts +10 -0
- package/dist/types/models/RetreiverTrainViewResponse.d.ts +6 -0
- package/dist/types/models/RetrieveTask.d.ts +3 -0
- package/dist/types/models/RetrieverDocumentEmbedding.d.ts +27 -0
- package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +58 -0
- package/dist/types/models/RetrieverRequestSearch.d.ts +10 -0
- package/dist/types/models/RetrieverRequestSearchDocument.d.ts +10 -0
- package/dist/types/models/RetrieverResponseSearch.d.ts +7 -0
- package/dist/types/models/ReuestDataVariableList.d.ts +4 -0
- package/dist/types/models/RunMentorEval.d.ts +3 -0
- package/dist/types/models/ScanWebhookRequest.d.ts +6 -0
- package/dist/types/models/ScanWebhookResponse.d.ts +3 -0
- package/dist/types/models/Section.d.ts +9 -0
- package/dist/types/models/SectionWithChildren.d.ts +11 -0
- package/dist/types/models/SeedMentorsView.d.ts +3 -0
- package/dist/types/models/SentimentSummary.d.ts +4 -0
- package/dist/types/models/SessionBrowserScreenshot.d.ts +8 -0
- package/dist/types/models/SessionDetail.d.ts +6 -0
- package/dist/types/models/SessionMemoryStorage.d.ts +6 -0
- package/dist/types/models/ShellLogs.d.ts +3 -0
- package/dist/types/models/SpacedRepetitionLearningPath.d.ts +3 -0
- package/dist/types/models/SpacedRepetitionQuestionStats.d.ts +5 -0
- package/dist/types/models/StarMentor.d.ts +7 -0
- package/dist/types/models/Status6eeEnum.d.ts +12 -0
- package/dist/types/models/Step.d.ts +9 -0
- package/dist/types/models/StepStatusEnum.d.ts +10 -0
- package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
- package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
- package/dist/types/models/SttProviderEnum.d.ts +12 -0
- package/dist/types/models/StudentChatMessage.d.ts +4 -0
- package/dist/types/models/StylesView.d.ts +4 -0
- package/dist/types/models/SubSection.d.ts +9 -0
- package/dist/types/models/SubSectionWithChildren.d.ts +11 -0
- package/dist/types/models/TagsView.d.ts +5 -0
- package/dist/types/models/TargetSystemEnum.d.ts +8 -0
- package/dist/types/models/TaskView.d.ts +3 -0
- package/dist/types/models/TemplateMentor.d.ts +9 -0
- package/dist/types/models/TenantMentorTraces.d.ts +6 -0
- package/dist/types/models/ThemeEnum.d.ts +8 -0
- package/dist/types/models/TonesView.d.ts +4 -0
- package/dist/types/models/ToolResponse.d.ts +11 -0
- package/dist/types/models/TopicModel.d.ts +3 -0
- package/dist/types/models/TopicRecord.d.ts +4 -0
- package/dist/types/models/TopicStatistics.d.ts +7 -0
- package/dist/types/models/TopicStatisticsResponse.d.ts +6 -0
- package/dist/types/models/TopicSummaryView.d.ts +4 -0
- package/dist/types/models/Trace.d.ts +17 -0
- package/dist/types/models/TrainChatSessionDocumentView.d.ts +6 -0
- package/dist/types/models/TrainChatSessionDocumentViewRequest.d.ts +6 -0
- package/dist/types/models/TrainDocumentViewRequest.d.ts +62 -0
- package/dist/types/models/TrainDocumentViewResponse.d.ts +15 -0
- package/dist/types/models/TrainingStatusEnum.d.ts +12 -0
- package/dist/types/models/TransportEnum.d.ts +8 -0
- package/dist/types/models/TrendEntry.d.ts +4 -0
- package/dist/types/models/TriggerRequest.d.ts +5 -0
- package/dist/types/models/TriggerResponse.d.ts +6 -0
- package/dist/types/models/TtsProviderEnum.d.ts +10 -0
- package/dist/types/models/TypeC42Enum.d.ts +8 -0
- package/dist/types/models/Unit.d.ts +11 -0
- package/dist/types/models/UnitWithChildren.d.ts +13 -0
- package/dist/types/models/UseMainCreds.d.ts +3 -0
- package/dist/types/models/UserAllChatMemoryView.d.ts +7 -0
- package/dist/types/models/UserCatalogItemMemoryView.d.ts +14 -0
- package/dist/types/models/UserChatByPeriod.d.ts +4 -0
- package/dist/types/models/UserChatFeedback.d.ts +14 -0
- package/dist/types/models/UserChatFeedbackCount.d.ts +4 -0
- package/dist/types/models/UserChatMemoryStatusRequestView.d.ts +6 -0
- package/dist/types/models/UserChatMemoryStatusView.d.ts +6 -0
- package/dist/types/models/UserChatMemoryUpdateView.d.ts +10 -0
- package/dist/types/models/UserCountRecord.d.ts +4 -0
- package/dist/types/models/UserEdxMemory.d.ts +15 -0
- package/dist/types/models/UserMemoryContextRequest.d.ts +13 -0
- package/dist/types/models/UserMemoryContextResponse.d.ts +12 -0
- package/dist/types/models/UserMetric.d.ts +4 -0
- package/dist/types/models/UserMetricsResponse.d.ts +7 -0
- package/dist/types/models/UserSentimentCountView.d.ts +4 -0
- package/dist/types/models/UserTrendByPeriod.d.ts +5 -0
- package/dist/types/models/VectorResult.d.ts +8 -0
- package/dist/types/models/VideoCaption.d.ts +3 -0
- package/dist/types/models/Voice.d.ts +9 -0
- package/dist/types/models/WebResource.d.ts +9 -0
- package/dist/types/models/WebResourceCard.d.ts +7 -0
- package/dist/types/models/WebResourcesQuery.d.ts +3 -0
- package/dist/types/services/AiAccountService.d.ts +319 -0
- package/dist/types/services/AiAnalyticsService.d.ts +7034 -0
- package/dist/types/services/AiIndexService.d.ts +408 -0
- package/dist/types/services/AiMarketingService.d.ts +38 -0
- package/dist/types/services/AiMediaService.d.ts +122 -0
- package/dist/types/services/AiMentorService.d.ts +4937 -0
- package/dist/types/services/AiPromptService.d.ts +1034 -0
- package/dist/types/services/{ServiceService.d.ts → CommerceService.d.ts} +187 -1
- package/dist/types/services/CoreService.d.ts +215 -0
- package/dist/types/services/{MediaResourcesService.d.ts → MediaService.d.ts} +1 -1
- package/dist/types/services/{NotificationService.d.ts → NotificationsService.d.ts} +70 -1
- package/dist/types/services/{OrgsService.d.ts → ScimService.d.ts} +1 -1
- package/dist/types/services/SearchService.d.ts +718 -0
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +296 -28
- package/src/models/AIGeneratedImage.ts +18 -0
- package/src/models/AIUserProfileMemoryRelation.ts +9 -0
- package/src/models/AIUserProfileRequest.ts +9 -0
- package/src/models/APITokenCost.ts +19 -0
- package/src/models/AccessEnum.ts +12 -0
- package/src/models/AlignMentorBubbleEnum.ts +12 -0
- package/src/models/AnalyticsOverview.ts +12 -0
- package/src/models/Answer.ts +16 -0
- package/src/models/AssumedKnowledge.ts +9 -0
- package/src/models/AssumedKnowledgeLevel.ts +9 -0
- package/src/models/AudioToTextRequest.ts +8 -0
- package/src/models/AudioToTextResponse.ts +8 -0
- package/src/models/CallAuthenticationRequest.ts +18 -0
- package/src/models/CallAuthenticationResponse.ts +26 -0
- package/src/models/CallConfiguration.ts +31 -0
- package/src/models/CallConfigurationModeEnum.ts +12 -0
- package/src/models/ChatHistory.ts +13 -0
- package/src/models/ChatHistoryFilterData.ts +14 -0
- package/src/models/ChatHistoryFilterUser.ts +10 -0
- package/src/models/ChatHistoryItem.ts +10 -0
- package/src/models/ChatHistorySessionId.ts +8 -0
- package/src/models/ChatSessionRequest.ts +15 -0
- package/src/models/ChatSessionResponse.ts +10 -0
- package/src/models/CheckDocumentTrainingStatus.ts +15 -0
- package/src/models/ComponentBlock.ts +14 -0
- package/src/models/ComponentBlockTypeEnum.ts +12 -0
- package/src/models/ConversationMessage.ts +16 -0
- package/src/models/ConversationRating.ts +11 -0
- package/src/models/ConversationSummary.ts +10 -0
- package/src/models/ConversationVolume.ts +9 -0
- package/src/models/Conversations.ts +33 -0
- package/src/models/Cost.ts +8 -0
- package/src/models/CostPerTenant.ts +11 -0
- package/src/models/CourseCreationTask.ts +36 -0
- package/src/models/CourseCreationTaskFile.ts +12 -0
- package/src/models/CourseCreationTaskStatusEnum.ts +20 -0
- package/src/models/CredentialRequest.ts +19 -0
- package/src/models/CrontabSchedule.ts +27 -0
- package/src/models/CustomInstructionResponse.ts +18 -0
- package/src/models/DateRange.ts +9 -0
- package/src/models/Document.ts +46 -0
- package/src/models/DocumentFacet.ts +22 -0
- package/src/models/DocumentSearchResponse.ts +40 -0
- package/src/models/DocumentSettingsResponse.ts +8 -0
- package/src/models/EdxCourse.ts +16 -0
- package/src/models/ElevenlabsCustomVoice.ts +9 -0
- package/src/models/ElevenlabsCustomVoiceResponse.ts +13 -0
- package/src/models/EmailPromptDetail.ts +18 -0
- package/src/models/EmailPromptList.ts +16 -0
- package/src/models/EmailPromptSummary.ts +10 -0
- package/src/models/FreeUsageCount.ts +8 -0
- package/src/models/FullCourse.ts +18 -0
- package/src/models/GreetingMethodEnum.ts +12 -0
- package/src/models/GuidedPromptsResponse.ts +8 -0
- package/src/models/HeygenMarketingVideoDetail.ts +13 -0
- package/src/models/HeygenMarketingVideoList.ts +11 -0
- package/src/models/HeygenTemplateRequest.ts +10 -0
- package/src/models/HeygenTemplateResponseSingle.ts +11 -0
- package/src/models/HeygenVideoDetail.ts +13 -0
- package/src/models/HeygenVideoRequest.ts +10 -0
- package/src/models/IBLAIPlatformMeta.ts +8 -0
- package/src/models/IBLAIPlatformMetaRequest.ts +11 -0
- package/src/models/IBLAIPlatformMetaUpdateRequest.ts +15 -0
- package/src/models/InputQuestion.ts +11 -0
- package/src/models/IntegrationCredential.ts +13 -0
- package/src/models/IntialQuestionAnswer.ts +8 -0
- package/src/models/JobRun.ts +16 -0
- package/src/models/KindEnum.ts +14 -0
- package/src/models/LLMCredentialRequest.ts +19 -0
- package/src/models/LLMCredentialResponse.ts +13 -0
- package/src/models/LLMModelForTenant.ts +11 -0
- package/src/models/LLMQuestion.ts +20 -0
- package/src/models/LLMResponse.ts +19 -0
- package/src/models/LLMTracesListResponse.ts +10 -0
- package/src/models/LanguagesView.ts +10 -0
- package/src/models/LinkCourseRequest.ts +8 -0
- package/src/models/LinkCourseResponse.ts +10 -0
- package/src/models/LlmProviderEnum.ts +12 -0
- package/src/models/MCPServer.ts +26 -0
- package/src/models/MemoryComponentData.ts +10 -0
- package/src/models/MemoryComponentMemory.ts +9 -0
- package/src/models/MemoryComponentMemoryDetail.ts +13 -0
- package/src/models/MemoryComponentResponse.ts +10 -0
- package/src/models/MemoryProgress.ts +13 -0
- package/src/models/MemoryStatusRequestView.ts +11 -0
- package/src/models/MemoryStatusView.ts +11 -0
- package/src/models/Mentor.ts +92 -0
- package/src/models/MentorAudience.ts +10 -0
- package/src/models/MentorCategory.ts +14 -0
- package/src/models/MentorCategoryCreate.ts +16 -0
- package/src/models/MentorCategoryGroup.ts +16 -0
- package/src/models/MentorCategoryGroupCreate.ts +16 -0
- package/src/models/MentorCreate.ts +89 -0
- package/src/models/MentorCustomVoice.ts +9 -0
- package/src/models/MentorCustomVoiceResponse.ts +9 -0
- package/src/models/MentorData.ts +12 -0
- package/src/models/MentorDetailAnalytics.ts +11 -0
- package/src/models/MentorEval.ts +16 -0
- package/src/models/MentorEvalQuestion.ts +10 -0
- package/src/models/MentorEvalQuestionRequest.ts +9 -0
- package/src/models/MentorEvalReport.ts +15 -0
- package/src/models/MentorEvalRequest.ts +13 -0
- package/src/models/MentorFacet.ts +22 -0
- package/src/models/MentorFork.ts +10 -0
- package/src/models/MentorFromTemplateRequest.ts +9 -0
- package/src/models/MentorFromTemplateWithSettingRequest.ts +52 -0
- package/src/models/MentorMemorySettingsRequest.ts +11 -0
- package/src/models/MentorMemorySettingsResponse.ts +11 -0
- package/src/models/MentorMetadata.ts +10 -0
- package/src/models/MentorScenario.ts +11 -0
- package/src/models/MentorScenarioPrompt.ts +10 -0
- package/src/models/MentorSearchResponse.ts +40 -0
- package/src/models/MentorSession.ts +9 -0
- package/src/models/MentorSettings.ts +65 -0
- package/src/models/MentorSettingsPublic.ts +51 -0
- package/src/models/MentorSettingsRequest.ts +67 -0
- package/src/models/MentorVisibilityEnum.ts +14 -0
- package/src/models/MentorWizard.ts +9 -0
- package/src/models/MessageStatistics.ts +10 -0
- package/src/models/MessageView.ts +15 -0
- package/src/models/MessageViewRequest.ts +12 -0
- package/src/models/MessageViewUpdatResponse.ts +8 -0
- package/src/models/Metadata.ts +10 -0
- package/src/models/{FloatOverTime.ts → MetricChange.ts} +2 -8
- package/src/models/ModelCost.ts +9 -0
- package/src/models/ModerationLog.ts +16 -0
- package/src/models/NoChatMessagesFound.ts +8 -0
- package/src/models/NotificationSource.ts +2 -2
- package/src/models/{TypeEnum.ts → NotificationSourceTypeEnum.ts} +1 -1
- package/src/models/NullEnum.ts +7 -0
- package/src/models/Observation.ts +36 -0
- package/src/models/PageContent.ts +11 -0
- package/src/models/PaginatedAIGeneratedImageList.ts +12 -0
- package/src/models/PaginatedConversationsList.ts +12 -0
- package/src/models/PaginatedCourseCreationTaskFileList.ts +12 -0
- package/src/models/PaginatedCourseCreationTaskList.ts +12 -0
- package/src/models/PaginatedEdxCourseList.ts +12 -0
- package/src/models/PaginatedEmailPromptListList.ts +12 -0
- package/src/models/PaginatedHeygenMarketingVideoListList.ts +12 -0
- package/src/models/PaginatedHeygenTemplateResponseSingleList.ts +12 -0
- package/src/models/PaginatedJobRunList.ts +12 -0
- package/src/models/PaginatedMCPServerList.ts +12 -0
- package/src/models/PaginatedMentorList.ts +12 -0
- package/src/models/PaginatedModerationLogList.ts +12 -0
- package/src/models/PaginatedObservationList.ts +12 -0
- package/src/models/PaginatedPeriodicAgentList.ts +12 -0
- package/src/models/PaginatedPeriodicAgentLogList.ts +12 -0
- package/src/models/PaginatedPlayWrightScriptList.ts +12 -0
- package/src/models/PaginatedRetrieverDocumentEmbeddingList.ts +12 -0
- package/src/models/PaginatedSectionList.ts +12 -0
- package/src/models/PaginatedSubSectionList.ts +12 -0
- package/src/models/PaginatedTopicStatisticsResponse.ts +12 -0
- package/src/models/PaginatedTraceList.ts +12 -0
- package/src/models/PaginatedUnitList.ts +12 -0
- package/src/models/PaginatedUserEdxMemoryList.ts +12 -0
- package/src/models/PaginatedVoiceList.ts +12 -0
- package/src/models/PatchedCallConfiguration.ts +31 -0
- package/src/models/PatchedConversations.ts +33 -0
- package/src/models/PatchedCourseCreationTaskFile.ts +12 -0
- package/src/models/PatchedCredentialRequest.ts +19 -0
- package/src/models/PatchedLLMCredentialRequest.ts +19 -0
- package/src/models/PatchedMCPServer.ts +26 -0
- package/src/models/PatchedMentorCategoryGroupCreate.ts +16 -0
- package/src/models/PatchedMentorCreate.ts +89 -0
- package/src/models/PatchedPeriodicAgentCreate.ts +46 -0
- package/src/models/PatchedPlayWrightScript.ts +17 -0
- package/src/models/PatchedPrompt.ts +27 -0
- package/src/models/PatchedSection.ts +14 -0
- package/src/models/PatchedSubSection.ts +14 -0
- package/src/models/PatchedUnit.ts +16 -0
- package/src/models/PeriodicAgent.ts +47 -0
- package/src/models/PeriodicAgentCreate.ts +46 -0
- package/src/models/PeriodicAgentLog.ts +16 -0
- package/src/models/PeriodicAgentLogStatusEnum.ts +14 -0
- package/src/models/PeriodicTask.ts +26 -0
- package/src/models/PieChartData.ts +10 -0
- package/src/models/PieChartSegment.ts +9 -0
- package/src/models/PinnedMessageCreate.ts +14 -0
- package/src/models/PinnedMessageGet.ts +12 -0
- package/src/models/PinnedMessageRequest.ts +11 -0
- package/src/models/PlayWrightScript.ts +17 -0
- package/src/models/PredictiveAnalyticsRequest.ts +9 -0
- package/src/models/PredictiveAnalyticsResponse.ts +9 -0
- package/src/models/PreviousAgentStatusEnum.ts +16 -0
- package/src/models/Prompt.ts +27 -0
- package/src/models/PromptCategory.ts +12 -0
- package/src/models/PromptFacet.ts +22 -0
- package/src/models/PromptSearchResponse.ts +40 -0
- package/src/models/PromptVisibilityEnum.ts +14 -0
- package/src/models/ProviderEnum.ts +14 -0
- package/src/models/QuestionCardTag.ts +13 -0
- package/src/models/QuestionRequest.ts +20 -0
- package/src/models/QuestionResponse.ts +15 -0
- package/src/models/RatingEnum.ts +12 -0
- package/src/models/RatingRecord.ts +9 -0
- package/src/models/RecentlyAccessedMentor.ts +13 -0
- package/src/models/RecommendCourseBlock.ts +8 -0
- package/src/models/RecommendCourseResponse.ts +8 -0
- package/src/models/RecommendedCoursesResponse.ts +38 -0
- package/src/models/RelatedText.ts +8 -0
- package/src/models/RequestDataVariable.ts +19 -0
- package/src/models/ResourceScrappedData.ts +18 -0
- package/src/models/ResourceScrappedDataStatusEnum.ts +16 -0
- package/src/models/ResponseDataVariable.ts +19 -0
- package/src/models/RetreiverTrainViewRequest.ts +15 -0
- package/src/models/RetreiverTrainViewResponse.ts +11 -0
- package/src/models/RetrieveTask.ts +8 -0
- package/src/models/RetrieverDocumentEmbedding.ts +32 -0
- package/src/models/RetrieverDocumentEmbeddingRequest.ts +63 -0
- package/src/models/RetrieverRequestSearch.ts +15 -0
- package/src/models/RetrieverRequestSearchDocument.ts +15 -0
- package/src/models/RetrieverResponseSearch.ts +12 -0
- package/src/models/ReuestDataVariableList.ts +9 -0
- package/src/models/RunMentorEval.ts +8 -0
- package/src/models/ScanWebhookRequest.ts +11 -0
- package/src/models/ScanWebhookResponse.ts +8 -0
- package/src/models/Section.ts +14 -0
- package/src/models/SectionWithChildren.ts +16 -0
- package/src/models/SeedMentorsView.ts +8 -0
- package/src/models/SentimentSummary.ts +9 -0
- package/src/models/SessionBrowserScreenshot.ts +13 -0
- package/src/models/SessionDetail.ts +11 -0
- package/src/models/SessionMemoryStorage.ts +11 -0
- package/src/models/ShellLogs.ts +8 -0
- package/src/models/SpacedRepetitionLearningPath.ts +8 -0
- package/src/models/SpacedRepetitionQuestionStats.ts +10 -0
- package/src/models/StarMentor.ts +12 -0
- package/src/models/Status6eeEnum.ts +16 -0
- package/src/models/Step.ts +14 -0
- package/src/models/StepStatusEnum.ts +14 -0
- package/src/models/StripeCheckoutSessionRequest.ts +2 -2
- package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
- package/src/models/SttProviderEnum.ts +16 -0
- package/src/models/StudentChatMessage.ts +9 -0
- package/src/models/StylesView.ts +9 -0
- package/src/models/SubSection.ts +14 -0
- package/src/models/SubSectionWithChildren.ts +16 -0
- package/src/models/TagsView.ts +10 -0
- package/src/models/TargetSystemEnum.ts +12 -0
- package/src/models/TaskView.ts +8 -0
- package/src/models/TemplateMentor.ts +14 -0
- package/src/models/TenantMentorTraces.ts +11 -0
- package/src/models/ThemeEnum.ts +12 -0
- package/src/models/TonesView.ts +9 -0
- package/src/models/ToolResponse.ts +16 -0
- package/src/models/TopicModel.ts +8 -0
- package/src/models/TopicRecord.ts +9 -0
- package/src/models/TopicStatistics.ts +12 -0
- package/src/models/TopicStatisticsResponse.ts +11 -0
- package/src/models/TopicSummaryView.ts +9 -0
- package/src/models/Trace.ts +22 -0
- package/src/models/TrainChatSessionDocumentView.ts +11 -0
- package/src/models/TrainChatSessionDocumentViewRequest.ts +11 -0
- package/src/models/TrainDocumentViewRequest.ts +67 -0
- package/src/models/TrainDocumentViewResponse.ts +20 -0
- package/src/models/TrainingStatusEnum.ts +16 -0
- package/src/models/TransportEnum.ts +12 -0
- package/src/models/TrendEntry.ts +9 -0
- package/src/models/TriggerRequest.ts +10 -0
- package/src/models/TriggerResponse.ts +11 -0
- package/src/models/TtsProviderEnum.ts +14 -0
- package/src/models/TypeC42Enum.ts +12 -0
- package/src/models/Unit.ts +16 -0
- package/src/models/UnitWithChildren.ts +18 -0
- package/src/models/UseMainCreds.ts +8 -0
- package/src/models/UserAllChatMemoryView.ts +12 -0
- package/src/models/UserCatalogItemMemoryView.ts +19 -0
- package/src/models/UserChatByPeriod.ts +9 -0
- package/src/models/UserChatFeedback.ts +19 -0
- package/src/models/UserChatFeedbackCount.ts +9 -0
- package/src/models/UserChatMemoryStatusRequestView.ts +11 -0
- package/src/models/UserChatMemoryStatusView.ts +11 -0
- package/src/models/UserChatMemoryUpdateView.ts +15 -0
- package/src/models/UserCountRecord.ts +9 -0
- package/src/models/UserEdxMemory.ts +20 -0
- package/src/models/UserMemoryContextRequest.ts +18 -0
- package/src/models/UserMemoryContextResponse.ts +17 -0
- package/src/models/UserMetric.ts +9 -0
- package/src/models/UserMetricsResponse.ts +12 -0
- package/src/models/UserSentimentCountView.ts +9 -0
- package/src/models/UserTrendByPeriod.ts +10 -0
- package/src/models/VectorResult.ts +13 -0
- package/src/models/VideoCaption.ts +8 -0
- package/src/models/Voice.ts +14 -0
- package/src/models/WebResource.ts +14 -0
- package/src/models/WebResourceCard.ts +12 -0
- package/src/models/WebResourcesQuery.ts +8 -0
- package/src/services/AiAccountService.ts +505 -0
- package/src/services/AiAnalyticsService.ts +11651 -0
- package/src/services/AiIndexService.ts +719 -0
- package/src/services/AiMarketingService.ts +96 -0
- package/src/services/AiMediaService.ts +289 -0
- package/src/services/AiMentorService.ts +9108 -0
- package/src/services/AiPromptService.ts +1980 -0
- package/src/services/{ServiceService.ts → CommerceService.ts} +339 -1
- package/src/services/CoreService.ts +311 -0
- package/src/services/{MediaResourcesService.ts → MediaService.ts} +1 -1
- package/src/services/{NotificationService.ts → NotificationsService.ts} +139 -1
- package/src/services/{OrgsService.ts → ScimService.ts} +1 -1
- package/src/services/SearchService.ts +1428 -398
- package/dist/types/models/FloatOverTime.d.ts +0 -10
- package/dist/types/models/NetRevenueOverTime.d.ts +0 -8
- package/dist/types/models/Order.d.ts +0 -22
- package/dist/types/models/Product.d.ts +0 -22
- package/dist/types/models/ProductTable.d.ts +0 -26
- package/dist/types/models/RevenueByProduct.d.ts +0 -6
- package/dist/types/models/Summary.d.ts +0 -18
- package/dist/types/services/AnalyticsService.d.ts +0 -83
- package/dist/types/services/AudienceService.d.ts +0 -544
- package/dist/types/services/DepartmentsService.d.ts +0 -80
- package/dist/types/services/EngagementService.d.ts +0 -747
- package/dist/types/services/FinanceService.d.ts +0 -81
- package/dist/types/services/NotificationBuilderService.d.ts +0 -72
- package/dist/types/services/OverviewService.d.ts +0 -283
- package/dist/types/services/PerformanceService.d.ts +0 -259
- package/dist/types/services/PerlearnerService.d.ts +0 -715
- package/dist/types/services/PlatformService.d.ts +0 -496
- package/dist/types/services/ProviderAssociationService.d.ts +0 -17
- package/dist/types/services/ProvidersService.d.ts +0 -164
- package/dist/types/services/ProvisionService.d.ts +0 -15
- package/dist/types/services/RolesService.d.ts +0 -59
- package/dist/types/services/UserGroupsService.d.ts +0 -86
- package/src/models/NetRevenueOverTime.ts +0 -13
- package/src/models/Order.ts +0 -27
- package/src/models/Product.ts +0 -27
- package/src/models/ProductTable.ts +0 -31
- package/src/models/RevenueByProduct.ts +0 -11
- package/src/models/Summary.ts +0 -23
- package/src/services/AnalyticsService.ts +0 -132
- package/src/services/AudienceService.ts +0 -798
- package/src/services/DepartmentsService.ts +0 -122
- package/src/services/EngagementService.ts +0 -1199
- package/src/services/FinanceService.ts +0 -165
- package/src/services/NotificationBuilderService.ts +0 -147
- package/src/services/OverviewService.ts +0 -423
- package/src/services/PerformanceService.ts +0 -405
- package/src/services/PerlearnerService.ts +0 -1321
- package/src/services/PlatformService.ts +0 -884
- package/src/services/ProviderAssociationService.ts +0 -33
- package/src/services/ProvidersService.ts +0 -302
- package/src/services/ProvisionService.ts +0 -31
- package/src/services/RolesService.ts +0 -89
- package/src/services/UserGroupsService.ts +0 -128
|
@@ -1,1321 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { ActivityAPI } from '../models/ActivityAPI';
|
|
6
|
-
import type { Average } from '../models/Average';
|
|
7
|
-
import type { DetailedGradeView } from '../models/DetailedGradeView';
|
|
8
|
-
import type { LearnerInformationAPI } from '../models/LearnerInformationAPI';
|
|
9
|
-
import type { NewPerLearnerList } from '../models/NewPerLearnerList';
|
|
10
|
-
import type { OverTimeWithTotal } from '../models/OverTimeWithTotal';
|
|
11
|
-
import type { PerLearnerCourseVideosWatched } from '../models/PerLearnerCourseVideosWatched';
|
|
12
|
-
import type { PerlearnerEngagementVideosWatchedPerCourse } from '../models/PerlearnerEngagementVideosWatchedPerCourse';
|
|
13
|
-
import type { PerlearnerGradeSummary } from '../models/PerlearnerGradeSummary';
|
|
14
|
-
import type { PerlearnerGradeWithCutOff } from '../models/PerlearnerGradeWithCutOff';
|
|
15
|
-
import type { PerlearnerGradingPerCourseAPI } from '../models/PerlearnerGradingPerCourseAPI';
|
|
16
|
-
import type { PerLearnerLastAccess } from '../models/PerLearnerLastAccess';
|
|
17
|
-
import type { PerlearnerUserList } from '../models/PerlearnerUserList';
|
|
18
|
-
import type { Value } from '../models/Value';
|
|
19
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
20
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
21
|
-
import { request as __request } from '../core/request';
|
|
22
|
-
export class PerlearnerService {
|
|
23
|
-
/**
|
|
24
|
-
* Enhanced API endpoint for listing learners with comprehensive filtering.
|
|
25
|
-
*
|
|
26
|
-
* This endpoint provides a paginated list of learners with detailed metrics
|
|
27
|
-
* and supports advanced filtering options. It uses DM token authentication
|
|
28
|
-
* and respects department-based access controls.
|
|
29
|
-
*
|
|
30
|
-
* Query Parameters:
|
|
31
|
-
* page (int): Page number for pagination
|
|
32
|
-
* length (int): Number of items per page
|
|
33
|
-
* search (str): Filter by username, email, or full name
|
|
34
|
-
* program (str): Filter by program
|
|
35
|
-
* location (str): Filter by location
|
|
36
|
-
* is_enrolled (bool): Filter for users with enrollments
|
|
37
|
-
* platform (str): Filter by platform
|
|
38
|
-
* start_date (date): Filter by join date (start range)
|
|
39
|
-
* end_date (date): Filter by join date (end range)
|
|
40
|
-
*
|
|
41
|
-
* Returns:
|
|
42
|
-
* A paginated list of learners with comprehensive metrics including:
|
|
43
|
-
* - Course enrollments and completions
|
|
44
|
-
* - Time spent on platform
|
|
45
|
-
* - Pathway progress
|
|
46
|
-
* - Certificate and skill information
|
|
47
|
-
* - Location data
|
|
48
|
-
*
|
|
49
|
-
* Access Control:
|
|
50
|
-
* - Platform admins can see all learners
|
|
51
|
-
* - Department admins can only see learners in their departments
|
|
52
|
-
* @returns NewPerLearnerList
|
|
53
|
-
* @throws ApiError
|
|
54
|
-
*/
|
|
55
|
-
public static perlearnerOrgsLearnersRetrieve({
|
|
56
|
-
org,
|
|
57
|
-
departmentId,
|
|
58
|
-
endDate,
|
|
59
|
-
format = 'json',
|
|
60
|
-
includeMainPlatform = true,
|
|
61
|
-
isEnrolled,
|
|
62
|
-
length,
|
|
63
|
-
location,
|
|
64
|
-
page,
|
|
65
|
-
platform,
|
|
66
|
-
program,
|
|
67
|
-
search,
|
|
68
|
-
startDate,
|
|
69
|
-
}: {
|
|
70
|
-
org: string,
|
|
71
|
-
/**
|
|
72
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
73
|
-
*/
|
|
74
|
-
departmentId?: number,
|
|
75
|
-
/**
|
|
76
|
-
* Learner date_joined end date. ISO 8601
|
|
77
|
-
*/
|
|
78
|
-
endDate?: string,
|
|
79
|
-
/**
|
|
80
|
-
* Format
|
|
81
|
-
*
|
|
82
|
-
* * `json` - json
|
|
83
|
-
*/
|
|
84
|
-
format?: 'json',
|
|
85
|
-
/**
|
|
86
|
-
* Include main platform data
|
|
87
|
-
*/
|
|
88
|
-
includeMainPlatform?: boolean,
|
|
89
|
-
/**
|
|
90
|
-
* Filter for users who have at least an enrollment
|
|
91
|
-
*/
|
|
92
|
-
isEnrolled?: boolean | null,
|
|
93
|
-
/**
|
|
94
|
-
* Size of data to return
|
|
95
|
-
*/
|
|
96
|
-
length?: number,
|
|
97
|
-
/**
|
|
98
|
-
* Location search string
|
|
99
|
-
*/
|
|
100
|
-
location?: string,
|
|
101
|
-
/**
|
|
102
|
-
* Page offset
|
|
103
|
-
*/
|
|
104
|
-
page?: number,
|
|
105
|
-
/**
|
|
106
|
-
* Platform search string
|
|
107
|
-
*/
|
|
108
|
-
platform?: string,
|
|
109
|
-
/**
|
|
110
|
-
* Program search string
|
|
111
|
-
*/
|
|
112
|
-
program?: string,
|
|
113
|
-
/**
|
|
114
|
-
* Search string for learner. email, username or full name
|
|
115
|
-
*/
|
|
116
|
-
search?: string,
|
|
117
|
-
/**
|
|
118
|
-
* Learner date_joined start date. ISO 8601
|
|
119
|
-
*/
|
|
120
|
-
startDate?: string,
|
|
121
|
-
}): CancelablePromise<NewPerLearnerList> {
|
|
122
|
-
return __request(OpenAPI, {
|
|
123
|
-
method: 'GET',
|
|
124
|
-
url: '/api/perlearner/orgs/{org}/learners',
|
|
125
|
-
path: {
|
|
126
|
-
'org': org,
|
|
127
|
-
},
|
|
128
|
-
query: {
|
|
129
|
-
'department_id': departmentId,
|
|
130
|
-
'end_date': endDate,
|
|
131
|
-
'format': format,
|
|
132
|
-
'include_main_platform': includeMainPlatform,
|
|
133
|
-
'is_enrolled': isEnrolled,
|
|
134
|
-
'length': length,
|
|
135
|
-
'location': location,
|
|
136
|
-
'page': page,
|
|
137
|
-
'platform': platform,
|
|
138
|
-
'program': program,
|
|
139
|
-
'search': search,
|
|
140
|
-
'start_date': startDate,
|
|
141
|
-
},
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* List all learners on the platform with aggregated metrics.
|
|
146
|
-
*
|
|
147
|
-
* This endpoint returns a paginated list of all learners with key metrics including:
|
|
148
|
-
* - Enrollment counts
|
|
149
|
-
* - Completion counts
|
|
150
|
-
* - Time spent on platform
|
|
151
|
-
*
|
|
152
|
-
* Query Parameters:
|
|
153
|
-
* page (int): Page number for pagination
|
|
154
|
-
* length (int): Number of items per page
|
|
155
|
-
* search (str): Filter learners by username, email, or name
|
|
156
|
-
*
|
|
157
|
-
* Returns:
|
|
158
|
-
* A paginated list of learners with their associated metrics.
|
|
159
|
-
* @returns PerlearnerUserList
|
|
160
|
-
* @throws ApiError
|
|
161
|
-
*/
|
|
162
|
-
public static perlearnerOrgsUsersRetrieve({
|
|
163
|
-
org,
|
|
164
|
-
departmentId,
|
|
165
|
-
format = 'json',
|
|
166
|
-
includeMainPlatform = true,
|
|
167
|
-
length,
|
|
168
|
-
page,
|
|
169
|
-
search,
|
|
170
|
-
}: {
|
|
171
|
-
org: string,
|
|
172
|
-
/**
|
|
173
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
174
|
-
*/
|
|
175
|
-
departmentId?: number,
|
|
176
|
-
/**
|
|
177
|
-
* Format
|
|
178
|
-
*
|
|
179
|
-
* * `json` - json
|
|
180
|
-
*/
|
|
181
|
-
format?: 'json',
|
|
182
|
-
/**
|
|
183
|
-
* Include main platform data
|
|
184
|
-
*/
|
|
185
|
-
includeMainPlatform?: boolean,
|
|
186
|
-
/**
|
|
187
|
-
* Size of data to return
|
|
188
|
-
*/
|
|
189
|
-
length?: number,
|
|
190
|
-
/**
|
|
191
|
-
* Page offset
|
|
192
|
-
*/
|
|
193
|
-
page?: number,
|
|
194
|
-
/**
|
|
195
|
-
* Search string for learner
|
|
196
|
-
*/
|
|
197
|
-
search?: string,
|
|
198
|
-
}): CancelablePromise<PerlearnerUserList> {
|
|
199
|
-
return __request(OpenAPI, {
|
|
200
|
-
method: 'GET',
|
|
201
|
-
url: '/api/perlearner/orgs/{org}/users',
|
|
202
|
-
path: {
|
|
203
|
-
'org': org,
|
|
204
|
-
},
|
|
205
|
-
query: {
|
|
206
|
-
'department_id': departmentId,
|
|
207
|
-
'format': format,
|
|
208
|
-
'include_main_platform': includeMainPlatform,
|
|
209
|
-
'length': length,
|
|
210
|
-
'page': page,
|
|
211
|
-
'search': search,
|
|
212
|
-
},
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Provides information on user enrollments
|
|
217
|
-
*
|
|
218
|
-
* Params
|
|
219
|
-
* user_id e.g developer@ibleducation.com| developer
|
|
220
|
-
* @returns ActivityAPI
|
|
221
|
-
* @throws ApiError
|
|
222
|
-
*/
|
|
223
|
-
public static perlearnerOrgsUsersActivityRetrieve({
|
|
224
|
-
org,
|
|
225
|
-
userId,
|
|
226
|
-
departmentId,
|
|
227
|
-
format = 'json',
|
|
228
|
-
includeMainPlatform = true,
|
|
229
|
-
}: {
|
|
230
|
-
org: string,
|
|
231
|
-
userId: string,
|
|
232
|
-
/**
|
|
233
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
234
|
-
*/
|
|
235
|
-
departmentId?: number,
|
|
236
|
-
/**
|
|
237
|
-
* Format
|
|
238
|
-
*
|
|
239
|
-
* * `json` - json
|
|
240
|
-
*/
|
|
241
|
-
format?: 'json',
|
|
242
|
-
/**
|
|
243
|
-
* Include main platform data
|
|
244
|
-
*/
|
|
245
|
-
includeMainPlatform?: boolean,
|
|
246
|
-
}): CancelablePromise<ActivityAPI> {
|
|
247
|
-
return __request(OpenAPI, {
|
|
248
|
-
method: 'GET',
|
|
249
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/activity/',
|
|
250
|
-
path: {
|
|
251
|
-
'org': org,
|
|
252
|
-
'user_id': userId,
|
|
253
|
-
},
|
|
254
|
-
query: {
|
|
255
|
-
'department_id': departmentId,
|
|
256
|
-
'format': format,
|
|
257
|
-
'include_main_platform': includeMainPlatform,
|
|
258
|
-
},
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Provides about a learner current grade in a course with the course cut
|
|
263
|
-
* Kwargs
|
|
264
|
-
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
265
|
-
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
266
|
-
* @returns PerlearnerGradeWithCutOff
|
|
267
|
-
* @throws ApiError
|
|
268
|
-
*/
|
|
269
|
-
public static perlearnerOrgsUsersCoursesGradingCutoffsRetrieve({
|
|
270
|
-
courseId,
|
|
271
|
-
org,
|
|
272
|
-
userId,
|
|
273
|
-
departmentId,
|
|
274
|
-
endDate,
|
|
275
|
-
format = 'json',
|
|
276
|
-
includeMainPlatform = true,
|
|
277
|
-
startDate,
|
|
278
|
-
}: {
|
|
279
|
-
courseId: string,
|
|
280
|
-
org: string,
|
|
281
|
-
userId: string,
|
|
282
|
-
/**
|
|
283
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
284
|
-
*/
|
|
285
|
-
departmentId?: number,
|
|
286
|
-
/**
|
|
287
|
-
* end date. ISO 8601
|
|
288
|
-
*/
|
|
289
|
-
endDate?: string,
|
|
290
|
-
/**
|
|
291
|
-
* Format
|
|
292
|
-
*
|
|
293
|
-
* * `json` - json
|
|
294
|
-
*/
|
|
295
|
-
format?: 'json',
|
|
296
|
-
/**
|
|
297
|
-
* Include main platform data
|
|
298
|
-
*/
|
|
299
|
-
includeMainPlatform?: boolean,
|
|
300
|
-
/**
|
|
301
|
-
* start date. ISO 8601
|
|
302
|
-
*/
|
|
303
|
-
startDate?: string,
|
|
304
|
-
}): CancelablePromise<PerlearnerGradeWithCutOff> {
|
|
305
|
-
return __request(OpenAPI, {
|
|
306
|
-
method: 'GET',
|
|
307
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/grading/cutoffs',
|
|
308
|
-
path: {
|
|
309
|
-
'course_id': courseId,
|
|
310
|
-
'org': org,
|
|
311
|
-
'user_id': userId,
|
|
312
|
-
},
|
|
313
|
-
query: {
|
|
314
|
-
'department_id': departmentId,
|
|
315
|
-
'end_date': endDate,
|
|
316
|
-
'format': format,
|
|
317
|
-
'include_main_platform': includeMainPlatform,
|
|
318
|
-
'start_date': startDate,
|
|
319
|
-
},
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
324
|
-
* @returns DetailedGradeView
|
|
325
|
-
* @throws ApiError
|
|
326
|
-
*/
|
|
327
|
-
public static perlearnerOrgsUsersCoursesGradingDetailRetrieve({
|
|
328
|
-
courseId,
|
|
329
|
-
org,
|
|
330
|
-
userId,
|
|
331
|
-
departmentId,
|
|
332
|
-
endDate,
|
|
333
|
-
format = 'json',
|
|
334
|
-
includeMainPlatform = true,
|
|
335
|
-
startDate,
|
|
336
|
-
}: {
|
|
337
|
-
courseId: string,
|
|
338
|
-
org: string,
|
|
339
|
-
userId: string,
|
|
340
|
-
/**
|
|
341
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
342
|
-
*/
|
|
343
|
-
departmentId?: number,
|
|
344
|
-
/**
|
|
345
|
-
* end date. ISO 8601
|
|
346
|
-
*/
|
|
347
|
-
endDate?: string,
|
|
348
|
-
/**
|
|
349
|
-
* Format
|
|
350
|
-
*
|
|
351
|
-
* * `json` - json
|
|
352
|
-
*/
|
|
353
|
-
format?: 'json',
|
|
354
|
-
/**
|
|
355
|
-
* Include main platform data
|
|
356
|
-
*/
|
|
357
|
-
includeMainPlatform?: boolean,
|
|
358
|
-
/**
|
|
359
|
-
* start date. ISO 8601
|
|
360
|
-
*/
|
|
361
|
-
startDate?: string,
|
|
362
|
-
}): CancelablePromise<DetailedGradeView> {
|
|
363
|
-
return __request(OpenAPI, {
|
|
364
|
-
method: 'GET',
|
|
365
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/grading/detail',
|
|
366
|
-
path: {
|
|
367
|
-
'course_id': courseId,
|
|
368
|
-
'org': org,
|
|
369
|
-
'user_id': userId,
|
|
370
|
-
},
|
|
371
|
-
query: {
|
|
372
|
-
'department_id': departmentId,
|
|
373
|
-
'end_date': endDate,
|
|
374
|
-
'format': format,
|
|
375
|
-
'include_main_platform': includeMainPlatform,
|
|
376
|
-
'start_date': startDate,
|
|
377
|
-
},
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* Query Params
|
|
382
|
-
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
383
|
-
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
384
|
-
* @returns PerlearnerGradeSummary
|
|
385
|
-
* @throws ApiError
|
|
386
|
-
*/
|
|
387
|
-
public static perlearnerOrgsUsersCoursesGradingSummaryRetrieve({
|
|
388
|
-
courseId,
|
|
389
|
-
org,
|
|
390
|
-
userId,
|
|
391
|
-
departmentId,
|
|
392
|
-
endDate,
|
|
393
|
-
format = 'json',
|
|
394
|
-
includeMainPlatform = true,
|
|
395
|
-
startDate,
|
|
396
|
-
}: {
|
|
397
|
-
courseId: string,
|
|
398
|
-
org: string,
|
|
399
|
-
userId: string,
|
|
400
|
-
/**
|
|
401
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
402
|
-
*/
|
|
403
|
-
departmentId?: number,
|
|
404
|
-
/**
|
|
405
|
-
* end date. ISO 8601
|
|
406
|
-
*/
|
|
407
|
-
endDate?: string,
|
|
408
|
-
/**
|
|
409
|
-
* Format
|
|
410
|
-
*
|
|
411
|
-
* * `json` - json
|
|
412
|
-
*/
|
|
413
|
-
format?: 'json',
|
|
414
|
-
/**
|
|
415
|
-
* Include main platform data
|
|
416
|
-
*/
|
|
417
|
-
includeMainPlatform?: boolean,
|
|
418
|
-
/**
|
|
419
|
-
* start date. ISO 8601
|
|
420
|
-
*/
|
|
421
|
-
startDate?: string,
|
|
422
|
-
}): CancelablePromise<PerlearnerGradeSummary> {
|
|
423
|
-
return __request(OpenAPI, {
|
|
424
|
-
method: 'GET',
|
|
425
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/grading/summary',
|
|
426
|
-
path: {
|
|
427
|
-
'course_id': courseId,
|
|
428
|
-
'org': org,
|
|
429
|
-
'user_id': userId,
|
|
430
|
-
},
|
|
431
|
-
query: {
|
|
432
|
-
'department_id': departmentId,
|
|
433
|
-
'end_date': endDate,
|
|
434
|
-
'format': format,
|
|
435
|
-
'include_main_platform': includeMainPlatform,
|
|
436
|
-
'start_date': startDate,
|
|
437
|
-
},
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* Average of days with atleast an activity within ENGAGEMENT_INDEX_PERIOD consecutive days for a learner in a course
|
|
442
|
-
* @returns Value
|
|
443
|
-
* @throws ApiError
|
|
444
|
-
*/
|
|
445
|
-
public static perlearnerOrgsUsersCoursesOverviewEngagementIndexRetrieve({
|
|
446
|
-
courseId,
|
|
447
|
-
org,
|
|
448
|
-
userId,
|
|
449
|
-
}: {
|
|
450
|
-
courseId: string,
|
|
451
|
-
org: string,
|
|
452
|
-
userId: string,
|
|
453
|
-
}): CancelablePromise<Value> {
|
|
454
|
-
return __request(OpenAPI, {
|
|
455
|
-
method: 'GET',
|
|
456
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/overview/engagement-index',
|
|
457
|
-
path: {
|
|
458
|
-
'course_id': courseId,
|
|
459
|
-
'org': org,
|
|
460
|
-
'user_id': userId,
|
|
461
|
-
},
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
/**
|
|
465
|
-
* Provides about a learner current grade in a course with the course cut
|
|
466
|
-
* Kwargs
|
|
467
|
-
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
468
|
-
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
469
|
-
* @returns PerlearnerGradeWithCutOff
|
|
470
|
-
* @throws ApiError
|
|
471
|
-
*/
|
|
472
|
-
public static perlearnerOrgsUsersCoursesOverviewGradeRetrieve({
|
|
473
|
-
courseId,
|
|
474
|
-
org,
|
|
475
|
-
userId,
|
|
476
|
-
departmentId,
|
|
477
|
-
endDate,
|
|
478
|
-
format = 'json',
|
|
479
|
-
includeMainPlatform = true,
|
|
480
|
-
startDate,
|
|
481
|
-
}: {
|
|
482
|
-
courseId: string,
|
|
483
|
-
org: string,
|
|
484
|
-
userId: string,
|
|
485
|
-
/**
|
|
486
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
487
|
-
*/
|
|
488
|
-
departmentId?: number,
|
|
489
|
-
/**
|
|
490
|
-
* end date. ISO 8601
|
|
491
|
-
*/
|
|
492
|
-
endDate?: string,
|
|
493
|
-
/**
|
|
494
|
-
* Format
|
|
495
|
-
*
|
|
496
|
-
* * `json` - json
|
|
497
|
-
*/
|
|
498
|
-
format?: 'json',
|
|
499
|
-
/**
|
|
500
|
-
* Include main platform data
|
|
501
|
-
*/
|
|
502
|
-
includeMainPlatform?: boolean,
|
|
503
|
-
/**
|
|
504
|
-
* start date. ISO 8601
|
|
505
|
-
*/
|
|
506
|
-
startDate?: string,
|
|
507
|
-
}): CancelablePromise<PerlearnerGradeWithCutOff> {
|
|
508
|
-
return __request(OpenAPI, {
|
|
509
|
-
method: 'GET',
|
|
510
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/overview/grade',
|
|
511
|
-
path: {
|
|
512
|
-
'course_id': courseId,
|
|
513
|
-
'org': org,
|
|
514
|
-
'user_id': userId,
|
|
515
|
-
},
|
|
516
|
-
query: {
|
|
517
|
-
'department_id': departmentId,
|
|
518
|
-
'end_date': endDate,
|
|
519
|
-
'format': format,
|
|
520
|
-
'include_main_platform': includeMainPlatform,
|
|
521
|
-
'start_date': startDate,
|
|
522
|
-
},
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* Evaluates performance index for platform, per course, per user and per user-per course
|
|
527
|
-
*
|
|
528
|
-
* Query Params
|
|
529
|
-
* course_id <optional>
|
|
530
|
-
* learner_id <optional>
|
|
531
|
-
* @returns Value
|
|
532
|
-
* @throws ApiError
|
|
533
|
-
*/
|
|
534
|
-
public static perlearnerOrgsUsersCoursesOverviewPerformanceIndexRetrieve({
|
|
535
|
-
courseId,
|
|
536
|
-
org,
|
|
537
|
-
userId,
|
|
538
|
-
departmentId,
|
|
539
|
-
endDate,
|
|
540
|
-
format = 'json',
|
|
541
|
-
includeMainPlatform = true,
|
|
542
|
-
startDate,
|
|
543
|
-
}: {
|
|
544
|
-
courseId: string,
|
|
545
|
-
org: string,
|
|
546
|
-
userId: string,
|
|
547
|
-
/**
|
|
548
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
549
|
-
*/
|
|
550
|
-
departmentId?: number,
|
|
551
|
-
/**
|
|
552
|
-
* end date. ISO 8601
|
|
553
|
-
*/
|
|
554
|
-
endDate?: string,
|
|
555
|
-
/**
|
|
556
|
-
* Format
|
|
557
|
-
*
|
|
558
|
-
* * `json` - json
|
|
559
|
-
*/
|
|
560
|
-
format?: 'json',
|
|
561
|
-
/**
|
|
562
|
-
* Include main platform data
|
|
563
|
-
*/
|
|
564
|
-
includeMainPlatform?: boolean,
|
|
565
|
-
/**
|
|
566
|
-
* start date. ISO 8601
|
|
567
|
-
*/
|
|
568
|
-
startDate?: string,
|
|
569
|
-
}): CancelablePromise<Value> {
|
|
570
|
-
return __request(OpenAPI, {
|
|
571
|
-
method: 'GET',
|
|
572
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/overview/performance-index',
|
|
573
|
-
path: {
|
|
574
|
-
'course_id': courseId,
|
|
575
|
-
'org': org,
|
|
576
|
-
'user_id': userId,
|
|
577
|
-
},
|
|
578
|
-
query: {
|
|
579
|
-
'department_id': departmentId,
|
|
580
|
-
'end_date': endDate,
|
|
581
|
-
'format': format,
|
|
582
|
-
'include_main_platform': includeMainPlatform,
|
|
583
|
-
'start_date': startDate,
|
|
584
|
-
},
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* Time spent within a course in secs on a per-day basis
|
|
589
|
-
*
|
|
590
|
-
* Kwargs
|
|
591
|
-
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
592
|
-
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
593
|
-
* Query Params
|
|
594
|
-
* 3. start_date e.g 2020-10-01
|
|
595
|
-
* 4. end_date e.g 2020-10-10
|
|
596
|
-
*
|
|
597
|
-
* Default result when no query param is added is last_7_days (today inclusive)
|
|
598
|
-
* @returns OverTimeWithTotal
|
|
599
|
-
* @throws ApiError
|
|
600
|
-
*/
|
|
601
|
-
public static perlearnerOrgsUsersCoursesOverviewTimeOverTimeRetrieve({
|
|
602
|
-
courseId,
|
|
603
|
-
org,
|
|
604
|
-
userId,
|
|
605
|
-
departmentId,
|
|
606
|
-
endDate,
|
|
607
|
-
format = 'json',
|
|
608
|
-
includeMainPlatform = true,
|
|
609
|
-
startDate,
|
|
610
|
-
}: {
|
|
611
|
-
courseId: string,
|
|
612
|
-
org: string,
|
|
613
|
-
userId: string,
|
|
614
|
-
/**
|
|
615
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
616
|
-
*/
|
|
617
|
-
departmentId?: number,
|
|
618
|
-
/**
|
|
619
|
-
* end date. ISO 8601
|
|
620
|
-
*/
|
|
621
|
-
endDate?: string,
|
|
622
|
-
/**
|
|
623
|
-
* Format
|
|
624
|
-
*
|
|
625
|
-
* * `json` - json
|
|
626
|
-
*/
|
|
627
|
-
format?: 'json',
|
|
628
|
-
/**
|
|
629
|
-
* Include main platform data
|
|
630
|
-
*/
|
|
631
|
-
includeMainPlatform?: boolean,
|
|
632
|
-
/**
|
|
633
|
-
* start date. ISO 8601
|
|
634
|
-
*/
|
|
635
|
-
startDate?: string,
|
|
636
|
-
}): CancelablePromise<OverTimeWithTotal> {
|
|
637
|
-
return __request(OpenAPI, {
|
|
638
|
-
method: 'GET',
|
|
639
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/overview/time/over-time',
|
|
640
|
-
path: {
|
|
641
|
-
'course_id': courseId,
|
|
642
|
-
'org': org,
|
|
643
|
-
'user_id': userId,
|
|
644
|
-
},
|
|
645
|
-
query: {
|
|
646
|
-
'department_id': departmentId,
|
|
647
|
-
'end_date': endDate,
|
|
648
|
-
'format': format,
|
|
649
|
-
'include_main_platform': includeMainPlatform,
|
|
650
|
-
'start_date': startDate,
|
|
651
|
-
},
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* List of videos within a course a learner has watched
|
|
656
|
-
*
|
|
657
|
-
* Kwargs
|
|
658
|
-
* 1. course_id e.g course-v1:Org+Course4+Run
|
|
659
|
-
* 2. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
660
|
-
*
|
|
661
|
-
* Default result when no query param is added is [], 0
|
|
662
|
-
* @returns PerLearnerCourseVideosWatched
|
|
663
|
-
* @throws ApiError
|
|
664
|
-
*/
|
|
665
|
-
public static perlearnerOrgsUsersCoursesVideosRetrieve({
|
|
666
|
-
courseId,
|
|
667
|
-
org,
|
|
668
|
-
userId,
|
|
669
|
-
departmentId,
|
|
670
|
-
format = 'json',
|
|
671
|
-
includeMainPlatform = true,
|
|
672
|
-
}: {
|
|
673
|
-
courseId: string,
|
|
674
|
-
org: string,
|
|
675
|
-
userId: string,
|
|
676
|
-
/**
|
|
677
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
678
|
-
*/
|
|
679
|
-
departmentId?: number,
|
|
680
|
-
/**
|
|
681
|
-
* Format
|
|
682
|
-
*
|
|
683
|
-
* * `json` - json
|
|
684
|
-
*/
|
|
685
|
-
format?: 'json',
|
|
686
|
-
/**
|
|
687
|
-
* Include main platform data
|
|
688
|
-
*/
|
|
689
|
-
includeMainPlatform?: boolean,
|
|
690
|
-
}): CancelablePromise<PerLearnerCourseVideosWatched> {
|
|
691
|
-
return __request(OpenAPI, {
|
|
692
|
-
method: 'GET',
|
|
693
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/videos',
|
|
694
|
-
path: {
|
|
695
|
-
'course_id': courseId,
|
|
696
|
-
'org': org,
|
|
697
|
-
'user_id': userId,
|
|
698
|
-
},
|
|
699
|
-
query: {
|
|
700
|
-
'department_id': departmentId,
|
|
701
|
-
'format': format,
|
|
702
|
-
'include_main_platform': includeMainPlatform,
|
|
703
|
-
},
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
/**
|
|
707
|
-
* Get video watch counts over time.
|
|
708
|
-
*
|
|
709
|
-
* This endpoint provides daily counts of videos watched over a specified time period,
|
|
710
|
-
* with options to filter by course or user.
|
|
711
|
-
*
|
|
712
|
-
* Query Parameters:
|
|
713
|
-
* start_date (str, optional): Start date for the time range (ISO format)
|
|
714
|
-
* end_date (str, optional): End date for the time range (ISO format)
|
|
715
|
-
* course_id (str, optional): Filter by course ID
|
|
716
|
-
* user_id (str, optional): Filter by username or email
|
|
717
|
-
*
|
|
718
|
-
* Returns:
|
|
719
|
-
* Daily video watch counts over the specified time period.
|
|
720
|
-
*
|
|
721
|
-
* Default time range is the last 7 days if no dates are specified.
|
|
722
|
-
*
|
|
723
|
-
* Access Control:
|
|
724
|
-
* - Platform admins can access any video watch data
|
|
725
|
-
* - Learners can access their own video watch data
|
|
726
|
-
* @returns OverTimeWithTotal
|
|
727
|
-
* @throws ApiError
|
|
728
|
-
*/
|
|
729
|
-
public static perlearnerOrgsUsersCoursesVideosOverTimeRetrieve({
|
|
730
|
-
courseId,
|
|
731
|
-
org,
|
|
732
|
-
userId,
|
|
733
|
-
departmentId,
|
|
734
|
-
endDate,
|
|
735
|
-
format = 'json',
|
|
736
|
-
includeMainPlatform = true,
|
|
737
|
-
startDate,
|
|
738
|
-
}: {
|
|
739
|
-
courseId: string,
|
|
740
|
-
org: string,
|
|
741
|
-
userId: string,
|
|
742
|
-
/**
|
|
743
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
744
|
-
*/
|
|
745
|
-
departmentId?: number,
|
|
746
|
-
/**
|
|
747
|
-
* end date. ISO 8601
|
|
748
|
-
*/
|
|
749
|
-
endDate?: string,
|
|
750
|
-
/**
|
|
751
|
-
* Format
|
|
752
|
-
*
|
|
753
|
-
* * `json` - json
|
|
754
|
-
*/
|
|
755
|
-
format?: 'json',
|
|
756
|
-
/**
|
|
757
|
-
* Include main platform data
|
|
758
|
-
*/
|
|
759
|
-
includeMainPlatform?: boolean,
|
|
760
|
-
/**
|
|
761
|
-
* start date. ISO 8601
|
|
762
|
-
*/
|
|
763
|
-
startDate?: string,
|
|
764
|
-
}): CancelablePromise<OverTimeWithTotal> {
|
|
765
|
-
return __request(OpenAPI, {
|
|
766
|
-
method: 'GET',
|
|
767
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/courses/{course_id}/videos/over-time',
|
|
768
|
-
path: {
|
|
769
|
-
'course_id': courseId,
|
|
770
|
-
'org': org,
|
|
771
|
-
'user_id': userId,
|
|
772
|
-
},
|
|
773
|
-
query: {
|
|
774
|
-
'department_id': departmentId,
|
|
775
|
-
'end_date': endDate,
|
|
776
|
-
'format': format,
|
|
777
|
-
'include_main_platform': includeMainPlatform,
|
|
778
|
-
'start_date': startDate,
|
|
779
|
-
},
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
/**
|
|
783
|
-
* Summary Grading Information for a learner on a per-enrollment basis
|
|
784
|
-
*
|
|
785
|
-
* Query Params
|
|
786
|
-
* 1. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
787
|
-
* @returns PerlearnerGradingPerCourseAPI
|
|
788
|
-
* @throws ApiError
|
|
789
|
-
*/
|
|
790
|
-
public static perlearnerOrgsUsersGradesPerCourseRetrieve({
|
|
791
|
-
org,
|
|
792
|
-
userId,
|
|
793
|
-
departmentId,
|
|
794
|
-
format = 'json',
|
|
795
|
-
includeMainPlatform = true,
|
|
796
|
-
}: {
|
|
797
|
-
org: string,
|
|
798
|
-
userId: string,
|
|
799
|
-
/**
|
|
800
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
801
|
-
*/
|
|
802
|
-
departmentId?: number,
|
|
803
|
-
/**
|
|
804
|
-
* Format
|
|
805
|
-
*
|
|
806
|
-
* * `json` - json
|
|
807
|
-
*/
|
|
808
|
-
format?: 'json',
|
|
809
|
-
/**
|
|
810
|
-
* Include main platform data
|
|
811
|
-
*/
|
|
812
|
-
includeMainPlatform?: boolean,
|
|
813
|
-
}): CancelablePromise<PerlearnerGradingPerCourseAPI> {
|
|
814
|
-
return __request(OpenAPI, {
|
|
815
|
-
method: 'GET',
|
|
816
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/grades/per-course',
|
|
817
|
-
path: {
|
|
818
|
-
'org': org,
|
|
819
|
-
'user_id': userId,
|
|
820
|
-
},
|
|
821
|
-
query: {
|
|
822
|
-
'department_id': departmentId,
|
|
823
|
-
'format': format,
|
|
824
|
-
'include_main_platform': includeMainPlatform,
|
|
825
|
-
},
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* Retrieve detailed information about a specific learner.
|
|
830
|
-
*
|
|
831
|
-
* This endpoint returns personal and activity information about a learner,
|
|
832
|
-
* including profile data, activity metrics, and location information.
|
|
833
|
-
*
|
|
834
|
-
* Path Parameters:
|
|
835
|
-
* user_id (str): The username or email of the learner
|
|
836
|
-
*
|
|
837
|
-
* Query Parameters:
|
|
838
|
-
* meta (bool): Include additional analytics information when true
|
|
839
|
-
*
|
|
840
|
-
* Returns:
|
|
841
|
-
* Detailed learner information including:
|
|
842
|
-
* - Profile data (username, name, email)
|
|
843
|
-
* - Registration and activity dates
|
|
844
|
-
* - Activity metrics (assessments, time spent, videos watched)
|
|
845
|
-
* - Location and browser information (when available)
|
|
846
|
-
*
|
|
847
|
-
* Access Control:
|
|
848
|
-
* - Platform admins can access any learner
|
|
849
|
-
* - Learners can access their own information
|
|
850
|
-
* - Department admins can access learners in their departments
|
|
851
|
-
* @returns LearnerInformationAPI
|
|
852
|
-
* @throws ApiError
|
|
853
|
-
*/
|
|
854
|
-
public static perlearnerOrgsUsersInfoRetrieve({
|
|
855
|
-
org,
|
|
856
|
-
userId,
|
|
857
|
-
departmentId,
|
|
858
|
-
format = 'json',
|
|
859
|
-
includeMainPlatform = true,
|
|
860
|
-
meta = 'n',
|
|
861
|
-
search,
|
|
862
|
-
}: {
|
|
863
|
-
org: string,
|
|
864
|
-
userId: string,
|
|
865
|
-
/**
|
|
866
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
867
|
-
*/
|
|
868
|
-
departmentId?: number,
|
|
869
|
-
/**
|
|
870
|
-
* Format
|
|
871
|
-
*
|
|
872
|
-
* * `json` - json
|
|
873
|
-
*/
|
|
874
|
-
format?: 'json',
|
|
875
|
-
/**
|
|
876
|
-
* Include main platform data
|
|
877
|
-
*/
|
|
878
|
-
includeMainPlatform?: boolean,
|
|
879
|
-
/**
|
|
880
|
-
* Include extra analytics information?
|
|
881
|
-
*
|
|
882
|
-
* * `y` - y
|
|
883
|
-
* * `yes` - yes
|
|
884
|
-
* * `true` - true
|
|
885
|
-
* * `True` - True
|
|
886
|
-
* * `n` - n
|
|
887
|
-
* * `no` - no
|
|
888
|
-
* * `false` - false
|
|
889
|
-
* * `False` - False
|
|
890
|
-
*/
|
|
891
|
-
meta?: 'y' | 'yes' | 'true' | 'True' | 'n' | 'no' | 'false' | 'False',
|
|
892
|
-
search?: string,
|
|
893
|
-
}): CancelablePromise<LearnerInformationAPI> {
|
|
894
|
-
return __request(OpenAPI, {
|
|
895
|
-
method: 'GET',
|
|
896
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/info',
|
|
897
|
-
path: {
|
|
898
|
-
'org': org,
|
|
899
|
-
'user_id': userId,
|
|
900
|
-
},
|
|
901
|
-
query: {
|
|
902
|
-
'department_id': departmentId,
|
|
903
|
-
'format': format,
|
|
904
|
-
'include_main_platform': includeMainPlatform,
|
|
905
|
-
'meta': meta,
|
|
906
|
-
'search': search,
|
|
907
|
-
},
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* Last course accessed by a learner, includes upto unit information as well
|
|
912
|
-
* @returns PerLearnerLastAccess
|
|
913
|
-
* @throws ApiError
|
|
914
|
-
*/
|
|
915
|
-
public static perlearnerOrgsUsersLastAccessRetrieve({
|
|
916
|
-
org,
|
|
917
|
-
userId,
|
|
918
|
-
departmentId,
|
|
919
|
-
format = 'json',
|
|
920
|
-
includeMainPlatform = true,
|
|
921
|
-
}: {
|
|
922
|
-
org: string,
|
|
923
|
-
userId: string,
|
|
924
|
-
/**
|
|
925
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
926
|
-
*/
|
|
927
|
-
departmentId?: number,
|
|
928
|
-
/**
|
|
929
|
-
* Format
|
|
930
|
-
*
|
|
931
|
-
* * `json` - json
|
|
932
|
-
*/
|
|
933
|
-
format?: 'json',
|
|
934
|
-
/**
|
|
935
|
-
* Include main platform data
|
|
936
|
-
*/
|
|
937
|
-
includeMainPlatform?: boolean,
|
|
938
|
-
}): CancelablePromise<PerLearnerLastAccess> {
|
|
939
|
-
return __request(OpenAPI, {
|
|
940
|
-
method: 'GET',
|
|
941
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/last-access',
|
|
942
|
-
path: {
|
|
943
|
-
'org': org,
|
|
944
|
-
'user_id': userId,
|
|
945
|
-
},
|
|
946
|
-
query: {
|
|
947
|
-
'department_id': departmentId,
|
|
948
|
-
'format': format,
|
|
949
|
-
'include_main_platform': includeMainPlatform,
|
|
950
|
-
},
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
/**
|
|
954
|
-
* Average of days with atleast an activity within ENGAGEMENT_INDEX_PERIOD consecutive days
|
|
955
|
-
* @returns Value
|
|
956
|
-
* @throws ApiError
|
|
957
|
-
*/
|
|
958
|
-
public static perlearnerOrgsUsersOverviewEngagementIndexRetrieve({
|
|
959
|
-
org,
|
|
960
|
-
userId,
|
|
961
|
-
departmentId,
|
|
962
|
-
endDate,
|
|
963
|
-
format = 'json',
|
|
964
|
-
includeMainPlatform = true,
|
|
965
|
-
startDate,
|
|
966
|
-
}: {
|
|
967
|
-
org: string,
|
|
968
|
-
userId: string,
|
|
969
|
-
/**
|
|
970
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
971
|
-
*/
|
|
972
|
-
departmentId?: number,
|
|
973
|
-
/**
|
|
974
|
-
* end date. ISO 8601
|
|
975
|
-
*/
|
|
976
|
-
endDate?: string,
|
|
977
|
-
/**
|
|
978
|
-
* Format
|
|
979
|
-
*
|
|
980
|
-
* * `json` - json
|
|
981
|
-
*/
|
|
982
|
-
format?: 'json',
|
|
983
|
-
/**
|
|
984
|
-
* Include main platform data
|
|
985
|
-
*/
|
|
986
|
-
includeMainPlatform?: boolean,
|
|
987
|
-
/**
|
|
988
|
-
* start date. ISO 8601
|
|
989
|
-
*/
|
|
990
|
-
startDate?: string,
|
|
991
|
-
}): CancelablePromise<Value> {
|
|
992
|
-
return __request(OpenAPI, {
|
|
993
|
-
method: 'GET',
|
|
994
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/overview/engagement-index',
|
|
995
|
-
path: {
|
|
996
|
-
'org': org,
|
|
997
|
-
'user_id': userId,
|
|
998
|
-
},
|
|
999
|
-
query: {
|
|
1000
|
-
'department_id': departmentId,
|
|
1001
|
-
'end_date': endDate,
|
|
1002
|
-
'format': format,
|
|
1003
|
-
'include_main_platform': includeMainPlatform,
|
|
1004
|
-
'start_date': startDate,
|
|
1005
|
-
},
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
/**
|
|
1009
|
-
* Get average grade value for platform, course, or user.
|
|
1010
|
-
*
|
|
1011
|
-
* This endpoint returns the average grade at different levels:
|
|
1012
|
-
* - Platform level: Average grade across all courses
|
|
1013
|
-
* - Course level: Average grade for a specific course
|
|
1014
|
-
* - Learner level: Average grade for a specific learner
|
|
1015
|
-
* - Course-learner level: Grade for a specific learner in a specific course
|
|
1016
|
-
*
|
|
1017
|
-
* Query Parameters:
|
|
1018
|
-
* course_id (str, optional): Filter by course ID
|
|
1019
|
-
* learner_id (str, optional): Filter by username or email
|
|
1020
|
-
*
|
|
1021
|
-
* Returns:
|
|
1022
|
-
* The average grade value based on the specified filters.
|
|
1023
|
-
*
|
|
1024
|
-
* Access Control:
|
|
1025
|
-
* - Platform admins can access any grade data
|
|
1026
|
-
* - Learners can access their own grade data
|
|
1027
|
-
* @returns Average
|
|
1028
|
-
* @throws ApiError
|
|
1029
|
-
*/
|
|
1030
|
-
public static perlearnerOrgsUsersOverviewGradesAverageRetrieve({
|
|
1031
|
-
org,
|
|
1032
|
-
userId,
|
|
1033
|
-
departmentId,
|
|
1034
|
-
format = 'json',
|
|
1035
|
-
includeMainPlatform = true,
|
|
1036
|
-
}: {
|
|
1037
|
-
org: string,
|
|
1038
|
-
userId: string,
|
|
1039
|
-
/**
|
|
1040
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
1041
|
-
*/
|
|
1042
|
-
departmentId?: number,
|
|
1043
|
-
/**
|
|
1044
|
-
* Format
|
|
1045
|
-
*
|
|
1046
|
-
* * `json` - json
|
|
1047
|
-
*/
|
|
1048
|
-
format?: 'json',
|
|
1049
|
-
/**
|
|
1050
|
-
* Include main platform data
|
|
1051
|
-
*/
|
|
1052
|
-
includeMainPlatform?: boolean,
|
|
1053
|
-
}): CancelablePromise<Average> {
|
|
1054
|
-
return __request(OpenAPI, {
|
|
1055
|
-
method: 'GET',
|
|
1056
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/overview/grades/average',
|
|
1057
|
-
path: {
|
|
1058
|
-
'org': org,
|
|
1059
|
-
'user_id': userId,
|
|
1060
|
-
},
|
|
1061
|
-
query: {
|
|
1062
|
-
'department_id': departmentId,
|
|
1063
|
-
'format': format,
|
|
1064
|
-
'include_main_platform': includeMainPlatform,
|
|
1065
|
-
},
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
/**
|
|
1069
|
-
* Evaluates performance index for platform, per course, per user and per user-per course
|
|
1070
|
-
*
|
|
1071
|
-
* Query Params
|
|
1072
|
-
* course_id <optional>
|
|
1073
|
-
* learner_id <optional>
|
|
1074
|
-
* @returns Value
|
|
1075
|
-
* @throws ApiError
|
|
1076
|
-
*/
|
|
1077
|
-
public static perlearnerOrgsUsersOverviewPerformanceIndexRetrieve({
|
|
1078
|
-
org,
|
|
1079
|
-
userId,
|
|
1080
|
-
departmentId,
|
|
1081
|
-
endDate,
|
|
1082
|
-
format = 'json',
|
|
1083
|
-
includeMainPlatform = true,
|
|
1084
|
-
startDate,
|
|
1085
|
-
}: {
|
|
1086
|
-
org: string,
|
|
1087
|
-
userId: string,
|
|
1088
|
-
/**
|
|
1089
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
1090
|
-
*/
|
|
1091
|
-
departmentId?: number,
|
|
1092
|
-
/**
|
|
1093
|
-
* end date. ISO 8601
|
|
1094
|
-
*/
|
|
1095
|
-
endDate?: string,
|
|
1096
|
-
/**
|
|
1097
|
-
* Format
|
|
1098
|
-
*
|
|
1099
|
-
* * `json` - json
|
|
1100
|
-
*/
|
|
1101
|
-
format?: 'json',
|
|
1102
|
-
/**
|
|
1103
|
-
* Include main platform data
|
|
1104
|
-
*/
|
|
1105
|
-
includeMainPlatform?: boolean,
|
|
1106
|
-
/**
|
|
1107
|
-
* start date. ISO 8601
|
|
1108
|
-
*/
|
|
1109
|
-
startDate?: string,
|
|
1110
|
-
}): CancelablePromise<Value> {
|
|
1111
|
-
return __request(OpenAPI, {
|
|
1112
|
-
method: 'GET',
|
|
1113
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/overview/performance-index',
|
|
1114
|
-
path: {
|
|
1115
|
-
'org': org,
|
|
1116
|
-
'user_id': userId,
|
|
1117
|
-
},
|
|
1118
|
-
query: {
|
|
1119
|
-
'department_id': departmentId,
|
|
1120
|
-
'end_date': endDate,
|
|
1121
|
-
'format': format,
|
|
1122
|
-
'include_main_platform': includeMainPlatform,
|
|
1123
|
-
'start_date': startDate,
|
|
1124
|
-
},
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
/**
|
|
1128
|
-
* Time spent in secs on a per-day basis
|
|
1129
|
-
*
|
|
1130
|
-
* Query Params
|
|
1131
|
-
* 1. course_id <optional> e.g course-v1:Org+Course4+Run
|
|
1132
|
-
* 2. user_id <optional> e.g developer@ibleducation.com or dev123 (username|email)
|
|
1133
|
-
* 3. start_date e.g 2020-10-01
|
|
1134
|
-
* 4. end_date e.g 2020-10-10
|
|
1135
|
-
*
|
|
1136
|
-
* Default result when no query param is added is last_7_days (today inclusive)
|
|
1137
|
-
* @returns OverTimeWithTotal
|
|
1138
|
-
* @throws ApiError
|
|
1139
|
-
*/
|
|
1140
|
-
public static perlearnerOrgsUsersOverviewTimeOverTimeRetrieve({
|
|
1141
|
-
org,
|
|
1142
|
-
userId,
|
|
1143
|
-
departmentId,
|
|
1144
|
-
endDate,
|
|
1145
|
-
format = 'json',
|
|
1146
|
-
includeMainPlatform = true,
|
|
1147
|
-
startDate,
|
|
1148
|
-
}: {
|
|
1149
|
-
org: string,
|
|
1150
|
-
userId: string,
|
|
1151
|
-
/**
|
|
1152
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
1153
|
-
*/
|
|
1154
|
-
departmentId?: number,
|
|
1155
|
-
/**
|
|
1156
|
-
* end date. ISO 8601
|
|
1157
|
-
*/
|
|
1158
|
-
endDate?: string,
|
|
1159
|
-
/**
|
|
1160
|
-
* Format
|
|
1161
|
-
*
|
|
1162
|
-
* * `json` - json
|
|
1163
|
-
*/
|
|
1164
|
-
format?: 'json',
|
|
1165
|
-
/**
|
|
1166
|
-
* Include main platform data
|
|
1167
|
-
*/
|
|
1168
|
-
includeMainPlatform?: boolean,
|
|
1169
|
-
/**
|
|
1170
|
-
* start date. ISO 8601
|
|
1171
|
-
*/
|
|
1172
|
-
startDate?: string,
|
|
1173
|
-
}): CancelablePromise<OverTimeWithTotal> {
|
|
1174
|
-
return __request(OpenAPI, {
|
|
1175
|
-
method: 'GET',
|
|
1176
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/overview/time/over-time',
|
|
1177
|
-
path: {
|
|
1178
|
-
'org': org,
|
|
1179
|
-
'user_id': userId,
|
|
1180
|
-
},
|
|
1181
|
-
query: {
|
|
1182
|
-
'department_id': departmentId,
|
|
1183
|
-
'end_date': endDate,
|
|
1184
|
-
'format': format,
|
|
1185
|
-
'include_main_platform': includeMainPlatform,
|
|
1186
|
-
'start_date': startDate,
|
|
1187
|
-
},
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
/**
|
|
1191
|
-
* Get video watch counts over time.
|
|
1192
|
-
*
|
|
1193
|
-
* This endpoint provides daily counts of videos watched over a specified time period,
|
|
1194
|
-
* with options to filter by course or user.
|
|
1195
|
-
*
|
|
1196
|
-
* Query Parameters:
|
|
1197
|
-
* start_date (str, optional): Start date for the time range (ISO format)
|
|
1198
|
-
* end_date (str, optional): End date for the time range (ISO format)
|
|
1199
|
-
* course_id (str, optional): Filter by course ID
|
|
1200
|
-
* user_id (str, optional): Filter by username or email
|
|
1201
|
-
*
|
|
1202
|
-
* Returns:
|
|
1203
|
-
* Daily video watch counts over the specified time period.
|
|
1204
|
-
*
|
|
1205
|
-
* Default time range is the last 7 days if no dates are specified.
|
|
1206
|
-
*
|
|
1207
|
-
* Access Control:
|
|
1208
|
-
* - Platform admins can access any video watch data
|
|
1209
|
-
* - Learners can access their own video watch data
|
|
1210
|
-
* @returns OverTimeWithTotal
|
|
1211
|
-
* @throws ApiError
|
|
1212
|
-
*/
|
|
1213
|
-
public static perlearnerOrgsUsersVideosOverTimeRetrieve({
|
|
1214
|
-
org,
|
|
1215
|
-
userId,
|
|
1216
|
-
departmentId,
|
|
1217
|
-
endDate,
|
|
1218
|
-
format = 'json',
|
|
1219
|
-
includeMainPlatform = true,
|
|
1220
|
-
startDate,
|
|
1221
|
-
}: {
|
|
1222
|
-
org: string,
|
|
1223
|
-
userId: string,
|
|
1224
|
-
/**
|
|
1225
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
1226
|
-
*/
|
|
1227
|
-
departmentId?: number,
|
|
1228
|
-
/**
|
|
1229
|
-
* end date. ISO 8601
|
|
1230
|
-
*/
|
|
1231
|
-
endDate?: string,
|
|
1232
|
-
/**
|
|
1233
|
-
* Format
|
|
1234
|
-
*
|
|
1235
|
-
* * `json` - json
|
|
1236
|
-
*/
|
|
1237
|
-
format?: 'json',
|
|
1238
|
-
/**
|
|
1239
|
-
* Include main platform data
|
|
1240
|
-
*/
|
|
1241
|
-
includeMainPlatform?: boolean,
|
|
1242
|
-
/**
|
|
1243
|
-
* start date. ISO 8601
|
|
1244
|
-
*/
|
|
1245
|
-
startDate?: string,
|
|
1246
|
-
}): CancelablePromise<OverTimeWithTotal> {
|
|
1247
|
-
return __request(OpenAPI, {
|
|
1248
|
-
method: 'GET',
|
|
1249
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/videos/over-time',
|
|
1250
|
-
path: {
|
|
1251
|
-
'org': org,
|
|
1252
|
-
'user_id': userId,
|
|
1253
|
-
},
|
|
1254
|
-
query: {
|
|
1255
|
-
'department_id': departmentId,
|
|
1256
|
-
'end_date': endDate,
|
|
1257
|
-
'format': format,
|
|
1258
|
-
'include_main_platform': includeMainPlatform,
|
|
1259
|
-
'start_date': startDate,
|
|
1260
|
-
},
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
/**
|
|
1264
|
-
* Summary Videos watched data for a learner per enrollment
|
|
1265
|
-
*
|
|
1266
|
-
* Query Params
|
|
1267
|
-
* 1. user_id e.g developer@ibleducation.com or dev123 (username|email)
|
|
1268
|
-
* @returns PerlearnerEngagementVideosWatchedPerCourse
|
|
1269
|
-
* @throws ApiError
|
|
1270
|
-
*/
|
|
1271
|
-
public static perlearnerOrgsUsersVideosPerCourseRetrieve({
|
|
1272
|
-
org,
|
|
1273
|
-
userId,
|
|
1274
|
-
departmentId,
|
|
1275
|
-
endDate,
|
|
1276
|
-
format = 'json',
|
|
1277
|
-
includeMainPlatform = true,
|
|
1278
|
-
startDate,
|
|
1279
|
-
}: {
|
|
1280
|
-
org: string,
|
|
1281
|
-
userId: string,
|
|
1282
|
-
/**
|
|
1283
|
-
* When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
|
|
1284
|
-
*/
|
|
1285
|
-
departmentId?: number,
|
|
1286
|
-
/**
|
|
1287
|
-
* end date. ISO 8601
|
|
1288
|
-
*/
|
|
1289
|
-
endDate?: string,
|
|
1290
|
-
/**
|
|
1291
|
-
* Format
|
|
1292
|
-
*
|
|
1293
|
-
* * `json` - json
|
|
1294
|
-
*/
|
|
1295
|
-
format?: 'json',
|
|
1296
|
-
/**
|
|
1297
|
-
* Include main platform data
|
|
1298
|
-
*/
|
|
1299
|
-
includeMainPlatform?: boolean,
|
|
1300
|
-
/**
|
|
1301
|
-
* start date. ISO 8601
|
|
1302
|
-
*/
|
|
1303
|
-
startDate?: string,
|
|
1304
|
-
}): CancelablePromise<PerlearnerEngagementVideosWatchedPerCourse> {
|
|
1305
|
-
return __request(OpenAPI, {
|
|
1306
|
-
method: 'GET',
|
|
1307
|
-
url: '/api/perlearner/orgs/{org}/users/{user_id}/videos/per-course',
|
|
1308
|
-
path: {
|
|
1309
|
-
'org': org,
|
|
1310
|
-
'user_id': userId,
|
|
1311
|
-
},
|
|
1312
|
-
query: {
|
|
1313
|
-
'department_id': departmentId,
|
|
1314
|
-
'end_date': endDate,
|
|
1315
|
-
'format': format,
|
|
1316
|
-
'include_main_platform': includeMainPlatform,
|
|
1317
|
-
'start_date': startDate,
|
|
1318
|
-
},
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
}
|