meyi-insight-ui-dev 1.0.2 → 1.0.3
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/components/common/PageSkeleton.d.ts +10 -0
- package/dist/components/data-table/toolbar.d.ts +3 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/multi-select.d.ts +15 -0
- package/dist/components/ui/single-select.d.ts +15 -0
- package/dist/features/alerts/components/AlertFilters.d.ts +15 -0
- package/dist/features/alerts/components/ProcessingLifecycle.d.ts +5 -0
- package/dist/features/alerts/components/alerts-columns.d.ts +1 -0
- package/dist/features/alerts/components/alerts-table.d.ts +6 -9
- package/dist/features/alerts/detail.d.ts +7 -0
- package/dist/features/alerts/index.d.ts +2 -1
- package/dist/features/connectors/add-wizard/AddConnectorConfigureStep.d.ts +8 -0
- package/dist/features/connectors/add-wizard/AddConnectorDeployStep.d.ts +11 -0
- package/dist/features/connectors/add-wizard/AddConnectorOverviewStep.d.ts +4 -0
- package/dist/features/connectors/add-wizard/AddConnectorSourceStep.d.ts +5 -0
- package/dist/features/connectors/add-wizard/AddConnectorWizard.d.ts +5 -0
- package/dist/features/connectors/add-wizard/add-connector-options.d.ts +10 -0
- package/dist/features/connectors/components/ConnectorFilters.d.ts +5 -2
- package/dist/features/connectors/components/{InsightConnectorCard.d.ts → ConnectorGroupedList.d.ts} +7 -4
- package/dist/features/connectors/detail/ConnectorAlarmsTab.d.ts +4 -0
- package/dist/features/connectors/detail/ConnectorConfigurationTab.d.ts +10 -0
- package/dist/features/connectors/detail/ConnectorDetailHeader.d.ts +11 -0
- package/dist/features/connectors/detail/ConnectorDetailPage.d.ts +5 -0
- package/dist/features/connectors/detail/ConnectorDetailTabs.d.ts +6 -0
- package/dist/features/connectors/detail/ConnectorLogsTab.d.ts +6 -0
- package/dist/features/connectors/detail/ConnectorOverviewTab.d.ts +4 -0
- package/dist/features/connectors/detail/ConnectorSetupTab.d.ts +10 -0
- package/dist/features/connectors/detail/ConnectorTestTab.d.ts +6 -0
- package/dist/features/connectors/detail/connector-detail-utils.d.ts +18 -0
- package/dist/features/incidents/analytics.d.ts +1 -0
- package/dist/features/incidents/components/IncidentFilters.d.ts +4 -1
- package/dist/features/incidents/components/IncidentForm.d.ts +4 -0
- package/dist/features/incidents/components/InsightStatusBadge.d.ts +3 -0
- package/dist/features/incidents/components/incidents-columns.d.ts +0 -1
- package/dist/features/incidents/components/incidents-table.d.ts +3 -4
- package/dist/features/incidents/dashboard.d.ts +5 -0
- package/dist/features/pipeline/PipelineRuleEditor.d.ts +9 -0
- package/dist/features/pipeline/dedup.d.ts +4 -0
- package/dist/features/pipeline/editor-dedup.d.ts +4 -0
- package/dist/features/pipeline/editor-grouping.d.ts +4 -0
- package/dist/features/pipeline/editor-normalization.d.ts +4 -0
- package/dist/features/pipeline/grouping.d.ts +4 -0
- package/dist/features/pipeline/normalization.d.ts +1 -0
- package/dist/features/projects/components/ProjectFilters.d.ts +9 -0
- package/dist/features/projects/components/projects-table.d.ts +4 -3
- package/dist/features/settings/components/NotificationProvidersManager.d.ts +1 -0
- package/dist/features/settings/index.d.ts +5 -1
- package/dist/features/sop/components/SopFilters.d.ts +13 -0
- package/dist/features/sop/components/sop-table.d.ts +4 -7
- package/dist/features/workflows/components/WorkflowFilters.d.ts +11 -0
- package/dist/features/workflows/components/WorkflowFormHelper.d.ts +6 -0
- package/dist/features/workflows/components/workflows-columns.d.ts +8 -0
- package/dist/features/workflows/components/workflows-table.d.ts +17 -0
- package/dist/features/workflows/editor.d.ts +4 -0
- package/dist/features/workflows/index.d.ts +4 -1
- package/dist/hooks/useInsightPolling.d.ts +1 -0
- package/dist/index.d.ts +16 -2
- package/dist/index.js +246 -112
- package/dist/index.mjs +61506 -62886
- package/dist/router.d.ts +1 -1
- package/dist/services/insight.d.ts +258 -1
- package/dist/services/workflow.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +99 -22
- package/package.json +4 -1
- package/dist/features/alerts/components/InsightAlertCard.d.ts +0 -13
- package/dist/features/incidents/components/InsightIncidentCard.d.ts +0 -8
- package/dist/features/workflows/components/WorkflowDiagramModal.d.ts +0 -6
- package/dist/features/workflows/components/WorkflowFormDialog.d.ts +0 -7
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common, page-shaped skeleton loaders. Mirrors the real layout of each page
|
|
3
|
+
* so the loading state matches the content that's about to appear.
|
|
4
|
+
*
|
|
5
|
+
* Usage: {loading ? <PageSkeleton variant="dashboard" /> : <RealContent />}
|
|
6
|
+
*/
|
|
7
|
+
export type PageSkeletonVariant = "dashboard" | "analytics" | "table" | "cards" | "incident-detail" | "sop-detail";
|
|
8
|
+
export declare function PageSkeleton({ variant }: {
|
|
9
|
+
variant: PageSkeletonVariant;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Table } from '@tanstack/react-table';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
type DataTableToolbarProps<TData> = {
|
|
3
4
|
table: Table<TData>;
|
|
4
5
|
searchPlaceholder?: string;
|
|
@@ -13,6 +14,7 @@ type DataTableToolbarProps<TData> = {
|
|
|
13
14
|
}>;
|
|
14
15
|
}[];
|
|
15
16
|
}[];
|
|
17
|
+
children?: React.ReactNode;
|
|
16
18
|
};
|
|
17
|
-
export declare function DataTableToolbar<TData>({ table, searchPlaceholder, filters, }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function DataTableToolbar<TData>({ table, searchPlaceholder, filters, children, }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
18
20
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "default" | "
|
|
4
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Option {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
interface MultiSelectProps {
|
|
6
|
+
options: Option[];
|
|
7
|
+
selected: string[];
|
|
8
|
+
onChange: (selected: string[]) => void;
|
|
9
|
+
onSearchChange?: (search: string) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function MultiSelect({ options, selected, onChange, onSearchChange, placeholder, className, disabled, }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type SingleSelectOption = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
type SingleSelectProps = {
|
|
6
|
+
label?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
options: SingleSelectOption[];
|
|
9
|
+
onValueChange: (value: string) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
minWidth?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare function SingleSelect({ label, value, options, onValueChange, disabled, className, minWidth, }: SingleSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InsightConnector } from '../../../types.js';
|
|
2
|
+
interface Props {
|
|
3
|
+
search: string;
|
|
4
|
+
onSearchChange: (value: string) => void;
|
|
5
|
+
severityFilter: string[];
|
|
6
|
+
onSeverityChange: (severities: string[]) => void;
|
|
7
|
+
connectorFilter: string[];
|
|
8
|
+
onConnectorChange: (connectors: string[]) => void;
|
|
9
|
+
connectors: InsightConnector[];
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
onRefresh?: () => void;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function AlertFilters({ search, onSearchChange, severityFilter, onSeverityChange, connectorFilter, onConnectorChange, connectors, loading, onRefresh, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import { InsightAlert } from '../../../types.js';
|
|
|
3
3
|
export declare const getAlertsColumns: (actions: {
|
|
4
4
|
onEdit: (alert: InsightAlert) => void;
|
|
5
5
|
onViewIncident: (id: string) => void;
|
|
6
|
+
onViewAlert?: (id: string) => void;
|
|
6
7
|
onDelete: (id: string) => void;
|
|
7
8
|
onConvert: (alert: InsightAlert) => void;
|
|
8
9
|
onGenerateSop?: (alert: InsightAlert) => void;
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InsightAlert } from '../../../types.js';
|
|
2
3
|
interface AlertsTableProps {
|
|
3
4
|
data: InsightAlert[];
|
|
4
5
|
total: number;
|
|
5
6
|
page: number;
|
|
6
7
|
limit: number;
|
|
8
|
+
loading?: boolean;
|
|
7
9
|
onPageChange: (page: number) => void;
|
|
8
10
|
onLimitChange: (limit: number) => void;
|
|
9
11
|
onViewIncident: (id: string) => void;
|
|
12
|
+
onViewAlert?: (id: string) => void;
|
|
10
13
|
onEdit: (alert: InsightAlert) => void;
|
|
11
14
|
onDelete: (id: string) => void;
|
|
12
15
|
onConvert: (alert: InsightAlert) => void;
|
|
13
16
|
onGenerateSop?: (alert: InsightAlert) => void;
|
|
14
17
|
generatingSopId?: string | null;
|
|
15
18
|
sopsByAlertName?: Record<string, string>;
|
|
16
|
-
|
|
17
|
-
onSearchChange: (search: string) => void;
|
|
18
|
-
severityFilter: string;
|
|
19
|
-
onSeverityChange: (severity: string) => void;
|
|
20
|
-
connectorFilter: string;
|
|
21
|
-
onConnectorChange: (connectorId: string) => void;
|
|
22
|
-
connectors: InsightConnector[];
|
|
19
|
+
renderFilters?: (table: any) => React.ReactNode;
|
|
23
20
|
}
|
|
24
|
-
export declare function AlertsTable({ data, total, page, limit, onPageChange, onLimitChange, onViewIncident, onEdit, onDelete, onConvert, onGenerateSop, generatingSopId, sopsByAlertName,
|
|
21
|
+
export declare function AlertsTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onViewIncident, onViewAlert, onEdit, onDelete, onConvert, onGenerateSop, generatingSopId, sopsByAlertName, renderFilters, }: AlertsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
25
22
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
onViewIncident: (id: string) => void;
|
|
3
|
+
onViewAlert?: (id: string) => void;
|
|
3
4
|
}
|
|
4
|
-
export declare function InsightAlertsPage({ onViewIncident }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function InsightAlertsPage({ onViewIncident, onViewAlert }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InsightConnectorType } from '../../../types.js';
|
|
2
|
+
export declare function AddConnectorConfigureStep({ type, name, description, onNameChange, onDescriptionChange, }: {
|
|
3
|
+
type: InsightConnectorType;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
onNameChange: (value: string) => void;
|
|
7
|
+
onDescriptionChange: (value: string) => void;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InsightCloudTrailConsoleDeploy, InsightCloudWatchConsoleDeployResult, InsightConnectorType, InsightDatadogOnboarding, InsightGrafanaOnboarding, InsightPrometheusOnboarding } from '../../../types.js';
|
|
2
|
+
export declare function AddConnectorDeployStep({ type, webhookUrl, loading, cloudWatch, cloudTrail, grafana, prometheus, datadog, }: {
|
|
3
|
+
type: InsightConnectorType;
|
|
4
|
+
webhookUrl: string;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
cloudWatch: InsightCloudWatchConsoleDeployResult | null;
|
|
7
|
+
cloudTrail: InsightCloudTrailConsoleDeploy | null;
|
|
8
|
+
grafana: InsightGrafanaOnboarding | null;
|
|
9
|
+
prometheus: InsightPrometheusOnboarding | null;
|
|
10
|
+
datadog: InsightDatadogOnboarding | null;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InsightConnectorType } from '../../../types.js';
|
|
2
|
+
export type AddConnectorSourceOption = {
|
|
3
|
+
type: InsightConnectorType;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
mono: string;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ADD_CONNECTOR_SOURCES: AddConnectorSourceOption[];
|
|
10
|
+
export declare function getConnectorSourceOption(type: InsightConnectorType): AddConnectorSourceOption;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { InsightConnectorType } from '../../../types.js';
|
|
2
2
|
export type ConnectorFiltersState = {
|
|
3
3
|
sourceTypes: InsightConnectorType[];
|
|
4
|
+
status: string;
|
|
5
|
+
region: string;
|
|
4
6
|
};
|
|
5
7
|
interface Props {
|
|
6
8
|
search: string;
|
|
@@ -9,10 +11,11 @@ interface Props {
|
|
|
9
11
|
onSearchChange: (value: string) => void;
|
|
10
12
|
onFiltersChange: (filters: ConnectorFiltersState) => void;
|
|
11
13
|
onRefresh: () => void;
|
|
12
|
-
onAdd: () => void;
|
|
13
14
|
}
|
|
14
15
|
export declare function getDefaultConnectorFilters(): {
|
|
15
16
|
sourceTypes: InsightConnectorType[];
|
|
17
|
+
status: string;
|
|
18
|
+
region: string;
|
|
16
19
|
};
|
|
17
|
-
export declare function ConnectorFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh,
|
|
20
|
+
export declare function ConnectorFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export {};
|
package/dist/features/connectors/components/{InsightConnectorCard.d.ts → ConnectorGroupedList.d.ts}
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InsightConnector } from '../../../types.js';
|
|
2
|
-
|
|
3
|
-
connector: InsightConnector;
|
|
2
|
+
type ConnectorCallbacks = {
|
|
4
3
|
deletingId: string | null;
|
|
5
4
|
rotatingId: string | null;
|
|
6
5
|
onView: (connector: InsightConnector) => void;
|
|
@@ -12,6 +11,10 @@ interface InsightConnectorCardProps {
|
|
|
12
11
|
onGrafanaSetup: (connector: InsightConnector) => void;
|
|
13
12
|
onPrometheusSetup: (connector: InsightConnector) => void;
|
|
14
13
|
onDatadogSetup: (connector: InsightConnector) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function
|
|
14
|
+
};
|
|
15
|
+
export declare function connectorRegionFilterValue(connector: InsightConnector): string;
|
|
16
|
+
export declare function connectorRowStatus(connector: InsightConnector): "active" | "disabled" | "degraded" | "error";
|
|
17
|
+
export declare function ConnectorGroupedList({ connectors, ...callbacks }: {
|
|
18
|
+
connectors: InsightConnector[];
|
|
19
|
+
} & ConnectorCallbacks): import("react/jsx-runtime").JSX.Element;
|
|
17
20
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InsightConnector } from '../../../types.js';
|
|
2
|
+
type Props = {
|
|
3
|
+
connector: InsightConnector;
|
|
4
|
+
saving: boolean;
|
|
5
|
+
onSave: (data: {
|
|
6
|
+
name: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function ConnectorConfigurationTab({ connector, saving, onSave }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InsightConnector } from '../../../types.js';
|
|
2
|
+
type Props = {
|
|
3
|
+
connector: InsightConnector;
|
|
4
|
+
disabling: boolean;
|
|
5
|
+
testing: boolean;
|
|
6
|
+
onBack: () => void;
|
|
7
|
+
onToggleActive: () => void;
|
|
8
|
+
onTest: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function ConnectorDetailHeader({ connector, disabling, testing, onBack, onToggleActive, onTest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type ConnectorDetailTab = "overview" | "alarms" | "configuration" | "setup" | "logs" | "test";
|
|
2
|
+
export declare function ConnectorDetailTabs({ activeTab, showSetup, onChange, }: {
|
|
3
|
+
activeTab: ConnectorDetailTab;
|
|
4
|
+
showSetup: boolean;
|
|
5
|
+
onChange: (tab: ConnectorDetailTab) => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InsightConnectorLog } from '../../../types.js';
|
|
2
|
+
export declare function ConnectorLogsTab({ logs, search, onSearchChange, }: {
|
|
3
|
+
logs: InsightConnectorLog[];
|
|
4
|
+
search: string;
|
|
5
|
+
onSearchChange: (value: string) => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InsightCloudTrailConsoleDeploy, InsightCloudWatchConsoleDeployResult, InsightConnector, InsightDatadogOnboarding, InsightGrafanaOnboarding, InsightPrometheusOnboarding } from '../../../types.js';
|
|
2
|
+
export declare function ConnectorSetupTab({ connector, loading, cloudWatch, cloudTrail, grafana, prometheus, datadog, }: {
|
|
3
|
+
connector: InsightConnector;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
cloudWatch: InsightCloudWatchConsoleDeployResult | null;
|
|
6
|
+
cloudTrail: InsightCloudTrailConsoleDeploy | null;
|
|
7
|
+
grafana: InsightGrafanaOnboarding | null;
|
|
8
|
+
prometheus: InsightPrometheusOnboarding | null;
|
|
9
|
+
datadog: InsightDatadogOnboarding | null;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InsightConnectorTestResult } from '../../../types.js';
|
|
2
|
+
export declare function ConnectorTestTab({ result, running, onRun, }: {
|
|
3
|
+
result: InsightConnectorTestResult | null;
|
|
4
|
+
running: boolean;
|
|
5
|
+
onRun: () => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InsightConnector, InsightConnectorType } from '../../../types.js';
|
|
2
|
+
export declare const connectorMeta: Record<string, {
|
|
3
|
+
label: string;
|
|
4
|
+
mono: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function normalizeConnectorType(value: unknown): InsightConnectorType;
|
|
8
|
+
export declare function connectorProvider(connector: InsightConnector): {
|
|
9
|
+
label: string;
|
|
10
|
+
mono: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function connectorRegion(connector: InsightConnector): string;
|
|
14
|
+
export declare function connectorEndpoint(connector: InsightConnector): string;
|
|
15
|
+
export declare function connectorSetupStatus(connector: InsightConnector): string;
|
|
16
|
+
export declare function isConnectorSetupComplete(connector: InsightConnector): boolean;
|
|
17
|
+
export declare function timeAgo(value?: string | null): string;
|
|
18
|
+
export declare function severityClass(value: string): "im-sev-critical" | "im-sev-high" | "im-sev-medium" | "im-sev-low";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function InsightIncidentAnalyticsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type IncidentFiltersState = {
|
|
2
2
|
statuses: string[];
|
|
3
3
|
assigneeIds: string[];
|
|
4
|
+
priorities: string[];
|
|
4
5
|
};
|
|
5
6
|
interface Props {
|
|
6
7
|
search: string;
|
|
@@ -9,10 +10,12 @@ interface Props {
|
|
|
9
10
|
onSearchChange: (value: string) => void;
|
|
10
11
|
onFiltersChange: (filters: IncidentFiltersState) => void;
|
|
11
12
|
onRefresh: () => void;
|
|
13
|
+
children?: React.ReactNode;
|
|
12
14
|
}
|
|
13
15
|
export declare function getDefaultIncidentFilters(): {
|
|
14
16
|
statuses: string[];
|
|
15
17
|
assigneeIds: string[];
|
|
18
|
+
priorities: string[];
|
|
16
19
|
};
|
|
17
|
-
export declare function IncidentFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function IncidentFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export {};
|
|
@@ -9,6 +9,10 @@ interface IncidentFormProps {
|
|
|
9
9
|
downMessage?: string;
|
|
10
10
|
projectTag?: string;
|
|
11
11
|
downTime?: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
source?: string;
|
|
14
|
+
resourceName?: string;
|
|
15
|
+
resourceType?: string;
|
|
12
16
|
}) => void;
|
|
13
17
|
}
|
|
14
18
|
export declare function IncidentForm({ open, incident, submitting, onClose, onSubmit }: IncidentFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ColumnDef } from '@tanstack/react-table';
|
|
2
2
|
import { InsightIncident } from '../../../types.js';
|
|
3
3
|
export declare const getIncidentsColumns: (actions: {
|
|
4
|
-
onAssignClick: (incident: InsightIncident) => void;
|
|
5
4
|
onEdit: (incident: InsightIncident) => void;
|
|
6
5
|
onDelete: (id: string) => void;
|
|
7
6
|
}) => ColumnDef<InsightIncident>[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { InsightIncident } from '../../../types.js';
|
|
2
3
|
interface IncidentsTableProps {
|
|
3
4
|
data: InsightIncident[];
|
|
@@ -8,11 +9,9 @@ interface IncidentsTableProps {
|
|
|
8
9
|
onPageChange: (page: number) => void;
|
|
9
10
|
onLimitChange: (limit: number) => void;
|
|
10
11
|
onViewResult: (id: string) => void;
|
|
11
|
-
onAssignClick: (incident: InsightIncident) => void;
|
|
12
12
|
onEdit: (incident: InsightIncident) => void;
|
|
13
13
|
onDelete: (id: string) => void;
|
|
14
|
-
|
|
15
|
-
onSearchChange: (search: string) => void;
|
|
14
|
+
renderFilters?: (table: any) => React.ReactNode;
|
|
16
15
|
}
|
|
17
|
-
export declare function IncidentsTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onViewResult,
|
|
16
|
+
export declare function IncidentsTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onViewResult, onEdit, onDelete, renderFilters, }: IncidentsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface PipelineRuleEditorProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
onValidate?: (yaml: string) => Promise<{
|
|
5
|
+
ok: boolean;
|
|
6
|
+
errors?: string[];
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
export declare function PipelineRuleEditor({ value, onChange, onValidate }: PipelineRuleEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PipelineNormalizationPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
search: string;
|
|
3
|
+
onSearchChange: (value: string) => void;
|
|
4
|
+
onRefresh?: () => void;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function ProjectFilters({ search, onSearchChange, onRefresh, loading, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { InsightProject } from '../../../types.js';
|
|
2
3
|
interface ProjectsTableProps {
|
|
3
4
|
data: InsightProject[];
|
|
4
5
|
total: number;
|
|
5
6
|
page: number;
|
|
6
7
|
limit: number;
|
|
8
|
+
loading?: boolean;
|
|
7
9
|
onPageChange: (page: number) => void;
|
|
8
10
|
onLimitChange: (limit: number) => void;
|
|
9
11
|
onEdit: (project: InsightProject) => void;
|
|
10
12
|
onDelete: (project: InsightProject) => void;
|
|
11
|
-
|
|
12
|
-
onSearchChange: (search: string) => void;
|
|
13
|
+
renderFilters?: (table: any) => React.ReactNode;
|
|
13
14
|
}
|
|
14
|
-
export declare function ProjectsTable({ data, total, page, limit, onPageChange, onLimitChange, onEdit, onDelete,
|
|
15
|
+
export declare function ProjectsTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onEdit, onDelete, renderFilters, }: ProjectsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NotificationProvidersManager(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
type SettingsTab = "general" | "notifications" | "workflow" | "grouping" | "dedup";
|
|
2
|
+
export declare function InsightSettingsPage({ initialTab }: {
|
|
3
|
+
initialTab?: SettingsTab;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
search: string;
|
|
3
|
+
onSearchChange: (value: string) => void;
|
|
4
|
+
severityFilter: string[];
|
|
5
|
+
onSeverityChange: (severities: string[]) => void;
|
|
6
|
+
statusFilter: string[];
|
|
7
|
+
onStatusChange: (statuses: string[]) => void;
|
|
8
|
+
onRefresh?: () => void;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function SopFilters({ search, onSearchChange, severityFilter, onSeverityChange, statusFilter, onStatusChange, onRefresh, loading, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { InsightSop } from '../../../types.js';
|
|
2
3
|
interface SopTableProps {
|
|
3
4
|
data: InsightSop[];
|
|
4
5
|
total: number;
|
|
5
6
|
page: number;
|
|
6
7
|
limit: number;
|
|
8
|
+
loading?: boolean;
|
|
7
9
|
onPageChange: (page: number) => void;
|
|
8
10
|
onLimitChange: (limit: number) => void;
|
|
9
11
|
onView: (id: string) => void;
|
|
10
12
|
onEdit: (sop: InsightSop) => void;
|
|
11
13
|
onDelete: (sop: InsightSop) => void;
|
|
12
|
-
|
|
13
|
-
onSearchChange: (search: string) => void;
|
|
14
|
-
severityFilter: string;
|
|
15
|
-
onSeverityChange: (severity: string) => void;
|
|
16
|
-
statusFilter: string;
|
|
17
|
-
onStatusChange: (status: string) => void;
|
|
14
|
+
renderFilters?: (table: any) => React.ReactNode;
|
|
18
15
|
}
|
|
19
|
-
export declare function SopTable({ data, total, page, limit, onPageChange, onLimitChange, onView, onEdit, onDelete,
|
|
16
|
+
export declare function SopTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onView, onEdit, onDelete, renderFilters, }: SopTableProps): import("react/jsx-runtime").JSX.Element;
|
|
20
17
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
search: string;
|
|
3
|
+
onSearchChange: (value: string) => void;
|
|
4
|
+
statusFilter: string[];
|
|
5
|
+
onStatusChange: (statuses: string[]) => void;
|
|
6
|
+
onRefresh?: () => void;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function WorkflowFilters({ search, onSearchChange, statusFilter, onStatusChange, onRefresh, loading, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { InsightWorkflow } from '../../../types.js';
|
|
3
|
+
export declare const getWorkflowsColumns: (actions: {
|
|
4
|
+
onEdit: (workflow: InsightWorkflow) => void;
|
|
5
|
+
onToggleActive: (workflow: InsightWorkflow) => void;
|
|
6
|
+
onDelete: (workflow: InsightWorkflow) => void;
|
|
7
|
+
onOpenExecutions: (workflow: InsightWorkflow) => void;
|
|
8
|
+
}) => ColumnDef<InsightWorkflow>[];
|