meyi-insight-ui-dev 1.0.3 → 1.0.4

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.
Files changed (63) hide show
  1. package/dist/features/alerts/components/AlertFilters.d.ts +5 -5
  2. package/dist/features/sources/add-wizard/AddSourceConfigureStep.d.ts +8 -0
  3. package/dist/features/{connectors/add-wizard/AddConnectorDeployStep.d.ts → sources/add-wizard/AddSourceDeployStep.d.ts} +3 -3
  4. package/dist/features/sources/add-wizard/AddSourceOverviewStep.d.ts +4 -0
  5. package/dist/features/sources/add-wizard/AddSourceSourceStep.d.ts +5 -0
  6. package/dist/features/{connectors/add-wizard/AddConnectorWizard.d.ts → sources/add-wizard/AddSourceWizard.d.ts} +1 -1
  7. package/dist/features/sources/add-wizard/add-source-options.d.ts +10 -0
  8. package/dist/features/sources/cloudwatch-wizard/CloudWatchSourceWizard.d.ts +8 -0
  9. package/dist/features/sources/components/InsightSourceDeleteDialog.d.ts +9 -0
  10. package/dist/features/sources/components/InsightSourceForm.d.ts +18 -0
  11. package/dist/features/{connectors/components/ConnectorAwsOnboardingDialog.d.ts → sources/components/SourceAwsOnboardingDialog.d.ts} +1 -1
  12. package/dist/features/{connectors/components/ConnectorDatadogSetupDialog.d.ts → sources/components/SourceDatadogSetupDialog.d.ts} +2 -2
  13. package/dist/features/sources/components/SourceDetailsDialog.d.ts +8 -0
  14. package/dist/features/sources/components/SourceFilters.d.ts +21 -0
  15. package/dist/features/{connectors/components/ConnectorGrafanaSetupDialog.d.ts → sources/components/SourceGrafanaSetupDialog.d.ts} +2 -2
  16. package/dist/features/sources/components/SourceGroupedList.d.ts +18 -0
  17. package/dist/features/{connectors/components/ConnectorPrometheusSetupDialog.d.ts → sources/components/SourcePrometheusSetupDialog.d.ts} +2 -2
  18. package/dist/features/sources/components/SourceTokenPolicyDialog.d.ts +11 -0
  19. package/dist/features/sources/components/WebhookSuccessModal.d.ts +6 -0
  20. package/dist/features/{connectors/detail/ConnectorAlarmsTab.d.ts → sources/detail/SourceAlarmsTab.d.ts} +1 -1
  21. package/dist/features/sources/detail/SourceConfigurationTab.d.ts +10 -0
  22. package/dist/features/sources/detail/SourceDetailHeader.d.ts +11 -0
  23. package/dist/features/sources/detail/SourceDetailPage.d.ts +5 -0
  24. package/dist/features/sources/detail/SourceDetailTabs.d.ts +6 -0
  25. package/dist/features/sources/detail/SourceLogsTab.d.ts +6 -0
  26. package/dist/features/sources/detail/SourceOverviewTab.d.ts +4 -0
  27. package/dist/features/{connectors/detail/ConnectorSetupTab.d.ts → sources/detail/SourceSetupTab.d.ts} +3 -3
  28. package/dist/features/sources/detail/SourceTestTab.d.ts +6 -0
  29. package/dist/features/sources/detail/source-detail-utils.d.ts +18 -0
  30. package/dist/features/sources/grafana-wizard/GrafanaSourceWizard.d.ts +7 -0
  31. package/dist/features/sources/index.d.ts +1 -0
  32. package/dist/features/{connectors/prometheus-wizard/PrometheusConnectorWizard.d.ts → sources/prometheus-wizard/PrometheusSourceWizard.d.ts} +1 -1
  33. package/dist/features/sources/source-selection/SourceSourcePickerDialog.d.ts +6 -0
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.js +115 -115
  36. package/dist/index.mjs +19088 -19041
  37. package/dist/services/insight.d.ts +42 -35
  38. package/dist/style.css +1 -1
  39. package/dist/types.d.ts +37 -37
  40. package/package.json +1 -1
  41. package/dist/features/connectors/add-wizard/AddConnectorConfigureStep.d.ts +0 -8
  42. package/dist/features/connectors/add-wizard/AddConnectorOverviewStep.d.ts +0 -4
  43. package/dist/features/connectors/add-wizard/AddConnectorSourceStep.d.ts +0 -5
  44. package/dist/features/connectors/add-wizard/add-connector-options.d.ts +0 -10
  45. package/dist/features/connectors/cloudwatch-wizard/CloudWatchConnectorWizard.d.ts +0 -8
  46. package/dist/features/connectors/components/ConnectorDetailsDialog.d.ts +0 -8
  47. package/dist/features/connectors/components/ConnectorFilters.d.ts +0 -21
  48. package/dist/features/connectors/components/ConnectorGroupedList.d.ts +0 -20
  49. package/dist/features/connectors/components/ConnectorTokenPolicyDialog.d.ts +0 -11
  50. package/dist/features/connectors/components/InsightConnectorDeleteDialog.d.ts +0 -9
  51. package/dist/features/connectors/components/InsightConnectorForm.d.ts +0 -18
  52. package/dist/features/connectors/components/WebhookSuccessModal.d.ts +0 -6
  53. package/dist/features/connectors/detail/ConnectorConfigurationTab.d.ts +0 -10
  54. package/dist/features/connectors/detail/ConnectorDetailHeader.d.ts +0 -11
  55. package/dist/features/connectors/detail/ConnectorDetailPage.d.ts +0 -5
  56. package/dist/features/connectors/detail/ConnectorDetailTabs.d.ts +0 -6
  57. package/dist/features/connectors/detail/ConnectorLogsTab.d.ts +0 -6
  58. package/dist/features/connectors/detail/ConnectorOverviewTab.d.ts +0 -4
  59. package/dist/features/connectors/detail/ConnectorTestTab.d.ts +0 -6
  60. package/dist/features/connectors/detail/connector-detail-utils.d.ts +0 -18
  61. package/dist/features/connectors/grafana-wizard/GrafanaConnectorWizard.d.ts +0 -7
  62. package/dist/features/connectors/index.d.ts +0 -1
  63. package/dist/features/connectors/source-selection/ConnectorSourcePickerDialog.d.ts +0 -6
