@iblai/data-layer 1.33.1 → 1.34.0
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 +6 -0
- package/dist/index.esm.js +10 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/analytics/__tests__/download-report.test.d.ts +1 -0
- package/dist/src/features/analytics/custom-api-slice.d.ts +6 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43641,11 +43641,19 @@ useGetFinancialStatsQuery,
|
|
|
43641
43641
|
*/
|
|
43642
43642
|
useGetDetailedFinancialStatsQuery, useGetTranscriptsMessagesQuery, useGetTranscriptsMessagesDetailsQuery, useTimeTrackingMutation, useGetTranscriptsConversationHeadlineQuery, useGetContentAnalyticsQuery, useGetContentAnalyticsDetailsQuery, useGetLearnerDetailsQuery, useGetLlmUsageMetricsQuery, useGetLlmUsageTracesQuery, useGetLlmUsageObservationsQuery, } = analyticsApiSlice;
|
|
43643
43643
|
|
|
43644
|
+
const withCleanParam = (url, clean) => {
|
|
43645
|
+
var _a;
|
|
43646
|
+
if (clean === undefined)
|
|
43647
|
+
return url;
|
|
43648
|
+
const parsed = new URL(url, (_a = globalThis.location) === null || _a === void 0 ? void 0 : _a.href);
|
|
43649
|
+
parsed.searchParams.set('clean', String(clean));
|
|
43650
|
+
return parsed.toString();
|
|
43651
|
+
};
|
|
43644
43652
|
const useLazyGetDownloadReportFromURLQuery = () => {
|
|
43645
|
-
const fetchReportBlob = react$1.useCallback(({ url }) => {
|
|
43653
|
+
const fetchReportBlob = react$1.useCallback(({ url, clean }) => {
|
|
43646
43654
|
const promise = (async () => {
|
|
43647
43655
|
const authHeaders = await getHeaders(exports.SERVICES.DM);
|
|
43648
|
-
const response = await fetch(url, {
|
|
43656
|
+
const response = await fetch(withCleanParam(url, clean), {
|
|
43649
43657
|
method: 'GET',
|
|
43650
43658
|
credentials: 'omit',
|
|
43651
43659
|
headers: { ...(authHeaders !== null && authHeaders !== void 0 ? authHeaders : {}) },
|