@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.
- package/dist/charts/src/ScatterChart/ScatterChart.d.ts +1 -1
- package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +30 -30
- package/dist/dashboard/src/contexts/SessionContext/getStrategy.d.ts +2 -3
- package/dist/dashboard/src/contexts/SessionContext/useSessionContext.d.ts +11 -12
- package/dist/dashboard/src/contexts/useDashboardStrategy/runStrategy.d.ts +2 -2
- package/dist/dashboard/src/contexts/useDashboardStrategy.d.ts +3 -4
- package/dist/dashboard/src/index.d.ts +3 -214
- package/dist/dashboard/src/sdk.d.ts +0 -79
- package/dist/dashboard/src/types.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +1 -1
- package/dist/services/src/Services/Cell.d.ts +65 -0
- package/dist/services/src/Services/Dashboard.d.ts +55 -0
- package/dist/services/src/Services/Header.d.ts +19 -0
- package/dist/services/src/Services/Library.d.ts +43 -0
- package/dist/services/src/Services/Row.d.ts +45 -0
- package/dist/services/src/Services/View.d.ts +65 -0
- package/dist/services/src/errors/ServicesValidationError.d.ts +2 -0
- package/dist/services/src/errors/TimeoutWaitingForVizzlyInstance.d.ts +3 -0
- package/dist/services/src/errors/VizzlyInstanceNotLoaded.d.ts +3 -0
- package/dist/services/src/index.d.ts +125 -0
- package/dist/services/src/schemaValidations/cell.d.ts +1 -0
- package/dist/services/src/schemaValidations/dashboard.d.ts +4 -0
- package/dist/services/src/schemaValidations/filters.d.ts +3 -0
- package/dist/services/src/schemaValidations/library.d.ts +2 -0
- package/dist/shared-logic/src/Callbacks/types.d.ts +2 -0
- package/dist/shared-logic/src/Dashboard/fromRaw.d.ts +4 -0
- package/dist/shared-logic/src/Dashboard/types.d.ts +8 -0
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +0 -10
- package/dist/shared-logic/src/DashboardAPI/dataSets.d.ts +3 -11
- package/dist/shared-logic/src/FeatureToggle/types.d.ts +1 -0
- package/dist/shared-logic/src/GlobalLibrary/GlobalLibrary.d.ts +1 -0
- package/dist/shared-logic/src/GlobalLibrary/fromRaw.d.ts +10 -0
- package/dist/shared-logic/src/GlobalLibrary/index.d.ts +2 -0
- package/dist/shared-logic/src/GlobalLibrary/types.d.ts +16 -0
- package/dist/shared-logic/src/PDFGenerator/generatePNG.d.ts +3 -0
- package/dist/shared-logic/src/PDFGenerator/pageBreaks.d.ts +5 -0
- package/dist/shared-logic/src/QueryEngineConfig/loadQueryEngineConfig.d.ts +2 -2
- package/dist/shared-logic/src/Theme/types.d.ts +1 -0
- package/dist/shared-logic/src/Translations/translation.types.d.ts +43 -8
- package/dist/shared-logic/src/ViewConfiguration/types.d.ts +4 -0
- package/dist/shared-logic/src/api/index.d.ts +15 -35
- package/dist/shared-logic/src/api/queryEngine/getTeamMembers.d.ts +2 -2
- package/dist/shared-logic/src/errors/LoadingAborted.d.ts +4 -0
- package/dist/shared-logic/src/errors/index.d.ts +2 -1
- package/dist/shared-logic/src/getVizzly.d.ts +5 -0
- package/dist/shared-ui/src/api/useQueryEffect/download.d.ts +1 -1
- package/dist/shared-ui/src/base/explorer/Code.d.ts +49 -0
- package/dist/shared-ui/src/base/explorer/ExplorerPanel.d.ts +19 -0
- package/dist/shared-ui/src/base/explorer/ListOfFeatures.d.ts +25 -0
- package/dist/shared-ui/src/base/explorer/MoreIcon.d.ts +2 -0
- package/dist/shared-ui/src/base/explorer/ProgrammaticSection/DashboardFiltersSection.d.ts +3 -0
- package/dist/shared-ui/src/base/explorer/ProgrammaticSection/OtherSection.d.ts +3 -0
- package/dist/shared-ui/src/base/explorer/ProgrammaticSection/ProgrammaticSection.d.ts +10 -0
- package/dist/shared-ui/src/base/explorer/StudioWithExplorer.d.ts +11 -0
- package/dist/shared-ui/src/base/explorer/ThemeSection/ButtonsExplorer.d.ts +3 -0
- package/dist/shared-ui/src/base/explorer/ThemeSection/ChartsExplorer.d.ts +3 -0
- package/dist/shared-ui/src/base/explorer/ThemeSection/DashboardExplorer.d.ts +3 -0
- package/dist/shared-ui/src/base/explorer/ThemeSection/PanelsSection.d.ts +3 -0
- package/dist/shared-ui/src/base/explorer/ThemeSection/ThemeSection.d.ts +10 -0
- package/dist/shared-ui/src/base/explorer/ThemeSection/utils.funcs.d.ts +6 -0
- package/dist/shared-ui/src/base/explorer/Toggles/DeveloperToolsSection.d.ts +3 -0
- package/dist/shared-ui/src/base/explorer/Toggles/FeatureTogglesSection.d.ts +3 -0
- package/dist/shared-ui/src/base/explorer/Toggles/TogglesSection.d.ts +13 -0
- package/dist/shared-ui/src/base/explorer/functions/index.d.ts +7 -0
- package/dist/shared-ui/src/base/explorer/functions/index.test.d.ts +1 -0
- package/dist/shared-ui/src/components/Editor/EditorApp.d.ts +3 -0
- package/dist/shared-ui/src/components/Modals/ConfirmAddToLibraryModal.d.ts +5 -0
- package/dist/shared-ui/src/components/Modals/deleteModal.funcs.d.ts +1 -1
- package/dist/shared-ui/src/components/Studio/StudioApp/ComponentOptions.d.ts +2 -0
- package/dist/shared-ui/src/components/Studio/constants.d.ts +1 -1
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +4 -3
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +15 -1
- package/dist/shared-ui/src/hooks/useVizzly.d.ts +32 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/PercentageModal/buildGroupedFilterValue.d.ts +3 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/PercentageModal/usePercentageModal.d.ts +2 -0
- package/dist/shared-ui/src/library/DataPanel/FilterInput/FilterInputForm.d.ts +1 -0
- package/dist/shared-ui/src/library/DataPanel/FilterInput/IndividualFilter.d.ts +1 -0
- package/dist/shared-ui/src/library/Editor/EditorComponent.d.ts +10 -0
- package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -2
- package/dist/shared-ui/src/library/EditorModal.d.ts +4 -0
- package/dist/shared-ui/src/library/Library/types.d.ts +1 -0
- package/dist/shared-ui/src/library/ResizableRow.d.ts +1 -0
- package/dist/shared-ui/src/styles/global.styles.d.ts +2 -0
- package/dist/shared-ui/src/styles/styles.fn.d.ts +12 -0
- package/package.json +7 -6
- package/dist/dashboard/src/contexts/useDashboardAPI.d.ts +0 -36
- package/dist/dashboard/src/contexts/useDataConfigurationAndIdentity.d.ts +0 -21
- package/dist/dashboard/src/properties/queryEngineConfig.d.ts +0 -3
- package/dist/dashboard/src/sdk/Dashboard.d.ts +0 -15
- package/dist/dashboard/src/useDashboardManager/createDashboard.d.ts +0 -12
- package/dist/dashboard/src/useDashboardManager/deleteDashboard.d.ts +0 -4
- package/dist/dashboard/src/useDashboardManager/updateDashboardMeta.d.ts +0 -5
- package/dist/dashboard/src/useDashboardManager.d.ts +0 -36
- package/dist/shared-logic/src/DashboardAPI/clientDashboardSchema.d.ts +0 -3
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI/creating.d.ts +0 -19
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI/updating.d.ts +0 -19
- package/dist/shared-logic/src/DashboardAPI/dashboardManager.d.ts +0 -9
- package/dist/shared-logic/src/api/queryEngine/createDashboard.d.ts +0 -20
- package/dist/shared-logic/src/api/queryEngine/multiGetDashboards.d.ts +0 -7
- package/dist/shared-logic/src/api/queryEngine/updateDashboard.d.ts +0 -13
- package/dist/shared-logic/src/api/vizzly/createDashboard.d.ts +0 -20
- package/dist/shared-logic/src/api/vizzly/createDashboardAccess.d.ts +0 -8
- package/dist/shared-logic/src/api/vizzly/createQueryEngineUser.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/getConnection.d.ts +0 -7
- package/dist/shared-logic/src/api/vizzly/getProject.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/getProjects.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/getQueryEngineUser.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/getTeamMembers.d.ts +0 -11
- package/dist/shared-logic/src/api/vizzly/getVizzlyConfig.d.ts +0 -4
- package/dist/shared-logic/src/api/vizzly/multiGetDashboards.d.ts +0 -7
- package/dist/shared-logic/src/api/vizzly/multiGetEncryptedDashboards.d.ts +0 -7
- package/dist/shared-logic/src/api/vizzly/saveConnection.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/saveEncryptedProjectEncryptionSecret.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/updateDashboard.d.ts +0 -20
- package/dist/shared-logic/src/api/vizzly/updateQueryEngineUser.d.ts +0 -2
- package/dist/shared-ui/src/library/Editor.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("@vizzly/dashboard/src").QueryEngineConfig) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("@vizzly/dashboard/src").QueryEngineConfig) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("@vizzly/dashboard/src").QueryEngineConfig) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("@vizzly/dashboard/src").QueryEngineConfig) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("@vizzly/dashboard/src").QueryEngineConfig) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("@vizzly/dashboard/src").QueryEngineConfig) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet, additionalFilters: import("../../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[], queryEngineConfig: import("@vizzly/dashboard/src").QueryEngineConfig) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
2
|
+
import { AnyView } from './View';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a CellAttributes type.
|
|
5
|
+
* @param component - The component contained within the cell. Optional.
|
|
6
|
+
* @param colSpan - The span of the cell in terms of columns. Defaults to 12.
|
|
7
|
+
* @param localFilters - The local filters of the cell. Optional.
|
|
8
|
+
*/
|
|
9
|
+
export declare type CellAttributes = {
|
|
10
|
+
component?: AnyView;
|
|
11
|
+
colSpan?: number;
|
|
12
|
+
localFilters?: AdditionalFilter[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Represents a cell in a layout, which can contain a component and has a specified column span.
|
|
16
|
+
*/
|
|
17
|
+
export declare class Cell {
|
|
18
|
+
/**
|
|
19
|
+
* The component contained within the cell. It's optional and can be undefined.
|
|
20
|
+
*/
|
|
21
|
+
component: AnyView | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The span of the cell in terms of columns. Defaults to 12.
|
|
24
|
+
*/
|
|
25
|
+
colSpan: number;
|
|
26
|
+
/**
|
|
27
|
+
* The local filters of the cell. Optional.
|
|
28
|
+
*/
|
|
29
|
+
localFilters: AdditionalFilter[] | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Indicates whether the cell is empty. It's either true or undefined.
|
|
32
|
+
*/
|
|
33
|
+
isEmpty: boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new Cell instance.
|
|
36
|
+
*
|
|
37
|
+
* @param attributes The attributes of the cell.
|
|
38
|
+
*/
|
|
39
|
+
constructor(attributes?: CellAttributes);
|
|
40
|
+
/**
|
|
41
|
+
* Sets or updates the cell's component and column span.
|
|
42
|
+
*
|
|
43
|
+
* @param attributes The attributes to be set in the cell.
|
|
44
|
+
*/
|
|
45
|
+
set(attributes: CellAttributes): void;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the column span of the cell.
|
|
48
|
+
*
|
|
49
|
+
* @param colSpan The new column span for the cell. Number should be between 1 and 12.
|
|
50
|
+
*/
|
|
51
|
+
setColSpan(colSpan: number): void;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the component of the cell.
|
|
54
|
+
*
|
|
55
|
+
* @param component The component to be set in the cell.
|
|
56
|
+
*/
|
|
57
|
+
setComponent(component: AnyView): void;
|
|
58
|
+
/**
|
|
59
|
+
* Clears the component from the cell and optionally sets a new column span.
|
|
60
|
+
* Marks the cell as empty.
|
|
61
|
+
*
|
|
62
|
+
* @param colSpan The new column span for the cell. If not provided, defaults to 12.
|
|
63
|
+
*/
|
|
64
|
+
emptyCell(colSpan?: number): void;
|
|
65
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as DashboardTypes from '../../../shared-logic/src/Dashboard/types';
|
|
2
|
+
import { Row } from './Row';
|
|
3
|
+
import { CustomField } from '../../../shared-logic/src/CustomField/types';
|
|
4
|
+
import { Header } from './Header';
|
|
5
|
+
import { Library } from './Library';
|
|
6
|
+
/** Custom fields for a dashboard */
|
|
7
|
+
export declare type CustomFields = {
|
|
8
|
+
[dataSetId: string]: Array<CustomField>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Represents a DashboardAttributes type.
|
|
12
|
+
* @param display - The display configuration for the dashboard.
|
|
13
|
+
* @param customFields - The custom fields of the dashboard.
|
|
14
|
+
* @param library - The component library of the dashboard.
|
|
15
|
+
*/
|
|
16
|
+
export declare type DashboardAttributes = {
|
|
17
|
+
display?: (Row | Header)[];
|
|
18
|
+
customFields?: CustomFields;
|
|
19
|
+
library?: Library;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Represents a Dashboard class.
|
|
23
|
+
*/
|
|
24
|
+
export declare class Dashboard {
|
|
25
|
+
private dashboard;
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new instance of the Dashboard class.
|
|
28
|
+
* @param id - The id of the dashboard.
|
|
29
|
+
* @param attributes - The attributes of the dashboard.
|
|
30
|
+
* @throws Error if the dashboard id is undefined.
|
|
31
|
+
*/
|
|
32
|
+
constructor(id?: string | undefined, attributes?: DashboardAttributes);
|
|
33
|
+
/**
|
|
34
|
+
* Sets the display configuration for the dashboard.
|
|
35
|
+
* @param display - An array of Row or Header objects representing the new
|
|
36
|
+
* display configuration for the dashboard.
|
|
37
|
+
* @throws Error if the dashboard instance is undefined.
|
|
38
|
+
*/
|
|
39
|
+
setDisplay(display: (Row | Header)[]): void;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the custom fields of the dashboard.
|
|
42
|
+
* @param customFields
|
|
43
|
+
*/
|
|
44
|
+
setCustomFields(customFields: CustomFields): void;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the component library of the dashboard.
|
|
47
|
+
* @param library
|
|
48
|
+
*/
|
|
49
|
+
setLibrary(library: Library): void;
|
|
50
|
+
/**
|
|
51
|
+
* Builds a partial DashboardType object.
|
|
52
|
+
* @returns A partial DashboardType object.
|
|
53
|
+
*/
|
|
54
|
+
build(): DashboardTypes.SaveableDashboardDefinition;
|
|
55
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DisplayRow } from '../../../shared-logic/src/Display/types';
|
|
2
|
+
export declare type HeaderRow = DisplayRow[];
|
|
3
|
+
/**
|
|
4
|
+
* Represents a Header class.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Header {
|
|
7
|
+
/** The header component. */
|
|
8
|
+
component: HeaderRow | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Constructs a new instance of the HeaderServices class.
|
|
11
|
+
* @param title - An optional title for the header.
|
|
12
|
+
*/
|
|
13
|
+
constructor(title?: string);
|
|
14
|
+
/**
|
|
15
|
+
* Sets the title of the header.
|
|
16
|
+
* @param title - The title to set.
|
|
17
|
+
*/
|
|
18
|
+
setTitle(title: string): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
2
|
+
import { Cell } from './Cell';
|
|
3
|
+
import * as Views from './View';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a Library class.
|
|
6
|
+
* @param components The `component` instance to be added to the library. `uniqueViewId` of the component, should always be the same and not auto-generated.
|
|
7
|
+
*/
|
|
8
|
+
export declare type LibraryView = {
|
|
9
|
+
component: Views.AnyView;
|
|
10
|
+
uniqueViewId: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class Library {
|
|
13
|
+
/**
|
|
14
|
+
* An array of Cell instances representing the cells in the library.
|
|
15
|
+
*/
|
|
16
|
+
library: Cell[] | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of a Library.
|
|
19
|
+
* @param attributes An optional object containing the attributes of the library.
|
|
20
|
+
* @param components The `component` instance to be added to the library. `uniqueViewId` of the component, should always be the same and not auto-generated.
|
|
21
|
+
*/
|
|
22
|
+
constructor(attributes?: {
|
|
23
|
+
components?: LibraryView[];
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Adds a cell to the library at a specified position or appends it at the end if no position is specified.
|
|
27
|
+
* @param component The Component instance to be added to the library.
|
|
28
|
+
* @param uniqueViewId The unique view id of the component, should always be the same and not auto-generated. The `uniqueViewId` will become the `viewId` of the component.
|
|
29
|
+
* @param attributes An optional object containing the attributes of the cell.
|
|
30
|
+
* @example library.addComponent(Vizzly.AreaChart, "uniqueViewId");
|
|
31
|
+
* @example library.addComponent(Vizzly.AreaChart, "uniqueViewId", { position: 0 });
|
|
32
|
+
*/
|
|
33
|
+
addComponent(component: Views.AnyView, uniqueViewId: string, attributes?: {
|
|
34
|
+
position?: number;
|
|
35
|
+
localFilters?: AdditionalFilter[];
|
|
36
|
+
}): void;
|
|
37
|
+
/**
|
|
38
|
+
* Adds an array of cells to the library.
|
|
39
|
+
* @param components The `component` instance to be added to the library. `uniqueViewId` of the component, should always be the same and not auto-generated.
|
|
40
|
+
*/
|
|
41
|
+
addComponents(components: LibraryView[]): void;
|
|
42
|
+
}
|
|
43
|
+
export declare const mergeInViewId: (component: Views.AnyView, uniqueViewId: string) => Views.AnyView;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Cell } from './Cell';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a Row class.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Row {
|
|
6
|
+
/**
|
|
7
|
+
* An array of Cell instances representing the cells in the row.
|
|
8
|
+
*/
|
|
9
|
+
components: Cell[];
|
|
10
|
+
/**
|
|
11
|
+
* The height of the row, defaulting to 350.
|
|
12
|
+
*/
|
|
13
|
+
height: number | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new instance of a Row.
|
|
16
|
+
* @param components An optional array of Cell instances to initialize the row.
|
|
17
|
+
* @param height An optional height for the row, defaults to 350.
|
|
18
|
+
*/
|
|
19
|
+
constructor(components?: Cell[], height?: number);
|
|
20
|
+
/**
|
|
21
|
+
* Adds a cell to the row at a specified position or appends it at the end if no position is specified.
|
|
22
|
+
*
|
|
23
|
+
* @param component The Cell instance to be added to the row.
|
|
24
|
+
* @param position (Optional) The zero-based index at which to add the cell.
|
|
25
|
+
* If omitted, the cell is added at the end of the row.
|
|
26
|
+
*/
|
|
27
|
+
addCell(component: Cell, position?: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the height of the row.
|
|
30
|
+
* @param height The height to set for the row.
|
|
31
|
+
*/
|
|
32
|
+
setHeight(height: number): void;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the cells and optionally the height of the row.
|
|
35
|
+
* @param components An array of Cell instances.
|
|
36
|
+
*/
|
|
37
|
+
setRow(components: Cell[]): void;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the cells and optionally the height of the row.
|
|
40
|
+
* @param components An array of Cell instances.
|
|
41
|
+
* @param height An optional height to set for the row.
|
|
42
|
+
*/
|
|
43
|
+
set(components: Cell[], height?: number): void;
|
|
44
|
+
private validateTotalColSpan;
|
|
45
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { Component } from '../../../shared-logic/src/Component/types';
|
|
2
|
+
import { ViewConfiguration as ViewConfigurationImported } from '../../../shared-logic/src/ViewConfiguration/types';
|
|
3
|
+
import { Vizzly } from '..';
|
|
4
|
+
export declare type ViewConfiguration = ViewConfigurationImported;
|
|
5
|
+
declare type RequiredAttributes<T extends Component.Attributes> = {
|
|
6
|
+
dataSetId: T['dataSetId'];
|
|
7
|
+
};
|
|
8
|
+
export declare class View<T extends Component.Attributes> {
|
|
9
|
+
attributes: T;
|
|
10
|
+
protected vizzly: Vizzly;
|
|
11
|
+
constructor(attributes: Partial<T> & {
|
|
12
|
+
type: T['type'];
|
|
13
|
+
} & RequiredAttributes<T>);
|
|
14
|
+
updateAttributes(newAttributes: Partial<T>): void;
|
|
15
|
+
}
|
|
16
|
+
export declare type AnyView = AreaChart | LineChart | BarChart | PieChart | ScatterChart | ComboChart | PivotTable | BasicTable | HorizontalBarChart | MercatorMap | SingleStat | Progress;
|
|
17
|
+
export declare class AreaChart extends View<Component.AreaChartAttributes> {
|
|
18
|
+
constructor(attributes: Partial<Component.AreaChartAttributes> & RequiredAttributes<Component.AreaChartAttributes>);
|
|
19
|
+
static type(): Component.AreaChartAttributes['type'];
|
|
20
|
+
}
|
|
21
|
+
export declare class LineChart extends View<Component.LineChartAttributes> {
|
|
22
|
+
constructor(attributes: Partial<Component.LineChartAttributes> & RequiredAttributes<Component.LineChartAttributes>);
|
|
23
|
+
static type(): Component.LineChartAttributes['type'];
|
|
24
|
+
}
|
|
25
|
+
export declare class BarChart extends View<Component.BarChartAttributes> {
|
|
26
|
+
constructor(attributes: Partial<Component.BarChartAttributes> & RequiredAttributes<Component.BarChartAttributes>);
|
|
27
|
+
static type(): Component.BarChartAttributes['type'];
|
|
28
|
+
}
|
|
29
|
+
export declare class PieChart extends View<Component.PieChartAttributes> {
|
|
30
|
+
constructor(attributes: Partial<Component.PieChartAttributes> & RequiredAttributes<Component.PieChartAttributes>);
|
|
31
|
+
static type(): Component.PieChartAttributes['type'];
|
|
32
|
+
}
|
|
33
|
+
export declare class ScatterChart extends View<Component.ScatterChartAttributes> {
|
|
34
|
+
constructor(attributes: Partial<Component.ScatterChartAttributes> & RequiredAttributes<Component.ScatterChartAttributes>);
|
|
35
|
+
static type(): Component.ScatterChartAttributes['type'];
|
|
36
|
+
}
|
|
37
|
+
export declare class ComboChart extends View<Component.ComboChartAttributes> {
|
|
38
|
+
constructor(attributes: Partial<Component.ComboChartAttributes> & RequiredAttributes<Component.ComboChartAttributes>);
|
|
39
|
+
static type(): Component.ComboChartAttributes['type'];
|
|
40
|
+
}
|
|
41
|
+
export declare class PivotTable extends View<Component.DataTableAttributes> {
|
|
42
|
+
constructor(attributes: Partial<Component.DataTableAttributes> & RequiredAttributes<Component.DataTableAttributes>);
|
|
43
|
+
static type(): Component.DataTableAttributes['type'];
|
|
44
|
+
}
|
|
45
|
+
export declare class BasicTable extends View<Component.BasicTableAttributes> {
|
|
46
|
+
constructor(attributes: Partial<Component.BasicTableAttributes> & RequiredAttributes<Component.BasicTableAttributes>);
|
|
47
|
+
static type(): Component.BasicTableAttributes['type'];
|
|
48
|
+
}
|
|
49
|
+
export declare class HorizontalBarChart extends View<Component.HorizontalBarChartAttributes> {
|
|
50
|
+
constructor(attributes: Partial<Component.HorizontalBarChartAttributes> & RequiredAttributes<Component.HorizontalBarChartAttributes>);
|
|
51
|
+
static type(): Component.HorizontalBarChartAttributes['type'];
|
|
52
|
+
}
|
|
53
|
+
export declare class MercatorMap extends View<Component.MercatorMapAttributes> {
|
|
54
|
+
constructor(attributes: Partial<Component.MercatorMapAttributes> & RequiredAttributes<Component.MercatorMapAttributes>);
|
|
55
|
+
static type(): Component.MercatorMapAttributes['type'];
|
|
56
|
+
}
|
|
57
|
+
export declare class SingleStat extends View<Component.SingleStatAttributes> {
|
|
58
|
+
constructor(attributes: Partial<Component.SingleStatAttributes> & RequiredAttributes<Component.SingleStatAttributes>);
|
|
59
|
+
static type(): Component.SingleStatAttributes['type'];
|
|
60
|
+
}
|
|
61
|
+
export declare class Progress extends View<Component.ProgressAttributes> {
|
|
62
|
+
constructor(attributes: Partial<Component.ProgressAttributes> & RequiredAttributes<Component.ProgressAttributes>);
|
|
63
|
+
static type(): Component.ProgressAttributes['type'];
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { QueryEngineConfig, QueryEngineEndpoint } from '../../shared-logic/src/QueryEngineConfig/types';
|
|
2
|
+
import { identityCallback, loadDataSetsCallback, loadQueryEngineConfigCallback, programmaticDashboardCallback } from '../../shared-logic/src/Callbacks/types';
|
|
3
|
+
import { IdentityConfig } from '../../shared-logic/src/IdentityConfig/types';
|
|
4
|
+
import { DashboardStorageStrategy } from '../../shared-logic/src/DashboardAPI/types';
|
|
5
|
+
import { DataSet } from '../../shared-logic/src/DataSet/types';
|
|
6
|
+
import { Dashboard as DashboardFromAPI } from '@vizzly/api-client';
|
|
7
|
+
import * as DashboardLogic from '../../shared-logic/src/Dashboard';
|
|
8
|
+
import * as GlobalLibraryLogic from '../../shared-logic/src/GlobalLibrary';
|
|
9
|
+
import { LoaderOptions } from './VizzlyLoader';
|
|
10
|
+
import { Row } from './Services/Row';
|
|
11
|
+
import { Cell } from './Services/Cell';
|
|
12
|
+
import { Dashboard } from './Services/Dashboard';
|
|
13
|
+
import { Header } from './Services/Header';
|
|
14
|
+
import { Library } from './Services/Library';
|
|
15
|
+
import * as Views from './Services/View';
|
|
16
|
+
import { ViewConfiguration } from '../../shared-logic/src/ViewConfiguration/types';
|
|
17
|
+
export type { ViewConfiguration } from '../../shared-logic/src/ViewConfiguration/types';
|
|
18
|
+
export { VizzlyInstanceNotLoaded } from './errors/VizzlyInstanceNotLoaded';
|
|
19
|
+
export declare type Options = {
|
|
20
|
+
apiHost: string;
|
|
21
|
+
};
|
|
22
|
+
export declare type FilterDashboardOptions = {
|
|
23
|
+
onlyAllowScope?: 'read' | 'read_write';
|
|
24
|
+
onlyChildDashboardsForParent?: string;
|
|
25
|
+
onlyChildDashboards?: boolean;
|
|
26
|
+
onlyParentDashboards?: boolean;
|
|
27
|
+
onlyDashboardsIncludingMetadata?: DashboardLogic.Dashboard['metadata'];
|
|
28
|
+
};
|
|
29
|
+
export declare type VizzlyServicesProperties = {
|
|
30
|
+
queryEngine: 'in-browser' | QueryEngineEndpoint | loadQueryEngineConfigCallback | undefined;
|
|
31
|
+
identity: identityCallback;
|
|
32
|
+
programmaticDashboard?: programmaticDashboardCallback;
|
|
33
|
+
dataSets?: loadDataSetsCallback;
|
|
34
|
+
};
|
|
35
|
+
declare class VizzlyServices {
|
|
36
|
+
private queryEngineConfig;
|
|
37
|
+
private dataSets;
|
|
38
|
+
private identityConfig;
|
|
39
|
+
private vizzlyAPIClient;
|
|
40
|
+
private programmaticDashboard;
|
|
41
|
+
static _instanceStore: {
|
|
42
|
+
[instanceId: string]: VizzlyServices;
|
|
43
|
+
};
|
|
44
|
+
static DEFAULT_INSTANCE_ID: string;
|
|
45
|
+
constructor(identityConfig: IdentityConfig, queryEngineConfig: QueryEngineConfig, dataSets: DataSet[], dashboardStorageStrategy: DashboardStorageStrategy, programmaticDashboard: programmaticDashboardCallback | undefined, options: {
|
|
46
|
+
host: string;
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* @param properties
|
|
50
|
+
* @param options
|
|
51
|
+
* @returns Vizzly instance for programmatically managing dashboards.
|
|
52
|
+
*/
|
|
53
|
+
static load(properties: VizzlyServicesProperties, options?: LoaderOptions): Promise<VizzlyServices>;
|
|
54
|
+
static use(instanceId?: string): VizzlyServices;
|
|
55
|
+
static waitToUse(instanceId?: string, timeoutMs?: number): Promise<any>;
|
|
56
|
+
static clearInstances(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Use the dashboard API to create the dashboard, upcast
|
|
59
|
+
* and return the dashboard with the data sets.
|
|
60
|
+
*/
|
|
61
|
+
createDashboard(params: CreateDashboardParams): Promise<DashboardLogic.Dashboard>;
|
|
62
|
+
updateDashboard(params: UpdateDashboardParams): Promise<DashboardLogic.Dashboard>;
|
|
63
|
+
getDashboards(params?: {
|
|
64
|
+
abortController?: AbortController;
|
|
65
|
+
}): Promise<DashboardLogic.Dashboard[]>;
|
|
66
|
+
getGlobalLibraries(params?: {
|
|
67
|
+
abortController?: AbortController;
|
|
68
|
+
}): Promise<GlobalLibraryLogic.GlobalLibrary[]>;
|
|
69
|
+
/**
|
|
70
|
+
* Provides the configuration needed for each Vizzly view.
|
|
71
|
+
*/
|
|
72
|
+
getViewConfiguration(): ViewConfiguration;
|
|
73
|
+
getIdentityConfig(): IdentityConfig;
|
|
74
|
+
static upcastDashboard(dashboard: DashboardFromAPI, dataSets: DataSet[], queryEngineConfig: QueryEngineConfig): Array<DashboardLogic.Dashboard>;
|
|
75
|
+
static filterDashboards(dashboards: DashboardLogic.Dashboard[], options: FilterDashboardOptions): DashboardLogic.Dashboard[];
|
|
76
|
+
static validateDashboard(dashboard: unknown): void;
|
|
77
|
+
static Row: typeof Row;
|
|
78
|
+
static Cell: typeof Cell;
|
|
79
|
+
static Dashboard: typeof Dashboard;
|
|
80
|
+
static Header: typeof Header;
|
|
81
|
+
static Library: typeof Library;
|
|
82
|
+
static AreaChart: typeof Views.AreaChart;
|
|
83
|
+
static LineChart: typeof Views.LineChart;
|
|
84
|
+
static BarChart: typeof Views.BarChart;
|
|
85
|
+
static PieChart: typeof Views.PieChart;
|
|
86
|
+
static ScatterChart: typeof Views.ScatterChart;
|
|
87
|
+
static ComboChart: typeof Views.ComboChart;
|
|
88
|
+
static PivotTable: typeof Views.PivotTable;
|
|
89
|
+
static BasicTable: typeof Views.BasicTable;
|
|
90
|
+
static HorizontalBarChart: typeof Views.HorizontalBarChart;
|
|
91
|
+
static MercatorMap: typeof Views.MercatorMap;
|
|
92
|
+
static SingleStat: typeof Views.SingleStat;
|
|
93
|
+
static Progress: typeof Views.Progress;
|
|
94
|
+
}
|
|
95
|
+
export declare type UpdateDashboardParams = {
|
|
96
|
+
dashboardId: string;
|
|
97
|
+
definition?: DashboardLogic.SaveableDashboardDefinition;
|
|
98
|
+
deleted?: boolean;
|
|
99
|
+
metadata?: Object;
|
|
100
|
+
/** @deprecated Use metadata instead. */
|
|
101
|
+
meta?: Object;
|
|
102
|
+
abortSignal?: AbortSignal;
|
|
103
|
+
};
|
|
104
|
+
export declare type CreateDashboardParams = {
|
|
105
|
+
definition: DashboardLogic.SaveableDashboardDefinition;
|
|
106
|
+
/** @deprecated - use `metadata` instead */
|
|
107
|
+
meta?: Object;
|
|
108
|
+
/**
|
|
109
|
+
* The metadata for the dashboard.
|
|
110
|
+
*
|
|
111
|
+
* @property {any} meta - The metadata for the dashboard can be set to anything you require.
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
metadata?: Object;
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the parent dashboard.
|
|
117
|
+
*
|
|
118
|
+
* @property {string} parentDashboardId - The ID of the parent dashboard.
|
|
119
|
+
* @default The default parent dashboard ID.
|
|
120
|
+
*/
|
|
121
|
+
parentDashboardId: string;
|
|
122
|
+
abortSignal?: AbortSignal;
|
|
123
|
+
};
|
|
124
|
+
export declare type Vizzly = VizzlyServices;
|
|
125
|
+
export declare const Vizzly: typeof VizzlyServices;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateColSpan(colSpan: number): any;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { QueryEngineConfig } from '../../../shared-logic/src/QueryEngineConfig/types';
|
|
2
|
+
import { CreateDashboardParams, UpdateDashboardParams } from '..';
|
|
3
|
+
export declare const validateCreateDashboardParams: (params: CreateDashboardParams, queryEngineConfig: QueryEngineConfig | undefined) => void;
|
|
4
|
+
export declare const validateUpdateDashboardParams: (params: UpdateDashboardParams, queryEngineConfig: QueryEngineConfig) => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
2
|
+
import { QueryEngineConfig } from '../../../shared-logic/src/QueryEngineConfig/types';
|
|
3
|
+
export declare function validateAndSetLocalFilters(localFilters: AdditionalFilter[], queryEngineConfig: QueryEngineConfig): AdditionalFilter[];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { SaveableDashboardDefinition } from '../Dashboard/types';
|
|
1
2
|
import { DataSet } from '../DataSet/types';
|
|
2
3
|
import { IdentityConfig } from '../IdentityConfig/types';
|
|
3
4
|
import { DataMap } from '../JSQueryEngine/types';
|
|
4
5
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
5
6
|
declare type CallbackError = null;
|
|
7
|
+
export declare type programmaticDashboardCallback = (dataSets: DataSet[]) => Promise<Array<Partial<SaveableDashboardDefinition>>>;
|
|
6
8
|
export declare type loadDataSetsCallback = (identityConfig: IdentityConfig, queryEngineConfig: QueryEngineConfig) => Promise<Array<DataSet>>;
|
|
7
9
|
export declare type IdentityTokens = {
|
|
8
10
|
dashboardAccessToken: string;
|
|
@@ -14,5 +14,9 @@ export declare type RawDashboard<Definition = RawDefinition> = {
|
|
|
14
14
|
updated_at: string;
|
|
15
15
|
metadata?: Dashboard.ExternalMetadata;
|
|
16
16
|
webhook_id: string | null;
|
|
17
|
+
permission: {
|
|
18
|
+
scope: 'read' | 'read_write';
|
|
19
|
+
token: string;
|
|
20
|
+
};
|
|
17
21
|
};
|
|
18
22
|
export declare const fromRaw: (rawDashboard: RawDashboard, queryEngineConfig: QueryEngineConfig | undefined) => Omit<Dashboard, 'dataSets'>;
|
|
@@ -13,6 +13,9 @@ export declare type Dashboard = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
parentDashboardId: string | null;
|
|
15
15
|
metadata: Dashboard.ExternalMetadata;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
16
19
|
theme: StoredTheme;
|
|
17
20
|
display: Display;
|
|
18
21
|
webhookId: string | null;
|
|
@@ -23,8 +26,13 @@ export declare type Dashboard = {
|
|
|
23
26
|
isPlayground: boolean;
|
|
24
27
|
createdAt: Date;
|
|
25
28
|
updatedAt: Date;
|
|
29
|
+
/** @deprecated */
|
|
26
30
|
protectedByOrganisation?: boolean;
|
|
27
31
|
isProgrammatic?: boolean;
|
|
32
|
+
permission?: {
|
|
33
|
+
scope: 'read' | 'read_write';
|
|
34
|
+
token: string;
|
|
35
|
+
};
|
|
28
36
|
};
|
|
29
37
|
export declare type SaveableDashboardDefinition = {
|
|
30
38
|
display: DisplayDumped;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import { DataSet } from '../DataSet/types';
|
|
2
|
-
import { DashboardPermission as DashboardPermissionType } from '../../../shared-logic/src/DashboardPermission/types';
|
|
3
1
|
import { Dashboard as DashboardType } from '../../../shared-logic/src/Dashboard/types';
|
|
4
2
|
import { QueryEngineConfig, QueryEngineEndpoint } from '../QueryEngineConfig/types';
|
|
5
|
-
import { api } from '../api';
|
|
6
3
|
import { IdentityConfig as IdentityConfigType } from '../../../shared-logic/src/IdentityConfig/types';
|
|
7
4
|
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[], queryEngineConfig: QueryEngineConfig | undefined): DashboardType[];
|
|
13
|
-
export declare function fetchDashboards(dashboardStorageStrategy: DashboardStorageStrategy, vizzlyAPI: ReturnType<typeof api>, dashboardAccessTokens: string[], abortController: AbortController): Promise<import("../api/vizzly/multiGetDashboards").Response>;
|
|
14
5
|
export declare const DEFAULT_STRATEGY: DashboardStorageStrategy;
|
|
15
6
|
export declare const getDashboardStorageStrategy: (queryEngineEndpoint: Function | QueryEngineEndpoint | undefined, queryEngineConfig: QueryEngineConfig | undefined) => DashboardStorageStrategy;
|
|
16
7
|
export declare const getDefaultParentDashboardId: (parentDashboardId: string | undefined, parentDashboardIdOnDashboardAccessToken: IdentityConfigType['dashboardAccess']['dashboardId'], dashboards: Array<DashboardType>) => string;
|
|
17
|
-
export declare function buildDashboardAccessTokens(permissions: DashboardPermissionType[]): string[];
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import Joi from '@vizzly/joi';
|
|
2
|
-
import { loadDataSetsCallback } from '../../../shared-logic/src/Callbacks/types';
|
|
3
|
-
import {
|
|
4
|
-
import { DataSet } from '../DataSet/types';
|
|
5
|
-
export declare type DataSetsCallback = (identityConfig: IdentityConfig) => Promise<Array<DataSet> | null>;
|
|
2
|
+
import { loadDataSetsCallback, loadQueryEngineConfigCallback } from '../../../shared-logic/src/Callbacks/types';
|
|
3
|
+
import { QueryEngineEndpoint } from '../../../shared-logic/src/QueryEngineConfig/types';
|
|
6
4
|
export interface Property {
|
|
7
5
|
schema: Joi.Schema;
|
|
8
6
|
}
|
|
9
7
|
declare const dataSets: Property;
|
|
10
8
|
export default dataSets;
|
|
11
|
-
export declare const withReturnValidation: (dataSets
|
|
12
|
-
endpoint: string;
|
|
13
|
-
dynamicConfig?: Object | undefined;
|
|
14
|
-
customHeaders?: (() => {
|
|
15
|
-
[headerKey: string]: string;
|
|
16
|
-
}) | undefined;
|
|
17
|
-
} | undefined) => loadDataSetsCallback;
|
|
9
|
+
export declare const withReturnValidation: (dataSets: loadDataSetsCallback | undefined, queryEngineEndpoint: QueryEngineEndpoint | loadQueryEngineConfigCallback | undefined) => loadDataSetsCallback;
|