@iblai/data-layer 1.33.0 → 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 +23 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +23 -15
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/analytics/__tests__/conversation-headline.test.d.ts +1 -0
- 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/src/features/core/__tests__/logo-endpoints.test.d.ts +1 -0
- package/dist/src/features/tenant-logo/__tests__/constants.test.d.ts +1 -0
- package/dist/src/features/tenant-logo/constants.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41923,8 +41923,8 @@ useGetLtiMentorsQuery, useGetLtiMentorDetailQuery, useCreateLtiMentorMutation, u
|
|
|
41923
41923
|
useGetLtiToolsQuery, useGetLtiToolDetailQuery, useCreateLtiToolMutation, useUpdateLtiToolMutation, useDeleteLtiToolMutation, } = coreApiSlice;
|
|
41924
41924
|
|
|
41925
41925
|
const LOGO_ENDPOINTS = {
|
|
41926
|
-
light_logo: (platformKey) => getServiceUrl(exports.SERVICES.AXD) + `/api/core/orgs/${platformKey}/logo
|
|
41927
|
-
dark_logo: (platformKey) => getServiceUrl(exports.SERVICES.AXD) + `/api/core/orgs/${platformKey}/dark-mode-logo
|
|
41926
|
+
light_logo: (platformKey) => getServiceUrl(exports.SERVICES.AXD) + `/api/core/orgs/${platformKey}/logo/`,
|
|
41927
|
+
dark_logo: (platformKey) => getServiceUrl(exports.SERVICES.AXD) + `/api/core/orgs/${platformKey}/dark-mode-logo/`,
|
|
41928
41928
|
};
|
|
41929
41929
|
const CORE_CUSTOM_REDUCER_PATH = 'coreCustomApiSlice';
|
|
41930
41930
|
const CORE_FAKE_CUSTOM_REDUCER_PATH = 'coreFakeCustomApiSlice';
|
|
@@ -43197,7 +43197,7 @@ const NON_AI_ANALYTICS_ENDPOINTS = {
|
|
|
43197
43197
|
},
|
|
43198
43198
|
GET_TRANSCRIPTS_CONVERSATION_HEADLINE: {
|
|
43199
43199
|
service: exports.SERVICES.DM,
|
|
43200
|
-
path: (args) => `/api/analytics/conversations
|
|
43200
|
+
path: (args) => `/api/analytics/conversations/?platform_key=${args.platform_key}${args.mentor_unique_id ? `&mentor_unique_id=${args.mentor_unique_id}` : ''}&metric=${args.metric}${args.date_filter ? `&date_filter=${args.date_filter}` : ''}${args.start_date ? `&start_date=${args.start_date}` : ''}${args.end_date ? `&end_date=${args.end_date}` : ''}`,
|
|
43201
43201
|
},
|
|
43202
43202
|
GET_CONTENT_ANALYTICS: {
|
|
43203
43203
|
service: exports.SERVICES.DM,
|
|
@@ -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 : {}) },
|
|
@@ -44723,28 +44731,28 @@ const artifactsApiSlice = react.createApi({
|
|
|
44723
44731
|
const { useListArtifactsQuery, useLazyListArtifactsQuery, useGetArtifactQuery, useLazyGetArtifactQuery, useUpdateArtifactMutation, useListArtifactVersionsQuery, useLazyListArtifactVersionsQuery, useGetArtifactVersionQuery, useLazyGetArtifactVersionQuery, useSetCurrentVersionMutation, } = artifactsApiSlice;
|
|
44724
44732
|
const artifactsApiReducer = artifactsApiSlice.reducer;
|
|
44725
44733
|
|
|
44726
|
-
const TENANT_LOGO_REDUCER_PATH =
|
|
44734
|
+
const TENANT_LOGO_REDUCER_PATH = 'tenantLogoApiSlice';
|
|
44727
44735
|
const TENANT_LOGO_QUERY_KEYS = {
|
|
44728
|
-
GET_LIGHT_LOGO: () => [
|
|
44729
|
-
GET_DARK_LOGO: () => [
|
|
44736
|
+
GET_LIGHT_LOGO: () => ['GET_LIGHT_LOGO'],
|
|
44737
|
+
GET_DARK_LOGO: () => ['GET_DARK_LOGO'],
|
|
44730
44738
|
};
|
|
44731
44739
|
const TENANT_LOGO_ENDPOINTS = {
|
|
44732
44740
|
GET_LIGHT_LOGO: {
|
|
44733
|
-
path: (platformKey) => `/api/core/orgs/${platformKey}/logo
|
|
44734
|
-
service: exports.SERVICES.AXD
|
|
44741
|
+
path: (platformKey) => `/api/core/orgs/${platformKey}/logo/`,
|
|
44742
|
+
service: exports.SERVICES.AXD,
|
|
44735
44743
|
},
|
|
44736
44744
|
GET_DARK_LOGO: {
|
|
44737
|
-
path: (platformKey) => `/api/core/orgs/${platformKey}/dark-mode-logo
|
|
44738
|
-
service: exports.SERVICES.AXD
|
|
44745
|
+
path: (platformKey) => `/api/core/orgs/${platformKey}/dark-mode-logo/`,
|
|
44746
|
+
service: exports.SERVICES.AXD,
|
|
44739
44747
|
},
|
|
44740
44748
|
UPLOAD_LIGHT_LOGO: {
|
|
44741
44749
|
path: (platformKey) => `/api/core/orgs/${platformKey}/logo/create/`,
|
|
44742
|
-
service: exports.SERVICES.AXD
|
|
44750
|
+
service: exports.SERVICES.AXD,
|
|
44743
44751
|
},
|
|
44744
44752
|
UPLOAD_DARK_LOGO: {
|
|
44745
44753
|
path: (platformKey) => `/api/core/orgs/${platformKey}/dark-mode-logo/create/`,
|
|
44746
|
-
service: exports.SERVICES.AXD
|
|
44747
|
-
}
|
|
44754
|
+
service: exports.SERVICES.AXD,
|
|
44755
|
+
},
|
|
44748
44756
|
};
|
|
44749
44757
|
|
|
44750
44758
|
const tenantLogoApiSlice = react.createApi({
|