package/dist/types.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export type InsightConnectorType = 'meyi_pulse' | 'grafana' | 'datadog' | 'prometheus' | 'cloudwatch' | 'cloudtrail' | 'pagerduty' | 'custom';
2
- export type InsightConnector = {
1
+ export type InsightSourceType = 'meyi_pulse' | 'grafana' | 'datadog' | 'prometheus' | 'cloudwatch' | 'cloudtrail' | 'pagerduty' | 'custom';
2
+ export type InsightSource = {
3
3
  id: string;
4
4
  name: string;
5
- type: InsightConnectorType;
5
+ type: InsightSourceType;
6
6
  alertCount?: number;
7
7
  description?: string;
8
8
  isActive: boolean;
@@ -48,7 +48,7 @@ export type InsightConnector = {
48
48
  };
49
49
  export type InsightWebhookFailureLog = {
50
50
  id: string;
51
- connectorId: string | null;
51
+ sourceId: string | null;
52
52
  tokenPreview?: string | null;
53
53
  errorCode: string;
54
54
  errorMessage: string;
@@ -59,13 +59,13 @@ export type InsightWebhookFailureLog = {
59
59
  payload?: any;
60
60
  createdAt: string;
61
61
  };
62
- export type InsightConnectorTokenPolicy = {
62
+ export type InsightSourceTokenPolicy = {
63
63
  mode: 'expires' | 'unlimited';
64
64
  expiresAt: string | null;
65
65
  defaultTtlDays: number;
66
66
  };
67
- export type InsightConnectorOverview = {
68
- connector: InsightConnector;
67
+ export type InsightSourceOverview = {
68
+ source: InsightSource;
69
69
  summary: {
70
70
  status: string;
71
71
  lastAlarmAt: string | null;
@@ -80,7 +80,7 @@ export type InsightConnectorOverview = {
80
80
  authTokenPreview: string | null;
81
81
  };
82
82
  };
83
- export type InsightConnectorLog = {
83
+ export type InsightSourceLog = {
84
84
  id: string;
85
85
  timestamp: string;
86
86
  httpStatus: number;
@@ -88,9 +88,9 @@ export type InsightConnectorLog = {
88
88
  payloadSize: number;
89
89
  result: string;
90
90
  };
91
- export type InsightConnectorTestResult = {
91
+ export type InsightSourceTestResult = {
92
92
  ok: boolean;
93
- connectorId: string;
93
+ sourceId: string;
94
94
  accepted: boolean;
95
95
  createsAlarm?: boolean;
96
96
  receivedAt: string;
@@ -98,10 +98,10 @@ export type InsightConnectorTestResult = {
98
98
  };
99
99
  export type InsightCloudWatchDiscoverResult = {
100
100
  ok: boolean;
101
- connector: {
101
+ source: {
102
102
  id: string;
103
103
  name: string;
104
- type: InsightConnectorType;
104
+ type: InsightSourceType;
105
105
  };
106
106
  aws: {
107
107
  region: string;
@@ -124,10 +124,10 @@ export type InsightCloudWatchDiscoverResult = {
124
124
  };
125
125
  export type InsightCloudWatchSetupResult = {
126
126
  ok: boolean;
127
- connector: {
127
+ source: {
128
128
  id: string;
129
129
  name: string;
130
- type: InsightConnectorType;
130
+ type: InsightSourceType;
131
131
  };
132
132
  setup: {
133
133
  accessKeyId: string;
@@ -143,10 +143,10 @@ export type InsightCloudWatchSetupResult = {
143
143
  };
144
144
  export type InsightCloudWatchDeployResult = {
145
145
  ok: boolean;
146
- connector: {
146
+ source: {
147
147
  id: string;
148
148
  name: string;
149
- type: InsightConnectorType;
149
+ type: InsightSourceType;
150
150
  };
151
151
  webhook: {
152
152
  path: string;
@@ -181,10 +181,10 @@ export type InsightCloudWatchDeployResult = {
181
181
  };
182
182
  export type InsightCloudWatchConsoleDeployResult = {
183
183
  ok: boolean;
184
- connector: {
184
+ source: {
185
185
  id: string;
186
186
  name: string;
187
- type: InsightConnectorType;
187
+ type: InsightSourceType;
188
188
  };
189
189
  webhook: {
190
190
  path: string;
@@ -206,10 +206,10 @@ export type InsightCloudWatchConsoleDeployResult = {
206
206
  };
207
207
  export type InsightCloudTrailConsoleDeploy = {
208
208
  ok: boolean;
209
- connector: {
209
+ source: {
210
210
  id: string;
211
211
  name: string;
212
- type: InsightConnectorType;
212
+ type: InsightSourceType;
213
213
  };
214
214
  webhook: {
215
215
  path: string;
@@ -231,15 +231,15 @@ export type InsightCloudTrailConsoleDeploy = {
231
231
  };
232
232
  export type InsightCloudWatchLambdaOnboarding = {
233
233
  ok: boolean;
234
- connector: {
234
+ source: {
235
235
  id: string;
236
236
  name: string;
237
- type: InsightConnectorType;
237
+ type: InsightSourceType;
238
238
  };
239
239
  webhook: {
240
240
  path: string;
241
241
  url: string;
242
- tokenPolicy?: InsightConnectorTokenPolicy;
242
+ tokenPolicy?: InsightSourceTokenPolicy;
243
243
  isPublicHint: boolean;
244
244
  };
245
245
  automation: {
@@ -255,15 +255,15 @@ export type InsightCloudWatchLambdaOnboarding = {
255
255
  };
256
256
  export type InsightGrafanaOnboarding = {
257
257
  ok: boolean;
258
- connector: {
258
+ source: {
259
259
  id: string;
260
260
  name: string;
261
- type: InsightConnectorType;
261
+ type: InsightSourceType;
262
262
  };
263
263
  webhook: {
264
264
  path: string;
265
265
  url: string;
266
- tokenPolicy?: InsightConnectorTokenPolicy;
266
+ tokenPolicy?: InsightSourceTokenPolicy;
267
267
  isPublicHint: boolean;
268
268
  };
269
269
  defaults: {
@@ -316,15 +316,15 @@ export type InsightGrafanaSaveResult = {
316
316
  };
317
317
  export type InsightPrometheusOnboarding = {
318
318
  ok: boolean;
319
- connector: {
319
+ source: {
320
320
  id: string;
321
321
  name: string;
322
- type: InsightConnectorType;
322
+ type: InsightSourceType;
323
323
  };
324
324
  webhook: {
325
325
  path: string;
326
326
  url: string;
327
- tokenPolicy?: InsightConnectorTokenPolicy;
327
+ tokenPolicy?: InsightSourceTokenPolicy;
328
328
  isPublicHint: boolean;
329
329
  };
330
330
  defaults: {
@@ -358,15 +358,15 @@ export type InsightPrometheusOnboarding = {
358
358
  };
359
359
  export type InsightDatadogOnboarding = {
360
360
  ok: boolean;
361
- connector: {
361
+ source: {
362
362
  id: string;
363
363
  name: string;
364
- type: InsightConnectorType;
364
+ type: InsightSourceType;
365
365
  };
366
366
  webhook: {
367
367
  path: string;
368
368
  url: string;
369
- tokenPolicy?: InsightConnectorTokenPolicy;
369
+ tokenPolicy?: InsightSourceTokenPolicy;
370
370
  isPublicHint: boolean;
371
371
  };
372
372
  defaults: {
@@ -393,9 +393,9 @@ export type InsightAlertStatus = 'open' | 'converted' | 'dismissed';
393
393
  export type InsightAlert = {
394
394
  id: string;
395
395
  aliasId?: string;
396
- connectorId?: string;
397
- connectorName?: string;
398
- connectorType?: string;
396
+ sourceId?: string;
397
+ sourceName?: string;
398
+ sourceType?: string;
399
399
  resourceId: string;
400
400
  resourceName: string;
401
401
  resourceType: string;
@@ -603,8 +603,8 @@ export type NewRemediationSteps = {
603
603
  rollback_steps?: string[];
604
604
  communication_template?: string;
605
605
  };
606
- /** @deprecated Use InsightConnector */
607
- export type CloudConnector = InsightConnector;
606
+ /** @deprecated Use InsightSource */
607
+ export type CloudSource = InsightSource;
608
608
  export type InsightSopSeverity = 'critical' | 'high' | 'medium' | 'low';
609
609
  export type InsightSopStatus = 'draft' | 'pending' | 'approved' | 'generating' | 'failed';
610
610
  export type InsightSop = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "meyi-insight-ui-dev",
3
3
  "private": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -1,8 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- import { InsightConnectorType } from '../../../types.js';
2
- export declare function AddConnectorOverviewStep({ type }: {
3
- type: InsightConnectorType;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { InsightConnectorType } from '../../../types.js';
2
- export declare function AddConnectorSourceStep({ selected, onSelect, }: {
3
- selected: InsightConnectorType;
4
- onSelect: (type: InsightConnectorType) => void;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
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,8 +0,0 @@
1
- import { InsightConnector } from '../../../types.js';
2
- export declare function CloudWatchConnectorWizard({ open, onOpenChange, onCreated, connector, onAccessKeyDeploy, }: {
3
- open: boolean;
4
- onOpenChange: (open: boolean) => void;
5
- onCreated: () => void;
6
- connector?: InsightConnector | null;
7
- onAccessKeyDeploy?: (connector: InsightConnector) => void;
8
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { InsightConnector } from '../../../types.js';
2
- interface ConnectorDetailsDialogProps {
3
- open: boolean;
4
- connector: InsightConnector | null;
5
- onOpenChange: (open: boolean) => void;
6
- }
7
- export declare function ConnectorDetailsDialog({ open, connector, onOpenChange }: ConnectorDetailsDialogProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,21 +0,0 @@
1
- import { InsightConnectorType } from '../../../types.js';
2
- export type ConnectorFiltersState = {
3
- sourceTypes: InsightConnectorType[];
4
- status: string;
5
- region: string;
6
- };
7
- interface Props {
8
- search: string;
9
- filters: ConnectorFiltersState;
10
- loading?: boolean;
11
- onSearchChange: (value: string) => void;
12
- onFiltersChange: (filters: ConnectorFiltersState) => void;
13
- onRefresh: () => void;
14
- }
15
- export declare function getDefaultConnectorFilters(): {
16
- sourceTypes: InsightConnectorType[];
17
- status: string;
18
- region: string;
19
- };
20
- export declare function ConnectorFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, }: Props): import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1,20 +0,0 @@
1
- import { InsightConnector } from '../../../types.js';
2
- type ConnectorCallbacks = {
3
- deletingId: string | null;
4
- rotatingId: string | null;
5
- onView: (connector: InsightConnector) => void;
6
- onEdit: (connector: InsightConnector) => void;
7
- onRotate: (id: string) => void;
8
- onDelete: (id: string) => void;
9
- onManageTokenPolicy: (connector: InsightConnector) => void;
10
- onAwsSetup: (connector: InsightConnector) => void;
11
- onGrafanaSetup: (connector: InsightConnector) => void;
12
- onPrometheusSetup: (connector: InsightConnector) => void;
13
- onDatadogSetup: (connector: InsightConnector) => void;
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;
20
- export {};
@@ -1,11 +0,0 @@
1
- import { InsightConnector } from '../../../types.js';
2
- interface ConnectorTokenPolicyDialogProps {
3
- open: boolean;
4
- connector: InsightConnector | null;
5
- loading?: boolean;
6
- submitting?: boolean;
7
- onOpenChange: (open: boolean) => void;
8
- onSubmit: (mode: "expires" | "unlimited", ttlDays?: number) => Promise<void>;
9
- }
10
- export declare function ConnectorTokenPolicyDialog({ open, connector, loading, submitting, onOpenChange, onSubmit, }: ConnectorTokenPolicyDialogProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,9 +0,0 @@
1
- import { InsightConnector } from '../../../types.js';
2
- interface InsightConnectorDeleteDialogProps {
3
- open: boolean;
4
- onOpenChange: (open: boolean) => void;
5
- connector: InsightConnector | null;
6
- onConfirm: () => Promise<void>;
7
- }
8
- export declare function InsightConnectorDeleteDialog({ open, onOpenChange, connector, onConfirm, }: InsightConnectorDeleteDialogProps): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,18 +0,0 @@
1
- import { InsightConnector, InsightConnectorType } from '../../../types.js';
2
- export declare const CONNECTOR_META: Record<InsightConnectorType, {
3
- label: string;
4
- Icon: any;
5
- color: string;
6
- }>;
7
- interface InsightConnectorFormProps {
8
- open: boolean;
9
- connector: InsightConnector | null;
10
- submitting: boolean;
11
- onClose: () => void;
12
- onSubmit: (name: string, type: InsightConnectorType, description?: string) => void;
13
- createdWebhookUrl?: string | null;
14
- onWebhookModalClose?: () => void;
15
- initialType?: InsightConnectorType | null;
16
- }
17
- export declare function InsightConnectorForm({ open, connector, submitting, onClose, onSubmit, createdWebhookUrl, onWebhookModalClose, initialType, }: InsightConnectorFormProps): import("react/jsx-runtime").JSX.Element;
18
- export {};
@@ -1,6 +0,0 @@
1
- import { InsightConnectorType } from '../../../types.js';
2
- export declare function WebhookSuccessModal({ webhookUrl, connectorType, onClose, }: {
3
- webhookUrl: string;
4
- connectorType: InsightConnectorType;
5
- onClose: () => void;
6
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
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 {};
@@ -1,11 +0,0 @@
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 {};
@@ -1,5 +0,0 @@
1
- type Props = {
2
- connectorId: string;
3
- };
4
- export declare function ConnectorDetailPage({ connectorId }: Props): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,6 +0,0 @@
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;
@@ -1,6 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- import { InsightConnectorOverview } from '../../../types.js';
2
- export declare function ConnectorOverviewTab({ overview }: {
3
- overview: InsightConnectorOverview;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
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;
@@ -1,18 +0,0 @@
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";
@@ -1,7 +0,0 @@
1
- import { InsightConnector } from '../../../types.js';
2
- export declare function GrafanaConnectorWizard({ open, connector, onOpenChange, onCreated, }: {
3
- open: boolean;
4
- connector?: InsightConnector | null;
5
- onOpenChange: (open: boolean) => void;
6
- onCreated: () => void;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function InsightConnectorsPage(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { InsightConnectorType } from '../../../types.js';
2
- export declare function ConnectorSourcePickerDialog({ open, onOpenChange, onSelect, }: {
3
- open: boolean;
4
- onOpenChange: (open: boolean) => void;
5
- onSelect: (type: InsightConnectorType) => void;
6
- }): import("react/jsx-runtime").JSX.Element;