@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,63 @@
|
|
|
1
|
+
import { Section } from '../DataPanelConfig/types';
|
|
2
|
+
import { ViewConstants } from './types/namespaces.types';
|
|
3
|
+
export declare function headingConstant(constants: ViewConstants): {
|
|
4
|
+
subSection: (Section<"title"> | Section<"subject">)[];
|
|
5
|
+
type?: "heading" | undefined;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
callToAction?: string;
|
|
9
|
+
testId?: string;
|
|
10
|
+
namespace?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function axisLabelsConstants(constants: ViewConstants): {
|
|
13
|
+
y: {
|
|
14
|
+
prefix: Section<"axisLabels">;
|
|
15
|
+
postfix: Section<"axisLabels">;
|
|
16
|
+
format: Section<"axisLabels">;
|
|
17
|
+
count: Section<"axisLabels">;
|
|
18
|
+
axisTitle: Section<"axisLabels">;
|
|
19
|
+
type?: "axisLabels" | undefined;
|
|
20
|
+
title: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
callToAction?: string;
|
|
23
|
+
testId?: string;
|
|
24
|
+
namespace?: string;
|
|
25
|
+
};
|
|
26
|
+
x: {
|
|
27
|
+
prefix: Section<"axisLabels">;
|
|
28
|
+
postfix: Section<"axisLabels">;
|
|
29
|
+
format: Section<"axisLabels">;
|
|
30
|
+
count: Section<"axisLabels">;
|
|
31
|
+
axisTitle: Section<"axisLabels">;
|
|
32
|
+
type?: "axisLabels" | undefined;
|
|
33
|
+
title: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
callToAction?: string;
|
|
36
|
+
testId?: string;
|
|
37
|
+
namespace?: string;
|
|
38
|
+
};
|
|
39
|
+
type?: "axisLabels" | undefined;
|
|
40
|
+
title: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
callToAction?: string;
|
|
43
|
+
testId?: string;
|
|
44
|
+
namespace?: string;
|
|
45
|
+
};
|
|
46
|
+
export declare function chartStylesConstant(constants: ViewConstants, line: boolean, bar: boolean): {
|
|
47
|
+
subSection: (Section<"curve"> | Section<"legend">)[];
|
|
48
|
+
type?: "chartStyles" | undefined;
|
|
49
|
+
title: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
callToAction?: string;
|
|
52
|
+
testId?: string;
|
|
53
|
+
namespace?: string;
|
|
54
|
+
} | {
|
|
55
|
+
subSection: (Section<"legend"> | Section<"stacked">)[];
|
|
56
|
+
type?: "chartStyles" | undefined;
|
|
57
|
+
title: string;
|
|
58
|
+
description?: string;
|
|
59
|
+
callToAction?: string;
|
|
60
|
+
testId?: string;
|
|
61
|
+
namespace?: string;
|
|
62
|
+
};
|
|
63
|
+
export declare function statsLabelsConstant(constants: ViewConstants, namespace: string): Omit<Section<'statsLabels'>, 'type'>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DataSet as DataSetType } from '../DataSet/types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
export declare const setDataAttributesFromPreAggregatedDataSet: <T extends Component.Attributes>(attributes: T, dataSet: DataSetType, setAttributes: (attrs: T, partial: any) => T) => T;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataSet } from '../../DataSet/types';
|
|
2
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
3
|
+
import { TextOverride } from '../../Translations/types';
|
|
4
|
+
export type ComponentInterfaceConfig = {
|
|
5
|
+
queryEngineConfig: QueryEngineConfig;
|
|
6
|
+
attributesSchemaOptions?: {
|
|
7
|
+
restrictFields?: Array<{
|
|
8
|
+
id: string;
|
|
9
|
+
dataType: DataSet['fields'][number]['dataType'];
|
|
10
|
+
publicName?: string;
|
|
11
|
+
description?: DataSet['fields'][number]['description'];
|
|
12
|
+
canBeDimension: boolean;
|
|
13
|
+
canBeMeasure: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
restrictDataSetIds?: string[];
|
|
16
|
+
};
|
|
17
|
+
textOverride?: TextOverride;
|
|
18
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export type Section<Type> = {
|
|
2
|
+
type?: Type;
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
callToAction?: string;
|
|
6
|
+
};
|
|
7
|
+
export type ViewConstants = {
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
namespace: ComponentNamespace;
|
|
11
|
+
data_panel: DataPanelNamespaces;
|
|
12
|
+
format_panel: FormatPanelNamespaces;
|
|
13
|
+
};
|
|
14
|
+
export type SubSection<Type> = Section<Type> & {
|
|
15
|
+
namespace?: string;
|
|
16
|
+
};
|
|
17
|
+
type SubSectionDef = {
|
|
18
|
+
line?: SubSection<'metrics'>;
|
|
19
|
+
bar?: SubSection<'metrics'>;
|
|
20
|
+
xAxis?: SubSection<'metrics'>;
|
|
21
|
+
yAxis?: SubSection<'metrics'>;
|
|
22
|
+
zAxis?: SubSection<'metrics'>;
|
|
23
|
+
};
|
|
24
|
+
export type Pagination = {
|
|
25
|
+
options: number[];
|
|
26
|
+
};
|
|
27
|
+
export interface DataPanelNamespaces {
|
|
28
|
+
combo_chart_dimension?: Section<'comboChartDimension'>;
|
|
29
|
+
comparison?: Section<'comparison'>;
|
|
30
|
+
custom_metrics?: Section<'customMetrics'>;
|
|
31
|
+
data_set: Section<'dataSet'>;
|
|
32
|
+
dateComparison?: Section<'dateComparison'>;
|
|
33
|
+
drilldown?: Section<'drilldown'>;
|
|
34
|
+
field_columns?: Section<'fieldCollector'>;
|
|
35
|
+
field_country?: Section<'fieldCollector'>;
|
|
36
|
+
field_grouping?: Section<'fieldCollector'>;
|
|
37
|
+
field_metrics?: Section<'fieldCollector'>;
|
|
38
|
+
field_rows?: Section<'fieldCollector'>;
|
|
39
|
+
field_x_axis?: Section<'fieldCollector'>;
|
|
40
|
+
field_y_axis?: Section<'fieldCollector'>;
|
|
41
|
+
field_z_axis?: Section<'fieldCollector'>;
|
|
42
|
+
fields?: Section<'fields'>;
|
|
43
|
+
filter?: Section<'filter'>;
|
|
44
|
+
labelled_metrics?: Section<'labelledMetrics'> & {
|
|
45
|
+
subSectionDefinition: SubSectionDef;
|
|
46
|
+
};
|
|
47
|
+
limit?: Section<'limit'>;
|
|
48
|
+
pagination?: Section<'pagination'>;
|
|
49
|
+
progress_goals?: Section<'progressGoals'>;
|
|
50
|
+
sort?: Section<'sort'>;
|
|
51
|
+
views: Section<'views'>;
|
|
52
|
+
}
|
|
53
|
+
export type Namespace = keyof FormatPanelNamespaces | keyof DataPanelNamespaces;
|
|
54
|
+
export interface FormatPanelNamespaces {
|
|
55
|
+
axis_labels?: Section<'axisLabels'> & {
|
|
56
|
+
subSectionDefinition: {
|
|
57
|
+
x: SubSection<'axisLabels'>;
|
|
58
|
+
'x.prefix': SubSection<'axisLabels'>;
|
|
59
|
+
'x.postfix': SubSection<'axisLabels'>;
|
|
60
|
+
'x.format': SubSection<'axisLabels'>;
|
|
61
|
+
'x.count': SubSection<'axisLabels'>;
|
|
62
|
+
'x.axis_title'?: SubSection<'axisLabels'>;
|
|
63
|
+
y: SubSection<'axisLabels'>;
|
|
64
|
+
'y.prefix': SubSection<'axisLabels'>;
|
|
65
|
+
'y.postfix': SubSection<'axisLabels'>;
|
|
66
|
+
'y.format': SubSection<'axisLabels'>;
|
|
67
|
+
'y.count': SubSection<'axisLabels'>;
|
|
68
|
+
'y.axis_title'?: SubSection<'axisLabels'>;
|
|
69
|
+
z?: SubSection<'axisLabels'>;
|
|
70
|
+
'z.prefix'?: SubSection<'axisLabels'>;
|
|
71
|
+
'z.postfix'?: SubSection<'axisLabels'>;
|
|
72
|
+
'z.format'?: SubSection<'axisLabels'>;
|
|
73
|
+
'z.count'?: SubSection<'axisLabels'>;
|
|
74
|
+
'z.axis_title'?: SubSection<'axisLabels'>;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
stats_labels?: Section<'statsLabels'> & {
|
|
78
|
+
subSectionDefinition: {
|
|
79
|
+
prefix: SubSection<'statsLabels'>;
|
|
80
|
+
postfix: SubSection<'statsLabels'>;
|
|
81
|
+
format: SubSection<'statsLabels'>;
|
|
82
|
+
count: SubSection<'statsLabels'>;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
rich_text?: Section<'richText'>;
|
|
86
|
+
heading: Section<'heading'> & {
|
|
87
|
+
subSectionDefinition: {
|
|
88
|
+
title: SubSection<'title'>;
|
|
89
|
+
subject: SubSection<'subject'>;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
progress_type?: Section<'progressType'>;
|
|
93
|
+
chart_styles?: Section<'chartStyles'> & {
|
|
94
|
+
subSectionDefinition: {
|
|
95
|
+
stacked?: SubSection<'stacked'>;
|
|
96
|
+
legend?: SubSection<'legend'>;
|
|
97
|
+
labels?: SubSection<'labels'>;
|
|
98
|
+
curve?: SubSection<'curve'>;
|
|
99
|
+
number_format?: SubSection<'numberFormat'>;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
format?: Section<'format'> & {
|
|
103
|
+
subSectionDefinition: {
|
|
104
|
+
time?: SubSection<'time'>;
|
|
105
|
+
font_size?: SubSection<'fontSize'>;
|
|
106
|
+
direction?: SubSection<'direction'>;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
goal_line?: Section<'goalLine'>;
|
|
110
|
+
map_colors?: Section<'mapColors'>;
|
|
111
|
+
waterfall_colors?: Section<'waterfallColors'>;
|
|
112
|
+
headline?: Section<'headline'>;
|
|
113
|
+
trends?: Section<'trends'>;
|
|
114
|
+
prefixes?: Section<'prefixes'>;
|
|
115
|
+
conditional_formatting?: Section<'conditionalFormatting'> & {
|
|
116
|
+
subSectionDefinition?: {
|
|
117
|
+
bar: SubSection<'stacked'>;
|
|
118
|
+
line: SubSection<'stacked'>;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
quadrants?: Section<'quadrants'>;
|
|
122
|
+
}
|
|
123
|
+
export type ComponentNamespace = 'area_chart' | 'bar_chart' | 'basic_table' | 'bubble_chart' | 'combo_chart' | 'custom' | 'fields' | 'funnel_chart' | 'headline' | 'horizontal_bar_chart' | 'line_chart' | 'mercator_map' | 'pie_chart' | 'sunburst_chart' | 'pivot_table' | 'progress' | 'rich_text' | 'scatter_chart' | 'single_stat' | 'waterfall_chart' | 'radar_chart';
|
|
124
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
|
+
import { Dumpable } from '../Dumpable';
|
|
3
|
+
import { DataSet } from '../DataSet/types';
|
|
4
|
+
import { DataPanelConfig } from '../DataPanelConfig/types';
|
|
5
|
+
import { FormatPanelConfig } from '../FormatPanelConfig/types';
|
|
6
|
+
import FieldNotFoundInDataSet from '../errors/FieldNotFoundInDataSet';
|
|
7
|
+
import DataSetNotFound from '../errors/DataSetNotFound';
|
|
8
|
+
import CorruptedView from '../errors/CorruptedView';
|
|
9
|
+
import { ComponentInterfaceConfig } from './types/ComponentInterfaceConfig';
|
|
10
|
+
import { ComponentNamespace } from './types/namespaces.types';
|
|
11
|
+
import { AcceptedTypes } from '../CustomField/types';
|
|
12
|
+
export * from './types/ComponentInterfaceConfig';
|
|
13
|
+
export interface ComponentInterface<Hydrated = any, Dumped = any> extends Dumpable<Hydrated, Dumped> {
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
servicesClass: string;
|
|
17
|
+
namespace: ComponentNamespace;
|
|
18
|
+
setDataAttributesFromPreAggregatedDataSet?: (attributes: Hydrated, dataSet: DataSet) => Hydrated;
|
|
19
|
+
removeField: (hydrated: Hydrated, fieldId: string) => Hydrated;
|
|
20
|
+
init: (dataSetId: string, overrides?: Partial<Hydrated>) => Hydrated;
|
|
21
|
+
setAttributes: (original: Hydrated, changes: Partial<Hydrated>) => Hydrated;
|
|
22
|
+
validate: (hydrated: Hydrated, dataSets: DataSet[]) => (CorruptedView | FieldNotFoundInDataSet | DataSetNotFound)[];
|
|
23
|
+
schema: Joi.ObjectSchema;
|
|
24
|
+
createFeedback?: (hydrated: Hydrated) => boolean | string | null;
|
|
25
|
+
isRunnable: (hydrated: Hydrated) => boolean;
|
|
26
|
+
autoGenerate: (dataSet: DataSet) => Hydrated;
|
|
27
|
+
dataPanelConfig: () => DataPanelConfig;
|
|
28
|
+
formatPanelConfig: () => FormatPanelConfig;
|
|
29
|
+
supportedCustomFields: {
|
|
30
|
+
percentages: boolean;
|
|
31
|
+
simpleMaths: boolean;
|
|
32
|
+
aggregateMaths: boolean;
|
|
33
|
+
rules: boolean;
|
|
34
|
+
roundedNumbers: boolean;
|
|
35
|
+
dateCalculations: boolean;
|
|
36
|
+
conditional: boolean;
|
|
37
|
+
customBuild: Array<AcceptedTypes> | false;
|
|
38
|
+
};
|
|
39
|
+
supportedFeatures: {
|
|
40
|
+
parameters: boolean;
|
|
41
|
+
colorGradient: boolean;
|
|
42
|
+
};
|
|
43
|
+
supportedAggregations?: Array<string>;
|
|
44
|
+
}
|
|
45
|
+
export type LoadComponentInterface<Hydrated, Dumped> = (config: ComponentInterfaceConfig) => ComponentInterface<Hydrated, Dumped>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import * as Field from '../Field';
|
|
3
|
+
type OldRules = {
|
|
4
|
+
field?: any;
|
|
5
|
+
operator?: any;
|
|
6
|
+
value?: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const upcast: (functionsToCheck: Field.DecodingFunctionsToCheck, conditionalFormattingRules?: Array<Component.ConditionalFormatting.Rule & OldRules>) => Component.ConditionalFormatting.Rule[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Joi from '@vizzly/joi';
|
|
2
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
3
|
+
export declare const conditionalFormattingRuleSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ObjectSchema<any>;
|
|
4
|
+
export declare const prefixSchema: Joi.ObjectSchema<any>;
|
|
5
|
+
export declare const conditionalFormattingRulesSchema: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConditionalFormatting';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
2
|
+
export type ComparisonFilter = {
|
|
3
|
+
op: QueryAttributes.Operator;
|
|
4
|
+
value: QueryAttributes.Filter['value'];
|
|
5
|
+
};
|
|
6
|
+
export declare const compare: (filter: ComparisonFilter, recordValue: unknown) => any;
|
|
7
|
+
export declare const conditionIsMet: (filter: ComparisonFilter, value: number | string | boolean) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AggregateMathField, AggregateNested } from '../../CustomField/types';
|
|
2
|
+
import { Query } from '../../Query/types';
|
|
3
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
4
|
+
import { VariableList } from '../../Variables/types';
|
|
5
|
+
import { MathOperator } from '../types';
|
|
6
|
+
export declare const init: (publicName: string, leftFieldId: string, leftFunction: string, operator: MathOperator, rightFieldId: string, rightFunction: string, queryEngineConfig: QueryEngineConfig, leftNested: AggregateNested | undefined, rightNested: AggregateNested | undefined) => AggregateMathField;
|
|
7
|
+
export declare const build: (customField: AggregateMathField, variables: VariableList) => Query["measure"][number];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Params } from 'results-driver/src/types';
|
|
2
|
+
import { DataSet } from '../../DataSet/types';
|
|
3
|
+
import { Query } from '../../Query/types';
|
|
4
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
5
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
6
|
+
import { AliasFieldType } from '../types';
|
|
7
|
+
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: AliasFieldType, _queryEngineConfig: QueryEngineConfig, dataSet: DataSet, _queryHasDimension: boolean, params: Params) => Query["measure"][number];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Params } from 'results-driver/src/types';
|
|
2
|
+
import { DataSet } from '../../DataSet/types';
|
|
3
|
+
import { Query } from '../../Query/types';
|
|
4
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
5
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
6
|
+
import { ConditionalField } from '../types';
|
|
7
|
+
export declare const init: (publicName: string, fieldId: string, func: string, rule: QueryAttributes.Filter[][], queryEngineConfig: QueryEngineConfig) => ConditionalField;
|
|
8
|
+
export declare const build: (field: ConditionalField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query["measure"][number];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DataSet as DataSetType } from '../DataSet/types';
|
|
2
|
+
import { AggregateMathField, AliasFieldType, ConditionalField, CustomField, DateCalculationField, MetricField, PercentageField, RoundedNumberField, RulesField, SimpleMathField } from '../CustomField/types';
|
|
3
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
5
|
+
import { Query } from '../Query/types';
|
|
6
|
+
import { CustomFieldCategory } from './types';
|
|
7
|
+
import { Params } from 'results-driver/src/types';
|
|
8
|
+
export declare const isSimpleMathField: (field: DataSetType.Field) => field is SimpleMathField;
|
|
9
|
+
export declare const isRoundedNumberField: (field: DataSetType.Field) => field is RoundedNumberField;
|
|
10
|
+
export declare const isAggregateMathField: (field: DataSetType.Field) => field is AggregateMathField;
|
|
11
|
+
export declare const isPercentageField: (field: DataSetType.Field) => field is PercentageField;
|
|
12
|
+
export declare const isRules: (field: DataSetType.Field) => field is RulesField;
|
|
13
|
+
export declare const isConditional: (field: DataSetType.Field) => field is ConditionalField;
|
|
14
|
+
export declare const isCustomBuildMetric: (field: DataSetType.Field) => field is MetricField;
|
|
15
|
+
export declare const isAliasField: (field: DataSetType.Field) => field is AliasFieldType;
|
|
16
|
+
export declare const isDateCalculation: (field: DataSetType.Field) => field is DateCalculationField;
|
|
17
|
+
export declare const getCustomFieldCategory: (field: CustomField) => CustomFieldCategory;
|
|
18
|
+
export declare const isCustomField: (field: DataSetType.Field) => field is CustomField;
|
|
19
|
+
/**
|
|
20
|
+
* Converts a custom field definition to
|
|
21
|
+
* a measure.
|
|
22
|
+
*/
|
|
23
|
+
export declare const toQueryMeasure: (measureAttribute: QueryAttributes.Measure, customField: CustomField, queryEngineConfig: QueryEngineConfig, dataSet: DataSetType, queryHasDimension: boolean, params: Params) => Query["measure"][number];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Params } from 'results-driver/src/types';
|
|
2
|
+
import { DataSet } from '../../DataSet/types';
|
|
3
|
+
import { Query } from '../../Query/types';
|
|
4
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
5
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
6
|
+
import { MetricField } from '../types';
|
|
7
|
+
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: MetricField, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => Query["measure"][number];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { QueryAttributes } from '../../../../shared-logic/src/QueryAttributes/types';
|
|
2
|
+
export declare enum PropertyType {
|
|
3
|
+
Operator = "operator",
|
|
4
|
+
IfLogic = "ifLogic",
|
|
5
|
+
NumberInput = "number",
|
|
6
|
+
Variable = "variable",
|
|
7
|
+
Field = "field",
|
|
8
|
+
Aggregate = "aggregate"
|
|
9
|
+
}
|
|
10
|
+
export declare enum OperatorType {
|
|
11
|
+
Divide = "/",
|
|
12
|
+
Multiply = "*",
|
|
13
|
+
Subtract = "-",
|
|
14
|
+
Add = "+"
|
|
15
|
+
}
|
|
16
|
+
export type NumberInput = {
|
|
17
|
+
type: PropertyType.NumberInput;
|
|
18
|
+
value: number | undefined;
|
|
19
|
+
};
|
|
20
|
+
export type Variable = {
|
|
21
|
+
type: PropertyType.Variable;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
export type Field = {
|
|
25
|
+
type: PropertyType.Field;
|
|
26
|
+
fieldId: string;
|
|
27
|
+
function: string;
|
|
28
|
+
};
|
|
29
|
+
export type Aggregate = {
|
|
30
|
+
type: PropertyType.Aggregate;
|
|
31
|
+
fieldId: string;
|
|
32
|
+
function?: string;
|
|
33
|
+
};
|
|
34
|
+
export type IfLogic = {
|
|
35
|
+
type: PropertyType.IfLogic;
|
|
36
|
+
cases: Array<{
|
|
37
|
+
filter: Array<QueryAttributes.Filter[]>;
|
|
38
|
+
returns: Operator | NumberInput | Field | Variable | IfLogic | Aggregate | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
else: Operator | NumberInput | Field | Variable | IfLogic | undefined | Aggregate;
|
|
41
|
+
};
|
|
42
|
+
export type Operator = {
|
|
43
|
+
type: PropertyType.Operator;
|
|
44
|
+
op: OperatorType;
|
|
45
|
+
values: Array<Operator | NumberInput | Field | Variable | IfLogic | Aggregate>;
|
|
46
|
+
};
|
|
47
|
+
export type Metric = Operator | IfLogic | Aggregate | NumberInput | Field;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Query } from '../../Query/types';
|
|
2
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
3
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
4
|
+
import { VariableList } from '../../Variables/types';
|
|
5
|
+
import { DateCalculationField } from '../types';
|
|
6
|
+
export declare const init: (publicName: string, leftFieldId: string, dateCalculationFunction: DateCalculationField["dateCalculationFunction"], rightFieldId: string, queryEngineConfig: QueryEngineConfig) => DateCalculationField;
|
|
7
|
+
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: DateCalculationField, variables: VariableList) => Query["measure"][number];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Params } from 'results-driver/src/types';
|
|
2
|
+
import { DataSet } from '../../DataSet/types';
|
|
3
|
+
import { Query } from '../../Query/types';
|
|
4
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
5
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
6
|
+
import { VariableList } from '../../Variables/types';
|
|
7
|
+
import { PercentageField } from '../types';
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new custom percentage field.
|
|
10
|
+
*/
|
|
11
|
+
export declare const init: (publicName: string, denominatorFieldId: string, denominatorAggregate: string, numeratorFieldId: string | null, numeratorAggregate: string | null, numeratorFilter: QueryAttributes["filter"], denominatorFilter: QueryAttributes["filter"], queryEngineConfig: QueryEngineConfig, denominatorScope?: PercentageField["denominatorScope"]) => PercentageField;
|
|
12
|
+
export declare const build: (customField: PercentageField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, _queryHasDimension: boolean, params: Params) => Query["measure"][number];
|
|
13
|
+
export declare function buildPercentageFilters(customField: PercentageField, variables: VariableList): {
|
|
14
|
+
queryFilterFromNumeratorFilter: import("@vizzly/sqlbuilder-public").RecursiveFilter;
|
|
15
|
+
queryFilterFromDenominatorFilter: import("@vizzly/sqlbuilder-public").RecursiveFilter;
|
|
16
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RoundedNumberField } from '../../CustomField/types';
|
|
2
|
+
import { Query } from '../../Query/types';
|
|
3
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
4
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
5
|
+
import { VariableList } from '../../Variables/types';
|
|
6
|
+
export declare const init: (publicName: string, fieldId: string, roundToDecimalPlaces: 0 | 2, queryEngineConfig: QueryEngineConfig) => RoundedNumberField;
|
|
7
|
+
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: RoundedNumberField, variables: VariableList) => Query["measure"][number];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Params } from 'results-driver/src/types';
|
|
2
|
+
import { RulesField } from '../../CustomField/types';
|
|
3
|
+
import { DataSet } from '../../DataSet/types';
|
|
4
|
+
import { Query, QueryNameSpace } from '../../Query/types';
|
|
5
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
6
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
7
|
+
import { Rules } from './types';
|
|
8
|
+
export declare const init: (publicName: string, rules: Rules[], queryEngineConfig: QueryEngineConfig) => RulesField;
|
|
9
|
+
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: RulesField, queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query["measure"][number];
|
|
10
|
+
export declare const convertToCases: (rules: Rules[], queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => QueryNameSpace.Cases[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SimpleMathField } from '../../CustomField/types';
|
|
2
|
+
import { Query, QueryNameSpace } from '../../Query/types';
|
|
3
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
4
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
5
|
+
import { MathOperator } from '../types';
|
|
6
|
+
import { DataSet } from '../../DataSet/types';
|
|
7
|
+
import { Params } from 'results-driver/src/types';
|
|
8
|
+
import { VariableList } from '../../Variables/types';
|
|
9
|
+
export declare const init: (publicName: string, leftFieldId: string, operator: MathOperator, rightFieldId: string, queryEngineConfig: QueryEngineConfig) => SimpleMathField;
|
|
10
|
+
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: SimpleMathField, dataSet: DataSet, params: Params) => Query["measure"][number];
|
|
11
|
+
export declare const buildSide: (value: string, dataSet: DataSet, variables: VariableList) => QueryNameSpace.FieldDefinition;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Clause } from '../Filter/types';
|
|
2
|
+
export declare const alwaysTrueFilter: {
|
|
3
|
+
type: Clause.AND_WHERE;
|
|
4
|
+
value: {
|
|
5
|
+
type: Clause.WHERE;
|
|
6
|
+
value: {
|
|
7
|
+
field: {
|
|
8
|
+
type: "number";
|
|
9
|
+
value: number;
|
|
10
|
+
};
|
|
11
|
+
op: string;
|
|
12
|
+
value: number;
|
|
13
|
+
};
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './CustomField';
|
|
2
|
+
export * as Percentage from './Percentage';
|
|
3
|
+
export * as SimpleMath from './SimpleMath';
|
|
4
|
+
export * as AggregateMath from './AggregateMath';
|
|
5
|
+
export * as Rules from './Rules';
|
|
6
|
+
export * as RoundedNumber from './RoundedNumber';
|
|
7
|
+
export * as DateCalculation from './DateCalculation';
|
|
8
|
+
export * as Conditional from './Conditional';
|
|
9
|
+
export * as CustomMetric from './CustomMetric';
|
|
10
|
+
export * from './upcast';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
2
|
+
import { BaseField, DataType, NonDateTimeField } from '../Field/types';
|
|
3
|
+
import { Rules } from './Rules/types';
|
|
4
|
+
import { Metric } from './CustomMetric/types';
|
|
5
|
+
type BaseCustomField = Omit<NonDateTimeField, 'dashboardFilterGroups'>;
|
|
6
|
+
type SimpleMath = {
|
|
7
|
+
leftFieldId: string;
|
|
8
|
+
operator: MathOperator;
|
|
9
|
+
rightFieldId: string;
|
|
10
|
+
};
|
|
11
|
+
type RoundedNumber = {
|
|
12
|
+
roundToDecimalPlaces: 0 | 2;
|
|
13
|
+
fieldId: string;
|
|
14
|
+
};
|
|
15
|
+
export type Conditional = {
|
|
16
|
+
fieldId: string;
|
|
17
|
+
function: string;
|
|
18
|
+
rule: QueryAttributes.Filter[][];
|
|
19
|
+
};
|
|
20
|
+
export type Percentage = {
|
|
21
|
+
version: 2;
|
|
22
|
+
denominatorFieldId: string;
|
|
23
|
+
denominatorAggregate: string;
|
|
24
|
+
numeratorFieldId?: string | null;
|
|
25
|
+
numeratorAggregate?: string | null;
|
|
26
|
+
denominatorScope?: 'all' | 'withinGrouping';
|
|
27
|
+
numeratorFilter?: QueryAttributes['filter'];
|
|
28
|
+
denominatorFilter?: QueryAttributes['filter'];
|
|
29
|
+
dataType: DataType;
|
|
30
|
+
};
|
|
31
|
+
export type AggregateNested = {
|
|
32
|
+
operator: MathOperator;
|
|
33
|
+
fieldId: string;
|
|
34
|
+
/** @deprecated ignore this outside of upcasting */
|
|
35
|
+
aggregate?: string;
|
|
36
|
+
function: string;
|
|
37
|
+
};
|
|
38
|
+
export type AggregateMath = {
|
|
39
|
+
leftFieldId: string;
|
|
40
|
+
leftFunction: string;
|
|
41
|
+
leftNested?: AggregateNested;
|
|
42
|
+
operator: MathOperator;
|
|
43
|
+
rightFieldId: string;
|
|
44
|
+
rightFunction: string;
|
|
45
|
+
rightNested?: AggregateNested;
|
|
46
|
+
/** @deprecated ignore this outside of upcasting */
|
|
47
|
+
leftAggregate?: string;
|
|
48
|
+
/** @deprecated ignore this outside of upcasting */
|
|
49
|
+
rightAggregate?: string;
|
|
50
|
+
};
|
|
51
|
+
export type DateCalculation = {
|
|
52
|
+
leftFieldId: string;
|
|
53
|
+
rightFieldId: string;
|
|
54
|
+
dateCalculationFunction: 'seconds_between' | 'minutes_between' | 'hours_between' | 'days_between';
|
|
55
|
+
};
|
|
56
|
+
export type PercentageField = BaseCustomField & Percentage;
|
|
57
|
+
export type RoundedNumberField = BaseCustomField & RoundedNumber;
|
|
58
|
+
export type DateCalculationField = BaseCustomField & DateCalculation;
|
|
59
|
+
export type AggregateMathField = BaseCustomField & AggregateMath;
|
|
60
|
+
export type ConditionalField = BaseCustomField & Conditional;
|
|
61
|
+
export type AliasFieldType = BaseCustomField & {
|
|
62
|
+
allowedFields: Array<{
|
|
63
|
+
id: string;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
export type MetricField = BaseCustomField & {
|
|
67
|
+
metric: Metric;
|
|
68
|
+
};
|
|
69
|
+
export type SimpleMathField = BaseCustomField & SimpleMath & {
|
|
70
|
+
dataType: 'number';
|
|
71
|
+
};
|
|
72
|
+
export type RulesField = BaseField & {
|
|
73
|
+
rules: Rules[];
|
|
74
|
+
dataType: 'string' | 'number';
|
|
75
|
+
};
|
|
76
|
+
export type CustomBuildMetricField = BaseField & {
|
|
77
|
+
metricAttributes: Metric;
|
|
78
|
+
dataType: 'number';
|
|
79
|
+
};
|
|
80
|
+
export type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField | CustomBuildMetricField | AliasFieldType;
|
|
81
|
+
export type MathOperator = '*' | '-' | '/' | '+';
|
|
82
|
+
export type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional' | 'customBuildMetric';
|
|
83
|
+
export declare enum AcceptedTypes {
|
|
84
|
+
Maths = "maths",
|
|
85
|
+
IfStatement = "ifStatement",
|
|
86
|
+
Aggregates = "aggregates"
|
|
87
|
+
}
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CustomView, SelectableCustomView, StaticCustomView } from './types';
|
|
2
|
+
export declare const isStatic: (component: CustomView) => component is StaticCustomView;
|
|
3
|
+
export declare const isSelectable: (component: CustomView) => component is SelectableCustomView;
|
|
4
|
+
export declare const getSelectableComponents: (components: CustomView[]) => SelectableCustomView[];
|
|
5
|
+
export declare const findSelectableById: (components: CustomView[], id: string) => SelectableCustomView | undefined;
|