@vizzly/dashboard 0.11.0 → 0.12.0-dev-e9cb501d005236550d32fd4ffe3eaeb1307996b1

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 (123) hide show
  1. package/dist/charts/src/ScatterChart/ScatterChart.d.ts +1 -1
  2. package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +30 -30
  3. package/dist/dashboard/src/contexts/SessionContext/getStrategy.d.ts +2 -3
  4. package/dist/dashboard/src/contexts/SessionContext/useSessionContext.d.ts +11 -12
  5. package/dist/dashboard/src/contexts/useDashboardStrategy/runStrategy.d.ts +2 -2
  6. package/dist/dashboard/src/contexts/useDashboardStrategy.d.ts +3 -4
  7. package/dist/dashboard/src/index.d.ts +3 -214
  8. package/dist/dashboard/src/sdk.d.ts +0 -79
  9. package/dist/dashboard/src/types.d.ts +4 -4
  10. package/dist/index.js +1 -1
  11. package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
  12. package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
  13. package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
  14. package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +1 -1
  15. package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +1 -1
  16. package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +1 -1
  17. package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +1 -1
  18. package/dist/services/src/Services/Cell.d.ts +65 -0
  19. package/dist/services/src/Services/Dashboard.d.ts +55 -0
  20. package/dist/services/src/Services/Header.d.ts +19 -0
  21. package/dist/services/src/Services/Library.d.ts +43 -0
  22. package/dist/services/src/Services/Row.d.ts +45 -0
  23. package/dist/services/src/Services/View.d.ts +65 -0
  24. package/dist/services/src/errors/ServicesValidationError.d.ts +2 -0
  25. package/dist/services/src/errors/TimeoutWaitingForVizzlyInstance.d.ts +3 -0
  26. package/dist/services/src/errors/VizzlyInstanceNotLoaded.d.ts +3 -0
  27. package/dist/services/src/index.d.ts +125 -0
  28. package/dist/services/src/schemaValidations/cell.d.ts +1 -0
  29. package/dist/services/src/schemaValidations/dashboard.d.ts +4 -0
  30. package/dist/services/src/schemaValidations/filters.d.ts +3 -0
  31. package/dist/services/src/schemaValidations/library.d.ts +2 -0
  32. package/dist/shared-logic/src/Callbacks/types.d.ts +2 -0
  33. package/dist/shared-logic/src/Dashboard/fromRaw.d.ts +4 -0
  34. package/dist/shared-logic/src/Dashboard/types.d.ts +8 -0
  35. package/dist/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +0 -10
  36. package/dist/shared-logic/src/DashboardAPI/dataSets.d.ts +3 -11
  37. package/dist/shared-logic/src/FeatureToggle/types.d.ts +1 -0
  38. package/dist/shared-logic/src/GlobalLibrary/GlobalLibrary.d.ts +1 -0
  39. package/dist/shared-logic/src/GlobalLibrary/fromRaw.d.ts +10 -0
  40. package/dist/shared-logic/src/GlobalLibrary/index.d.ts +2 -0
  41. package/dist/shared-logic/src/GlobalLibrary/types.d.ts +16 -0
  42. package/dist/shared-logic/src/PDFGenerator/generatePNG.d.ts +3 -0
  43. package/dist/shared-logic/src/PDFGenerator/pageBreaks.d.ts +5 -0
  44. package/dist/shared-logic/src/QueryEngineConfig/loadQueryEngineConfig.d.ts +2 -2
  45. package/dist/shared-logic/src/Theme/types.d.ts +1 -0
  46. package/dist/shared-logic/src/Translations/translation.types.d.ts +43 -8
  47. package/dist/shared-logic/src/ViewConfiguration/types.d.ts +4 -0
  48. package/dist/shared-logic/src/api/index.d.ts +15 -35
  49. package/dist/shared-logic/src/api/queryEngine/getTeamMembers.d.ts +2 -2
  50. package/dist/shared-logic/src/errors/LoadingAborted.d.ts +4 -0
  51. package/dist/shared-logic/src/errors/index.d.ts +2 -1
  52. package/dist/shared-logic/src/getVizzly.d.ts +5 -0
  53. package/dist/shared-ui/src/api/useQueryEffect/download.d.ts +1 -1
  54. package/dist/shared-ui/src/base/explorer/Code.d.ts +49 -0
  55. package/dist/shared-ui/src/base/explorer/ExplorerPanel.d.ts +19 -0
  56. package/dist/shared-ui/src/base/explorer/ListOfFeatures.d.ts +25 -0
  57. package/dist/shared-ui/src/base/explorer/MoreIcon.d.ts +2 -0
  58. package/dist/shared-ui/src/base/explorer/ProgrammaticSection/DashboardFiltersSection.d.ts +3 -0
  59. package/dist/shared-ui/src/base/explorer/ProgrammaticSection/OtherSection.d.ts +3 -0
  60. package/dist/shared-ui/src/base/explorer/ProgrammaticSection/ProgrammaticSection.d.ts +10 -0
  61. package/dist/shared-ui/src/base/explorer/StudioWithExplorer.d.ts +11 -0
  62. package/dist/shared-ui/src/base/explorer/ThemeSection/ButtonsExplorer.d.ts +3 -0
  63. package/dist/shared-ui/src/base/explorer/ThemeSection/ChartsExplorer.d.ts +3 -0
  64. package/dist/shared-ui/src/base/explorer/ThemeSection/DashboardExplorer.d.ts +3 -0
  65. package/dist/shared-ui/src/base/explorer/ThemeSection/PanelsSection.d.ts +3 -0
  66. package/dist/shared-ui/src/base/explorer/ThemeSection/ThemeSection.d.ts +10 -0
  67. package/dist/shared-ui/src/base/explorer/ThemeSection/utils.funcs.d.ts +6 -0
  68. package/dist/shared-ui/src/base/explorer/Toggles/DeveloperToolsSection.d.ts +3 -0
  69. package/dist/shared-ui/src/base/explorer/Toggles/FeatureTogglesSection.d.ts +3 -0
  70. package/dist/shared-ui/src/base/explorer/Toggles/TogglesSection.d.ts +13 -0
  71. package/dist/shared-ui/src/base/explorer/functions/index.d.ts +7 -0
  72. package/dist/shared-ui/src/base/explorer/functions/index.test.d.ts +1 -0
  73. package/dist/shared-ui/src/components/Editor/EditorApp.d.ts +3 -0
  74. package/dist/shared-ui/src/components/Modals/ConfirmAddToLibraryModal.d.ts +5 -0
  75. package/dist/shared-ui/src/components/Modals/deleteModal.funcs.d.ts +1 -1
  76. package/dist/shared-ui/src/components/Studio/StudioApp/ComponentOptions.d.ts +2 -0
  77. package/dist/shared-ui/src/components/Studio/constants.d.ts +1 -1
  78. package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +4 -3
  79. package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +15 -1
  80. package/dist/shared-ui/src/hooks/useVizzly.d.ts +32 -0
  81. package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/PercentageModal/buildGroupedFilterValue.d.ts +3 -0
  82. package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/PercentageModal/usePercentageModal.d.ts +2 -0
  83. package/dist/shared-ui/src/library/DataPanel/FilterInput/FilterInputForm.d.ts +1 -0
  84. package/dist/shared-ui/src/library/DataPanel/FilterInput/IndividualFilter.d.ts +1 -0
  85. package/dist/shared-ui/src/library/Editor/EditorComponent.d.ts +10 -0
  86. package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -2
  87. package/dist/shared-ui/src/library/EditorModal.d.ts +4 -0
  88. package/dist/shared-ui/src/library/Library/types.d.ts +1 -0
  89. package/dist/shared-ui/src/library/ResizableRow.d.ts +1 -0
  90. package/dist/shared-ui/src/styles/global.styles.d.ts +2 -0
  91. package/dist/shared-ui/src/styles/styles.fn.d.ts +12 -0
  92. package/package.json +7 -6
  93. package/dist/dashboard/src/contexts/useDashboardAPI.d.ts +0 -36
  94. package/dist/dashboard/src/contexts/useDataConfigurationAndIdentity.d.ts +0 -21
  95. package/dist/dashboard/src/properties/queryEngineConfig.d.ts +0 -3
  96. package/dist/dashboard/src/sdk/Dashboard.d.ts +0 -15
  97. package/dist/dashboard/src/useDashboardManager/createDashboard.d.ts +0 -12
  98. package/dist/dashboard/src/useDashboardManager/deleteDashboard.d.ts +0 -4
  99. package/dist/dashboard/src/useDashboardManager/updateDashboardMeta.d.ts +0 -5
  100. package/dist/dashboard/src/useDashboardManager.d.ts +0 -36
  101. package/dist/shared-logic/src/DashboardAPI/clientDashboardSchema.d.ts +0 -3
  102. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/creating.d.ts +0 -19
  103. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/updating.d.ts +0 -19
  104. package/dist/shared-logic/src/DashboardAPI/dashboardManager.d.ts +0 -9
  105. package/dist/shared-logic/src/api/queryEngine/createDashboard.d.ts +0 -20
  106. package/dist/shared-logic/src/api/queryEngine/multiGetDashboards.d.ts +0 -7
  107. package/dist/shared-logic/src/api/queryEngine/updateDashboard.d.ts +0 -13
  108. package/dist/shared-logic/src/api/vizzly/createDashboard.d.ts +0 -20
  109. package/dist/shared-logic/src/api/vizzly/createDashboardAccess.d.ts +0 -8
  110. package/dist/shared-logic/src/api/vizzly/createQueryEngineUser.d.ts +0 -2
  111. package/dist/shared-logic/src/api/vizzly/getConnection.d.ts +0 -7
  112. package/dist/shared-logic/src/api/vizzly/getProject.d.ts +0 -3
  113. package/dist/shared-logic/src/api/vizzly/getProjects.d.ts +0 -3
  114. package/dist/shared-logic/src/api/vizzly/getQueryEngineUser.d.ts +0 -3
  115. package/dist/shared-logic/src/api/vizzly/getTeamMembers.d.ts +0 -11
  116. package/dist/shared-logic/src/api/vizzly/getVizzlyConfig.d.ts +0 -4
  117. package/dist/shared-logic/src/api/vizzly/multiGetDashboards.d.ts +0 -7
  118. package/dist/shared-logic/src/api/vizzly/multiGetEncryptedDashboards.d.ts +0 -7
  119. package/dist/shared-logic/src/api/vizzly/saveConnection.d.ts +0 -2
  120. package/dist/shared-logic/src/api/vizzly/saveEncryptedProjectEncryptionSecret.d.ts +0 -2
  121. package/dist/shared-logic/src/api/vizzly/updateDashboard.d.ts +0 -20
  122. package/dist/shared-logic/src/api/vizzly/updateQueryEngineUser.d.ts +0 -2
  123. package/dist/shared-ui/src/library/Editor.d.ts +0 -5
