@vizzly/services 0.15.0-dev-89f22e757a24a3586c300b3ebb6b29827e8cc0e8 → 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/src/Services/View.d.ts +1 -1
- package/dist/types/services/src/VizzlyLoader.d.ts +3 -3
- package/dist/types/services/src/eventbus.types.d.ts +1 -1
- package/dist/types/services/src/index.d.ts +7 -7
- package/dist/types/services/src/schemaValidations/dashboard.d.ts +1 -1
- package/package.json +6 -9
- package/dist/types/shared-logic/src/AI/types.d.ts +0 -31
- package/dist/types/shared-logic/src/AdditionalFilter/validate.d.ts +0 -3
- package/dist/types/shared-logic/src/AliasFields/types.d.ts +0 -5
- package/dist/types/shared-logic/src/ApiConfig/ApiConfig.d.ts +0 -8
- package/dist/types/shared-logic/src/ApiConfig/index.d.ts +0 -1
- package/dist/types/shared-logic/src/ApiResource/index.d.ts +0 -7
- package/dist/types/shared-logic/src/AreaChartV2/buildAreaChartRepresentation.d.ts +0 -40
- package/dist/types/shared-logic/src/AreaChartV2/types.d.ts +0 -12
- package/dist/types/shared-logic/src/BarChartV2/buildBarChartRepresentation.d.ts +0 -41
- package/dist/types/shared-logic/src/BarChartV2/types.d.ts +0 -10
- package/dist/types/shared-logic/src/Base64/index.d.ts +0 -3
- package/dist/types/shared-logic/src/BubbleChart/getAxisFormattingFunction.d.ts +0 -13
- package/dist/types/shared-logic/src/BubbleChart/getConditionalFormatting.d.ts +0 -7
- package/dist/types/shared-logic/src/BubbleChart/getGoalLines.d.ts +0 -8
- package/dist/types/shared-logic/src/BubbleChart/getMinAndMax.d.ts +0 -15
- package/dist/types/shared-logic/src/BubbleChart/getScaleAndTicks.d.ts +0 -42
- package/dist/types/shared-logic/src/BubbleChart/getStyleDefinition.d.ts +0 -8
- package/dist/types/shared-logic/src/BubbleChart/types.d.ts +0 -86
- package/dist/types/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +0 -38
- package/dist/types/shared-logic/src/BubbleChartV2/buildTrendAndForecast.d.ts +0 -25
- package/dist/types/shared-logic/src/BubbleChartV2/getConditionalFormatting.d.ts +0 -7
- package/dist/types/shared-logic/src/BubbleChartV2/getGoalLines.d.ts +0 -8
- package/dist/types/shared-logic/src/BubbleChartV2/getMinAndMax.d.ts +0 -15
- package/dist/types/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +0 -43
- package/dist/types/shared-logic/src/BubbleChartV2/getStyleDefinition.d.ts +0 -8
- package/dist/types/shared-logic/src/BubbleChartV2/getTrendsAndForecastsData.d.ts +0 -41
- package/dist/types/shared-logic/src/BubbleChartV2/types.d.ts +0 -89
- package/dist/types/shared-logic/src/Callbacks/cell.funcs.d.ts +0 -72
- package/dist/types/shared-logic/src/Callbacks/index.d.ts +0 -1
- package/dist/types/shared-logic/src/Callbacks/labelFormat.d.ts +0 -3
- package/dist/types/shared-logic/src/Callbacks/onViewClickGrouping.d.ts +0 -6
- package/dist/types/shared-logic/src/Callbacks/types.d.ts +0 -18
- package/dist/types/shared-logic/src/ChartsV2/adjustTicks.d.ts +0 -12
- package/dist/types/shared-logic/src/ChartsV2/buildFieldFormatMaps.d.ts +0 -12
- package/dist/types/shared-logic/src/ChartsV2/buildTrendAndForecast.d.ts +0 -25
- package/dist/types/shared-logic/src/ChartsV2/convertToStackedPercentages.d.ts +0 -1
- package/dist/types/shared-logic/src/ChartsV2/fillMissingKeysForChartData.d.ts +0 -4
- package/dist/types/shared-logic/src/ChartsV2/formattingFunctionAxis.d.ts +0 -2
- package/dist/types/shared-logic/src/ChartsV2/getConditionalFormatting.d.ts +0 -7
- package/dist/types/shared-logic/src/ChartsV2/getGoalLines.d.ts +0 -8
- package/dist/types/shared-logic/src/ChartsV2/getMetricAxisTicks.d.ts +0 -25
- package/dist/types/shared-logic/src/ChartsV2/getStackedMinAndMax.d.ts +0 -16
- package/dist/types/shared-logic/src/ChartsV2/getStackedPercentageAxisTicks.d.ts +0 -2
- package/dist/types/shared-logic/src/ChartsV2/getStackedPercentageScaleLinearDomain.d.ts +0 -1
- package/dist/types/shared-logic/src/ChartsV2/getStackedPercentageTickValues.d.ts +0 -1
- package/dist/types/shared-logic/src/ChartsV2/getStackedScaleAndTicks.d.ts +0 -42
- package/dist/types/shared-logic/src/ChartsV2/getStyleDefinition.d.ts +0 -9
- package/dist/types/shared-logic/src/ChartsV2/getTrendsAndForecastsData.d.ts +0 -41
- package/dist/types/shared-logic/src/ChartsV2/getXKeyField.d.ts +0 -3
- package/dist/types/shared-logic/src/ChartsV2/types.d.ts +0 -97
- package/dist/types/shared-logic/src/ComboChartV2/adjustColors.d.ts +0 -1
- package/dist/types/shared-logic/src/ComboChartV2/buildComboChartRepresentation.d.ts +0 -55
- package/dist/types/shared-logic/src/ComboChartV2/types.d.ts +0 -21
- package/dist/types/shared-logic/src/Component/allViewConstants.d.ts +0 -1
- package/dist/types/shared-logic/src/Component/onChangeTypes.d.ts +0 -29
- package/dist/types/shared-logic/src/ConditionalFormatting/utils.d.ts +0 -7
- package/dist/types/shared-logic/src/CustomField/CustomMetric/__mocks__/mockDataSet.d.ts +0 -2
- package/dist/types/shared-logic/src/CustomField/CustomMetric/combineForCustomMetricFilters.d.ts +0 -2
- package/dist/types/shared-logic/src/CustomView/CustomView.d.ts +0 -5
- package/dist/types/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +0 -7
- package/dist/types/shared-logic/src/DashboardAPI/dataConfigurationAndIdentity.d.ts +0 -7
- package/dist/types/shared-logic/src/DashboardAPI/dataSets.d.ts +0 -10
- package/dist/types/shared-logic/src/DashboardAPI/getDashboardAdminOverride.d.ts +0 -1
- package/dist/types/shared-logic/src/DashboardAPI/types.d.ts +0 -18
- package/dist/types/shared-logic/src/DashboardPermission/index.d.ts +0 -7
- package/dist/types/shared-logic/src/DashboardPermission/types.d.ts +0 -12
- package/dist/types/shared-logic/src/DashboardSession/types.d.ts +0 -9
- package/dist/types/shared-logic/src/DataIngest/types.d.ts +0 -10
- package/dist/types/shared-logic/src/DataLabel/index.d.ts +0 -17
- package/dist/types/shared-logic/src/DataTable/resultToPivotTableRepresentation.d.ts +0 -7
- package/dist/types/shared-logic/src/DateTime/DateTimeFilterOptions.d.ts +0 -105
- package/dist/types/shared-logic/src/Dimension/Dimension.d.ts +0 -6
- package/dist/types/shared-logic/src/Dimension/index.d.ts +0 -1
- package/dist/types/shared-logic/src/Documentation/index.d.ts +0 -3
- package/dist/types/shared-logic/src/Documentation/joiToAiDefinition.d.ts +0 -5
- package/dist/types/shared-logic/src/Documentation/joiToDocumentation.d.ts +0 -4
- package/dist/types/shared-logic/src/Documentation/joiToSchemaDefinition.d.ts +0 -2
- package/dist/types/shared-logic/src/Downloads/downloadToJSON.d.ts +0 -4
- package/dist/types/shared-logic/src/Downloads/index.d.ts +0 -1
- package/dist/types/shared-logic/src/Drilldown/Drilldown.d.ts +0 -30
- package/dist/types/shared-logic/src/FeatureToggle/FeatureToggle.d.ts +0 -4
- package/dist/types/shared-logic/src/FeatureToggle/index.d.ts +0 -1
- package/dist/types/shared-logic/src/FeatureToggle/types.d.ts +0 -46
- package/dist/types/shared-logic/src/Field/attributesSchema.d.ts +0 -2
- package/dist/types/shared-logic/src/Generate/aggregateMathsField.d.ts +0 -4
- package/dist/types/shared-logic/src/Generate/chunk.d.ts +0 -1
- package/dist/types/shared-logic/src/Generate/conditionalPercentageField.d.ts +0 -4
- package/dist/types/shared-logic/src/Generate/customFields.d.ts +0 -4
- package/dist/types/shared-logic/src/Generate/dateCalculationField.d.ts +0 -4
- package/dist/types/shared-logic/src/Generate/dimension.d.ts +0 -4
- package/dist/types/shared-logic/src/Generate/filter.d.ts +0 -5
- package/dist/types/shared-logic/src/Generate/measures.d.ts +0 -5
- package/dist/types/shared-logic/src/Generate/order.d.ts +0 -5
- package/dist/types/shared-logic/src/Generate/query.d.ts +0 -10
- package/dist/types/shared-logic/src/Generate/roundedNumberField.d.ts +0 -4
- package/dist/types/shared-logic/src/Generate/rulesField.d.ts +0 -4
- package/dist/types/shared-logic/src/Generate/seededShuffle.d.ts +0 -2
- package/dist/types/shared-logic/src/Generate/simpleMathsFields.d.ts +0 -4
- package/dist/types/shared-logic/src/Generate/timeDimension.d.ts +0 -5
- package/dist/types/shared-logic/src/GlobalLibrary/GlobalLibrary.d.ts +0 -1
- package/dist/types/shared-logic/src/GlobalLibrary/fromRaw.d.ts +0 -10
- package/dist/types/shared-logic/src/GlobalLibrary/getStrategy.d.ts +0 -4
- package/dist/types/shared-logic/src/GlobalLibrary/globalLibraries.d.ts +0 -10
- package/dist/types/shared-logic/src/GlobalLibrary/index.d.ts +0 -4
- package/dist/types/shared-logic/src/GlobalLibrary/types.d.ts +0 -19
- package/dist/types/shared-logic/src/GlobalLibrary/validation.d.ts +0 -3
- package/dist/types/shared-logic/src/Headline/headline.utils.d.ts +0 -10
- package/dist/types/shared-logic/src/HorizontalBarChartV2/buildHorizontalBarChartRepresentation.d.ts +0 -41
- package/dist/types/shared-logic/src/HorizontalBarChartV2/types.d.ts +0 -41
- package/dist/types/shared-logic/src/IdentityConfig/IdentityConfig.d.ts +0 -4
- package/dist/types/shared-logic/src/IdentityConfig/index.d.ts +0 -1
- package/dist/types/shared-logic/src/IdentityConfig/types.d.ts +0 -45
- package/dist/types/shared-logic/src/InstantDashboardProject/index.d.ts +0 -2
- package/dist/types/shared-logic/src/JSQueryEngine/buildResultFields.d.ts +0 -3
- package/dist/types/shared-logic/src/JSQueryEngine/fetchData.d.ts +0 -9
- package/dist/types/shared-logic/src/JSQueryEngine/getInMemoryDb.d.ts +0 -2
- package/dist/types/shared-logic/src/JSQueryEngine/index.d.ts +0 -1
- package/dist/types/shared-logic/src/JSQueryEngine/localQueryEngineConfig.d.ts +0 -1
- package/dist/types/shared-logic/src/JSQueryEngine/localRunQueriesCallback.d.ts +0 -7
- package/dist/types/shared-logic/src/JSQueryEngine/runQueryV3.d.ts +0 -5
- package/dist/types/shared-logic/src/JSQueryEngine/types.d.ts +0 -6
- package/dist/types/shared-logic/src/JWT/JWT.d.ts +0 -2
- package/dist/types/shared-logic/src/LineChartV2/buildLineChartRepresentation.d.ts +0 -40
- package/dist/types/shared-logic/src/LineChartV2/types.d.ts +0 -12
- package/dist/types/shared-logic/src/PDFGenerator/constants.d.ts +0 -3
- package/dist/types/shared-logic/src/PDFGenerator/converter.d.ts +0 -36
- package/dist/types/shared-logic/src/PDFGenerator/generatePNG.d.ts +0 -3
- package/dist/types/shared-logic/src/PDFGenerator/index.d.ts +0 -7
- package/dist/types/shared-logic/src/PDFGenerator/pageBreaks.d.ts +0 -5
- package/dist/types/shared-logic/src/PDFGenerator/types.d.ts +0 -92
- package/dist/types/shared-logic/src/PDFGenerator/utils.d.ts +0 -2
- package/dist/types/shared-logic/src/Parameters/parameters.d.ts +0 -4
- package/dist/types/shared-logic/src/PieChart/onViewClick.d.ts +0 -16
- package/dist/types/shared-logic/src/PivotConfig/index.d.ts +0 -10
- package/dist/types/shared-logic/src/PivotConfig/types.d.ts +0 -16
- package/dist/types/shared-logic/src/PivotConfigForMetricAxis/index.d.ts +0 -3
- package/dist/types/shared-logic/src/Progress/utils.d.ts +0 -2
- package/dist/types/shared-logic/src/Project/Project.d.ts +0 -10
- package/dist/types/shared-logic/src/Project/types.d.ts +0 -74
- package/dist/types/shared-logic/src/QueryEngine/buildManagedQueryEngineEndpoint.d.ts +0 -1
- package/dist/types/shared-logic/src/QueryEngine/buildQueryEngineSignInUrl.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngine/formatLoadedFromString.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngine/index.d.ts +0 -3
- package/dist/types/shared-logic/src/QueryEngine/types.d.ts +0 -57
- package/dist/types/shared-logic/src/QueryEngineConfig/QueryEngineConfig.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngineConfig/bigquery.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngineConfig/compareSupport.d.ts +0 -14
- package/dist/types/shared-logic/src/QueryEngineConfig/getQueryEngineConfig.d.ts +0 -3
- package/dist/types/shared-logic/src/QueryEngineConfig/index.d.ts +0 -5
- package/dist/types/shared-logic/src/QueryEngineConfig/loadQueryEngineConfig.d.ts +0 -3
- package/dist/types/shared-logic/src/QueryEngineConfig/localJS.d.ts +0 -3
- package/dist/types/shared-logic/src/QueryEngineConfig/mariadb.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngineConfig/microsoftSQLServer.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngineConfig/mysql.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngineConfig/postgres.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngineConfig/redshift.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngineConfig/snowflake.d.ts +0 -2
- package/dist/types/shared-logic/src/QueryEngineConfig/supportedConstants.d.ts +0 -7
- package/dist/types/shared-logic/src/QueryEngineConfig/supportedFeature.d.ts +0 -2
- package/dist/types/shared-logic/src/RadarChart/adjustTicks.d.ts +0 -3
- package/dist/types/shared-logic/src/RadarChart/buildRadarChartRepresentation.d.ts +0 -34
- package/dist/types/shared-logic/src/RadarChart/getMinAndMax.d.ts +0 -13
- package/dist/types/shared-logic/src/RadarChart/getScaleAndTicks.d.ts +0 -37
- package/dist/types/shared-logic/src/RadarChart/types.d.ts +0 -46
- package/dist/types/shared-logic/src/Result/Result.d.ts +0 -39
- package/dist/types/shared-logic/src/Result/formatResult.d.ts +0 -36
- package/dist/types/shared-logic/src/Result/formattedResultToSeries.d.ts +0 -25
- package/dist/types/shared-logic/src/Result/formattedResultToSeriesForMetricAxis.d.ts +0 -25
- package/dist/types/shared-logic/src/Result/index.d.ts +0 -1
- package/dist/types/shared-logic/src/SQLViews/index.d.ts +0 -11
- package/dist/types/shared-logic/src/SQLViews/types.d.ts +0 -7
- package/dist/types/shared-logic/src/SimpleInsecureHash/index.d.ts +0 -1
- package/dist/types/shared-logic/src/Strategy/types.d.ts +0 -7
- package/dist/types/shared-logic/src/Tags/index.d.ts +0 -14
- package/dist/types/shared-logic/src/Threshold/threshold.utils.d.ts +0 -10
- package/dist/types/shared-logic/src/Tiers/Tiers.d.ts +0 -14
- package/dist/types/shared-logic/src/Tiers/types.d.ts +0 -12
- package/dist/types/shared-logic/src/Translations/extract/buildJsonFile.d.ts +0 -2
- package/dist/types/shared-logic/src/Translations/extract/buildTypes.d.ts +0 -1
- package/dist/types/shared-logic/src/Translations/extract/extractPanelConfig.d.ts +0 -3
- package/dist/types/shared-logic/src/Translations/extract/extractSupportedConstant.d.ts +0 -6
- package/dist/types/shared-logic/src/Translations/extract/func.d.ts +0 -5
- package/dist/types/shared-logic/src/Translations/extract/index.d.ts +0 -4
- package/dist/types/shared-logic/src/Translations/translateQueryEngineConfig.d.ts +0 -3
- package/dist/types/shared-logic/src/Trends/linearForecasting.d.ts +0 -8
- package/dist/types/shared-logic/src/Trends/trends.d.ts +0 -26
- package/dist/types/shared-logic/src/ViewConfiguration/types.d.ts +0 -4
- package/dist/types/shared-logic/src/VizzlyConfig/constants.d.ts +0 -18
- package/dist/types/shared-logic/src/VizzlyConfig/types.d.ts +0 -1
- package/dist/types/shared-logic/src/VizzlyState/index.d.ts +0 -68
- package/dist/types/shared-logic/src/WaterfallChart/adjustTicks.d.ts +0 -3
- package/dist/types/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +0 -38
- package/dist/types/shared-logic/src/WaterfallChart/getNiceInterval.d.ts +0 -1
- package/dist/types/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +0 -22
- package/dist/types/shared-logic/src/WaterfallChart/getYTicks.d.ts +0 -8
- package/dist/types/shared-logic/src/WaterfallChart/types.d.ts +0 -72
- package/dist/types/shared-logic/src/Webhook/Webhook.d.ts +0 -2
- package/dist/types/shared-logic/src/Webhook/index.d.ts +0 -2
- package/dist/types/shared-logic/src/Webhook/types.d.ts +0 -25
- package/dist/types/shared-logic/src/api/httpClient.d.ts +0 -7
- package/dist/types/shared-logic/src/api/index.d.ts +0 -46
- package/dist/types/shared-logic/src/api/queryEngine/createConfigFromUpload.d.ts +0 -2
- package/dist/types/shared-logic/src/api/queryEngine/createResults.d.ts +0 -10
- package/dist/types/shared-logic/src/api/queryEngine/createSqlPreview.d.ts +0 -5
- package/dist/types/shared-logic/src/api/queryEngine/createUser.d.ts +0 -2
- package/dist/types/shared-logic/src/api/queryEngine/fetchDataSets.d.ts +0 -4
- package/dist/types/shared-logic/src/api/queryEngine/fetchSelfHostedQueryEngineConfig.d.ts +0 -3
- package/dist/types/shared-logic/src/api/queryEngine/getProject.d.ts +0 -3
- package/dist/types/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +0 -21
- package/dist/types/shared-logic/src/api/queryEngine/getStarted.d.ts +0 -2
- package/dist/types/shared-logic/src/api/queryEngine/getTeamMembers.d.ts +0 -3
- package/dist/types/shared-logic/src/api/queryEngine/isVizzly.d.ts +0 -3
- package/dist/types/shared-logic/src/api/queryEngine/queryEngineHttpClient.d.ts +0 -3
- package/dist/types/shared-logic/src/api/queryEngine/saveConfig.d.ts +0 -2
- package/dist/types/shared-logic/src/api/queryEngine/saveConnection.d.ts +0 -7
- package/dist/types/shared-logic/src/api/queryEngine/signIn.d.ts +0 -8
- package/dist/types/shared-logic/src/api/queryEngine/status.d.ts +0 -3
- package/dist/types/shared-logic/src/api/queryEngine/updateUser.d.ts +0 -2
- package/dist/types/shared-logic/src/api/queryEngine/uploadDataToVizzlyCloud.d.ts +0 -3
- package/dist/types/shared-logic/src/api/types.d.ts +0 -25
- package/dist/types/shared-logic/src/api/vizzly/aiActions.d.ts +0 -18
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/buildAIResponse.d.ts +0 -5
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/buildDataSets.d.ts +0 -4
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/checkAiResponseStatus.d.ts +0 -3
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/types.d.ts +0 -23
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/validateAndUpcastAIAttributes.d.ts +0 -4
- package/dist/types/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +0 -10
- package/dist/types/shared-logic/src/api/vizzly/askAi.d.ts +0 -6
- package/dist/types/shared-logic/src/api/vizzly/askAiForQuestionSuggestions.d.ts +0 -4
- package/dist/types/shared-logic/src/api/vizzly/createParentDashboard.d.ts +0 -4
- package/dist/types/shared-logic/src/api/vizzly/createParentGlobalLibrary.d.ts +0 -3
- package/dist/types/shared-logic/src/api/vizzly/createProjectApiKey.d.ts +0 -2
- package/dist/types/shared-logic/src/api/vizzly/createSelfHostedDynamicQueryEngine.d.ts +0 -3
- package/dist/types/shared-logic/src/api/vizzly/createSelfHostedInBrowserQueryEngineProject.d.ts +0 -3
- package/dist/types/shared-logic/src/api/vizzly/createSelfHostedQueryEngineProject.d.ts +0 -3
- package/dist/types/shared-logic/src/api/vizzly/createVizzlyConfigVersion.d.ts +0 -2
- package/dist/types/shared-logic/src/api/vizzly/duplicateParentDashboard.d.ts +0 -3
- package/dist/types/shared-logic/src/api/vizzly/getManagedQueryEngineKeyPair.d.ts +0 -5
- package/dist/types/shared-logic/src/api/vizzly/getParentDashboards.d.ts +0 -9
- package/dist/types/shared-logic/src/api/vizzly/getProjectAccessToken.d.ts +0 -2
- package/dist/types/shared-logic/src/api/vizzly/saveScheduledReport.d.ts +0 -6
- package/dist/types/shared-logic/src/api/vizzly/updateParentGlobalLibrary.d.ts +0 -7
- package/dist/types/shared-logic/src/api/vizzly/updateProjectApiKey.d.ts +0 -6
- package/dist/types/shared-logic/src/errors/AIAborted.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/AIContainsErrors.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/AIFailedToFetch.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/AIUsageLimitReached.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/AggregateFieldValueInResultExpectsNumber.d.ts +0 -5
- package/dist/types/shared-logic/src/errors/DashboardQuotaReached.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/EncryptedProjectSecretAlreadyExists.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/FailedToCreateConfigFromUpload.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/FailedToCreateDashboard.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/FailedToCreateDashboardAccess.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/FailedToGetDashboard.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/FailedToLoadIdentity.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/FailedToLoadQueryEngineConfig.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/FailedToResolveDataSets.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/FailedToSaveVizzlyConfigVersion.d.ts +0 -3
- package/dist/types/shared-logic/src/errors/FailedToSetupProject.d.ts +0 -3
- package/dist/types/shared-logic/src/errors/FailedToUpdateDashboard.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/IdentityMustBeCallback.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/InvalidDataSetsPropType.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/InvalidIdentityPropType.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/InvalidIdentityReturn.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/InvalidQueryEngineEndpoint.d.ts +0 -6
- package/dist/types/shared-logic/src/errors/InvalidQueryEngineEndpointType.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/LoadingAborted.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/MissingDateTimeFormatOption.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/MissingDimensionInResult.d.ts +0 -5
- package/dist/types/shared-logic/src/errors/MissingMeasuresInResult.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/MissingTimeDimensionInResult.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/MissingVizzlyInMemoryDb.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/MoreResultsThanExpectedWithNoDimension.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/NewVizzlyImplementation.d.ts +0 -3
- package/dist/types/shared-logic/src/errors/NoDataSetResolved.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/ProjectEncryptedSecretAlreadySaved.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/QueryLimitExceededInResult.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/ReadOnlyPermissionNotFound.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/ReadPermissionNotFound.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/ResultContainsValueOfWrongType.d.ts +0 -5
- package/dist/types/shared-logic/src/errors/SQLPreviewError.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/ServicesValidation.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/StateValidation.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/ValueNotFoundInVariable.d.ts +0 -6
- package/dist/types/shared-logic/src/errors/VizzlyApiCallErrorFailedToSetupProject.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/VizzlyApiError.d.ts +0 -6
- package/dist/types/shared-logic/src/errors/WritePermissionNotFound.d.ts +0 -4
- package/dist/types/shared-logic/src/errors/index.d.ts +0 -6
- package/dist/types/shared-logic/src/getVizzly.d.ts +0 -5
- package/dist/types/shared-logic/src/tests/exampleDataSet.d.ts +0 -95
- package/dist/types/shared-logic/src/utils/DateTime.d.ts +0 -19
- package/dist/types/shared-logic/src/utils/arrayHelpers.d.ts +0 -6
- package/dist/types/shared-logic/src/utils/defaultSortingDateTimes.d.ts +0 -4
- package/dist/types/shared-logic/src/utils/htmlHelper.d.ts +0 -2
- package/dist/types/shared-logic/src/utils/index.d.ts +0 -5
- package/dist/types/shared-logic/src/utils/numberHelpers.d.ts +0 -9
- package/dist/types/shared-logic/src/utils/pathHelpers.d.ts +0 -5
- package/dist/types/shared-logic/src/validations.d.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Component } from '../../../shared-logic/src/Component/types';
|
|
2
|
-
import { ViewConfiguration as ViewConfigurationImported } from '
|
|
2
|
+
import { ViewConfiguration as ViewConfigurationImported } from 'shared-logic/src/ViewConfiguration/types';
|
|
3
3
|
import { Vizzly } from '..';
|
|
4
4
|
export type ViewConfiguration = ViewConfigurationImported;
|
|
5
5
|
type RequiredAttributes<T extends Component.Attributes> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryEngineConfig, QueryEngineEndpoint } from '../../shared-logic/src/QueryEngineConfig/types';
|
|
2
|
-
import { identityCallback, loadDataSetsCallback, loadQueryEngineConfigCallback } from '
|
|
3
|
-
import { IdentityConfig } from '
|
|
4
|
-
import { DashboardStorageStrategy } from '
|
|
2
|
+
import { identityCallback, loadDataSetsCallback, loadQueryEngineConfigCallback } from 'shared-logic/src/Callbacks/types';
|
|
3
|
+
import { IdentityConfig } from 'shared-logic/src/IdentityConfig/types';
|
|
4
|
+
import { DashboardStorageStrategy } from 'shared-logic/src/DashboardAPI/types';
|
|
5
5
|
import { VizzlyTranslations } from '../../shared-logic/src/Translations/translation.types';
|
|
6
6
|
import { DataSet } from '../../shared-logic/src/DataSet/types';
|
|
7
7
|
import { CustomField } from '../../shared-logic/src/CustomField/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from '../../shared-logic/src/Component/types';
|
|
2
|
-
import { GlobalLibrary } from '
|
|
2
|
+
import { GlobalLibrary } from 'shared-logic/src/GlobalLibrary';
|
|
3
3
|
export type AddComponentToLibraryEvent = {
|
|
4
4
|
action: 'addComponentToLibrary';
|
|
5
5
|
component: Component;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { QueryEngineConfig, QueryEngineEndpoint } from '../../shared-logic/src/QueryEngineConfig/types';
|
|
2
|
-
import { identityCallback, loadDataCallback, loadDataSetsCallback, loadQueryEngineConfigCallback, programmaticDashboardCallback } from '
|
|
3
|
-
import { IdentityConfig } from '
|
|
4
|
-
import { DashboardStorageStrategy } from '
|
|
2
|
+
import { identityCallback, loadDataCallback, loadDataSetsCallback, loadQueryEngineConfigCallback, programmaticDashboardCallback } from 'shared-logic/src/Callbacks/types';
|
|
3
|
+
import { IdentityConfig } from 'shared-logic/src/IdentityConfig/types';
|
|
4
|
+
import { DashboardStorageStrategy } from 'shared-logic/src/DashboardAPI/types';
|
|
5
5
|
import { DataSet } from '../../shared-logic/src/DataSet/types';
|
|
6
6
|
import { Dashboard as DashboardFromAPI, UpdateGlobalLibraryParams as APIUpdateGlobalLibraryParams, GlobalLibrary, GlobalLibraryPermission, CreateGlobalLibraryParams } from '@vizzly/api-client';
|
|
7
7
|
import * as DashboardLogic from '../../shared-logic/src/Dashboard';
|
|
8
|
-
import * as GlobalLibraryLogic from '
|
|
8
|
+
import * as GlobalLibraryLogic from 'shared-logic/src/GlobalLibrary';
|
|
9
9
|
import { LoaderOptions } from './VizzlyLoader';
|
|
10
10
|
import { Row, Cell, Dashboard, Header, Library, Editor } from './Services';
|
|
11
11
|
import * as Views from './Services/View';
|
|
12
|
-
import { ViewConfiguration } from '
|
|
12
|
+
import type { ViewConfiguration } from 'shared-logic/src/ViewConfiguration/types';
|
|
13
13
|
import { EventBus, EventBusParams } from './eventbus.types';
|
|
14
14
|
import { QueryAttributes } from '../../shared-logic/src/QueryAttributes/types';
|
|
15
15
|
import { CustomDriver } from 'results-driver/src/types';
|
|
@@ -18,10 +18,10 @@ import { DateTimeFilterOptions } from '../../shared-logic/src/DateTime/types';
|
|
|
18
18
|
import { VariableList } from '../../shared-logic/src/Variables/types';
|
|
19
19
|
import { FilterConfig } from '../../shared-logic/src/AdditionalFilter/types';
|
|
20
20
|
export type { FilterConfig } from '../../shared-logic/src/AdditionalFilter/types';
|
|
21
|
-
export type { ViewConfiguration } from '
|
|
21
|
+
export type { ViewConfiguration } from 'shared-logic/src/ViewConfiguration/types';
|
|
22
22
|
export { VizzlyInstanceNotLoaded } from './errors/VizzlyInstanceNotLoaded';
|
|
23
23
|
import { CustomField } from '../../shared-logic/src/CustomField/types';
|
|
24
|
-
import { AliasFields } from '
|
|
24
|
+
import { AliasFields } from 'shared-logic/src/AliasFields/types';
|
|
25
25
|
export type Options = {
|
|
26
26
|
apiHost: string;
|
|
27
27
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryEngineConfig } from '../../../shared-logic/src/QueryEngineConfig/types';
|
|
2
2
|
import { CreateDashboardParams, UpdateDashboardParams } from '..';
|
|
3
|
-
import { JoiOptions } from '
|
|
3
|
+
import { JoiOptions } from 'shared-logic/src/validations';
|
|
4
4
|
export declare const validateDashboardJoiOptions: JoiOptions;
|
|
5
5
|
export declare const validateCreateDashboardParams: (params: CreateDashboardParams, queryEngineConfig: QueryEngineConfig | undefined) => void;
|
|
6
6
|
export declare const validateUpdateDashboardParams: (params: UpdateDashboardParams, queryEngineConfig: QueryEngineConfig) => void;
|
package/package.json
CHANGED
|
@@ -9,11 +9,8 @@
|
|
|
9
9
|
"main": "./dist/cjs/index.cjs.js",
|
|
10
10
|
"module": "./dist/esm/index.esm.js",
|
|
11
11
|
"exports": {
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"import": "./dist/esm/index.esm.js",
|
|
15
|
-
"types": "./dist/types/services/src/index.d.ts"
|
|
16
|
-
}
|
|
12
|
+
"require": "./dist/cjs/index.cjs.js",
|
|
13
|
+
"import": "./dist/esm/index.esm.js"
|
|
17
14
|
},
|
|
18
15
|
"devDependencies": {
|
|
19
16
|
"jest": "^29.6.0",
|
|
@@ -29,12 +26,12 @@
|
|
|
29
26
|
"set-version": "node ./scripts/setVersion.js",
|
|
30
27
|
"test": "jest --forceExit",
|
|
31
28
|
"build-umd": "rm -rf ./dist && vite build --config ./umdBuild/vite.config.js && rm -rf ./dist/*.mjs",
|
|
32
|
-
"build": "
|
|
33
|
-
"build
|
|
34
|
-
"fix-type-alias": "tsc-alias -p tsconfig.json",
|
|
29
|
+
"build-types": "tsc -p tsconfig.types.json && yarn fix-type-alias",
|
|
30
|
+
"build": "rm -rf ./dist && vite build --mode=production && yarn build-types",
|
|
31
|
+
"fix-type-alias": "tsc-alias -p tsconfig.types.json",
|
|
35
32
|
"prepare": "yarn build"
|
|
36
33
|
},
|
|
37
|
-
"version": "0.15.0-dev-
|
|
34
|
+
"version": "0.15.0-dev-f576f0918251ec7901abbda943caec672e40c29c",
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"@vizzly/api-client": "0.0.57",
|
|
40
37
|
"@vizzly/joi": "^17.11.0",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare enum SenderType {
|
|
2
|
-
User = "user",
|
|
3
|
-
AI = "ai"
|
|
4
|
-
}
|
|
5
|
-
export declare enum MessageState {
|
|
6
|
-
WaitingForMessage = "waitingForMessage",
|
|
7
|
-
Thinking = "thinking"
|
|
8
|
-
}
|
|
9
|
-
export declare enum AIReaction {
|
|
10
|
-
ThumbsUp = "thumbs_up",
|
|
11
|
-
ThumbsDown = "thumbs_down"
|
|
12
|
-
}
|
|
13
|
-
export type Message = {
|
|
14
|
-
content: string;
|
|
15
|
-
sender_type: SenderType;
|
|
16
|
-
status: 'active';
|
|
17
|
-
id: string;
|
|
18
|
-
sent_at: Date;
|
|
19
|
-
reaction: AIReaction | null;
|
|
20
|
-
};
|
|
21
|
-
export type ConversationState = {
|
|
22
|
-
message: string;
|
|
23
|
-
conversationId: string | undefined;
|
|
24
|
-
messageState: MessageState;
|
|
25
|
-
messageHistory: Message[];
|
|
26
|
-
};
|
|
27
|
-
export declare enum AIFeedback {
|
|
28
|
-
Warning = "warning",
|
|
29
|
-
Critical = "critical",
|
|
30
|
-
Info = "info"
|
|
31
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ApiConfig';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { ValueAlias } from '../ValueAlias/types';
|
|
3
|
-
import { Result } from '../Result/types';
|
|
4
|
-
import { PivotConfig } from '../PivotConfig/types';
|
|
5
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
6
|
-
import { Component, FormatType } from '../Component/types';
|
|
7
|
-
import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
|
|
8
|
-
import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
|
|
9
|
-
import { AreaChartRepresentation } from './types';
|
|
10
|
-
interface buildAreaChartRepresentationArgs {
|
|
11
|
-
axisTitles?: Component.AxisTitles;
|
|
12
|
-
colors: CSSProperties['color'][];
|
|
13
|
-
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
14
|
-
dateTimeFormatOptions: {
|
|
15
|
-
[id: string]: DateTimeFormatter;
|
|
16
|
-
};
|
|
17
|
-
defaultFormats: () => {
|
|
18
|
-
[functionId: string]: string;
|
|
19
|
-
};
|
|
20
|
-
goalLineAttributes: Component.GoalLine.Rule[];
|
|
21
|
-
nullValue?: string;
|
|
22
|
-
numberFormatOptions: {
|
|
23
|
-
[id: string]: NumberFormatter;
|
|
24
|
-
};
|
|
25
|
-
order: QueryAttributes.Order[];
|
|
26
|
-
pivotConfig: PivotConfig;
|
|
27
|
-
result: Result;
|
|
28
|
-
valueAlias?: ValueAlias;
|
|
29
|
-
xAxisFormat: FormatType;
|
|
30
|
-
xAxisPostfix: string;
|
|
31
|
-
xAxisPrefix: string;
|
|
32
|
-
yAxisFormat: FormatType;
|
|
33
|
-
yAxisPostfix: string;
|
|
34
|
-
yAxisPrefix: string;
|
|
35
|
-
approxYAxisLabelCount: number;
|
|
36
|
-
seriesLabelFormatter: seriesLabelFormatter;
|
|
37
|
-
stacked?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export declare const buildAreaChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, goalLineAttributes, nullValue, numberFormatOptions, order, pivotConfig, result, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxYAxisLabelCount, seriesLabelFormatter, valueAlias, stacked, }: buildAreaChartRepresentationArgs) => AreaChartRepresentation;
|
|
40
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseChartRepresentation, ConditionalFormattingRule, GoalLine, ShapeDefinition } from '../ChartsV2/types';
|
|
2
|
-
export interface AreaChartRepresentation extends BaseChartRepresentation {
|
|
3
|
-
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
4
|
-
goalLines: GoalLine[];
|
|
5
|
-
areas: ShapeDefinition<AreaStyles>[];
|
|
6
|
-
}
|
|
7
|
-
export type CurveTypes = 'natural' | 'straight' | 'step';
|
|
8
|
-
export type AreaStyles = {
|
|
9
|
-
type: 'area';
|
|
10
|
-
toOpacity: number;
|
|
11
|
-
fromOpacity: number;
|
|
12
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { BarChartRepresentation } from './types';
|
|
3
|
-
import { ValueAlias } from '../ValueAlias/types';
|
|
4
|
-
import { Result } from '../Result/types';
|
|
5
|
-
import { PivotConfig } from '../PivotConfig/types';
|
|
6
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
7
|
-
import { Component, FormatType } from '../Component/types';
|
|
8
|
-
import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
|
|
9
|
-
import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
|
|
10
|
-
interface buildBarChartRepresentationArgs {
|
|
11
|
-
axisTitles?: Component.AxisTitles;
|
|
12
|
-
colors: CSSProperties['color'][];
|
|
13
|
-
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
14
|
-
dateTimeFormatOptions: {
|
|
15
|
-
[id: string]: DateTimeFormatter;
|
|
16
|
-
};
|
|
17
|
-
defaultFormats: () => {
|
|
18
|
-
[functionId: string]: string;
|
|
19
|
-
};
|
|
20
|
-
goalLineAttributes: Component.GoalLine.Rule[];
|
|
21
|
-
nullValue?: string;
|
|
22
|
-
numberFormatOptions: {
|
|
23
|
-
[id: string]: NumberFormatter;
|
|
24
|
-
};
|
|
25
|
-
order: QueryAttributes.Order[];
|
|
26
|
-
pivotConfig: PivotConfig;
|
|
27
|
-
result: Result;
|
|
28
|
-
trendsAndForecasts?: Component.Trends[];
|
|
29
|
-
valueAlias?: ValueAlias;
|
|
30
|
-
xAxisFormat: FormatType;
|
|
31
|
-
xAxisPostfix: string;
|
|
32
|
-
xAxisPrefix: string;
|
|
33
|
-
yAxisFormat: FormatType;
|
|
34
|
-
yAxisPostfix: string;
|
|
35
|
-
yAxisPrefix: string;
|
|
36
|
-
approxYAxisLabelCount: number;
|
|
37
|
-
seriesLabelFormatter: seriesLabelFormatter;
|
|
38
|
-
stacked?: boolean | '100%';
|
|
39
|
-
}
|
|
40
|
-
export declare const buildBarChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, goalLineAttributes, nullValue, numberFormatOptions, order, pivotConfig, result, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxYAxisLabelCount, seriesLabelFormatter, valueAlias, stacked, }: buildBarChartRepresentationArgs) => BarChartRepresentation;
|
|
41
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ShapeDefinition, ConditionalFormattingRule, GoalLine, BaseChartRepresentation } from '../ChartsV2/types';
|
|
2
|
-
export interface BarChartRepresentation extends BaseChartRepresentation {
|
|
3
|
-
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
4
|
-
goalLines: GoalLine[];
|
|
5
|
-
bars: ShapeDefinition<BarStyles>[];
|
|
6
|
-
formattingFunctionY?: (value: any, nullValueAlias?: string) => string;
|
|
7
|
-
}
|
|
8
|
-
export type BarStyles = {
|
|
9
|
-
type: 'bar';
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DateTimeFormatter, NumberFormatter } from './types';
|
|
2
|
-
import { FormatType } from '../Component/types';
|
|
3
|
-
interface getAxisFormattingFunctionArgs {
|
|
4
|
-
numberFormatOptions: {
|
|
5
|
-
[id: string]: NumberFormatter;
|
|
6
|
-
};
|
|
7
|
-
dateTimeFormatOptions: {
|
|
8
|
-
[id: string]: DateTimeFormatter;
|
|
9
|
-
};
|
|
10
|
-
formatFunctionId: FormatType;
|
|
11
|
-
}
|
|
12
|
-
export declare const getAxisFormattingFunction: ({ formatFunctionId, numberFormatOptions, dateTimeFormatOptions, }: getAxisFormattingFunctionArgs) => ((date: Date) => string) | ((number: number | undefined | null, noValueReplacement?: string) => string) | ((value: string) => string);
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ConditionalFormattingRule } from './types';
|
|
2
|
-
import { Component } from '../Component/types';
|
|
3
|
-
interface getConditionalFormattingArgs {
|
|
4
|
-
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
5
|
-
}
|
|
6
|
-
export declare const getConditionalFormatting: ({ conditionalFormattingAttributes, }: getConditionalFormattingArgs) => ConditionalFormattingRule[];
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GoalLine } from './types';
|
|
2
|
-
import { Component } from '../Component/types';
|
|
3
|
-
interface getGoalLinesArgs {
|
|
4
|
-
goalLineAttributes: Component.GoalLine.Rule[];
|
|
5
|
-
formattingFunctionY: (value: any) => string;
|
|
6
|
-
}
|
|
7
|
-
export declare const getGoalLines: ({ goalLineAttributes, formattingFunctionY }: getGoalLinesArgs) => GoalLine[];
|
|
8
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DataType } from '../Field/types';
|
|
2
|
-
import { FormattedResult } from '../Result/types';
|
|
3
|
-
import { GoalLine } from './types';
|
|
4
|
-
export declare const getMinAndMax: ({ data, keys, dataType, goalLines, }: {
|
|
5
|
-
data: FormattedResult["contentMapped"];
|
|
6
|
-
keys: Array<string>;
|
|
7
|
-
dataType: DataType;
|
|
8
|
-
goalLines?: GoalLine[];
|
|
9
|
-
}) => {
|
|
10
|
-
max: null;
|
|
11
|
-
min: null;
|
|
12
|
-
} | {
|
|
13
|
-
max: number;
|
|
14
|
-
min: number;
|
|
15
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { KeyId, GoalLine } from './types';
|
|
2
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
-
import { DataType } from '../Field/types';
|
|
4
|
-
import { FormattedResult } from '../Result/types';
|
|
5
|
-
import { Tick } from '../ChartsV2/types';
|
|
6
|
-
type FormattingFunction = (value: any, nullValueAlias?: string) => string;
|
|
7
|
-
interface getScaleAndTicksArgs {
|
|
8
|
-
data: FormattedResult['contentMapped'];
|
|
9
|
-
xKey: string | null;
|
|
10
|
-
xScaleDataType: DataType;
|
|
11
|
-
yKeys: string[];
|
|
12
|
-
nullValue: string | undefined;
|
|
13
|
-
tickCountYAxis: number;
|
|
14
|
-
formattingFunctionX: FormattingFunction;
|
|
15
|
-
formattingFunctionY: FormattingFunction;
|
|
16
|
-
order: QueryAttributes.Order[];
|
|
17
|
-
goalLines: GoalLine[];
|
|
18
|
-
}
|
|
19
|
-
interface getScaleAndTicksReturn {
|
|
20
|
-
x: {
|
|
21
|
-
ticks: Array<Tick<Date | string | number>>;
|
|
22
|
-
scale: {
|
|
23
|
-
max: number | Date | null;
|
|
24
|
-
min: number | Date | null;
|
|
25
|
-
key: KeyId | null;
|
|
26
|
-
ordering: 'asc' | 'desc' | null;
|
|
27
|
-
dataType: DataType;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
y: {
|
|
31
|
-
ticks: Array<Tick<number>>;
|
|
32
|
-
scale: {
|
|
33
|
-
max: number;
|
|
34
|
-
min: number;
|
|
35
|
-
key: null;
|
|
36
|
-
ordering: 'asc' | 'desc';
|
|
37
|
-
dataType: 'number';
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, tickCountYAxis, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
|
|
42
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { LegendItem } from './types';
|
|
3
|
-
interface getStyleDefinitionArgs {
|
|
4
|
-
colors: CSSProperties['color'][];
|
|
5
|
-
yKeys: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare const getStyleDefinition: ({ colors, yKeys }: getStyleDefinitionArgs) => LegendItem[];
|
|
8
|
-
export {};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Tick } from '../ChartsV2/types';
|
|
2
|
-
import { DataType } from '../Field/types';
|
|
3
|
-
export type KeyId = string;
|
|
4
|
-
export type Operator = string;
|
|
5
|
-
export type ConditionalFormattingRule = {
|
|
6
|
-
operator: Operator;
|
|
7
|
-
value: any;
|
|
8
|
-
color: string;
|
|
9
|
-
yKey: KeyId;
|
|
10
|
-
};
|
|
11
|
-
export type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
|
|
12
|
-
ticks: Tick<SupportedVizzlyDataTypes>[];
|
|
13
|
-
scale: {
|
|
14
|
-
dataType: DataType;
|
|
15
|
-
key: KeyId | null;
|
|
16
|
-
ordering: 'asc' | 'desc' | null;
|
|
17
|
-
min: SupportedVizzlyDataTypes | null;
|
|
18
|
-
max: SupportedVizzlyDataTypes | null;
|
|
19
|
-
};
|
|
20
|
-
postfix: string;
|
|
21
|
-
prefix: string;
|
|
22
|
-
title: string | null;
|
|
23
|
-
} & AxisKeys;
|
|
24
|
-
export type LegendItemStyleLine = {
|
|
25
|
-
type: 'line';
|
|
26
|
-
strokeDasharray: string | number | null;
|
|
27
|
-
strokeWidth: number;
|
|
28
|
-
};
|
|
29
|
-
export type LegendItem = {
|
|
30
|
-
yKey: KeyId;
|
|
31
|
-
color: string;
|
|
32
|
-
style: LegendItemStyleLine;
|
|
33
|
-
};
|
|
34
|
-
export type Key = {
|
|
35
|
-
key: KeyId;
|
|
36
|
-
keyFormatted: string;
|
|
37
|
-
dataType: DataType;
|
|
38
|
-
};
|
|
39
|
-
export type BubbleChartRepresentation = {
|
|
40
|
-
keys: {
|
|
41
|
-
[key: KeyId]: Key;
|
|
42
|
-
};
|
|
43
|
-
x: Axis<Date | string | number, {
|
|
44
|
-
key: KeyId;
|
|
45
|
-
}>;
|
|
46
|
-
y: Axis<number, {
|
|
47
|
-
keys: KeyId[];
|
|
48
|
-
}>;
|
|
49
|
-
z: string;
|
|
50
|
-
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
51
|
-
goalLines: GoalLine[];
|
|
52
|
-
data: {
|
|
53
|
-
[keyId: string]: DataItem;
|
|
54
|
-
}[];
|
|
55
|
-
lines: LegendItem[];
|
|
56
|
-
groupByKey: string;
|
|
57
|
-
legend: {
|
|
58
|
-
keys: {
|
|
59
|
-
[keyId: string]: Key;
|
|
60
|
-
};
|
|
61
|
-
items: LegendItem[];
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
export type DataItem = {
|
|
65
|
-
value: number | string | null;
|
|
66
|
-
formattedValue: string | null;
|
|
67
|
-
};
|
|
68
|
-
export type GoalLine = {
|
|
69
|
-
value: number;
|
|
70
|
-
formattedValue: string | null;
|
|
71
|
-
color: string;
|
|
72
|
-
strokeStyle?: 'dashed' | 'solid';
|
|
73
|
-
strokeWidth: number;
|
|
74
|
-
};
|
|
75
|
-
export type DateTimeFormatter = {
|
|
76
|
-
formatter: (date: Date) => string;
|
|
77
|
-
description: string;
|
|
78
|
-
};
|
|
79
|
-
export type NumberFormatter = {
|
|
80
|
-
formatter: (number: number | undefined | null, noValueReplacement?: string) => string;
|
|
81
|
-
description: string;
|
|
82
|
-
};
|
|
83
|
-
export type BubbleStyles = {
|
|
84
|
-
type: 'bubble';
|
|
85
|
-
bubbleSize: number;
|
|
86
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { BubbleChartRepresentation, DateTimeFormatter, NumberFormatter } from './types';
|
|
3
|
-
import { ValueAlias } from '../ValueAlias/types';
|
|
4
|
-
import { Result } from '../Result/types';
|
|
5
|
-
import { PivotConfig } from '../PivotConfig/types';
|
|
6
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
7
|
-
import { ApproxAxisLabelCount, Component, FormatType } from '../Component/types';
|
|
8
|
-
interface buildBubbleChartRepresentationArgs {
|
|
9
|
-
axisTitles?: Component.AxisTitles;
|
|
10
|
-
colors: CSSProperties['color'][];
|
|
11
|
-
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
12
|
-
dateTimeFormatOptions: {
|
|
13
|
-
[id: string]: DateTimeFormatter;
|
|
14
|
-
};
|
|
15
|
-
defaultFormats: () => {
|
|
16
|
-
[functionId: string]: string;
|
|
17
|
-
};
|
|
18
|
-
goalLineAttributes: Component.GoalLine.Rule[];
|
|
19
|
-
nullValue?: string;
|
|
20
|
-
numberFormatOptions: {
|
|
21
|
-
[id: string]: NumberFormatter;
|
|
22
|
-
};
|
|
23
|
-
order: QueryAttributes.Order[];
|
|
24
|
-
pivotConfig: PivotConfig;
|
|
25
|
-
result: Result;
|
|
26
|
-
valueAlias?: ValueAlias;
|
|
27
|
-
xAxisFormat: FormatType;
|
|
28
|
-
xAxisPostfix: string;
|
|
29
|
-
xAxisPrefix: string;
|
|
30
|
-
yAxisFormat: FormatType;
|
|
31
|
-
yAxisPostfix: string;
|
|
32
|
-
yAxisPrefix: string;
|
|
33
|
-
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
34
|
-
zFieldId: string;
|
|
35
|
-
quadrantsAttributes?: Component.Quadrant.Rule;
|
|
36
|
-
}
|
|
37
|
-
export declare const buildBubbleChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, goalLineAttributes, nullValue, numberFormatOptions, order, pivotConfig, result, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxYAxisLabelCount, valueAlias, zFieldId, quadrantsAttributes, }: buildBubbleChartRepresentationArgs) => BubbleChartRepresentation;
|
|
38
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DataItem, KeyId } from '../BubbleChart/types';
|
|
2
|
-
export type AcceptedTrendTimeUnit = 'week' | 'quarter' | 'year' | 'month';
|
|
3
|
-
interface getTrendArgs {
|
|
4
|
-
data: Array<{
|
|
5
|
-
[key: KeyId]: DataItem;
|
|
6
|
-
}>;
|
|
7
|
-
forecastUnits: number;
|
|
8
|
-
xKey: string;
|
|
9
|
-
yKey: string;
|
|
10
|
-
timeUnit: AcceptedTrendTimeUnit;
|
|
11
|
-
includeForecast: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const buildTrendAndForecast: ({ data, forecastUnits, xKey, yKey, timeUnit, includeForecast }: getTrendArgs) => {
|
|
14
|
-
trendData: {
|
|
15
|
-
date: string;
|
|
16
|
-
value: number;
|
|
17
|
-
}[];
|
|
18
|
-
trendKey: string;
|
|
19
|
-
forecastData: {
|
|
20
|
-
date: string;
|
|
21
|
-
value: number;
|
|
22
|
-
}[];
|
|
23
|
-
forecastKey: string;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ConditionalFormattingRule } from './types';
|
|
2
|
-
import { Component } from '../Component/types';
|
|
3
|
-
interface getConditionalFormattingArgs {
|
|
4
|
-
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
5
|
-
}
|
|
6
|
-
export declare const getConditionalFormatting: ({ conditionalFormattingAttributes, }: getConditionalFormattingArgs) => ConditionalFormattingRule[];
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GoalLine } from './types';
|
|
2
|
-
import { Component } from '../Component/types';
|
|
3
|
-
interface getGoalLinesArgs {
|
|
4
|
-
goalLineAttributes: Component.GoalLine.Rule[];
|
|
5
|
-
formattingFunctionY: (value: any) => string;
|
|
6
|
-
}
|
|
7
|
-
export declare const getGoalLines: ({ goalLineAttributes, formattingFunctionY }: getGoalLinesArgs) => GoalLine[];
|
|
8
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DataType } from '../Field/types';
|
|
2
|
-
import { FormattedResult } from '../Result/types';
|
|
3
|
-
import { GoalLine } from './types';
|
|
4
|
-
export declare const getMinAndMax: ({ data, keys, dataType, goalLines, }: {
|
|
5
|
-
data: FormattedResult["contentMapped"];
|
|
6
|
-
keys: Array<string>;
|
|
7
|
-
dataType: DataType;
|
|
8
|
-
goalLines?: GoalLine[];
|
|
9
|
-
}) => {
|
|
10
|
-
max: null;
|
|
11
|
-
min: null;
|
|
12
|
-
} | {
|
|
13
|
-
max: number;
|
|
14
|
-
min: number;
|
|
15
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { KeyId, GoalLine } from './types';
|
|
2
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
-
import { DataType } from '../Field/types';
|
|
4
|
-
import { FormattedResult } from '../Result/types';
|
|
5
|
-
import { Tick } from '../ChartsV2/types';
|
|
6
|
-
import { ApproxAxisLabelCount } from '../../../shared-logic/src/Component/types';
|
|
7
|
-
type FormattingFunction = (value: any, nullValueAlias?: string) => string;
|
|
8
|
-
interface getScaleAndTicksArgs {
|
|
9
|
-
data: FormattedResult['contentMapped'];
|
|
10
|
-
xKey: string | null;
|
|
11
|
-
xScaleDataType: DataType;
|
|
12
|
-
yKeys: string[];
|
|
13
|
-
nullValue: string | undefined;
|
|
14
|
-
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
15
|
-
formattingFunctionX: FormattingFunction;
|
|
16
|
-
formattingFunctionY: FormattingFunction;
|
|
17
|
-
order: QueryAttributes.Order[];
|
|
18
|
-
goalLines: GoalLine[];
|
|
19
|
-
}
|
|
20
|
-
interface getScaleAndTicksReturn {
|
|
21
|
-
x: {
|
|
22
|
-
ticks: Array<Tick<Date | string | number>>;
|
|
23
|
-
scale: {
|
|
24
|
-
max: number | Date | null;
|
|
25
|
-
min: number | Date | null;
|
|
26
|
-
key: KeyId | null;
|
|
27
|
-
ordering: 'asc' | 'desc' | null;
|
|
28
|
-
dataType: DataType;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
y: {
|
|
32
|
-
ticks: Array<Tick<number>>;
|
|
33
|
-
scale: {
|
|
34
|
-
max: number;
|
|
35
|
-
min: number;
|
|
36
|
-
key: string | null;
|
|
37
|
-
ordering: 'asc' | 'desc';
|
|
38
|
-
dataType: 'number';
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, approxYAxisLabelCount, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
|
|
43
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { LegendItem } from './types';
|
|
3
|
-
interface getStyleDefinitionArgs {
|
|
4
|
-
colors: CSSProperties['color'][];
|
|
5
|
-
yKeys: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare const getStyleDefinition: ({ colors, yKeys }: getStyleDefinitionArgs) => LegendItem[];
|
|
8
|
-
export {};
|