@iblai/data-layer 1.8.5 → 1.8.7
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 +272 -15
- package/dist/index.esm.js +34 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +34 -9
- 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/dist/src/features/user/api-slice.d.ts +14 -14
- package/dist/src/features/user/types.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40241,8 +40241,8 @@ const USERS_ENDPOINTS = {
|
|
|
40241
40241
|
path: () => `/api/ibl/users/manage/metadata/`,
|
|
40242
40242
|
},
|
|
40243
40243
|
RESET_PASSWORD: {
|
|
40244
|
-
service: exports.SERVICES.
|
|
40245
|
-
path: () => `/account/password`,
|
|
40244
|
+
service: exports.SERVICES.LEGACY_LMS,
|
|
40245
|
+
path: () => `/ibl/edx/account/api/reset-password-token`,
|
|
40246
40246
|
},
|
|
40247
40247
|
UPDATE_USER_ROLES: {
|
|
40248
40248
|
service: exports.SERVICES.LMS,
|
|
@@ -40323,12 +40323,26 @@ const userApiSlice = react.createApi({
|
|
|
40323
40323
|
invalidatesTags: USERS_QUERY_KEYS.GET_USER_METADATA(),
|
|
40324
40324
|
}),
|
|
40325
40325
|
resetPassword: builder.mutation({
|
|
40326
|
-
query: (
|
|
40327
|
-
|
|
40328
|
-
|
|
40329
|
-
|
|
40330
|
-
|
|
40331
|
-
|
|
40326
|
+
query: ({ email, platformKey, redirectTo, app }) => {
|
|
40327
|
+
const payload = {
|
|
40328
|
+
email,
|
|
40329
|
+
};
|
|
40330
|
+
if (platformKey) {
|
|
40331
|
+
payload.platform_key = platformKey;
|
|
40332
|
+
}
|
|
40333
|
+
if (redirectTo) {
|
|
40334
|
+
payload.redirect_to = redirectTo;
|
|
40335
|
+
}
|
|
40336
|
+
if (app) {
|
|
40337
|
+
payload.app = app;
|
|
40338
|
+
}
|
|
40339
|
+
return {
|
|
40340
|
+
url: USERS_ENDPOINTS.RESET_PASSWORD.path(),
|
|
40341
|
+
service: USERS_ENDPOINTS.RESET_PASSWORD.service,
|
|
40342
|
+
body: payload,
|
|
40343
|
+
method: 'POST',
|
|
40344
|
+
};
|
|
40345
|
+
},
|
|
40332
40346
|
}),
|
|
40333
40347
|
updateUserRole: builder.mutation({
|
|
40334
40348
|
query: (args) => ({
|
|
@@ -41894,6 +41908,10 @@ const NON_AI_ANALYTICS_ENDPOINTS = {
|
|
|
41894
41908
|
service: exports.SERVICES.DM,
|
|
41895
41909
|
path: (content_id) => `/api/analytics/content/details/${content_id}/`,
|
|
41896
41910
|
},
|
|
41911
|
+
GET_LEARNER_DETAILS: {
|
|
41912
|
+
service: exports.SERVICES.DM,
|
|
41913
|
+
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}` : ''}`,
|
|
41914
|
+
},
|
|
41897
41915
|
};
|
|
41898
41916
|
const ANALYTICS_REDUCER_PATH = 'analyticsApiSlice';
|
|
41899
41917
|
|
|
@@ -42192,9 +42210,15 @@ const analyticsApiSlice = react.createApi({
|
|
|
42192
42210
|
params: args,
|
|
42193
42211
|
}),
|
|
42194
42212
|
}),
|
|
42213
|
+
getLearnerDetails: builder.query({
|
|
42214
|
+
query: (args) => ({
|
|
42215
|
+
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),
|
|
42216
|
+
service: NON_AI_ANALYTICS_ENDPOINTS.GET_LEARNER_DETAILS.service,
|
|
42217
|
+
}),
|
|
42218
|
+
}),
|
|
42195
42219
|
}),
|
|
42196
42220
|
});
|
|
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;
|
|
42221
|
+
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
42222
|
|
|
42199
42223
|
const analyticsCustomSlice = react.createApi({
|
|
42200
42224
|
reducerPath: 'analyticsCustomApiSlice',
|
|
@@ -46106,6 +46130,7 @@ exports.useGetIntegrationCredentialsSchemaQuery = useGetIntegrationCredentialsSc
|
|
|
46106
46130
|
exports.useGetIssuersQuery = useGetIssuersQuery;
|
|
46107
46131
|
exports.useGetItemSubscriptionQuery = useGetItemSubscriptionQuery;
|
|
46108
46132
|
exports.useGetLLMCredentialsQuery = useGetLLMCredentialsQuery;
|
|
46133
|
+
exports.useGetLearnerDetailsQuery = useGetLearnerDetailsQuery;
|
|
46109
46134
|
exports.useGetLlmsQuery = useGetLlmsQuery;
|
|
46110
46135
|
exports.useGetMCPServerConnectionsQuery = useGetMCPServerConnectionsQuery;
|
|
46111
46136
|
exports.useGetMCPServerQuery = useGetMCPServerQuery;
|