@vizzly/dashboard 0.7.0 → 0.7.1-dev-b20a0c09c1eedef43690cbdff448965dfea9c70a

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.
Files changed (101) hide show
  1. package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +30 -48
  2. package/dist/dashboard/src/contexts/useDashboardAPI.d.ts +1 -8
  3. package/dist/dashboard/src/types.d.ts +4 -9
  4. package/dist/index.js +1 -1
  5. package/dist/results-driver/src/driver/VizzlyQuery/SingleStat/toQueries.d.ts +1 -1
  6. package/dist/results-driver/src/index.d.ts +6 -5
  7. package/dist/shared-logic/src/AI/types.d.ts +12 -0
  8. package/dist/shared-logic/src/AreaChart/attributesSchema.d.ts +1 -1
  9. package/dist/shared-logic/src/BarChart/attributesSchema.d.ts +1 -1
  10. package/dist/shared-logic/src/BasicTable/attributesSchema.d.ts +1 -1
  11. package/dist/shared-logic/src/ComboChart/attributesSchema.d.ts +1 -1
  12. package/dist/shared-logic/src/Component/Component.d.ts +1 -3
  13. package/dist/shared-logic/src/Component/attributesSchema.d.ts +2 -2
  14. package/dist/shared-logic/src/Component/constants.d.ts +4 -0
  15. package/dist/shared-logic/src/Component/setAttributes.d.ts +2 -2
  16. package/dist/shared-logic/src/Component/sharedSchemas.d.ts +8 -7
  17. package/dist/shared-logic/src/Component/types.d.ts +30 -2
  18. package/dist/shared-logic/src/ComponentInterface/types.d.ts +3 -1
  19. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/creating.d.ts +18 -0
  20. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/updating.d.ts +16 -0
  21. package/dist/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +17 -0
  22. package/dist/shared-logic/src/DashboardAPI/dashboardManager.d.ts +6 -0
  23. package/dist/shared-logic/src/DashboardAPI/dataConfigurationAndIdentity.d.ts +6 -0
  24. package/dist/shared-logic/src/DashboardAPI/dataSets.d.ts +17 -0
  25. package/dist/shared-logic/src/DashboardAPI/types.d.ts +17 -0
  26. package/dist/shared-logic/src/DataPanelConfig/types.d.ts +8 -1
  27. package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
  28. package/dist/shared-logic/src/DataTable/attributesSchema.d.ts +1 -1
  29. package/dist/shared-logic/src/DataTable/types.d.ts +1 -0
  30. package/dist/shared-logic/src/Documentation/index.d.ts +1 -0
  31. package/dist/shared-logic/src/Documentation/joiToDocumentation.d.ts +1 -1
  32. package/dist/shared-logic/src/Documentation/joiToSchemaDefinition.d.ts +2 -0
  33. package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +5 -1
  34. package/dist/shared-logic/src/LineChart/attributesSchema.d.ts +1 -1
  35. package/dist/shared-logic/src/MercatorMap/attributesSchema.d.ts +1 -1
  36. package/dist/shared-logic/src/PieChart/attributesSchema.d.ts +1 -1
  37. package/dist/shared-logic/src/Progress/attributesSchema.d.ts +3 -0
  38. package/dist/shared-logic/src/Progress/index.d.ts +5 -0
  39. package/dist/shared-logic/src/Progress/types.d.ts +2 -0
  40. package/dist/shared-logic/src/Progress/utils.d.ts +2 -0
  41. package/dist/shared-logic/src/Query/validate.d.ts +6 -6
  42. package/dist/shared-logic/src/QueryEngine/types.d.ts +1 -0
  43. package/dist/shared-logic/src/ScatterChart/attributesSchema.d.ts +1 -1
  44. package/dist/shared-logic/src/SingleStat/attributesSchema.d.ts +1 -1
  45. package/dist/shared-logic/src/SingleStat/upcastSingleValueAttributes.d.ts +4 -0
  46. package/dist/shared-logic/src/Table/attributesSchema.d.ts +1 -1
  47. package/dist/shared-logic/src/Theme/types.d.ts +7 -0
  48. package/dist/shared-logic/src/VizzlyConfig/constants.d.ts +1 -0
  49. package/dist/shared-logic/src/VizzlyConfig/validate.d.ts +1 -1
  50. package/dist/shared-logic/src/api/httpClient.d.ts +1 -0
  51. package/dist/shared-logic/src/api/index.d.ts +9 -1
  52. package/dist/shared-logic/src/api/types.d.ts +1 -0
  53. package/dist/shared-logic/src/api/vizzly/askAi/types.d.ts +2 -5
  54. package/dist/shared-logic/src/api/vizzly/askAi/validateAndUpcast.d.ts +2 -3
  55. package/dist/shared-logic/src/api/vizzly/askAi.d.ts +9 -2
  56. package/dist/shared-logic/src/api/vizzly/duplicateParentDashboard.d.ts +3 -0
  57. package/dist/shared-logic/src/errors/CorruptedView.d.ts +1 -1
  58. package/dist/shared-logic/src/getComponentInterface.d.ts +1 -0
  59. package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -1
  60. package/dist/shared-ui/src/base/Label/Label.d.ts +1 -0
  61. package/dist/shared-ui/src/base/ListView/OptionIcon.d.ts +1 -0
  62. package/dist/shared-ui/src/base/Progress/Circular.d.ts +6 -0
  63. package/dist/shared-ui/src/base/Progress/Linear.d.ts +5 -0
  64. package/dist/shared-ui/src/base/Progress/Progress.d.ts +39 -0
  65. package/dist/shared-ui/src/base/Progress/shared.d.ts +2 -0
  66. package/dist/shared-ui/src/base/Table/Table.d.ts +2 -0
  67. package/dist/shared-ui/src/base/Table/Table.styles.d.ts +1 -1
  68. package/dist/shared-ui/src/base/Table/TableComponents.d.ts +2 -0
  69. package/dist/shared-ui/src/base/ValuesContainer/ValuesContainer.d.ts +18 -0
  70. package/dist/shared-ui/src/base/ValuesContainer/buildSingleValue.d.ts +10 -0
  71. package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -4
  72. package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -4
  73. package/dist/shared-ui/src/components/Component.d.ts +1 -0
  74. package/dist/shared-ui/src/components/DataTable/DataTableRow.d.ts +4 -1
  75. package/dist/shared-ui/src/components/DataTable/TableHeader.d.ts +2 -0
  76. package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +3 -2
  77. package/dist/shared-ui/src/components/DataTable/headerFormatting.d.ts +10 -0
  78. package/dist/shared-ui/src/components/Progress/Progress.d.ts +20 -0
  79. package/dist/shared-ui/src/components/Progress/ProgressView.d.ts +13 -0
  80. package/dist/shared-ui/src/components/Progress/index.d.ts +2 -0
  81. package/dist/shared-ui/src/components/SingleStat/SingleStatView.d.ts +1 -1
  82. package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +1 -0
  83. package/dist/shared-ui/src/contexts/DashboardBehaviour/numberFormatOptions.d.ts +1 -4
  84. package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +7 -2
  85. package/dist/shared-ui/src/hooks/useAi.d.ts +14 -0
  86. package/dist/shared-ui/src/library/ComponentIcons.d.ts +1 -0
  87. package/dist/shared-ui/src/library/DataPanel/MeasuresInput.d.ts +1 -0
  88. package/dist/shared-ui/src/library/DataPanel/Progress/ProgressInput.d.ts +14 -0
  89. package/dist/shared-ui/src/library/DataPanel/Progress/ProgressInput.test.d.ts +1 -0
  90. package/dist/shared-ui/src/library/DataPanel/Progress/ProgressModal.d.ts +9 -0
  91. package/dist/shared-ui/src/library/DataPanel/ProgressGoalsSection.d.ts +6 -0
  92. package/dist/shared-ui/src/library/ResizableRowCell.d.ts +1 -0
  93. package/dist/shared-ui/src/library/StylePanel/ProgressTypeSection.d.ts +6 -0
  94. package/dist/shared-ui/src/library/VizzlyAI.d.ts +1 -1
  95. package/dist/shared-ui/src/library/useHeight.d.ts +2 -0
  96. package/dist/shared-ui/src/styles/global.styles.d.ts +4 -0
  97. package/dist/shared-ui/src/withArgumentValidation.d.ts +1 -1
  98. package/package.json +4 -3
  99. package/dist/dashboard/src/properties/dataSets.d.ts +0 -5
  100. package/dist/shared-logic/src/SingleStat/upcastSingleStatAttributes.d.ts +0 -3
  101. /package/dist/{dashboard/src/contexts → shared-logic/src/DashboardAPI}/getDashboardAdminOverride.d.ts +0 -0
