@sisense/sdk-ui 1.0.0 → 1.2.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/ai/api/chat-rest-api.d.ts +2 -2
- package/dist/ai/api/hooks.d.ts +2 -2
- package/dist/ai/api/types.d.ts +21 -21
- package/dist/ai/messages/get-widget-options.d.ts +3 -3
- package/dist/ai.js +690 -683
- package/dist/api/rest-api.d.ts +9 -0
- package/dist/app/client-application.d.ts +5 -0
- package/dist/app/settings/settings.d.ts +2 -1
- package/dist/areamap-chart.d.ts +25 -0
- package/dist/boxplot-chart.d.ts +0 -2
- package/dist/chart-data/areamap-data.d.ts +4 -0
- package/dist/chart-data/data-coloring/geo-data-coloring-function.d.ts +2 -0
- package/dist/chart-data/types.d.ts +32 -3
- package/dist/chart-data-options/get-translated-data-options.d.ts +2 -2
- package/dist/chart-data-options/translate-scattermap-data-options.d.ts +1 -1
- package/dist/chart-data-options/types.d.ts +25 -5
- package/dist/chart-options-processor/boxplot-chart-options.d.ts +2 -1
- package/dist/chart-options-processor/chart-options-service.d.ts +3 -1
- package/dist/chart-options-processor/style-to-design-options-translator/translate-to-areamap-options.d.ts +3 -0
- package/dist/chart-options-processor/subtype-to-design-options.d.ts +4 -1
- package/dist/chart-options-processor/translations/boxplot/boxplot-tooltip.d.ts +2 -1
- package/dist/chart-options-processor/translations/design-options.d.ts +7 -1
- package/dist/chart-options-processor/translations/types.d.ts +7 -3
- package/dist/charts/map-charts/areamap/alternative-country-names-dictionary.d.ts +9 -0
- package/dist/charts/map-charts/areamap/areamap-map.d.ts +16 -0
- package/dist/charts/map-charts/areamap/areamap.d.ts +16 -0
- package/dist/charts/map-charts/areamap/feature-styles-dictionary.d.ts +16 -0
- package/dist/charts/map-charts/areamap/use-geo-json.d.ts +9 -0
- package/dist/charts/map-charts/scattermap/hooks/use-locations.d.ts +3 -0
- package/dist/charts/{scattermap → map-charts/scattermap}/hooks/use-tooltip-handler.d.ts +2 -2
- package/dist/charts/{scattermap → map-charts/scattermap}/scattermap.d.ts +3 -3
- package/dist/charts/map-charts/scattermap/utils/color.d.ts +3 -0
- package/dist/charts/{scattermap → map-charts/scattermap}/utils/location.d.ts +1 -1
- package/dist/charts/{scattermap → map-charts/scattermap}/utils/markers.d.ts +1 -1
- package/dist/charts/{scattermap → map-charts/scattermap}/utils/size.d.ts +1 -1
- package/dist/charts/{scattermap → map-charts/scattermap}/utils/tooltip.d.ts +2 -2
- package/dist/dashboard-widget/types.d.ts +5 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +13318 -7328
- package/dist/props.d.ts +19 -2
- package/dist/query/execute-query.d.ts +17 -2
- package/dist/query-execution/index.d.ts +2 -1
- package/dist/query-execution/pivot-query-state-reducer.d.ts +2 -0
- package/dist/query-execution/types.d.ts +134 -1
- package/dist/query-execution/use-execute-pivot-query.d.ts +54 -0
- package/dist/scattermap-chart.d.ts +0 -2
- package/dist/table-widget-65f3e04e.js +77762 -0
- package/dist/translation/resources/en.d.ts +10 -0
- package/dist/translation/resources/index.d.ts +20 -0
- package/dist/types.d.ts +17 -5
- package/dist/utils/filters-comparator.d.ts +13 -1
- package/dist/widgets/common/custom-drilldown.d.ts +3 -0
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/package.json +10 -6
- package/dist/charts/scattermap/hooks/use-locations.d.ts +0 -3
- package/dist/charts/scattermap/utils/color.d.ts +0 -3
- package/dist/table-widget-7936746a.js +0 -72481
- /package/dist/charts/{scattermap → map-charts/scattermap}/hooks/use-settings.d.ts +0 -0
- /package/dist/charts/{scattermap → map-charts/scattermap}/types.d.ts +0 -0
- /package/dist/charts/{scattermap → map-charts/scattermap}/utils/copyright.d.ts +0 -0
- /package/dist/charts/{scattermap → map-charts/scattermap}/utils/map.d.ts +0 -0
- /package/dist/charts/{scattermap → map-charts/scattermap}/utils/values.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
-
import type { Chat, ChatRequest, ChatResponse, ChatWithoutHistory, DataModel, GetNlgQueryResultRequest, GetNlgQueryResultResponse, LlmConfig, Perspective, QueryRecommendationResponse } from './types';
|
|
2
|
+
import type { Chat, ChatRequest, ChatResponse, ChatWithoutHistory, DataModel, GetNlgQueryResultRequest, GetNlgQueryResultResponse, LlmConfig, Perspective, QueryRecommendationConfig, QueryRecommendationResponse } from './types';
|
|
3
3
|
export declare class ChatRestApi {
|
|
4
4
|
private httpClient;
|
|
5
5
|
constructor(httpClient: HttpClient);
|
|
@@ -15,7 +15,7 @@ export declare class ChatRestApi {
|
|
|
15
15
|
private deleteChatHistory;
|
|
16
16
|
ai: {
|
|
17
17
|
getNlgQueryResult: (request: GetNlgQueryResultRequest) => Promise<GetNlgQueryResultResponse>;
|
|
18
|
-
getQueryRecommendations: (
|
|
18
|
+
getQueryRecommendations: (contextTitle: string, config: QueryRecommendationConfig) => Promise<QueryRecommendationResponse>;
|
|
19
19
|
setLlmConfig: (config: LlmConfig) => Promise<unknown>;
|
|
20
20
|
chat: {
|
|
21
21
|
getAll: () => Promise<ChatWithoutHistory[]>;
|
package/dist/ai/api/hooks.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export declare const useChat: (id: string | undefined) => {
|
|
|
28
28
|
* @internal
|
|
29
29
|
*/
|
|
30
30
|
export interface UseGetQueryRecommendationsParams {
|
|
31
|
-
/** Data model or perspective
|
|
32
|
-
|
|
31
|
+
/** Data model title or perspective title */
|
|
32
|
+
contextTitle: string;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Fetch recommended questions for a data model or perspective.
|
package/dist/ai/api/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MetadataItem } from '@sisense/sdk-query-client';
|
|
2
|
+
import { ChartDataOptions } from '../../types';
|
|
2
3
|
export interface ChatContext {
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
@@ -55,20 +56,13 @@ interface TextResponse {
|
|
|
55
56
|
chatId: string;
|
|
56
57
|
responseType: 'Text';
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
type: string;
|
|
66
|
-
}[];
|
|
67
|
-
breakBy?: {
|
|
68
|
-
name: string;
|
|
69
|
-
type: string;
|
|
70
|
-
}[];
|
|
71
|
-
}
|
|
59
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
60
|
+
type AllPossibleChartOptionKeys = KeysOfUnion<ChartDataOptions>;
|
|
61
|
+
type AxesMappingKey = Exclude<AllPossibleChartOptionKeys, 'seriesToColorMap'>;
|
|
62
|
+
export type AxesMapping = Partial<Record<AxesMappingKey, Array<{
|
|
63
|
+
name: string;
|
|
64
|
+
type: string;
|
|
65
|
+
}>>>;
|
|
72
66
|
export interface ChartRecommendations {
|
|
73
67
|
chartFamily: string;
|
|
74
68
|
chartType: string;
|
|
@@ -93,16 +87,22 @@ export interface NlqResponse {
|
|
|
93
87
|
responseType: 'nlq';
|
|
94
88
|
}
|
|
95
89
|
export type ChatResponse = NlqResponse | TextResponse;
|
|
96
|
-
export interface
|
|
97
|
-
|
|
98
|
-
jaql: object;
|
|
90
|
+
export interface QueryRecommendationConfig {
|
|
91
|
+
numOfRecommendations: number;
|
|
99
92
|
}
|
|
100
|
-
export interface
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
export interface QueryRecommendation {
|
|
94
|
+
nlqPrompt: string;
|
|
95
|
+
chartRecommendations: ChartRecommendations;
|
|
96
|
+
jaql: {
|
|
97
|
+
datasource?: {
|
|
98
|
+
title: string;
|
|
99
|
+
};
|
|
100
|
+
metadata: MetadataItem[];
|
|
103
101
|
};
|
|
104
|
-
|
|
102
|
+
queryTitle: string;
|
|
103
|
+
detailedDescription: string;
|
|
105
104
|
}
|
|
105
|
+
export type QueryRecommendationResponse = QueryRecommendation[];
|
|
106
106
|
export interface DataModel {
|
|
107
107
|
oid: string;
|
|
108
108
|
title: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MetadataItem } from '@sisense/sdk-query-client';
|
|
2
|
-
import {
|
|
2
|
+
import { ChartDataOptions, ChartStyleOptions } from '../../types';
|
|
3
3
|
import { ChartRecommendations } from '../api/types';
|
|
4
4
|
export declare const getTableOptions: (jaql: MetadataItem[]) => {
|
|
5
5
|
dataOptions: {
|
|
6
6
|
columns: import("./jaql-element").JaqlElement[];
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
export declare const getChartOptions: (jaql: MetadataItem[],
|
|
10
|
-
dataOptions:
|
|
9
|
+
export declare const getChartOptions: (jaql: MetadataItem[], chartRecommendations: ChartRecommendations) => {
|
|
10
|
+
dataOptions: ChartDataOptions;
|
|
11
11
|
chartStyleOptions: ChartStyleOptions;
|
|
12
12
|
expandedChartStyleOptions: ChartStyleOptions;
|
|
13
13
|
};
|