@@ -1,27 +1,26 @@
1
- import { useDataConfigurationAndIdentity } from '../useDataConfigurationAndIdentity';
2
1
  import { IdentityConfig } from '../../../../shared-logic/src/IdentityConfig/types';
3
- import { Dashboard, SaveableDashboardDefinition } from '../../../../shared-logic/src/Dashboard/types';
2
+ import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
4
3
  import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
5
- import { api } from '../../../../shared-logic/src/api';
6
4
  import { VizzlyComponents } from '../../../../shared-ui/src/types';
7
- import { DashboardApiInterface } from '../useDashboardAPI';
8
- import { DataSet } from '../../../../shared-logic/src/DataSet/types';
9
5
  import { Mode, Scope } from '../useDashboardStrategy/types';
10
6
  import { TextOverride } from '../../../../shared-logic/src/Translations/types';
7
+ import { ApiConfig } from '../../../../shared-logic/src/ApiConfig';
8
+ import { LoadedVizzlyHook } from '../../../../shared-ui/src/hooks/useVizzly';
9
+ import { VizzlyServicesProperties } from '../../../../services/src';
11
10
  declare type Params = {
12
11
  parentDashboardId: string | undefined;
13
- identityCallback: VizzlyComponents.identityCallback;
14
- loadDataSetsCallback: VizzlyComponents.loadDataSetsCallback;
15
- vizzlyAPI: ReturnType<typeof api>;
12
+ identityCallback: VizzlyServicesProperties['identity'];
13
+ loadDataSetsCallback: VizzlyServicesProperties['dataSets'];
14
+ apiConfig: ApiConfig;
16
15
  dashboardId?: string;
17
16
  implementationMeta: VizzlyComponents.ImplementationMeta;
18
- loadQueryEngineConfigCallback: VizzlyComponents.loadQueryEngineConfigCallback;
19
- programmaticDashboard?: (dataSets: DataSet[]) => Promise<Array<Partial<SaveableDashboardDefinition>>>;
17
+ queryEngine: VizzlyServicesProperties['queryEngine'];
18
+ programmaticDashboard?: VizzlyServicesProperties['programmaticDashboard'];
20
19
  textOverride: TextOverride;
21
20
  };