@@ -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 "./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";
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,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -1,8 +1,6 @@
1
1
  import { ComponentType, Component } from './types';
2
2
  import { EmptyCell, HeaderComponent } from '../Display/types';
3
- export declare const TIME_SERIES_CHARTS: ('areaChart' | 'lineChart' | 'horizontalBarChart' | 'barChart')[];
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<any>;
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.Schema<any>;
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.Schema<any>;
37
- approxXAxisLabelCount: Joi.Schema<any>;
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;
@@ -0,0 +1,18 @@
1
+ import { DataSet } from '../../DataSet/types';
2
+ import * as Dashboard from '../../../../shared-logic/src/Dashboard';
3
+ import { api } from '../../api';
4
+ import { IdentityConfig as IdentityConfigType } from '../../../../shared-logic/src/IdentityConfig/types';
5
+ import { CreateDashboardParams } from '../../api/vizzly/createDashboard';
6
+ import { DashboardPermission as DashboardPermissionType, RawDashboardPermission } from '../../../../shared-logic/src/DashboardPermission/types';
7
+ import { DashboardStorageStrategy } from '../types';
8
+ export declare function prepareCreateResponseForAdding(createdDashboardResponse: {
9
+ dashboard: Dashboard.RawDashboard;
10
+ permissions: RawDashboardPermission[];
11
+ }, dataSets: DataSet[]): {
12
+ createdDashboard: Dashboard.Dashboard;
13
+ formattedPermissions: DashboardPermissionType[];
14
+ };
15
+ export declare function postCreateDashboard(params: Omit<CreateDashboardParams, 'dashboardAccessToken'>, identityConfig: IdentityConfigType, dashboardStorageStrategy: DashboardStorageStrategy, vizzlyAPI: ReturnType<typeof api>): Promise<{
16
+ dashboard: import("../../Dashboard").RawDashboard<import("../../typeHelpers").PartialBy<import("../../Dashboard").SaveableDashboardDefinition, "isPlayground" | "customFields">>;
17
+ permissions: import("../../DashboardPermission/types").RawDashboardPermission[];
18
+ }>;
@@ -0,0 +1,16 @@
1
+ import { DataSet } from '../../DataSet/types';
2
+ import { Dashboard as DashboardType } from '../../../../shared-logic/src/Dashboard/types';
3
+ import * as Dashboard from '../../../../shared-logic/src/Dashboard';
4
+ import { api } from '../../api';
5
+ import { UnEncryptedDashboardUpdateResponse, UpdateDashboardParams } from '../../api/vizzly/updateDashboard';
6
+ import { DashboardStorageStrategy } from '../types';
7
+ export declare function postUpdateDashboard(dashboardStorageStrategy: DashboardStorageStrategy, vizzlyAPI: ReturnType<typeof api>, updateParams: {
8
+ dashboardSessionToken: string;
9
+ definition?: Dashboard.SaveableDashboardDefinition;
10
+ meta?: any;
11
+ deleted?: boolean;
12
+ }): Promise<UnEncryptedDashboardUpdateResponse>;
13
+ export declare function updateDashboardFromUpdateResponse(updatedDashboardResponse: UnEncryptedDashboardUpdateResponse, dataSets: DataSet[], dashboards: DashboardType[], params: Omit<UpdateDashboardParams, 'dashboardSessionToken'>): {
14
+ newDashboards: DashboardType[];
15
+ updatedDashboard: DashboardType;
16
+ };
@@ -0,0 +1,17 @@
1
+ import { DataSet } from '../DataSet/types';
2
+ import { DashboardPermission as DashboardPermissionType } from '../../../shared-logic/src/DashboardPermission/types';
3
+ import { Dashboard as DashboardType } from '../../../shared-logic/src/Dashboard/types';
4
+ import { QueryEngineConfig, QueryEngineEndpoint } from '../QueryEngineConfig/types';
5
+ import { api } from '../api';
6
+ import { IdentityConfig as IdentityConfigType } from '../../../shared-logic/src/IdentityConfig/types';
7
+ import { DashboardStorageStrategy } from './types';
8
+ export * from './dashboardAPI/creating';
9
+ export * from './dashboardAPI/updating';
10
+ export declare function getDashboards<T extends {
11
+ found?: any[];
12
+ }>(dashboardsResponse: T, dataSets: DataSet[]): DashboardType[];
13
+ export declare function fetchDashboards(dashboardStorageStrategy: DashboardStorageStrategy, vizzlyAPI: ReturnType<typeof api>, dashboardAccessTokens: string[], abortController: AbortController): Promise<import("../api/vizzly/multiGetDashboards").Response>;
14
+ export declare const DEFAULT_STRATEGY: DashboardStorageStrategy;
15
+ export declare const getDashboardStorageStrategy: (queryEngineEndpoint: Function | QueryEngineEndpoint | undefined, queryEngineConfig: QueryEngineConfig | undefined) => DashboardStorageStrategy;
16
+ export declare const getDefaultParentDashboardId: (parentDashboardId: string | undefined, parentDashboardIdOnDashboardAccessToken: IdentityConfigType['dashboardAccess']['dashboardId'], dashboards: Array<DashboardType>) => string;
17
+ export declare function buildDashboardAccessTokens(permissions: DashboardPermissionType[]): string[];
@@ -0,0 +1,6 @@
1
+ import { Dashboard } from '../Dashboard/types';
2
+ import { VizzlyDashboard } from './types';
3
+ export declare function buildClientFacingDashboards(dashboards: Dashboard[]): VizzlyDashboard[];
4
+ export declare const getChildDashboards: (parentDashboardId: string, clientFacingDash: VizzlyDashboard[]) => VizzlyDashboard[];
5
+ export declare function getAllClientFacingChildDashboards(clientFacingDash: VizzlyDashboard[]): VizzlyDashboard[];
6
+ export declare function getParentDashboards(clientFacingDash: VizzlyDashboard[]): VizzlyDashboard[];
@@ -0,0 +1,6 @@
1
+ import { identityCallback as identityCallbackImported } from '../../../shared-logic/src/Callbacks/types';
2
+ export declare type identityCallback = identityCallbackImported;
3
+ export declare const fetchIdentityConfig: (identityCallback: identityCallbackImported) => Promise<{
4
+ identityConfig: import("../../../shared-logic/src/IdentityConfig/types").IdentityConfig;
5
+ tokens: import("../../../shared-logic/src/Callbacks/types").IdentityTokens;
6
+ }>;
@@ -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;
@@ -0,0 +1,17 @@
1
+ import { Dashboard } from '../../../shared-logic/src/Dashboard/types';
2
+ import { QueryEngineEndpoint } from '../QueryEngineConfig/types';
3
+ export declare type VizzlyDashboard = {
4
+ id: Dashboard['id'];
5
+ parentDashboardId: Dashboard['parentDashboardId'] | undefined;
6
+ display: Dashboard['display'];
7
+ componentLibrary: Dashboard['componentLibrary'];
8
+ createdAt: Dashboard['createdAt'];
9
+ updatedAt: Dashboard['updatedAt'];
10
+ metadata: Dashboard['metadata'];
11
+ };
12
+ export declare type DashboardStorageStrategy = {
13
+ strategy: 'vizzlyApi';
14
+ } | {
15
+ strategy: 'queryEngine';
16
+ endpoint: QueryEngineEndpoint;
17
+ };
@@ -32,6 +32,13 @@ export declare type LabelledMetricSection = Section<'labelledMetrics'> & {
32
32
  title: string;
33
33
  }>;
