@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,26 @@
|
|
|
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
|
+
export declare const addAndFilters: (filter: QueryAttributes["filter"], filterToAddToAll: QueryAttributes.Filter[][]) => QueryAttributes["filter"];
|
|
8
|
+
export declare const convertArrayFilterStructureToQueryFilter: (arrayFilterStructure: QueryAttributes.Filter[][], variables: VariableList) => Query["filter"];
|
|
9
|
+
export declare const combineQueryFilters: (filter: Query["filter"], filterToAddToAll: Query["filter"]) => Query["filter"];
|
|
10
|
+
/**
|
|
11
|
+
* Iterates through a query filter and, for each custom metric field, builds a custom metric.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildQueryCustomMetrics(filter: Query['filter'], dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params): Query['filter'];
|
|
14
|
+
export declare function getFieldFromFilter(filter: Query['filter']): {
|
|
15
|
+
type: "string";
|
|
16
|
+
value: string;
|
|
17
|
+
as?: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: "field";
|
|
20
|
+
value: string;
|
|
21
|
+
function: string;
|
|
22
|
+
as?: string;
|
|
23
|
+
} | null;
|
|
24
|
+
export declare const takeUsedFields: (filter: QueryAttributes["filter"]) => string[];
|
|
25
|
+
export declare const isAvailable: (filter?: QueryAttributes["filter"]) => boolean | undefined;
|
|
26
|
+
export declare const isAdditionalFilter: (value: any) => boolean;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DataSet as DataSetType } from '../DataSet/types';
|
|
2
|
+
import { Field } from '../AdditionalFilter/types';
|
|
3
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
|
+
import { TextOverride } from '../Translations/types';
|
|
5
|
+
import Joi from '@vizzly/joi';
|
|
6
|
+
export type RelativeDate = {
|
|
7
|
+
unit: DurationType | null;
|
|
8
|
+
value: number | null;
|
|
9
|
+
timeFrame: TimeframeType | null;
|
|
10
|
+
};
|
|
11
|
+
export declare const defaultDurationOptions: (textOverride?: TextOverride) => {
|
|
12
|
+
minutes: {
|
|
13
|
+
description: string;
|
|
14
|
+
formatter: (currentDate: Date, value: number) => void;
|
|
15
|
+
};
|
|
16
|
+
hours: {
|
|
17
|
+
description: string;
|
|
18
|
+
formatter: (currentDate: Date, value: number) => void;
|
|
19
|
+
};
|
|
20
|
+
days: {
|
|
21
|
+
description: string;
|
|
22
|
+
formatter: (currentDate: Date, value: number) => void;
|
|
23
|
+
};
|
|
24
|
+
weeks: {
|
|
25
|
+
description: string;
|
|
26
|
+
formatter: (currentDate: Date, value: number) => void;
|
|
27
|
+
};
|
|
28
|
+
months: {
|
|
29
|
+
description: string;
|
|
30
|
+
formatter: (currentDate: Date, value: number) => void;
|
|
31
|
+
};
|
|
32
|
+
years: {
|
|
33
|
+
description: string;
|
|
34
|
+
formatter: (currentDate: Date, value: number) => void;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type DurationOptions = ReturnType<typeof defaultDurationOptions>;
|
|
38
|
+
export type DurationType = keyof DurationOptions;
|
|
39
|
+
export declare const defaultTimeframeOptions: (textOverride?: TextOverride) => {
|
|
40
|
+
future: {
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
past: {
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
type TimeframeOptions = ReturnType<typeof defaultTimeframeOptions>;
|
|
48
|
+
export type TimeframeType = keyof TimeframeOptions;
|
|
49
|
+
export declare const relativeSchema: Joi.ObjectSchema<any>;
|
|
50
|
+
export declare function isRelative(value: any): any;
|
|
51
|
+
export declare function isRelativeDateDefined(value: RelativeDate): boolean;
|
|
52
|
+
export declare const init: () => RelativeDate;
|
|
53
|
+
export declare const calculateRelativeDate: (relativeDate: RelativeDate, startDate?: Date) => Date;
|
|
54
|
+
export declare const buildRelativeRange: (relativeFilters: QueryAttributes.Filter[][], dataSet: DataSetType, appliesToFields?: Field[]) => QueryAttributes.Filter[][];
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { FormattingRuleType } from '../FormattingRule/types';
|
|
2
|
+
import { Section } from '../DataPanelConfig/types';
|
|
3
|
+
export type HeadingSubSections = Section<'title'> | Section<'subject'>;
|
|
4
|
+
export type HeadingSection = Section<'heading'> & {
|
|
5
|
+
subSection: Array<HeadingSubSections>;
|
|
6
|
+
};
|
|
7
|
+
export type FormatSubSections = Section<'time'> | Section<'fontSize'> | Section<'direction'>;
|
|
8
|
+
export type FormatSection = Section<'format'> & {
|
|
9
|
+
subSection: Array<FormatSubSections>;
|
|
10
|
+
};
|
|
11
|
+
export type ChartStylesSubSections = Section<'stacked' | 'curve' | 'legend' | 'numberFormat' | 'labels'>;
|
|
12
|
+
export type ChartStylesSection = Section<'chartStyles'> & {
|
|
13
|
+
subSection: Array<ChartStylesSubSections>;
|
|
14
|
+
};
|
|
15
|
+
export interface LabelSection<T> extends Omit<Section<T>, 'type'> {
|
|
16
|
+
prefix: Omit<Section<T>, 'type'>;
|
|
17
|
+
postfix: Omit<Section<T>, 'type'>;
|
|
18
|
+
format?: Omit<Section<T>, 'type'>;
|
|
19
|
+
count: Omit<Section<T>, 'type'>;
|
|
20
|
+
axisTitle?: Omit<Section<T>, 'type'>;
|
|
21
|
+
}
|
|
22
|
+
export type AxisLabelsSection = Section<'axisLabels'> & {
|
|
23
|
+
x: LabelSection<'axisLabels'>;
|
|
24
|
+
y: LabelSection<'axisLabels'>;
|
|
25
|
+
};
|
|
26
|
+
export type LabelsSection = Section<'statsLabels'> & LabelSection<'statsLabels'>;
|
|
27
|
+
export type PrefixSection = Section<'prefixes'>;
|
|
28
|
+
export type MapColorsSection = Section<'mapColors'>;
|
|
29
|
+
export type WaterfallColorsSection = Section<'waterfallColors'>;
|
|
30
|
+
export type HeadlineSection = Section<'headline'>;
|
|
31
|
+
export type RichTextFormatSection = Section<'richText'>;
|
|
32
|
+
export interface QuadrantsSection extends Section<'quadrants'> {
|
|
33
|
+
}
|
|
34
|
+
export interface ConditionalFormattingSection extends Section<'conditionalFormatting'> {
|
|
35
|
+
ruleType: FormattingRuleType;
|
|
36
|
+
subSection?: {
|
|
37
|
+
title: string;
|
|
38
|
+
propKey: 'bar' | 'line';
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export interface GoalLineSection extends Section<'goalLine'> {
|
|
42
|
+
}
|
|
43
|
+
export interface ProgressTypeSection<T> extends Omit<Section<T>, 'type'> {
|
|
44
|
+
progressType?: Omit<Section<T>, 'type'>;
|
|
45
|
+
}
|
|
46
|
+
export type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
|
|
47
|
+
export type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | WaterfallColorsSection | QuadrantsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
|
|
48
|
+
export type FormatPanelConfig = Array<FormatPanelSection>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type FormattingRuleType = 'backgroundColor' | 'fontColor' | 'lineColor' | 'areaColor';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (lineChart: Component.FunnelChartAttributes, partial: Partial<Component.FunnelChartAttributes>) => Component.FunnelChartAttributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AdditionalFilter } from '../AdditionalFilter/types';
|
|
2
|
+
import { GlobalFilter } from './types';
|
|
3
|
+
/** Upcasts from an old global filter, to a new "additional filter" */
|
|
4
|
+
export declare const upcastToAdditionalFilter: (globalFilter: GlobalFilter) => AdditionalFilter;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
2
|
+
/** @deprecated */
|
|
3
|
+
export declare namespace GlobalFilter {
|
|
4
|
+
/** @deprecated */
|
|
5
|
+
type Type = 'globalSelectFilter' | 'globalDateTimeFilter';
|
|
6
|
+
/** @deprecated */
|
|
7
|
+
type Field = {
|
|
8
|
+
dataSetId: string;
|
|
9
|
+
field: QueryAttributes.Field;
|
|
10
|
+
};
|
|
11
|
+
/** @deprecated */
|
|
12
|
+
type Base<T extends Type> = {
|
|
13
|
+
type: T;
|
|
14
|
+
title: string;
|
|
15
|
+
filters: {
|
|
16
|
+
op: QueryAttributes.Operator;
|
|
17
|
+
value: string | number | null;
|
|
18
|
+
}[];
|
|
19
|
+
fields: Field[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** @deprecated */
|
|
23
|
+
export type GlobalSelectFilter = GlobalFilter.Base<'globalSelectFilter'>;
|
|
24
|
+
/** @deprecated */
|
|
25
|
+
export type GlobalDateTimeFilter = GlobalFilter.Base<'globalDateTimeFilter'>;
|
|
26
|
+
/** @deprecated */
|
|
27
|
+
export type GlobalFilter = GlobalSelectFilter | GlobalDateTimeFilter;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Component, MaybeOldComponent } from '../Component/types';
|
|
2
|
+
import { Display, EmptyCell } from '../Display/types';
|
|
3
|
+
import { HeaderComponent } from './types';
|
|
4
|
+
export declare const init: (displayTitle: string) => HeaderComponent;
|
|
5
|
+
export declare const isComponent: (component: Component.RawComponent | EmptyCell | HeaderComponent | MaybeOldComponent) => component is HeaderComponent;
|
|
6
|
+
export declare const HEADER_ROW_HEIGHT = 52;
|
|
7
|
+
export declare const add: (display: Display, rowIndex: number, initialTitle: string) => Display;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { LoadComponentInterface } from '../ComponentInterface/types';
|
|
3
|
+
declare const HorizontalBarChart: LoadComponentInterface<Component.HorizontalBarChartAttributes, Component.HorizontalBarChartAttributes>;
|
|
4
|
+
export default HorizontalBarChart;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (lineChart: Component.HorizontalBarChartAttributes, partial: Partial<Component.HorizontalBarChartAttributes>) => Component.HorizontalBarChartAttributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { LoadComponentInterface } from '../ComponentInterface/types';
|
|
3
|
+
declare const HorizontalBarChart: LoadComponentInterface<Component.HorizontalBarChartV2Attributes, Component.HorizontalBarChartV2Attributes>;
|
|
4
|
+
export default HorizontalBarChart;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (horizontalBarChart: Component.HorizontalBarChartV2Attributes, partial: Partial<Component.HorizontalBarChartV2Attributes>) => Component.HorizontalBarChartV2Attributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (lineChart: Component.LineChartAttributes, partial: Partial<Component.LineChartAttributes>) => Component.LineChartAttributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (lineChart: Component.LineChartV2Attributes, partial: Partial<Component.LineChartV2Attributes>) => Component.LineChartV2Attributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LogLevel } from './types';
|
|
2
|
+
export declare const LOG_LEVELS: Array<LogLevel>;
|
|
3
|
+
export declare const setupLogger: (newLogLevel: LogLevel, onLogLevelChange?: (newLogLevel: LogLevel) => void) => {
|
|
4
|
+
logDebug: (...message: any) => void;
|
|
5
|
+
logError: (...message: any) => void;
|
|
6
|
+
logInfo: (...message: any) => void;
|
|
7
|
+
logWarning: (...message: any) => void;
|
|
8
|
+
logProperties: (...message: any) => void;
|
|
9
|
+
getCurrentLogLevel: () => LogLevel;
|
|
10
|
+
updateLogLevel: (newLevel: LogLevel) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const logDebug: (...message: any) => void;
|
|
13
|
+
export declare const logInfo: (...message: any) => void;
|
|
14
|
+
export declare const logProperties: (...message: any) => void;
|
|
15
|
+
export declare const logWarning: (...message: any) => void;
|
|
16
|
+
export declare const logError: (...message: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Logger';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'properties';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SupportedAggregates } from '../Aggregate';
|
|
2
|
+
import { Query } from '../Query/types';
|
|
3
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
5
|
+
import * as Field from '../Field/Field';
|
|
6
|
+
export declare const id: (metric: {
|
|
7
|
+
field: string;
|
|
8
|
+
function: string;
|
|
9
|
+
}) => string;
|
|
10
|
+
export declare const decodeId: (metric: string, functionsToCheck: Field.DecodingFunctionsToCheck) => QueryAttributes.Measure;
|
|
11
|
+
export declare const hasAggregate: (metric: QueryAttributes.Measure) => boolean;
|
|
12
|
+
export declare const getAggregateFuncFromFieldId: (fieldId: string, supportedAggregates: SupportedAggregates) => QueryAttributes.Aggregate;
|
|
13
|
+
export declare const getRecordKeyFromMeasure: (measure: Query["measure"][number], measureIndex: number, _queryEngineConfig: QueryEngineConfig) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Measure';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (areaChart: Component.MercatorMapAttributes, partial: Partial<Component.MercatorMapAttributes>) => Component.MercatorMapAttributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { LoadComponentInterface } from '../ComponentInterface/types';
|
|
3
|
+
import { DumpedProgressAttributes } from './types';
|
|
4
|
+
declare const Progress: LoadComponentInterface<Component.ProgressAttributes, DumpedProgressAttributes>;
|
|
5
|
+
export default Progress;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PreAggregatedQuery, PreparedQuery, Query } from './types';
|
|
2
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
+
import { QueryEngineConfig, SupportedFeature as SupportedFeatureType } from '../QueryEngineConfig/types';
|
|
4
|
+
import { DataSet } from '../DataSet/types';
|
|
5
|
+
import { Result } from '../Result/types';
|
|
6
|
+
export declare const build: (dataSet: DataSet, measureAttr: QueryAttributes.Measure[], filterAttr: QueryAttributes.Filter[][], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: QueryAttributes.Limit | undefined, offsetAttr: QueryAttributes.Offset | undefined, queryEngineConfig: QueryEngineConfig, params: import("results-driver/src/types").Params) => {
|
|
7
|
+
query: Query;
|
|
8
|
+
measureDescription: Array<import("./types").MeasureDescription>;
|
|
9
|
+
};
|
|
10
|
+
export declare const hasDimensions: (query: {
|
|
11
|
+
group: Query["group"];
|
|
12
|
+
}) => boolean;
|
|
13
|
+
export declare const buildPreAggregatedPreparedQuery: (query: PreAggregatedQuery, dataSet: DataSet) => {
|
|
14
|
+
query: PreAggregatedQuery;
|
|
15
|
+
resultFields: Result.Field[];
|
|
16
|
+
};
|
|
17
|
+
export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, dataSetField: DataSet["fields"][number], optionsFilters?: Query["filter"]) => {
|
|
18
|
+
query: PreparedQuery;
|
|
19
|
+
resultFields: Result.Field[];
|
|
20
|
+
};
|
|
21
|
+
export declare const buildFilterQuery: (dataSet: DataSet, fieldId: string, optionsFilters?: QueryAttributes.Filter[][], optionsOrders?: QueryAttributes.Order[]) => QueryAttributes;
|
|
22
|
+
export declare const supportsFeature: (queryEngineConfig: QueryEngineConfig, feature: SupportedFeatureType) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Params } from 'results-driver/src/types';
|
|
2
|
+
import { DataSet } from '../DataSet/types';
|
|
3
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
5
|
+
import { MeasureDescription, Query } from './types';
|
|
6
|
+
export declare const buildFromQueryAttributes: (dataSet: DataSet, measureAttr: QueryAttributes.Measure[], filterAttr: QueryAttributes.Filter[][], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: QueryAttributes.Limit | undefined, offsetAttr: QueryAttributes.Offset | undefined, queryEngineConfig: QueryEngineConfig, params: Params) => {
|
|
7
|
+
query: Query;
|
|
8
|
+
measureDescription: Array<MeasureDescription>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DataSet } from '../DataSet/types';
|
|
2
|
+
import { QueryNameSpace, SQLQuery } from '@vizzly/sqlbuilder-public';
|
|
3
|
+
export type { QueryNameSpace } from '@vizzly/sqlbuilder-public';
|
|
4
|
+
export type MeasureDescription = {
|
|
5
|
+
/** What is the underlying field of the data set? */
|
|
6
|
+
field: DataSet.Field;
|
|
7
|
+
/** What function was applied? */
|
|
8
|
+
functionId: string;
|
|
9
|
+
};
|
|
10
|
+
export type SubQuery = {
|
|
11
|
+
measure: [QueryNameSpace.FieldDefinition];
|
|
12
|
+
filter: Query['filter'];
|
|
13
|
+
};
|
|
14
|
+
/** For when a query cannot be generalised into the TraditionalQuery format. We can provide a very specific query for a specific purpose. */
|
|
15
|
+
type BasePreparedQuery<PreparedQueryType> = {
|
|
16
|
+
type: 'preparedQuery';
|
|
17
|
+
timeZone?: string;
|
|
18
|
+
preparedQueryType: PreparedQueryType;
|
|
19
|
+
};
|
|
20
|
+
/** A prepared query that returns unique values for a single array field */
|
|
21
|
+
export type UniqueArrayValuesQuery = BasePreparedQuery<'uniqueArrayValues'> & {
|
|
22
|
+
dataSetId: string;
|
|
23
|
+
fieldId: string;
|
|
24
|
+
filter: Query['filter'];
|
|
25
|
+
};
|
|
26
|
+
export type PreAggregatedQuery = BasePreparedQuery<'preAggregated'> & {
|
|
27
|
+
dataSetId: string;
|
|
28
|
+
filter: {
|
|
29
|
+
[dataSetId: string]: Query['filter'];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type PreparedQuery = UniqueArrayValuesQuery | PreAggregatedQuery;
|
|
33
|
+
export type Query = Omit<SQLQuery, 'timeZone'> & {
|
|
34
|
+
timeZone?: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataType } from '../Field/types';
|
|
2
|
+
import { QueryAttributes, SupportedOperators } from './types';
|
|
3
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
4
|
+
import { ApproxAxisLabelCount, Component } from '../Component/types';
|
|
5
|
+
import { TextOverride } from '../Translations/types';
|
|
6
|
+
export declare const validOperatorsForField: (field: {
|
|
7
|
+
dataType: DataType;
|
|
8
|
+
}, queryEngineConfig: QueryEngineConfig) => string[];
|
|
9
|
+
export declare const aggregateName: (func: QueryAttributes.Aggregate, textOverride: TextOverride) => string;
|
|
10
|
+
declare const vizzlyManagedOperators: SupportedOperators;
|
|
11
|
+
export declare const supportedOperators: (keys?: Array<string>) => SupportedOperators;
|
|
12
|
+
export declare const operatorToString: (operator: QueryAttributes.Operator) => string;
|
|
13
|
+
export declare const upcastFilter: (filter: QueryAttributes["filter"]) => QueryAttributes["filter"];
|
|
14
|
+
export declare const upcastOrder: (order: QueryAttributes["order"], timeDimension: QueryAttributes.TimeDimension | null) => QueryAttributes["order"];
|
|
15
|
+
export declare const upcastMeasure: (measure: QueryAttributes["measure"]) => QueryAttributes["measure"];
|
|
16
|
+
export declare const upcastAxisLabel: (count: ApproxAxisLabelCount) => ApproxAxisLabelCount;
|
|
17
|
+
export declare const getOperatorPublicName: (id: keyof typeof vizzlyManagedOperators) => string;
|
|
18
|
+
export declare const upcastParameters: (parameters?: Component.Parameters) => {
|
|
19
|
+
measure?: undefined;
|
|
20
|
+
group?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
measure: Component.ParameterMeasure | undefined;
|
|
23
|
+
group: Component.ParameterGroup | undefined;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const supportedOperatorsConstants: import("@vizzly/semantic-layer-public").SupportedOperators;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './QueryAttributes';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare namespace QueryAttributes {
|
|
2
|
+
type Aggregate = string | 'none';
|
|
3
|
+
type SortDirection = 'asc' | 'desc';
|
|
4
|
+
type Measure = {
|
|
5
|
+
field: Field;
|
|
6
|
+
function: Aggregate;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*
|
|
10
|
+
* Do not worry about this field outside of the upcasting logic. You can rely on function being set.
|
|
11
|
+
*
|
|
12
|
+
* */
|
|
13
|
+
aggregate?: string;
|
|
14
|
+
};
|
|
15
|
+
type Order = {
|
|
16
|
+
field: Field;
|
|
17
|
+
direction: SortDirection;
|
|
18
|
+
function: Aggregate;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*
|
|
22
|
+
* Do not worry about this field outside of the upcasting logic. You can rely on function being set.
|
|
23
|
+
*
|
|
24
|
+
* */
|
|
25
|
+
aggregate?: Aggregate;
|
|
26
|
+
};
|
|
27
|
+
type Operator = string;
|
|
28
|
+
type Dimension = {
|
|
29
|
+
field: string;
|
|
30
|
+
function: string;
|
|
31
|
+
pivot?: 'x' | 'y';
|
|
32
|
+
};
|
|
33
|
+
type Field = string;
|
|
34
|
+
type Filter = {
|
|
35
|
+
field: Field;
|
|
36
|
+
op: Operator;
|
|
37
|
+
value: any;
|
|
38
|
+
function?: string;
|
|
39
|
+
};
|
|
40
|
+
type Limit = number;
|
|
41
|
+
type Offset = number;
|
|
42
|
+
namespace TimeDimension {
|
|
43
|
+
type Truncate = string;
|
|
44
|
+
}
|
|
45
|
+
type TimeDimension = {
|
|
46
|
+
field: Field;
|
|
47
|
+
truncate: TimeDimension.Truncate;
|
|
48
|
+
timeZone?: string;
|
|
49
|
+
bucketFill?: boolean;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export type SupportedOperator = {
|
|
53
|
+
publicName: string;
|
|
54
|
+
validDataTypes: Array<'number' | 'boolean' | 'string' | 'date_time' | 'string[]'>;
|
|
55
|
+
};
|
|
56
|
+
export type SupportedOperators = {
|
|
57
|
+
[id: string]: SupportedOperator;
|
|
58
|
+
};
|
|
59
|
+
export type QueryAttributes = {
|
|
60
|
+
dataSetId: string;
|
|
61
|
+
measure: QueryAttributes.Measure[];
|
|
62
|
+
dimension: QueryAttributes.Dimension[];
|
|
63
|
+
order: QueryAttributes.Order[];
|
|
64
|
+
timeDimension: QueryAttributes.TimeDimension | null;
|
|
65
|
+
limit?: QueryAttributes.Limit;
|
|
66
|
+
offset?: QueryAttributes.Offset;
|
|
67
|
+
filter: QueryAttributes.Filter[][];
|
|
68
|
+
};
|