@gooddata/sdk-backend-tiger 11.36.0-alpha.2 → 11.36.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 +1 -1
- package/esm/__version.js +1 -1
- package/esm/backend/features/feature.js +0 -1
- package/esm/backend/uiFeatures.d.ts +0 -3
- package/esm/backend/uiFeatures.js +0 -3
- package/esm/backend/workspace/genAI/ChatConversations.d.ts +2 -2
- package/esm/backend/workspace/genAI/ChatConversations.js +1 -6
- package/esm/convertors/fromBackend/genAIConvertor.d.ts +3 -16
- package/esm/convertors/fromBackend/genAIConvertor.js +2 -2
- package/package.json +11 -11
package/esm/__version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "11.36.0-alpha.
|
|
1
|
+
export declare const LIB_VERSION = "11.36.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";
|
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.36.0-alpha.
|
|
3
|
+
export const LIB_VERSION = "11.36.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";
|
|
@@ -143,7 +143,6 @@ export function mapFeatures(features) {
|
|
|
143
143
|
...loadFeature(features, TigerFeaturesNames.EnableGenAiVisualizationSummarySkill, "enableGenAiVisualizationSummarySkill", "BOOLEAN", FeatureFlagsValues.enableGenAiVisualizationSummarySkill),
|
|
144
144
|
...loadFeature(features, TigerFeaturesNames.EnableGenAiAgenticDataShareOptOut, "enableGenAiAgenticDataShareOptOut", "BOOLEAN", FeatureFlagsValues.enableGenAiAgenticDataShareOptOut),
|
|
145
145
|
...loadFeature(features, TigerFeaturesNames.AIChatSearchLimit, "aiChatSearchLimit", "NUMBER", FeatureFlagsValues.aiChatSearchLimit),
|
|
146
|
-
...loadFeature(features, TigerFeaturesNames.EnableEmptyDateValuesFilter, "enableEmptyDateValuesFilter", "BOOLEAN", FeatureFlagsValues.enableEmptyDateValuesFilter),
|
|
147
146
|
...loadFeature(features, TigerFeaturesNames.EnableKDEmptyDateValuesFilter, "enableKDEmptyDateValuesFilter", "BOOLEAN", FeatureFlagsValues.enableKDEmptyDateValuesFilter),
|
|
148
147
|
...loadFeature(features, TigerFeaturesNames.EnableRichTextWidgetFilterConfiguration, "enableRichTextWidgetFilterConfiguration", "BOOLEAN", FeatureFlagsValues.enableRichTextWidgetFilterConfiguration),
|
|
149
148
|
...loadFeature(features, TigerFeaturesNames.EnableDashboardSectionHeadersDateDataSet, "enableDashboardSectionHeadersDateDataSet", "BOOLEAN", FeatureFlagsValues.enableDashboardSectionHeadersDateDataSet),
|
|
@@ -142,7 +142,6 @@ export declare enum TigerFeaturesNames {
|
|
|
142
142
|
EnableGenAiAgenticDataShareOptOut = "enableGenAiAgenticDataShareOptOut",
|
|
143
143
|
EnableGenAiVisualizationSummarySkill = "enableGenAiVisualizationSummarySkill",
|
|
144
144
|
AIChatSearchLimit = "aiChatSearchLimit",
|
|
145
|
-
EnableEmptyDateValuesFilter = "enableEmptyDateValuesFilter",
|
|
146
145
|
EnableKDEmptyDateValuesFilter = "enableKDEmptyDateValuesFilter",
|
|
147
146
|
EnableRichTextWidgetFilterConfiguration = "enableRichTextWidgetFilterConfiguration",
|
|
148
147
|
EnableDashboardSectionHeadersDateDataSet = "enableDashboardSectionHeadersDateDataSet",
|
|
@@ -308,7 +307,6 @@ export type ITigerFeatureFlags = {
|
|
|
308
307
|
enableAiAgenticMultiConversations: (typeof FeatureFlagsValues)["enableAiAgenticMultiConversations"][number];
|
|
309
308
|
enableGenAIReasoningVisibility: (typeof FeatureFlagsValues)["enableGenAIReasoningVisibility"][number];
|
|
310
309
|
aiChatSearchLimit: (typeof FeatureFlagsValues)["aiChatSearchLimit"][number];
|
|
311
|
-
enableEmptyDateValuesFilter: (typeof FeatureFlagsValues)["enableEmptyDateValuesFilter"][number];
|
|
312
310
|
enableKDEmptyDateValuesFilter: (typeof FeatureFlagsValues)["enableKDEmptyDateValuesFilter"][number];
|
|
313
311
|
enableRichTextWidgetFilterConfiguration: (typeof FeatureFlagsValues)["enableRichTextWidgetFilterConfiguration"][number];
|
|
314
312
|
enableDashboardSectionHeadersDateDataSet: (typeof FeatureFlagsValues)["enableDashboardSectionHeadersDateDataSet"][number];
|
|
@@ -478,7 +476,6 @@ export declare const FeatureFlagsValues: {
|
|
|
478
476
|
enableAiAgenticMultiConversations: readonly [true, false];
|
|
479
477
|
enableGenAIReasoningVisibility: readonly [false, true];
|
|
480
478
|
aiChatSearchLimit: readonly [undefined, number];
|
|
481
|
-
enableEmptyDateValuesFilter: readonly [true, false];
|
|
482
479
|
enableKDEmptyDateValuesFilter: readonly [true, false];
|
|
483
480
|
enableRichTextWidgetFilterConfiguration: readonly [true, false];
|
|
484
481
|
enableDashboardSectionHeadersDateDataSet: readonly [true, false];
|
|
@@ -146,7 +146,6 @@ var TigerFeaturesNames;
|
|
|
146
146
|
TigerFeaturesNames["EnableGenAiAgenticDataShareOptOut"] = "enableGenAiAgenticDataShareOptOut";
|
|
147
147
|
TigerFeaturesNames["EnableGenAiVisualizationSummarySkill"] = "enableGenAiVisualizationSummarySkill";
|
|
148
148
|
TigerFeaturesNames["AIChatSearchLimit"] = "aiChatSearchLimit";
|
|
149
|
-
TigerFeaturesNames["EnableEmptyDateValuesFilter"] = "enableEmptyDateValuesFilter";
|
|
150
149
|
TigerFeaturesNames["EnableKDEmptyDateValuesFilter"] = "enableKDEmptyDateValuesFilter";
|
|
151
150
|
TigerFeaturesNames["EnableRichTextWidgetFilterConfiguration"] = "enableRichTextWidgetFilterConfiguration";
|
|
152
151
|
TigerFeaturesNames["EnableDashboardSectionHeadersDateDataSet"] = "enableDashboardSectionHeadersDateDataSet";
|
|
@@ -312,7 +311,6 @@ export const DefaultFeatureFlags = {
|
|
|
312
311
|
enableAiAgenticMultiConversations: false,
|
|
313
312
|
enableGenAIReasoningVisibility: false,
|
|
314
313
|
aiChatSearchLimit: undefined,
|
|
315
|
-
enableEmptyDateValuesFilter: true,
|
|
316
314
|
enableKDEmptyDateValuesFilter: true,
|
|
317
315
|
enableRichTextWidgetFilterConfiguration: false,
|
|
318
316
|
enableDashboardSectionHeadersDateDataSet: false,
|
|
@@ -481,7 +479,6 @@ export const FeatureFlagsValues = {
|
|
|
481
479
|
enableAiAgenticMultiConversations: [true, false],
|
|
482
480
|
enableGenAIReasoningVisibility: [false, true],
|
|
483
481
|
aiChatSearchLimit: [undefined, {}],
|
|
484
|
-
enableEmptyDateValuesFilter: [true, false],
|
|
485
482
|
enableKDEmptyDateValuesFilter: [true, false],
|
|
486
483
|
enableRichTextWidgetFilterConfiguration: [true, false],
|
|
487
484
|
enableDashboardSectionHeadersDateDataSet: [true, false],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IChatConversation, type IChatConversationError, type IChatConversationItem, type IChatConversationItemsQuery, type IChatConversationItemsQueryResult, type IChatConversationThread, type IChatConversationThreadQuery, type IChatConversations
|
|
1
|
+
import { type IChatConversation, type IChatConversationError, type IChatConversationItem, type IChatConversationItemsQuery, type IChatConversationItemsQueryResult, type IChatConversationThread, type IChatConversationThreadQuery, type IChatConversations } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type GenAIChatInteractionUserFeedback, type GenAIObjectType, type IAllowedRelationshipType, type IGenAIUserContext } from "@gooddata/sdk-model";
|
|
3
3
|
import type { DateNormalizer } from "../../../convertors/fromBackend/dateFormatting/types.js";
|
|
4
4
|
import type { TigerAuthenticatedCallGuard } from "../../../types/index.js";
|
|
@@ -102,5 +102,5 @@ export declare class ChatConversationThreadQuery implements IChatConversationThr
|
|
|
102
102
|
query(options?: {
|
|
103
103
|
signal?: AbortSignal;
|
|
104
104
|
}): Promise<IChatConversationItem[]>;
|
|
105
|
-
stream(): ReadableStream<IChatConversationItem | IChatConversationError
|
|
105
|
+
stream(): ReadableStream<IChatConversationItem | IChatConversationError>;
|
|
106
106
|
}
|
|
@@ -3,7 +3,7 @@ import { EventSourceParserStream } from "eventsource-parser/stream";
|
|
|
3
3
|
import { GenAiApi_DeleteConversation, GenAiApi_GetConversation, GenAiApi_GetConversationItems, GenAiApi_GetConversationResponses, GenAiApi_GetConversations, GenAiApi_PatchConversation, GenAiApi_PatchVisualization, GenAiApi_PostConversationFeedback, GenAiApi_PostConversations, GenAiApi_PostGenerateConversationTitle, GenAiApi_PostMessages, } from "@gooddata/api-client-tiger/endpoints/genAI";
|
|
4
4
|
import { ServerPaging } from "@gooddata/sdk-backend-base";
|
|
5
5
|
import { objRefToString, } from "@gooddata/sdk-model";
|
|
6
|
-
import { convertChatConversationErrorFromBackend, convertChatConversationFromBackend, convertChatConversationItemFromBackend,
|
|
6
|
+
import { convertChatConversationErrorFromBackend, convertChatConversationFromBackend, convertChatConversationItemFromBackend, } from "../../../convertors/fromBackend/genAIConvertor.js";
|
|
7
7
|
/**
|
|
8
8
|
* Chat conversations service.
|
|
9
9
|
* @beta
|
|
@@ -389,11 +389,6 @@ class ServerSentEventsDataConverter extends TransformStream {
|
|
|
389
389
|
else if (event.type === "item" && "item" in event.data) {
|
|
390
390
|
controller.enqueue(convertChatConversationItemFromBackend(event.data.item, undefined, dateNormalizer, locale, timezone));
|
|
391
391
|
}
|
|
392
|
-
else if (event.type === "response_ended" && event.data) {
|
|
393
|
-
if ("suggestions" in event.data) {
|
|
394
|
-
controller.enqueue(convertChatSuggestionItemFromBackend(event.data.suggestions));
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
392
|
},
|
|
398
393
|
});
|
|
399
394
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AiConversationItemResponse, type AiConversationResponse, type AiConversationResponseList } from "@gooddata/api-client-tiger";
|
|
2
|
-
import { type IChatConversation, type IChatConversationError, type IChatConversationItem, type
|
|
1
|
+
import { type AiConversationItemResponse, type AiConversationResponse, type AiConversationResponseList, type AiSuggestions } from "@gooddata/api-client-tiger";
|
|
2
|
+
import { type IChatConversation, type IChatConversationError, type IChatConversationItem, type IChatSuggestions } from "@gooddata/sdk-backend-spi";
|
|
3
3
|
import type { FormattingLocale } from "./dateFormatting/defaultDateFormatter.js";
|
|
4
4
|
import { type DateNormalizer } from "./dateFormatting/types.js";
|
|
5
5
|
export declare function convertChatConversationFromBackend(conversation: AiConversationResponse): IChatConversation;
|
|
@@ -9,17 +9,4 @@ export declare function convertChatConversationErrorFromBackend(item: Partial<{
|
|
|
9
9
|
detail: string;
|
|
10
10
|
reason: string;
|
|
11
11
|
}>, traceId?: string): IChatConversationError;
|
|
12
|
-
|
|
13
|
-
* Represents AI-generated suggestions, which may include a follow-up question
|
|
14
|
-
* and a list of actions with associated labels and queries.
|
|
15
|
-
*
|
|
16
|
-
* TODO: This is mock types, must be loaded from openapi when will be ready
|
|
17
|
-
*/
|
|
18
|
-
export type AiSuggestions = {
|
|
19
|
-
followUpQuestion?: string;
|
|
20
|
-
actions?: {
|
|
21
|
-
label: string;
|
|
22
|
-
query: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
export declare function convertChatSuggestionItemFromBackend(item: AiSuggestions | undefined): IChatSuggestionsItem;
|
|
12
|
+
export declare function convertChatSuggestionItemFromBackend(item: AiSuggestions | null | undefined): IChatSuggestions;
|
|
@@ -90,6 +90,7 @@ function convertChatConversationContentFromBackend(content, dateNormalizer, loca
|
|
|
90
90
|
throw new Error(`Unexpected part: ${JSON.stringify(part)}`);
|
|
91
91
|
}
|
|
92
92
|
}),
|
|
93
|
+
suggestions: convertChatSuggestionItemFromBackend(content.suggestions),
|
|
93
94
|
};
|
|
94
95
|
case "toolCall":
|
|
95
96
|
return {
|
|
@@ -192,8 +193,7 @@ function convertSearchRelationships(relationships) {
|
|
|
192
193
|
}
|
|
193
194
|
export function convertChatSuggestionItemFromBackend(item) {
|
|
194
195
|
return {
|
|
195
|
-
|
|
196
|
-
followUp: item?.followUpQuestion,
|
|
196
|
+
followUpQuestion: item?.followUpQuestion,
|
|
197
197
|
actions: item?.actions?.map((action) => ({
|
|
198
198
|
label: action.label,
|
|
199
199
|
query: action.query,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-tiger",
|
|
3
|
-
"version": "11.36.0-alpha.
|
|
3
|
+
"version": "11.36.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.0",
|
|
36
|
-
"@gooddata/
|
|
37
|
-
"@gooddata/sdk-backend-spi": "11.36.0-alpha.
|
|
38
|
-
"@gooddata/sdk-
|
|
39
|
-
"@gooddata/
|
|
40
|
-
"@gooddata/sdk-model": "11.36.0-alpha.
|
|
41
|
-
"@gooddata/util": "11.36.0-alpha.
|
|
36
|
+
"@gooddata/api-client-tiger": "11.36.0-alpha.3",
|
|
37
|
+
"@gooddata/sdk-backend-spi": "11.36.0-alpha.3",
|
|
38
|
+
"@gooddata/sdk-backend-base": "11.36.0-alpha.3",
|
|
39
|
+
"@gooddata/sdk-code-convertors": "11.36.0-alpha.3",
|
|
40
|
+
"@gooddata/sdk-model": "11.36.0-alpha.3",
|
|
41
|
+
"@gooddata/util": "11.36.0-alpha.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@gooddata/fixtures": "3.3.12",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"oxlint-tsgolint": "0.11.4",
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
67
|
"vitest": "4.1.0",
|
|
68
|
-
"@gooddata/
|
|
69
|
-
"@gooddata/eslint-config": "11.36.0-alpha.
|
|
70
|
-
"@gooddata/
|
|
71
|
-
"@gooddata/reference-workspace": "11.36.0-alpha.
|
|
68
|
+
"@gooddata/catalog-export": "11.36.0-alpha.3",
|
|
69
|
+
"@gooddata/eslint-config": "11.36.0-alpha.3",
|
|
70
|
+
"@gooddata/oxlint-config": "11.36.0-alpha.3",
|
|
71
|
+
"@gooddata/reference-workspace": "11.36.0-alpha.3"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"_phase:build": "npm run build",
|