34
34
  };
35
- 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'>;
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;
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -4,6 +4,7 @@ export declare type GroupedTitle = {
4
4
  colSpan: number;
5
5
  content: string;
6
6
  rowGroup?: boolean;
7
+ unformatted: string;
7
8
  };
8
9
  export declare type TableContent = {
9
10
  value: any;
@@ -1 +1,2 @@
1
1
  export * from './joiToDocumentation';
2
+ export * from './joiToSchemaDefinition';
@@ -1,4 +1,4 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import joiToJson from 'joi-to-json';
3
3
  export declare type SchemaDocumentation = ReturnType<typeof joiToJson>;
4
4
  export declare const joiToDocumentation: (obj: Joi.Schema) => SchemaDocumentation;
@@ -0,0 +1,2 @@
1
+ import Joi from '@vizzly/joi';
2
+ export declare const joiToSchemaDefinition: (obj: Joi.Schema) => any;
@@ -35,5 +35,9 @@ export interface ConditionalFormattingSection extends Section<'conditionalFormat
35
35
  }
36
36
  export interface GoalLineSection extends Section<'goalLine'> {
37
37
  }
38
- export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection;
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>;
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -0,0 +1,3 @@
1
+ import Joi from '@vizzly/joi';
2
+ import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
+ export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { Component } from '../Component/types';
2
+ export declare type DumpedProgressAttributes = Component.ProgressAttributes;
@@ -0,0 +1,2 @@
1
+ import { ProgressType, ProgressTypes } from '../Component/types';
2
+ export declare const defaultProgressType: (progressType: ProgressTypes[] | undefined) => ProgressType;
@@ -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<any>;
11
- export declare const snowflakeQuerySchema: Joi.AlternativesSchema<any>;
12
- export declare const mariadbQuerySchema: Joi.AlternativesSchema<any>;
13
- export declare const mysqlQuerySchema: Joi.AlternativesSchema<any>;
14
- export declare const bigqueryQuerySchema: Joi.AlternativesSchema<any>;
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 {};
@@ -16,4 +16,5 @@ export declare type QueryEngineStatusReport = {
16
16
  dataSetsCount: number | null;
17
17
  configSources: ConfigSources | null;
18
18
  allowGetStarted: boolean | null;
19
+ strategy: 'dynamic' | 'static' | 'vizzlyApiStore';
19
20
  };
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -1,3 +1,3 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
3
  export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -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
  };
