@gooddata/sdk-backend-tiger 11.53.0-alpha.1 → 11.53.0-alpha.2
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.2";
|
|
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.2";
|
|
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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genAIConvertor.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/genAIConvertor.ts"],"names":[],"mappings":"AAIA,OAAO,EAGH,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAE/B,KAAK,yBAAyB,EAI9B,KAAK,aAAa,EAQrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,KAAK,iBAAiB,EAEtB,KAAK,sBAAsB,EAE3B,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAGhC,KAAK,gBAAgB,EAExB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
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AAO,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,CA+DzC;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,17 @@ 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
|
+
items: (detail.items ?? []).map((item) => ({
|
|
216
|
+
title: item.title,
|
|
217
|
+
// The backend spells the strategy in upper case; the domain shape keeps the
|
|
218
|
+
// lower-case form the rest of the SDK uses for enum-like values.
|
|
219
|
+
strategy: item.strategy === "ALWAYS" ? "always" : "auto",
|
|
220
|
+
score: item.score ?? undefined,
|
|
221
|
+
})),
|
|
222
|
+
};
|
|
211
223
|
case "catalogSearch":
|
|
212
224
|
return {
|
|
213
225
|
category: "catalogSearch",
|
|
@@ -236,6 +248,17 @@ export function convertChatConversationItemDetailFromBackend(detail) {
|
|
|
236
248
|
})),
|
|
237
249
|
bestMatch: detail.bestMatch ?? undefined,
|
|
238
250
|
};
|
|
251
|
+
case "metricQuery":
|
|
252
|
+
return {
|
|
253
|
+
category: "metricQuery",
|
|
254
|
+
ref: detail.ref ?? undefined,
|
|
255
|
+
metrics: detail.metrics ?? [],
|
|
256
|
+
groupedBy: detail.groupedBy ?? [],
|
|
257
|
+
filteredBy: detail.filteredBy ?? [],
|
|
258
|
+
visualization: detail.visualization ?? undefined,
|
|
259
|
+
resultRows: detail.resultRows ?? undefined,
|
|
260
|
+
resultColumns: detail.resultColumns ?? undefined,
|
|
261
|
+
};
|
|
239
262
|
case "skillRouting":
|
|
240
263
|
return {
|
|
241
264
|
category: "skillRouting",
|
|
@@ -413,3 +436,35 @@ function buildDashboardWrapper(dashboard, tabFilterContexts = [], savedDashboard
|
|
|
413
436
|
},
|
|
414
437
|
};
|
|
415
438
|
}
|
|
439
|
+
function convertToTemporaryFilterContexts(dashboard) {
|
|
440
|
+
if (!dashboard) {
|
|
441
|
+
return null;
|
|
442
|
+
}
|
|
443
|
+
return {
|
|
444
|
+
...dashboard,
|
|
445
|
+
...asNonPersistedFilterContext(dashboard),
|
|
446
|
+
...(dashboard.tabs
|
|
447
|
+
? {
|
|
448
|
+
tabs: dashboard.tabs.map((tab) => ({
|
|
449
|
+
...tab,
|
|
450
|
+
...asNonPersistedFilterContext(tab),
|
|
451
|
+
})),
|
|
452
|
+
}
|
|
453
|
+
: {}),
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
function asNonPersistedFilterContext(fc) {
|
|
457
|
+
if (!fc.filterContext) {
|
|
458
|
+
return {};
|
|
459
|
+
}
|
|
460
|
+
return {
|
|
461
|
+
filterContext: {
|
|
462
|
+
title: "",
|
|
463
|
+
description: "",
|
|
464
|
+
...fc.filterContext,
|
|
465
|
+
ref: undefined,
|
|
466
|
+
identifier: undefined,
|
|
467
|
+
uri: undefined,
|
|
468
|
+
},
|
|
469
|
+
};
|
|
470
|
+
}
|
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.2",
|
|
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/api-client-tiger": "11.53.0-alpha.
|
|
37
|
-
"@gooddata/sdk-backend-
|
|
38
|
-
"@gooddata/sdk-
|
|
39
|
-
"@gooddata/sdk-
|
|
40
|
-
"@gooddata/sdk-model": "11.53.0-alpha.
|
|
41
|
-
"@gooddata/util": "11.53.0-alpha.
|
|
36
|
+
"@gooddata/api-client-tiger": "11.53.0-alpha.2",
|
|
37
|
+
"@gooddata/sdk-backend-base": "11.53.0-alpha.2",
|
|
38
|
+
"@gooddata/sdk-backend-spi": "11.53.0-alpha.2",
|
|
39
|
+
"@gooddata/sdk-code-convertors": "11.53.0-alpha.2",
|
|
40
|
+
"@gooddata/sdk-model": "11.53.0-alpha.2",
|
|
41
|
+
"@gooddata/util": "11.53.0-alpha.2"
|
|
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.2",
|
|
69
|
+
"@gooddata/eslint-config": "11.53.0-alpha.2",
|
|
70
|
+
"@gooddata/oxlint-config": "11.53.0-alpha.2",
|
|
71
|
+
"@gooddata/reference-workspace": "11.53.0-alpha.2"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"_phase:build": "npm run build",
|