@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.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 : {}) },