@@ -1,4 +1,4 @@
1
- import Joi from 'joi';
1
+ import Joi from '@vizzly/joi';
2
2
  export declare const bigQuerySchema: Joi.ObjectSchema<any>;
3
3
  export declare const postgresSchema: Joi.ObjectSchema<any>;
4
4
  export declare const mariadbSchema: Joi.ObjectSchema<any>;
@@ -3,4 +3,5 @@ import { Request } from './types';
3
3
  export declare const httpClient: (config: ApiConfig) => <T>(request: Request<any>) => Promise<{
4
4
  status: number;
5
5
  body: T;
6
+ headers: Headers | null;
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, dataSet: import("../DataSet/types").DataSet, queryEngineConfig: import("../QueryEngineConfig/types").QueryEngineConfig) => Promise<Partial<import("../QueryAttributes/types").QueryAttributes>>;
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;
@@ -21,4 +21,5 @@ export declare type NoBody = undefined;
21
21
  export declare type HttpClient = <ResponseBody>(request: Request<any>) => Promise<{
22
22
  status: number;
23
23
  body: ResponseBody;
24
+ headers: Headers | null;
24
25
  }>;
@@ -1,5 +1,2 @@
1
- import { QueryAttributes } from '../../../QueryAttributes/types';
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
- declare const validateAndUpcast: (aiAttributes: Partial<AIAttributes>, dataSet: DataSet, queryEngineConfig: QueryEngineConfig) => Partial<QueryAttributes>;
3
+ import { Component } from '../../../Component/types';
4
+ declare const validateAndUpcast: (aiAttributes: Partial<AIAttributes>, queryEngineConfig: QueryEngineConfig) => Component.Attributes;
6
5
  export default validateAndUpcast;