@e-llm-studio/federated-dashboard-components 2.2.12 → 2.2.13-rca-alpha-2
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/README.md +3 -0
- package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/ExecutiveDashboard/api/dashboardApi.js +1 -1
- package/dist/ExecutiveDashboard/api/insightsApi.js +2 -0
- package/dist/ExecutiveDashboard/api/insightsApi.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js +2 -0
- package/dist/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js +2 -0
- package/dist/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js.map +1 -0
- package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/axisDomain.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/axisDomain.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Graph/inlineLabels.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/inlineLabels.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/AgCharts.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/AgCharts.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/AgReport.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/AgReport.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/DrillLevel.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/DrillLevel.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/DrillTable.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/DrillTable.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/DriverActivity.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/DriverActivity.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/FilterNotice.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/FilterNotice.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/KpiChart.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/KpiChart.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/L1Report.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/L1Report.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/RowDetail.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/RowDetail.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/drillDay.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/drillDay.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsErrors.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsErrors.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsFilters.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsFilters.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsFormat.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsFormat.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js.map +1 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js +2 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js.map +1 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js +2 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js.map +1 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js +2 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js.map +1 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js +2 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js.map +1 -0
- package/dist/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js +2 -0
- package/dist/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js.map +1 -0
- package/dist/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
- package/dist/ExecutiveDashboard/components/Table/FTable.js +1 -1
- package/dist/ExecutiveDashboard/utils/sectionOrder.js +1 -1
- package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js +1 -1
- package/dist/cjs/ExecutiveDashboard/api/insightsApi.js +2 -0
- package/dist/cjs/ExecutiveDashboard/api/insightsApi.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/axisDomain.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/axisDomain.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/inlineLabels.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/inlineLabels.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DrillLevel.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DrillLevel.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DrillTable.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DrillTable.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DriverActivity.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DriverActivity.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/FilterNotice.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/FilterNotice.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/KpiChart.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/KpiChart.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/drillDay.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/drillDay.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsErrors.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsErrors.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFilters.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFilters.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFormat.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFormat.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Table/FTable.js +1 -1
- package/dist/cjs/ExecutiveDashboard/utils/sectionOrder.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts +10 -2
- package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts +200 -0
- package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts +5 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.d.ts +9 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts +47 -2
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.d.ts +7 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts +12 -1
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.d.ts +10 -0
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessMessage.d.ts +18 -0
- package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessMessage.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.d.ts +16 -0
- package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +45 -2
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts +11 -1
- package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts +6 -1
- package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/axisDomain.d.ts +24 -0
- package/dist/types/ExecutiveDashboard/components/Graph/axisDomain.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Graph/inlineLabels.d.ts +49 -0
- package/dist/types/ExecutiveDashboard/components/Graph/inlineLabels.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts +85 -0
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts +74 -0
- package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts +160 -0
- package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts +6 -0
- package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts +65 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DrillLevel.d.ts +35 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DrillLevel.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DrillTable.d.ts +29 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DrillTable.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DriverActivity.d.ts +10 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DriverActivity.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/FilterNotice.d.ts +7 -0
- package/dist/types/ExecutiveDashboard/components/Insights/FilterNotice.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts +73 -0
- package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/KpiChart.d.ts +128 -0
- package/dist/types/ExecutiveDashboard/components/Insights/KpiChart.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts +41 -0
- package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts +27 -0
- package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts +13 -0
- package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts +21 -0
- package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts +176 -0
- package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/drillDay.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/Insights/drillDay.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts +128 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsErrors.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsErrors.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsFilters.d.ts +9 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsFilters.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsFormat.d.ts +92 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsFormat.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts +85 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.d.ts +24 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.d.ts +9 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.d.ts +25 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/index.d.ts +5 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/index.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.d.ts +54 -0
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts +13 -2
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts +46 -2
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Table/FTable.d.ts +2 -0
- package/dist/types/ExecutiveDashboard/components/Table/FTable.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/types/index.d.ts +122 -2
- package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/types/insights.d.ts +893 -0
- package/dist/types/ExecutiveDashboard/types/insights.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/utils/sectionOrder.d.ts.map +1 -1
- package/dist/types/index.d.ts +20 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,893 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Decision Advantage (insights) contract: the parts of the UI config the
|
|
4
|
+
* dashboard reads, and the /federated/insights responses, with their exact
|
|
5
|
+
* wire names.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* How the owner wants a number written (`ui.insights.kpis[].format`), the
|
|
9
|
+
* same settings the backend's sentences use: `{prefix: "$", compact: true,
|
|
10
|
+
* decimals: 1}` is "$24.1M", `{suffix: " lbs", compact: true}` "138.6M lbs".
|
|
11
|
+
*/
|
|
12
|
+
export interface InsightsKpiFormat {
|
|
13
|
+
prefix?: string;
|
|
14
|
+
suffix?: string;
|
|
15
|
+
decimals?: number;
|
|
16
|
+
/** K, M, B */
|
|
17
|
+
compact?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** One watched number in `ui.insights.kpis`. Its `kpiId` is the graph series key. */
|
|
20
|
+
export interface InsightsKpiConfig {
|
|
21
|
+
kpiId: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
tier?: number;
|
|
24
|
+
column?: string;
|
|
25
|
+
goodDirection?: "up" | "down";
|
|
26
|
+
/** Without one, the number is shown as it always was. */
|
|
27
|
+
format?: InsightsKpiFormat;
|
|
28
|
+
}
|
|
29
|
+
/** One period of the dashboard (`ui.insights.grain`). */
|
|
30
|
+
export type InsightsGrain = "day" | "week" | "month" | "quarter";
|
|
31
|
+
export interface InsightsEntityConfig {
|
|
32
|
+
entityKey: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
/** Display plural supplied by the dashboard owner; never infer English plurals. */
|
|
35
|
+
pluralName?: string;
|
|
36
|
+
kpis?: string[];
|
|
37
|
+
parentEntityKeys?: string[];
|
|
38
|
+
/** The source column a row's value comes from. */
|
|
39
|
+
splitBy?: string | null;
|
|
40
|
+
/** The source column holding a row's name; a Table Builder table inside a drill-down is filtered on it. */
|
|
41
|
+
labelColumn?: string | null;
|
|
42
|
+
}
|
|
43
|
+
export interface InsightsLevelConfig {
|
|
44
|
+
level: number;
|
|
45
|
+
entities?: InsightsEntityConfig[];
|
|
46
|
+
}
|
|
47
|
+
/** `ui.insights`, as saved by the dashboard builder. Only what the dashboard reads is typed. */
|
|
48
|
+
export interface InsightsUiConfig {
|
|
49
|
+
enabled?: boolean | string;
|
|
50
|
+
kpis?: InsightsKpiConfig[];
|
|
51
|
+
hierarchy?: InsightsLevelConfig[];
|
|
52
|
+
analysis?: {
|
|
53
|
+
outliers?: {
|
|
54
|
+
minReasonLength?: number;
|
|
55
|
+
};
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
};
|
|
58
|
+
/** A day when missing. */
|
|
59
|
+
grain?: InsightsGrain | string;
|
|
60
|
+
[key: string]: unknown;
|
|
61
|
+
}
|
|
62
|
+
export type DrillColumn = {
|
|
63
|
+
/** Unique id is useful for custom columns; key identifies built-in sources. */
|
|
64
|
+
id?: string;
|
|
65
|
+
key?: string;
|
|
66
|
+
source: "kpi" | "field" | "children" | "attribute" | "custom" | "row";
|
|
67
|
+
label?: string;
|
|
68
|
+
format?: "number" | "percent" | "rating" | "count" | "text" | "date" | "chip";
|
|
69
|
+
show?: "value" | "delta" | "both";
|
|
70
|
+
sortable?: boolean;
|
|
71
|
+
align?: "left" | "center" | "right";
|
|
72
|
+
width?: number | string;
|
|
73
|
+
hideBelow?: "sm" | "md";
|
|
74
|
+
emptyText?: string;
|
|
75
|
+
/** Required for `children`; the API returns only this part's children. */
|
|
76
|
+
childEntityKey?: string;
|
|
77
|
+
max?: number;
|
|
78
|
+
/** Table Builder columns only: kept in the row (buttons can use it) but not shown. */
|
|
79
|
+
hidden?: boolean;
|
|
80
|
+
};
|
|
81
|
+
export type DrillClickAction = "none" | "drill" | "report";
|
|
82
|
+
export type DrillWidth = "full" | "column";
|
|
83
|
+
/** insights: rows of a drill-down part, with their changes · table: a Table Builder table run through /filters/table-data. */
|
|
84
|
+
export type DrillSource = "insights" | "table";
|
|
85
|
+
/** Which open rows filter a table: every row of the breadcrumb, the opened row only, or none. */
|
|
86
|
+
export type DrillFilterBy = "trail" | "row" | "none";
|
|
87
|
+
/** Which days apply: the opened report's day, or the dates picked on the dashboard. */
|
|
88
|
+
export type DrillPeriod = "day" | "range";
|
|
89
|
+
/**
|
|
90
|
+
* A button on every row of a drill table. `url`, `headers`, `body` and
|
|
91
|
+
* `confirm` take {placeholders}: a row value (`{gap}`, `{metrics.utdd_rating.value}`),
|
|
92
|
+
* the popup (`{context.row}`, `{context.parent}`, `{context.trail.<part>}`,
|
|
93
|
+
* `{context.day}`, `{context.startDate}`, `{context.endDate}`) or an answer
|
|
94
|
+
* (`{input.<key>}`).
|
|
95
|
+
*/
|
|
96
|
+
export interface DrillButton {
|
|
97
|
+
id?: string;
|
|
98
|
+
label: string;
|
|
99
|
+
icon?: string;
|
|
100
|
+
/** open: an https or mailto link · call: the configured API · host: a function the host app registered. */
|
|
101
|
+
type: "open" | "call" | "host";
|
|
102
|
+
url?: string;
|
|
103
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
104
|
+
headers?: Record<string, string>;
|
|
105
|
+
body?: unknown;
|
|
106
|
+
/** call: questions asked before the call, answered as {input.<key>}. */
|
|
107
|
+
ask?: {
|
|
108
|
+
key: string;
|
|
109
|
+
label: string;
|
|
110
|
+
}[];
|
|
111
|
+
handler?: string;
|
|
112
|
+
/** Shown only when this row value is present. */
|
|
113
|
+
when?: string;
|
|
114
|
+
confirm?: string;
|
|
115
|
+
adminOnly?: boolean;
|
|
116
|
+
}
|
|
117
|
+
/** What one list of a drill table shows. Two or more lists in a table show as a switcher. */
|
|
118
|
+
export interface DrillTableViewConfig {
|
|
119
|
+
/** Absent means insights rows. */
|
|
120
|
+
source?: DrillSource;
|
|
121
|
+
/** insights: the part listed. */
|
|
122
|
+
entityKey?: string;
|
|
123
|
+
/** table: the Table Builder table. */
|
|
124
|
+
tableKey?: string;
|
|
125
|
+
/** Switcher label; defaults to the part's plural or the table's title. */
|
|
126
|
+
title?: string;
|
|
127
|
+
/** insights: the columns · table: overrides of the Table Builder columns (listed first, the rest follow). */
|
|
128
|
+
columns?: DrillColumn[];
|
|
129
|
+
onRowClick?: DrillClickAction;
|
|
130
|
+
filterBy?: DrillFilterBy;
|
|
131
|
+
period?: DrillPeriod;
|
|
132
|
+
buttons?: DrillButton[];
|
|
133
|
+
/** @deprecated Saved before `filterBy`; "row" is read as filterBy "row". */
|
|
134
|
+
scope?: "breadcrumb" | "row";
|
|
135
|
+
}
|
|
136
|
+
export interface DrillTableConfig {
|
|
137
|
+
id?: string;
|
|
138
|
+
title?: string;
|
|
139
|
+
search?: boolean;
|
|
140
|
+
pageSize?: number;
|
|
141
|
+
width?: DrillWidth;
|
|
142
|
+
defaultSort?: {
|
|
143
|
+
key: string;
|
|
144
|
+
order: "asc" | "desc";
|
|
145
|
+
};
|
|
146
|
+
/** A tab's table: what it lists (its views are not used). */
|
|
147
|
+
source?: DrillSource;
|
|
148
|
+
tableKey?: string;
|
|
149
|
+
filterBy?: DrillFilterBy;
|
|
150
|
+
period?: DrillPeriod;
|
|
151
|
+
columns?: DrillColumn[];
|
|
152
|
+
buttons?: DrillButton[];
|
|
153
|
+
/** A drill level's table: the lists it switches between. */
|
|
154
|
+
views?: DrillTableViewConfig[];
|
|
155
|
+
onRowClick?: DrillClickAction;
|
|
156
|
+
}
|
|
157
|
+
/** A Table Builder table as the dashboard config saves it, for drill tables that show one. */
|
|
158
|
+
export interface DrillTableSourceConfig {
|
|
159
|
+
key: string;
|
|
160
|
+
title?: string;
|
|
161
|
+
columns?: {
|
|
162
|
+
key: string;
|
|
163
|
+
label?: string;
|
|
164
|
+
sortable?: boolean;
|
|
165
|
+
}[];
|
|
166
|
+
showIn?: "dashboard" | "drilldown" | "both";
|
|
167
|
+
}
|
|
168
|
+
/** A pill colour the dashboard palette defines. */
|
|
169
|
+
export type InsightsTone = "good" | "warning" | "bad" | "info" | "neutral";
|
|
170
|
+
/** What a host cell renderer is given. `row` is set for drill-down rows; `record` for every row (a Table Builder row is only a record). */
|
|
171
|
+
export interface InsightsCellContext {
|
|
172
|
+
column: DrillColumn;
|
|
173
|
+
/** The cell's raw value. */
|
|
174
|
+
value: unknown;
|
|
175
|
+
record: Record<string, unknown>;
|
|
176
|
+
row?: InsightsRow;
|
|
177
|
+
/** The part listed (drill-down rows). */
|
|
178
|
+
entityKey?: string;
|
|
179
|
+
/** The Table Builder table listed. */
|
|
180
|
+
tableKey?: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* How the host app wants one column drawn, keyed in `insightsCellRenderers`
|
|
184
|
+
* by `"<tableKey or entityKey>.<columnKey>"` or by `"<columnKey>"` for every
|
|
185
|
+
* table. The most specific key wins; config formats apply when none matches.
|
|
186
|
+
*/
|
|
187
|
+
export interface InsightsCellRenderer {
|
|
188
|
+
/** Draw the value as plain text, a pill, a number, a date, or a link (the value is the URL). */
|
|
189
|
+
as?: "text" | "chip" | "number" | "percent" | "rating" | "date" | "link";
|
|
190
|
+
/** Pill colours by value, matched ignoring case and spaces: a palette tone or explicit colours. Other values stay neutral. */
|
|
191
|
+
colors?: Record<string, InsightsTone | {
|
|
192
|
+
background: string;
|
|
193
|
+
color: string;
|
|
194
|
+
border?: string;
|
|
195
|
+
}>;
|
|
196
|
+
/** Extra class on the cell. */
|
|
197
|
+
className?: string;
|
|
198
|
+
/** Full control: return a node, or undefined to fall back to the rules above. */
|
|
199
|
+
render?: (context: InsightsCellContext) => React.ReactNode | undefined;
|
|
200
|
+
}
|
|
201
|
+
/** Host functions that `host` buttons run, by name. The returned message is shown to the viewer. */
|
|
202
|
+
export type InsightsActionHandlers = Record<string, (args: {
|
|
203
|
+
button: DrillButton;
|
|
204
|
+
row: Record<string, unknown>;
|
|
205
|
+
context: Record<string, unknown>;
|
|
206
|
+
inputs: Record<string, string>;
|
|
207
|
+
}) => Promise<{
|
|
208
|
+
message?: string;
|
|
209
|
+
} | void> | {
|
|
210
|
+
message?: string;
|
|
211
|
+
} | void>;
|
|
212
|
+
export interface DrillLevelConfig {
|
|
213
|
+
id: string;
|
|
214
|
+
match: {
|
|
215
|
+
entityKey: string;
|
|
216
|
+
within?: string[];
|
|
217
|
+
};
|
|
218
|
+
panels: Array<"summary" | "decision" | "topDrivers" | "trend" | "activity" | "correlation" | "numbers">;
|
|
219
|
+
tables?: DrillTableConfig[];
|
|
220
|
+
}
|
|
221
|
+
/** The complete host-overridable drill model. */
|
|
222
|
+
export interface DrillConfig {
|
|
223
|
+
tabTables?: Record<string, DrillTableConfig | undefined>;
|
|
224
|
+
levels?: DrillLevelConfig[];
|
|
225
|
+
}
|
|
226
|
+
/** @deprecated Use `DrillTableConfig` and `DrillLevelConfig`. */
|
|
227
|
+
export interface InsightsDrillTableConfig {
|
|
228
|
+
popupEntityKeys?: string[];
|
|
229
|
+
parts?: Record<string, string[]>;
|
|
230
|
+
clickableEntityKeys?: string[];
|
|
231
|
+
}
|
|
232
|
+
export interface InsightsLabels {
|
|
233
|
+
/** The headline number's chart in a drill-down or report ("Trend"). */
|
|
234
|
+
trendTitle: string;
|
|
235
|
+
/** The L1 trend card's title and line under it; `{kpi}` is the headline number ("{kpi} trend"). */
|
|
236
|
+
trendCardTitle: string;
|
|
237
|
+
trendCardSubtitle: string;
|
|
238
|
+
/** A heading over the L1 trend chart; none when empty (the default). */
|
|
239
|
+
trendChartTitle: string;
|
|
240
|
+
activityTitle: string;
|
|
241
|
+
activityColumn: string;
|
|
242
|
+
platformScope: string;
|
|
243
|
+
correlationTitle: string;
|
|
244
|
+
correlationSubtitle: string;
|
|
245
|
+
visualsTitle: string;
|
|
246
|
+
analysisTitle: string;
|
|
247
|
+
driverCategory: string;
|
|
248
|
+
driversTab: string;
|
|
249
|
+
headwindsTab: string;
|
|
250
|
+
attentionTab: string;
|
|
251
|
+
shareLine: string;
|
|
252
|
+
movedWith: string;
|
|
253
|
+
movedOpposite: string;
|
|
254
|
+
previousDay: {
|
|
255
|
+
working: string;
|
|
256
|
+
weekend: string;
|
|
257
|
+
};
|
|
258
|
+
drillTableTitle: string;
|
|
259
|
+
decisionAdvantageTitle: string;
|
|
260
|
+
}
|
|
261
|
+
/** One insights tab in `ui.decisionAdvantage.tabs.items`. */
|
|
262
|
+
export interface InsightTabConfig {
|
|
263
|
+
/** The drill-down part this tab lists; the `entity_key` of the /levels routes. */
|
|
264
|
+
entityKey: string;
|
|
265
|
+
title?: string;
|
|
266
|
+
/** Number the list is sorted by when the tab opens. */
|
|
267
|
+
rankBy?: string | null;
|
|
268
|
+
/** Numbers shown beside each row. */
|
|
269
|
+
listKpis?: string[];
|
|
270
|
+
/** Numbers drawn on the tab's Tier 1 and Tier 2 charts. */
|
|
271
|
+
tier1Kpis?: string[];
|
|
272
|
+
tier2Kpis?: string[];
|
|
273
|
+
/** Rows before Load more. */
|
|
274
|
+
pageSize?: number | null;
|
|
275
|
+
/** The part's own Decision Advantage card at the top of the tab. */
|
|
276
|
+
showSummary?: boolean;
|
|
277
|
+
/** Issue, status and assignee on each row. */
|
|
278
|
+
trackActions?: boolean;
|
|
279
|
+
view?: "trend" | "evidence";
|
|
280
|
+
/** Absent means no table. */
|
|
281
|
+
table?: DrillTableConfig;
|
|
282
|
+
/** @deprecated Converted only for legacy hosts; use `table`. */
|
|
283
|
+
drillTable?: {
|
|
284
|
+
enabled?: boolean;
|
|
285
|
+
defaultSort?: {
|
|
286
|
+
key: string;
|
|
287
|
+
order: "asc" | "desc";
|
|
288
|
+
};
|
|
289
|
+
columns?: DrillColumn[];
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
/** One chart's settings in `ui.decisionAdvantage.trendChart` (tier 1 `primary`, tier 2 `secondary`). */
|
|
293
|
+
export interface DaChartSectionConfig {
|
|
294
|
+
/** Heading over the chart. */
|
|
295
|
+
title?: string;
|
|
296
|
+
/** Axis titles; default: the KPIs on that side with their unit, "EBITDA ($M)". */
|
|
297
|
+
yAxisLabel?: string;
|
|
298
|
+
rightAxisLabel?: string;
|
|
299
|
+
/** KPIs on the chart at load, in order: the first unit takes the left axis, the second the right. */
|
|
300
|
+
defaultKpis?: string[];
|
|
301
|
+
/** KPIs whose 3/6/12-period averages can be added in "Select KPIs"; default: the headline KPI on the tier 1 chart, none on tier 2. */
|
|
302
|
+
averageKpis?: string[];
|
|
303
|
+
/** Average lines on at load, per KPI. */
|
|
304
|
+
defaultAverages?: Record<string, Array<"fast" | "slow" | "long">>;
|
|
305
|
+
/** Groups in "Select KPIs" ("Profitability", "Operations"); default one group with every KPI. */
|
|
306
|
+
groups?: {
|
|
307
|
+
label: string;
|
|
308
|
+
kpis: string[];
|
|
309
|
+
}[];
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* `ui.decisionAdvantage.trendChart`: two y-axes (one unit each) with a
|
|
313
|
+
* "Select KPIs" dropdown on the tier 1 and tier 2 charts and the correlation
|
|
314
|
+
* chart. Opt-in: without `dualAxis` the charts are as they always were.
|
|
315
|
+
*/
|
|
316
|
+
export interface DaTrendChartConfig {
|
|
317
|
+
dualAxis?: boolean;
|
|
318
|
+
/** KPIs on one chart at once; default 5. */
|
|
319
|
+
maxKpis?: number;
|
|
320
|
+
/**
|
|
321
|
+
* Names written along the lines: "none" (default) no names on the chart, the legend names every line; "headline"
|
|
322
|
+
* only the headline KPI's line (EBITDA); "all" every KPI line and driver row. Dashed average lines are never named
|
|
323
|
+
* on the chart.
|
|
324
|
+
*/
|
|
325
|
+
seriesNames?: "none" | "headline" | "all";
|
|
326
|
+
primary?: DaChartSectionConfig;
|
|
327
|
+
secondary?: DaChartSectionConfig;
|
|
328
|
+
/** The correlation chart: the driver KPIs shown at load (its "Select KPIs" lists the headline's drivers). */
|
|
329
|
+
correlation?: {
|
|
330
|
+
defaultKpis?: string[];
|
|
331
|
+
maxKpis?: number;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* A colour per KPI id (`{ "ebitda": "#085491" }`): its line in every chart, its averages and its swatches, whatever
|
|
335
|
+
* order the KPIs are listed in. Wins over `palette`. Keep green and red out: they mark the Up and Down points.
|
|
336
|
+
*/
|
|
337
|
+
colors?: Record<string, string>;
|
|
338
|
+
/**
|
|
339
|
+
* Line colours in order: a KPI missing from `colors` takes the one at its place in `ui.insights.kpis`, and rows
|
|
340
|
+
* (plants, regions…) drawn on a trend take them in turn. Unset: the built-in set, which has no green or red.
|
|
341
|
+
*/
|
|
342
|
+
palette?: string[];
|
|
343
|
+
/**
|
|
344
|
+
* The numbers on the points. Their circles always show Up / Down / Same; the
|
|
345
|
+
* numbers take their line's colour (or their axis's, `colorBy: "axis"`), so a
|
|
346
|
+
* reader can tell which line belongs to which side. Hovering an axis fades
|
|
347
|
+
* the other axis's lines.
|
|
348
|
+
*/
|
|
349
|
+
valueLabels?: {
|
|
350
|
+
/** "line" (default): each number in its own line's colour, and an axis in the colour of its first KPI; "axis": one colour per side (`leftColor`, `rightColor`). */
|
|
351
|
+
colorBy?: "axis" | "line";
|
|
352
|
+
leftColor?: string;
|
|
353
|
+
rightColor?: string;
|
|
354
|
+
/** Write the unit on each number ("$98.4M", "138.6M lbs"), the default; false: the axis's scaled figure ("98.4"). */
|
|
355
|
+
showUnits?: boolean;
|
|
356
|
+
/** "first" (default): the first KPI on each side is labelled; "all": every KPI line (averages never). */
|
|
357
|
+
series?: "first" | "all";
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
/** `ui.decisionAdvantage`: the overall card and the insights tabs. */
|
|
361
|
+
export interface DecisionAdvantageUiConfig {
|
|
362
|
+
trendChart?: DaTrendChartConfig;
|
|
363
|
+
rootCauseTags?: DaRootCauseTagsConfig;
|
|
364
|
+
/**
|
|
365
|
+
* How Root Cause items look. `cards`: each in its own box, titled by the row it names ("1. Butler Bakery") with its
|
|
366
|
+
* tag beside the title, and View More for its explanation. Absent or `list`: the numbered list as before.
|
|
367
|
+
*/
|
|
368
|
+
rootCauseLayout?: "list" | "cards";
|
|
369
|
+
summaryCard?: {
|
|
370
|
+
layoutKey?: string;
|
|
371
|
+
enabled?: boolean;
|
|
372
|
+
title?: string;
|
|
373
|
+
};
|
|
374
|
+
tabs?: {
|
|
375
|
+
layoutKey?: string;
|
|
376
|
+
items?: InsightTabConfig[];
|
|
377
|
+
};
|
|
378
|
+
drillLevels?: DrillLevelConfig[];
|
|
379
|
+
/**
|
|
380
|
+
* `parts`: the L1 list shows the strongest row of each of these parts, in
|
|
381
|
+
* this order ("Top Plant, Top Region, Top Business unit") instead of the
|
|
382
|
+
* rows of one level. A row's own drivers are not affected.
|
|
383
|
+
*/
|
|
384
|
+
topDrivers?: {
|
|
385
|
+
partFilter?: boolean;
|
|
386
|
+
parts?: string[];
|
|
387
|
+
};
|
|
388
|
+
labels?: Partial<InsightsLabels>;
|
|
389
|
+
tierTitles?: Partial<Record<1 | 2, string>>;
|
|
390
|
+
limits?: {
|
|
391
|
+
topRows?: number;
|
|
392
|
+
driverPage?: number;
|
|
393
|
+
includeChildren?: number;
|
|
394
|
+
maxGraphed?: number;
|
|
395
|
+
};
|
|
396
|
+
/** @deprecated Legacy inference config. */
|
|
397
|
+
drillTable?: InsightsDrillTableConfig;
|
|
398
|
+
}
|
|
399
|
+
export type InsightsCriticality = "Low" | "Medium" | "High" | "Critical";
|
|
400
|
+
export interface InsightsPeriod {
|
|
401
|
+
/** YYYY-MM-DD */
|
|
402
|
+
start: string;
|
|
403
|
+
end: string;
|
|
404
|
+
/** Sent above a day only: the dashboard's period and its words ("January 2025"). */
|
|
405
|
+
grain?: string;
|
|
406
|
+
label?: string;
|
|
407
|
+
}
|
|
408
|
+
/** What the data behind a response actually covers. */
|
|
409
|
+
export interface InsightsReadContext {
|
|
410
|
+
period: InsightsPeriod;
|
|
411
|
+
/** False when the stored summary covers other days than the range asked for. */
|
|
412
|
+
matchesRange: boolean;
|
|
413
|
+
runType: "preliminary" | "final" | null;
|
|
414
|
+
asOf: string | null;
|
|
415
|
+
/** Filter scope resolved by the backend for this response. */
|
|
416
|
+
filters?: {
|
|
417
|
+
label?: string | null;
|
|
418
|
+
ignored?: Array<string | {
|
|
419
|
+
key?: string | null;
|
|
420
|
+
reason?: string | null;
|
|
421
|
+
}> | null;
|
|
422
|
+
[key: string]: unknown;
|
|
423
|
+
} | null;
|
|
424
|
+
}
|
|
425
|
+
export interface InsightsDecisionEvidence {
|
|
426
|
+
label: string;
|
|
427
|
+
title: string | null;
|
|
428
|
+
description: string | null;
|
|
429
|
+
items: string[];
|
|
430
|
+
highlight: string | null;
|
|
431
|
+
footer: string | null;
|
|
432
|
+
}
|
|
433
|
+
export interface InsightsDecisionReasoning {
|
|
434
|
+
explanation: string | null;
|
|
435
|
+
decisionMakingFactors: string[];
|
|
436
|
+
gapsInDecision: string[];
|
|
437
|
+
evidence: InsightsDecisionEvidence | null;
|
|
438
|
+
score: number | null;
|
|
439
|
+
}
|
|
440
|
+
/** A row named in a report line: make `label` clickable and open the row's report for `dataDay`. */
|
|
441
|
+
export interface InsightsItemLink {
|
|
442
|
+
label: string;
|
|
443
|
+
nodeKey: string;
|
|
444
|
+
entityKey?: string | null;
|
|
445
|
+
dataDay?: string | null;
|
|
446
|
+
}
|
|
447
|
+
export interface InsightsDecisionItem {
|
|
448
|
+
id: string;
|
|
449
|
+
content: string;
|
|
450
|
+
decisioning: InsightsDecisionReasoning | null;
|
|
451
|
+
links?: InsightsItemLink[];
|
|
452
|
+
/** The agent's tag for the item ("Cost pressure"), when the dashboard's guidelines ask for one. */
|
|
453
|
+
tag?: {
|
|
454
|
+
label: string;
|
|
455
|
+
tone?: "good" | "bad" | "neutral";
|
|
456
|
+
};
|
|
457
|
+
/** Citations this item's anchors point to (content, explanation, factors, gaps); numbered from 1 within the item. */
|
|
458
|
+
cited?: {
|
|
459
|
+
citation?: Array<Record<string, any>>;
|
|
460
|
+
} | null;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* `ui.decisionAdvantage.rootCauseTags`: the tags a Root Cause item may carry
|
|
464
|
+
* and their colours. The agent picks one from the dashboard's guidelines; the
|
|
465
|
+
* page shows a tag only when it matches an option (case, spaces, punctuation
|
|
466
|
+
* and a plural "s" ignored, `aliases` too). Without this setting no tags show.
|
|
467
|
+
*/
|
|
468
|
+
export interface DaRootCauseTagsConfig {
|
|
469
|
+
options: {
|
|
470
|
+
label: string;
|
|
471
|
+
tone: "good" | "bad" | "neutral";
|
|
472
|
+
aliases?: string[];
|
|
473
|
+
}[];
|
|
474
|
+
/** A tag that matches no option: shown grey as written (default, so misses stay visible) or hidden (false). */
|
|
475
|
+
showUnknown?: boolean;
|
|
476
|
+
}
|
|
477
|
+
export interface InsightsDecisionSummary {
|
|
478
|
+
/** The verdict, e.g. "Significant change", "Trending down", "No significant change". */
|
|
479
|
+
eyebrow: string;
|
|
480
|
+
/** good (green), bad (red) or neutral, from the headline number's good direction. */
|
|
481
|
+
tone?: "good" | "bad" | "neutral" | string;
|
|
482
|
+
criticality?: InsightsCriticality | null;
|
|
483
|
+
movementType?: InsightsMovementType | string | null;
|
|
484
|
+
movementDirection?: "up" | "down" | string | null;
|
|
485
|
+
headline: string;
|
|
486
|
+
body: string;
|
|
487
|
+
/** Excel-cited reports: the summary's own panel (explanation, factors, gaps), linked like the text. */
|
|
488
|
+
decisioning?: InsightsDecisionReasoning | null;
|
|
489
|
+
/** Citations the anchors of headline, body and the summary panel point to (`<a href="excel_citation$1$…">`), matched by type and citation_number. */
|
|
490
|
+
cited?: {
|
|
491
|
+
citation?: Array<Record<string, any>>;
|
|
492
|
+
} | null;
|
|
493
|
+
}
|
|
494
|
+
export type InsightsReportStatus = "generated" | "waiting" | "none" | "running";
|
|
495
|
+
export interface InsightsReport {
|
|
496
|
+
reportId: string | null;
|
|
497
|
+
reportKind: "dashboard_summary" | "level_summary" | "rca" | null;
|
|
498
|
+
status: InsightsReportStatus;
|
|
499
|
+
title: string;
|
|
500
|
+
/** 0–100 */
|
|
501
|
+
score: number | null;
|
|
502
|
+
summary: InsightsDecisionSummary | null;
|
|
503
|
+
rootCause: InsightsDecisionItem[];
|
|
504
|
+
nextSteps: InsightsDecisionItem[];
|
|
505
|
+
footer: string | null;
|
|
506
|
+
qualityWarning?: string | null;
|
|
507
|
+
/** Level summaries only: how the part's rows were ranked. */
|
|
508
|
+
evidenceNote: string | null;
|
|
509
|
+
generatedAt: string | null;
|
|
510
|
+
commentCount: number;
|
|
511
|
+
}
|
|
512
|
+
export interface InsightsSummaryResponse {
|
|
513
|
+
context: InsightsReadContext;
|
|
514
|
+
report: InsightsReport;
|
|
515
|
+
}
|
|
516
|
+
export type InsightsMovementType = "spike" | "drop" | "fast_mover" | "slow_mover" | "new_entity" | "dormant_entity" | "recovered" | "stable";
|
|
517
|
+
export interface InsightsSeriesMarker {
|
|
518
|
+
movementType: InsightsMovementType | string | null;
|
|
519
|
+
direction: "up" | "down" | string | null;
|
|
520
|
+
criticality: InsightsCriticality | null;
|
|
521
|
+
reportId: string | null;
|
|
522
|
+
headline: string | null;
|
|
523
|
+
}
|
|
524
|
+
export interface InsightsSeriesPoint {
|
|
525
|
+
/** YYYY-MM-DD */
|
|
526
|
+
x: string;
|
|
527
|
+
y: number | null;
|
|
528
|
+
meta: {
|
|
529
|
+
fastMa: number | null;
|
|
530
|
+
slowMa: number | null;
|
|
531
|
+
longMa: number | null;
|
|
532
|
+
dayType: string;
|
|
533
|
+
/** Set only on days the row moved significantly. */
|
|
534
|
+
marker: InsightsSeriesMarker | null;
|
|
535
|
+
substituted?: boolean;
|
|
536
|
+
substitution?: {
|
|
537
|
+
message?: string | null;
|
|
538
|
+
} | null;
|
|
539
|
+
commentCount?: number;
|
|
540
|
+
excludedCount?: number;
|
|
541
|
+
pendingCount?: number;
|
|
542
|
+
flaggedCount?: number;
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
export interface InsightsSeriesItem {
|
|
546
|
+
/** "root" is the L1 total. */
|
|
547
|
+
nodeKey: string;
|
|
548
|
+
label: string | null;
|
|
549
|
+
kpiId: string;
|
|
550
|
+
points: InsightsSeriesPoint[];
|
|
551
|
+
}
|
|
552
|
+
export interface InsightsSeriesResponse {
|
|
553
|
+
context: InsightsReadContext;
|
|
554
|
+
series: InsightsSeriesItem[];
|
|
555
|
+
}
|
|
556
|
+
export interface InsightsRowMetric {
|
|
557
|
+
value: number | null;
|
|
558
|
+
/** The previous period of the same length. */
|
|
559
|
+
previous: number | null;
|
|
560
|
+
deltaPct: number | null;
|
|
561
|
+
isRangeExact: boolean;
|
|
562
|
+
direction?: "up" | "down" | "flat" | string | null;
|
|
563
|
+
tone?: "good" | "bad" | "neutral" | string | null;
|
|
564
|
+
}
|
|
565
|
+
export interface InsightsRowChip {
|
|
566
|
+
criticality: InsightsCriticality | null;
|
|
567
|
+
movementType: string | null;
|
|
568
|
+
direction: string | null;
|
|
569
|
+
label: string | null;
|
|
570
|
+
/** Day and number the chip comes from, when the backend sends them. */
|
|
571
|
+
dataDay?: string | null;
|
|
572
|
+
kpiId?: string | null;
|
|
573
|
+
}
|
|
574
|
+
export interface InsightsAction {
|
|
575
|
+
issueId: string | null;
|
|
576
|
+
issueUrl: string | null;
|
|
577
|
+
status: InsightsActionStatus | string;
|
|
578
|
+
assigneeName: string | null;
|
|
579
|
+
assigneeEmail: string | null;
|
|
580
|
+
}
|
|
581
|
+
export type InsightsActionStatus = "open" | "in_progress" | "resolved" | "wont_fix";
|
|
582
|
+
export interface InsightsRowChild {
|
|
583
|
+
nodeKey: string;
|
|
584
|
+
label: string | null;
|
|
585
|
+
metrics: Record<string, InsightsRowMetric>;
|
|
586
|
+
}
|
|
587
|
+
export interface InsightsRow {
|
|
588
|
+
rank: number;
|
|
589
|
+
nodeKey: string;
|
|
590
|
+
label: string | null;
|
|
591
|
+
parent: {
|
|
592
|
+
nodeKey: string | null;
|
|
593
|
+
label: string | null;
|
|
594
|
+
} | null;
|
|
595
|
+
metrics: Record<string, InsightsRowMetric>;
|
|
596
|
+
/** 0–100, against the top value of the sort number. */
|
|
597
|
+
barPct: number | null;
|
|
598
|
+
chip: InsightsRowChip | null;
|
|
599
|
+
report: {
|
|
600
|
+
reportId: string | null;
|
|
601
|
+
status: "generated" | "none" | "running";
|
|
602
|
+
kpiId?: string | null;
|
|
603
|
+
};
|
|
604
|
+
action: InsightsAction | null;
|
|
605
|
+
children: InsightsRowChild[];
|
|
606
|
+
/** Present on rows adapted from cross-part `/top-drivers` results. */
|
|
607
|
+
entityKey?: string | null;
|
|
608
|
+
value?: number | null;
|
|
609
|
+
count?: number | null;
|
|
610
|
+
sharePct?: number | null;
|
|
611
|
+
firstSeen?: string | null;
|
|
612
|
+
daysSeen7?: number | null;
|
|
613
|
+
status?: string | null;
|
|
614
|
+
}
|
|
615
|
+
export interface InsightsRowsResponse {
|
|
616
|
+
context: InsightsReadContext;
|
|
617
|
+
rows: InsightsRow[];
|
|
618
|
+
count: number;
|
|
619
|
+
hasNext: boolean;
|
|
620
|
+
nextCursor: string | null;
|
|
621
|
+
}
|
|
622
|
+
export interface InsightsRowsQuery {
|
|
623
|
+
sort?: string;
|
|
624
|
+
order?: "asc" | "desc";
|
|
625
|
+
search?: string;
|
|
626
|
+
parentNodeKey?: string;
|
|
627
|
+
includeChildren?: number;
|
|
628
|
+
childEntityKey?: string;
|
|
629
|
+
/** Comma-separated breadcrumb node keys for the scoped-rows API. */
|
|
630
|
+
scope?: string;
|
|
631
|
+
pageSize?: number;
|
|
632
|
+
cursor?: string;
|
|
633
|
+
}
|
|
634
|
+
export interface InsightsReportDetail {
|
|
635
|
+
report: InsightsReport;
|
|
636
|
+
node: {
|
|
637
|
+
nodeKey: string | null;
|
|
638
|
+
entityKey: string | null;
|
|
639
|
+
label: string | null;
|
|
640
|
+
path: string[];
|
|
641
|
+
} | null;
|
|
642
|
+
period: InsightsPeriod | null;
|
|
643
|
+
markdown: string | null;
|
|
644
|
+
citations: Record<string, unknown>[];
|
|
645
|
+
}
|
|
646
|
+
/** POST reports/generate: the report when it already exists, otherwise a job to poll. */
|
|
647
|
+
export type InsightsGenerateResult = {
|
|
648
|
+
kind: "report";
|
|
649
|
+
report: InsightsReport;
|
|
650
|
+
} | {
|
|
651
|
+
kind: "job";
|
|
652
|
+
jobId: string;
|
|
653
|
+
};
|
|
654
|
+
export interface InsightsJobStatus {
|
|
655
|
+
jobId: string;
|
|
656
|
+
type: string;
|
|
657
|
+
status: "queued" | "running" | "succeeded" | "failed";
|
|
658
|
+
reportId: string | null;
|
|
659
|
+
startedAt: string | null;
|
|
660
|
+
finishedAt: string | null;
|
|
661
|
+
error: string | null;
|
|
662
|
+
}
|
|
663
|
+
export interface InsightsComment {
|
|
664
|
+
id: string;
|
|
665
|
+
parentCommentId: string | null;
|
|
666
|
+
commentText: string | null;
|
|
667
|
+
createdByEmail: string | null;
|
|
668
|
+
createdByName: string | null;
|
|
669
|
+
createdAt: string | null;
|
|
670
|
+
edited: boolean;
|
|
671
|
+
isDeleted: boolean;
|
|
672
|
+
replies: InsightsComment[];
|
|
673
|
+
}
|
|
674
|
+
export interface InsightsCommentList {
|
|
675
|
+
comments: InsightsComment[];
|
|
676
|
+
count: number;
|
|
677
|
+
}
|
|
678
|
+
export interface InsightsActionInput {
|
|
679
|
+
issueId?: string | null;
|
|
680
|
+
issueUrl?: string | null;
|
|
681
|
+
/** null deletes the action. */
|
|
682
|
+
status?: InsightsActionStatus | null;
|
|
683
|
+
assigneeEmail?: string | null;
|
|
684
|
+
assigneeName?: string | null;
|
|
685
|
+
}
|
|
686
|
+
export type InsightsDriversTab = "drivers" | "headwinds" | "attention";
|
|
687
|
+
export type InsightsCorrelationStrength = "high" | "medium" | "low" | "none";
|
|
688
|
+
/** One row of Top Drivers / Headwinds / Needs attention. Percent fields are percentages (46.2 = 46.2%). */
|
|
689
|
+
export interface InsightsDriver {
|
|
690
|
+
rank: number;
|
|
691
|
+
nodeKey: string;
|
|
692
|
+
/** The part this row belongs to (feature, gap, user ...) and its level; absent on an older backend. */
|
|
693
|
+
entityKey?: string | null;
|
|
694
|
+
level?: number | null;
|
|
695
|
+
label: string;
|
|
696
|
+
path: string[];
|
|
697
|
+
/** The headline number on the report day, the day before, and the change. */
|
|
698
|
+
value: number | null;
|
|
699
|
+
previous: number | null;
|
|
700
|
+
deltaPct: number | null;
|
|
701
|
+
/** Share of the day's total movement this row accounts for (signed). */
|
|
702
|
+
deltaContributionPct: number | null;
|
|
703
|
+
/** Moved with the day's headline change, or against it. */
|
|
704
|
+
direction: "with" | "opposite" | null;
|
|
705
|
+
changeDirection: "up" | "down" | "flat" | string | null;
|
|
706
|
+
tone: "good" | "bad" | "neutral" | string | null;
|
|
707
|
+
criticality: InsightsCriticality | null;
|
|
708
|
+
movementType: string | null;
|
|
709
|
+
report: {
|
|
710
|
+
reportId: string | null;
|
|
711
|
+
} | null;
|
|
712
|
+
correlation?: {
|
|
713
|
+
strength?: InsightsCorrelationStrength | Record<string, InsightsCorrelationStrength | null> | null;
|
|
714
|
+
r?: Record<string, number | null>;
|
|
715
|
+
nObs?: number;
|
|
716
|
+
lowHistory?: boolean;
|
|
717
|
+
} | null;
|
|
718
|
+
usageVerdict?: string | null;
|
|
719
|
+
drivingMetric?: string | {
|
|
720
|
+
kpiId: string;
|
|
721
|
+
label?: string | null;
|
|
722
|
+
value: number | null;
|
|
723
|
+
previous?: number | null;
|
|
724
|
+
deltaPct?: number | null;
|
|
725
|
+
direction?: "up" | "down" | "flat" | string | null;
|
|
726
|
+
tone?: "good" | "bad" | "neutral" | string | null;
|
|
727
|
+
} | null;
|
|
728
|
+
decisionAdvantage: {
|
|
729
|
+
headline: string | null;
|
|
730
|
+
nextStep: string | null;
|
|
731
|
+
correlationSentence?: string | null;
|
|
732
|
+
firstCause?: string | null;
|
|
733
|
+
} | null;
|
|
734
|
+
}
|
|
735
|
+
export interface InsightsDriversResponse {
|
|
736
|
+
dataDay: string;
|
|
737
|
+
kpiId: string;
|
|
738
|
+
headlineDirection: "increase" | "decrease" | null;
|
|
739
|
+
tabs: Record<InsightsDriversTab, {
|
|
740
|
+
total: number;
|
|
741
|
+
significantCount: number;
|
|
742
|
+
}>;
|
|
743
|
+
rows: InsightsDriver[];
|
|
744
|
+
hasMore: boolean;
|
|
745
|
+
nextOffset: number | null;
|
|
746
|
+
}
|
|
747
|
+
export interface InsightsCorrelationMetric {
|
|
748
|
+
nodeKey?: string;
|
|
749
|
+
label?: string;
|
|
750
|
+
kpiId: string;
|
|
751
|
+
value: number | null;
|
|
752
|
+
previous: number | null;
|
|
753
|
+
deltaPct: number | null;
|
|
754
|
+
/** Pearson r over the correlation window, and the days it used. */
|
|
755
|
+
r: number | null;
|
|
756
|
+
nObs: number;
|
|
757
|
+
strength: InsightsCorrelationStrength | null;
|
|
758
|
+
direction?: "up" | "down" | "flat" | string | null;
|
|
759
|
+
tone?: "good" | "bad" | "neutral" | string | null;
|
|
760
|
+
lowHistory?: boolean;
|
|
761
|
+
movedWithToday?: boolean | null;
|
|
762
|
+
}
|
|
763
|
+
export interface InsightsCorrelationResponse {
|
|
764
|
+
state?: "ready" | "no_drivers" | string;
|
|
765
|
+
/** The headline number the activity numbers are compared with. */
|
|
766
|
+
kpiId: string;
|
|
767
|
+
strength: InsightsCorrelationStrength | null;
|
|
768
|
+
/** e.g. "There is low correlation between metrics." */
|
|
769
|
+
verdictText: string | null;
|
|
770
|
+
/** % change from the first day shown, per number, for the indexed chart. */
|
|
771
|
+
series: {
|
|
772
|
+
x: string;
|
|
773
|
+
values: Record<string, number | null>;
|
|
774
|
+
disregarded?: boolean;
|
|
775
|
+
}[];
|
|
776
|
+
drivers: InsightsCorrelationMetric[];
|
|
777
|
+
window?: {
|
|
778
|
+
startDate?: string | null;
|
|
779
|
+
excludedDates?: string[];
|
|
780
|
+
source?: string | null;
|
|
781
|
+
} | null;
|
|
782
|
+
}
|
|
783
|
+
export interface InsightsCorrelationTrendPoint {
|
|
784
|
+
x: string;
|
|
785
|
+
r: Record<string, number | null>;
|
|
786
|
+
strength: Record<string, InsightsCorrelationStrength | null>;
|
|
787
|
+
nObs: Record<string, number>;
|
|
788
|
+
}
|
|
789
|
+
export interface InsightsCorrelationTrendResponse {
|
|
790
|
+
series: InsightsCorrelationTrendPoint[];
|
|
791
|
+
}
|
|
792
|
+
export interface InsightsGraphGroup {
|
|
793
|
+
groupKey: string;
|
|
794
|
+
displayName: string;
|
|
795
|
+
description: string;
|
|
796
|
+
days: string[];
|
|
797
|
+
isDefault?: boolean;
|
|
798
|
+
}
|
|
799
|
+
export interface InsightsNeedsAttentionItem {
|
|
800
|
+
observationId: string;
|
|
801
|
+
nodeKey: string;
|
|
802
|
+
label: string;
|
|
803
|
+
kpiId: string;
|
|
804
|
+
dataDay: string;
|
|
805
|
+
state: "pending" | "flagged" | "accepted" | "rejected" | string;
|
|
806
|
+
autoReason: string | null;
|
|
807
|
+
kpiLabel?: string | null;
|
|
808
|
+
/** The held-back reading and the normal level it was compared with. */
|
|
809
|
+
value?: number | null;
|
|
810
|
+
baseline?: number | null;
|
|
811
|
+
/** How far from the normal level, in percent (negative = below). */
|
|
812
|
+
deviationPct?: number | null;
|
|
813
|
+
direction?: "up" | "down" | string | null;
|
|
814
|
+
/** What the automatic check said, before any person decided. */
|
|
815
|
+
autoState?: string | null;
|
|
816
|
+
/** Whether the point is in the day's number right now. */
|
|
817
|
+
counted?: boolean;
|
|
818
|
+
/** Whether it waits for a person (pending). */
|
|
819
|
+
needsDecision?: boolean;
|
|
820
|
+
/** Whether the person who gave it said why. */
|
|
821
|
+
reasonGiven?: boolean;
|
|
822
|
+
decidedByEmail?: string | null;
|
|
823
|
+
decidedByName?: string | null;
|
|
824
|
+
decisionReason?: string | null;
|
|
825
|
+
decidedAt?: string | null;
|
|
826
|
+
/** The source row's own columns (ids, user): what tells two equal-looking readings apart. */
|
|
827
|
+
dimensions?: Record<string, unknown> | null;
|
|
828
|
+
context: string | Record<string, unknown> | null;
|
|
829
|
+
history: {
|
|
830
|
+
state: string;
|
|
831
|
+
reason: string | null;
|
|
832
|
+
at: string | null;
|
|
833
|
+
by: string | null;
|
|
834
|
+
}[];
|
|
835
|
+
}
|
|
836
|
+
export interface InsightsObservationsResponse {
|
|
837
|
+
observations: InsightsNeedsAttentionItem[];
|
|
838
|
+
counts?: Partial<Record<"pending" | "flagged" | "accepted" | "rejected", number>>;
|
|
839
|
+
}
|
|
840
|
+
export interface InsightsNeedsAttentionResponse {
|
|
841
|
+
observations: InsightsNeedsAttentionItem[];
|
|
842
|
+
filled: {
|
|
843
|
+
dataDay: string;
|
|
844
|
+
message?: string | null;
|
|
845
|
+
}[];
|
|
846
|
+
counts: {
|
|
847
|
+
pending: number;
|
|
848
|
+
flagged: number;
|
|
849
|
+
rejected: number;
|
|
850
|
+
accepted: number;
|
|
851
|
+
filledDays: number;
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
export interface InsightsObservationResponse {
|
|
855
|
+
observation: InsightsNeedsAttentionItem;
|
|
856
|
+
recompute: boolean;
|
|
857
|
+
jobId: string | null;
|
|
858
|
+
}
|
|
859
|
+
export interface InsightsHierarchyResponse {
|
|
860
|
+
levels: {
|
|
861
|
+
level?: number;
|
|
862
|
+
entities: {
|
|
863
|
+
entityKey: string;
|
|
864
|
+
name: string;
|
|
865
|
+
pluralName?: string;
|
|
866
|
+
kpis?: string[];
|
|
867
|
+
parentEntityKeys?: string[];
|
|
868
|
+
}[];
|
|
869
|
+
}[];
|
|
870
|
+
kpis?: InsightsKpiConfig[];
|
|
871
|
+
analysis?: InsightsUiConfig["analysis"];
|
|
872
|
+
}
|
|
873
|
+
export interface InsightsRowDetail {
|
|
874
|
+
nodeKey: string;
|
|
875
|
+
entityKey: string | null;
|
|
876
|
+
label: string;
|
|
877
|
+
path: string[];
|
|
878
|
+
parent: {
|
|
879
|
+
nodeKey: string;
|
|
880
|
+
label: string;
|
|
881
|
+
} | null;
|
|
882
|
+
metrics: Record<string, InsightsRowMetric>;
|
|
883
|
+
movement: InsightsRowChip | null;
|
|
884
|
+
shareOfParentPct: number | null;
|
|
885
|
+
report: {
|
|
886
|
+
reportId: string | null;
|
|
887
|
+
status: InsightsReportStatus;
|
|
888
|
+
} | null;
|
|
889
|
+
}
|
|
890
|
+
export interface InsightsReportsResponse {
|
|
891
|
+
reportsByDay: Record<string, InsightsReport>;
|
|
892
|
+
}
|
|
893
|
+
//# sourceMappingURL=insights.d.ts.map
|