@iblai/data-layer 1.8.5 → 1.8.6
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.d.ts +253 -2
- package/dist/index.esm.js +12 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/analytics/__tests__/learner-details.test.d.ts +1 -0
- package/dist/src/features/analytics/api-slice.d.ts +134 -1
- package/dist/src/features/analytics/constants.d.ts +4 -0
- package/dist/src/features/analytics/types.d.ts +117 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41894,6 +41894,10 @@ const NON_AI_ANALYTICS_ENDPOINTS = {
|
|
|
41894
41894
|
service: exports.SERVICES.DM,
|
|
41895
41895
|
path: (content_id) => `/api/analytics/content/details/${content_id}/`,
|
|
41896
41896
|
},
|
|
41897
|
+
GET_LEARNER_DETAILS: {
|
|
41898
|
+
service: exports.SERVICES.DM,
|
|
41899
|
+
path: (username, platform_key, metrics, course_id, include_edx_progress, program_id) => `/api/analytics/learner/details?username=${username}&platform_key=${platform_key}&metrics=${metrics}${course_id ? `&course_id=${encodeURIComponent(course_id)}` : ''}${program_id ? `&program_id=${encodeURIComponent(program_id)}` : ''}${include_edx_progress !== undefined ? `&include_edx_progress=${include_edx_progress}` : ''}`,
|
|
41900
|
+
},
|
|
41897
41901
|
};
|
|
41898
41902
|
const ANALYTICS_REDUCER_PATH = 'analyticsApiSlice';
|
|
41899
41903
|
|
|
@@ -42192,9 +42196,15 @@ const analyticsApiSlice = react.createApi({
|
|
|
42192
42196
|
params: args,
|
|
42193
42197
|
}),
|
|
42194
42198
|
}),
|
|
42199
|
+
getLearnerDetails: builder.query({
|
|
42200
|
+
query: (args) => ({
|
|
42201
|
+
url: NON_AI_ANALYTICS_ENDPOINTS.GET_LEARNER_DETAILS.path(args.username, args.platform_key, args.metrics, args.course_id, args.include_edx_progress, args.program_id),
|
|
42202
|
+
service: NON_AI_ANALYTICS_ENDPOINTS.GET_LEARNER_DETAILS.service,
|
|
42203
|
+
}),
|
|
42204
|
+
}),
|
|
42195
42205
|
}),
|
|
42196
42206
|
});
|
|
42197
|
-
const { useGetOverviewSummaryQuery, useGetConversationQuery, useGetMostDiscussedTopicsQuery, useGetAverageMessagesPerSessionQuery, useGetRegisteredUsersTrendQuery, useGetUserMetricsQuery, useGetUserMetricsPieChartQuery, useGetUserCohortsOverTimeQuery, useGetTopStudentsByChatMessagesQuery, useGetTopicOverviewQuery, useGetTopicsSummaryQuery, useGetTopicStatisticsQuery, useGetTopicsStatsQuery, useGetUsersStatsQuery, useGetSessionStatsQuery, useGetTopicsDetailsStatsQuery, useGetAccessTimeHeatmapQuery, useGetUserDetailsStatsQuery, useGetAverageRatingQuery, useGetFinancialStatsQuery, useGetDetailedFinancialStatsQuery, useGetTranscriptsMessagesQuery, useGetTranscriptsMessagesDetailsQuery, useTimeTrackingMutation, useGetTranscriptsConversationHeadlineQuery, useGetContentAnalyticsQuery, useGetContentAnalyticsDetailsQuery, } = analyticsApiSlice;
|
|
42207
|
+
const { useGetOverviewSummaryQuery, useGetConversationQuery, useGetMostDiscussedTopicsQuery, useGetAverageMessagesPerSessionQuery, useGetRegisteredUsersTrendQuery, useGetUserMetricsQuery, useGetUserMetricsPieChartQuery, useGetUserCohortsOverTimeQuery, useGetTopStudentsByChatMessagesQuery, useGetTopicOverviewQuery, useGetTopicsSummaryQuery, useGetTopicStatisticsQuery, useGetTopicsStatsQuery, useGetUsersStatsQuery, useGetSessionStatsQuery, useGetTopicsDetailsStatsQuery, useGetAccessTimeHeatmapQuery, useGetUserDetailsStatsQuery, useGetAverageRatingQuery, useGetFinancialStatsQuery, useGetDetailedFinancialStatsQuery, useGetTranscriptsMessagesQuery, useGetTranscriptsMessagesDetailsQuery, useTimeTrackingMutation, useGetTranscriptsConversationHeadlineQuery, useGetContentAnalyticsQuery, useGetContentAnalyticsDetailsQuery, useGetLearnerDetailsQuery, } = analyticsApiSlice;
|
|
42198
42208
|
|
|
42199
42209
|
const analyticsCustomSlice = react.createApi({
|
|
42200
42210
|
reducerPath: 'analyticsCustomApiSlice',
|
|
@@ -46106,6 +46116,7 @@ exports.useGetIntegrationCredentialsSchemaQuery = useGetIntegrationCredentialsSc
|
|
|
46106
46116
|
exports.useGetIssuersQuery = useGetIssuersQuery;
|
|
46107
46117
|
exports.useGetItemSubscriptionQuery = useGetItemSubscriptionQuery;
|
|
46108
46118
|
exports.useGetLLMCredentialsQuery = useGetLLMCredentialsQuery;
|
|
46119
|
+
exports.useGetLearnerDetailsQuery = useGetLearnerDetailsQuery;
|
|
46109
46120
|
exports.useGetLlmsQuery = useGetLlmsQuery;
|
|
46110
46121
|
exports.useGetMCPServerConnectionsQuery = useGetMCPServerConnectionsQuery;
|
|
46111
46122
|
exports.useGetMCPServerQuery = useGetMCPServerQuery;
|