@vizzly/dashboard 0.7.0-dev.1 → 0.7.1-dev-08483fa16723f74be9fe469b259ba89d05efa8de
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/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +30 -48
- package/dist/dashboard/src/contexts/useDashboardStrategy.d.ts +1 -1
- package/dist/dashboard/src/types.d.ts +4 -9
- package/dist/index.js +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/SingleStat/toQueries.d.ts +1 -1
- package/dist/results-driver/src/index.d.ts +6 -5
- package/dist/shared-logic/src/AI/types.d.ts +12 -0
- package/dist/shared-logic/src/AreaChart/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/BarChart/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/BasicTable/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/ComboChart/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/Component/Component.d.ts +1 -3
- package/dist/shared-logic/src/Component/attributesSchema.d.ts +2 -2
- package/dist/shared-logic/src/Component/constants.d.ts +4 -0
- package/dist/shared-logic/src/Component/setAttributes.d.ts +2 -2
- package/dist/shared-logic/src/Component/sharedSchemas.d.ts +8 -7
- package/dist/shared-logic/src/Component/types.d.ts +30 -2
- package/dist/shared-logic/src/ComponentInterface/types.d.ts +3 -1
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +1 -1
- package/dist/shared-logic/src/DashboardAPI/dataSets.d.ts +17 -0
- package/dist/shared-logic/src/DataPanelConfig/types.d.ts +8 -1
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
- package/dist/shared-logic/src/DataTable/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/DataTable/types.d.ts +1 -0
- package/dist/shared-logic/src/Documentation/index.d.ts +1 -0
- package/dist/shared-logic/src/Documentation/joiToDocumentation.d.ts +1 -1
- package/dist/shared-logic/src/Documentation/joiToSchemaDefinition.d.ts +2 -0
- package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +5 -1
- package/dist/shared-logic/src/LineChart/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/MercatorMap/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/PieChart/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/Progress/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/Progress/index.d.ts +5 -0
- package/dist/shared-logic/src/Progress/types.d.ts +2 -0
- package/dist/shared-logic/src/Progress/utils.d.ts +2 -0
- package/dist/shared-logic/src/Query/validate.d.ts +6 -6
- package/dist/shared-logic/src/QueryEngine/types.d.ts +1 -0
- package/dist/shared-logic/src/ScatterChart/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/SingleStat/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/SingleStat/upcastSingleValueAttributes.d.ts +4 -0
- package/dist/shared-logic/src/Table/attributesSchema.d.ts +1 -1
- package/dist/shared-logic/src/Theme/types.d.ts +7 -0
- package/dist/shared-logic/src/VizzlyConfig/constants.d.ts +1 -0
- package/dist/shared-logic/src/VizzlyConfig/validate.d.ts +1 -1
- package/dist/shared-logic/src/api/httpClient.d.ts +1 -0
- package/dist/shared-logic/src/api/index.d.ts +9 -1
- package/dist/shared-logic/src/api/types.d.ts +1 -0
- package/dist/shared-logic/src/api/vizzly/askAi/types.d.ts +2 -5
- package/dist/shared-logic/src/api/vizzly/askAi/validateAndUpcast.d.ts +2 -3
- package/dist/shared-logic/src/api/vizzly/askAi.d.ts +9 -2
- package/dist/shared-logic/src/errors/CorruptedView.d.ts +1 -1
- package/dist/shared-logic/src/getComponentInterface.d.ts +1 -0
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -1
- package/dist/shared-ui/src/base/Label/Label.d.ts +1 -0
- package/dist/shared-ui/src/base/ListView/OptionIcon.d.ts +1 -0
- package/dist/shared-ui/src/base/Progress/Circular.d.ts +6 -0
- package/dist/shared-ui/src/base/Progress/Linear.d.ts +5 -0
- package/dist/shared-ui/src/base/Progress/Progress.d.ts +39 -0
- package/dist/shared-ui/src/base/Progress/shared.d.ts +2 -0
- package/dist/shared-ui/src/base/Table/Table.d.ts +2 -0
- package/dist/shared-ui/src/base/Table/Table.styles.d.ts +1 -1
- package/dist/shared-ui/src/base/Table/TableComponents.d.ts +2 -0
- package/dist/shared-ui/src/base/ValuesContainer/ValuesContainer.d.ts +18 -0
- package/dist/shared-ui/src/base/ValuesContainer/buildSingleValue.d.ts +10 -0
- package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -4
- package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -4
- package/dist/shared-ui/src/components/Component.d.ts +1 -0
- package/dist/shared-ui/src/components/DataTable/DataTableRow.d.ts +4 -1
- package/dist/shared-ui/src/components/DataTable/TableHeader.d.ts +2 -0
- package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +3 -2
- package/dist/shared-ui/src/components/DataTable/headerFormatting.d.ts +10 -0
- package/dist/shared-ui/src/components/Progress/Progress.d.ts +20 -0
- package/dist/shared-ui/src/components/Progress/ProgressView.d.ts +13 -0
- package/dist/shared-ui/src/components/Progress/index.d.ts +2 -0
- package/dist/shared-ui/src/components/SingleStat/SingleStatView.d.ts +1 -1
- package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +1 -0
- package/dist/shared-ui/src/contexts/DashboardBehaviour/numberFormatOptions.d.ts +1 -4
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +7 -2
- package/dist/shared-ui/src/hooks/useAi.d.ts +14 -0
- package/dist/shared-ui/src/library/ComponentIcons.d.ts +1 -0
- package/dist/shared-ui/src/library/DataPanel/MeasuresInput.d.ts +1 -0
- package/dist/shared-ui/src/library/DataPanel/Progress/ProgressInput.d.ts +14 -0
- package/dist/shared-ui/src/library/DataPanel/Progress/ProgressInput.test.d.ts +1 -0
- package/dist/shared-ui/src/library/DataPanel/Progress/ProgressModal.d.ts +9 -0
- package/dist/shared-ui/src/library/DataPanel/ProgressGoalsSection.d.ts +6 -0
- package/dist/shared-ui/src/library/ResizableRowCell.d.ts +1 -0
- package/dist/shared-ui/src/library/StylePanel/ProgressTypeSection.d.ts +6 -0
- package/dist/shared-ui/src/library/VizzlyAI.d.ts +1 -1
- package/dist/shared-ui/src/library/useHeight.d.ts +2 -0
- package/dist/shared-ui/src/styles/global.styles.d.ts +4 -0
- package/dist/shared-ui/src/withArgumentValidation.d.ts +1 -1
- package/package.json +5 -4
- package/dist/dashboard/src/properties/dataSets.d.ts +0 -5
- package/dist/shared-logic/src/SingleStat/upcastSingleStatAttributes.d.ts +0 -3
|
@@ -5,7 +5,7 @@ import { QueryAttributes } from '../../../../../shared-logic/src/QueryAttributes
|
|
|
5
5
|
import { QueryEngineConfig } from '../../../../../shared-logic/src/QueryEngineConfig/types';
|
|
6
6
|
import { Result as ResultType } from '../../../../../shared-logic/src/Result/types';
|
|
7
7
|
import { Query as QueryType } from '../../../../../shared-logic/src/Query/types';
|
|
8
|
-
export declare const toQueries: (attributes: Component.SingleStatAttributes, dataSet: DataSet, localAndGlobalFilters: QueryAttributes.Filter[], queryEngineConfig: QueryEngineConfig) => {
|
|
8
|
+
export declare const toQueries: (attributes: Component.SingleStatAttributes | Component.ProgressAttributes, dataSet: DataSet, localAndGlobalFilters: QueryAttributes.Filter[], queryEngineConfig: QueryEngineConfig) => {
|
|
9
9
|
queries: QueryType[];
|
|
10
10
|
resultFields: Array<ResultType.Field[]>;
|
|
11
11
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Driver, Params } from
|
|
2
|
-
import { Component } from
|
|
3
|
-
import { Result } from
|
|
4
|
-
import { AdditionalFilter } from
|
|
5
|
-
import { QueryAttributes } from
|
|
1
|
+
import { Driver, Params } from './types';
|
|
2
|
+
import { Component } from '../../shared-logic/src/Component/types';
|
|
3
|
+
import { Result } from '../../shared-logic/src/Result/types';
|
|
4
|
+
import { AdditionalFilter } from '../../shared-logic/src/AdditionalFilter/types';
|
|
5
|
+
import { QueryAttributes } from '../../shared-logic/src/QueryAttributes/types';
|
|
6
6
|
declare type resultReturn = Promise<Array<Result | null>>;
|
|
7
7
|
export declare function toResults(driver: Driver, additionalFilter: AdditionalFilter, params: Params): resultReturn;
|
|
8
8
|
export declare function toResults(driver: Driver, queryAttributes: QueryAttributes[], params: Params): resultReturn;
|
|
@@ -10,6 +10,7 @@ export declare function toResults(driver: Driver, barChart: Component.BarChartAt
|
|
|
10
10
|
export declare function toResults(driver: Driver, horizontalBarChart: Component.HorizontalBarChartAttributes, params: Params): resultReturn;
|
|
11
11
|
export declare function toResults(driver: Driver, lineChart: Component.LineChartAttributes, params: Params): resultReturn;
|
|
12
12
|
export declare function toResults(driver: Driver, singleStat: Component.SingleStatAttributes, params: Params): resultReturn;
|
|
13
|
+
export declare function toResults(driver: Driver, progress: Component.ProgressAttributes, params: Params): resultReturn;
|
|
13
14
|
export declare function toResults(driver: Driver, basicTable: Component.BasicTableAttributes, params: Params): resultReturn;
|
|
14
15
|
export declare function toResults(driver: Driver, pivotTable: Component.DataTableAttributes, params: Params): resultReturn;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare type MessageHistory = Array<{
|
|
2
|
+
content: string;
|
|
3
|
+
sender_type: 'user' | 'ai';
|
|
4
|
+
status: 'active';
|
|
5
|
+
}>;
|
|
6
|
+
export declare type ConversationState = {
|
|
7
|
+
message: string;
|
|
8
|
+
conversationId: string | undefined;
|
|
9
|
+
messageState: 'waitingForMessage' | 'thinking';
|
|
10
|
+
messageHistory: MessageHistory;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ComponentType, Component } from './types';
|
|
2
2
|
import { EmptyCell, HeaderComponent } from '../Display/types';
|
|
3
|
-
export
|
|
4
|
-
export declare const ALL_COMPONENT_TYPES: ComponentType[];
|
|
5
|
-
export declare const ALL_VIZZLY_COMPONENT_TYPES: ComponentType[];
|
|
3
|
+
export * from './constants';
|
|
6
4
|
export declare const initialCustomComponent: (componentId: string, dataSetId: string) => Component<Component.CustomComponentAttributes>;
|
|
7
5
|
export declare const initial: <T extends Component.Attributes>(attributes: T) => Component<T>;
|
|
8
6
|
export declare const initialFromType: (type: ComponentType, dataSetId: string, viewId: string) => Component;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Joi from 'joi';
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
2
|
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
-
export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.AlternativesSchema<
|
|
3
|
+
export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.AlternativesSchema<unknown>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentType } from './types';
|
|
2
|
+
export declare const TIME_SERIES_CHARTS: ('areaChart' | 'lineChart' | 'horizontalBarChart' | 'barChart')[];
|
|
3
|
+
export declare const ALL_COMPONENT_TYPES: ComponentType[];
|
|
4
|
+
export declare const ALL_VIZZLY_COMPONENT_TYPES: ComponentType[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Joi from 'joi';
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
2
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
3
|
import { Component } from './types';
|
|
4
4
|
export declare const removeUnusedOrderFieldsFromTimeSeriesComponent: <T extends {
|
|
@@ -7,5 +7,5 @@ export declare const removeUnusedOrderFieldsFromTimeSeriesComponent: <T extends
|
|
|
7
7
|
timeDimension?: QueryAttributes.TimeDimension | null | undefined;
|
|
8
8
|
dimension: Array<QueryAttributes.Dimension>;
|
|
9
9
|
}>(attributes: T) => T;
|
|
10
|
-
declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.ScatterChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.CustomComponentAttributes>, partialAttributes: Partial<Component.ScatterChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.CustomComponentAttributes>, schema: Joi.ObjectSchema<any>) => Attributes;
|
|
10
|
+
declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.ScatterChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.CustomComponentAttributes> | Partial<Component.ProgressAttributes>, partialAttributes: Partial<Component.ScatterChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.CustomComponentAttributes> | Partial<Component.ProgressAttributes>, schema: Joi.ObjectSchema<any>) => Attributes;
|
|
11
11
|
export default setAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Joi from 'joi';
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
2
|
import { SupportedAggregates } from '../Aggregate';
|
|
3
3
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
4
4
|
import { SupportedTimeTruncFunctions } from '../TimeDimension/types';
|
|
@@ -17,11 +17,11 @@ export declare const baseAttributesSchema: {
|
|
|
17
17
|
dataSetId: Joi.StringSchema<string>;
|
|
18
18
|
protectedByOrganisation: Joi.BooleanSchema<boolean>;
|
|
19
19
|
};
|
|
20
|
-
export declare const approxAxisLabelCountSchema: Joi.
|
|
20
|
+
export declare const approxAxisLabelCountSchema: Joi.AnySchema<any>;
|
|
21
21
|
export declare const timeDimensionQuerySchema: (queryEngineConfig: QueryEngineConfig) => {
|
|
22
22
|
measure: Joi.ArraySchema<any[]>;
|
|
23
23
|
dimension: Joi.ArraySchema<any[]>;
|
|
24
|
-
drilldown: Joi.AlternativesSchema<any>;
|
|
24
|
+
drilldown: Joi.AlternativesSchema<string | any[]>;
|
|
25
25
|
order: Joi.ArraySchema<any[]>;
|
|
26
26
|
timeDimension: Joi.AlternativesSchema<any>;
|
|
27
27
|
limit: Joi.NumberSchema<number>;
|
|
@@ -33,14 +33,15 @@ export declare const timeDimensionQuerySchema: (queryEngineConfig: QueryEngineCo
|
|
|
33
33
|
yAxisPostfix: Joi.StringSchema<string>;
|
|
34
34
|
yAxisFormat: Joi.AlternativesSchema<any>;
|
|
35
35
|
xAxisFormat: Joi.AlternativesSchema<any>;
|
|
36
|
-
approxYAxisLabelCount: Joi.
|
|
37
|
-
approxXAxisLabelCount: Joi.
|
|
36
|
+
approxYAxisLabelCount: Joi.AnySchema<any>;
|
|
37
|
+
approxXAxisLabelCount: Joi.AnySchema<any>;
|
|
38
38
|
};
|
|
39
39
|
export declare const lineCurveSchema: Joi.StringSchema<string>;
|
|
40
|
-
export declare const protectedFieldsMeasure: () => Joi.ArraySchema<any[]>;
|
|
41
|
-
export declare const protectedFieldsDimension: () => Joi.ArraySchema<any[]>;
|
|
40
|
+
export declare const protectedFieldsMeasure: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
|
|
41
|
+
export declare const protectedFieldsDimension: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
|
|
42
42
|
export declare const parametersSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ObjectSchema<any>;
|
|
43
43
|
export declare const goalLineSchema: () => Joi.ObjectSchema<any>;
|
|
44
44
|
export declare const goalLinesSchema: () => Joi.ArraySchema<any[]>;
|
|
45
45
|
export declare const axisTitleSchema: () => Joi.ObjectSchema<any>;
|
|
46
46
|
export declare const sizingSchema: Joi.ObjectSchema<any>;
|
|
47
|
+
export declare const conditionalFormattingRulesSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
|
|
@@ -9,7 +9,7 @@ import { TableFieldsV2 } from '../DataTable/types';
|
|
|
9
9
|
export declare type getNumberFormatter = (formatterId: string | undefined | null) => (number: number) => string;
|
|
10
10
|
export declare type FormatType = string | null;
|
|
11
11
|
export declare type ApproxAxisLabelCount = 'auto' | number;
|
|
12
|
-
export declare type ComponentType = 'barChart' | 'horizontalBarChart' | 'areaChart' | 'lineChart' | 'scatterChart' | 'pieChart' | 'singleStat' | 'dataTable' | 'basicTable' | 'comboChart' | 'mercatorMap' | 'custom';
|
|
12
|
+
export declare type ComponentType = 'barChart' | 'horizontalBarChart' | 'areaChart' | 'lineChart' | 'scatterChart' | 'pieChart' | 'singleStat' | 'dataTable' | 'basicTable' | 'comboChart' | 'mercatorMap' | 'custom' | 'progress';
|
|
13
13
|
export declare namespace Component {
|
|
14
14
|
export type LineCurve = 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter';
|
|
15
15
|
export type RawComponent = Omit<Component, 'queries' | 'results' | 'span'> & {
|
|
@@ -218,6 +218,22 @@ export declare namespace Component {
|
|
|
218
218
|
deltaTimeDimension: QueryAttributes.TimeDimension | null;
|
|
219
219
|
parameters?: Parameters;
|
|
220
220
|
};
|
|
221
|
+
export type ProgressAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'dimension' | 'timeDimension' | 'order'> & {
|
|
222
|
+
type: 'progress';
|
|
223
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
224
|
+
parameters?: Parameters;
|
|
225
|
+
goals?: ProgressGoal[];
|
|
226
|
+
progressType?: ProgressTypes[];
|
|
227
|
+
prefixes: {
|
|
228
|
+
[fieldIdAndAggregate: string]: string;
|
|
229
|
+
};
|
|
230
|
+
postfixes: {
|
|
231
|
+
[fieldIdAndAggregate: string]: string;
|
|
232
|
+
};
|
|
233
|
+
formatter: {
|
|
234
|
+
[fieldIdAndAggregate: string]: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
221
237
|
export type ScatterChartAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure'> & {
|
|
222
238
|
type: 'scatterChart';
|
|
223
239
|
xMeasure: QueryAttributes.Measure | null;
|
|
@@ -234,7 +250,7 @@ export declare namespace Component {
|
|
|
234
250
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
235
251
|
axisTitles?: AxisTitles;
|
|
236
252
|
};
|
|
237
|
-
export type Attributes = ScatterChartAttributes | LineChartAttributes | AreaChartAttributes | BarChartAttributes | PieChartAttributes | SingleStatAttributes | DataTableAttributes | BasicTableAttributes | ComboChartAttributes | HorizontalBarChartAttributes | MercatorMapAttributes | CustomComponentAttributes;
|
|
253
|
+
export type Attributes = ScatterChartAttributes | LineChartAttributes | AreaChartAttributes | BarChartAttributes | PieChartAttributes | SingleStatAttributes | DataTableAttributes | BasicTableAttributes | ComboChartAttributes | HorizontalBarChartAttributes | MercatorMapAttributes | CustomComponentAttributes | ProgressAttributes;
|
|
238
254
|
type BaseOnViewClick = {
|
|
239
255
|
viewId: string;
|
|
240
256
|
};
|
|
@@ -315,3 +331,15 @@ export declare type Component<Attrs = Component.Attributes> = {
|
|
|
315
331
|
colSpan: number;
|
|
316
332
|
reports: Array<Report>;
|
|
317
333
|
};
|
|
334
|
+
export declare enum ProgressType {
|
|
335
|
+
Linear = "linear",
|
|
336
|
+
Circular = "circular"
|
|
337
|
+
}
|
|
338
|
+
export declare type ProgressGoal = {
|
|
339
|
+
field: string;
|
|
340
|
+
value: number;
|
|
341
|
+
};
|
|
342
|
+
export declare type ProgressTypes = {
|
|
343
|
+
field: string;
|
|
344
|
+
value: ProgressType;
|
|
345
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Joi from 'joi';
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
2
|
import { Dumpable } from '../Dumpable';
|
|
3
3
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
4
4
|
import { DataSet } from '../DataSet/types';
|
|
@@ -12,6 +12,8 @@ export declare type ComponentInterfaceConfig = {
|
|
|
12
12
|
};
|
|
13
13
|
export interface ComponentInterface<Hydrated = any, Dumped = any> extends Dumpable<Hydrated, Dumped> {
|
|
14
14
|
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
servicesClass: string;
|
|
15
17
|
setDataAttributesFromPreAggregatedDataSet?: (attributes: Hydrated, dataSet: DataSet) => Hydrated;
|
|
16
18
|
removeField: (hydrated: Hydrated, fieldId: string) => Hydrated;
|
|
17
19
|
init: (dataSetId: string, overrides?: Partial<Hydrated>) => Hydrated;
|
|
@@ -8,7 +8,7 @@ import { DashboardStorageStrategy } from './types';
|
|
|
8
8
|
export * from './dashboardAPI/creating';
|
|
9
9
|
export * from './dashboardAPI/updating';
|
|
10
10
|
export declare function getDashboards<T extends {
|
|
11
|
-
found
|
|
11
|
+
found?: any[];
|
|
12
12
|
}>(dashboardsResponse: T, dataSets: DataSet[]): DashboardType[];
|
|
13
13
|
export declare function fetchDashboards(dashboardStorageStrategy: DashboardStorageStrategy, vizzlyAPI: ReturnType<typeof api>, dashboardAccessTokens: string[], abortController: AbortController): Promise<import("../api/vizzly/multiGetDashboards").Response>;
|
|
14
14
|
export declare const DEFAULT_STRATEGY: DashboardStorageStrategy;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
|
+
import { loadDataSetsCallback } from '../../../shared-logic/src/Callbacks/types';
|
|
3
|
+
import { IdentityConfig } from '../../../shared-logic/src/IdentityConfig/types';
|
|
4
|
+
import { DataSet } from '../DataSet/types';
|
|
5
|
+
export declare type DataSetsCallback = (identityConfig: IdentityConfig) => Promise<Array<DataSet> | null>;
|
|
6
|
+
export interface Property {
|
|
7
|
+
schema: Joi.Schema;
|
|
8
|
+
}
|
|
9
|
+
declare const dataSets: Property;
|
|
10
|
+
export default dataSets;
|
|
11
|
+
export declare const withReturnValidation: (dataSets?: DataSetsCallback | undefined, querEngineEndpoint?: string | {
|
|
12
|
+
endpoint: string;
|
|
13
|
+
dynamicConfig?: Object | undefined;
|
|
14
|
+
customHeaders?: (() => {
|
|
15
|
+
[headerKey: string]: string;
|
|
16
|
+
}) | undefined;
|
|
17
|
+
} | undefined) => loadDataSetsCallback;
|
|
@@ -32,6 +32,13 @@ export declare type LabelledMetricSection = Section<'labelledMetrics'> & {
|
|
|
32
32
|
title: string;
|
|
33
33
|
}>;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export interface ProgressGoalSection<T> extends Omit<Section<T>, 'type'> {
|
|
36
|
+
goals?: {
|
|
37
|
+
field: string;
|
|
38
|
+
value: number;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export declare type ProgressGoalsSection = Section<'progressGoals'> & ProgressGoalSection<'progressGoals'>;
|
|
42
|
+
export declare type DataPanelSection = Section<'dataSet'> | MetricsSection | FieldCollectorSection | LabelledMetricSection | Section<'customMetrics'> | DimensionSection | Section<'drilldown'> | Section<'comparison'> | Section<'comboChartDimension'> | Section<'timeDimension'> | Section<'xAxis'> | Section<'views'> | Section<'sort'> | Section<'filter'> | Section<'limit'> | Section<'pagination'> | Section<'fields'> | Section<'country'> | ProgressGoalsSection;
|
|
36
43
|
export declare type DataPanelConfig = Array<DataPanelSection>;
|
|
37
44
|
export {};
|
|
@@ -25,7 +25,7 @@ export declare const validateQueries: (dataSet: DataSet, queries: Query[]) => un
|
|
|
25
25
|
* provide the componentType to ensure the custom fields which are returned
|
|
26
26
|
* are also supported by the componentType.
|
|
27
27
|
*/
|
|
28
|
-
export declare const takeCustomFields: (dataSet: DataSet, componentType?: "barChart" | "horizontalBarChart" | "areaChart" | "lineChart" | "scatterChart" | "pieChart" | "singleStat" | "dataTable" | "basicTable" | "comboChart" | "mercatorMap" | "custom" | undefined) => CustomField[];
|
|
28
|
+
export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "barChart" | "horizontalBarChart" | "areaChart" | "lineChart" | "scatterChart" | "pieChart" | "singleStat" | "dataTable" | "basicTable" | "comboChart" | "mercatorMap" | "custom" | undefined) => CustomField[];
|
|
29
29
|
export declare const takeNonCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
|
|
30
30
|
export declare const takeNonPercentageCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
|
|
31
31
|
export declare const removeCustomFields: (dataSet: DataSet) => DataSet;
|
|
@@ -35,5 +35,9 @@ export interface ConditionalFormattingSection extends Section<'conditionalFormat
|
|
|
35
35
|
}
|
|
36
36
|
export interface GoalLineSection extends Section<'goalLine'> {
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export interface ProgressTypeSection<T> extends Omit<Section<T>, 'type'> {
|
|
39
|
+
progressType?: Omit<Section<T>, 'type'>;
|
|
40
|
+
}
|
|
41
|
+
export declare type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
|
|
42
|
+
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection;
|
|
39
43
|
export declare type FormatPanelConfig = Array<FormatPanelSection>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { LoadComponentInterface } from '../ComponentInterface/types';
|
|
3
|
+
import { DumpedProgressAttributes } from './types';
|
|
4
|
+
declare const Progress: LoadComponentInterface<Component.ProgressAttributes, DumpedProgressAttributes>;
|
|
5
|
+
export default Progress;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Joi from 'joi';
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
2
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
3
3
|
import { Query } from './types';
|
|
4
4
|
export declare class InvalidQuery extends Error {
|
|
@@ -7,10 +7,10 @@ declare type JoiOptions = {
|
|
|
7
7
|
convert: boolean;
|
|
8
8
|
stripUnknown: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const postgresQuerySchema: Joi.AlternativesSchema<
|
|
11
|
-
export declare const snowflakeQuerySchema: Joi.AlternativesSchema<
|
|
12
|
-
export declare const mariadbQuerySchema: Joi.AlternativesSchema<
|
|
13
|
-
export declare const mysqlQuerySchema: Joi.AlternativesSchema<
|
|
14
|
-
export declare const bigqueryQuerySchema: Joi.AlternativesSchema<
|
|
10
|
+
export declare const postgresQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
11
|
+
export declare const snowflakeQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
12
|
+
export declare const mariadbQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
13
|
+
export declare const mysqlQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
14
|
+
export declare const bigqueryQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
15
15
|
export declare const validate: (queries: Array<unknown>, queryEngineConfig: QueryEngineConfig, joiOptions: JoiOptions) => Array<Query>;
|
|
16
16
|
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { DumpedSingleStatAttributes } from './types';
|
|
3
|
+
import { DumpedProgressAttributes } from '../Progress/types';
|
|
4
|
+
export declare const upcastSingleValueAttributes: (dumped: DumpedSingleStatAttributes | DumpedProgressAttributes) => Component.SingleStatAttributes | Component.ProgressAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Joi from 'joi';
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
2
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
3
3
|
export declare const conditionalFormattingRuleSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ObjectSchema<any>;
|
|
4
4
|
export declare const prefixSchema: Joi.ObjectSchema<any>;
|
|
@@ -218,10 +218,15 @@ export declare namespace VizzlyTheming {
|
|
|
218
218
|
};
|
|
219
219
|
interface List extends Panel {
|
|
220
220
|
title?: FontStyle;
|
|
221
|
+
subTitle?: ListSubTitle;
|
|
221
222
|
fontSize?: CSSProperties['fontSize'];
|
|
222
223
|
color?: CSSProperties['color'];
|
|
223
224
|
icon?: ListIcon;
|
|
224
225
|
}
|
|
226
|
+
type ListSubTitle = FontStyle & {
|
|
227
|
+
textTransform?: CSSProperties['textTransform'];
|
|
228
|
+
borderBottom?: CSSProperties['borderBottom'];
|
|
229
|
+
};
|
|
225
230
|
type ListIcon = {
|
|
226
231
|
color?: CSSProperties['color'];
|
|
227
232
|
background?: CSSProperties['background'];
|
|
@@ -342,6 +347,8 @@ export declare namespace VizzlyTheming {
|
|
|
342
347
|
row?: {
|
|
343
348
|
padding?: CSSProperties['padding'];
|
|
344
349
|
borderBottom?: CSSProperties['borderBottom'];
|
|
350
|
+
borderLeft?: CSSProperties['borderLeft'];
|
|
351
|
+
borderRight?: CSSProperties['borderRight'];
|
|
345
352
|
};
|
|
346
353
|
level?: {
|
|
347
354
|
2: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataType } from '../Field/types';
|
|
2
2
|
import { Client } from './types';
|
|
3
3
|
export declare const SUPPORTED_CLIENTS: Array<Client>;
|
|
4
|
+
export declare const SUPPORTED_CLIENTS_WITH_JS: Array<Client | 'js'>;
|
|
4
5
|
export declare const CLIENT_TO_TITLE: {
|
|
5
6
|
[key: string]: string;
|
|
6
7
|
};
|
|
@@ -22,7 +22,15 @@ export declare const api: (config: ApiConfig) => {
|
|
|
22
22
|
permissions: import("../DashboardPermission/types").RawDashboardPermission[];
|
|
23
23
|
}>;
|
|
24
24
|
updateDashboard: (params: import("./vizzly/updateDashboard").UpdateDashboardParams) => Promise<import("./vizzly/updateDashboard").EncryptedDashboardUpdateResponse | import("./vizzly/updateDashboard").UnEncryptedDashboardUpdateResponse>;
|
|
25
|
-
askAi: (question: string, dashboardAccessToken: string,
|
|
25
|
+
askAi: (conversationId: string | undefined, currentAttributes: Partial<import("../Component/types").Component.ScatterChartAttributes> | Partial<import("../Component/types").Component.LineChartAttributes> | Partial<import("../Component/types").Component.AreaChartAttributes> | Partial<import("../Component/types").Component.BarChartAttributes> | Partial<import("../Component/types").Component.PieChartAttributes> | Partial<import("../Component/types").Component.SingleStatAttributes> | Partial<import("../Component/types").Component.DataTableAttributes> | Partial<import("../Component/types").Component.BasicTableAttributes> | Partial<import("../Component/types").Component.ComboChartAttributes> | Partial<import("../Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../Component/types").Component.MercatorMapAttributes> | Partial<import("../Component/types").Component.CustomComponentAttributes> | Partial<import("../Component/types").Component.ProgressAttributes>, question: string, dashboardAccessToken: string, dataSets: import("../DataSet/types").DataSet[], queryEngineConfig: import("../QueryEngineConfig/types").QueryEngineConfig) => Promise<{
|
|
26
|
+
conversationId: string | undefined;
|
|
27
|
+
attributes: import("../Component/types").Component.Attributes;
|
|
28
|
+
messageHistory: {
|
|
29
|
+
content: string;
|
|
30
|
+
sender_type: "user" | "ai";
|
|
31
|
+
status: "active";
|
|
32
|
+
}[];
|
|
33
|
+
}>;
|
|
26
34
|
createVizzlyConfigVersion: (projectId: string, encryptedVizzlyConfig: string) => Promise<boolean>;
|
|
27
35
|
getVizzlyConfig: (projectId: string) => Promise<{
|
|
28
36
|
encryptedConfig: import("../../../shared-logic/src/Component/types").FormatType;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type AIAttributes =
|
|
3
|
-
measure: QueryAttributes.Measure[];
|
|
4
|
-
dimension: string[];
|
|
5
|
-
};
|
|
1
|
+
import { Component } from '../../../Component/types';
|
|
2
|
+
export declare type AIAttributes = Partial<Component.Attributes>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DataSet } from '../../../DataSet/types';
|
|
2
|
-
import { QueryAttributes } from '../../../QueryAttributes/types';
|
|
3
1
|
import { AIAttributes } from './types';
|
|
4
2
|
import { QueryEngineConfig } from '../../../QueryEngineConfig/types';
|
|
5
|
-
|
|
3
|
+
import { Component } from '../../../Component/types';
|
|
4
|
+
declare const validateAndUpcast: (aiAttributes: Partial<AIAttributes>, queryEngineConfig: QueryEngineConfig) => Component.Attributes;
|
|
6
5
|
export default validateAndUpcast;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '../types';
|
|
2
2
|
import { DataSet } from '../../DataSet/types';
|
|
3
3
|
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { Component } from '../../Component/types';
|
|
5
|
+
import { ConversationState } from '../../AI/types';
|
|
6
|
+
declare type AskAiReponse = {
|
|
7
|
+
conversationId: ConversationState['conversationId'];
|
|
8
|
+
attributes: Component.Attributes;
|
|
9
|
+
messageHistory: ConversationState['messageHistory'];
|
|
10
|
+
};
|
|
11
|
+
export declare const askAi: (httpClient: HttpClient) => (conversationId: string | undefined, currentAttributes: Partial<Component.Attributes>, question: string, dashboardAccessToken: string, dataSets: DataSet[], queryEngineConfig: QueryEngineConfig) => Promise<AskAiReponse>;
|
|
12
|
+
export {};
|
|
@@ -6,6 +6,7 @@ declare function getComponentInterface(type: 'pieChart', config?: ComponentInter
|
|
|
6
6
|
declare function getComponentInterface(type: 'scatterChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.ScatterChartAttributes>;
|
|
7
7
|
declare function getComponentInterface(type: 'mercatorMap', config?: ComponentInterfaceConfig): ComponentInterface<Component.MercatorMapAttributes>;
|
|
8
8
|
declare function getComponentInterface(type: 'singleStat', config?: ComponentInterfaceConfig): ComponentInterface<Component.SingleStatAttributes>;
|
|
9
|
+
declare function getComponentInterface(type: 'progress', config?: ComponentInterfaceConfig): ComponentInterface<Component.ProgressAttributes>;
|
|
9
10
|
declare function getComponentInterface(type: 'comboChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.ComboChartAttributes>;
|
|
10
11
|
declare function getComponentInterface(type: 'dataTable', config?: ComponentInterfaceConfig): ComponentInterface<Component.DataTableAttributes>;
|
|
11
12
|
declare function getComponentInterface(type: 'basicTable', config?: ComponentInterfaceConfig): BasicTableComponentInterface;
|
|
@@ -3,6 +3,6 @@ import { Result } from '../../../shared-logic/src/Result/types';
|
|
|
3
3
|
import { FilterConfig } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
4
4
|
import { DataSet } from '../../../shared-logic/src/DataSet/types';
|
|
5
5
|
import { QueryableEntity } from './useQueryEffect/types';
|
|
6
|
-
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, onResultsCallback: (results: Array<Result | null>) => void, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "barChart" | "horizontalBarChart" | "areaChart" | "lineChart" | "scatterChart" | "pieChart" | "singleStat" | "dataTable" | "basicTable" | "comboChart" | "mercatorMap" | "custom" | undefined) => {
|
|
6
|
+
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, onResultsCallback: (results: Array<Result | null>) => void, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "barChart" | "horizontalBarChart" | "areaChart" | "lineChart" | "scatterChart" | "pieChart" | "singleStat" | "dataTable" | "basicTable" | "comboChart" | "mercatorMap" | "custom" | undefined) => {
|
|
7
7
|
queriesAreChanging: boolean;
|
|
8
8
|
};
|