@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.d.ts
CHANGED
|
@@ -72778,6 +72778,12 @@ declare const useGetLlmUsageObservationsQuery: <R extends Record<string, any> =
|
|
|
72778
72778
|
|
|
72779
72779
|
type DownloadReportArgs = {
|
|
72780
72780
|
url: string;
|
|
72781
|
+
/**
|
|
72782
|
+
* CSV only. Sets the download's `clean` param: `true` for the readable
|
|
72783
|
+
* format (line breaks kept in cells), `false` for raw. Omit to use the
|
|
72784
|
+
* platform default.
|
|
72785
|
+
*/
|
|
72786
|
+
clean?: boolean;
|
|
72781
72787
|
};
|
|
72782
72788
|
type DownloadReportTrigger = (args: DownloadReportArgs) => {
|
|
72783
72789
|
unwrap: () => Promise<Blob>;
|
package/dist/index.esm.js
CHANGED
|
@@ -41921,8 +41921,8 @@ useGetLtiMentorsQuery, useGetLtiMentorDetailQuery, useCreateLtiMentorMutation, u
|
|
|
41921
41921
|
useGetLtiToolsQuery, useGetLtiToolDetailQuery, useCreateLtiToolMutation, useUpdateLtiToolMutation, useDeleteLtiToolMutation, } = coreApiSlice;
|
|
41922
41922
|
|
|
41923
41923
|
const LOGO_ENDPOINTS = {
|
|
41924
|
-
light_logo: (platformKey) => getServiceUrl(SERVICES.AXD) + `/api/core/orgs/${platformKey}/logo
|
|
41925
|
-
dark_logo: (platformKey) => getServiceUrl(SERVICES.AXD) + `/api/core/orgs/${platformKey}/dark-mode-logo
|
|
41924
|
+
light_logo: (platformKey) => getServiceUrl(SERVICES.AXD) + `/api/core/orgs/${platformKey}/logo/`,
|
|
41925
|
+
dark_logo: (platformKey) => getServiceUrl(SERVICES.AXD) + `/api/core/orgs/${platformKey}/dark-mode-logo/`,
|
|
41926
41926
|
};
|
|
41927
41927
|
const CORE_CUSTOM_REDUCER_PATH = 'coreCustomApiSlice';
|
|
41928
41928
|
const CORE_FAKE_CUSTOM_REDUCER_PATH = 'coreFakeCustomApiSlice';
|
|
@@ -43195,7 +43195,7 @@ const NON_AI_ANALYTICS_ENDPOINTS = {
|
|
|
43195
43195
|
},
|
|
43196
43196
|
GET_TRANSCRIPTS_CONVERSATION_HEADLINE: {
|
|
43197
43197
|
service: SERVICES.DM,
|
|
43198
|
-
path: (args) => `/api/analytics/conversations
|
|
43198
|
+
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}` : ''}`,
|
|
43199
43199
|
},
|
|
43200
43200
|
GET_CONTENT_ANALYTICS: {
|
|
43201
43201
|
service: SERVICES.DM,
|
|
@@ -43639,11 +43639,19 @@ useGetFinancialStatsQuery,
|
|
|
43639
43639
|
*/
|
|
43640
43640
|
useGetDetailedFinancialStatsQuery, useGetTranscriptsMessagesQuery, useGetTranscriptsMessagesDetailsQuery, useTimeTrackingMutation, useGetTranscriptsConversationHeadlineQuery, useGetContentAnalyticsQuery, useGetContentAnalyticsDetailsQuery, useGetLearnerDetailsQuery, useGetLlmUsageMetricsQuery, useGetLlmUsageTracesQuery, useGetLlmUsageObservationsQuery, } = analyticsApiSlice;
|
|
43641
43641
|
|
|
43642
|
+
const withCleanParam = (url, clean) => {
|
|
43643
|
+
var _a;
|
|
43644
|
+
if (clean === undefined)
|
|
43645
|
+
return url;
|
|
43646
|
+
const parsed = new URL(url, (_a = globalThis.location) === null || _a === void 0 ? void 0 : _a.href);
|
|
43647
|
+
parsed.searchParams.set('clean', String(clean));
|
|
43648
|
+
return parsed.toString();
|
|
43649
|
+
};
|
|
43642
43650
|
const useLazyGetDownloadReportFromURLQuery = () => {
|
|
43643
|
-
const fetchReportBlob = useCallback(({ url }) => {
|
|
43651
|
+
const fetchReportBlob = useCallback(({ url, clean }) => {
|
|
43644
43652
|
const promise = (async () => {
|
|
43645
43653
|
const authHeaders = await getHeaders(SERVICES.DM);
|
|
43646
|
-
const response = await fetch(url, {
|
|
43654
|
+
const response = await fetch(withCleanParam(url, clean), {
|
|
43647
43655
|
method: 'GET',
|
|
43648
43656
|
credentials: 'omit',
|
|
43649
43657
|
headers: { ...(authHeaders !== null && authHeaders !== void 0 ? authHeaders : {}) },
|
|
@@ -44721,28 +44729,28 @@ const artifactsApiSlice = createApi({
|
|
|
44721
44729
|
const { useListArtifactsQuery, useLazyListArtifactsQuery, useGetArtifactQuery, useLazyGetArtifactQuery, useUpdateArtifactMutation, useListArtifactVersionsQuery, useLazyListArtifactVersionsQuery, useGetArtifactVersionQuery, useLazyGetArtifactVersionQuery, useSetCurrentVersionMutation, } = artifactsApiSlice;
|
|
44722
44730
|
const artifactsApiReducer = artifactsApiSlice.reducer;
|
|
44723
44731
|
|
|
44724
|
-
const TENANT_LOGO_REDUCER_PATH =
|
|
44732
|
+
const TENANT_LOGO_REDUCER_PATH = 'tenantLogoApiSlice';
|
|
44725
44733
|
const TENANT_LOGO_QUERY_KEYS = {
|
|
44726
|
-
GET_LIGHT_LOGO: () => [
|
|
44727
|
-
GET_DARK_LOGO: () => [
|
|
44734
|
+
GET_LIGHT_LOGO: () => ['GET_LIGHT_LOGO'],
|
|
44735
|
+
GET_DARK_LOGO: () => ['GET_DARK_LOGO'],
|
|
44728
44736
|
};
|
|
44729
44737
|
const TENANT_LOGO_ENDPOINTS = {
|
|
44730
44738
|
GET_LIGHT_LOGO: {
|
|
44731
|
-
path: (platformKey) => `/api/core/orgs/${platformKey}/logo
|
|
44732
|
-
service: SERVICES.AXD
|
|
44739
|
+
path: (platformKey) => `/api/core/orgs/${platformKey}/logo/`,
|
|
44740
|
+
service: SERVICES.AXD,
|
|
44733
44741
|
},
|
|
44734
44742
|
GET_DARK_LOGO: {
|
|
44735
|
-
path: (platformKey) => `/api/core/orgs/${platformKey}/dark-mode-logo
|
|
44736
|
-
service: SERVICES.AXD
|
|
44743
|
+
path: (platformKey) => `/api/core/orgs/${platformKey}/dark-mode-logo/`,
|
|
44744
|
+
service: SERVICES.AXD,
|
|
44737
44745
|
},
|
|
44738
44746
|
UPLOAD_LIGHT_LOGO: {
|
|
44739
44747
|
path: (platformKey) => `/api/core/orgs/${platformKey}/logo/create/`,
|
|
44740
|
-
service: SERVICES.AXD
|
|
44748
|
+
service: SERVICES.AXD,
|
|
44741
44749
|
},
|
|
44742
44750
|
UPLOAD_DARK_LOGO: {
|
|
44743
44751
|
path: (platformKey) => `/api/core/orgs/${platformKey}/dark-mode-logo/create/`,
|
|
44744
|
-
service: SERVICES.AXD
|
|
44745
|
-
}
|
|
44752
|
+
service: SERVICES.AXD,
|
|
44753
|
+
},
|
|
44746
44754
|
};
|
|
44747
44755
|
|
|
44748
44756
|
const tenantLogoApiSlice = createApi({
|