@gooddata/sdk-backend-tiger 11.53.0-alpha.1 → 11.53.0-alpha.3
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/esm/__version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "11.53.0-alpha.
|
|
1
|
+
export declare const LIB_VERSION = "11.53.0-alpha.3";
|
|
2
2
|
export declare const LIB_DESCRIPTION = "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN";
|
|
3
3
|
export declare const LIB_NAME = "@gooddata/sdk-backend-tiger";
|
|
4
4
|
//# sourceMappingURL=__version.d.ts.map
|
package/esm/__version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2021 GoodData Corporation
|
|
2
2
|
// DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
|
|
3
|
-
export const LIB_VERSION = "11.53.0-alpha.
|
|
3
|
+
export const LIB_VERSION = "11.53.0-alpha.3";
|
|
4
4
|
export const LIB_DESCRIPTION = "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN";
|
|
5
5
|
export const LIB_NAME = "@gooddata/sdk-backend-tiger";
|
|
@@ -437,6 +437,9 @@ function convertUserContext(userContext) {
|
|
|
437
437
|
...(userContext.view.dashboard.title
|
|
438
438
|
? { title: userContext.view.dashboard.title }
|
|
439
439
|
: {}),
|
|
440
|
+
...(userContext.view.dashboard.activeTabId
|
|
441
|
+
? { activeTabId: userContext.view.dashboard.activeTabId }
|
|
442
|
+
: {}),
|
|
440
443
|
...(userContext.view.dashboard.filters?.length
|
|
441
444
|
? {
|
|
442
445
|
// Filter `title` is display-only (drives the context indicator);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genAIConvertor.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/genAIConvertor.ts"],"names":[],"mappings":"AAIA,OAAO,EAGH,KAAK,0BAA0B,EA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AC,WAAW,CAAC,GAAG,SAAS,EAC9D,cAAc,EAAE,cAAc,EAC9B,MAAM,CAAC,EAAE,gBAAgB,EACzB,QAAQ,CAAC,EAAE,MAAM,GAClB,qBAAqB,EAAE,CAMzB;AAoKD,wBAAgB,uCAAuC,CACnD,IAAI,EAAE,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,EACrE,OAAO,CAAC,EAAE,MAAM,GACjB,sBAAsB,CAQxB;AAED;;;GAGG;AACH,wBAAgB,iDAAiD,CAC7D,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,gCAAgC,CAgBlC;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,CACxD,MAAM,EAAE,gCAAgC,GAAG,IAAI,GAAG,SAAS,GAC5D,2BAA2B,GAAG,SAAS,CAgEzC;AA2FD,wBAAgB,oCAAoC,CAChD,IAAI,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GACvC,gBAAgB,CAQlB"}
|
|
@@ -108,11 +108,12 @@ function convertChatConversationContentFromBackend(content, dateNormalizer, loca
|
|
|
108
108
|
const dashboard = data
|
|
109
109
|
? convertDashboard(buildDashboardWrapper(data.dashboard, data.tabFilterContexts, part.saved_dashboard_id), filters)
|
|
110
110
|
: null;
|
|
111
|
+
const saved = !!part.saved_dashboard_id;
|
|
111
112
|
return {
|
|
112
113
|
type: "dashboard",
|
|
113
|
-
|
|
114
|
+
saved,
|
|
114
115
|
insights,
|
|
115
|
-
|
|
116
|
+
dashboard: convertToTemporaryFilterContexts(dashboard),
|
|
116
117
|
};
|
|
117
118
|
}
|
|
118
119
|
case "kda":
|
|
@@ -208,6 +209,18 @@ export function convertChatConversationInteractionStepFromBackend(step, traceId)
|
|
|
208
209
|
*/
|
|
209
210
|
export function convertChatConversationItemDetailFromBackend(detail) {
|
|
210
211
|
switch (detail?.category) {
|
|
212
|
+
case "applyMemory":
|
|
213
|
+
return {
|
|
214
|
+
category: "applyMemory",
|
|
215
|
+
durationMs: detail.durationMs ?? undefined,
|
|
216
|
+
items: (detail.items ?? []).map((item) => ({
|
|
217
|
+
title: item.title,
|
|
218
|
+
// The backend spells the strategy in upper case; the domain shape keeps the
|
|
219
|
+
// lower-case form the rest of the SDK uses for enum-like values.
|
|
220
|
+
strategy: item.strategy === "ALWAYS" ? "always" : "auto",
|
|
221
|
+
score: item.score ?? undefined,
|
|
222
|
+
})),
|
|
223
|
+
};
|
|
211
224
|
case "catalogSearch":
|
|
212
225
|
return {
|
|
213
226
|
category: "catalogSearch",
|
|
@@ -236,6 +249,17 @@ export function convertChatConversationItemDetailFromBackend(detail) {
|
|
|
236
249
|
})),
|
|
237
250
|
bestMatch: detail.bestMatch ?? undefined,
|
|
238
251
|
};
|
|
252
|
+
case "metricQuery":
|
|
253
|
+
return {
|
|
254
|
+
category: "metricQuery",
|
|
255
|
+
ref: detail.ref ?? undefined,
|
|
256
|
+
metrics: detail.metrics ?? [],
|
|
257
|
+
groupedBy: detail.groupedBy ?? [],
|
|
258
|
+
filteredBy: detail.filteredBy ?? [],
|
|
259
|
+
visualization: detail.visualization ?? undefined,
|
|
260
|
+
resultRows: detail.resultRows ?? undefined,
|
|
261
|
+
resultColumns: detail.resultColumns ?? undefined,
|
|
262
|
+
};
|
|
239
263
|
case "skillRouting":
|
|
240
264
|
return {
|
|
241
265
|
category: "skillRouting",
|
|
@@ -413,3 +437,35 @@ function buildDashboardWrapper(dashboard, tabFilterContexts = [], savedDashboard
|
|
|
413
437
|
},
|
|
414
438
|
};
|
|
415
439
|
}
|
|
440
|
+
function convertToTemporaryFilterContexts(dashboard) {
|
|
441
|
+
if (!dashboard) {
|
|
442
|
+
return null;
|
|
443
|
+
}
|
|
444
|
+
return {
|
|
445
|
+
...dashboard,
|
|
446
|
+
...asNonPersistedFilterContext(dashboard),
|
|
447
|
+
...(dashboard.tabs
|
|
448
|
+
? {
|
|
449
|
+
tabs: dashboard.tabs.map((tab) => ({
|
|
450
|
+
...tab,
|
|
451
|
+
...asNonPersistedFilterContext(tab),
|
|
452
|
+
})),
|
|
453
|
+
}
|
|
454
|
+
: {}),
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
function asNonPersistedFilterContext(fc) {
|
|
458
|
+
if (!fc.filterContext) {
|
|
459
|
+
return {};
|
|
460
|
+
}
|
|
461
|
+
return {
|
|
462
|
+
filterContext: {
|
|
463
|
+
title: "",
|
|
464
|
+
description: "",
|
|
465
|
+
...fc.filterContext,
|
|
466
|
+
ref: undefined,
|
|
467
|
+
identifier: undefined,
|
|
468
|
+
uri: undefined,
|
|
469
|
+
},
|
|
470
|
+
};
|
|
471
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-tiger",
|
|
3
|
-
"version": "11.53.0-alpha.
|
|
3
|
+
"version": "11.53.0-alpha.3",
|
|
4
4
|
"description": "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"ts-invariant": "0.10.3",
|
|
34
34
|
"tslib": "2.8.1",
|
|
35
35
|
"uuid": "11.1.1",
|
|
36
|
-
"@gooddata/
|
|
37
|
-
"@gooddata/
|
|
38
|
-
"@gooddata/sdk-
|
|
39
|
-
"@gooddata/sdk-
|
|
40
|
-
"@gooddata/sdk-model": "11.53.0-alpha.
|
|
41
|
-
"@gooddata/util": "11.53.0-alpha.
|
|
36
|
+
"@gooddata/sdk-backend-base": "11.53.0-alpha.3",
|
|
37
|
+
"@gooddata/api-client-tiger": "11.53.0-alpha.3",
|
|
38
|
+
"@gooddata/sdk-backend-spi": "11.53.0-alpha.3",
|
|
39
|
+
"@gooddata/sdk-code-convertors": "11.53.0-alpha.3",
|
|
40
|
+
"@gooddata/sdk-model": "11.53.0-alpha.3",
|
|
41
|
+
"@gooddata/util": "11.53.0-alpha.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@gooddata/fixtures": "3.7.0",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"oxlint-tsgolint": "0.15.0",
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
67
|
"vitest": "4.1.8",
|
|
68
|
-
"@gooddata/catalog-export": "11.53.0-alpha.
|
|
69
|
-
"@gooddata/eslint-config": "11.53.0-alpha.
|
|
70
|
-
"@gooddata/
|
|
71
|
-
"@gooddata/
|
|
68
|
+
"@gooddata/catalog-export": "11.53.0-alpha.3",
|
|
69
|
+
"@gooddata/eslint-config": "11.53.0-alpha.3",
|
|
70
|
+
"@gooddata/oxlint-config": "11.53.0-alpha.3",
|
|
71
|
+
"@gooddata/reference-workspace": "11.53.0-alpha.3"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"_phase:build": "npm run build",
|