22
21
  export declare type StillLoading = null;
23
22
  export declare type ErrorProvided = {
24
- error: ReturnType<typeof useDataConfigurationAndIdentity>['error'];
23
+ error: Error;
25
24
  };
26
25
  export declare type SessionSuccessProvidedValues = {
27
26
  mode: Mode;
@@ -30,7 +29,7 @@ export declare type SessionSuccessProvidedValues = {
30
29
  dashboard: Dashboard | null;
31
30
  vizzlyApiConfig: VizzlyComponents.ApiConfig;
32
31
  queryEngineConfig: QueryEngineConfig;
33
- dashboardAPI: DashboardApiInterface;
32
+ vizzly: LoadedVizzlyHook;
34
33
  isProgrammaticParent: boolean;
35
34
  };
36
35
  export declare const useSessionContext: (params: Params) => ErrorProvided | SessionSuccessProvidedValues | StillLoading;
@@ -1,6 +1,6 @@
1
1
  import { Mode, Scope, Strategy } from './types';
2
- import { DashboardApiInterface } from '../useDashboardAPI';
3
- export declare const runStrategy: (strategy: Strategy, dashboardAPI: DashboardApiInterface) => Promise<{
2
+ import { LoadedVizzlyHook } from '../../../../shared-ui/src/hooks/useVizzly';
3
+ export declare const runStrategy: (strategy: Strategy, vizzly: LoadedVizzlyHook) => Promise<{
4
4
  dashboardId: string;
5
5
  mode: Mode;
6
6
  scope: Scope;
@@ -1,6 +1,5 @@
1
- import useDashboardAPI from './useDashboardAPI';
2
1
  import { ProvidedValues, Strategy } from './useDashboardStrategy/types';
3
- import { SaveableDashboardDefinition } from '../../../shared-logic/src/Dashboard';
4
- import { DataSet } from '../../../shared-logic/src/DataSet/types';
5
- declare const useDashboardStrategy: (strategy: Strategy | undefined, dashboardAPI: ReturnType<typeof useDashboardAPI>, programmaticDashboard?: ((dataSets: DataSet[]) => Promise<Array<Partial<SaveableDashboardDefinition>>>) | undefined) => ProvidedValues | null;
2
+ import { useVizzly } from '../../../shared-ui/src/hooks/useVizzly';
3
+ import { programmaticDashboardCallback } from '../../../shared-logic/src/Callbacks/types';
4
+ declare const useDashboardStrategy: (strategy: Strategy | undefined, vizzly: ReturnType<typeof useVizzly>, programmaticDashboard?: programmaticDashboardCallback | undefined) => ProvidedValues | null;
6
5
  export default useDashboardStrategy;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { VizzlyComponents } from '../../shared-ui/src/types';
3
- import { displayPositions, VizzlySDK } from './sdk';
4
- import { useDashboardManager, useInBrowserDashboardManager } from './useDashboardManager';
3
+ import { displayPositions } from './sdk';
5
4
  import * as DataSetField from './sdk/DataSetField';
6
5
  import { Component as ComponentType } from '../../shared-logic/src/Component/types';
7
6
  import NewVizzlyImplementation from '../../shared-logic/src/errors/NewVizzlyImplementation';
@@ -11,216 +10,9 @@ export * from './types';
11
10
  export { vizzlyState, VizzlyState } from '../../shared-logic/src/VizzlyState';
12
11
  import './developerTools';
13
12
  declare const Dashboard: (props: DashboardProps) => JSX.Element;
13
+ export * from '../../shared-ui/src/hooks/useVizzly';
14
14
  declare const _default: {
15
15
  Dashboard: (props: DashboardProps) => JSX.Element;
16
- useDashboardManager: (identity: import("../../shared-logic/src/Callbacks/types").identityCallback, loadQueryEngineConfig: string | import("../../shared-logic/src/Callbacks/types").loadQueryEngineConfigCallback | {
17
- endpoint: string;
18
- dynamicConfig?: Object | undefined;
19
- customHeaders?: (() => {
20
- [headerKey: string]: string;
21
- }) | undefined;
22
- }, defaultParentDashboardId?: string | undefined, vizzlyApiConfigOverride?: import("../../shared-logic/src/ApiConfig").ApiConfig | undefined) => {
23
- VizzlySDK: {
24
- displayPositions: {
25
- FIRST_ROW: number;
26
- SECOND_ROW: number;
27
- THIRD_ROW: number;
28
- FOURTH_ROW: number;
29
- FIFTH_ROW: number;
30
- FIRST_CELL: number;
31
- SECOND_CELL: number;
32
- THIRD_CELL: number;
33
- FOURTH_CELL: number;
34
- FIFTH_CELL: number;
35
- };
36
- Display: {
37
- setComponent: (display: import("../../shared-logic/src/Display/types").Display, component: import("../../shared-logic/src/Component/types").Component<import("../../shared-logic/src/Component/types").Component.Attributes> | import("../../shared-logic/src/Display/types").EmptyCell | import("../../shared-logic/src/Header/types").HeaderComponent, rowIndex: number, cellIndex: number) => import("../../shared-logic/src/Display/types").Display;
38
- newEmptyCell: (colSpan: number) => import("../../shared-logic/src/Display/types").EmptyCell;
39
- initRow: (components: (import("../../shared-logic/src/Component/types").Component<import("../../shared-logic/src/Component/types").Component.Attributes> | import("../../shared-logic/src/Display/types").EmptyCell | import("../../shared-logic/src/Header/types").HeaderComponent)[], height?: number | undefined) => import("../../shared-logic/src/Display/types").DisplayRow;
40
- init: () => import("../../shared-logic/src/Display/types").Display;
41
- };
42
- Dashboard: {
43
- emptyDashboard: () => import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">;
44
- insertRow: <T extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T, rowIndex: number, overrides?: Partial<{
45
- height: number;
46
- }> | undefined) => T;
47
- setComponentOnDisplay: <T_1 extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T_1, componentAttributes: import("../../shared-logic/src/Component/types").Component.Attributes, rowIndex: number, cellIndex: number) => T_1;
48
- listComponentTypesUsed: <T_2 extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T_2) => string[];
49
- appendEmptyCell: <T_3 extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T_3, rowIndex: number) => T_3;
50
- listDataSetIdsUsed: <T_4 extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T_4) => string[];
51
- };
52
- BasicTable: {
53
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.BasicTableAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
54
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.BasicTableAttributes>) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
55
- setFields: (basicTable: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, fieldId: string[]) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
56
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
57
- setDateTimeFormat: (basicTable: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, dateTimeFormat: import("../../shared-logic/src/Field/types").DateTimeFormat) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
58
- };
59
- DataTable: {
60
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.DataTableAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.DataTableAttributes;
61
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.DataTableAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.DataTableAttributes>) => import("../../shared-logic/src/Component/types").Component.DataTableAttributes;
62
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.DataTableAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
63
- };
64
- HorizontalBarChart: {
65
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes;
66
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes>) => import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes;
67
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
68
- };
69
- BarChart: {
70
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.BarChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.BarChartAttributes;
71
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.BarChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.BarChartAttributes>) => import("../../shared-logic/src/Component/types").Component.BarChartAttributes;
72
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.BarChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
73
- };
74
- AreaChart: {
75
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.AreaChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.AreaChartAttributes;
76
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.AreaChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.AreaChartAttributes>) => import("../../shared-logic/src/Component/types").Component.AreaChartAttributes;
77
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.AreaChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
78
- };
79
- SingleStat: {
80
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.SingleStatAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.SingleStatAttributes;
81
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.SingleStatAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.SingleStatAttributes>) => import("../../shared-logic/src/Component/types").Component.SingleStatAttributes;
82
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.SingleStatAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
83
- };
84
- PieChart: {
85
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.PieChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.PieChartAttributes;
86
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.PieChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.PieChartAttributes>) => import("../../shared-logic/src/Component/types").Component.PieChartAttributes;
87
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.PieChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
88
- };
89
- LineChart: {
90
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.LineChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.LineChartAttributes;
91
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.LineChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.LineChartAttributes>) => import("../../shared-logic/src/Component/types").Component.LineChartAttributes;
92
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.LineChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
93
- };
94
- ComboChart: {
95
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.ComboChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.ComboChartAttributes;
96
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.ComboChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.ComboChartAttributes>) => import("../../shared-logic/src/Component/types").Component.ComboChartAttributes;
97
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.ComboChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
98
- };
99
- };
100
- loading: false;
101
- dashboards: import("./sdk").VizzlyDashboard[];
102
- parentDashboards: import("./sdk").VizzlyDashboard[];
103
- allChildDashboards: import("./sdk").VizzlyDashboard[];
104
- getChildDashboards: (parentDashboardId: string) => import("./sdk").VizzlyDashboard[];
105
- createDashboard: import("./useDashboardManager/createDashboard").default;
106
- deleteDashboard: import("./useDashboardManager/deleteDashboard").default;
107
- updateDashboardMeta: import("./useDashboardManager/updateDashboardMeta").default;
108
- isAdmin: boolean;
109
- defaultParentDashboardId: string;
110
- } | {
111
- VizzlySDK: null;
112
- loading: true;
113
- dashboards: import("./sdk").VizzlyDashboard[];
114
- parentDashboards: import("./sdk").VizzlyDashboard[];
115
- allChildDashboards: import("./sdk").VizzlyDashboard[];
116
- getChildDashboards: (parentDashboardId: string) => import("./sdk").VizzlyDashboard[];
117
- createDashboard: import("./useDashboardManager/createDashboard").default;
118
- deleteDashboard: import("./useDashboardManager/deleteDashboard").default;
119
- updateDashboardMeta: import("./useDashboardManager/updateDashboardMeta").default;
120
- isAdmin: boolean;
121
- defaultParentDashboardId: null;
122
- };
123
- useInBrowserDashboardManager: (identity: import("../../shared-logic/src/Callbacks/types").identityCallback, defaultParentDashboardId?: string | undefined, vizzlyApiConfigOverride?: import("../../shared-logic/src/ApiConfig").ApiConfig | undefined) => {
124
- VizzlySDK: {
125
- displayPositions: {
126
- FIRST_ROW: number;
127
- SECOND_ROW: number;
128
- THIRD_ROW: number;
129
- FOURTH_ROW: number;
130
- FIFTH_ROW: number;
131
- FIRST_CELL: number;
132
- SECOND_CELL: number;
133
- THIRD_CELL: number;
134
- FOURTH_CELL: number;
135
- FIFTH_CELL: number;
136
- };
137
- Display: {
138
- setComponent: (display: import("../../shared-logic/src/Display/types").Display, component: import("../../shared-logic/src/Component/types").Component<import("../../shared-logic/src/Component/types").Component.Attributes> | import("../../shared-logic/src/Display/types").EmptyCell | import("../../shared-logic/src/Header/types").HeaderComponent, rowIndex: number, cellIndex: number) => import("../../shared-logic/src/Display/types").Display;
139
- newEmptyCell: (colSpan: number) => import("../../shared-logic/src/Display/types").EmptyCell;
140
- initRow: (components: (import("../../shared-logic/src/Component/types").Component<import("../../shared-logic/src/Component/types").Component.Attributes> | import("../../shared-logic/src/Display/types").EmptyCell | import("../../shared-logic/src/Header/types").HeaderComponent)[], height?: number | undefined) => import("../../shared-logic/src/Display/types").DisplayRow;
141
- init: () => import("../../shared-logic/src/Display/types").Display;
142
- };
143
- Dashboard: {
144
- emptyDashboard: () => import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">;
145
- insertRow: <T extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T, rowIndex: number, overrides?: Partial<{
146
- height: number;
147
- }> | undefined) => T;
148
- setComponentOnDisplay: <T_1 extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T_1, componentAttributes: import("../../shared-logic/src/Component/types").Component.Attributes, rowIndex: number, cellIndex: number) => T_1;
149
- listComponentTypesUsed: <T_2 extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T_2) => string[];
150
- appendEmptyCell: <T_3 extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T_3, rowIndex: number) => T_3;
151
- listDataSetIdsUsed: <T_4 extends import("./sdk").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk").VizzlyDashboard, "id">>(vizzlyDashboard: T_4) => string[];
152
- };
153
- BasicTable: {
154
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.BasicTableAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
155
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.BasicTableAttributes>) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
156
- setFields: (basicTable: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, fieldId: string[]) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
157
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
158
- setDateTimeFormat: (basicTable: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, dateTimeFormat: import("../../shared-logic/src/Field/types").DateTimeFormat) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
159
- };
160
- DataTable: {
161
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.DataTableAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.DataTableAttributes;
162
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.DataTableAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.DataTableAttributes>) => import("../../shared-logic/src/Component/types").Component.DataTableAttributes;
163
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.DataTableAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
164
- };
165
- HorizontalBarChart: {
166
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes;
167
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes>) => import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes;
168
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
169
- };
170
- BarChart: {
171
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.BarChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.BarChartAttributes;
172
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.BarChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.BarChartAttributes>) => import("../../shared-logic/src/Component/types").Component.BarChartAttributes;
173
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.BarChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
174
- };
175
- AreaChart: {
176
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.AreaChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.AreaChartAttributes;
177
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.AreaChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.AreaChartAttributes>) => import("../../shared-logic/src/Component/types").Component.AreaChartAttributes;
178
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.AreaChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
179
- };
180
- SingleStat: {
181
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.SingleStatAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.SingleStatAttributes;
182
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.SingleStatAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.SingleStatAttributes>) => import("../../shared-logic/src/Component/types").Component.SingleStatAttributes;
183
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.SingleStatAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
184
- };
185
- PieChart: {
186
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.PieChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.PieChartAttributes;
187
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.PieChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.PieChartAttributes>) => import("../../shared-logic/src/Component/types").Component.PieChartAttributes;
188
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.PieChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
189
- };
190
- LineChart: {
191
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.LineChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.LineChartAttributes;
192
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.LineChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.LineChartAttributes>) => import("../../shared-logic/src/Component/types").Component.LineChartAttributes;
193
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.LineChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
194
- };
195
- ComboChart: {
196
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.ComboChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.ComboChartAttributes;
197
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.ComboChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.ComboChartAttributes>) => import("../../shared-logic/src/Component/types").Component.ComboChartAttributes;
198
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.ComboChartAttributes, dataSets: import("../../shared-logic/src/DataSet/types").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
199
- };
200
- };
201
- loading: false;
202
- dashboards: import("./sdk").VizzlyDashboard[];
203
- parentDashboards: import("./sdk").VizzlyDashboard[];
204
- allChildDashboards: import("./sdk").VizzlyDashboard[];
205
- getChildDashboards: (parentDashboardId: string) => import("./sdk").VizzlyDashboard[];
206
- createDashboard: import("./useDashboardManager/createDashboard").default;
207
- deleteDashboard: import("./useDashboardManager/deleteDashboard").default;
208
- updateDashboardMeta: import("./useDashboardManager/updateDashboardMeta").default;
209
- isAdmin: boolean;
210
- defaultParentDashboardId: string;
211
- } | {
212
- VizzlySDK: null;
213
- loading: true;
214
- dashboards: import("./sdk").VizzlyDashboard[];
215
- parentDashboards: import("./sdk").VizzlyDashboard[];
216
- allChildDashboards: import("./sdk").VizzlyDashboard[];
217
- getChildDashboards: (parentDashboardId: string) => import("./sdk").VizzlyDashboard[];
218
- createDashboard: import("./useDashboardManager/createDashboard").default;
219
- deleteDashboard: import("./useDashboardManager/deleteDashboard").default;
220
- updateDashboardMeta: import("./useDashboardManager/updateDashboardMeta").default;
221
- isAdmin: boolean;
222
- defaultParentDashboardId: null;
223
- };
224
16
  NewVizzlyImplementation: typeof NewVizzlyImplementation;
