@iblai/data-layer 1.8.7 → 1.8.8
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 +7 -312
- package/dist/index.esm.js +24 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +23 -24
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/analytics/custom-api-slice.d.ts +8 -311
- package/dist/src/features/reports/api-slice.d.ts +1 -1
- package/dist/tests/features/analytics/custom-api-slice.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var react = require('@reduxjs/toolkit/query/react');
|
|
4
4
|
var query = require('@reduxjs/toolkit/query');
|
|
5
|
+
var react$1 = require('react');
|
|
5
6
|
|
|
6
7
|
class ApiError extends Error {
|
|
7
8
|
constructor(request, response, message) {
|
|
@@ -42220,24 +42221,24 @@ const analyticsApiSlice = react.createApi({
|
|
|
42220
42221
|
});
|
|
42221
42222
|
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;
|
|
42222
42223
|
|
|
42223
|
-
const
|
|
42224
|
-
|
|
42225
|
-
|
|
42226
|
-
|
|
42227
|
-
|
|
42228
|
-
getDownloadReportFromURL: builder.query({
|
|
42229
|
-
query: ({ url }) => ({
|
|
42230
|
-
url: url,
|
|
42231
|
-
service: exports.SERVICES.DM,
|
|
42224
|
+
const useLazyGetDownloadReportFromURLQuery = () => {
|
|
42225
|
+
const fetchReportBlob = react$1.useCallback(({ url }) => {
|
|
42226
|
+
const promise = (async () => {
|
|
42227
|
+
const authHeaders = await getHeaders(exports.SERVICES.DM);
|
|
42228
|
+
const response = await fetch(url, {
|
|
42232
42229
|
method: 'GET',
|
|
42233
|
-
|
|
42234
|
-
|
|
42235
|
-
|
|
42236
|
-
|
|
42237
|
-
|
|
42238
|
-
|
|
42239
|
-
|
|
42240
|
-
|
|
42230
|
+
credentials: 'omit',
|
|
42231
|
+
headers: { ...(authHeaders !== null && authHeaders !== void 0 ? authHeaders : {}) },
|
|
42232
|
+
});
|
|
42233
|
+
if (!response.ok) {
|
|
42234
|
+
throw new Error(`Failed to download report (status ${response.status})`);
|
|
42235
|
+
}
|
|
42236
|
+
return response.blob();
|
|
42237
|
+
})();
|
|
42238
|
+
return { unwrap: () => promise };
|
|
42239
|
+
}, []);
|
|
42240
|
+
return [fetchReportBlob];
|
|
42241
|
+
};
|
|
42241
42242
|
|
|
42242
42243
|
const reportsApiSlice = react.createApi({
|
|
42243
42244
|
reducerPath: 'reportsApiSlice',
|
|
@@ -42279,7 +42280,11 @@ const reportsApiSlice = react.createApi({
|
|
|
42279
42280
|
providesTags: ['reports'],
|
|
42280
42281
|
}),
|
|
42281
42282
|
getReportDetail: builder.query({
|
|
42282
|
-
...buildEndpointFromDmService(ReportsService.reportsPlatformsRetrieve2
|
|
42283
|
+
...buildEndpointFromDmService(({ key, reportName, mentor_unique_id }) => ReportsService.reportsPlatformsRetrieve2({
|
|
42284
|
+
key,
|
|
42285
|
+
reportName,
|
|
42286
|
+
mentorUniqueId: mentor_unique_id,
|
|
42287
|
+
})),
|
|
42283
42288
|
providesTags: ['reportDetail'],
|
|
42284
42289
|
}),
|
|
42285
42290
|
createReport: builder.mutation({
|
|
@@ -45620,7 +45625,6 @@ const mentorReducer = {
|
|
|
45620
45625
|
[artifactsApiSlice.reducerPath]: artifactsApiSlice.reducer,
|
|
45621
45626
|
[coreFakeCustomPublicImageAssetApiSlice.reducerPath]: coreFakeCustomPublicImageAssetApiSlice.reducer,
|
|
45622
45627
|
[billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
|
|
45623
|
-
[analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
|
|
45624
45628
|
[retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
|
|
45625
45629
|
[auditLogsApiSlice.reducerPath]: auditLogsApiSlice.reducer,
|
|
45626
45630
|
[monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
|
|
@@ -45676,7 +45680,6 @@ const mentorMiddleware = [
|
|
|
45676
45680
|
artifactsApiSlice.middleware,
|
|
45677
45681
|
coreFakeCustomPublicImageAssetApiSlice.middleware,
|
|
45678
45682
|
billingCustomSlice.middleware,
|
|
45679
|
-
analyticsCustomSlice.middleware,
|
|
45680
45683
|
retirementApiSlice.middleware,
|
|
45681
45684
|
auditLogsApiSlice.middleware,
|
|
45682
45685
|
monetizationApiSlice.middleware,
|
|
@@ -45720,7 +45723,6 @@ const skillsReducer = {
|
|
|
45720
45723
|
[artifactsApiSlice.reducerPath]: artifactsApiSlice.reducer,
|
|
45721
45724
|
[coreFakeCustomPublicImageAssetApiSlice.reducerPath]: coreFakeCustomPublicImageAssetApiSlice.reducer,
|
|
45722
45725
|
[billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
|
|
45723
|
-
[analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
|
|
45724
45726
|
[retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
|
|
45725
45727
|
[monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
|
|
45726
45728
|
[memoryApiSlice.reducerPath]: memoryApiSlice.reducer,
|
|
@@ -45762,7 +45764,6 @@ const skillsMiddleware = [
|
|
|
45762
45764
|
artifactsApiSlice.middleware,
|
|
45763
45765
|
coreFakeCustomPublicImageAssetApiSlice.middleware,
|
|
45764
45766
|
billingCustomSlice.middleware,
|
|
45765
|
-
analyticsCustomSlice.middleware,
|
|
45766
45767
|
retirementApiSlice.middleware,
|
|
45767
45768
|
monetizationApiSlice.middleware,
|
|
45768
45769
|
memoryApiSlice.middleware,
|
|
@@ -45858,7 +45859,6 @@ exports.WORKFLOWS_ENDPOINTS = WORKFLOWS_ENDPOINTS;
|
|
|
45858
45859
|
exports.WORKFLOWS_QUERY_KEYS = WORKFLOWS_QUERY_KEYS;
|
|
45859
45860
|
exports.WORKFLOWS_REDUCER_PATH = WORKFLOWS_REDUCER_PATH;
|
|
45860
45861
|
exports.analyticsApiSlice = analyticsApiSlice;
|
|
45861
|
-
exports.analyticsCustomSlice = analyticsCustomSlice;
|
|
45862
45862
|
exports.apiKeysApiReducer = apiKeysApiReducer;
|
|
45863
45863
|
exports.apiKeysApiSlice = apiKeysApiSlice;
|
|
45864
45864
|
exports.appApiReducer = appApiReducer;
|
|
@@ -46115,7 +46115,6 @@ exports.useGetDepartmentMemberCheckQuery = useGetDepartmentMemberCheckQuery;
|
|
|
46115
46115
|
exports.useGetDesiredSkillsQuery = useGetDesiredSkillsQuery;
|
|
46116
46116
|
exports.useGetDetailedFinancialStatsQuery = useGetDetailedFinancialStatsQuery;
|
|
46117
46117
|
exports.useGetDisclaimersQuery = useGetDisclaimersQuery;
|
|
46118
|
-
exports.useGetDownloadReportFromURLQuery = useGetDownloadReportFromURLQuery;
|
|
46119
46118
|
exports.useGetEdxSSOTokenQuery = useGetEdxSSOTokenQuery;
|
|
46120
46119
|
exports.useGetEnrollmentCourseSearchQuery = useGetEnrollmentCourseSearchQuery;
|
|
46121
46120
|
exports.useGetExamInfoQuery = useGetExamInfoQuery;
|