@vizzly/services 0.15.0-dev-dfdff442d54d270df03c337679ae904243a831b6 → 0.15.0-dev-f576f0918251ec7901abbda943caec672e40c29c
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 → services/src/Services}/Cell.d.ts +1 -1
- package/dist/types/{Services → services/src/Services}/Dashboard.d.ts +2 -2
- package/dist/types/{Services → services/src/Services}/Editor.d.ts +1 -1
- package/dist/types/{Services → services/src/Services}/Header.d.ts +1 -1
- package/dist/types/{Services → services/src/Services}/Library.d.ts +1 -1
- package/dist/types/{Services → services/src/Services}/View.d.ts +1 -1
- package/dist/types/{VizzlyLoader.d.ts → services/src/VizzlyLoader.d.ts} +7 -7
- package/dist/types/{eventbus.types.d.ts → services/src/eventbus.types.d.ts} +1 -1
- package/dist/types/{index.d.ts → services/src/index.d.ts} +21 -20
- package/dist/types/services/src/schemaValidations/cell.d.ts +1 -0
- package/dist/types/{schemaValidations → services/src/schemaValidations}/dashboard.d.ts +1 -1
- package/dist/types/services/src/schemaValidations/filters.d.ts +3 -0
- package/dist/types/{schemaValidations → services/src/schemaValidations}/query.d.ts +1 -1
- 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/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/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/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/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/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/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/index.d.ts +4 -0
- package/dist/types/shared-logic/src/BubbleChart/setAttributes.d.ts +4 -0
- package/dist/types/shared-logic/src/BubbleChartV2/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/BubbleChartV2/constants.d.ts +3 -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/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/attributesSchema.d.ts +3 -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/Component/Component.d.ts +11 -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/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/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/build.d.ts +7 -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/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/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/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/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/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/Drilldown/schema.d.ts +3 -0
- package/dist/types/shared-logic/src/Dumpable.d.ts +5 -0
- package/dist/types/shared-logic/src/Field/Field.d.ts +102 -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/GlobalFilter/index.d.ts +4 -0
- package/dist/types/shared-logic/src/GlobalFilter/types.d.ts +27 -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/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/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/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/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/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/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/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/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/QueryEngineConfig/types.d.ts +10 -0
- package/dist/types/shared-logic/src/RadarChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/RadarChart/constants.d.ts +3 -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/Report/types.d.ts +6 -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/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/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/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/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/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/shared.d.ts +10 -0
- package/dist/types/shared-logic/src/Translations/textOverrideComponent.d.ts +30 -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/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/WaterfallChart/attributesSchema.d.ts +3 -0
- package/dist/types/shared-logic/src/WaterfallChart/constants.d.ts +3 -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/errors/CorruptedView.d.ts +5 -0
- package/dist/types/shared-logic/src/errors/DataSetNotFound.d.ts +5 -0
- package/dist/types/shared-logic/src/errors/FieldNotFoundInDataSet.d.ts +7 -0
- package/dist/types/shared-logic/src/errors/ValidationError.d.ts +4 -0
- package/dist/types/shared-logic/src/errors/VariableNotFoundForVariables.d.ts +7 -0
- package/dist/types/shared-logic/src/getComponentInterface.d.ts +28 -0
- package/dist/types/shared-logic/src/typeHelpers.d.ts +1 -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/stringHelper.d.ts +10 -0
- package/package.json +6 -6
- package/dist/types/schemaValidations/cell.d.ts +0 -1
- package/dist/types/schemaValidations/filters.d.ts +0 -3
- /package/dist/types/{Services → services/src/Services}/Row.d.ts +0 -0
- /package/dist/types/{Services → services/src/Services}/index.d.ts +0 -0
- /package/dist/types/{errors → services/src/errors}/ServicesValidationError.d.ts +0 -0
- /package/dist/types/{errors → services/src/errors}/TimeoutWaitingForVizzlyInstance.d.ts +0 -0
- /package/dist/types/{errors → services/src/errors}/VizzlyInstanceNotLoaded.d.ts +0 -0
- /package/dist/types/{schemaValidations → services/src/schemaValidations}/index.d.ts +0 -0
- /package/dist/types/{schemaValidations → services/src/schemaValidations}/library.d.ts +0 -0
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
import { DateTimeFormat } from '../Field/types';
|
|
2
|
+
import { FormattingRuleType } from '../FormattingRule/types';
|
|
3
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
|
+
import { Report } from '../Report/types';
|
|
5
|
+
import { Result } from '../Result/types';
|
|
6
|
+
import { AdditionalFilter } from '../AdditionalFilter/types';
|
|
7
|
+
import { TableFieldsV2 } from '../DataTable/types';
|
|
8
|
+
import { Dictionary } from 'lodash';
|
|
9
|
+
import { MovingAverage, TrendType } from '../Trends/types';
|
|
10
|
+
import { DataSet } from '../DataSet/types';
|
|
11
|
+
import { RulesField } from '../CustomField/types';
|
|
12
|
+
export type getNumberFormatter = (formatterId: string | undefined | null) => (number: number) => string;
|
|
13
|
+
export type FormatType = string | null;
|
|
14
|
+
export type ApproxAxisLabelCount = 'auto' | number;
|
|
15
|
+
export type ComponentType = 'areaChart' | 'areaChartV2' | 'barChart' | 'barChartV2' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'horizontalBarChartV2' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'radarChart' | 'richText' | 'scatterChart' | 'singleStat' | 'sunburstChart' | 'waterfallChart';
|
|
16
|
+
export declare const componentTypes: string[];
|
|
17
|
+
export declare namespace Component {
|
|
18
|
+
export type LineCurve = 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
|
|
19
|
+
export type AreaCurve = 'natural' | 'straight' | 'step';
|
|
20
|
+
export type RawComponent = Omit<Component, 'queries' | 'results' | 'span'> & {
|
|
21
|
+
colSpan?: number;
|
|
22
|
+
};
|
|
23
|
+
export type Tag = {
|
|
24
|
+
key: string;
|
|
25
|
+
};
|
|
26
|
+
type BaseAttributes = {
|
|
27
|
+
viewId?: string;
|
|
28
|
+
dataSetId: string;
|
|
29
|
+
displayTitle: string;
|
|
30
|
+
displaySubject: string;
|
|
31
|
+
protectedByOrganisation?: boolean;
|
|
32
|
+
tags: Tag[];
|
|
33
|
+
};
|
|
34
|
+
type BaseQueryAttributes = QueryAttributes & {
|
|
35
|
+
dataSetId: string;
|
|
36
|
+
};
|
|
37
|
+
export type RichTextAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
38
|
+
type: 'richText';
|
|
39
|
+
content: object;
|
|
40
|
+
};
|
|
41
|
+
export type MercatorMapAttributes = BaseAttributes & {
|
|
42
|
+
type: 'mercatorMap';
|
|
43
|
+
measure: BaseQueryAttributes['measure'];
|
|
44
|
+
dimension: BaseQueryAttributes['dimension'];
|
|
45
|
+
filter: BaseQueryAttributes['filter'];
|
|
46
|
+
limit: BaseQueryAttributes['limit'];
|
|
47
|
+
labelFormat: FormatType;
|
|
48
|
+
backgroundColor: string;
|
|
49
|
+
noDataColor: string;
|
|
50
|
+
maxValueColor: string;
|
|
51
|
+
minValueColor: string;
|
|
52
|
+
position?: {
|
|
53
|
+
scale: number;
|
|
54
|
+
centerX: number;
|
|
55
|
+
centerY: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export type BarChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
59
|
+
type: 'barChart';
|
|
60
|
+
stacked?: boolean | '100%';
|
|
61
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
62
|
+
xAxisPrefix: string;
|
|
63
|
+
yAxisPrefix: string;
|
|
64
|
+
xAxisPostfix: string;
|
|
65
|
+
yAxisPostfix: string;
|
|
66
|
+
xAxisFormat: FormatType;
|
|
67
|
+
yAxisFormat: FormatType;
|
|
68
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
69
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
70
|
+
drilldown: QueryAttributes.Dimension[];
|
|
71
|
+
legend: boolean;
|
|
72
|
+
protectedFields?: ProtectedFields;
|
|
73
|
+
parameters?: Parameters;
|
|
74
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
75
|
+
axisTitles?: AxisTitles;
|
|
76
|
+
headline?: Headline;
|
|
77
|
+
drilldownOptions: Array<DrilldownOptions> | undefined;
|
|
78
|
+
};
|
|
79
|
+
export type FunnelChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
80
|
+
type: 'funnelChart';
|
|
81
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
82
|
+
xAxisPrefix: string;
|
|
83
|
+
yAxisPrefix: string;
|
|
84
|
+
xAxisPostfix: string;
|
|
85
|
+
yAxisPostfix: string;
|
|
86
|
+
xAxisFormat: FormatType;
|
|
87
|
+
yAxisFormat: FormatType;
|
|
88
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
89
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
90
|
+
legend: boolean;
|
|
91
|
+
labels?: boolean;
|
|
92
|
+
protectedFields?: ProtectedFields;
|
|
93
|
+
parameters?: Parameters;
|
|
94
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
95
|
+
axisTitles?: AxisTitles;
|
|
96
|
+
headline?: Headline;
|
|
97
|
+
};
|
|
98
|
+
export type CustomViewAttributes = BaseAttributes & {
|
|
99
|
+
type: 'custom';
|
|
100
|
+
viewId: string;
|
|
101
|
+
customViewId: string;
|
|
102
|
+
};
|
|
103
|
+
export type AxisTitles = {
|
|
104
|
+
x?: string;
|
|
105
|
+
y?: string;
|
|
106
|
+
};
|
|
107
|
+
export type HeadlineFunction = 'mean' | 'sum' | 'current' | null;
|
|
108
|
+
export type Headline = {
|
|
109
|
+
func?: HeadlineFunction;
|
|
110
|
+
};
|
|
111
|
+
export type TrendsForecast = {
|
|
112
|
+
type: TrendType.Forecast;
|
|
113
|
+
value?: number;
|
|
114
|
+
};
|
|
115
|
+
export type TrendsTrend = {
|
|
116
|
+
type: TrendType.Trend;
|
|
117
|
+
value?: number;
|
|
118
|
+
};
|
|
119
|
+
export type TrendMovingAverages = {
|
|
120
|
+
type: TrendType.MovingAverage;
|
|
121
|
+
averages: MovingAverage[];
|
|
122
|
+
};
|
|
123
|
+
export type Trends = TrendsForecast | TrendsTrend | TrendMovingAverages;
|
|
124
|
+
export type HorizontalBarChartAttributes = Omit<BarChartAttributes, 'type'> & {
|
|
125
|
+
type: 'horizontalBarChart';
|
|
126
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
127
|
+
};
|
|
128
|
+
export type ComboChartAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure' | 'dimension'> & {
|
|
129
|
+
type: 'comboChart';
|
|
130
|
+
barMeasure: QueryAttributes.Measure[];
|
|
131
|
+
lineMeasure: QueryAttributes.Measure[];
|
|
132
|
+
barDimension: QueryAttributes.Dimension[];
|
|
133
|
+
lineDimension: QueryAttributes.Dimension[];
|
|
134
|
+
stacked?: boolean | '100%';
|
|
135
|
+
xAxisPrefix: string;
|
|
136
|
+
yAxisPrefix: string;
|
|
137
|
+
xAxisPostfix: string;
|
|
138
|
+
yAxisPostfix: string;
|
|
139
|
+
xAxisFormat: FormatType;
|
|
140
|
+
yAxisFormat: FormatType;
|
|
141
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
142
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
143
|
+
legend: boolean;
|
|
144
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
145
|
+
conditionalFormattingRules?: {
|
|
146
|
+
bar?: Array<ConditionalFormatting.Rule>;
|
|
147
|
+
line?: Array<ConditionalFormatting.Rule>;
|
|
148
|
+
};
|
|
149
|
+
axisTitles?: AxisTitles;
|
|
150
|
+
};
|
|
151
|
+
export type ComboChartV2Attributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure' | 'dimension'> & {
|
|
152
|
+
type: 'comboChartV2';
|
|
153
|
+
barMeasure: QueryAttributes.Measure[];
|
|
154
|
+
lineMeasure: QueryAttributes.Measure[];
|
|
155
|
+
barDimension: QueryAttributes.Dimension[];
|
|
156
|
+
lineDimension: QueryAttributes.Dimension[];
|
|
157
|
+
stacked?: false;
|
|
158
|
+
xAxisPrefix: string;
|
|
159
|
+
yAxisPrefix: string;
|
|
160
|
+
xAxisPostfix: string;
|
|
161
|
+
yAxisPostfix: string;
|
|
162
|
+
xAxisFormat: FormatType;
|
|
163
|
+
yAxisFormat: FormatType;
|
|
164
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
165
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
166
|
+
legend: boolean;
|
|
167
|
+
labels?: boolean;
|
|
168
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
169
|
+
conditionalFormattingRules?: {
|
|
170
|
+
bar?: Array<ConditionalFormatting.Rule>;
|
|
171
|
+
line?: Array<ConditionalFormatting.Rule>;
|
|
172
|
+
};
|
|
173
|
+
axisTitles?: AxisTitles;
|
|
174
|
+
};
|
|
175
|
+
export type LineChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
176
|
+
type: 'lineChart';
|
|
177
|
+
stacked?: boolean | '100%';
|
|
178
|
+
xAxisPrefix: string;
|
|
179
|
+
yAxisPrefix: string;
|
|
180
|
+
xAxisPostfix: string;
|
|
181
|
+
yAxisPostfix: string;
|
|
182
|
+
lineCurve: LineCurve;
|
|
183
|
+
xAxisFormat: FormatType;
|
|
184
|
+
yAxisFormat: FormatType;
|
|
185
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
186
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
187
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
188
|
+
drilldown: QueryAttributes.Dimension[];
|
|
189
|
+
legend: boolean;
|
|
190
|
+
parameters?: Parameters;
|
|
191
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
192
|
+
axisTitles?: AxisTitles;
|
|
193
|
+
headline?: Headline;
|
|
194
|
+
trends?: Array<Trends>;
|
|
195
|
+
};
|
|
196
|
+
export type LineChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
197
|
+
type: 'lineChartV2';
|
|
198
|
+
stacked?: boolean | '100%';
|
|
199
|
+
xAxisPrefix: string;
|
|
200
|
+
yAxisPrefix: string;
|
|
201
|
+
xAxisPostfix: string;
|
|
202
|
+
yAxisPostfix: string;
|
|
203
|
+
lineCurve: LineCurve;
|
|
204
|
+
xAxisFormat: FormatType;
|
|
205
|
+
yAxisFormat: FormatType;
|
|
206
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
207
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
208
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
209
|
+
drilldown: QueryAttributes.Dimension[];
|
|
210
|
+
legend: boolean;
|
|
211
|
+
labels?: boolean;
|
|
212
|
+
parameters?: Parameters;
|
|
213
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
214
|
+
axisTitles?: AxisTitles;
|
|
215
|
+
headline?: Headline;
|
|
216
|
+
trends?: Array<Trends>;
|
|
217
|
+
};
|
|
218
|
+
export type AreaChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
219
|
+
type: 'areaChartV2';
|
|
220
|
+
stacked: boolean;
|
|
221
|
+
xAxisPrefix: string;
|
|
222
|
+
yAxisPrefix: string;
|
|
223
|
+
xAxisPostfix: string;
|
|
224
|
+
yAxisPostfix: string;
|
|
225
|
+
xAxisFormat: FormatType;
|
|
226
|
+
yAxisFormat: FormatType;
|
|
227
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
228
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
229
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
230
|
+
drilldown: QueryAttributes.Dimension[];
|
|
231
|
+
legend: boolean;
|
|
232
|
+
labels?: boolean;
|
|
233
|
+
parameters?: Parameters;
|
|
234
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
235
|
+
axisTitles?: AxisTitles;
|
|
236
|
+
headline?: Headline;
|
|
237
|
+
trends?: Array<Trends>;
|
|
238
|
+
lineCurve: AreaCurve;
|
|
239
|
+
};
|
|
240
|
+
export type BarChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
241
|
+
type: 'barChartV2';
|
|
242
|
+
stacked?: boolean | '100%';
|
|
243
|
+
xAxisPrefix: string;
|
|
244
|
+
yAxisPrefix: string;
|
|
245
|
+
xAxisPostfix: string;
|
|
246
|
+
yAxisPostfix: string;
|
|
247
|
+
xAxisFormat: FormatType;
|
|
248
|
+
yAxisFormat: FormatType;
|
|
249
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
250
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
251
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
252
|
+
legend: boolean;
|
|
253
|
+
labels?: boolean;
|
|
254
|
+
parameters?: Parameters;
|
|
255
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
256
|
+
axisTitles?: AxisTitles;
|
|
257
|
+
headline?: Headline;
|
|
258
|
+
};
|
|
259
|
+
export type PieChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
260
|
+
type: 'pieChart';
|
|
261
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
262
|
+
labelsAsPercentage: boolean;
|
|
263
|
+
legend: boolean;
|
|
264
|
+
labels?: boolean;
|
|
265
|
+
labelFormat: FormatType;
|
|
266
|
+
parameters?: Parameters;
|
|
267
|
+
drilldownOptions: Array<DrilldownOptions> | undefined;
|
|
268
|
+
};
|
|
269
|
+
export type SunburstChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
270
|
+
type: 'sunburstChart';
|
|
271
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
272
|
+
labelsAsPercentage: boolean;
|
|
273
|
+
legend: boolean;
|
|
274
|
+
labels?: boolean;
|
|
275
|
+
labelFormat: FormatType;
|
|
276
|
+
parameters?: Parameters;
|
|
277
|
+
};
|
|
278
|
+
export type AreaChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
279
|
+
type: 'areaChart';
|
|
280
|
+
stacked?: boolean | '100%';
|
|
281
|
+
xAxisPrefix: string;
|
|
282
|
+
yAxisPrefix: string;
|
|
283
|
+
xAxisPostfix: string;
|
|
284
|
+
yAxisPostfix: string;
|
|
285
|
+
xAxisFormat: FormatType;
|
|
286
|
+
yAxisFormat: FormatType;
|
|
287
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
288
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
289
|
+
lineCurve: LineCurve;
|
|
290
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
291
|
+
drilldown: QueryAttributes.Dimension[];
|
|
292
|
+
legend: boolean;
|
|
293
|
+
parameters?: Parameters;
|
|
294
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
295
|
+
axisTitles?: AxisTitles;
|
|
296
|
+
headline?: Headline;
|
|
297
|
+
};
|
|
298
|
+
export type HorizontalBarChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
299
|
+
type: 'horizontalBarChartV2';
|
|
300
|
+
stacked?: boolean | '100%';
|
|
301
|
+
xAxisPrefix: string;
|
|
302
|
+
yAxisPrefix: string;
|
|
303
|
+
xAxisPostfix: string;
|
|
304
|
+
yAxisPostfix: string;
|
|
305
|
+
xAxisFormat: FormatType;
|
|
306
|
+
yAxisFormat: FormatType;
|
|
307
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
308
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
309
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
310
|
+
legend: boolean;
|
|
311
|
+
labels?: boolean;
|
|
312
|
+
parameters?: Parameters;
|
|
313
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
314
|
+
axisTitles?: AxisTitles;
|
|
315
|
+
headline?: Headline;
|
|
316
|
+
};
|
|
317
|
+
export namespace ConditionalFormatting {
|
|
318
|
+
type Rule = {
|
|
319
|
+
filters: QueryAttributes['filter'];
|
|
320
|
+
ruleValue: string;
|
|
321
|
+
ruleType: FormattingRuleType;
|
|
322
|
+
ruleValueEnd?: string | undefined;
|
|
323
|
+
};
|
|
324
|
+
type DisplayRule = {
|
|
325
|
+
value?: string;
|
|
326
|
+
type?: FormattingRuleType;
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
export namespace GoalLine {
|
|
330
|
+
type Rule = {
|
|
331
|
+
value: number | string;
|
|
332
|
+
strokeStyle: 'dashed' | 'solid';
|
|
333
|
+
strokeWidth: number;
|
|
334
|
+
color: string;
|
|
335
|
+
label?: boolean;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
export namespace Quadrant {
|
|
339
|
+
type Rule = {
|
|
340
|
+
enabled: boolean;
|
|
341
|
+
labels: {
|
|
342
|
+
quadrantOne?: string;
|
|
343
|
+
quadrantTwo?: string;
|
|
344
|
+
quadrantThree?: string;
|
|
345
|
+
quadrantFour?: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
export type ExportNames = {
|
|
350
|
+
[resultFieldId: string]: string | undefined;
|
|
351
|
+
};
|
|
352
|
+
export type ProtectedFields = {
|
|
353
|
+
dimension?: Array<QueryAttributes.Dimension | QueryAttributes.TimeDimension>;
|
|
354
|
+
measure?: Array<QueryAttributes.Measure>;
|
|
355
|
+
};
|
|
356
|
+
export type HiddenField = string;
|
|
357
|
+
type TableAttributes = {
|
|
358
|
+
prefixes: Array<{
|
|
359
|
+
field: string;
|
|
360
|
+
prefix: string;
|
|
361
|
+
}>;
|
|
362
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
363
|
+
dateTimeFormat: DateTimeFormat;
|
|
364
|
+
exportNames: ExportNames;
|
|
365
|
+
numberFormat: {
|
|
366
|
+
[resultFieldId: string]: string;
|
|
367
|
+
};
|
|
368
|
+
sizing: {
|
|
369
|
+
[keyId: string]: {
|
|
370
|
+
width?: number;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
export type DrilldownOptions = QueryAttributes.Dimension | QueryAttributes.TimeDimension;
|
|
375
|
+
export type TableDrilldown = {
|
|
376
|
+
subsetDimension: string;
|
|
377
|
+
};
|
|
378
|
+
export type DataTableAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'timeDimension'> & TableAttributes & {
|
|
379
|
+
type: 'dataTable';
|
|
380
|
+
protectedFields?: ProtectedFields;
|
|
381
|
+
/**
|
|
382
|
+
* @deprecated
|
|
383
|
+
*/
|
|
384
|
+
timeDimension?: BaseQueryAttributes['timeDimension'];
|
|
385
|
+
tableDrilldown: TableDrilldown[];
|
|
386
|
+
hiddenFields?: HiddenField[];
|
|
387
|
+
};
|
|
388
|
+
export type BasicTableAttributes = BaseAttributes & BaseQueryAttributes & TableAttributes & {
|
|
389
|
+
type: 'basicTable';
|
|
390
|
+
protectedFields?: Omit<ProtectedFields, 'dimension'>;
|
|
391
|
+
hiddenFields?: HiddenField[];
|
|
392
|
+
};
|
|
393
|
+
export type SingleStatDirectionOptions = 'horizontal' | 'vertical';
|
|
394
|
+
export type SingleStatAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'dimension' | 'timeDimension' | 'order'> & {
|
|
395
|
+
type: 'singleStat';
|
|
396
|
+
prefixes: {
|
|
397
|
+
[fieldIdAndAggregate: string]: string;
|
|
398
|
+
};
|
|
399
|
+
postfixes: {
|
|
400
|
+
[fieldIdAndAggregate: string]: string;
|
|
401
|
+
};
|
|
402
|
+
formatter: {
|
|
403
|
+
[fieldIdAndAggregate: string]: string;
|
|
404
|
+
};
|
|
405
|
+
fontSize: string;
|
|
406
|
+
direction?: SingleStatDirectionOptions;
|
|
407
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
408
|
+
deltaTimeDimension: QueryAttributes.TimeDimension | null;
|
|
409
|
+
parameters?: Parameters;
|
|
410
|
+
};
|
|
411
|
+
export type ProgressAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'dimension' | 'timeDimension' | 'order'> & {
|
|
412
|
+
type: 'progress';
|
|
413
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
414
|
+
parameters?: Parameters;
|
|
415
|
+
goals?: ProgressGoal[];
|
|
416
|
+
progressType?: ProgressTypes[];
|
|
417
|
+
prefixes: {
|
|
418
|
+
[fieldIdAndAggregate: string]: string;
|
|
419
|
+
};
|
|
420
|
+
postfixes: {
|
|
421
|
+
[fieldIdAndAggregate: string]: string;
|
|
422
|
+
};
|
|
423
|
+
formatter: {
|
|
424
|
+
[fieldIdAndAggregate: string]: string;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
export type ScatterChartAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure'> & {
|
|
428
|
+
type: 'scatterChart';
|
|
429
|
+
xMeasure: QueryAttributes.Measure | null;
|
|
430
|
+
yMeasure: QueryAttributes.Measure | null;
|
|
431
|
+
legend: boolean;
|
|
432
|
+
xAxisPrefix: string;
|
|
433
|
+
yAxisPrefix: string;
|
|
434
|
+
xAxisPostfix: string;
|
|
435
|
+
yAxisPostfix: string;
|
|
436
|
+
xAxisFormat: FormatType;
|
|
437
|
+
yAxisFormat: FormatType;
|
|
438
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
439
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
440
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
441
|
+
quadrants?: Component.Quadrant.Rule;
|
|
442
|
+
axisTitles?: AxisTitles;
|
|
443
|
+
};
|
|
444
|
+
export type BubbleChartAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure'> & {
|
|
445
|
+
type: 'bubbleChart';
|
|
446
|
+
xMeasure: QueryAttributes.Measure | null;
|
|
447
|
+
yMeasure: QueryAttributes.Measure | null;
|
|
448
|
+
zMeasure?: QueryAttributes.Measure | null;
|
|
449
|
+
legend: boolean;
|
|
450
|
+
xAxisPrefix: string;
|
|
451
|
+
yAxisPrefix: string;
|
|
452
|
+
xAxisPostfix: string;
|
|
453
|
+
yAxisPostfix: string;
|
|
454
|
+
xAxisFormat: FormatType;
|
|
455
|
+
yAxisFormat: FormatType;
|
|
456
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
457
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
458
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
459
|
+
axisTitles?: AxisTitles;
|
|
460
|
+
};
|
|
461
|
+
export type BubbleChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
462
|
+
type: 'bubbleChartV2';
|
|
463
|
+
stacked?: boolean | '100%';
|
|
464
|
+
zMeasure: QueryAttributes.Measure[];
|
|
465
|
+
xMeasure: QueryAttributes.Measure[];
|
|
466
|
+
xAxisPrefix: string;
|
|
467
|
+
yAxisPrefix: string;
|
|
468
|
+
xAxisPostfix: string;
|
|
469
|
+
yAxisPostfix: string;
|
|
470
|
+
lineCurve: LineCurve;
|
|
471
|
+
xAxisFormat: FormatType;
|
|
472
|
+
yAxisFormat: FormatType;
|
|
473
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
474
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
475
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
476
|
+
drilldown: QueryAttributes.Dimension[];
|
|
477
|
+
legend: boolean;
|
|
478
|
+
parameters?: Parameters;
|
|
479
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
480
|
+
axisTitles?: AxisTitles;
|
|
481
|
+
headline?: Headline;
|
|
482
|
+
trends?: Array<Trends>;
|
|
483
|
+
quadrants?: Component.Quadrant.Rule;
|
|
484
|
+
};
|
|
485
|
+
export type RadarChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
486
|
+
type: 'radarChart';
|
|
487
|
+
legend: boolean;
|
|
488
|
+
xAxisPrefix: string;
|
|
489
|
+
yAxisPrefix: string;
|
|
490
|
+
xAxisPostfix: string;
|
|
491
|
+
yAxisPostfix: string;
|
|
492
|
+
xAxisFormat: FormatType;
|
|
493
|
+
yAxisFormat: FormatType;
|
|
494
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
495
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
496
|
+
};
|
|
497
|
+
export type WaterfallChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
498
|
+
type: 'waterfallChart';
|
|
499
|
+
xAxisPrefix: string;
|
|
500
|
+
yAxisPrefix: string;
|
|
501
|
+
xAxisPostfix: string;
|
|
502
|
+
yAxisPostfix: string;
|
|
503
|
+
xAxisFormat: FormatType;
|
|
504
|
+
yAxisFormat: FormatType;
|
|
505
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
506
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
507
|
+
legend: boolean;
|
|
508
|
+
labels?: boolean;
|
|
509
|
+
parameters?: Parameters;
|
|
510
|
+
axisTitles?: AxisTitles;
|
|
511
|
+
headline?: Headline;
|
|
512
|
+
increaseColor: string;
|
|
513
|
+
decreaseColor: string;
|
|
514
|
+
comparison: RulesField | null;
|
|
515
|
+
};
|
|
516
|
+
export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'areaChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'sunburstChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart' | 'radarChart' | 'horizontalBarChartV2';
|
|
517
|
+
export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | BubbleChartAttributes | BubbleChartV2Attributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | BarChartV2Attributes | AreaChartV2Attributes | MercatorMapAttributes | PieChartAttributes | SunburstChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes | WaterfallChartAttributes | RadarChartAttributes | ComboChartV2Attributes | HorizontalBarChartV2Attributes;
|
|
518
|
+
export interface RenderTableCell {
|
|
519
|
+
viewId: string;
|
|
520
|
+
type: 'basicTable' | 'dataTable';
|
|
521
|
+
fields?: TableFieldsV2[];
|
|
522
|
+
cell: ReturnedField | {
|
|
523
|
+
grouping?: Array<ReturnedField>;
|
|
524
|
+
value?: ReturnedField;
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
type BaseOnViewClick = {
|
|
528
|
+
viewId: string;
|
|
529
|
+
dataSet: {
|
|
530
|
+
id: DataSet['id'];
|
|
531
|
+
name: DataSet['name'];
|
|
532
|
+
fields: DataSet['fields'];
|
|
533
|
+
description: DataSet['description'];
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
export type ReturnedField = {
|
|
537
|
+
fieldId: string;
|
|
538
|
+
function: string;
|
|
539
|
+
value?: string | number;
|
|
540
|
+
/** @deprecated Use 'function' instead */
|
|
541
|
+
aggregate: string;
|
|
542
|
+
};
|
|
543
|
+
export interface TableOnViewClick extends BaseOnViewClick {
|
|
544
|
+
type: 'basicTable' | 'dataTable';
|
|
545
|
+
fields?: {
|
|
546
|
+
[key: string]: string | number;
|
|
547
|
+
};
|
|
548
|
+
fieldsV2?: TableFieldsV2[];
|
|
549
|
+
clicked: ReturnedField | {
|
|
550
|
+
grouping?: Array<ReturnedField>;
|
|
551
|
+
value?: ReturnedField;
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
export interface ChartOnViewClick extends BaseOnViewClick {
|
|
555
|
+
type: 'barChart' | 'horizontalBarChart' | 'pieChart' | 'sunburstChart';
|
|
556
|
+
clicked: {
|
|
557
|
+
grouping?: Array<ReturnedField>;
|
|
558
|
+
value?: ReturnedField;
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
export type OnViewClick = TableOnViewClick | ChartOnViewClick;
|
|
562
|
+
export type OnViewClickQuery = (queries: Partial<Omit<QueryAttributes, 'dataSetId'>>) => Promise<QueryResponse | null>;
|
|
563
|
+
export type QueryResponse = {
|
|
564
|
+
results: (Result | null)[] | (any[][] | null)[] | null;
|
|
565
|
+
};
|
|
566
|
+
export type LabelFormatOptionsValues = Dictionary<string | number | string[] | null>;
|
|
567
|
+
export type LabelFormatOptions = {
|
|
568
|
+
fieldId: string;
|
|
569
|
+
func: string;
|
|
570
|
+
type: ComponentType;
|
|
571
|
+
defaultLabel: string;
|
|
572
|
+
viewId: string;
|
|
573
|
+
values?: LabelFormatOptionsValues;
|
|
574
|
+
};
|
|
575
|
+
export type ValueAliasOptions = {
|
|
576
|
+
fieldId?: string;
|
|
577
|
+
value: string | number | null;
|
|
578
|
+
filter?: AdditionalFilter;
|
|
579
|
+
dataSetId?: string;
|
|
580
|
+
};
|
|
581
|
+
export type Parameters = {
|
|
582
|
+
measure?: ParameterMeasure;
|
|
583
|
+
group?: ParameterGroup;
|
|
584
|
+
};
|
|
585
|
+
export type ParameterMeasure = {
|
|
586
|
+
[key: string]: Array<QueryAttributes.Measure>;
|
|
587
|
+
};
|
|
588
|
+
export type ParameterGroup = {
|
|
589
|
+
[key: string]: Array<QueryAttributes.Dimension | QueryAttributes.TimeDimension | null | undefined>;
|
|
590
|
+
};
|
|
591
|
+
export {};
|
|
592
|
+
}
|
|
593
|
+
/** @deprecated */
|
|
594
|
+
export declare namespace AddOn {
|
|
595
|
+
/** @deprecated */
|
|
596
|
+
namespace DateTimeFilter {
|
|
597
|
+
/** @deprecated */
|
|
598
|
+
type Attributes = {
|
|
599
|
+
type: 'dateFilter';
|
|
600
|
+
field: QueryAttributes.Field;
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
/** @deprecated */
|
|
604
|
+
namespace SelectFilter {
|
|
605
|
+
/** @deprecated */
|
|
606
|
+
type Attributes = {
|
|
607
|
+
type: 'selectFilter';
|
|
608
|
+
field: QueryAttributes.Field;
|
|
609
|
+
currentValue?: any;
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
/** @deprecated */
|
|
613
|
+
type Type = 'selectFilter' | 'dateTimeFilter';
|
|
614
|
+
}
|
|
615
|
+
/** @deprecated */
|
|
616
|
+
export type AddOn = AddOn.SelectFilter.Attributes | AddOn.DateTimeFilter.Attributes;
|
|
617
|
+
export type MaybeOldComponent<Attrs = Component.Attributes> = Omit<Component<Omit<Attrs, 'addOns'> & {
|
|
618
|
+
addOns: AddOn[];
|
|
619
|
+
}>, 'localFilters'> & {
|
|
620
|
+
localFilters: {
|
|
621
|
+
[key: number]: QueryAttributes.Filter;
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
export type Component<Attrs = Component.Attributes> = {
|
|
625
|
+
attributes: Attrs;
|
|
626
|
+
localFilters: Array<AdditionalFilter>;
|
|
627
|
+
colSpan: number;
|
|
628
|
+
/** @deprecated Moved to dashboard level. */
|
|
629
|
+
reports: Array<Report>;
|
|
630
|
+
};
|
|
631
|
+
export declare enum ProgressType {
|
|
632
|
+
Linear = "linear",
|
|
633
|
+
Circular = "circular"
|
|
634
|
+
}
|
|
635
|
+
export type ProgressGoal = {
|
|
636
|
+
field: string;
|
|
637
|
+
value: number;
|
|
638
|
+
};
|
|
639
|
+
export type ProgressTypes = {
|
|
640
|
+
field: string;
|
|
641
|
+
value: ProgressType;
|
|
642
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
2
|
+
import { Component } from './types';
|
|
3
|
+
export declare const usedMeasures: (attrs: Partial<Component.Attributes | QueryAttributes>) => QueryAttributes["measure"];
|
|
4
|
+
export declare const usedDimensions: (attrs: Partial<Component.Attributes | QueryAttributes>) => QueryAttributes["dimension"];
|
|
5
|
+
declare const usedFields: (attrs: Partial<Component.Attributes | QueryAttributes>) => Array<{
|
|
6
|
+
dataSetId: string;
|
|
7
|
+
fieldId: string;
|
|
8
|
+
function: string;
|
|
9
|
+
}>;
|
|
10
|
+
export default usedFields;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Component } from './types';
|
|
2
|
+
import { ComponentInterface } from '../ComponentInterface/types';
|
|
3
|
+
import { DataSet } from '../DataSet/types';
|
|
4
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
5
|
+
declare const _default: <T extends Component.Attributes>(attrs: T, dataSets: DataSet[], queryEngineConfig: QueryEngineConfig) => ReturnType<ComponentInterface["validate"]>;
|
|
6
|
+
export default _default;
|