225
17
  displayPositions: {
226
18
  FIRST_ROW: number;
@@ -237,10 +29,7 @@ declare const _default: {
237
29
  DataSetField: typeof DataSetField;
238
30
  };
239
31
  export default _default;
240
- export { Dashboard, useDashboardManager, useInBrowserDashboardManager, NewVizzlyImplementation, displayPositions, DataSetField, };
241
- export type { VizzlySDK };
242
- export declare type DashboardManager = ReturnType<typeof useDashboardManager>;
243
- export type { DashboardManagerLoadedState, DashboardManagerLoadingState } from './useDashboardManager';
32
+ export { Dashboard, NewVizzlyImplementation, displayPositions, DataSetField };
244
33
  export type { Query } from '../../shared-logic/src/Query/types';
245
34
  export declare type Result = VizzlyResult | VizzlyResult['content'];
246
35
  export type { DataSet } from '../../shared-logic/src/DataSet/types';
@@ -1,4 +1,3 @@
1
- import { ComponentInterfaceConfig } from '../../shared-logic/src/ComponentInterface/types';
2
1
  export * from './sdk/types';
3
2
  export declare const displayPositions: {
4
3
  FIRST_ROW: number;
@@ -12,81 +11,3 @@ export declare const displayPositions: {
12
11
  FOURTH_CELL: number;
13
12
  FIFTH_CELL: number;
14
13
  };
15
- export declare const loadVizzlySDK: (config: ComponentInterfaceConfig) => {
16
- displayPositions: {
17
- FIRST_ROW: number;
18
- SECOND_ROW: number;
19
- THIRD_ROW: number;
20
- FOURTH_ROW: number;
21
- FIFTH_ROW: number;
22
- FIRST_CELL: number;
23
- SECOND_CELL: number;
24
- THIRD_CELL: number;
25
- FOURTH_CELL: number;
26
- FIFTH_CELL: number;
27
- };
28
- Display: {
29
- setComponent: (display: import("../../shared-logic/src/Display/types").Display, component: import("../../shared-logic/src/Component/types").Component<import("../../shared-logic/src/Component/types").Component.Attributes> | import("../../shared-logic/src/Display/types").EmptyCell | import("../../shared-logic/src/Header/types").HeaderComponent, rowIndex: number, cellIndex: number) => import("../../shared-logic/src/Display/types").Display;
30
- newEmptyCell: (colSpan: number) => import("../../shared-logic/src/Display/types").EmptyCell;
31
- initRow: (components: (import("../../shared-logic/src/Component/types").Component<import("../../shared-logic/src/Component/types").Component.Attributes> | import("../../shared-logic/src/Display/types").EmptyCell | import("../../shared-logic/src/Header/types").HeaderComponent)[], height?: number | undefined) => import("../../shared-logic/src/Display/types").DisplayRow;
32
- init: () => import("../../shared-logic/src/Display/types").Display;
33
- };
34
- Dashboard: {
35
- emptyDashboard: () => import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk/types").VizzlyDashboard, "id">;
36
- insertRow: <T extends import("./sdk/types").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk/types").VizzlyDashboard, "id">>(vizzlyDashboard: T, rowIndex: number, overrides?: Partial<{
37
- height: number;
38
- }> | undefined) => T;
39
- setComponentOnDisplay: <T_1 extends import("./sdk/types").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk/types").VizzlyDashboard, "id">>(vizzlyDashboard: T_1, componentAttributes: import("../../shared-logic/src/Component/types").Component.Attributes, rowIndex: number, cellIndex: number) => T_1;
40
- listComponentTypesUsed: <T_2 extends import("./sdk/types").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk/types").VizzlyDashboard, "id">>(vizzlyDashboard: T_2) => string[];
41
- appendEmptyCell: <T_3 extends import("./sdk/types").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk/types").VizzlyDashboard, "id">>(vizzlyDashboard: T_3, rowIndex: number) => T_3;
42
- listDataSetIdsUsed: <T_4 extends import("./sdk/types").VizzlyDashboard | import("../../shared-logic/src/typeHelpers").PartialBy<import("./sdk/types").VizzlyDashboard, "id">>(vizzlyDashboard: T_4) => string[];
43
- };
44
- BasicTable: {
45
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.BasicTableAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
46
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.BasicTableAttributes>) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
47
- setFields: (basicTable: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, fieldId: string[]) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
48
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
49
- setDateTimeFormat: (basicTable: import("../../shared-logic/src/Component/types").Component.BasicTableAttributes, dateTimeFormat: import("../../shared-logic/src/Field/types").DateTimeFormat) => import("../../shared-logic/src/Component/types").Component.BasicTableAttributes;
50
- };
51
- DataTable: {
52
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.DataTableAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.DataTableAttributes;
53
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.DataTableAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.DataTableAttributes>) => import("../../shared-logic/src/Component/types").Component.DataTableAttributes;
54
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.DataTableAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
55
- };
56
- HorizontalBarChart: {
57
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes;
58
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes>) => import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes;
59
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
60
- };
61
- BarChart: {
62
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.BarChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.BarChartAttributes;
63
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.BarChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.BarChartAttributes>) => import("../../shared-logic/src/Component/types").Component.BarChartAttributes;
64
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.BarChartAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
65
- };
66
- AreaChart: {
67
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.AreaChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.AreaChartAttributes;
68
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.AreaChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.AreaChartAttributes>) => import("../../shared-logic/src/Component/types").Component.AreaChartAttributes;
69
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.AreaChartAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
70
- };
71
- SingleStat: {
72
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.SingleStatAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.SingleStatAttributes;
73
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.SingleStatAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.SingleStatAttributes>) => import("../../shared-logic/src/Component/types").Component.SingleStatAttributes;
74
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.SingleStatAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
75
- };
76
- PieChart: {
77
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.PieChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.PieChartAttributes;
78
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.PieChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.PieChartAttributes>) => import("../../shared-logic/src/Component/types").Component.PieChartAttributes;
79
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.PieChartAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
80
- };
81
- LineChart: {
82
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.LineChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.LineChartAttributes;
83
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.LineChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.LineChartAttributes>) => import("../../shared-logic/src/Component/types").Component.LineChartAttributes;
84
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.LineChartAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
85
- };
86
- ComboChart: {
87
- init: (dataSetId: string, overrides?: Partial<import("../../shared-logic/src/Component/types").Component.ComboChartAttributes> | undefined) => import("../../shared-logic/src/Component/types").Component.ComboChartAttributes;
88
- setAttributes: (original: import("../../shared-logic/src/Component/types").Component.ComboChartAttributes, changes: Partial<import("../../shared-logic/src/Component/types").Component.ComboChartAttributes>) => import("../../shared-logic/src/Component/types").Component.ComboChartAttributes;
89
- validate: (hydrated: import("../../shared-logic/src/Component/types").Component.ComboChartAttributes, dataSets: import(".").DataSet[]) => (import("../../shared-logic/src/errors/CorruptedView").default | import("../../shared-logic/src/errors/FieldNotFoundInDataSet").default | import("../../shared-logic/src/errors/DataSetNotFound").default)[];
90
- };
91
- };
92
- export declare type VizzlySDK = ReturnType<typeof loadVizzlySDK>;
@@ -3,7 +3,7 @@ import { VizzlyComponents, VizzlyTheming, trackEventCallback } from '../../share
3
3
  import { DashboardBehaviour } from '../../shared-ui/src/contexts/DashboardBehaviour/types';
