@burdenoff/microfe-bigconsole 2026.1016.2 → 2026.1017.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/AdminRoot.d.ts +0 -1
- package/dist/bigconsole/AdminRoutes.d.ts +1 -1
- package/dist/bigconsole/BigConsoleRoot.d.ts +0 -1
- package/dist/bigconsole/BigConsoleRoutes.d.ts +1 -2
- package/dist/bigconsole/assistant/assistantApi.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantProduct.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantPrompt.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantRunPersistence.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantRuntime.d.ts +0 -1
- package/dist/bigconsole/assistant/conversationHistoryApi.d.ts +0 -1
- package/dist/bigconsole/assistant/displayCopy.d.ts +0 -1
- package/dist/bigconsole/assistant/modes.d.ts +0 -1
- package/dist/bigconsole/assistant/pageControls.d.ts +0 -1
- package/dist/bigconsole/assistant/previewControl.d.ts +0 -1
- package/dist/bigconsole/assistant/previewController.d.ts +0 -1
- package/dist/bigconsole/assistant/previewRunAction.d.ts +0 -1
- package/dist/bigconsole/assistant/recordAdapters.d.ts +0 -1
- package/dist/bigconsole/components/DrilldownDashboardRenderer.d.ts +0 -1
- package/dist/bigconsole/components/DrilldownModal.d.ts +0 -1
- package/dist/bigconsole/components/builder/BuilderCanvas.d.ts +0 -1
- package/dist/bigconsole/components/builder/BuilderTopbar.d.ts +0 -1
- package/dist/bigconsole/components/builder/DashboardEditorShell.d.ts +0 -1
- package/dist/bigconsole/components/builder/WidgetInspector.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/AdvancedSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/GeneralSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/LayoutSection.d.ts +0 -1
- package/dist/bigconsole/components/common/Section.d.ts +0 -1
- package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +19 -19
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.d.ts +1 -2
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.d.ts +1 -2
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +7 -7
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.d.ts +1 -2
- package/dist/bigconsole/components/datasink/AlertRuleEditor.d.ts +1 -2
- package/dist/bigconsole/components/datasink/ConfigurationForm.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkCard.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.d.ts +0 -1
- package/dist/bigconsole/components/datasink/SetupStateBadge.d.ts +0 -1
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.d.ts +0 -1
- package/dist/bigconsole/components/embed/EmbedErrorBoundary.d.ts +0 -1
- package/dist/bigconsole/components/embed/EmbedWidgetRenderer.d.ts +1 -2
- package/dist/bigconsole/components/embed/ReadOnlyDashboardRenderer.d.ts +1 -2
- package/dist/bigconsole/components/embed/drilldown.d.ts +0 -1
- package/dist/bigconsole/components/embed/renderer-manifest.d.ts +0 -1
- package/dist/bigconsole/components/embed/types.d.ts +0 -1
- package/dist/bigconsole/components/embed/validate.d.ts +0 -1
- package/dist/bigconsole/components/embed/widgetShim.d.ts +0 -1
- package/dist/bigconsole/components/embed/widgets/CalendarEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ChartEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/EmbedFrame.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/FormEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/GaugeEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/KanbanEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/KpiComparisonEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ListEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/MetricCardEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/PivotEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ProgressEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/RetentionEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TableEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TextEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TimelineEmbed.d.ts +1 -2
- package/dist/bigconsole/components/insights/GeneratedFormattingReview.d.ts +2 -2
- package/dist/bigconsole/components/overview/DashboardGuide.d.ts +0 -1
- package/dist/bigconsole/components/overview/DataHealthCard.d.ts +0 -1
- package/dist/bigconsole/components/overview/OverviewQuickActions.d.ts +0 -1
- package/dist/bigconsole/components/overview/OverviewStatCard.d.ts +0 -1
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.d.ts +0 -1
- package/dist/bigconsole/components/overview/overviewModel.d.ts +0 -1
- package/dist/bigconsole/components/overview/useOverviewData.d.ts +0 -1
- package/dist/bigconsole/components/overview/useOverviewData.js +47 -42
- package/dist/bigconsole/components/parser/DataSinkSelector.d.ts +0 -1
- package/dist/bigconsole/components/parser/ExportParserDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ExpressionEditor.d.ts +0 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserBuilder.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserCard.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserFormDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserSelector.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserTypeBadge.d.ts +0 -1
- package/dist/bigconsole/components/parser/TestPanel.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +1 -1
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/preview/AiPreviewContent.d.ts +4 -4
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.d.ts +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.d.ts +1 -1
- package/dist/bigconsole/components/preview/parserPreview.d.ts +6 -8
- package/dist/bigconsole/components/preview/previewShared.d.ts +1 -2
- package/dist/bigconsole/components/widgets/ActionConfigDialog.d.ts +0 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -287
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetMenu.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetRegistry.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +0 -1
- package/dist/bigconsole/components/widgets/actionConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.d.ts +1 -2
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.d.ts +0 -1
- package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarView.d.ts +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartLegend.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/ComboChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/numericSeries.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +0 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.d.ts +0 -1
- package/dist/bigconsole/components/widgets/custom/CustomWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.d.ts +0 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/funnel/index.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanView.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListItem.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.d.ts +0 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressBar.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/ErrorState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/LoadingState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableCell.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableHeader.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TablePagination.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +34 -25
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowCard.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +2 -4
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +20 -53
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +1 -1
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/workflow/workflowDesignProjection.d.ts +12 -0
- package/dist/bigconsole/components/workflow/workflowDesignProjection.js +42 -0
- package/dist/bigconsole/context/BigConsoleContext.d.ts +1 -2
- package/dist/bigconsole/contexts/CrossFilterContext.d.ts +0 -1
- package/dist/bigconsole/contexts/NavigationContext.d.ts +1 -2
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.d.ts +0 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.d.ts +0 -1
- package/dist/bigconsole/customWidget/proposalPreview.d.ts +1 -2
- package/dist/bigconsole/customWidget/proposalSource.d.ts +0 -1
- package/dist/bigconsole/graphql/widgetCapabilities.d.ts +0 -1
- package/dist/bigconsole/hooks/index.js +2 -2
- package/dist/bigconsole/hooks/mutationInputEnums.d.ts +5 -0
- package/dist/bigconsole/hooks/mutationInputEnums.js +32 -0
- package/dist/bigconsole/hooks/useDashboardEmbedPolicy.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardImageExport.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardTemplates.js +0 -1
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +16 -32
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts +0 -1
- package/dist/bigconsole/hooks/useDrilldown.d.ts +0 -1
- package/dist/bigconsole/hooks/useDrilldownOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useEventLogs.d.ts +0 -6
- package/dist/bigconsole/hooks/useEventLogs.js +152 -60
- package/dist/bigconsole/hooks/useEventWebhooks.d.ts +0 -6
- package/dist/bigconsole/hooks/useEventWebhooks.js +132 -72
- package/dist/bigconsole/hooks/useInstalledWidgets.d.ts +0 -1
- package/dist/bigconsole/hooks/useModalFocusTrap.d.ts +0 -1
- package/dist/bigconsole/hooks/usePageOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useParserOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useQueryLifecycle.d.ts +8 -0
- package/dist/bigconsole/hooks/useQueryLifecycle.js +71 -0
- package/dist/bigconsole/hooks/useShareRecipients.d.ts +0 -1
- package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +45 -42
- package/dist/bigconsole/hooks/useWidgetActions.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetActions.js +112 -65
- package/dist/bigconsole/hooks/useWidgetCatalog.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetCatalog.js +17 -17
- package/dist/bigconsole/hooks/useWidgetComments.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetComments.js +49 -46
- package/dist/bigconsole/hooks/useWidgetConfigPersist.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetData.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetData.js +57 -52
- package/dist/bigconsole/hooks/useWidgetExport.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useWorkflowOperations.d.ts +0 -1
- package/dist/bigconsole/pages/AdminPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardViewPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardsPage.d.ts +0 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts +1 -1
- package/dist/bigconsole/pages/DataSinksPage.d.ts +0 -1
- package/dist/bigconsole/pages/DataSourcesPage.d.ts +1 -1
- package/dist/bigconsole/pages/InsightsPage.d.ts +0 -1
- package/dist/bigconsole/pages/OverviewPage.d.ts +0 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts +0 -1
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts +0 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.d.ts +1 -2
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +0 -1
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.d.ts +0 -1
- package/dist/bigconsole/renderers/registry/RendererRegistry.d.ts +0 -1
- package/dist/bigconsole/renderers/types/renderer.d.ts +0 -1
- package/dist/bigconsole/store/dashboardStore.d.ts +0 -1
- package/dist/bigconsole/store/dataSinkStore.d.ts +0 -1
- package/dist/bigconsole/store/parserStore.d.ts +0 -1
- package/dist/bigconsole/store/pipelineStore.d.ts +0 -1
- package/dist/bigconsole/store/widgetStore.d.ts +0 -1
- package/dist/bigconsole/store/workflowStore.d.ts +0 -1
- package/dist/bigconsole/types/index.d.ts +0 -1
- package/dist/bigconsole/utils/advancedWidgetCapabilities.d.ts +0 -1
- package/dist/bigconsole/utils/alertRules.d.ts +0 -1
- package/dist/bigconsole/utils/dashboardList.d.ts +0 -1
- package/dist/bigconsole/utils/dashboardTemplateContent.d.ts +0 -1
- package/dist/bigconsole/utils/dataSinkList.d.ts +0 -1
- package/dist/bigconsole/utils/quota.d.ts +0 -1
- package/dist/bigconsole/utils/sanitizeHtml.d.ts +0 -1
- package/dist/bigconsole/utils/templateInstallInputs.d.ts +0 -1
- package/dist/bigconsole/utils/widgetBinding.d.ts +0 -1
- package/dist/bigconsole/utils/widgetDisplayData.d.ts +0 -1
- package/dist/bigconsole/utils/widgetPositioning.d.ts +0 -1
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts +0 -1
- package/dist/bigconsole/workflowOpen.d.ts +0 -1
- package/dist/generated/global-operations.d.ts +177 -137
- package/dist/generated/global-operations.js +541 -63
- package/dist/generated/global-types.d.ts +2 -21
- package/dist/generated/wspace-operations.d.ts +3277 -6802
- package/dist/generated/wspace-operations.js +34725 -2582
- package/dist/generated/wspace-types.d.ts +10 -29
- package/dist/generated/wspace-types.js +14 -4
- package/package.json +16 -17
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useEventLogs Hook (v2.0)
|
|
3
|
-
*
|
|
4
|
-
* Hook for viewing and managing event logs.
|
|
5
|
-
* Provides query operations for event history and retry functionality.
|
|
6
|
-
*/
|
|
7
1
|
export type EventStatus = 'PENDING' | 'PROCESSING' | 'DELIVERED' | 'FAILED' | 'RETRYING' | 'IGNORED';
|
|
8
2
|
export interface EventLog {
|
|
9
3
|
id: string;
|
|
@@ -1,85 +1,177 @@
|
|
|
1
1
|
import { ListEventLogsDocument as e, RetryEventDeliveryDocument as t } from "../../generated/wspace-operations.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useQueryLifecycle as n } from "./useQueryLifecycle.js";
|
|
3
|
+
import { EventStatus as r } from "../../generated/wspace-types.js";
|
|
4
|
+
import { useCallback as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
5
|
+
import { useMutation as c, useQuery as l } from "@apollo/client/react";
|
|
4
6
|
//#region src/bigconsole/hooks/useEventLogs.ts
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
+
function u(e) {
|
|
8
|
+
switch (e) {
|
|
9
|
+
case "PENDING": return r.Pending;
|
|
10
|
+
case "PROCESSING": return r.Processing;
|
|
11
|
+
case "DELIVERED": return r.Delivered;
|
|
12
|
+
case "FAILED": return r.Failed;
|
|
13
|
+
case "RETRYING": return r.Retrying;
|
|
14
|
+
case "IGNORED": return r.Ignored;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function d(e) {
|
|
18
|
+
switch (e.status) {
|
|
19
|
+
case r.Pending: return {
|
|
20
|
+
...e,
|
|
21
|
+
status: "PENDING"
|
|
22
|
+
};
|
|
23
|
+
case r.Processing: return {
|
|
24
|
+
...e,
|
|
25
|
+
status: "PROCESSING"
|
|
26
|
+
};
|
|
27
|
+
case r.Delivered: return {
|
|
28
|
+
...e,
|
|
29
|
+
status: "DELIVERED"
|
|
30
|
+
};
|
|
31
|
+
case r.Failed: return {
|
|
32
|
+
...e,
|
|
33
|
+
status: "FAILED"
|
|
34
|
+
};
|
|
35
|
+
case r.Retrying: return {
|
|
36
|
+
...e,
|
|
37
|
+
status: "RETRYING"
|
|
38
|
+
};
|
|
39
|
+
case r.Ignored: return {
|
|
40
|
+
...e,
|
|
41
|
+
status: "IGNORED"
|
|
42
|
+
};
|
|
43
|
+
default: throw Error("The event log returned an unsupported delivery status.");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function f(r = {}) {
|
|
47
|
+
let { dashboardId: f, widgetId: p, eventName: m, status: h, pageSize: g = 20, skipFetch: _ = !1, onLogsLoaded: v, onError: y } = r, [b, x] = s(null), S = o(null), C = JSON.stringify([
|
|
48
|
+
f,
|
|
49
|
+
p,
|
|
50
|
+
m,
|
|
51
|
+
h,
|
|
52
|
+
g
|
|
53
|
+
]), [w, T] = s(null), E = a(() => !_ && w?.scope === C ? w.logs : [], [
|
|
54
|
+
_,
|
|
55
|
+
w,
|
|
56
|
+
C
|
|
57
|
+
]), { data: D, dataState: O, observable: k, loading: A, fetchMore: j, refetch: M } = l(e, {
|
|
7
58
|
variables: {
|
|
8
|
-
dashboardId:
|
|
9
|
-
widgetId:
|
|
10
|
-
eventName:
|
|
11
|
-
status: u,
|
|
12
|
-
first:
|
|
59
|
+
dashboardId: f,
|
|
60
|
+
widgetId: p,
|
|
61
|
+
eventName: m,
|
|
62
|
+
status: h === void 0 ? void 0 : u(h),
|
|
63
|
+
first: g
|
|
13
64
|
},
|
|
14
|
-
skip:
|
|
65
|
+
skip: _,
|
|
66
|
+
returnPartialData: !1,
|
|
67
|
+
notifyOnNetworkStatusChange: !0
|
|
68
|
+
}), N = n(k, C, !_, {
|
|
15
69
|
onCompleted: (e) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
70
|
+
x(null);
|
|
71
|
+
let t = e.listEventLogs.edges.map((e) => d(e.node));
|
|
72
|
+
T({
|
|
73
|
+
scope: C,
|
|
74
|
+
logs: t
|
|
75
|
+
}), v?.(t);
|
|
21
76
|
},
|
|
22
77
|
onError: (e) => {
|
|
23
|
-
|
|
78
|
+
x(e), y?.(e);
|
|
24
79
|
}
|
|
25
|
-
}),
|
|
26
|
-
let e =
|
|
27
|
-
if (!(!e || !
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
80
|
+
}), P = !_ && O === "complete" ? D : void 0, [F, { loading: I }] = c(t), L = i(async () => {
|
|
81
|
+
let e = P?.listEventLogs?.pageInfo?.endCursor;
|
|
82
|
+
if (!N() || S.current?.scope === C || !e || !P?.listEventLogs?.pageInfo?.hasNextPage) return;
|
|
83
|
+
let t = {
|
|
84
|
+
scope: C,
|
|
85
|
+
cursor: e
|
|
86
|
+
};
|
|
87
|
+
S.current = t;
|
|
88
|
+
try {
|
|
89
|
+
await j({
|
|
90
|
+
variables: { after: e },
|
|
91
|
+
updateQuery(e, { fetchMoreResult: n }) {
|
|
92
|
+
if (!N() || S.current !== t || !n) return e;
|
|
93
|
+
let r = e.listEventLogs, i = n.listEventLogs, a = new Map(r.edges.map((e) => [e.node.id, e]));
|
|
94
|
+
for (let e of i.edges) a.set(e.node.id, e);
|
|
95
|
+
return {
|
|
96
|
+
...n,
|
|
97
|
+
listEventLogs: {
|
|
98
|
+
...i,
|
|
99
|
+
edges: [...a.values()],
|
|
100
|
+
pageInfo: {
|
|
101
|
+
...i.pageInfo,
|
|
102
|
+
startCursor: r.pageInfo.startCursor,
|
|
103
|
+
hasPreviousPage: r.pageInfo.hasPreviousPage
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
33
109
|
} catch (e) {
|
|
34
|
-
|
|
35
|
-
|
|
110
|
+
if (!N() || S.current !== t) return;
|
|
111
|
+
let n = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load more logs");
|
|
112
|
+
x(n), y?.(n);
|
|
113
|
+
} finally {
|
|
114
|
+
S.current === t && (S.current = null);
|
|
36
115
|
}
|
|
37
116
|
}, [
|
|
117
|
+
P,
|
|
118
|
+
j,
|
|
119
|
+
y,
|
|
38
120
|
C,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
121
|
+
N
|
|
122
|
+
]), R = i(() => {
|
|
123
|
+
let e = {
|
|
124
|
+
scope: C,
|
|
125
|
+
cursor: null
|
|
126
|
+
};
|
|
127
|
+
return S.current = e, M().finally(() => {
|
|
128
|
+
S.current === e && (S.current = null);
|
|
129
|
+
});
|
|
130
|
+
}, [M, C]), z = i(async (t) => {
|
|
42
131
|
try {
|
|
43
|
-
|
|
44
|
-
variables: {
|
|
132
|
+
let n = await F({
|
|
133
|
+
variables: { eventId: t },
|
|
45
134
|
refetchQueries: [{
|
|
46
135
|
query: e,
|
|
47
136
|
variables: {
|
|
48
|
-
dashboardId:
|
|
49
|
-
widgetId:
|
|
50
|
-
eventName:
|
|
51
|
-
status: u,
|
|
52
|
-
first:
|
|
137
|
+
dashboardId: f,
|
|
138
|
+
widgetId: p,
|
|
139
|
+
eventName: m,
|
|
140
|
+
status: h === void 0 ? void 0 : u(h),
|
|
141
|
+
first: g
|
|
53
142
|
}
|
|
54
143
|
}]
|
|
55
|
-
})
|
|
144
|
+
});
|
|
145
|
+
return n.data ? d(n.data.retryEventDelivery) : null;
|
|
56
146
|
} catch (e) {
|
|
147
|
+
if (!N()) return null;
|
|
57
148
|
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to retry delivery");
|
|
58
|
-
return
|
|
149
|
+
return x(t), y?.(t), null;
|
|
59
150
|
}
|
|
60
151
|
}, [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
152
|
+
F,
|
|
153
|
+
f,
|
|
154
|
+
p,
|
|
155
|
+
m,
|
|
156
|
+
h,
|
|
157
|
+
g,
|
|
158
|
+
y,
|
|
159
|
+
N
|
|
160
|
+
]), B = i(async (e) => E.find((t) => t.id === e) || null, [E]), V = P?.listEventLogs, H = E.length > 0 ? E : V?.edges?.map((e) => d(e.node)) || [], U = V?.totalCount || 0, W = V?.pageInfo?.hasNextPage || !1, G = V?.pageInfo?.endCursor || null;
|
|
69
161
|
return {
|
|
70
|
-
loading:
|
|
71
|
-
error:
|
|
72
|
-
logs:
|
|
73
|
-
totalCount:
|
|
74
|
-
hasMore:
|
|
75
|
-
endCursor:
|
|
76
|
-
loadMore:
|
|
77
|
-
retryDelivery:
|
|
78
|
-
getEventLog:
|
|
79
|
-
refetch:
|
|
162
|
+
loading: A || I,
|
|
163
|
+
error: b,
|
|
164
|
+
logs: H,
|
|
165
|
+
totalCount: U,
|
|
166
|
+
hasMore: W,
|
|
167
|
+
endCursor: G,
|
|
168
|
+
loadMore: L,
|
|
169
|
+
retryDelivery: z,
|
|
170
|
+
getEventLog: B,
|
|
171
|
+
refetch: R
|
|
80
172
|
};
|
|
81
173
|
}
|
|
82
|
-
function
|
|
174
|
+
function p(e) {
|
|
83
175
|
let t = {
|
|
84
176
|
PENDING: "#f59e0b",
|
|
85
177
|
PROCESSING: "#3b82f6",
|
|
@@ -90,7 +182,7 @@ function s(e) {
|
|
|
90
182
|
};
|
|
91
183
|
return t[e] || t.PENDING;
|
|
92
184
|
}
|
|
93
|
-
function
|
|
185
|
+
function m(e) {
|
|
94
186
|
return {
|
|
95
187
|
PENDING: "Pending",
|
|
96
188
|
PROCESSING: "Processing",
|
|
@@ -100,7 +192,7 @@ function c(e) {
|
|
|
100
192
|
IGNORED: "Ignored"
|
|
101
193
|
}[e] || e;
|
|
102
194
|
}
|
|
103
|
-
function
|
|
195
|
+
function h(e) {
|
|
104
196
|
return {
|
|
105
197
|
PENDING: "⏳",
|
|
106
198
|
PROCESSING: "🔄",
|
|
@@ -111,4 +203,4 @@ function l(e) {
|
|
|
111
203
|
}[e] || "❓";
|
|
112
204
|
}
|
|
113
205
|
//#endregion
|
|
114
|
-
export {
|
|
206
|
+
export { f as default, p as getEventStatusColor, h as getEventStatusIcon, m as getEventStatusLabel };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useEventWebhooks Hook (v2.0)
|
|
3
|
-
*
|
|
4
|
-
* Hook for managing event webhook mappings.
|
|
5
|
-
* Provides CRUD operations for configuring webhooks that receive widget events.
|
|
6
|
-
*/
|
|
7
1
|
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
8
2
|
export interface RetryPolicy {
|
|
9
3
|
maxRetries: number;
|
|
@@ -1,98 +1,133 @@
|
|
|
1
1
|
import { CreateEventWebhookMappingDocument as e, DeleteEventWebhookMappingDocument as t, ListEventWebhookMappingsDocument as n, TestWebhookMappingDocument as r, ToggleEventWebhookMappingDocument as i, UpdateEventWebhookMappingDocument as a } from "../../generated/wspace-operations.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useQueryLifecycle as o } from "./useQueryLifecycle.js";
|
|
3
|
+
import { apiHttpMethod as s } from "./mutationInputEnums.js";
|
|
4
|
+
import { useCallback as c, useMemo as l, useState as u } from "react";
|
|
5
|
+
import { useMutation as d, useQuery as f } from "@apollo/client/react";
|
|
4
6
|
//#region src/bigconsole/hooks/useEventWebhooks.ts
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
+
function p(e) {
|
|
8
|
+
let t = e.headers === null ? null : {};
|
|
9
|
+
if (t !== null && e.headers !== null) for (let [n, r] of Object.entries(e.headers)) {
|
|
10
|
+
if (typeof r != "string") throw Error("The webhook returned an invalid header value.");
|
|
11
|
+
t[n] = r;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
...e,
|
|
15
|
+
headers: t
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function m(m = {}) {
|
|
19
|
+
let { dashboardId: h, widgetId: g, isActive: _, skipFetch: v = !1, onWebhooksLoaded: y, onError: b } = m, [x, S] = u(null), { data: C, dataState: w, observable: T, loading: E, refetch: D } = f(n, {
|
|
7
20
|
variables: {
|
|
8
|
-
dashboardId:
|
|
9
|
-
widgetId:
|
|
10
|
-
isActive:
|
|
21
|
+
dashboardId: h,
|
|
22
|
+
widgetId: g,
|
|
23
|
+
isActive: _
|
|
11
24
|
},
|
|
12
|
-
skip:
|
|
25
|
+
skip: v,
|
|
26
|
+
returnPartialData: !1,
|
|
27
|
+
notifyOnNetworkStatusChange: !0
|
|
28
|
+
}), O = o(T, JSON.stringify([
|
|
29
|
+
h,
|
|
30
|
+
g,
|
|
31
|
+
_
|
|
32
|
+
]), !v, {
|
|
13
33
|
onCompleted: (e) => {
|
|
14
|
-
|
|
15
|
-
|
|
34
|
+
S(null);
|
|
35
|
+
let t;
|
|
36
|
+
try {
|
|
37
|
+
t = e.listEventWebhookMappings.map(p);
|
|
38
|
+
} catch {
|
|
39
|
+
let e = /* @__PURE__ */ Error("The webhook returned an invalid header value.");
|
|
40
|
+
S(e), b?.(e);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
y?.(t);
|
|
16
44
|
},
|
|
17
45
|
onError: (e) => {
|
|
18
|
-
|
|
46
|
+
S(e), b?.(e);
|
|
19
47
|
}
|
|
20
|
-
}), [
|
|
48
|
+
}), [k, { loading: A }] = d(e), [j, { loading: M }] = d(a), [N, { loading: P }] = d(t), [F, { loading: I }] = d(i), [L, { loading: R }] = d(r), z = c(async (e) => {
|
|
21
49
|
try {
|
|
22
|
-
|
|
23
|
-
|
|
50
|
+
let { method: t, ...r } = e;
|
|
51
|
+
return (await k({
|
|
52
|
+
variables: { input: {
|
|
53
|
+
...r,
|
|
54
|
+
...t === void 0 ? {} : { method: s(t) }
|
|
55
|
+
} },
|
|
24
56
|
refetchQueries: [{
|
|
25
57
|
query: n,
|
|
26
58
|
variables: {
|
|
27
|
-
dashboardId:
|
|
28
|
-
widgetId:
|
|
29
|
-
isActive:
|
|
59
|
+
dashboardId: h,
|
|
60
|
+
widgetId: g,
|
|
61
|
+
isActive: _
|
|
30
62
|
}
|
|
31
63
|
}]
|
|
32
64
|
})).data?.createEventWebhookMapping || null;
|
|
33
65
|
} catch (e) {
|
|
34
66
|
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create webhook");
|
|
35
|
-
return
|
|
67
|
+
return S(t), b?.(t), null;
|
|
36
68
|
}
|
|
37
69
|
}, [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
]),
|
|
70
|
+
k,
|
|
71
|
+
h,
|
|
72
|
+
g,
|
|
73
|
+
_,
|
|
74
|
+
b
|
|
75
|
+
]), B = c(async (e) => {
|
|
44
76
|
try {
|
|
45
|
-
let { id: t,
|
|
46
|
-
return (await
|
|
77
|
+
let { id: t, method: r, ...i } = e;
|
|
78
|
+
return (await j({
|
|
47
79
|
variables: {
|
|
48
80
|
id: t,
|
|
49
|
-
input:
|
|
81
|
+
input: {
|
|
82
|
+
...i,
|
|
83
|
+
...r === void 0 ? {} : { method: r === null ? null : s(r) }
|
|
84
|
+
}
|
|
50
85
|
},
|
|
51
86
|
refetchQueries: [{
|
|
52
87
|
query: n,
|
|
53
88
|
variables: {
|
|
54
|
-
dashboardId:
|
|
55
|
-
widgetId:
|
|
56
|
-
isActive:
|
|
89
|
+
dashboardId: h,
|
|
90
|
+
widgetId: g,
|
|
91
|
+
isActive: _
|
|
57
92
|
}
|
|
58
93
|
}]
|
|
59
94
|
})).data?.updateEventWebhookMapping || null;
|
|
60
95
|
} catch (e) {
|
|
61
96
|
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update webhook");
|
|
62
|
-
return
|
|
97
|
+
return S(t), b?.(t), null;
|
|
63
98
|
}
|
|
64
99
|
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
]),
|
|
100
|
+
j,
|
|
101
|
+
h,
|
|
102
|
+
g,
|
|
103
|
+
_,
|
|
104
|
+
b
|
|
105
|
+
]), V = c(async (e) => {
|
|
71
106
|
try {
|
|
72
|
-
return await
|
|
107
|
+
return await N({
|
|
73
108
|
variables: { id: e },
|
|
74
109
|
refetchQueries: [{
|
|
75
110
|
query: n,
|
|
76
111
|
variables: {
|
|
77
|
-
dashboardId:
|
|
78
|
-
widgetId:
|
|
79
|
-
isActive:
|
|
112
|
+
dashboardId: h,
|
|
113
|
+
widgetId: g,
|
|
114
|
+
isActive: _
|
|
80
115
|
}
|
|
81
116
|
}]
|
|
82
117
|
}), !0;
|
|
83
118
|
} catch (e) {
|
|
84
119
|
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete webhook");
|
|
85
|
-
return
|
|
120
|
+
return S(t), b?.(t), !1;
|
|
86
121
|
}
|
|
87
122
|
}, [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
]),
|
|
123
|
+
N,
|
|
124
|
+
h,
|
|
125
|
+
g,
|
|
126
|
+
_,
|
|
127
|
+
b
|
|
128
|
+
]), H = c(async (e, t) => {
|
|
94
129
|
try {
|
|
95
|
-
return (await
|
|
130
|
+
return (await F({
|
|
96
131
|
variables: {
|
|
97
132
|
id: e,
|
|
98
133
|
isActive: t
|
|
@@ -100,41 +135,66 @@ function u(u = {}) {
|
|
|
100
135
|
refetchQueries: [{
|
|
101
136
|
query: n,
|
|
102
137
|
variables: {
|
|
103
|
-
dashboardId:
|
|
104
|
-
widgetId:
|
|
105
|
-
isActive:
|
|
138
|
+
dashboardId: h,
|
|
139
|
+
widgetId: g,
|
|
140
|
+
isActive: _
|
|
106
141
|
}
|
|
107
142
|
}]
|
|
108
143
|
})).data?.toggleEventWebhookMapping || null;
|
|
109
144
|
} catch (e) {
|
|
110
145
|
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to toggle webhook");
|
|
111
|
-
return
|
|
146
|
+
return S(t), b?.(t), null;
|
|
112
147
|
}
|
|
113
148
|
}, [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
]),
|
|
149
|
+
F,
|
|
150
|
+
h,
|
|
151
|
+
g,
|
|
152
|
+
_,
|
|
153
|
+
b
|
|
154
|
+
]), U = c(async (e) => {
|
|
120
155
|
try {
|
|
121
|
-
return (await
|
|
156
|
+
return (await L({ variables: { id: e } })).data?.testWebhookMapping || null;
|
|
122
157
|
} catch (e) {
|
|
123
158
|
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to test webhook");
|
|
124
|
-
return
|
|
159
|
+
return S(t), b?.(t), null;
|
|
125
160
|
}
|
|
126
|
-
}, [
|
|
161
|
+
}, [L, b]), W = E || A || M || P || I || R, G = !v && w === "complete" ? C : void 0, K = l(() => {
|
|
162
|
+
try {
|
|
163
|
+
return {
|
|
164
|
+
webhooks: G?.listEventWebhookMappings.map(p) ?? [],
|
|
165
|
+
error: null
|
|
166
|
+
};
|
|
167
|
+
} catch {
|
|
168
|
+
return {
|
|
169
|
+
webhooks: [],
|
|
170
|
+
error: /* @__PURE__ */ Error("The webhook returned an invalid header value.")
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
}, [G]), q = K.webhooks, J = c(async () => {
|
|
174
|
+
let e = await D();
|
|
175
|
+
if (!O() || !e.data) return {};
|
|
176
|
+
try {
|
|
177
|
+
return { data: { listEventWebhookMappings: e.data.listEventWebhookMappings.map(p) } };
|
|
178
|
+
} catch {
|
|
179
|
+
let e = /* @__PURE__ */ Error("The webhook returned an invalid header value.");
|
|
180
|
+
throw S(e), b?.(e), e;
|
|
181
|
+
}
|
|
182
|
+
}, [
|
|
183
|
+
D,
|
|
184
|
+
O,
|
|
185
|
+
b
|
|
186
|
+
]);
|
|
127
187
|
return {
|
|
128
|
-
loading:
|
|
129
|
-
error:
|
|
130
|
-
webhooks:
|
|
131
|
-
createWebhook:
|
|
132
|
-
updateWebhook:
|
|
133
|
-
deleteWebhook:
|
|
134
|
-
toggleWebhook:
|
|
135
|
-
testWebhook:
|
|
136
|
-
refetch:
|
|
188
|
+
loading: W,
|
|
189
|
+
error: K.error ?? x,
|
|
190
|
+
webhooks: q,
|
|
191
|
+
createWebhook: z,
|
|
192
|
+
updateWebhook: B,
|
|
193
|
+
deleteWebhook: V,
|
|
194
|
+
toggleWebhook: H,
|
|
195
|
+
testWebhook: U,
|
|
196
|
+
refetch: J
|
|
137
197
|
};
|
|
138
198
|
}
|
|
139
199
|
//#endregion
|
|
140
|
-
export {
|
|
200
|
+
export { m as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataValue, ObservableQuery, OperationVariables } from '@apollo/client';
|
|
2
|
+
interface Callbacks<TData> {
|
|
3
|
+
onCompleted?: (data: DataValue.Complete<TData>) => void;
|
|
4
|
+
onError?: (error: Error) => void;
|
|
5
|
+
}
|
|
6
|
+
/** Observe the existing Apollo4 query; do not create a second query or transport. */
|
|
7
|
+
export declare function useQueryLifecycle<TData, TVariables extends OperationVariables>(observable: ObservableQuery<TData, TVariables>, scope: string, enabled: boolean, callbacks: Callbacks<TData>): () => boolean;
|
|
8
|
+
export {};
|