@vizzly/services 0.15.0-dev-a9cfd8f38d3df28a319ca965d6e9d29e227fe3fe → 0.15.0-dev-89f22e757a24a3586c300b3ebb6b29827e8cc0e8
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/types/services/src/Services/Cell.d.ts +65 -0
- package/dist/types/services/src/Services/Dashboard.d.ts +55 -0
- package/dist/types/services/src/Services/Editor.d.ts +25 -0
- package/dist/types/services/src/Services/Header.d.ts +19 -0
- package/dist/types/services/src/Services/Library.d.ts +43 -0
- package/dist/types/services/src/Services/Row.d.ts +45 -0
- package/dist/types/services/src/Services/View.d.ts +85 -0
- package/dist/types/services/src/Services/index.d.ts +7 -0
- package/dist/types/services/src/VizzlyLoader.d.ts +46 -0
- package/dist/types/services/src/errors/ServicesValidationError.d.ts +2 -0
- package/dist/types/services/src/errors/TimeoutWaitingForVizzlyInstance.d.ts +3 -0
- package/dist/types/services/src/errors/VizzlyInstanceNotLoaded.d.ts +3 -0
- package/dist/types/services/src/eventbus.types.d.ts +28 -0
- package/dist/types/services/src/index.d.ts +183 -0
- package/dist/types/services/src/schemaValidations/cell.d.ts +1 -0
- package/dist/types/services/src/schemaValidations/dashboard.d.ts +6 -0
- package/dist/types/services/src/schemaValidations/filters.d.ts +3 -0
- package/dist/types/services/src/schemaValidations/index.d.ts +2 -0
- package/dist/types/services/src/schemaValidations/library.d.ts +2 -0
- package/dist/types/services/src/schemaValidations/query.d.ts +3 -0
- package/dist/types/shared-logic/src/AI/types.d.ts +31 -0
- package/dist/types/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +48 -0
- package/dist/types/shared-logic/src/AdditionalFilter/FilterConfig.d.ts +15 -0
- package/dist/types/shared-logic/src/AdditionalFilter/constants.d.ts +16 -0
- package/dist/types/shared-logic/src/AdditionalFilter/filterHelpers.d.ts +1 -0
- package/dist/types/shared-logic/src/AdditionalFilter/fromDashboardRequiredFilterGroups.d.ts +12 -0
- package/dist/types/shared-logic/src/AdditionalFilter/index.d.ts +3 -0
- package/dist/types/shared-logic/src/AdditionalFilter/schema.d.ts +6 -0
- package/dist/types/shared-logic/src/AdditionalFilter/toQueryAttributesFilter.d.ts +4 -0
- package/dist/types/shared-logic/src/AdditionalFilter/types.d.ts +119 -0
- package/dist/types/shared-logic/src/AdditionalFilter/validate.d.ts +3 -0
- package/dist/types/shared-logic/src/Aggregate/Aggregate.d.ts +9 -0
- package/dist/types/shared-logic/src/Aggregate/constants.d.ts +1 -0
- package/dist/types/shared-logic/src/Aggregate/index.d.ts +2 -0
- package/dist/types/shared-logic/src/Aggregate/types.d.ts +8 -0
- package/dist/types/shared-logic/src/AliasFields/types.d.ts +5 -0
- package/dist/types/shared-logic/src/ApiConfig/ApiConfig.d.ts +8 -0
- package/dist/types/shared-logic/src/ApiConfig/index.d.ts +1 -0
- package/dist/types/shared-logic/src/ApiResource/index.d.ts +7 -0
- package/dist/types/shared-logic/src/AreaChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/AreaChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/AreaChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/AreaChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/AreaChartV2/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/AreaChartV2/buildAreaChartRepresentation.d.ts +40 -0
- package/dist/types/shared-logic/src/AreaChartV2/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/AreaChartV2/index.d.ts +4 -0
- package/dist/types/shared-logic/src/AreaChartV2/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/AreaChartV2/types.d.ts +12 -0
- package/dist/types/shared-logic/src/BarChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/BarChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/BarChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/BarChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/BarChartV2/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/BarChartV2/buildBarChartRepresentation.d.ts +41 -0
- package/dist/types/shared-logic/src/BarChartV2/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/BarChartV2/index.d.ts +4 -0
- package/dist/types/shared-logic/src/BarChartV2/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/BarChartV2/types.d.ts +10 -0
- package/dist/types/shared-logic/src/Base64/index.d.ts +3 -0
- package/dist/types/shared-logic/src/BasicTable/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/BasicTable/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/BasicTable/index.d.ts +9 -0
- package/dist/types/shared-logic/src/BasicTable/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/BubbleChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/BubbleChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/BubbleChart/getAxisFormattingFunction.d.ts +13 -0
- package/dist/types/shared-logic/src/BubbleChart/getConditionalFormatting.d.ts +7 -0
- package/dist/types/shared-logic/src/BubbleChart/getGoalLines.d.ts +8 -0
- package/dist/types/shared-logic/src/BubbleChart/getMinAndMax.d.ts +15 -0
- package/dist/types/shared-logic/src/BubbleChart/getScaleAndTicks.d.ts +42 -0
- package/dist/types/shared-logic/src/BubbleChart/getStyleDefinition.d.ts +8 -0
- package/dist/types/shared-logic/src/BubbleChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/BubbleChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/BubbleChart/types.d.ts +86 -0
- package/dist/types/shared-logic/src/BubbleChartV2/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +38 -0
- package/dist/types/shared-logic/src/BubbleChartV2/buildTrendAndForecast.d.ts +25 -0
- package/dist/types/shared-logic/src/BubbleChartV2/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/BubbleChartV2/getConditionalFormatting.d.ts +7 -0
- package/dist/types/shared-logic/src/BubbleChartV2/getGoalLines.d.ts +8 -0
- package/dist/types/shared-logic/src/BubbleChartV2/getMinAndMax.d.ts +15 -0
- package/dist/types/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +43 -0
- package/dist/types/shared-logic/src/BubbleChartV2/getStyleDefinition.d.ts +8 -0
- package/dist/types/shared-logic/src/BubbleChartV2/getTrendsAndForecastsData.d.ts +41 -0
- package/dist/types/shared-logic/src/BubbleChartV2/index.d.ts +4 -0
- package/dist/types/shared-logic/src/BubbleChartV2/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/BubbleChartV2/types.d.ts +89 -0
- package/dist/types/shared-logic/src/Callbacks/cell.funcs.d.ts +72 -0
- package/dist/types/shared-logic/src/Callbacks/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Callbacks/labelFormat.d.ts +3 -0
- package/dist/types/shared-logic/src/Callbacks/onViewClickGrouping.d.ts +6 -0
- package/dist/types/shared-logic/src/Callbacks/types.d.ts +18 -0
- package/dist/types/shared-logic/src/ChartsV2/adjustTicks.d.ts +12 -0
- package/dist/types/shared-logic/src/ChartsV2/buildFieldFormatMaps.d.ts +12 -0
- package/dist/types/shared-logic/src/ChartsV2/buildTrendAndForecast.d.ts +25 -0
- package/dist/types/shared-logic/src/ChartsV2/convertToStackedPercentages.d.ts +1 -0
- package/dist/types/shared-logic/src/ChartsV2/fillMissingKeysForChartData.d.ts +4 -0
- package/dist/types/shared-logic/src/ChartsV2/formattingFunctionAxis.d.ts +2 -0
- package/dist/types/shared-logic/src/ChartsV2/getConditionalFormatting.d.ts +7 -0
- package/dist/types/shared-logic/src/ChartsV2/getGoalLines.d.ts +8 -0
- package/dist/types/shared-logic/src/ChartsV2/getMetricAxisTicks.d.ts +25 -0
- package/dist/types/shared-logic/src/ChartsV2/getStackedMinAndMax.d.ts +16 -0
- package/dist/types/shared-logic/src/ChartsV2/getStackedPercentageAxisTicks.d.ts +2 -0
- package/dist/types/shared-logic/src/ChartsV2/getStackedPercentageScaleLinearDomain.d.ts +1 -0
- package/dist/types/shared-logic/src/ChartsV2/getStackedPercentageTickValues.d.ts +1 -0
- package/dist/types/shared-logic/src/ChartsV2/getStackedScaleAndTicks.d.ts +42 -0
- package/dist/types/shared-logic/src/ChartsV2/getStyleDefinition.d.ts +9 -0
- package/dist/types/shared-logic/src/ChartsV2/getTrendsAndForecastsData.d.ts +41 -0
- package/dist/types/shared-logic/src/ChartsV2/getXKeyField.d.ts +3 -0
- package/dist/types/shared-logic/src/ChartsV2/types.d.ts +97 -0
- package/dist/types/shared-logic/src/ComboChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/ComboChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/ComboChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/ComboChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/ComboChart/upcast.d.ts +2 -0
- package/dist/types/shared-logic/src/ComboChartV2/adjustColors.d.ts +1 -0
- package/dist/types/shared-logic/src/ComboChartV2/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/ComboChartV2/buildComboChartRepresentation.d.ts +55 -0
- package/dist/types/shared-logic/src/ComboChartV2/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/ComboChartV2/index.d.ts +4 -0
- package/dist/types/shared-logic/src/ComboChartV2/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/ComboChartV2/types.d.ts +21 -0
- package/dist/types/shared-logic/src/Component/Component.d.ts +11 -0
- package/dist/types/shared-logic/src/Component/allViewConstants.d.ts +1 -0
- package/dist/types/shared-logic/src/Component/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/Component/constants.d.ts +4 -0
- package/dist/types/shared-logic/src/Component/dumpable.d.ts +11 -0
- package/dist/types/shared-logic/src/Component/getGroupingWithTimeDimension.d.ts +5 -0
- package/dist/types/shared-logic/src/Component/index.d.ts +4 -0
- package/dist/types/shared-logic/src/Component/mergeAttributes.d.ts +2 -0
- package/dist/types/shared-logic/src/Component/onChangeTypes.d.ts +29 -0
- package/dist/types/shared-logic/src/Component/removeField.d.ts +10 -0
- package/dist/types/shared-logic/src/Component/saveable.d.ts +2 -0
- package/dist/types/shared-logic/src/Component/setAttributes.d.ts +11 -0
- package/dist/types/shared-logic/src/Component/sharedSchemas.d.ts +58 -0
- package/dist/types/shared-logic/src/Component/splitTimeDimensionFromGrouping.d.ts +4 -0
- package/dist/types/shared-logic/src/Component/types.d.ts +642 -0
- package/dist/types/shared-logic/src/Component/upcast.d.ts +3 -0
- package/dist/types/shared-logic/src/Component/usedFields.d.ts +10 -0
- package/dist/types/shared-logic/src/Component/validateView.d.ts +6 -0
- package/dist/types/shared-logic/src/ComponentInterface/constants.d.ts +63 -0
- package/dist/types/shared-logic/src/ComponentInterface/namespaces.d.ts +3 -0
- package/dist/types/shared-logic/src/ComponentInterface/setDataAttributesFromPreAggregatedDataSet.d.ts +3 -0
- package/dist/types/shared-logic/src/ComponentInterface/types/ComponentInterfaceConfig.d.ts +18 -0
- package/dist/types/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +124 -0
- package/dist/types/shared-logic/src/ComponentInterface/types.d.ts +45 -0
- package/dist/types/shared-logic/src/ConditionalFormatting/ConditionalFormatting.d.ts +9 -0
- package/dist/types/shared-logic/src/ConditionalFormatting/attributesSchema.d.ts +5 -0
- package/dist/types/shared-logic/src/ConditionalFormatting/index.d.ts +1 -0
- package/dist/types/shared-logic/src/ConditionalFormatting/utils.d.ts +7 -0
- package/dist/types/shared-logic/src/CustomField/AggregateMath/index.d.ts +7 -0
- package/dist/types/shared-logic/src/CustomField/AliasField/index.d.ts +7 -0
- package/dist/types/shared-logic/src/CustomField/Conditional/index.d.ts +8 -0
- package/dist/types/shared-logic/src/CustomField/CustomField.d.ts +23 -0
- package/dist/types/shared-logic/src/CustomField/CustomMetric/__mocks__/mockDataSet.d.ts +2 -0
- package/dist/types/shared-logic/src/CustomField/CustomMetric/build.d.ts +7 -0
- package/dist/types/shared-logic/src/CustomField/CustomMetric/combineForCustomMetricFilters.d.ts +2 -0
- package/dist/types/shared-logic/src/CustomField/CustomMetric/index.d.ts +3 -0
- package/dist/types/shared-logic/src/CustomField/CustomMetric/init.d.ts +4 -0
- package/dist/types/shared-logic/src/CustomField/CustomMetric/types.d.ts +47 -0
- package/dist/types/shared-logic/src/CustomField/CustomMetric/validate.d.ts +2 -0
- package/dist/types/shared-logic/src/CustomField/DateCalculation/index.d.ts +7 -0
- package/dist/types/shared-logic/src/CustomField/Percentage/index.d.ts +16 -0
- package/dist/types/shared-logic/src/CustomField/RoundedNumber/index.d.ts +7 -0
- package/dist/types/shared-logic/src/CustomField/Rules/index.d.ts +10 -0
- package/dist/types/shared-logic/src/CustomField/Rules/types.d.ts +5 -0
- package/dist/types/shared-logic/src/CustomField/SimpleMath/index.d.ts +11 -0
- package/dist/types/shared-logic/src/CustomField/constants.d.ts +15 -0
- package/dist/types/shared-logic/src/CustomField/index.d.ts +10 -0
- package/dist/types/shared-logic/src/CustomField/metricValuesHaveAggregates.d.ts +2 -0
- package/dist/types/shared-logic/src/CustomField/types.d.ts +88 -0
- package/dist/types/shared-logic/src/CustomField/upcast.d.ts +2 -0
- package/dist/types/shared-logic/src/CustomView/CustomView.d.ts +5 -0
- package/dist/types/shared-logic/src/CustomView/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/CustomView/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/CustomView/index.d.ts +5 -0
- package/dist/types/shared-logic/src/CustomView/types.d.ts +29 -0
- package/dist/types/shared-logic/src/Dashboard/Dashboard.d.ts +39 -0
- package/dist/types/shared-logic/src/Dashboard/fromRaw.d.ts +23 -0
- package/dist/types/shared-logic/src/Dashboard/index.d.ts +2 -0
- package/dist/types/shared-logic/src/Dashboard/saveableDashboardDefinitionSchema.d.ts +5 -0
- package/dist/types/shared-logic/src/Dashboard/types.d.ts +50 -0
- package/dist/types/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +7 -0
- package/dist/types/shared-logic/src/DashboardAPI/dataConfigurationAndIdentity.d.ts +7 -0
- package/dist/types/shared-logic/src/DashboardAPI/dataSets.d.ts +10 -0
- package/dist/types/shared-logic/src/DashboardAPI/getDashboardAdminOverride.d.ts +1 -0
- package/dist/types/shared-logic/src/DashboardAPI/types.d.ts +18 -0
- package/dist/types/shared-logic/src/DashboardPermission/index.d.ts +7 -0
- package/dist/types/shared-logic/src/DashboardPermission/types.d.ts +12 -0
- package/dist/types/shared-logic/src/DashboardSession/types.d.ts +9 -0
- package/dist/types/shared-logic/src/DataIngest/types.d.ts +10 -0
- package/dist/types/shared-logic/src/DataLabel/index.d.ts +17 -0
- package/dist/types/shared-logic/src/DataPanelConfig/types.d.ts +45 -0
- package/dist/types/shared-logic/src/DataSet/DataSet.d.ts +45 -0
- package/dist/types/shared-logic/src/DataSet/fieldFilterOptions.d.ts +17 -0
- package/dist/types/shared-logic/src/DataSet/filterFields.d.ts +3 -0
- package/dist/types/shared-logic/src/DataSet/index.d.ts +3 -0
- package/dist/types/shared-logic/src/DataSet/newField.d.ts +15 -0
- package/dist/types/shared-logic/src/DataSet/types.d.ts +19 -0
- package/dist/types/shared-logic/src/DataTable/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/DataTable/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/DataTable/index.d.ts +4 -0
- package/dist/types/shared-logic/src/DataTable/resultToPivotTableRepresentation.d.ts +7 -0
- package/dist/types/shared-logic/src/DataTable/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/DataTable/shared.contants.d.ts +1 -0
- package/dist/types/shared-logic/src/DataTable/types.d.ts +26 -0
- package/dist/types/shared-logic/src/DateTime/DateTimeFilterOptions.d.ts +105 -0
- package/dist/types/shared-logic/src/DateTime/types.d.ts +10 -0
- package/dist/types/shared-logic/src/DateTimeField/DateTimeField.d.ts +2 -0
- package/dist/types/shared-logic/src/DatumKey/DatumKey.d.ts +15 -0
- package/dist/types/shared-logic/src/DatumKey/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Dimension/Dimension.d.ts +6 -0
- package/dist/types/shared-logic/src/Dimension/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Display/Display.d.ts +23 -0
- package/dist/types/shared-logic/src/Display/dumpable.d.ts +5 -0
- package/dist/types/shared-logic/src/Display/index.d.ts +2 -0
- package/dist/types/shared-logic/src/Display/removeAllFieldReferences.d.ts +3 -0
- package/dist/types/shared-logic/src/Display/types.d.ts +15 -0
- package/dist/types/shared-logic/src/Display/upcast.d.ts +7 -0
- package/dist/types/shared-logic/src/Documentation/index.d.ts +3 -0
- package/dist/types/shared-logic/src/Documentation/joiToAiDefinition.d.ts +5 -0
- package/dist/types/shared-logic/src/Documentation/joiToDocumentation.d.ts +4 -0
- package/dist/types/shared-logic/src/Documentation/joiToSchemaDefinition.d.ts +2 -0
- package/dist/types/shared-logic/src/Downloads/downloadToJSON.d.ts +4 -0
- package/dist/types/shared-logic/src/Downloads/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Drilldown/Drilldown.d.ts +30 -0
- package/dist/types/shared-logic/src/Drilldown/schema.d.ts +3 -0
- package/dist/types/shared-logic/src/Dumpable.d.ts +5 -0
- package/dist/types/shared-logic/src/FeatureToggle/FeatureToggle.d.ts +4 -0
- package/dist/types/shared-logic/src/FeatureToggle/index.d.ts +1 -0
- package/dist/types/shared-logic/src/FeatureToggle/types.d.ts +46 -0
- package/dist/types/shared-logic/src/Field/Field.d.ts +102 -0
- package/dist/types/shared-logic/src/Field/attributesSchema.d.ts +2 -0
- package/dist/types/shared-logic/src/Field/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Field/types.d.ts +26 -0
- package/dist/types/shared-logic/src/Filter/Filter.d.ts +26 -0
- package/dist/types/shared-logic/src/Filter/combineFilters.d.ts +2 -0
- package/dist/types/shared-logic/src/Filter/index.d.ts +2 -0
- package/dist/types/shared-logic/src/Filter/relative.d.ts +55 -0
- package/dist/types/shared-logic/src/Filter/types.d.ts +7 -0
- package/dist/types/shared-logic/src/FormatPanelConfig/types.d.ts +48 -0
- package/dist/types/shared-logic/src/FormattingRule/types.d.ts +1 -0
- package/dist/types/shared-logic/src/Functions/types.d.ts +8 -0
- package/dist/types/shared-logic/src/FunnelChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/FunnelChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/FunnelChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/aggregateMathsField.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/chunk.d.ts +1 -0
- package/dist/types/shared-logic/src/Generate/conditionalPercentageField.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/customFields.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/dateCalculationField.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/dimension.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/filter.d.ts +5 -0
- package/dist/types/shared-logic/src/Generate/measures.d.ts +5 -0
- package/dist/types/shared-logic/src/Generate/order.d.ts +5 -0
- package/dist/types/shared-logic/src/Generate/query.d.ts +10 -0
- package/dist/types/shared-logic/src/Generate/roundedNumberField.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/rulesField.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/seededShuffle.d.ts +2 -0
- package/dist/types/shared-logic/src/Generate/simpleMathsFields.d.ts +4 -0
- package/dist/types/shared-logic/src/Generate/timeDimension.d.ts +5 -0
- package/dist/types/shared-logic/src/GlobalFilter/index.d.ts +4 -0
- package/dist/types/shared-logic/src/GlobalFilter/types.d.ts +27 -0
- package/dist/types/shared-logic/src/GlobalLibrary/GlobalLibrary.d.ts +1 -0
- package/dist/types/shared-logic/src/GlobalLibrary/fromRaw.d.ts +10 -0
- package/dist/types/shared-logic/src/GlobalLibrary/getStrategy.d.ts +4 -0
- package/dist/types/shared-logic/src/GlobalLibrary/globalLibraries.d.ts +10 -0
- package/dist/types/shared-logic/src/GlobalLibrary/index.d.ts +4 -0
- package/dist/types/shared-logic/src/GlobalLibrary/types.d.ts +19 -0
- package/dist/types/shared-logic/src/GlobalLibrary/validation.d.ts +3 -0
- package/dist/types/shared-logic/src/Header/index.d.ts +7 -0
- package/dist/types/shared-logic/src/Header/schema.d.ts +2 -0
- package/dist/types/shared-logic/src/Header/types.d.ts +4 -0
- package/dist/types/shared-logic/src/Headline/headline.utils.d.ts +10 -0
- package/dist/types/shared-logic/src/Headline/upcast.d.ts +3 -0
- package/dist/types/shared-logic/src/HorizontalBarChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/HorizontalBarChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/HorizontalBarChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/HorizontalBarChartV2/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/HorizontalBarChartV2/buildHorizontalBarChartRepresentation.d.ts +41 -0
- package/dist/types/shared-logic/src/HorizontalBarChartV2/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/HorizontalBarChartV2/index.d.ts +4 -0
- package/dist/types/shared-logic/src/HorizontalBarChartV2/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/HorizontalBarChartV2/types.d.ts +41 -0
- package/dist/types/shared-logic/src/IdentityConfig/IdentityConfig.d.ts +4 -0
- package/dist/types/shared-logic/src/IdentityConfig/index.d.ts +1 -0
- package/dist/types/shared-logic/src/IdentityConfig/types.d.ts +45 -0
- package/dist/types/shared-logic/src/InstantDashboardProject/index.d.ts +2 -0
- package/dist/types/shared-logic/src/JSQueryEngine/buildResultFields.d.ts +3 -0
- package/dist/types/shared-logic/src/JSQueryEngine/fetchData.d.ts +9 -0
- package/dist/types/shared-logic/src/JSQueryEngine/getInMemoryDb.d.ts +2 -0
- package/dist/types/shared-logic/src/JSQueryEngine/index.d.ts +1 -0
- package/dist/types/shared-logic/src/JSQueryEngine/localQueryEngineConfig.d.ts +1 -0
- package/dist/types/shared-logic/src/JSQueryEngine/localRunQueriesCallback.d.ts +7 -0
- package/dist/types/shared-logic/src/JSQueryEngine/runQueryV3.d.ts +5 -0
- package/dist/types/shared-logic/src/JSQueryEngine/types.d.ts +6 -0
- package/dist/types/shared-logic/src/JWT/JWT.d.ts +2 -0
- package/dist/types/shared-logic/src/LineChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/LineChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/LineChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/LineChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/LineChartV2/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/LineChartV2/buildLineChartRepresentation.d.ts +40 -0
- package/dist/types/shared-logic/src/LineChartV2/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/LineChartV2/index.d.ts +4 -0
- package/dist/types/shared-logic/src/LineChartV2/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/LineChartV2/types.d.ts +12 -0
- package/dist/types/shared-logic/src/Logger/Logger.d.ts +16 -0
- package/dist/types/shared-logic/src/Logger/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Logger/types.d.ts +1 -0
- package/dist/types/shared-logic/src/Measure/Measure.d.ts +13 -0
- package/dist/types/shared-logic/src/Measure/index.d.ts +1 -0
- package/dist/types/shared-logic/src/MercatorMap/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/MercatorMap/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/MercatorMap/index.d.ts +4 -0
- package/dist/types/shared-logic/src/MercatorMap/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/PDFGenerator/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/PDFGenerator/converter.d.ts +36 -0
- package/dist/types/shared-logic/src/PDFGenerator/generatePNG.d.ts +3 -0
- package/dist/types/shared-logic/src/PDFGenerator/index.d.ts +7 -0
- package/dist/types/shared-logic/src/PDFGenerator/pageBreaks.d.ts +5 -0
- package/dist/types/shared-logic/src/PDFGenerator/types.d.ts +92 -0
- package/dist/types/shared-logic/src/PDFGenerator/utils.d.ts +2 -0
- package/dist/types/shared-logic/src/Parameters/parameters.d.ts +4 -0
- package/dist/types/shared-logic/src/Parameters/removeParameters.d.ts +3 -0
- package/dist/types/shared-logic/src/PieChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/PieChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/PieChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/PieChart/onViewClick.d.ts +16 -0
- package/dist/types/shared-logic/src/PivotConfig/index.d.ts +10 -0
- package/dist/types/shared-logic/src/PivotConfig/types.d.ts +16 -0
- package/dist/types/shared-logic/src/PivotConfigForMetricAxis/index.d.ts +3 -0
- package/dist/types/shared-logic/src/Progress/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/Progress/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/Progress/index.d.ts +5 -0
- package/dist/types/shared-logic/src/Progress/types.d.ts +2 -0
- package/dist/types/shared-logic/src/Progress/utils.d.ts +2 -0
- package/dist/types/shared-logic/src/Project/Project.d.ts +10 -0
- package/dist/types/shared-logic/src/Project/types.d.ts +74 -0
- package/dist/types/shared-logic/src/Query/Query.d.ts +22 -0
- package/dist/types/shared-logic/src/Query/buildFromQueryAttributes.d.ts +9 -0
- package/dist/types/shared-logic/src/Query/index.d.ts +2 -0
- package/dist/types/shared-logic/src/Query/types.d.ts +35 -0
- package/dist/types/shared-logic/src/QueryAttributes/QueryAttributes.d.ts +25 -0
- package/dist/types/shared-logic/src/QueryAttributes/constants.d.ts +1 -0
- package/dist/types/shared-logic/src/QueryAttributes/index.d.ts +1 -0
- package/dist/types/shared-logic/src/QueryAttributes/types.d.ts +68 -0
- package/dist/types/shared-logic/src/QueryEngine/buildManagedQueryEngineEndpoint.d.ts +1 -0
- package/dist/types/shared-logic/src/QueryEngine/buildQueryEngineSignInUrl.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngine/formatLoadedFromString.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngine/index.d.ts +3 -0
- package/dist/types/shared-logic/src/QueryEngine/types.d.ts +57 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/QueryEngineConfig.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/bigquery.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/compareSupport.d.ts +14 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/getQueryEngineConfig.d.ts +3 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/index.d.ts +5 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/loadQueryEngineConfig.d.ts +3 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/localJS.d.ts +3 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/mariadb.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/microsoftSQLServer.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/mysql.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/postgres.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/redshift.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/snowflake.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/supportedConstants.d.ts +7 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/supportedFeature.d.ts +2 -0
- package/dist/types/shared-logic/src/QueryEngineConfig/types.d.ts +10 -0
- package/dist/types/shared-logic/src/RadarChart/adjustTicks.d.ts +3 -0
- package/dist/types/shared-logic/src/RadarChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/RadarChart/buildRadarChartRepresentation.d.ts +34 -0
- package/dist/types/shared-logic/src/RadarChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/RadarChart/getMinAndMax.d.ts +13 -0
- package/dist/types/shared-logic/src/RadarChart/getScaleAndTicks.d.ts +37 -0
- package/dist/types/shared-logic/src/RadarChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/RadarChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/RadarChart/types.d.ts +46 -0
- package/dist/types/shared-logic/src/Report/types.d.ts +6 -0
- package/dist/types/shared-logic/src/Result/Result.d.ts +39 -0
- package/dist/types/shared-logic/src/Result/formatResult.d.ts +36 -0
- package/dist/types/shared-logic/src/Result/formattedResultToSeries.d.ts +25 -0
- package/dist/types/shared-logic/src/Result/formattedResultToSeriesForMetricAxis.d.ts +25 -0
- package/dist/types/shared-logic/src/Result/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Result/types.d.ts +41 -0
- package/dist/types/shared-logic/src/RichText/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/RichText/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/RichText/index.d.ts +4 -0
- package/dist/types/shared-logic/src/RichText/initialRichTextContent.d.ts +38 -0
- package/dist/types/shared-logic/src/RichText/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/SQLViews/index.d.ts +11 -0
- package/dist/types/shared-logic/src/SQLViews/types.d.ts +7 -0
- package/dist/types/shared-logic/src/ScatterChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/ScatterChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/ScatterChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/ScatterChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/SimpleInsecureHash/index.d.ts +1 -0
- package/dist/types/shared-logic/src/SingleStat/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/SingleStat/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/SingleStat/index.d.ts +5 -0
- package/dist/types/shared-logic/src/SingleStat/types.d.ts +10 -0
- package/dist/types/shared-logic/src/SingleStat/upcastSingleValueAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/Strategy/types.d.ts +7 -0
- package/dist/types/shared-logic/src/SunburstChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/SunburstChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/SunburstChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/Tags/index.d.ts +14 -0
- package/dist/types/shared-logic/src/Tags/tags.d.ts +3 -0
- package/dist/types/shared-logic/src/Theme/Theme.d.ts +16 -0
- package/dist/types/shared-logic/src/Theme/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Theme/types.d.ts +641 -0
- package/dist/types/shared-logic/src/Threshold/threshold.utils.d.ts +10 -0
- package/dist/types/shared-logic/src/Tiers/Tiers.d.ts +14 -0
- package/dist/types/shared-logic/src/Tiers/types.d.ts +12 -0
- package/dist/types/shared-logic/src/TimeDimension/TimeDimension.d.ts +10 -0
- package/dist/types/shared-logic/src/TimeDimension/constants.d.ts +1 -0
- package/dist/types/shared-logic/src/TimeDimension/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Translations/extract/buildJsonFile.d.ts +2 -0
- package/dist/types/shared-logic/src/Translations/extract/buildTypes.d.ts +1 -0
- package/dist/types/shared-logic/src/Translations/extract/extractPanelConfig.d.ts +3 -0
- package/dist/types/shared-logic/src/Translations/extract/extractSupportedConstant.d.ts +6 -0
- package/dist/types/shared-logic/src/Translations/extract/func.d.ts +5 -0
- package/dist/types/shared-logic/src/Translations/extract/index.d.ts +4 -0
- package/dist/types/shared-logic/src/Translations/extract/shared.d.ts +10 -0
- package/dist/types/shared-logic/src/Translations/textOverrideComponent.d.ts +30 -0
- package/dist/types/shared-logic/src/Translations/translateQueryEngineConfig.d.ts +3 -0
- package/dist/types/shared-logic/src/Translations/translation.schema.d.ts +2 -0
- package/dist/types/shared-logic/src/Translations/translation.types.d.ts +5756 -0
- package/dist/types/shared-logic/src/Translations/translations.d.ts +9 -0
- package/dist/types/shared-logic/src/Translations/types.d.ts +13 -0
- package/dist/types/shared-logic/src/Translations/validation.d.ts +1 -0
- package/dist/types/shared-logic/src/Trends/linearForecasting.d.ts +8 -0
- package/dist/types/shared-logic/src/Trends/trends.d.ts +26 -0
- package/dist/types/shared-logic/src/Trends/trendsSchema.d.ts +2 -0
- package/dist/types/shared-logic/src/Trends/types.d.ts +9 -0
- package/dist/types/shared-logic/src/ValueAlias/ValueAlias.d.ts +7 -0
- package/dist/types/shared-logic/src/ValueAlias/types.d.ts +10 -0
- package/dist/types/shared-logic/src/Variables/Variables.d.ts +8 -0
- package/dist/types/shared-logic/src/Variables/index.d.ts +1 -0
- package/dist/types/shared-logic/src/Variables/types.d.ts +9 -0
- package/dist/types/shared-logic/src/ViewConfiguration/types.d.ts +4 -0
- package/dist/types/shared-logic/src/VizzlyConfig/constants.d.ts +18 -0
- package/dist/types/shared-logic/src/VizzlyConfig/types.d.ts +1 -0
- package/dist/types/shared-logic/src/VizzlyState/index.d.ts +68 -0
- package/dist/types/shared-logic/src/WaterfallChart/adjustTicks.d.ts +3 -0
- package/dist/types/shared-logic/src/WaterfallChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +38 -0
- package/dist/types/shared-logic/src/WaterfallChart/constants.d.ts +3 -0
- package/dist/types/shared-logic/src/WaterfallChart/getNiceInterval.d.ts +1 -0
- package/dist/types/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +22 -0
- package/dist/types/shared-logic/src/WaterfallChart/getYTicks.d.ts +8 -0
- package/dist/types/shared-logic/src/WaterfallChart/index.d.ts +4 -0
- package/dist/types/shared-logic/src/WaterfallChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/WaterfallChart/types.d.ts +72 -0
- package/dist/types/shared-logic/src/Webhook/Webhook.d.ts +2 -0
- package/dist/types/shared-logic/src/Webhook/index.d.ts +2 -0
- package/dist/types/shared-logic/src/Webhook/types.d.ts +25 -0
- package/dist/types/shared-logic/src/api/httpClient.d.ts +7 -0
- package/dist/types/shared-logic/src/api/index.d.ts +46 -0
- package/dist/types/shared-logic/src/api/queryEngine/createConfigFromUpload.d.ts +2 -0
- package/dist/types/shared-logic/src/api/queryEngine/createResults.d.ts +10 -0
- package/dist/types/shared-logic/src/api/queryEngine/createSqlPreview.d.ts +5 -0
- package/dist/types/shared-logic/src/api/queryEngine/createUser.d.ts +2 -0
- package/dist/types/shared-logic/src/api/queryEngine/fetchDataSets.d.ts +4 -0
- package/dist/types/shared-logic/src/api/queryEngine/fetchSelfHostedQueryEngineConfig.d.ts +3 -0
- package/dist/types/shared-logic/src/api/queryEngine/getProject.d.ts +3 -0
- package/dist/types/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +21 -0
- package/dist/types/shared-logic/src/api/queryEngine/getStarted.d.ts +2 -0
- package/dist/types/shared-logic/src/api/queryEngine/getTeamMembers.d.ts +3 -0
- package/dist/types/shared-logic/src/api/queryEngine/isVizzly.d.ts +3 -0
- package/dist/types/shared-logic/src/api/queryEngine/queryEngineHttpClient.d.ts +3 -0
- package/dist/types/shared-logic/src/api/queryEngine/saveConfig.d.ts +2 -0
- package/dist/types/shared-logic/src/api/queryEngine/saveConnection.d.ts +7 -0
- package/dist/types/shared-logic/src/api/queryEngine/signIn.d.ts +8 -0
- package/dist/types/shared-logic/src/api/queryEngine/status.d.ts +3 -0
- package/dist/types/shared-logic/src/api/queryEngine/updateUser.d.ts +2 -0
- package/dist/types/shared-logic/src/api/queryEngine/uploadDataToVizzlyCloud.d.ts +3 -0
- package/dist/types/shared-logic/src/api/types.d.ts +25 -0
- package/dist/types/shared-logic/src/api/vizzly/aiActions.d.ts +18 -0
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/buildAIResponse.d.ts +5 -0
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/buildDataSets.d.ts +4 -0
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/checkAiResponseStatus.d.ts +3 -0
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/types.d.ts +23 -0
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/validateAndUpcastAIAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +10 -0
- package/dist/types/shared-logic/src/api/vizzly/askAi.d.ts +6 -0
- package/dist/types/shared-logic/src/api/vizzly/askAiForQuestionSuggestions.d.ts +4 -0
- package/dist/types/shared-logic/src/api/vizzly/createParentDashboard.d.ts +4 -0
- package/dist/types/shared-logic/src/api/vizzly/createParentGlobalLibrary.d.ts +3 -0
- package/dist/types/shared-logic/src/api/vizzly/createProjectApiKey.d.ts +2 -0
- package/dist/types/shared-logic/src/api/vizzly/createSelfHostedDynamicQueryEngine.d.ts +3 -0
- package/dist/types/shared-logic/src/api/vizzly/createSelfHostedInBrowserQueryEngineProject.d.ts +3 -0
- package/dist/types/shared-logic/src/api/vizzly/createSelfHostedQueryEngineProject.d.ts +3 -0
- package/dist/types/shared-logic/src/api/vizzly/createVizzlyConfigVersion.d.ts +2 -0
- package/dist/types/shared-logic/src/api/vizzly/duplicateParentDashboard.d.ts +3 -0
- package/dist/types/shared-logic/src/api/vizzly/getManagedQueryEngineKeyPair.d.ts +5 -0
- package/dist/types/shared-logic/src/api/vizzly/getParentDashboards.d.ts +9 -0
- package/dist/types/shared-logic/src/api/vizzly/getProjectAccessToken.d.ts +2 -0
- package/dist/types/shared-logic/src/api/vizzly/saveScheduledReport.d.ts +6 -0
- package/dist/types/shared-logic/src/api/vizzly/updateParentGlobalLibrary.d.ts +7 -0
- package/dist/types/shared-logic/src/api/vizzly/updateProjectApiKey.d.ts +6 -0
- package/dist/types/shared-logic/src/errors/AIAborted.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/AIContainsErrors.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/AIFailedToFetch.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/AIUsageLimitReached.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/AggregateFieldValueInResultExpectsNumber.d.ts +5 -0
- package/dist/types/shared-logic/src/errors/CorruptedView.d.ts +5 -0
- package/dist/types/shared-logic/src/errors/DashboardQuotaReached.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/DataSetNotFound.d.ts +5 -0
- package/dist/types/shared-logic/src/errors/EncryptedProjectSecretAlreadyExists.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FailedToCreateConfigFromUpload.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FailedToCreateDashboard.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FailedToCreateDashboardAccess.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FailedToGetDashboard.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FailedToLoadIdentity.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FailedToLoadQueryEngineConfig.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FailedToResolveDataSets.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FailedToSaveVizzlyConfigVersion.d.ts +3 -0
- package/dist/types/shared-logic/src/errors/FailedToSetupProject.d.ts +3 -0
- package/dist/types/shared-logic/src/errors/FailedToUpdateDashboard.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/FieldNotFoundInDataSet.d.ts +7 -0
- package/dist/types/shared-logic/src/errors/IdentityMustBeCallback.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/InvalidDataSetsPropType.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/InvalidIdentityPropType.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/InvalidIdentityReturn.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/InvalidQueryEngineEndpoint.d.ts +6 -0
- package/dist/types/shared-logic/src/errors/InvalidQueryEngineEndpointType.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/LoadingAborted.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/MissingDateTimeFormatOption.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/MissingDimensionInResult.d.ts +5 -0
- package/dist/types/shared-logic/src/errors/MissingMeasuresInResult.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/MissingTimeDimensionInResult.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/MissingVizzlyInMemoryDb.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/MoreResultsThanExpectedWithNoDimension.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/NewVizzlyImplementation.d.ts +3 -0
- package/dist/types/shared-logic/src/errors/NoDataSetResolved.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/ProjectEncryptedSecretAlreadySaved.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/QueryLimitExceededInResult.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/ReadOnlyPermissionNotFound.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/ReadPermissionNotFound.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/ResultContainsValueOfWrongType.d.ts +5 -0
- package/dist/types/shared-logic/src/errors/SQLPreviewError.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/ServicesValidation.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/StateValidation.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/ValidationError.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/ValueNotFoundInVariable.d.ts +6 -0
- package/dist/types/shared-logic/src/errors/VariableNotFoundForVariables.d.ts +7 -0
- package/dist/types/shared-logic/src/errors/VizzlyApiCallErrorFailedToSetupProject.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/VizzlyApiError.d.ts +6 -0
- package/dist/types/shared-logic/src/errors/WritePermissionNotFound.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/index.d.ts +6 -0
- package/dist/types/shared-logic/src/getComponentInterface.d.ts +28 -0
- package/dist/types/shared-logic/src/getVizzly.d.ts +5 -0
- package/dist/types/shared-logic/src/tests/exampleDataSet.d.ts +95 -0
- package/dist/types/shared-logic/src/typeHelpers.d.ts +1 -0
- package/dist/types/shared-logic/src/utils/DateTime.d.ts +19 -0
- package/dist/types/shared-logic/src/utils/arrayHelpers.d.ts +6 -0
- package/dist/types/shared-logic/src/utils/defaultSortingDateTimes.d.ts +4 -0
- package/dist/types/shared-logic/src/utils/feedback.d.ts +4 -0
- package/dist/types/shared-logic/src/utils/generateId.d.ts +1 -0
- package/dist/types/shared-logic/src/utils/htmlHelper.d.ts +2 -0
- package/dist/types/shared-logic/src/utils/index.d.ts +5 -0
- package/dist/types/shared-logic/src/utils/numberHelpers.d.ts +9 -0
- package/dist/types/shared-logic/src/utils/pathHelpers.d.ts +5 -0
- package/dist/types/shared-logic/src/utils/stringHelper.d.ts +10 -0
- package/dist/types/shared-logic/src/validations.d.ts +5 -0
- package/package.json +9 -5
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { KeyId, GoalLine } from './types';
|
|
2
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
+
import { DataType } from '../Field/types';
|
|
4
|
+
import { FormattedResult } from '../Result/types';
|
|
5
|
+
import { Tick } from '../ChartsV2/types';
|
|
6
|
+
type FormattingFunction = (value: any, nullValueAlias?: string) => string;
|
|
7
|
+
interface getScaleAndTicksArgs {
|
|
8
|
+
data: FormattedResult['contentMapped'];
|
|
9
|
+
xKey: string | null;
|
|
10
|
+
xScaleDataType: DataType;
|
|
11
|
+
yKeys: string[];
|
|
12
|
+
nullValue: string | undefined;
|
|
13
|
+
tickCountYAxis: number;
|
|
14
|
+
formattingFunctionX: FormattingFunction;
|
|
15
|
+
formattingFunctionY: FormattingFunction;
|
|
16
|
+
order: QueryAttributes.Order[];
|
|
17
|
+
goalLines: GoalLine[];
|
|
18
|
+
}
|
|
19
|
+
interface getScaleAndTicksReturn {
|
|
20
|
+
x: {
|
|
21
|
+
ticks: Array<Tick<Date | string | number>>;
|
|
22
|
+
scale: {
|
|
23
|
+
max: number | Date | null;
|
|
24
|
+
min: number | Date | null;
|
|
25
|
+
key: KeyId | null;
|
|
26
|
+
ordering: 'asc' | 'desc' | null;
|
|
27
|
+
dataType: DataType;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
y: {
|
|
31
|
+
ticks: Array<Tick<number>>;
|
|
32
|
+
scale: {
|
|
33
|
+
max: number;
|
|
34
|
+
min: number;
|
|
35
|
+
key: null;
|
|
36
|
+
ordering: 'asc' | 'desc';
|
|
37
|
+
dataType: 'number';
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, tickCountYAxis, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { LegendItem } from './types';
|
|
3
|
+
interface getStyleDefinitionArgs {
|
|
4
|
+
colors: CSSProperties['color'][];
|
|
5
|
+
yKeys: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare const getStyleDefinition: ({ colors, yKeys }: getStyleDefinitionArgs) => LegendItem[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (bubbleChart: Component.BubbleChartAttributes, partial: Partial<Component.BubbleChartAttributes>) => Component.BubbleChartAttributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Tick } from '../ChartsV2/types';
|
|
2
|
+
import { DataType } from '../Field/types';
|
|
3
|
+
export type KeyId = string;
|
|
4
|
+
export type Operator = string;
|
|
5
|
+
export type ConditionalFormattingRule = {
|
|
6
|
+
operator: Operator;
|
|
7
|
+
value: any;
|
|
8
|
+
color: string;
|
|
9
|
+
yKey: KeyId;
|
|
10
|
+
};
|
|
11
|
+
export type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
|
|
12
|
+
ticks: Tick<SupportedVizzlyDataTypes>[];
|
|
13
|
+
scale: {
|
|
14
|
+
dataType: DataType;
|
|
15
|
+
key: KeyId | null;
|
|
16
|
+
ordering: 'asc' | 'desc' | null;
|
|
17
|
+
min: SupportedVizzlyDataTypes | null;
|
|
18
|
+
max: SupportedVizzlyDataTypes | null;
|
|
19
|
+
};
|
|
20
|
+
postfix: string;
|
|
21
|
+
prefix: string;
|
|
22
|
+
title: string | null;
|
|
23
|
+
} & AxisKeys;
|
|
24
|
+
export type LegendItemStyleLine = {
|
|
25
|
+
type: 'line';
|
|
26
|
+
strokeDasharray: string | number | null;
|
|
27
|
+
strokeWidth: number;
|
|
28
|
+
};
|
|
29
|
+
export type LegendItem = {
|
|
30
|
+
yKey: KeyId;
|
|
31
|
+
color: string;
|
|
32
|
+
style: LegendItemStyleLine;
|
|
33
|
+
};
|
|
34
|
+
export type Key = {
|
|
35
|
+
key: KeyId;
|
|
36
|
+
keyFormatted: string;
|
|
37
|
+
dataType: DataType;
|
|
38
|
+
};
|
|
39
|
+
export type BubbleChartRepresentation = {
|
|
40
|
+
keys: {
|
|
41
|
+
[key: KeyId]: Key;
|
|
42
|
+
};
|
|
43
|
+
x: Axis<Date | string | number, {
|
|
44
|
+
key: KeyId;
|
|
45
|
+
}>;
|
|
46
|
+
y: Axis<number, {
|
|
47
|
+
keys: KeyId[];
|
|
48
|
+
}>;
|
|
49
|
+
z: string;
|
|
50
|
+
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
51
|
+
goalLines: GoalLine[];
|
|
52
|
+
data: {
|
|
53
|
+
[keyId: string]: DataItem;
|
|
54
|
+
}[];
|
|
55
|
+
lines: LegendItem[];
|
|
56
|
+
groupByKey: string;
|
|
57
|
+
legend: {
|
|
58
|
+
keys: {
|
|
59
|
+
[keyId: string]: Key;
|
|
60
|
+
};
|
|
61
|
+
items: LegendItem[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export type DataItem = {
|
|
65
|
+
value: number | string | null;
|
|
66
|
+
formattedValue: string | null;
|
|
67
|
+
};
|
|
68
|
+
export type GoalLine = {
|
|
69
|
+
value: number;
|
|
70
|
+
formattedValue: string | null;
|
|
71
|
+
color: string;
|
|
72
|
+
strokeStyle?: 'dashed' | 'solid';
|
|
73
|
+
strokeWidth: number;
|
|
74
|
+
};
|
|
75
|
+
export type DateTimeFormatter = {
|
|
76
|
+
formatter: (date: Date) => string;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
export type NumberFormatter = {
|
|
80
|
+
formatter: (number: number | undefined | null, noValueReplacement?: string) => string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
export type BubbleStyles = {
|
|
84
|
+
type: 'bubble';
|
|
85
|
+
bubbleSize: number;
|
|
86
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { BubbleChartRepresentation, DateTimeFormatter, NumberFormatter } from './types';
|
|
3
|
+
import { ValueAlias } from '../ValueAlias/types';
|
|
4
|
+
import { Result } from '../Result/types';
|
|
5
|
+
import { PivotConfig } from '../PivotConfig/types';
|
|
6
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
7
|
+
import { ApproxAxisLabelCount, Component, FormatType } from '../Component/types';
|
|
8
|
+
interface buildBubbleChartRepresentationArgs {
|
|
9
|
+
axisTitles?: Component.AxisTitles;
|
|
10
|
+
colors: CSSProperties['color'][];
|
|
11
|
+
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
12
|
+
dateTimeFormatOptions: {
|
|
13
|
+
[id: string]: DateTimeFormatter;
|
|
14
|
+
};
|
|
15
|
+
defaultFormats: () => {
|
|
16
|
+
[functionId: string]: string;
|
|
17
|
+
};
|
|
18
|
+
goalLineAttributes: Component.GoalLine.Rule[];
|
|
19
|
+
nullValue?: string;
|
|
20
|
+
numberFormatOptions: {
|
|
21
|
+
[id: string]: NumberFormatter;
|
|
22
|
+
};
|
|
23
|
+
order: QueryAttributes.Order[];
|
|
24
|
+
pivotConfig: PivotConfig;
|
|
25
|
+
result: Result;
|
|
26
|
+
valueAlias?: ValueAlias;
|
|
27
|
+
xAxisFormat: FormatType;
|
|
28
|
+
xAxisPostfix: string;
|
|
29
|
+
xAxisPrefix: string;
|
|
30
|
+
yAxisFormat: FormatType;
|
|
31
|
+
yAxisPostfix: string;
|
|
32
|
+
yAxisPrefix: string;
|
|
33
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
34
|
+
zFieldId: string;
|
|
35
|
+
quadrantsAttributes?: Component.Quadrant.Rule;
|
|
36
|
+
}
|
|
37
|
+
export declare const buildBubbleChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, goalLineAttributes, nullValue, numberFormatOptions, order, pivotConfig, result, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxYAxisLabelCount, valueAlias, zFieldId, quadrantsAttributes, }: buildBubbleChartRepresentationArgs) => BubbleChartRepresentation;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataItem, KeyId } from '../BubbleChart/types';
|
|
2
|
+
export type AcceptedTrendTimeUnit = 'week' | 'quarter' | 'year' | 'month';
|
|
3
|
+
interface getTrendArgs {
|
|
4
|
+
data: Array<{
|
|
5
|
+
[key: KeyId]: DataItem;
|
|
6
|
+
}>;
|
|
7
|
+
forecastUnits: number;
|
|
8
|
+
xKey: string;
|
|
9
|
+
yKey: string;
|
|
10
|
+
timeUnit: AcceptedTrendTimeUnit;
|
|
11
|
+
includeForecast: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const buildTrendAndForecast: ({ data, forecastUnits, xKey, yKey, timeUnit, includeForecast }: getTrendArgs) => {
|
|
14
|
+
trendData: {
|
|
15
|
+
date: string;
|
|
16
|
+
value: number;
|
|
17
|
+
}[];
|
|
18
|
+
trendKey: string;
|
|
19
|
+
forecastData: {
|
|
20
|
+
date: string;
|
|
21
|
+
value: number;
|
|
22
|
+
}[];
|
|
23
|
+
forecastKey: string;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConditionalFormattingRule } from './types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
interface getConditionalFormattingArgs {
|
|
4
|
+
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
5
|
+
}
|
|
6
|
+
export declare const getConditionalFormatting: ({ conditionalFormattingAttributes, }: getConditionalFormattingArgs) => ConditionalFormattingRule[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GoalLine } from './types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
interface getGoalLinesArgs {
|
|
4
|
+
goalLineAttributes: Component.GoalLine.Rule[];
|
|
5
|
+
formattingFunctionY: (value: any) => string;
|
|
6
|
+
}
|
|
7
|
+
export declare const getGoalLines: ({ goalLineAttributes, formattingFunctionY }: getGoalLinesArgs) => GoalLine[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DataType } from '../Field/types';
|
|
2
|
+
import { FormattedResult } from '../Result/types';
|
|
3
|
+
import { GoalLine } from './types';
|
|
4
|
+
export declare const getMinAndMax: ({ data, keys, dataType, goalLines, }: {
|
|
5
|
+
data: FormattedResult["contentMapped"];
|
|
6
|
+
keys: Array<string>;
|
|
7
|
+
dataType: DataType;
|
|
8
|
+
goalLines?: GoalLine[];
|
|
9
|
+
}) => {
|
|
10
|
+
max: null;
|
|
11
|
+
min: null;
|
|
12
|
+
} | {
|
|
13
|
+
max: number;
|
|
14
|
+
min: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { KeyId, GoalLine } from './types';
|
|
2
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
+
import { DataType } from '../Field/types';
|
|
4
|
+
import { FormattedResult } from '../Result/types';
|
|
5
|
+
import { Tick } from '../ChartsV2/types';
|
|
6
|
+
import { ApproxAxisLabelCount } from '../../../shared-logic/src/Component/types';
|
|
7
|
+
type FormattingFunction = (value: any, nullValueAlias?: string) => string;
|
|
8
|
+
interface getScaleAndTicksArgs {
|
|
9
|
+
data: FormattedResult['contentMapped'];
|
|
10
|
+
xKey: string | null;
|
|
11
|
+
xScaleDataType: DataType;
|
|
12
|
+
yKeys: string[];
|
|
13
|
+
nullValue: string | undefined;
|
|
14
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
15
|
+
formattingFunctionX: FormattingFunction;
|
|
16
|
+
formattingFunctionY: FormattingFunction;
|
|
17
|
+
order: QueryAttributes.Order[];
|
|
18
|
+
goalLines: GoalLine[];
|
|
19
|
+
}
|
|
20
|
+
interface getScaleAndTicksReturn {
|
|
21
|
+
x: {
|
|
22
|
+
ticks: Array<Tick<Date | string | number>>;
|
|
23
|
+
scale: {
|
|
24
|
+
max: number | Date | null;
|
|
25
|
+
min: number | Date | null;
|
|
26
|
+
key: KeyId | null;
|
|
27
|
+
ordering: 'asc' | 'desc' | null;
|
|
28
|
+
dataType: DataType;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
y: {
|
|
32
|
+
ticks: Array<Tick<number>>;
|
|
33
|
+
scale: {
|
|
34
|
+
max: number;
|
|
35
|
+
min: number;
|
|
36
|
+
key: string | null;
|
|
37
|
+
ordering: 'asc' | 'desc';
|
|
38
|
+
dataType: 'number';
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, approxYAxisLabelCount, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { LegendItem } from './types';
|
|
3
|
+
interface getStyleDefinitionArgs {
|
|
4
|
+
colors: CSSProperties['color'][];
|
|
5
|
+
yKeys: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare const getStyleDefinition: ({ colors, yKeys }: getStyleDefinitionArgs) => LegendItem[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DataItem, KeyId, Key } from '../BubbleChart/types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
import { DataType } from '../Field/types';
|
|
4
|
+
interface getTrendsAndForecastsDataArgs {
|
|
5
|
+
chartData: {
|
|
6
|
+
[keyId: string]: DataItem;
|
|
7
|
+
}[];
|
|
8
|
+
keys: {
|
|
9
|
+
[keyId: string]: Key;
|
|
10
|
+
};
|
|
11
|
+
xKey: KeyId;
|
|
12
|
+
yKeys: KeyId[];
|
|
13
|
+
formattingFunctionX: (value: any, noValueReplacement?: string) => string;
|
|
14
|
+
formattingFunctionY: (value: any, noValueReplacement?: string) => string;
|
|
15
|
+
nullValue: string | undefined;
|
|
16
|
+
trendsAndForecasts?: Component.Trends[];
|
|
17
|
+
xAxisPostfix: string;
|
|
18
|
+
xAxisPrefix: string;
|
|
19
|
+
yAxisPostfix: string;
|
|
20
|
+
yAxisPrefix: string;
|
|
21
|
+
xScaleDataType: DataType;
|
|
22
|
+
orderFunction: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare const getTrendsAndForecastsData: ({ chartData, formattingFunctionX, formattingFunctionY, keys, nullValue, orderFunction, trendsAndForecasts, xAxisPostfix, xAxisPrefix, xKey, xScaleDataType, yAxisPostfix, yAxisPrefix, yKeys, }: getTrendsAndForecastsDataArgs) => {
|
|
25
|
+
chartData: {
|
|
26
|
+
[keyId: string]: DataItem;
|
|
27
|
+
}[];
|
|
28
|
+
newChartData?: undefined;
|
|
29
|
+
newYKeys?: undefined;
|
|
30
|
+
newKeys?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
newChartData: ({
|
|
33
|
+
[x: string]: DataItem;
|
|
34
|
+
} | null)[];
|
|
35
|
+
newYKeys: string[];
|
|
36
|
+
newKeys: {
|
|
37
|
+
[keyId: string]: Key;
|
|
38
|
+
};
|
|
39
|
+
chartData?: undefined;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { LoadComponentInterface } from '../ComponentInterface/types';
|
|
3
|
+
declare const BubbleChartV2: LoadComponentInterface<Component.BubbleChartV2Attributes, Component.BubbleChartV2Attributes>;
|
|
4
|
+
export default BubbleChartV2;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (bubbleChart: Component.BubbleChartV2Attributes, partial: Partial<Component.BubbleChartV2Attributes>) => Component.BubbleChartV2Attributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Component } from '../../../shared-logic/src/Component/types';
|
|
2
|
+
import { Tick } from '../ChartsV2/types';
|
|
3
|
+
import { DataType } from '../Field/types';
|
|
4
|
+
export type KeyId = string;
|
|
5
|
+
export type Operator = string;
|
|
6
|
+
export type ConditionalFormattingRule = {
|
|
7
|
+
operator: Operator;
|
|
8
|
+
value: any;
|
|
9
|
+
color: string;
|
|
10
|
+
yKey: KeyId;
|
|
11
|
+
};
|
|
12
|
+
export type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
|
|
13
|
+
ticks: Tick<SupportedVizzlyDataTypes>[];
|
|
14
|
+
scale: {
|
|
15
|
+
dataType: DataType;
|
|
16
|
+
key: KeyId | null;
|
|
17
|
+
ordering: 'asc' | 'desc' | null;
|
|
18
|
+
min: SupportedVizzlyDataTypes | null;
|
|
19
|
+
max: SupportedVizzlyDataTypes | null;
|
|
20
|
+
};
|
|
21
|
+
postfix: string;
|
|
22
|
+
prefix: string;
|
|
23
|
+
title: string | null;
|
|
24
|
+
} & AxisKeys;
|
|
25
|
+
export type LegendItemStyleLine = {
|
|
26
|
+
type: 'line';
|
|
27
|
+
strokeDasharray: string | number | null;
|
|
28
|
+
strokeWidth: number;
|
|
29
|
+
};
|
|
30
|
+
export type LegendItem = {
|
|
31
|
+
yKey: KeyId;
|
|
32
|
+
color: string;
|
|
33
|
+
style: LegendItemStyleLine;
|
|
34
|
+
};
|
|
35
|
+
export type Key = {
|
|
36
|
+
key: KeyId;
|
|
37
|
+
keyFormatted: string;
|
|
38
|
+
dataType: DataType;
|
|
39
|
+
};
|
|
40
|
+
export type Legend = {
|
|
41
|
+
keys: {
|
|
42
|
+
[key: KeyId]: Key;
|
|
43
|
+
};
|
|
44
|
+
items: LegendItem[];
|
|
45
|
+
};
|
|
46
|
+
export type BubbleChartRepresentation = {
|
|
47
|
+
keys: {
|
|
48
|
+
[key: KeyId]: Key;
|
|
49
|
+
};
|
|
50
|
+
x: Axis<Date | string | number, {
|
|
51
|
+
key: KeyId;
|
|
52
|
+
}>;
|
|
53
|
+
y: Axis<number, {
|
|
54
|
+
keys: KeyId[];
|
|
55
|
+
}>;
|
|
56
|
+
z: string;
|
|
57
|
+
quadrants: Component.Quadrant.Rule;
|
|
58
|
+
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
59
|
+
goalLines: GoalLine[];
|
|
60
|
+
data: {
|
|
61
|
+
[keyId: string]: DataItem;
|
|
62
|
+
}[];
|
|
63
|
+
lines: LegendItem[];
|
|
64
|
+
groupByKey: string;
|
|
65
|
+
legend: Legend;
|
|
66
|
+
};
|
|
67
|
+
export type DataItem = {
|
|
68
|
+
value: number | string | null;
|
|
69
|
+
formattedValue: string | null;
|
|
70
|
+
};
|
|
71
|
+
export type GoalLine = {
|
|
72
|
+
value: number;
|
|
73
|
+
formattedValue: string | null;
|
|
74
|
+
color: string;
|
|
75
|
+
strokeStyle?: 'dashed' | 'solid';
|
|
76
|
+
strokeWidth: number;
|
|
77
|
+
};
|
|
78
|
+
export type DateTimeFormatter = {
|
|
79
|
+
formatter: (date: Date) => string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
export type NumberFormatter = {
|
|
83
|
+
formatter: (number: number | undefined | null, noValueReplacement?: string) => string;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
export type BubbleStyles = {
|
|
87
|
+
type: 'bubble';
|
|
88
|
+
bubbleSize: number;
|
|
89
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
+
import * as Field from '../Field';
|
|
4
|
+
import { Result } from '../Result/types';
|
|
5
|
+
import { SupportedAggregates } from '../Aggregate/types';
|
|
6
|
+
import { TableContent, TableFields, TableFieldsV2 } from '../DataTable/types';
|
|
7
|
+
import * as Drilldown from '../Drilldown/Drilldown';
|
|
8
|
+
import { DataSet } from '../DataSet/types';
|
|
9
|
+
export type BuildViewClick = {
|
|
10
|
+
onViewClick: (data: Component.ChartOnViewClick, query: Component.OnViewClickQuery) => void;
|
|
11
|
+
dimension: QueryAttributes.Dimension[] | undefined;
|
|
12
|
+
measure: QueryAttributes.Measure[] | undefined;
|
|
13
|
+
viewId: string;
|
|
14
|
+
type: 'barChart' | 'horizontalBarChart';
|
|
15
|
+
timeDimension: QueryAttributes.TimeDimension | null;
|
|
16
|
+
dataSet: DataSet;
|
|
17
|
+
};
|
|
18
|
+
export type runViewClickQueryType = (queries: Partial<QueryAttributes>, existingField: Drilldown.DrilldownField[]) => Promise<any | null>;
|
|
19
|
+
export declare function buildOnViewClick(clickedValue: Datum | undefined, nearestDatum: DatumByKey | undefined, params: BuildViewClick, runViewClickQuery: runViewClickQueryType): void;
|
|
20
|
+
export type BuildTableViewClick = {
|
|
21
|
+
viewId: string;
|
|
22
|
+
supportedAggregates: SupportedAggregates;
|
|
23
|
+
result: Result | null | undefined;
|
|
24
|
+
onViewClick: ((data: Component.TableOnViewClick) => void) | undefined;
|
|
25
|
+
type: 'dataTable' | 'basicTable';
|
|
26
|
+
dimension: QueryAttributes.Dimension[];
|
|
27
|
+
dataSet: DataSet;
|
|
28
|
+
};
|
|
29
|
+
export type TableOnViewClick = (rowIndex: number, cellIndex: number, value: string | number, fieldV2?: TableFieldsV2[], additionalAttributes?: AddtionalOnClickAttributes) => void;
|
|
30
|
+
export type TableCellRender = (rowIndex: number, cellIndex: number, value: string | number, fieldV2?: TableFieldsV2[], additionalAttributes?: AddtionalOnClickAttributes) => React.ReactNode | string;
|
|
31
|
+
export type AddtionalOnClickAttributes = {
|
|
32
|
+
grouping?: Component.ReturnedField[];
|
|
33
|
+
value?: Component.ReturnedField;
|
|
34
|
+
};
|
|
35
|
+
export declare function buildTableOnViewClick(params: BuildTableViewClick, cellIndex: number, rowIndex: number, value: string | number, fieldsV2?: TableFieldsV2[], additionalAttributes?: AddtionalOnClickAttributes): void;
|
|
36
|
+
export declare function buildFieldsV2(fields: TableFields[], functionsToCheck: Field.DecodingFunctionsToCheck, row: TableContent[], subsetFields?: TableFields[], drilldown?: Component.TableDrilldown): TableFieldsV2[];
|
|
37
|
+
export declare const transformToObject: (dataObjects: Result.Field[], valuesArray: number[]) => {
|
|
38
|
+
[key: string]: number;
|
|
39
|
+
};
|
|
40
|
+
export declare const hasProtectedFields: (protectedFields?: Component.ProtectedFields) => boolean;
|
|
41
|
+
export type Datum = {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
export type DatumByKey = Record<Datum['key'], Datum>;
|
|
45
|
+
export type BuildTableCellRender = {
|
|
46
|
+
viewId: string;
|
|
47
|
+
supportedAggregates: SupportedAggregates;
|
|
48
|
+
result: Result | null | undefined;
|
|
49
|
+
renderTableCell: ((data: Component.RenderTableCell) => void) | undefined;
|
|
50
|
+
type: 'dataTable' | 'basicTable';
|
|
51
|
+
dimension: QueryAttributes.Dimension[];
|
|
52
|
+
protectedFields?: Component.ProtectedFields;
|
|
53
|
+
};
|
|
54
|
+
export declare const buildTableCell: (props: BuildTableCellRender, cellIndex: number, rowIndex: number, value: string | number, fields?: TableFieldsV2[], additionalAttributes?: AddtionalOnClickAttributes) => React.ReactNode | string;
|
|
55
|
+
export declare function getCellAttributes(result: Result, rowIndex: number, cellIndex: number, type: string, value: string | number, dimension: QueryAttributes.Dimension[], additionalAttributes: AddtionalOnClickAttributes | undefined, supportedAggregates: SupportedAggregates): {
|
|
56
|
+
activeFieldsWithValues: {
|
|
57
|
+
[key: string]: number;
|
|
58
|
+
};
|
|
59
|
+
cell: {
|
|
60
|
+
grouping: Component.ReturnedField[];
|
|
61
|
+
value: Component.ReturnedField;
|
|
62
|
+
fieldId?: undefined;
|
|
63
|
+
function?: undefined;
|
|
64
|
+
aggregate?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
fieldId: string;
|
|
67
|
+
value: string | number;
|
|
68
|
+
function: string;
|
|
69
|
+
aggregate: string;
|
|
70
|
+
grouping?: undefined;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cell.funcs';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
export declare function validateLabelFormat(labelFormatFunc?: (options: Component.LabelFormatOptions) => string | undefined): (options: Component.LabelFormatOptions) => string | undefined;
|
|
3
|
+
export declare const prepareLabelFormatValues: (dimensionKeys?: string[] | undefined, dimensionValues?: (string | number | string[] | null)[] | undefined) => Component.LabelFormatOptionsValues;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
+
import { AddtionalOnClickAttributes } from './cell.funcs';
|
|
4
|
+
export declare function buildGrouping(dimension: QueryAttributes.Dimension[], activeFieldsWithValues: {
|
|
5
|
+
[key: string]: number;
|
|
6
|
+
}, additionalAttributes: AddtionalOnClickAttributes | undefined): Component.ReturnedField[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SaveableDashboardDefinition } from '../Dashboard/types';
|
|
2
|
+
import { DataSet } from '../DataSet/types';
|
|
3
|
+
import { IdentityConfig } from '../IdentityConfig/types';
|
|
4
|
+
import { DataMap } from '../JSQueryEngine/types';
|
|
5
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
6
|
+
type CallbackError = null;
|
|
7
|
+
export type programmaticDashboardCallback = (dataSets: DataSet[]) => Promise<Array<Partial<SaveableDashboardDefinition>>>;
|
|
8
|
+
export type loadDataSetsCallback<Ds = DataSet<DataSet.PreUpcastField>> = (identityConfig: IdentityConfig, queryEngineConfig: QueryEngineConfig) => Promise<Array<Ds>>;
|
|
9
|
+
export type IdentityTokens = {
|
|
10
|
+
dashboardAccessToken: string;
|
|
11
|
+
dataAccessToken?: string;
|
|
12
|
+
queryEngineAccessToken?: string;
|
|
13
|
+
projectAccessToken?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
export type identityCallback = () => Promise<IdentityTokens | CallbackError>;
|
|
16
|
+
export type loadQueryEngineConfigCallback = () => Promise<Omit<QueryEngineConfig, 'supportedTransformationFunctions'> | null>;
|
|
17
|
+
export type loadDataCallback = (dataSet: DataSet) => Promise<DataMap[] | CallbackError>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HorizontalBarChartRepresentation } from '../HorizontalBarChartV2/types';
|
|
2
|
+
import { Result } from '../Result/types';
|
|
3
|
+
import { BaseChartRepresentation, Tick } from './types';
|
|
4
|
+
export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 7.1;
|
|
5
|
+
export declare const ASSUMED_AVERAGE_CHAR_HEIGHT = 24;
|
|
6
|
+
export declare function howManyTicksFitInWidth(ticks: Tick<string | number | Date>[], maxWidth: number, avgCharWidth?: number): number;
|
|
7
|
+
export declare function howManyTicksFitInHeight(ticks: Tick<string | number | Date>[], maxHeight: number, avgCharHeight?: number): number;
|
|
8
|
+
export declare function determineYTicks(ticks: Tick<number>[], height: number): Tick<number>[];
|
|
9
|
+
export declare function pickEquallySpaced<T>(arr: Tick<T>[], numPicks: number): Tick<T>[];
|
|
10
|
+
export declare function adjustTicks<T extends BaseChartRepresentation>(representation: T, width: number, height: number, xKeyField?: Result.Field): T;
|
|
11
|
+
export declare function adjustTicksForHorizontalChart(representation: HorizontalBarChartRepresentation, width: number, height: number, yKeyField?: Result.Field): HorizontalBarChartRepresentation;
|
|
12
|
+
export declare function getEvenlySpacedTicks<DataType extends string | number | Date>(ticks: Tick<DataType>[], count: number, xKeyField: Result.Field | undefined): Tick<DataType>[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormatType } from '../Component/types';
|
|
2
|
+
import { PivotConfig } from '../PivotConfig/types';
|
|
3
|
+
import { Result } from '../Result/types';
|
|
4
|
+
import { NumberFormatter } from './types';
|
|
5
|
+
export declare function buildFieldFormatMaps(result: Result, pivotConfig: PivotConfig, xAxisPrefix: string, xAxisPostfix: string, xAxisFormat: FormatType, yAxisPrefix: string, yAxisPostfix: string, yAxisFormat: FormatType, nullValue: string | undefined, numberFormatOptions: {
|
|
6
|
+
[id: string]: NumberFormatter;
|
|
7
|
+
}): {
|
|
8
|
+
allPrefixes: Record<string, string>;
|
|
9
|
+
allPostfixes: Record<string, string>;
|
|
10
|
+
nullValues: Record<string, string | undefined>;
|
|
11
|
+
activeNumberFormats: Record<string, string>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataItem, KeyId } from './types';
|
|
2
|
+
export type AcceptedTrendTimeUnit = 'week' | 'quarter' | 'year' | 'month';
|
|
3
|
+
interface getTrendArgs {
|
|
4
|
+
data: Array<{
|
|
5
|
+
[key: KeyId]: DataItem;
|
|
6
|
+
}>;
|
|
7
|
+
forecastUnits: number;
|
|
8
|
+
xKey: string;
|
|
9
|
+
yKey: string;
|
|
10
|
+
timeUnit: AcceptedTrendTimeUnit;
|
|
11
|
+
includeForecast: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const buildTrendAndForecast: ({ data, forecastUnits, xKey, yKey, timeUnit, includeForecast }: getTrendArgs) => {
|
|
14
|
+
trendData: {
|
|
15
|
+
date: string;
|
|
16
|
+
value: number;
|
|
17
|
+
}[];
|
|
18
|
+
trendKey: string;
|
|
19
|
+
forecastData: {
|
|
20
|
+
date: string;
|
|
21
|
+
value: number;
|
|
22
|
+
}[];
|
|
23
|
+
forecastKey: string;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function convertToStackedPercentages(data: Record<string, any>[], yKeys: string[], xKey: string | null): Record<string, any>[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConditionalFormattingRule } from '../ChartsV2/types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
interface getConditionalFormattingArgs {
|
|
4
|
+
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
5
|
+
}
|
|
6
|
+
export declare const getConditionalFormatting: ({ conditionalFormattingAttributes, }: getConditionalFormattingArgs) => ConditionalFormattingRule[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GoalLine } from '../ChartsV2/types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
interface getGoalLinesArgs {
|
|
4
|
+
goalLineAttributes: Component.GoalLine.Rule[];
|
|
5
|
+
formattingFunctionY: (value: any) => string;
|
|
6
|
+
}
|
|
7
|
+
export declare const getGoalLines: ({ goalLineAttributes, formattingFunctionY }: getGoalLinesArgs) => GoalLine[];
|
|
8
|
+
export {};
|