4
4
  import { CustomDriver } from '../../results-driver/src/types';
5
5
  import { QueryEngineEndpoint } from '../../shared-logic/src/QueryEngineConfig/types';
6
- import { DataSetsCallback } from '../../shared-logic/src/DashboardAPI/dataSets';
6
+ import { loadDataSetsCallback } from '../../shared-logic/src/Callbacks/types';
7
7
  export declare type SharedDashboardProps = {
8
8
  vizzlyApiHost?: string;
9
9
  featureToggles?: Partial<DashboardBehaviour['featureToggles']>;
@@ -53,14 +53,14 @@ export declare type SharedDashboardProps = {
53
53
  export declare type CustomDashboardProps = SharedDashboardProps & {
54
54
  runQueries: CustomDriver['runQueries'];
55
55
  identity: VizzlyComponents.identityCallback;
56
- dataSets: DataSetsCallback;
56
+ dataSets: loadDataSetsCallback;
57
57
  queryEngineConfig: VizzlyComponents.loadQueryEngineConfigCallback;
58
58
  data?: never;
59
59
  queryEngineEndpoint?: QueryEngineEndpoint;
60
60
  };
61
61
  export declare type InBrowserDashboardProps = SharedDashboardProps & {
62
62
  identity: VizzlyComponents.identityCallback;
63
- dataSets: DataSetsCallback;
63
+ dataSets: loadDataSetsCallback;
64
64
  data: VizzlyComponents.loadDataCallback;
65
65
  runQueries?: never;
66
66
  queryEngineConfig?: never;
@@ -70,7 +70,7 @@ export declare type SelfHostedDashboardProps = SharedDashboardProps & {
70
70
  queryEngineEndpoint?: QueryEngineEndpoint;
71
71
  identity: VizzlyComponents.identityCallback;
72
72
  runQueries?: never;
73
- dataSets?: DataSetsCallback;
73
+ dataSets?: loadDataSetsCallback;
74
74
  data?: never;
75
75
  queryEngineConfig?: never;
76
76
  };