@burdenoff/microfe-bigconsole 2026.510.54
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 +88 -0
- package/dist/bigconsole/BigConsoleRoot.d.ts +29 -0
- package/dist/bigconsole/BigConsoleRoot.d.ts.map +1 -0
- package/dist/bigconsole/BigConsoleRoot.js +215 -0
- package/dist/bigconsole/BigConsoleRoot.js.map +1 -0
- package/dist/bigconsole/BigConsoleRoutes.d.ts +6 -0
- package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -0
- package/dist/bigconsole/BigConsoleRoutes.js +239 -0
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.d.ts +11 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.d.ts.map +1 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +199 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js.map +1 -0
- package/dist/bigconsole/components/DrilldownModal.d.ts +11 -0
- package/dist/bigconsole/components/DrilldownModal.d.ts.map +1 -0
- package/dist/bigconsole/components/DrilldownModal.js +117 -0
- package/dist/bigconsole/components/DrilldownModal.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.d.ts +19 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +430 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts +44 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +342 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts +25 -0
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardGrid.js +88 -0
- package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.d.ts +27 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +131 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.d.ts +26 -0
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +107 -0
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -0
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts +17 -0
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +342 -0
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts +12 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +449 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +16 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +415 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.d.ts +13 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +315 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts +19 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +365 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.d.ts +8 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.js +3 -0
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.d.ts +10 -0
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +486 -0
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.d.ts +26 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +224 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js.map +1 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/index.d.ts +6 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/index.js +1 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.d.ts +12 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +494 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.d.ts +6 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.js +1 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +11 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +477 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/index.d.ts +6 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/index.js +1 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.d.ts +19 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +905 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js.map +1 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/index.d.ts +6 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/index.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.d.ts +23 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +462 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -0
- package/dist/bigconsole/components/dashboard/index.d.ts +19 -0
- package/dist/bigconsole/components/dashboard/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/index.js +20 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts +18 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +247 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -0
- package/dist/bigconsole/components/datasink/ConfigurationForm.d.ts +21 -0
- package/dist/bigconsole/components/datasink/ConfigurationForm.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataPreviewPanel.d.ts +20 -0
- package/dist/bigconsole/components/datasink/DataPreviewPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkCard.d.ts +23 -0
- package/dist/bigconsole/components/datasink/DataSinkCard.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkCard.js +137 -0
- package/dist/bigconsole/components/datasink/DataSinkCard.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.d.ts +18 -0
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +43 -0
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.d.ts +17 -0
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +87 -0
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshConfig.d.ts +22 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.d.ts +17 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +88 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.d.ts +13 -0
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +98 -0
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.d.ts +13 -0
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +174 -0
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js.map +1 -0
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.d.ts +17 -0
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +322 -0
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js.map +1 -0
- package/dist/bigconsole/components/datasink/FluidGridsPanel.d.ts +31 -0
- package/dist/bigconsole/components/datasink/FluidGridsPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.d.ts +10 -0
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +402 -0
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -0
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.d.ts +12 -0
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +128 -0
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js.map +1 -0
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.d.ts +11 -0
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +204 -0
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js.map +1 -0
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.d.ts +26 -0
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +301 -0
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -0
- package/dist/bigconsole/components/datasink/SetupStateBadge.d.ts +13 -0
- package/dist/bigconsole/components/datasink/SetupStateBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +107 -0
- package/dist/bigconsole/components/datasink/SetupStateBadge.js.map +1 -0
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.d.ts +30 -0
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +163 -0
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js.map +1 -0
- package/dist/bigconsole/components/datasink/index.d.ts +24 -0
- package/dist/bigconsole/components/datasink/index.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.d.ts +21 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js +174 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -0
- package/dist/bigconsole/components/parser/ExportParserDialog.d.ts +17 -0
- package/dist/bigconsole/components/parser/ExportParserDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ExportParserDialog.js +322 -0
- package/dist/bigconsole/components/parser/ExportParserDialog.js.map +1 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.d.ts +25 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.js +119 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.js.map +1 -0
- package/dist/bigconsole/components/parser/ImportParserDialog.d.ts +12 -0
- package/dist/bigconsole/components/parser/ImportParserDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ImportParserDialog.js +427 -0
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -0
- package/dist/bigconsole/components/parser/ParserBuilder.d.ts +41 -0
- package/dist/bigconsole/components/parser/ParserBuilder.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserCard.d.ts +23 -0
- package/dist/bigconsole/components/parser/ParserCard.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserCard.js +248 -0
- package/dist/bigconsole/components/parser/ParserCard.js.map +1 -0
- package/dist/bigconsole/components/parser/ParserFormDialog.d.ts +42 -0
- package/dist/bigconsole/components/parser/ParserFormDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserSelector.d.ts +27 -0
- package/dist/bigconsole/components/parser/ParserSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserSelector.js +263 -0
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.d.ts +13 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +74 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js.map +1 -0
- package/dist/bigconsole/components/parser/ParserTypeBadge.d.ts +11 -0
- package/dist/bigconsole/components/parser/ParserTypeBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserTypeBadge.js +48 -0
- package/dist/bigconsole/components/parser/ParserTypeBadge.js.map +1 -0
- package/dist/bigconsole/components/parser/TestPanel.d.ts +25 -0
- package/dist/bigconsole/components/parser/TestPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/index.d.ts +17 -0
- package/dist/bigconsole/components/parser/index.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts +12 -0
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineCard.js +159 -0
- package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.d.ts +11 -0
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +94 -0
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.d.ts +9 -0
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +36 -0
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js.map +1 -0
- package/dist/bigconsole/components/pipeline/index.d.ts +9 -0
- package/dist/bigconsole/components/pipeline/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/ActionConfigDialog.d.ts +13 -0
- package/dist/bigconsole/components/widgets/ActionConfigDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +671 -0
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -0
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.d.ts +26 -0
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +378 -0
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts +9 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +1594 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.d.ts +25 -0
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js +882 -0
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.d.ts +23 -0
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +75 -0
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +31 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.js +265 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.d.ts +18 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.js +296 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.d.ts +113 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +836 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.d.ts +16 -0
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js +291 -0
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +31 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +516 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -0
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.d.ts +38 -0
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +106 -0
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/adaptive-card/index.d.ts +7 -0
- package/dist/bigconsole/components/widgets/adaptive-card/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/adaptive-card/index.js +2 -0
- package/dist/bigconsole/components/widgets/area-chart/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/area-chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/bar-chart/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/bar-chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.d.ts +25 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +113 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/calendar/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/calendar/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/calendar/index.js +2 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +254 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartLegend.d.ts +25 -0
- package/dist/bigconsole/components/widgets/chart/ChartLegend.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartLegend.js +40 -0
- package/dist/bigconsole/components/widgets/chart/ChartLegend.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.d.ts +24 -0
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.js +34 -0
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.d.ts +17 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js +151 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.d.ts +16 -0
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +104 -0
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.d.ts +16 -0
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +90 -0
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.d.ts +18 -0
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js +70 -0
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.d.ts +16 -0
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +96 -0
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.d.ts +18 -0
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.js +98 -0
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/chart/charts/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/index.js +5 -0
- package/dist/bigconsole/components/widgets/chart/charts/types.d.ts +45 -0
- package/dist/bigconsole/components/widgets/chart/charts/types.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/index.d.ts +11 -0
- package/dist/bigconsole/components/widgets/chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/index.js +11 -0
- package/dist/bigconsole/components/widgets/custom/CustomWidget.d.ts +13 -0
- package/dist/bigconsole/components/widgets/custom/CustomWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js +201 -0
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/custom/config.d.ts +9 -0
- package/dist/bigconsole/components/widgets/custom/config.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/custom/config.js +21 -0
- package/dist/bigconsole/components/widgets/custom/config.js.map +1 -0
- package/dist/bigconsole/components/widgets/custom/index.d.ts +8 -0
- package/dist/bigconsole/components/widgets/custom/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/custom/index.js +3 -0
- package/dist/bigconsole/components/widgets/custom/utils.d.ts +4 -0
- package/dist/bigconsole/components/widgets/custom/utils.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/custom/utils.js +13 -0
- package/dist/bigconsole/components/widgets/custom/utils.js.map +1 -0
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.d.ts +16 -0
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +377 -0
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -0
- package/dist/bigconsole/components/widgets/event-logs/index.d.ts +6 -0
- package/dist/bigconsole/components/widgets/event-logs/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/event-logs/index.js +1 -0
- package/dist/bigconsole/components/widgets/form/FormWidget.d.ts +27 -0
- package/dist/bigconsole/components/widgets/form/FormWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/form/FormWidget.js +486 -0
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/form/index.d.ts +6 -0
- package/dist/bigconsole/components/widgets/form/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/form/index.js +2 -0
- package/dist/bigconsole/components/widgets/funnel/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/funnel/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/funnel/index.js +22 -0
- package/dist/bigconsole/components/widgets/funnel/index.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.d.ts +31 -0
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +77 -0
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +180 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.d.ts +22 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +217 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.d.ts +28 -0
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +92 -0
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/index.d.ts +10 -0
- package/dist/bigconsole/components/widgets/gauge/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/index.js +5 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts +23 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +98 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/heatmap/index.d.ts +7 -0
- package/dist/bigconsole/components/widgets/heatmap/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/heatmap/index.js +2 -0
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +17 -0
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +45 -0
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.js +2 -0
- package/dist/bigconsole/components/widgets/index.d.ts +34 -0
- package/dist/bigconsole/components/widgets/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/index.js +51 -0
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.d.ts +29 -0
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +92 -0
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/kanban/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/kanban/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kanban/index.js +2 -0
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.d.ts +23 -0
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.js +83 -0
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/kpi/index.d.ts +7 -0
- package/dist/bigconsole/components/widgets/kpi/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kpi/index.js +1 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.d.ts +25 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +188 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/index.js +2 -0
- package/dist/bigconsole/components/widgets/line-chart/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/line-chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/list/ListConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListConfig.js +131 -0
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListItem.d.ts +39 -0
- package/dist/bigconsole/components/widgets/list/ListItem.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListItem.js +103 -0
- package/dist/bigconsole/components/widgets/list/ListItem.js.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListWidget.d.ts +17 -0
- package/dist/bigconsole/components/widgets/list/ListWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListWidget.js +106 -0
- package/dist/bigconsole/components/widgets/list/ListWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/list/index.d.ts +9 -0
- package/dist/bigconsole/components/widgets/list/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/index.js +4 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +29 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +125 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/map-widget/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/map-widget/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/map-widget/index.js +2 -0
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.d.ts +15 -0
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js +34 -0
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +158 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts +36 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +195 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.d.ts +23 -0
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +94 -0
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.d.ts +14 -0
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +55 -0
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/index.d.ts +11 -0
- package/dist/bigconsole/components/widgets/metric-card/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/index.js +6 -0
- package/dist/bigconsole/components/widgets/pie-chart/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/pie-chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.d.ts +26 -0
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +281 -0
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/pivot-table/index.d.ts +6 -0
- package/dist/bigconsole/components/widgets/pivot-table/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/pivot-table/index.js +2 -0
- package/dist/bigconsole/components/widgets/progress/ProgressBar.d.ts +29 -0
- package/dist/bigconsole/components/widgets/progress/ProgressBar.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressBar.js +94 -0
- package/dist/bigconsole/components/widgets/progress/ProgressBar.js.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +187 -0
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.d.ts +28 -0
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +201 -0
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/progress/index.d.ts +9 -0
- package/dist/bigconsole/components/widgets/progress/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/progress/index.js +4 -0
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.d.ts +25 -0
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +159 -0
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/retention/index.d.ts +7 -0
- package/dist/bigconsole/components/widgets/retention/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/retention/index.js +2 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +14 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.js +61 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -0
- package/dist/bigconsole/components/widgets/states/ErrorState.d.ts +11 -0
- package/dist/bigconsole/components/widgets/states/ErrorState.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/states/ErrorState.js +56 -0
- package/dist/bigconsole/components/widgets/states/ErrorState.js.map +1 -0
- package/dist/bigconsole/components/widgets/states/LoadingState.d.ts +9 -0
- package/dist/bigconsole/components/widgets/states/LoadingState.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/states/LoadingState.js +21 -0
- package/dist/bigconsole/components/widgets/states/LoadingState.js.map +1 -0
- package/dist/bigconsole/components/widgets/states/index.d.ts +9 -0
- package/dist/bigconsole/components/widgets/states/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/states/index.js +3 -0
- package/dist/bigconsole/components/widgets/table/TableCell.d.ts +31 -0
- package/dist/bigconsole/components/widgets/table/TableCell.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableCell.js +65 -0
- package/dist/bigconsole/components/widgets/table/TableCell.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/table/TableConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableConfig.js +254 -0
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableHeader.d.ts +32 -0
- package/dist/bigconsole/components/widgets/table/TableHeader.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableHeader.js +85 -0
- package/dist/bigconsole/components/widgets/table/TableHeader.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/TablePagination.d.ts +23 -0
- package/dist/bigconsole/components/widgets/table/TablePagination.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TablePagination.js +166 -0
- package/dist/bigconsole/components/widgets/table/TablePagination.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableWidget.d.ts +16 -0
- package/dist/bigconsole/components/widgets/table/TableWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableWidget.js +258 -0
- package/dist/bigconsole/components/widgets/table/TableWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/index.d.ts +11 -0
- package/dist/bigconsole/components/widgets/table/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/index.js +6 -0
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.d.ts +14 -0
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +47 -0
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/text-widget/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/text-widget/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/text-widget/index.js +2 -0
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.d.ts +31 -0
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +147 -0
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/timeline/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/timeline/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/timeline/index.js +2 -0
- package/dist/bigconsole/components/widgets/utils/inferFields.d.ts +45 -0
- package/dist/bigconsole/components/widgets/utils/inferFields.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/utils/inferFields.js +58 -0
- package/dist/bigconsole/components/widgets/utils/inferFields.js.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.d.ts +16 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +500 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/index.d.ts +6 -0
- package/dist/bigconsole/components/widgets/webhook-config/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/index.js +1 -0
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.d.ts +26 -0
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +467 -0
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js.map +1 -0
- package/dist/bigconsole/components/widgets/widget-actions/index.d.ts +8 -0
- package/dist/bigconsole/components/widgets/widget-actions/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/widget-actions/index.js +1 -0
- package/dist/bigconsole/components/workflow/DataSinkMultiSelector.d.ts +19 -0
- package/dist/bigconsole/components/workflow/DataSinkMultiSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowCard.d.ts +11 -0
- package/dist/bigconsole/components/workflow/WorkflowCard.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowCard.js +158 -0
- package/dist/bigconsole/components/workflow/WorkflowCard.js.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.d.ts +11 -0
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +94 -0
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.d.ts +13 -0
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +115 -0
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js.map +1 -0
- package/dist/bigconsole/components/workflow/index.d.ts +10 -0
- package/dist/bigconsole/components/workflow/index.d.ts.map +1 -0
- package/dist/bigconsole/constants.d.ts +15 -0
- package/dist/bigconsole/constants.d.ts.map +1 -0
- package/dist/bigconsole/constants.js +6 -0
- package/dist/bigconsole/constants.js.map +1 -0
- package/dist/bigconsole/context/BigConsoleContext.d.ts +25 -0
- package/dist/bigconsole/context/BigConsoleContext.d.ts.map +1 -0
- package/dist/bigconsole/context/BigConsoleContext.js +53 -0
- package/dist/bigconsole/context/BigConsoleContext.js.map +1 -0
- package/dist/bigconsole/context/index.d.ts +2 -0
- package/dist/bigconsole/context/index.d.ts.map +1 -0
- package/dist/bigconsole/context/index.js +1 -0
- package/dist/bigconsole/contexts/CrossFilterContext.d.ts +48 -0
- package/dist/bigconsole/contexts/CrossFilterContext.d.ts.map +1 -0
- package/dist/bigconsole/contexts/CrossFilterContext.js +92 -0
- package/dist/bigconsole/contexts/CrossFilterContext.js.map +1 -0
- package/dist/bigconsole/contexts/NavigationContext.d.ts +45 -0
- package/dist/bigconsole/contexts/NavigationContext.d.ts.map +1 -0
- package/dist/bigconsole/contexts/NavigationContext.js +43 -0
- package/dist/bigconsole/contexts/NavigationContext.js.map +1 -0
- package/dist/bigconsole/contexts/index.d.ts +8 -0
- package/dist/bigconsole/contexts/index.d.ts.map +1 -0
- package/dist/bigconsole/contexts/index.js +2 -0
- package/dist/bigconsole/graphql/apollo-compat.d.ts +16 -0
- package/dist/bigconsole/graphql/apollo-compat.d.ts.map +1 -0
- package/dist/bigconsole/hooks/index.d.ts +35 -0
- package/dist/bigconsole/hooks/index.d.ts.map +1 -0
- package/dist/bigconsole/hooks/index.js +29 -0
- package/dist/bigconsole/hooks/useAutoRefresh.d.ts +51 -0
- package/dist/bigconsole/hooks/useAutoRefresh.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useAutoRefresh.js +93 -0
- package/dist/bigconsole/hooks/useAutoRefresh.js.map +1 -0
- package/dist/bigconsole/hooks/useCrossFilter.d.ts +79 -0
- package/dist/bigconsole/hooks/useCrossFilter.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useCrossFilter.js +63 -0
- package/dist/bigconsole/hooks/useCrossFilter.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts +43 -0
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardOperations.js +187 -0
- package/dist/bigconsole/hooks/useDashboardOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardSharing.d.ts +60 -0
- package/dist/bigconsole/hooks/useDashboardSharing.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardSharing.js +157 -0
- package/dist/bigconsole/hooks/useDashboardSharing.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardTemplates.d.ts +135 -0
- package/dist/bigconsole/hooks/useDashboardTemplates.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardTemplates.js +298 -0
- package/dist/bigconsole/hooks/useDashboardTemplates.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardViews.d.ts +58 -0
- package/dist/bigconsole/hooks/useDashboardViews.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardViews.js +170 -0
- package/dist/bigconsole/hooks/useDashboardViews.js.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +55 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.js +245 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts +31 -0
- package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +127 -0
- package/dist/bigconsole/hooks/useDataSinkSubscription.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.d.ts +63 -0
- package/dist/bigconsole/hooks/useDrilldown.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.js +192 -0
- package/dist/bigconsole/hooks/useDrilldown.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldownOperations.d.ts +42 -0
- package/dist/bigconsole/hooks/useDrilldownOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDrilldownOperations.js +62 -0
- package/dist/bigconsole/hooks/useDrilldownOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useEventLogs.d.ts +94 -0
- package/dist/bigconsole/hooks/useEventLogs.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useEventLogs.js +116 -0
- package/dist/bigconsole/hooks/useEventLogs.js.map +1 -0
- package/dist/bigconsole/hooks/useEventWebhooks.d.ts +91 -0
- package/dist/bigconsole/hooks/useEventWebhooks.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useEventWebhooks.js +138 -0
- package/dist/bigconsole/hooks/useEventWebhooks.js.map +1 -0
- package/dist/bigconsole/hooks/useExportDashboard.d.ts +28 -0
- package/dist/bigconsole/hooks/useExportDashboard.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useExportDashboard.js +65 -0
- package/dist/bigconsole/hooks/useExportDashboard.js.map +1 -0
- package/dist/bigconsole/hooks/useExportDataSink.d.ts +27 -0
- package/dist/bigconsole/hooks/useExportDataSink.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useExportDataSink.js +87 -0
- package/dist/bigconsole/hooks/useExportDataSink.js.map +1 -0
- package/dist/bigconsole/hooks/useExportParser.d.ts +25 -0
- package/dist/bigconsole/hooks/useExportParser.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useExportParser.js +81 -0
- package/dist/bigconsole/hooks/useExportParser.js.map +1 -0
- package/dist/bigconsole/hooks/useFilterPresets.d.ts +47 -0
- package/dist/bigconsole/hooks/useFilterPresets.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useFilterPresets.js +157 -0
- package/dist/bigconsole/hooks/useFilterPresets.js.map +1 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.d.ts +46 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.js +179 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.js.map +1 -0
- package/dist/bigconsole/hooks/useGlobalFilters.d.ts +69 -0
- package/dist/bigconsole/hooks/useGlobalFilters.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useGlobalFilters.js +154 -0
- package/dist/bigconsole/hooks/useGlobalFilters.js.map +1 -0
- package/dist/bigconsole/hooks/useImportDashboard.d.ts +88 -0
- package/dist/bigconsole/hooks/useImportDashboard.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useImportDashboard.js +157 -0
- package/dist/bigconsole/hooks/useImportDashboard.js.map +1 -0
- package/dist/bigconsole/hooks/useImportDataSink.d.ts +74 -0
- package/dist/bigconsole/hooks/useImportDataSink.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useImportDataSink.js +219 -0
- package/dist/bigconsole/hooks/useImportDataSink.js.map +1 -0
- package/dist/bigconsole/hooks/useImportParser.d.ts +77 -0
- package/dist/bigconsole/hooks/useImportParser.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useImportParser.js +222 -0
- package/dist/bigconsole/hooks/useImportParser.js.map +1 -0
- package/dist/bigconsole/hooks/useInstalledWidgets.d.ts +15 -0
- package/dist/bigconsole/hooks/useInstalledWidgets.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useInstalledWidgets.js +81 -0
- package/dist/bigconsole/hooks/useInstalledWidgets.js.map +1 -0
- package/dist/bigconsole/hooks/usePageOperations.d.ts +35 -0
- package/dist/bigconsole/hooks/usePageOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/usePageOperations.js +95 -0
- package/dist/bigconsole/hooks/usePageOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useParserOperations.d.ts +64 -0
- package/dist/bigconsole/hooks/useParserOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useParserOperations.js +151 -0
- package/dist/bigconsole/hooks/useParserOperations.js.map +1 -0
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts +76 -0
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/usePipelineOperations.js +260 -0
- package/dist/bigconsole/hooks/usePipelineOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetActions.d.ts +69 -0
- package/dist/bigconsole/hooks/useWidgetActions.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetActions.js +114 -0
- package/dist/bigconsole/hooks/useWidgetActions.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetData.d.ts +45 -0
- package/dist/bigconsole/hooks/useWidgetData.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetData.js +83 -0
- package/dist/bigconsole/hooks/useWidgetData.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetEvents.d.ts +60 -0
- package/dist/bigconsole/hooks/useWidgetEvents.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetEvents.js +35 -0
- package/dist/bigconsole/hooks/useWidgetEvents.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetExport.d.ts +19 -0
- package/dist/bigconsole/hooks/useWidgetExport.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetExport.js +77 -0
- package/dist/bigconsole/hooks/useWidgetExport.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetOperations.d.ts +61 -0
- package/dist/bigconsole/hooks/useWidgetOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetOperations.js +248 -0
- package/dist/bigconsole/hooks/useWidgetOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useWorkflowOperations.d.ts +54 -0
- package/dist/bigconsole/hooks/useWorkflowOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWorkflowOperations.js +237 -0
- package/dist/bigconsole/hooks/useWorkflowOperations.js.map +1 -0
- package/dist/bigconsole/index.d.ts +30 -0
- package/dist/bigconsole/index.d.ts.map +1 -0
- package/dist/bigconsole/index.js +8 -0
- package/dist/bigconsole/modules/dashboard/index.d.ts +15 -0
- package/dist/bigconsole/modules/dashboard/index.d.ts.map +1 -0
- package/dist/bigconsole/modules/index.d.ts +15 -0
- package/dist/bigconsole/modules/index.d.ts.map +1 -0
- package/dist/bigconsole/modules/renderer/index.d.ts +8 -0
- package/dist/bigconsole/modules/renderer/index.d.ts.map +1 -0
- package/dist/bigconsole/modules/widget/index.d.ts +20 -0
- package/dist/bigconsole/modules/widget/index.d.ts.map +1 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts +5 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +398 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -0
- package/dist/bigconsole/pages/DashboardViewPage.d.ts +5 -0
- package/dist/bigconsole/pages/DashboardViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DashboardViewPage.js +325 -0
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -0
- package/dist/bigconsole/pages/DashboardsPage.d.ts +5 -0
- package/dist/bigconsole/pages/DashboardsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DashboardsPage.js +555 -0
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -0
- package/dist/bigconsole/pages/DataParsersPage.d.ts +9 -0
- package/dist/bigconsole/pages/DataParsersPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataParsersPage.js +444 -0
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts +10 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +538 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSinkViewPage.d.ts +8 -0
- package/dist/bigconsole/pages/DataSinkViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSinkViewPage.js +342 -0
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSinksPage.d.ts +5 -0
- package/dist/bigconsole/pages/DataSinksPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSinksPage.js +835 -0
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSourcesPage.d.ts +10 -0
- package/dist/bigconsole/pages/DataSourcesPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSourcesPage.js +18 -0
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -0
- package/dist/bigconsole/pages/HomePage.d.ts +5 -0
- package/dist/bigconsole/pages/HomePage.d.ts.map +1 -0
- package/dist/bigconsole/pages/HomePage.js +338 -0
- package/dist/bigconsole/pages/HomePage.js.map +1 -0
- package/dist/bigconsole/pages/InsightsPage.d.ts +5 -0
- package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/InsightsPage.js +586 -0
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts +9 -0
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js +727 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserViewPage.d.ts +8 -0
- package/dist/bigconsole/pages/ParserViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/ParserViewPage.js +394 -0
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts +9 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +585 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -0
- package/dist/bigconsole/pages/PipelineViewPage.d.ts +9 -0
- package/dist/bigconsole/pages/PipelineViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/PipelineViewPage.js +483 -0
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -0
- package/dist/bigconsole/pages/PipelinesPage.d.ts +9 -0
- package/dist/bigconsole/pages/PipelinesPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/PipelinesPage.js +375 -0
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -0
- package/dist/bigconsole/pages/SettingsPage.d.ts +5 -0
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/SettingsPage.js +478 -0
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -0
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts +5 -0
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/WidgetDemoPage.js +257 -0
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -0
- package/dist/bigconsole/pages/WorkflowViewPage.d.ts +9 -0
- package/dist/bigconsole/pages/WorkflowViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +532 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -0
- package/dist/bigconsole/pages/WorkflowsPage.d.ts +9 -0
- package/dist/bigconsole/pages/WorkflowsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +384 -0
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -0
- package/dist/bigconsole/pages/index.d.ts +14 -0
- package/dist/bigconsole/pages/index.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.d.ts +6 -0
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +471 -0
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -0
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.d.ts +9 -0
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +66 -0
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js.map +1 -0
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -0
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +384 -0
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -0
- package/dist/bigconsole/renderers/adapters/CustomRenderer.d.ts +46 -0
- package/dist/bigconsole/renderers/adapters/CustomRenderer.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +172 -0
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -0
- package/dist/bigconsole/renderers/adapters/index.d.ts +10 -0
- package/dist/bigconsole/renderers/adapters/index.d.ts.map +1 -0
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.d.ts +46 -0
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.d.ts.map +1 -0
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js +55 -0
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js.map +1 -0
- package/dist/bigconsole/renderers/index.d.ts +10 -0
- package/dist/bigconsole/renderers/index.d.ts.map +1 -0
- package/dist/bigconsole/renderers/registry/RendererRegistry.d.ts +42 -0
- package/dist/bigconsole/renderers/registry/RendererRegistry.d.ts.map +1 -0
- package/dist/bigconsole/renderers/registry/RendererRegistry.js +139 -0
- package/dist/bigconsole/renderers/registry/RendererRegistry.js.map +1 -0
- package/dist/bigconsole/renderers/types/index.d.ts +7 -0
- package/dist/bigconsole/renderers/types/index.d.ts.map +1 -0
- package/dist/bigconsole/renderers/types/renderer.d.ts +228 -0
- package/dist/bigconsole/renderers/types/renderer.d.ts.map +1 -0
- package/dist/bigconsole/store/dashboardStore.d.ts +132 -0
- package/dist/bigconsole/store/dashboardStore.d.ts.map +1 -0
- package/dist/bigconsole/store/dashboardStore.js +246 -0
- package/dist/bigconsole/store/dashboardStore.js.map +1 -0
- package/dist/bigconsole/store/dataSinkStore.d.ts +94 -0
- package/dist/bigconsole/store/dataSinkStore.d.ts.map +1 -0
- package/dist/bigconsole/store/dataSinkStore.js +138 -0
- package/dist/bigconsole/store/dataSinkStore.js.map +1 -0
- package/dist/bigconsole/store/drilldownStore.d.ts +63 -0
- package/dist/bigconsole/store/drilldownStore.d.ts.map +1 -0
- package/dist/bigconsole/store/drilldownStore.js +69 -0
- package/dist/bigconsole/store/drilldownStore.js.map +1 -0
- package/dist/bigconsole/store/index.d.ts +13 -0
- package/dist/bigconsole/store/index.d.ts.map +1 -0
- package/dist/bigconsole/store/index.js +7 -0
- package/dist/bigconsole/store/parserStore.d.ts +106 -0
- package/dist/bigconsole/store/parserStore.d.ts.map +1 -0
- package/dist/bigconsole/store/parserStore.js +175 -0
- package/dist/bigconsole/store/parserStore.js.map +1 -0
- package/dist/bigconsole/store/pipelineStore.d.ts +113 -0
- package/dist/bigconsole/store/pipelineStore.d.ts.map +1 -0
- package/dist/bigconsole/store/pipelineStore.js +231 -0
- package/dist/bigconsole/store/pipelineStore.js.map +1 -0
- package/dist/bigconsole/store/widgetStore.d.ts +106 -0
- package/dist/bigconsole/store/widgetStore.d.ts.map +1 -0
- package/dist/bigconsole/store/widgetStore.js +217 -0
- package/dist/bigconsole/store/widgetStore.js.map +1 -0
- package/dist/bigconsole/store/workflowStore.d.ts +120 -0
- package/dist/bigconsole/store/workflowStore.d.ts.map +1 -0
- package/dist/bigconsole/store/workflowStore.js +193 -0
- package/dist/bigconsole/store/workflowStore.js.map +1 -0
- package/dist/bigconsole/types/index.d.ts +1233 -0
- package/dist/bigconsole/types/index.d.ts.map +1 -0
- package/dist/bigconsole/utils/index.d.ts +9 -0
- package/dist/bigconsole/utils/index.d.ts.map +1 -0
- package/dist/bigconsole/utils/semanticTokens.d.ts +88 -0
- package/dist/bigconsole/utils/semanticTokens.d.ts.map +1 -0
- package/dist/bigconsole/utils/semanticTokens.js +41 -0
- package/dist/bigconsole/utils/semanticTokens.js.map +1 -0
- package/dist/bigconsole/utils/widgetPositioning.d.ts +81 -0
- package/dist/bigconsole/utils/widgetPositioning.d.ts.map +1 -0
- package/dist/bigconsole/utils/widgetPositioning.js +44 -0
- package/dist/bigconsole/utils/widgetPositioning.js.map +1 -0
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts +34 -0
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts.map +1 -0
- package/dist/bigconsole/utils/widgetTypeMapping.js +56 -0
- package/dist/bigconsole/utils/widgetTypeMapping.js.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +20716 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +9514 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +1993 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +53363 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/microfe-bigconsole.css +2 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +118 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { useParserStore as e } from "../store/parserStore.js";
|
|
2
|
+
import { CreateParserDocument as t, DeleteParserDocument as n, ExecuteParserDocument as r, GetParserDocument as i, ListParsersDocument as a, TestParserExpressionDocument as o, UpdateParserDocument as s } from "../../generated/wspace-operations.js";
|
|
3
|
+
import { useCallback as c, useEffect as l, useMemo as u, useState as d } from "react";
|
|
4
|
+
import { useApolloClient as f } from "@apollo/client/react";
|
|
5
|
+
//#region src/bigconsole/hooks/useParserOperations.ts
|
|
6
|
+
function p(p = {}) {
|
|
7
|
+
let { consoleId: m, skipFetch: h = !1 } = p, [g, _] = d(!1), [v, y] = d(null), b = f(), x = e((e) => e.parsers), S = e((e) => e.setParsers), C = e((e) => e.addParser), w = e((e) => e.updateParser), T = e((e) => e.removeParser), E = e((e) => e.setParserTesting), D = u(() => Array.from(x.values()), [x]), O = c(async (e) => {
|
|
8
|
+
if (!m) return [];
|
|
9
|
+
try {
|
|
10
|
+
_(!0), y(null);
|
|
11
|
+
let t = ((await b.query({
|
|
12
|
+
query: a,
|
|
13
|
+
variables: {
|
|
14
|
+
consoleId: m,
|
|
15
|
+
type: e?.type,
|
|
16
|
+
status: e?.status,
|
|
17
|
+
first: 100
|
|
18
|
+
},
|
|
19
|
+
fetchPolicy: "network-only"
|
|
20
|
+
})).data?.listParsers?.edges || []).map((e) => e.node);
|
|
21
|
+
return S(t), t;
|
|
22
|
+
} catch (e) {
|
|
23
|
+
return y(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch parsers")), [];
|
|
24
|
+
} finally {
|
|
25
|
+
_(!1);
|
|
26
|
+
}
|
|
27
|
+
}, [
|
|
28
|
+
b,
|
|
29
|
+
m,
|
|
30
|
+
S
|
|
31
|
+
]), k = c(async (e) => {
|
|
32
|
+
try {
|
|
33
|
+
_(!0), y(null);
|
|
34
|
+
let t = (await b.query({
|
|
35
|
+
query: i,
|
|
36
|
+
variables: { id: e },
|
|
37
|
+
fetchPolicy: "network-only"
|
|
38
|
+
})).data?.parser;
|
|
39
|
+
return t ? (C(t), t) : null;
|
|
40
|
+
} catch (e) {
|
|
41
|
+
return y(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch parser")), null;
|
|
42
|
+
} finally {
|
|
43
|
+
_(!1);
|
|
44
|
+
}
|
|
45
|
+
}, [b, C]), A = c(async (e) => {
|
|
46
|
+
try {
|
|
47
|
+
_(!0), y(null);
|
|
48
|
+
let n = (await b.mutate({
|
|
49
|
+
mutation: t,
|
|
50
|
+
variables: { input: e }
|
|
51
|
+
})).data?.createParser;
|
|
52
|
+
return n ? (C(n), n) : null;
|
|
53
|
+
} catch (e) {
|
|
54
|
+
return y(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create parser")), null;
|
|
55
|
+
} finally {
|
|
56
|
+
_(!1);
|
|
57
|
+
}
|
|
58
|
+
}, [b, C]), j = c(async (e, t, n) => {
|
|
59
|
+
try {
|
|
60
|
+
_(!0), y(null);
|
|
61
|
+
let r = (await b.mutate({
|
|
62
|
+
mutation: s,
|
|
63
|
+
variables: {
|
|
64
|
+
id: e,
|
|
65
|
+
input: t,
|
|
66
|
+
version: n
|
|
67
|
+
}
|
|
68
|
+
})).data?.updateParser;
|
|
69
|
+
return r ? (w(e, r), r) : null;
|
|
70
|
+
} catch (e) {
|
|
71
|
+
return y(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update parser")), null;
|
|
72
|
+
} finally {
|
|
73
|
+
_(!1);
|
|
74
|
+
}
|
|
75
|
+
}, [b, w]), M = c(async (e) => {
|
|
76
|
+
try {
|
|
77
|
+
return _(!0), y(null), await b.mutate({
|
|
78
|
+
mutation: n,
|
|
79
|
+
variables: { id: e }
|
|
80
|
+
}), T(e), !0;
|
|
81
|
+
} catch (e) {
|
|
82
|
+
return y(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete parser")), !1;
|
|
83
|
+
} finally {
|
|
84
|
+
_(!1);
|
|
85
|
+
}
|
|
86
|
+
}, [b, T]), N = c(async (e) => {
|
|
87
|
+
try {
|
|
88
|
+
_(!0), y(null), E(e, !0);
|
|
89
|
+
let t = (await b.mutate({
|
|
90
|
+
mutation: r,
|
|
91
|
+
variables: { id: e }
|
|
92
|
+
})).data?.executeParser;
|
|
93
|
+
return t ? {
|
|
94
|
+
parserId: t.parserId,
|
|
95
|
+
success: t.success,
|
|
96
|
+
output: t.output,
|
|
97
|
+
error: t.error,
|
|
98
|
+
executionTimeMs: t.executionTimeMs,
|
|
99
|
+
cachedAt: t.cachedAt
|
|
100
|
+
} : null;
|
|
101
|
+
} catch (e) {
|
|
102
|
+
return y(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to execute parser")), null;
|
|
103
|
+
} finally {
|
|
104
|
+
_(!1), E(e, !1);
|
|
105
|
+
}
|
|
106
|
+
}, [b, E]), P = c(async (e) => {
|
|
107
|
+
try {
|
|
108
|
+
_(!0), y(null);
|
|
109
|
+
let t = (await b.query({
|
|
110
|
+
query: o,
|
|
111
|
+
variables: { input: e },
|
|
112
|
+
fetchPolicy: "network-only"
|
|
113
|
+
})).data?.testParserExpression;
|
|
114
|
+
return t ? {
|
|
115
|
+
success: t.success,
|
|
116
|
+
output: t.output,
|
|
117
|
+
error: t.error,
|
|
118
|
+
executionTimeMs: t.executionTimeMs
|
|
119
|
+
} : null;
|
|
120
|
+
} catch (e) {
|
|
121
|
+
return y(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to test expression")), null;
|
|
122
|
+
} finally {
|
|
123
|
+
_(!1);
|
|
124
|
+
}
|
|
125
|
+
}, [b]), F = c(async () => {
|
|
126
|
+
await O();
|
|
127
|
+
}, [O]);
|
|
128
|
+
return l(() => {
|
|
129
|
+
m && !h && O();
|
|
130
|
+
}, [
|
|
131
|
+
m,
|
|
132
|
+
h,
|
|
133
|
+
O
|
|
134
|
+
]), {
|
|
135
|
+
loading: g,
|
|
136
|
+
error: v,
|
|
137
|
+
parsers: D,
|
|
138
|
+
fetchParsers: O,
|
|
139
|
+
fetchParser: k,
|
|
140
|
+
createParser: A,
|
|
141
|
+
updateParser: j,
|
|
142
|
+
deleteParser: M,
|
|
143
|
+
executeParser: N,
|
|
144
|
+
testParserExpression: P,
|
|
145
|
+
refetch: F
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
export { p as default };
|
|
150
|
+
|
|
151
|
+
//# sourceMappingURL=useParserOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useParserOperations.js","names":[],"sources":["../../../src/bigconsole/hooks/useParserOperations.ts"],"sourcesContent":["/**\n * Parser Operations Hook\n *\n * Custom hook for Parser CRUD operations with Apollo Client.\n * Integrates with the Parser Zustand store for state management.\n */\n\nimport { useState, useMemo, useCallback, useEffect } from 'react';\nimport { useApolloClient } from '@apollo/client/react';\nimport { useParserStore } from '../store/parserStore';\nimport {\n ListParsersDocument,\n GetParserDocument,\n CreateParserDocument,\n UpdateParserDocument,\n DeleteParserDocument,\n ExecuteParserDocument,\n TestParserExpressionDocument,\n} from '../../generated/wspace-operations';\nimport type { Parser, ParserType, ParserStatus } from '../types';\n\n// ============================================================================\n// TYPES\n// ============================================================================\n\ninterface UseParserOperationsOptions {\n consoleId?: string;\n skipFetch?: boolean;\n}\n\ninterface ParserFilters {\n type?: ParserType;\n status?: ParserStatus;\n}\n\ninterface CreateParserInput {\n consoleId: string;\n name: string;\n type: ParserType;\n expression: string;\n inputSinkKey: string;\n outputKey: string;\n description?: string;\n ttl?: number;\n}\n\ninterface UpdateParserInput {\n name?: string;\n description?: string;\n type?: ParserType;\n expression?: string;\n inputSinkKey?: string;\n outputKey?: string;\n // Allow explicit null so callers can distinguish \"clear caching\"\n // (send null) from \"don't touch\" (omit the field / undefined).\n ttl?: number | null;\n status?: ParserStatus;\n}\n\ninterface TestParserInput {\n type: ParserType;\n expression: string;\n sampleData: unknown; // Parsed JSON object\n}\n\ninterface TestParserResult {\n success: boolean;\n output: unknown;\n error: string | null;\n executionTimeMs: number;\n}\n\ninterface ExecuteParserResult {\n parserId: string;\n success: boolean;\n output: unknown;\n error: string | null;\n executionTimeMs: number;\n cachedAt: string | null;\n}\n\n// GraphQL Query/Mutation Result Types\ninterface ListParsersResult {\n listParsers?: {\n edges: Array<{ node: Parser }>;\n pageInfo?: { hasNextPage: boolean; endCursor?: string };\n };\n}\n\ninterface GetParserResult {\n parser?: Parser;\n}\n\ninterface CreateParserResult {\n createParser?: Parser;\n}\n\ninterface UpdateParserResult {\n updateParser?: Parser;\n}\n\ninterface DeleteParserResult {\n deleteParser?: boolean;\n}\n\ninterface ExecuteParserMutationResult {\n executeParser?: {\n parserId: string;\n success: boolean;\n output: unknown;\n error: string | null;\n executionTimeMs: number;\n cachedAt: string | null;\n };\n}\n\ninterface TestParserExpressionResult {\n testParserExpression?: {\n success: boolean;\n output: unknown;\n error: string | null;\n executionTimeMs: number;\n };\n}\n\n// ============================================================================\n// HOOK\n// ============================================================================\n\nexport function useParserOperations(options: UseParserOperationsOptions = {}) {\n const { consoleId, skipFetch = false } = options;\n\n // Local state\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n\n // Apollo client\n const client = useApolloClient();\n\n // Store selectors and actions\n const parsersMap = useParserStore((state) => state.parsers);\n const setParsers = useParserStore((state) => state.setParsers);\n const addParser = useParserStore((state) => state.addParser);\n const updateParserInStore = useParserStore((state) => state.updateParser);\n const removeParser = useParserStore((state) => state.removeParser);\n const setParserTesting = useParserStore((state) => state.setParserTesting);\n\n // Memoized array of parsers\n const parsers = useMemo(() => Array.from(parsersMap.values()), [parsersMap]);\n\n // ============================================================================\n // OPERATIONS\n // ============================================================================\n\n /**\n * Fetch all parsers with optional filters\n */\n const fetchParsers = useCallback(\n async (filters?: ParserFilters): Promise<Parser[]> => {\n if (!consoleId) {\n return [];\n }\n\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.query<ListParsersResult>({\n query: ListParsersDocument,\n variables: {\n consoleId,\n type: filters?.type,\n status: filters?.status,\n first: 100,\n },\n fetchPolicy: 'network-only',\n });\n\n const edges = result.data?.listParsers?.edges || [];\n const normalized = edges.map((edge: { node: Parser }) => edge.node);\n\n setParsers(normalized);\n return normalized;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to fetch parsers');\n setError(error);\n return [];\n } finally {\n setLoading(false);\n }\n },\n [client, consoleId, setParsers]\n );\n\n /**\n * Fetch a single parser by ID\n */\n const fetchParser = useCallback(\n async (id: string): Promise<Parser | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.query<GetParserResult>({\n query: GetParserDocument,\n variables: { id },\n fetchPolicy: 'network-only',\n });\n\n const parser = result.data?.parser;\n if (parser) {\n addParser(parser);\n return parser;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to fetch parser');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, addParser]\n );\n\n /**\n * Create a new parser\n */\n const createParser = useCallback(\n async (input: CreateParserInput): Promise<Parser | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.mutate<CreateParserResult>({\n mutation: CreateParserDocument,\n variables: { input },\n });\n\n const parser = result.data?.createParser;\n if (parser) {\n addParser(parser);\n return parser;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to create parser');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, addParser]\n );\n\n /**\n * Update an existing parser\n */\n const updateParser = useCallback(\n async (id: string, input: UpdateParserInput, version: number): Promise<Parser | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.mutate<UpdateParserResult>({\n mutation: UpdateParserDocument,\n variables: { id, input, version },\n });\n\n const parser = result.data?.updateParser;\n if (parser) {\n updateParserInStore(id, parser);\n return parser;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to update parser');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, updateParserInStore]\n );\n\n /**\n * Delete a parser\n */\n const deleteParser = useCallback(\n async (id: string): Promise<boolean> => {\n try {\n setLoading(true);\n setError(null);\n\n await client.mutate<DeleteParserResult>({\n mutation: DeleteParserDocument,\n variables: { id },\n });\n\n removeParser(id);\n return true;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to delete parser');\n setError(error);\n return false;\n } finally {\n setLoading(false);\n }\n },\n [client, removeParser]\n );\n\n /**\n * Execute a parser against its input data sink\n */\n const executeParser = useCallback(\n async (id: string): Promise<ExecuteParserResult | null> => {\n try {\n setLoading(true);\n setError(null);\n setParserTesting(id, true);\n\n const result = await client.mutate<ExecuteParserMutationResult>({\n mutation: ExecuteParserDocument,\n variables: { id },\n });\n\n const execution = result.data?.executeParser;\n if (execution) {\n return {\n parserId: execution.parserId,\n success: execution.success,\n output: execution.output,\n error: execution.error,\n executionTimeMs: execution.executionTimeMs,\n cachedAt: execution.cachedAt,\n };\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to execute parser');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n setParserTesting(id, false);\n }\n },\n [client, setParserTesting]\n );\n\n /**\n * Test a parser expression with sample input\n */\n const testParserExpression = useCallback(\n async (input: TestParserInput): Promise<TestParserResult | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.query<TestParserExpressionResult>({\n query: TestParserExpressionDocument,\n variables: { input },\n fetchPolicy: 'network-only',\n });\n\n const testResult = result.data?.testParserExpression;\n if (testResult) {\n return {\n success: testResult.success,\n output: testResult.output,\n error: testResult.error,\n executionTimeMs: testResult.executionTimeMs,\n };\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to test expression');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client]\n );\n\n /**\n * Refetch all parsers\n */\n const refetch = useCallback(async () => {\n await fetchParsers();\n }, [fetchParsers]);\n\n // Auto-fetch on mount if not skipped\n useEffect(() => {\n if (consoleId && !skipFetch) {\n fetchParsers();\n }\n }, [consoleId, skipFetch, fetchParsers]);\n\n return {\n loading,\n error,\n parsers,\n fetchParsers,\n fetchParser,\n createParser,\n updateParser,\n deleteParser,\n executeParser,\n testParserExpression,\n refetch,\n };\n}\n\nexport default useParserOperations;\n"],"mappings":";;;;;AAiIA,SAAgB,EAAoB,IAAsC,EAAE,EAAE;CAC5E,IAAM,EAAE,cAAW,eAAY,OAAU,GAGnC,CAAC,GAAS,KAAc,EAAS,GAAM,EACvC,CAAC,GAAO,KAAY,EAAuB,KAAK,EAGhD,IAAS,GAAiB,EAG1B,IAAa,GAAgB,MAAU,EAAM,QAAQ,EACrD,IAAa,GAAgB,MAAU,EAAM,WAAW,EACxD,IAAY,GAAgB,MAAU,EAAM,UAAU,EACtD,IAAsB,GAAgB,MAAU,EAAM,aAAa,EACnE,IAAe,GAAgB,MAAU,EAAM,aAAa,EAC5D,IAAmB,GAAgB,MAAU,EAAM,iBAAiB,EAGpE,IAAU,QAAc,MAAM,KAAK,EAAW,QAAQ,CAAC,EAAE,CAAC,EAAW,CAAC,EAStE,IAAe,EACnB,OAAO,MAA+C;AACpD,MAAI,CAAC,EACH,QAAO,EAAE;AAGX,MAAI;AAEF,GADA,EAAW,GAAK,EAChB,EAAS,KAAK;GAcd,IAAM,MAZS,MAAM,EAAO,MAAyB;IACnD,OAAO;IACP,WAAW;KACT;KACA,MAAM,GAAS;KACf,QAAQ,GAAS;KACjB,OAAO;KACR;IACD,aAAa;IACd,CAAC,EAEmB,MAAM,aAAa,SAAS,EAAE,EAC1B,KAAK,MAA2B,EAAK,KAAK;AAGnE,UADA,EAAW,EAAW,EACf;WACA,GAAK;AAGZ,UADA,EADc,aAAe,QAAQ,IAAM,gBAAI,MAAM,0BAA0B,CAChE,EACR,EAAE;YACD;AACR,KAAW,GAAM;;IAGrB;EAAC;EAAQ;EAAW;EAAW,CAChC,EAKK,IAAc,EAClB,OAAO,MAAuC;AAC5C,MAAI;AAEF,GADA,EAAW,GAAK,EAChB,EAAS,KAAK;GAQd,IA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A;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Pipeline, PipelineStage, PipelineStatus, PipelineExecution, StageErrorHandling, ParserType } from '../types';
|
|
2
|
+
|
|
3
|
+
interface UsePipelineOperationsOptions {
|
|
4
|
+
consoleId?: string;
|
|
5
|
+
skipFetch?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface PipelineFilters {
|
|
8
|
+
status?: PipelineStatus;
|
|
9
|
+
}
|
|
10
|
+
interface CreatePipelineInput {
|
|
11
|
+
consoleId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
status?: PipelineStatus;
|
|
15
|
+
stages?: CreatePipelineStageInput[];
|
|
16
|
+
metadata?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
interface UpdatePipelineInput {
|
|
19
|
+
name?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
status?: PipelineStatus;
|
|
22
|
+
metadata?: Record<string, unknown>;
|
|
23
|
+
}
|
|
24
|
+
interface CreatePipelineStageInput {
|
|
25
|
+
parserId: string;
|
|
26
|
+
parserName?: string;
|
|
27
|
+
parserType?: ParserType;
|
|
28
|
+
expression?: string;
|
|
29
|
+
inputKey?: string;
|
|
30
|
+
outputKey?: string;
|
|
31
|
+
enabled?: boolean;
|
|
32
|
+
onError?: StageErrorHandling;
|
|
33
|
+
fallbackValue?: unknown;
|
|
34
|
+
description?: string;
|
|
35
|
+
}
|
|
36
|
+
interface UpdatePipelineStageInput {
|
|
37
|
+
parserId?: string;
|
|
38
|
+
parserName?: string;
|
|
39
|
+
parserType?: ParserType;
|
|
40
|
+
expression?: string;
|
|
41
|
+
inputKey?: string;
|
|
42
|
+
outputKey?: string;
|
|
43
|
+
enabled?: boolean;
|
|
44
|
+
onError?: StageErrorHandling;
|
|
45
|
+
fallbackValue?: unknown;
|
|
46
|
+
description?: string;
|
|
47
|
+
}
|
|
48
|
+
interface TestPipelineInput {
|
|
49
|
+
pipelineId: string;
|
|
50
|
+
inputData: string;
|
|
51
|
+
}
|
|
52
|
+
interface ExecutePipelineInput {
|
|
53
|
+
pipelineId: string;
|
|
54
|
+
inputData?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare function usePipelineOperations(options?: UsePipelineOperationsOptions): {
|
|
57
|
+
loading: boolean;
|
|
58
|
+
error: Error | null;
|
|
59
|
+
pipelines: Pipeline[];
|
|
60
|
+
fetchPipelines: (filters?: PipelineFilters) => Promise<Pipeline[]>;
|
|
61
|
+
fetchPipeline: (id: string) => Promise<Pipeline | null>;
|
|
62
|
+
createPipeline: (input: CreatePipelineInput) => Promise<Pipeline | null>;
|
|
63
|
+
updatePipeline: (id: string, input: UpdatePipelineInput, version: number) => Promise<Pipeline | null>;
|
|
64
|
+
deletePipeline: (id: string) => Promise<boolean>;
|
|
65
|
+
addStage: (pipelineId: string, input: CreatePipelineStageInput, version: number) => Promise<Pipeline | null>;
|
|
66
|
+
updateStage: (stageId: string, input: UpdatePipelineStageInput, version: number) => Promise<PipelineStage | null>;
|
|
67
|
+
removeStage: (stageId: string, version: number) => Promise<boolean>;
|
|
68
|
+
reorderStages: (pipelineId: string, stageIds: string[], version: number) => Promise<Pipeline | null>;
|
|
69
|
+
testPipeline: (input: TestPipelineInput) => Promise<PipelineExecution | null>;
|
|
70
|
+
executePipeline: (input: ExecutePipelineInput) => Promise<PipelineExecution | null>;
|
|
71
|
+
getExecution: (id: string) => Promise<PipelineExecution | null>;
|
|
72
|
+
listExecutions: (pipelineId: string) => Promise<PipelineExecution[]>;
|
|
73
|
+
refetch: () => Promise<void>;
|
|
74
|
+
};
|
|
75
|
+
export default usePipelineOperations;
|
|
76
|
+
//# sourceMappingURL=usePipelineOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePipelineOperations.d.ts","sourceRoot":"","sources":["../../../src/bigconsole/hooks/usePipelineOperations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;A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O,CAAC,iBAAiB,GAAG,IAAI,CAAC;uBAiC3D,MAAM,KAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;iCA2BlC,MAAM,KAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;;EAwD3D;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { usePipelineStore as e } from "../store/pipelineStore.js";
|
|
2
|
+
import { CreatePipelineDocument as t, DeletePipelineDocument as n, ExecutePipelineDocument as r, GetPipelineDocument as i, GetPipelineExecutionDocument as a, ListPipelineExecutionsDocument as o, ListPipelinesDocument as s, TestPipelineDocument as c, UpdatePipelineDocument as l } from "../../generated/wspace-operations.js";
|
|
3
|
+
import { useCallback as u, useEffect as d, useMemo as f, useState as p } from "react";
|
|
4
|
+
import { useApolloClient as m } from "@apollo/client/react";
|
|
5
|
+
//#region src/bigconsole/hooks/usePipelineOperations.ts
|
|
6
|
+
function h(h = {}) {
|
|
7
|
+
let { consoleId: g, skipFetch: _ = !1 } = h, [v, y] = p(!1), [b, x] = p(null), S = m(), C = e((e) => e.pipelines), w = e((e) => e.setPipelines), T = e((e) => e.addPipeline), E = e((e) => e.updatePipeline), D = e((e) => e.removePipeline), O = e((e) => e.updateStage), k = e((e) => e.removeStage), A = e((e) => e.setPipelineTesting), j = e((e) => e.setTestExecution), M = e((e) => e.setIsTestRunning), N = f(() => Array.from(C.values()), [C]), P = u(async (e) => {
|
|
8
|
+
if (!g) return [];
|
|
9
|
+
try {
|
|
10
|
+
y(!0), x(null);
|
|
11
|
+
let t = ((await S.query({
|
|
12
|
+
query: s,
|
|
13
|
+
variables: {
|
|
14
|
+
consoleId: g,
|
|
15
|
+
status: e?.status,
|
|
16
|
+
first: 100
|
|
17
|
+
},
|
|
18
|
+
fetchPolicy: "network-only"
|
|
19
|
+
})).data?.listPipelines?.edges || []).map((e) => e.node);
|
|
20
|
+
return w(t), t;
|
|
21
|
+
} catch (e) {
|
|
22
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch pipelines")), [];
|
|
23
|
+
} finally {
|
|
24
|
+
y(!1);
|
|
25
|
+
}
|
|
26
|
+
}, [
|
|
27
|
+
S,
|
|
28
|
+
g,
|
|
29
|
+
w
|
|
30
|
+
]), F = u(async (e) => {
|
|
31
|
+
try {
|
|
32
|
+
y(!0), x(null);
|
|
33
|
+
let t = (await S.query({
|
|
34
|
+
query: i,
|
|
35
|
+
variables: { id: e },
|
|
36
|
+
fetchPolicy: "network-only"
|
|
37
|
+
})).data?.pipeline;
|
|
38
|
+
return t ? (T(t), t) : null;
|
|
39
|
+
} catch (e) {
|
|
40
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch pipeline")), null;
|
|
41
|
+
} finally {
|
|
42
|
+
y(!1);
|
|
43
|
+
}
|
|
44
|
+
}, [S, T]), I = u(async (e) => {
|
|
45
|
+
try {
|
|
46
|
+
y(!0), x(null);
|
|
47
|
+
let n = (await S.mutate({
|
|
48
|
+
mutation: t,
|
|
49
|
+
variables: { input: e }
|
|
50
|
+
})).data?.createPipeline;
|
|
51
|
+
return n ? (T(n), n) : null;
|
|
52
|
+
} catch (e) {
|
|
53
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create pipeline")), null;
|
|
54
|
+
} finally {
|
|
55
|
+
y(!1);
|
|
56
|
+
}
|
|
57
|
+
}, [S, T]), L = u(async (e, t, n) => {
|
|
58
|
+
try {
|
|
59
|
+
y(!0), x(null);
|
|
60
|
+
let r = (await S.mutate({
|
|
61
|
+
mutation: l,
|
|
62
|
+
variables: {
|
|
63
|
+
id: e,
|
|
64
|
+
input: t,
|
|
65
|
+
version: n
|
|
66
|
+
}
|
|
67
|
+
})).data?.updatePipeline;
|
|
68
|
+
return r ? (E(e, r), r) : null;
|
|
69
|
+
} catch (e) {
|
|
70
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update pipeline")), null;
|
|
71
|
+
} finally {
|
|
72
|
+
y(!1);
|
|
73
|
+
}
|
|
74
|
+
}, [S, E]), R = u(async (e) => {
|
|
75
|
+
try {
|
|
76
|
+
return y(!0), x(null), await S.mutate({
|
|
77
|
+
mutation: n,
|
|
78
|
+
variables: { id: e }
|
|
79
|
+
}), D(e), !0;
|
|
80
|
+
} catch (e) {
|
|
81
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete pipeline")), !1;
|
|
82
|
+
} finally {
|
|
83
|
+
y(!1);
|
|
84
|
+
}
|
|
85
|
+
}, [S, D]), z = u(async (e, n, r) => {
|
|
86
|
+
try {
|
|
87
|
+
y(!0), x(null);
|
|
88
|
+
let i = (await S.mutate({
|
|
89
|
+
mutation: t,
|
|
90
|
+
variables: {
|
|
91
|
+
pipelineId: e,
|
|
92
|
+
input: n,
|
|
93
|
+
version: r
|
|
94
|
+
}
|
|
95
|
+
})).data?.addPipelineStage;
|
|
96
|
+
return i ? (E(e, i), i) : null;
|
|
97
|
+
} catch (e) {
|
|
98
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to add stage")), null;
|
|
99
|
+
} finally {
|
|
100
|
+
y(!1);
|
|
101
|
+
}
|
|
102
|
+
}, [S, E]), B = u(async (e, t, n) => {
|
|
103
|
+
try {
|
|
104
|
+
y(!0), x(null);
|
|
105
|
+
let r = (await S.mutate({
|
|
106
|
+
mutation: l,
|
|
107
|
+
variables: {
|
|
108
|
+
stageId: e,
|
|
109
|
+
input: t,
|
|
110
|
+
version: n
|
|
111
|
+
}
|
|
112
|
+
})).data?.updatePipelineStage;
|
|
113
|
+
if (r) {
|
|
114
|
+
let t = Array.from(C.values()).find((t) => t.stages?.some((t) => t.id === e));
|
|
115
|
+
if (t) {
|
|
116
|
+
let n = t.stages?.findIndex((t) => t.id === e);
|
|
117
|
+
n !== void 0 && n >= 0 && O(t.id, n, r);
|
|
118
|
+
}
|
|
119
|
+
return r;
|
|
120
|
+
}
|
|
121
|
+
return null;
|
|
122
|
+
} catch (e) {
|
|
123
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update stage")), null;
|
|
124
|
+
} finally {
|
|
125
|
+
y(!1);
|
|
126
|
+
}
|
|
127
|
+
}, [
|
|
128
|
+
S,
|
|
129
|
+
C,
|
|
130
|
+
O
|
|
131
|
+
]), V = u(async (e, t) => {
|
|
132
|
+
try {
|
|
133
|
+
y(!0), x(null), await S.mutate({
|
|
134
|
+
mutation: n,
|
|
135
|
+
variables: {
|
|
136
|
+
stageId: e,
|
|
137
|
+
version: t
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
let r = Array.from(C.values()).find((t) => t.stages?.some((t) => t.id === e));
|
|
141
|
+
if (r) {
|
|
142
|
+
let t = r.stages?.findIndex((t) => t.id === e);
|
|
143
|
+
t !== void 0 && t >= 0 && k(r.id, t);
|
|
144
|
+
}
|
|
145
|
+
return !0;
|
|
146
|
+
} catch (e) {
|
|
147
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to remove stage")), !1;
|
|
148
|
+
} finally {
|
|
149
|
+
y(!1);
|
|
150
|
+
}
|
|
151
|
+
}, [
|
|
152
|
+
S,
|
|
153
|
+
C,
|
|
154
|
+
k
|
|
155
|
+
]), H = u(async (e, t, n) => {
|
|
156
|
+
try {
|
|
157
|
+
y(!0), x(null);
|
|
158
|
+
let r = (await S.mutate({
|
|
159
|
+
mutation: l,
|
|
160
|
+
variables: {
|
|
161
|
+
pipelineId: e,
|
|
162
|
+
stageIds: t,
|
|
163
|
+
version: n
|
|
164
|
+
}
|
|
165
|
+
})).data?.reorderPipelineStages;
|
|
166
|
+
return r ? (E(e, r), r) : null;
|
|
167
|
+
} catch (e) {
|
|
168
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to reorder stages")), null;
|
|
169
|
+
} finally {
|
|
170
|
+
y(!1);
|
|
171
|
+
}
|
|
172
|
+
}, [S, E]), U = u(async (e) => {
|
|
173
|
+
try {
|
|
174
|
+
y(!0), x(null), M(!0), A(e.pipelineId, !0);
|
|
175
|
+
let t = (await S.mutate({
|
|
176
|
+
mutation: c,
|
|
177
|
+
variables: { input: e }
|
|
178
|
+
})).data?.testPipeline;
|
|
179
|
+
return t ? (j(t), t) : null;
|
|
180
|
+
} catch (e) {
|
|
181
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to test pipeline")), null;
|
|
182
|
+
} finally {
|
|
183
|
+
y(!1), M(!1), A(e.pipelineId, !1);
|
|
184
|
+
}
|
|
185
|
+
}, [
|
|
186
|
+
S,
|
|
187
|
+
M,
|
|
188
|
+
A,
|
|
189
|
+
j
|
|
190
|
+
]), W = u(async (e) => {
|
|
191
|
+
try {
|
|
192
|
+
return y(!0), x(null), A(e.pipelineId, !0), (await S.mutate({
|
|
193
|
+
mutation: r,
|
|
194
|
+
variables: { input: e }
|
|
195
|
+
})).data?.executePipeline || null;
|
|
196
|
+
} catch (e) {
|
|
197
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to execute pipeline")), null;
|
|
198
|
+
} finally {
|
|
199
|
+
y(!1), A(e.pipelineId, !1);
|
|
200
|
+
}
|
|
201
|
+
}, [S, A]), G = u(async (e) => {
|
|
202
|
+
try {
|
|
203
|
+
return y(!0), x(null), (await S.query({
|
|
204
|
+
query: a,
|
|
205
|
+
variables: { id: e },
|
|
206
|
+
fetchPolicy: "network-only"
|
|
207
|
+
})).data?.pipelineExecution || null;
|
|
208
|
+
} catch (e) {
|
|
209
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to get execution")), null;
|
|
210
|
+
} finally {
|
|
211
|
+
y(!1);
|
|
212
|
+
}
|
|
213
|
+
}, [S]), K = u(async (e) => {
|
|
214
|
+
try {
|
|
215
|
+
return y(!0), x(null), (await S.query({
|
|
216
|
+
query: o,
|
|
217
|
+
variables: {
|
|
218
|
+
pipelineId: e,
|
|
219
|
+
first: 50
|
|
220
|
+
},
|
|
221
|
+
fetchPolicy: "network-only"
|
|
222
|
+
})).data?.listPipelineExecutions || [];
|
|
223
|
+
} catch (e) {
|
|
224
|
+
return x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to list executions")), [];
|
|
225
|
+
} finally {
|
|
226
|
+
y(!1);
|
|
227
|
+
}
|
|
228
|
+
}, [S]), q = u(async () => {
|
|
229
|
+
await P();
|
|
230
|
+
}, [P]);
|
|
231
|
+
return d(() => {
|
|
232
|
+
g && !_ && P();
|
|
233
|
+
}, [
|
|
234
|
+
g,
|
|
235
|
+
_,
|
|
236
|
+
P
|
|
237
|
+
]), {
|
|
238
|
+
loading: v,
|
|
239
|
+
error: b,
|
|
240
|
+
pipelines: N,
|
|
241
|
+
fetchPipelines: P,
|
|
242
|
+
fetchPipeline: F,
|
|
243
|
+
createPipeline: I,
|
|
244
|
+
updatePipeline: L,
|
|
245
|
+
deletePipeline: R,
|
|
246
|
+
addStage: z,
|
|
247
|
+
updateStage: B,
|
|
248
|
+
removeStage: V,
|
|
249
|
+
reorderStages: H,
|
|
250
|
+
testPipeline: U,
|
|
251
|
+
executePipeline: W,
|
|
252
|
+
getExecution: G,
|
|
253
|
+
listExecutions: K,
|
|
254
|
+
refetch: q
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
//#endregion
|
|
258
|
+
export { h as default };
|
|
259
|
+
|
|
260
|
+
//# sourceMappingURL=usePipelineOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePipelineOperations.js","names":[],"sources":["../../../src/bigconsole/hooks/usePipelineOperations.ts"],"sourcesContent":["/**\n * Pipeline Operations Hook\n *\n * Custom hook for Pipeline CRUD operations with Apollo Client.\n * Integrates with the Pipeline Zustand store for state management.\n */\n\nimport { useState, useMemo, useCallback, useEffect } from 'react';\nimport { useApolloClient } from '@apollo/client/react';\nimport { usePipelineStore } from '../store/pipelineStore';\nimport {\n ListPipelinesDocument,\n GetPipelineDocument,\n CreatePipelineDocument,\n UpdatePipelineDocument,\n DeletePipelineDocument,\n TestPipelineDocument,\n ExecutePipelineDocument,\n GetPipelineExecutionDocument,\n ListPipelineExecutionsDocument,\n} from '../../generated/wspace-operations';\nimport type {\n Pipeline,\n PipelineStage,\n PipelineStatus,\n PipelineExecution,\n StageErrorHandling,\n ParserType,\n} from '../types';\n\n// ============================================================================\n// TYPES\n// ============================================================================\n\ninterface UsePipelineOperationsOptions {\n consoleId?: string;\n skipFetch?: boolean;\n}\n\ninterface PipelineFilters {\n status?: PipelineStatus;\n}\n\ninterface CreatePipelineInput {\n consoleId: string;\n name: string;\n description?: string;\n status?: PipelineStatus;\n stages?: CreatePipelineStageInput[];\n metadata?: Record<string, unknown>;\n}\n\ninterface UpdatePipelineInput {\n name?: string;\n description?: string;\n status?: PipelineStatus;\n metadata?: Record<string, unknown>;\n}\n\ninterface CreatePipelineStageInput {\n parserId: string;\n parserName?: string;\n parserType?: ParserType;\n expression?: string;\n inputKey?: string;\n outputKey?: string;\n enabled?: boolean;\n onError?: StageErrorHandling;\n fallbackValue?: unknown;\n description?: string;\n}\n\ninterface UpdatePipelineStageInput {\n parserId?: string;\n parserName?: string;\n parserType?: ParserType;\n expression?: string;\n inputKey?: string;\n outputKey?: string;\n enabled?: boolean;\n onError?: StageErrorHandling;\n fallbackValue?: unknown;\n description?: string;\n}\n\ninterface TestPipelineInput {\n pipelineId: string;\n inputData: string; // JSON string\n}\n\ninterface ExecutePipelineInput {\n pipelineId: string;\n inputData?: string; // JSON string\n}\n\n// ============================================================================\n// GRAPHQL RESULT TYPES\n// ============================================================================\n\ninterface ListPipelinesResult {\n listPipelines?: {\n edges: Array<{ node: Pipeline; cursor: string }>;\n pageInfo?: { hasNextPage: boolean; endCursor?: string };\n totalCount?: number;\n };\n}\n\ninterface GetPipelineResult {\n pipeline?: Pipeline;\n}\n\ninterface CreatePipelineResult {\n createPipeline?: Pipeline;\n}\n\ninterface UpdatePipelineResult {\n updatePipeline?: Pipeline;\n}\n\ninterface DeletePipelineResult {\n deletePipeline?: boolean;\n}\n\ninterface AddPipelineStageResult {\n addPipelineStage?: Pipeline;\n}\n\ninterface UpdatePipelineStageResult {\n updatePipelineStage?: PipelineStage;\n}\n\ninterface RemovePipelineStageResult {\n removePipelineStage?: { id: string };\n}\n\ninterface ReorderPipelineStagesResult {\n reorderPipelineStages?: Pipeline;\n}\n\ninterface TestPipelineResult {\n testPipeline?: PipelineExecution;\n}\n\ninterface ExecutePipelineResult {\n executePipeline?: PipelineExecution;\n}\n\ninterface GetPipelineExecutionResult {\n pipelineExecution?: PipelineExecution;\n}\n\ninterface ListPipelineExecutionsResult {\n listPipelineExecutions?: PipelineExecution[];\n}\n\n// ============================================================================\n// HOOK\n// ============================================================================\n\nexport function usePipelineOperations(options: UsePipelineOperationsOptions = {}) {\n const { consoleId, skipFetch = false } = options;\n\n // Local state\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n\n // Apollo client\n const client = useApolloClient();\n\n // Store selectors and actions\n const pipelinesMap = usePipelineStore((state) => state.pipelines);\n const setPipelines = usePipelineStore((state) => state.setPipelines);\n const addPipeline = usePipelineStore((state) => state.addPipeline);\n const updatePipelineInStore = usePipelineStore((state) => state.updatePipeline);\n const removePipeline = usePipelineStore((state) => state.removePipeline);\n const updateStageInStore = usePipelineStore((state) => state.updateStage);\n const removeStageFromStore = usePipelineStore((state) => state.removeStage);\n const setPipelineTesting = usePipelineStore((state) => state.setPipelineTesting);\n const setTestExecution = usePipelineStore((state) => state.setTestExecution);\n const setIsTestRunning = usePipelineStore((state) => state.setIsTestRunning);\n\n // Memoized array of pipelines\n const pipelines = useMemo(() => Array.from(pipelinesMap.values()), [pipelinesMap]);\n\n // ============================================================================\n // OPERATIONS\n // ============================================================================\n\n /**\n * Fetch all pipelines with optional filters\n */\n const fetchPipelines = useCallback(\n async (filters?: PipelineFilters): Promise<Pipeline[]> => {\n if (!consoleId) {\n return [];\n }\n\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.query<ListPipelinesResult>({\n query: ListPipelinesDocument,\n variables: {\n consoleId,\n status: filters?.status,\n first: 100,\n },\n fetchPolicy: 'network-only',\n });\n\n const edges = result.data?.listPipelines?.edges || [];\n const normalized = edges.map((edge: { node: Pipeline }) => edge.node);\n\n setPipelines(normalized);\n return normalized;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to fetch pipelines');\n setError(error);\n return [];\n } finally {\n setLoading(false);\n }\n },\n [client, consoleId, setPipelines]\n );\n\n /**\n * Fetch a single pipeline by ID\n */\n const fetchPipeline = useCallback(\n async (id: string): Promise<Pipeline | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.query<GetPipelineResult>({\n query: GetPipelineDocument,\n variables: { id },\n fetchPolicy: 'network-only',\n });\n\n const pipeline = result.data?.pipeline;\n if (pipeline) {\n addPipeline(pipeline);\n return pipeline;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to fetch pipeline');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, addPipeline]\n );\n\n /**\n * Create a new pipeline\n */\n const createPipeline = useCallback(\n async (input: CreatePipelineInput): Promise<Pipeline | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.mutate<CreatePipelineResult>({\n mutation: CreatePipelineDocument,\n variables: { input },\n });\n\n const pipeline = result.data?.createPipeline;\n if (pipeline) {\n addPipeline(pipeline);\n return pipeline;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to create pipeline');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, addPipeline]\n );\n\n /**\n * Update an existing pipeline\n */\n const updatePipeline = useCallback(\n async (id: string, input: UpdatePipelineInput, version: number): Promise<Pipeline | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.mutate<UpdatePipelineResult>({\n mutation: UpdatePipelineDocument,\n variables: { id, input, version },\n });\n\n const pipeline = result.data?.updatePipeline;\n if (pipeline) {\n updatePipelineInStore(id, pipeline);\n return pipeline;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to update pipeline');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, updatePipelineInStore]\n );\n\n /**\n * Delete a pipeline\n */\n const deletePipeline = useCallback(\n async (id: string): Promise<boolean> => {\n try {\n setLoading(true);\n setError(null);\n\n await client.mutate<DeletePipelineResult>({\n mutation: DeletePipelineDocument,\n variables: { id },\n });\n\n removePipeline(id);\n return true;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to delete pipeline');\n setError(error);\n return false;\n } finally {\n setLoading(false);\n }\n },\n [client, removePipeline]\n );\n\n /**\n * Add a stage to a pipeline\n */\n const addStage = useCallback(\n async (pipelineId: string, input: CreatePipelineStageInput, version: number): Promise<Pipeline | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.mutate<AddPipelineStageResult>({\n mutation: CreatePipelineDocument, // Note: addStage is not available in schema, using create pipeline\n variables: { pipelineId, input, version },\n });\n\n const pipeline = result.data?.addPipelineStage;\n if (pipeline) {\n updatePipelineInStore(pipelineId, pipeline);\n return pipeline;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to add stage');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, updatePipelineInStore]\n );\n\n /**\n * Update a pipeline stage\n */\n const updateStage = useCallback(\n async (stageId: string, input: UpdatePipelineStageInput, version: number): Promise<PipelineStage | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.mutate<UpdatePipelineStageResult>({\n mutation: UpdatePipelineDocument, // Note: updateStage is not available in schema, using update pipeline\n variables: { stageId, input, version },\n });\n\n const stage = result.data?.updatePipelineStage;\n if (stage) {\n // Find pipeline containing this stage and update\n const pipeline = Array.from(pipelinesMap.values()).find((p) => p.stages?.some((s) => s.id === stageId));\n if (pipeline) {\n const stageIndex = pipeline.stages?.findIndex((s) => s.id === stageId);\n if (stageIndex !== undefined && stageIndex >= 0) {\n updateStageInStore(pipeline.id, stageIndex, stage);\n }\n }\n return stage;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to update stage');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, pipelinesMap, updateStageInStore]\n );\n\n /**\n * Remove a stage from a pipeline\n */\n const removeStage = useCallback(\n async (stageId: string, version: number): Promise<boolean> => {\n try {\n setLoading(true);\n setError(null);\n\n await client.mutate<RemovePipelineStageResult>({\n mutation: DeletePipelineDocument, // Note: removeStage is not available in schema\n variables: { stageId, version },\n });\n\n // Find pipeline containing this stage and remove\n const pipeline = Array.from(pipelinesMap.values()).find((p) => p.stages?.some((s) => s.id === stageId));\n if (pipeline) {\n const stageIndex = pipeline.stages?.findIndex((s) => s.id === stageId);\n if (stageIndex !== undefined && stageIndex >= 0) {\n removeStageFromStore(pipeline.id, stageIndex);\n }\n }\n\n return true;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to remove stage');\n setError(error);\n return false;\n } finally {\n setLoading(false);\n }\n },\n [client, pipelinesMap, removeStageFromStore]\n );\n\n /**\n * Reorder stages in a pipeline\n */\n const reorderStages = useCallback(\n async (pipelineId: string, stageIds: string[], version: number): Promise<Pipeline | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.mutate<ReorderPipelineStagesResult>({\n mutation: UpdatePipelineDocument, // Note: reorderStages is not available in schema\n variables: { pipelineId, stageIds, version },\n });\n\n const pipeline = result.data?.reorderPipelineStages;\n if (pipeline) {\n updatePipelineInStore(pipelineId, pipeline);\n return pipeline;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to reorder stages');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client, updatePipelineInStore]\n );\n\n /**\n * Test a pipeline with sample input (dry run)\n */\n const testPipeline = useCallback(\n async (input: TestPipelineInput): Promise<PipelineExecution | null> => {\n try {\n setLoading(true);\n setError(null);\n setIsTestRunning(true);\n setPipelineTesting(input.pipelineId, true);\n\n const result = await client.mutate<TestPipelineResult>({\n mutation: TestPipelineDocument,\n variables: { input },\n });\n\n const execution = result.data?.testPipeline;\n if (execution) {\n setTestExecution(execution);\n return execution;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to test pipeline');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n setIsTestRunning(false);\n setPipelineTesting(input.pipelineId, false);\n }\n },\n [client, setIsTestRunning, setPipelineTesting, setTestExecution]\n );\n\n /**\n * Execute a pipeline for real\n */\n const executePipeline = useCallback(\n async (input: ExecutePipelineInput): Promise<PipelineExecution | null> => {\n try {\n setLoading(true);\n setError(null);\n setPipelineTesting(input.pipelineId, true);\n\n const result = await client.mutate<ExecutePipelineResult>({\n mutation: ExecutePipelineDocument,\n variables: { input },\n });\n\n const execution = result.data?.executePipeline;\n if (execution) {\n return execution;\n }\n\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to execute pipeline');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n setPipelineTesting(input.pipelineId, false);\n }\n },\n [client, setPipelineTesting]\n );\n\n /**\n * Get a specific pipeline execution by ID\n */\n const getExecution = useCallback(\n async (id: string): Promise<PipelineExecution | null> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.query<GetPipelineExecutionResult>({\n query: GetPipelineExecutionDocument,\n variables: { id },\n fetchPolicy: 'network-only',\n });\n\n return result.data?.pipelineExecution || null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to get execution');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client]\n );\n\n /**\n * List executions for a pipeline\n */\n const listExecutions = useCallback(\n async (pipelineId: string): Promise<PipelineExecution[]> => {\n try {\n setLoading(true);\n setError(null);\n\n const result = await client.query<ListPipelineExecutionsResult>({\n query: ListPipelineExecutionsDocument,\n variables: { pipelineId, first: 50 },\n fetchPolicy: 'network-only',\n });\n\n return result.data?.listPipelineExecutions || [];\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to list executions');\n setError(error);\n return [];\n } finally {\n setLoading(false);\n }\n },\n [client]\n );\n\n /**\n * Refetch all pipelines\n */\n const refetch = useCallback(async () => {\n await fetchPipelines();\n }, [fetchPipelines]);\n\n // Auto-fetch on mount if not skipped\n useEffect(() => {\n if (consoleId && !skipFetch) {\n fetchPipelines();\n }\n }, [consoleId, skipFetch, fetchPipelines]);\n\n return {\n loading,\n error,\n pipelines,\n fetchPipelines,\n fetchPipeline,\n createPipeline,\n updatePipeline,\n deletePipeline,\n addStage,\n updateStage,\n removeStage,\n reorderStages,\n testPipeline,\n executePipeline,\n getExecution,\n listExecutions,\n refetch,\n };\n}\n\nexport default usePipelineOperations;\n"],"mappings":";;;;;AA+JA,SAAgB,EAAsB,IAAwC,EAAE,EAAE;CAChF,IAAM,EAAE,cAAW,eAAY,OAAU,GAGnC,CAAC,GAAS,KAAc,EAAS,GAAM,EACvC,CAAC,GAAO,KAAY,EAAuB,KAAK,EAGhD,IAAS,GAAiB,EAG1B,IAAe,GAAkB,MAAU,EAAM,UAAU,EAC3D,IAAe,GAAkB,MAAU,EAAM,aAAa,EAC9D,IAAc,GAAkB,MAAU,EAAM,YAAY,EAC5D,IAAwB,GAAkB,MAAU,EAAM,eAAe,EACzE,IAAiB,GAAkB,MAAU,EAAM,eAAe,EAClE,IAAqB,GAAkB,MAAU,EAAM,YAAY,EACnE,IAAuB,GAAkB,MAAU,EAAM,YAAY,EACrE,IAAqB,GAAkB,MAAU,EAAM,mBAAmB,EAC1E,IAAmB,GAAkB,MAAU,EAAM,iBAAiB,EACtE,IAAmB,GAAkB,MAAU,EAAM,iBAAiB,EAGtE,IAAY,QAAc,MAAM,KAAK,EAAa,QAAQ,CAAC,EAAE,CAAC,EAAa,CAAC,EAS5E,IAAiB,EACrB,OAAO,MAAmD;AACxD,MAAI,CAAC,EACH,QAAO,EAAE;AAGX,MAAI;AAEF,GADA,EAAW,GAAK,EAChB,EAAS,KAAK;GAad,IAAM,MAXS,MAAM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Q,IAAM,gBAAI,MAAM,0BAA0B,CAChE,EACR;YACC;AACR,KAAW,GAAM;;IAGrB,CAAC,EAAO,CACT,EAKK,IAAiB,EACrB,OAAO,MAAqD;AAC1D,MAAI;AAUF,UATA,EAAW,GAAK,EAChB,EAAS,KAAK,GAEC,MAAM,EAAO,MAAoC;IAC9D,OAAO;IACP,WAAW;KAAE;KAAY,OAAO;KAAI;IACpC,aAAa;IACd,CAAC,EAEY,MAAM,0BAA0B,EAAE;WACzC,GAAK;AAGZ,UADA,EADc,aAAe,QAAQ,IAAM,gBAAI,MAAM,4BAA4B,CAClE,EACR,EAAE;YACD;AACR,KAAW,GAAM;;IAGrB,CAAC,EAAO,CACT,EAKK,IAAU,EAAY,YAAY;AACtC,QAAM,GAAgB;IACrB,CAAC,EAAe,CAAC;AASpB,QANA,QAAgB;AACd,EAAI,KAAa,CAAC,KAChB,GAAgB;IAEjB;EAAC;EAAW;EAAW;EAAe,CAAC,EAEnC;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ActionType, ActionStyle, ActionConfirmation, WidgetAction } from '../types';
|
|
2
|
+
|
|
3
|
+
export type { ActionType, ActionStyle, ActionConfirmation, WidgetAction };
|
|
4
|
+
export interface CreateWidgetActionInput {
|
|
5
|
+
widgetId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
label: string;
|
|
8
|
+
type?: ActionType;
|
|
9
|
+
style?: ActionStyle;
|
|
10
|
+
icon?: string | null;
|
|
11
|
+
confirmation?: ActionConfirmation | null;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
order?: number;
|
|
15
|
+
metadata?: Record<string, unknown> | null;
|
|
16
|
+
}
|
|
17
|
+
export interface UpdateWidgetActionInput {
|
|
18
|
+
id: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
type?: ActionType;
|
|
22
|
+
style?: ActionStyle;
|
|
23
|
+
icon?: string | null;
|
|
24
|
+
confirmation?: ActionConfirmation | null;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
hidden?: boolean;
|
|
27
|
+
order?: number;
|
|
28
|
+
metadata?: Record<string, unknown> | null;
|
|
29
|
+
}
|
|
30
|
+
export interface UseWidgetActionsOptions {
|
|
31
|
+
/** Whether to skip fetching actions on mount */
|
|
32
|
+
skipFetch?: boolean;
|
|
33
|
+
/** Callback when actions are loaded */
|
|
34
|
+
onActionsLoaded?: (actions: WidgetAction[]) => void;
|
|
35
|
+
/** Callback when an action is created */
|
|
36
|
+
onActionCreated?: (action: WidgetAction) => void;
|
|
37
|
+
/** Callback when an action is updated */
|
|
38
|
+
onActionUpdated?: (action: WidgetAction) => void;
|
|
39
|
+
/** Callback when an action is deleted */
|
|
40
|
+
onActionDeleted?: (actionId: string) => void;
|
|
41
|
+
/** Callback when actions are reordered */
|
|
42
|
+
onActionsReordered?: (actions: {
|
|
43
|
+
id: string;
|
|
44
|
+
order: number;
|
|
45
|
+
}[]) => void;
|
|
46
|
+
/** Callback on error */
|
|
47
|
+
onError?: (error: Error) => void;
|
|
48
|
+
}
|
|
49
|
+
export interface UseWidgetActionsResult {
|
|
50
|
+
/** Loading state */
|
|
51
|
+
loading: boolean;
|
|
52
|
+
/** Error state */
|
|
53
|
+
error: Error | null;
|
|
54
|
+
/** List of widget actions */
|
|
55
|
+
actions: WidgetAction[];
|
|
56
|
+
/** Create a new action */
|
|
57
|
+
createAction: (input: Omit<CreateWidgetActionInput, 'widgetId'>) => Promise<WidgetAction | null>;
|
|
58
|
+
/** Update an existing action */
|
|
59
|
+
updateAction: (input: UpdateWidgetActionInput) => Promise<WidgetAction | null>;
|
|
60
|
+
/** Delete an action */
|
|
61
|
+
deleteAction: (actionId: string) => Promise<boolean>;
|
|
62
|
+
/** Reorder actions */
|
|
63
|
+
reorderActions: (actionIds: string[]) => Promise<boolean>;
|
|
64
|
+
/** Refetch actions */
|
|
65
|
+
refetch: () => void;
|
|
66
|
+
}
|
|
67
|
+
export declare function useWidgetActions(widgetId: string | undefined, options?: UseWidgetActionsOptions): UseWidgetActionsResult;
|
|
68
|
+
export default useWidgetActions;
|
|
69
|
+
//# sourceMappingURL=useWidgetActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWidgetActions.d.ts","sourceRoot":"","sources":["../../../src/bigconsole/hooks/useWidgetActions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAO1F,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAC;AAE1E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAA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