@emeryld/rrroutes-openapi 2.5.6 → 2.5.10
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 +6 -0
- package/dist/docs/LeafDocsPage.d.ts +17 -1
- package/dist/index.cjs +48 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -27
- package/dist/index.mjs +48 -24
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +114 -106
- package/dist/web/app.d.ts +4 -1
- package/dist/web/v2/AppShell.d.ts +3 -1
- package/dist/web/v2/components/endpoints/EndpointPlayground.d.ts +8 -3
- package/dist/web/v2/components/endpoints/KeyValueEditor.d.ts +15 -0
- package/dist/web/v2/components/endpoints/PlaygroundEditor.d.ts +4 -6
- package/dist/web/v2/components/endpoints/usePlaygroundRunner.d.ts +8 -0
- package/dist/web/v2/components/feeds/FeedPagination.d.ts +1 -2
- package/dist/web/v2/components/history/RequestDetailContent.d.ts +2 -18
- package/dist/web/v2/components/inputs/JsonInputWithTools.d.ts +3 -1
- package/dist/web/v2/components/json/JsonTree.d.ts +11 -0
- package/dist/web/v2/components/json/JsonTreeRow.d.ts +14 -0
- package/dist/web/v2/components/json/JsonViewer.d.ts +13 -1
- package/dist/web/v2/components/json/jsonViewerUtils.d.ts +3 -0
- package/dist/web/v2/components/layout/OverlayLayout.d.ts +13 -0
- package/dist/web/v2/components/layout/useMeasuredElement.d.ts +10 -0
- package/dist/web/v2/components/logs/cache/common/CacheSummaryStat.d.ts +7 -0
- package/dist/web/v2/components/logs/cache/common/CacheTraceDialog.d.ts +8 -0
- package/dist/web/v2/components/logs/cache/common/CacheValueDialog.d.ts +8 -0
- package/dist/web/v2/components/logs/cache/common/DetailField.d.ts +7 -0
- package/dist/web/v2/components/logs/cache/common/MutedText.d.ts +4 -0
- package/dist/web/v2/components/logs/cache/insights/CacheInsights.d.ts +10 -0
- package/dist/web/v2/components/logs/cache/insights/CacheInsightsKeySection.d.ts +7 -0
- package/dist/web/v2/components/logs/cache/insights/CacheInsightsKpiRow.d.ts +8 -0
- package/dist/web/v2/components/logs/cache/insights/CacheInsightsOverview.d.ts +8 -0
- package/dist/web/v2/components/logs/cache/insights/CacheInsightsTagSection.d.ts +7 -0
- package/dist/web/v2/components/logs/cache/insights/CacheProblemPanels.d.ts +7 -0
- package/dist/web/v2/components/logs/cache/insights/CacheTagInsights.d.ts +20 -0
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailActions.d.ts +12 -0
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailLogsTab.d.ts +3 -0
- package/dist/web/v2/components/logs/cache/{CacheKeyDetailModal.d.ts → key-detail/CacheKeyDetailModal.d.ts} +7 -2
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailSummary.d.ts +17 -0
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailTimelineTab.d.ts +7 -0
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailTracesTab.d.ts +3 -0
- package/dist/web/v2/components/logs/cache/logs/CacheDataCard.d.ts +30 -0
- package/dist/web/v2/components/logs/cache/logs/CacheFiltersCard.d.ts +15 -0
- package/dist/web/v2/components/logs/cache/logs/CacheLogsTable.d.ts +7 -0
- package/dist/web/v2/components/logs/cache/{CacheSummaryTable.d.ts → logs/CacheSummaryTable.d.ts} +1 -1
- package/dist/web/v2/components/logs/cache/modals/CacheTagDetailModal.d.ts +11 -0
- package/dist/web/v2/components/performance/PerformanceMonitor.d.ts +207 -0
- package/dist/web/v2/components/presets/PresetForm.d.ts +2 -1
- package/dist/web/v2/components/presets/PresetOperationsTabsEditor.d.ts +17 -0
- package/dist/web/v2/components/presets/PresetsCsvActions.d.ts +7 -0
- package/dist/web/v2/components/presets/presetOperationAdapters.d.ts +11 -0
- package/dist/web/v2/components/presets/presetOperationRun.d.ts +35 -0
- package/dist/web/v2/components/presets/presetOperationUtils.d.ts +2 -0
- package/dist/web/v2/components/primitives/HoverRow.d.ts +6 -0
- package/dist/web/v2/components/primitives/InlineActionButton.d.ts +7 -0
- package/dist/web/v2/components/primitives/SurfaceActionArea.d.ts +8 -0
- package/dist/web/v2/components/request/LastRunPanel.d.ts +17 -0
- package/dist/web/v2/components/request/RequestInputsEditor.d.ts +38 -0
- package/dist/web/v2/components/request/RequestUrlSelector.d.ts +15 -0
- package/dist/web/v2/components/requests/timeline/RequestTimeline.d.ts +13 -0
- package/dist/web/v2/components/requests/timeline/RequestTimelineEventMiniCard.d.ts +13 -0
- package/dist/web/v2/components/requests/timeline/RequestTimelineFilters.d.ts +20 -0
- package/dist/web/v2/components/requests/timeline/RequestTimelineRow.d.ts +15 -0
- package/dist/web/v2/components/requests/timeline/types.d.ts +19 -0
- package/dist/web/v2/{sockets → components/sockets}/SocketEventDetailModal.d.ts +1 -1
- package/dist/web/v2/{sockets → components/sockets}/SocketEventsTable.d.ts +1 -1
- package/dist/web/v2/components/tabs/StickyIconTabs.d.ts +17 -0
- package/dist/web/v2/components/tags/DurationChip.d.ts +16 -0
- package/dist/web/v2/components/tags/LogLevelChip.d.ts +1 -2
- package/dist/web/v2/hooks/useCacheTrace.d.ts +21 -0
- package/dist/web/v2/registries/logLevelRegistry.d.ts +27 -0
- package/dist/web/v2/stores/playgroundSettingsStore.d.ts +12 -0
- package/dist/web/v2/stores/playgroundStore.d.ts +4 -8
- package/dist/web/v2/theme.d.ts +21 -0
- package/dist/web/v2/types/types.cacheLog.d.ts +351 -24
- package/dist/web/v2/types/types.endpoint.d.ts +20 -0
- package/dist/web/v2/types/types.kvRow.d.ts +8 -0
- package/dist/web/v2/types/types.log.d.ts +25 -78
- package/dist/web/v2/types/types.requestLog.d.ts +40 -44
- package/dist/web/v2/utils/cache/cacheInsightsMappers.d.ts +6 -0
- package/dist/web/v2/utils/cache/cacheInsightsMetrics.d.ts +24 -0
- package/dist/web/v2/utils/cache/cacheTraceInsights.d.ts +35 -0
- package/dist/web/v2/utils/cacheFormat.d.ts +7 -0
- package/dist/web/v2/utils/cacheUtils.d.ts +2 -0
- package/dist/web/v2/utils/colorScale.d.ts +14 -0
- package/dist/web/v2/utils/dates.d.ts +1 -0
- package/dist/web/v2/utils/downloadTextFile.d.ts +1 -0
- package/dist/web/v2/utils/kvRow.d.ts +15 -0
- package/dist/web/v2/utils/kvRowAdapters.d.ts +14 -0
- package/dist/web/v2/utils/presetCsv.d.ts +22 -0
- package/dist/web/v2/utils/presetsCsv.d.ts +6 -0
- package/dist/web/v2/utils/schemaDefaults.d.ts +7 -0
- package/dist/web/v2/utils/sizeFormat.d.ts +2 -0
- package/package.json +1 -1
- package/dist/web/v2/components/endpoints/PlaygroundTabs.d.ts +0 -11
- package/dist/web/v2/components/history/RequestTimeline.d.ts +0 -10
- package/dist/web/v2/components/logs/cache/CacheInsightsKeySection.d.ts +0 -6
- package/dist/web/v2/components/logs/cache/CacheInsightsOverview.d.ts +0 -6
- package/dist/web/v2/components/logs/cache/CacheInsightsTagSection.d.ts +0 -6
- package/dist/web/v2/components/logs/cache/CacheLogsTable.d.ts +0 -6
- package/dist/web/v2/components/logs/cache/CacheTagInsights.d.ts +0 -43
- package/dist/web/v2/components/logs/cache/CacheValueDialog.d.ts +0 -7
- package/dist/web/v2/components/presets/PresetOperationsEditor.d.ts +0 -7
- /package/dist/web/v2/components/logs/cache/{CacheLogsSection.d.ts → logs/CacheLogsSection.d.ts} +0 -0
- /package/dist/web/v2/{sockets → components/sockets}/SocketEventsSection.d.ts +0 -0
- /package/dist/web/v2/{sockets → components/sockets}/SocketPlayground.d.ts +0 -0
package/dist/web/app.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type Theme } from '@mui/material/styles';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
type AppShellProps = {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
title?: string;
|
|
6
|
+
theme?: Theme;
|
|
5
7
|
};
|
|
6
|
-
export declare function AppShell({ children, title }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function AppShell({ children, title, theme, }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { PlaygroundRouteMeta } from '../../stores/playgroundStore.js';
|
|
3
3
|
type EndpointPlaygroundProps = {
|
|
4
4
|
initialRoute?: PlaygroundRouteMeta;
|
|
5
5
|
initialLabel?: string;
|
|
6
|
-
|
|
6
|
+
renderLayout: (slots: {
|
|
7
|
+
topOverlay: ReactNode;
|
|
8
|
+
bottomOverlay: ReactNode | null;
|
|
9
|
+
content: ReactNode;
|
|
10
|
+
settingsButton: ReactNode;
|
|
11
|
+
}) => ReactNode;
|
|
7
12
|
};
|
|
8
|
-
export default function EndpointPlayground({ initialRoute, initialLabel,
|
|
13
|
+
export default function EndpointPlayground({ initialRoute, initialLabel, renderLayout, }: EndpointPlaygroundProps): import("react/jsx-runtime").JSX.Element;
|
|
9
14
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PlaygroundKeyValueRow } from '../../stores/playgroundStore.js';
|
|
3
|
+
type KeyValueEditorProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
rows: PlaygroundKeyValueRow[];
|
|
6
|
+
onChange: (rows: PlaygroundKeyValueRow[]) => void;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
defaultExpanded?: boolean;
|
|
9
|
+
disableAccordion?: boolean;
|
|
10
|
+
summaryToggleButton?: ReactNode;
|
|
11
|
+
showFieldMeta?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export default function KeyValueEditor({ title, rows, onChange, actions, defaultExpanded, disableAccordion, summaryToggleButton, showFieldMeta, disabled, }: KeyValueEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { PlaygroundInputs } from '../../stores/clientStore.js';
|
|
2
1
|
import { PlaygroundKeyValueRow, PlaygroundTab } from '../../stores/playgroundStore.js';
|
|
3
2
|
import { SerializableSchema } from '../../types/types.endpoint.js';
|
|
4
3
|
import { type EndpointOption } from '../../utils/endpoints.js';
|
|
4
|
+
import type { PlaygroundRunnerResult } from './usePlaygroundRunner.js';
|
|
5
5
|
type PlaygroundEditorProps = {
|
|
6
6
|
tab: PlaygroundTab;
|
|
7
7
|
onUpdateTab: (updater: (prev: PlaygroundTab) => PlaygroundTab) => void;
|
|
8
|
-
onOpenStandalone?: (inputs: PlaygroundInputs) => void;
|
|
9
8
|
endpointOptions: EndpointOption[];
|
|
10
9
|
isOptionsLoading: boolean;
|
|
11
10
|
onSearchChange: (term: string) => void;
|
|
12
11
|
onEndpointSelect: (selection: EndpointOption | string | null) => void;
|
|
12
|
+
runner: PlaygroundRunnerResult | null;
|
|
13
13
|
};
|
|
14
|
-
export default function PlaygroundEditor({ tab, onUpdateTab,
|
|
14
|
+
export default function PlaygroundEditor({ tab, onUpdateTab, endpointOptions, isOptionsLoading, onSearchChange, onEndpointSelect, runner, }: PlaygroundEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export declare function mergeRows(baseRows: PlaygroundKeyValueRow[], values?: Record<string, unknown>): PlaygroundKeyValueRow[];
|
|
16
16
|
export declare function buildKeyValueRows(schema?: SerializableSchema): PlaygroundKeyValueRow[];
|
|
17
|
-
export
|
|
17
|
+
export { rowsToRecord } from '../../utils/kvRowAdapters.js';
|
|
18
18
|
export declare function formatBodyValue(value: unknown, hasSchema: boolean): string;
|
|
19
|
-
export declare function scaffoldBodyFromSchema(schema?: SerializableSchema): unknown;
|
|
20
|
-
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PlaygroundTab } from '../../stores/playgroundStore.js';
|
|
2
|
+
export type PlaygroundRunnerResult = {
|
|
3
|
+
isRunning: boolean;
|
|
4
|
+
bodyError: string | null;
|
|
5
|
+
setBodyError: (value: string | null) => void;
|
|
6
|
+
run: () => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export declare function usePlaygroundRunner(tab: PlaygroundTab | null, onUpdateTab: (updater: (prev: PlaygroundTab) => PlaygroundTab) => void): PlaygroundRunnerResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InfiniteData } from '@tanstack/react-query';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
type FeedPaginationProps<TItem> = {
|
|
3
|
+
export type FeedPaginationProps<TItem> = {
|
|
4
4
|
data?: InfiniteData<any>;
|
|
5
5
|
items?: TItem[];
|
|
6
6
|
fetchNextPage: () => Promise<unknown>;
|
|
@@ -12,4 +12,3 @@ type FeedPaginationProps<TItem> = {
|
|
|
12
12
|
children: (items: TItem[]) => ReactNode;
|
|
13
13
|
};
|
|
14
14
|
export default function FeedPagination<TItem>({ data, items: providedItems, fetchNextPage, hasNextPage, isFetchingNextPage, pageSize, isLoading, extractItems, children, }: FeedPaginationProps<TItem>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CacheTraceType } from '../../types/types.cacheLog.js';
|
|
2
2
|
import type { LogType } from '../../types/types.log.js';
|
|
3
3
|
import type { RequestLogType } from '../../types/types.requestLog.js';
|
|
4
4
|
import type { SocketEventType } from '../../types/types.socket.js';
|
|
5
5
|
type RequestDetailContentProps = {
|
|
6
6
|
request: RequestLogType;
|
|
7
|
-
caches?:
|
|
7
|
+
caches?: CacheTraceType[];
|
|
8
8
|
logs?: LogType[];
|
|
9
9
|
sockets?: SocketEventType[];
|
|
10
10
|
onReplay?: (request: RequestLogType) => void;
|
|
11
11
|
};
|
|
12
|
-
export type RequestTimelineEvent = {
|
|
13
|
-
kind: 'cache';
|
|
14
|
-
id: string;
|
|
15
|
-
createdAt: number;
|
|
16
|
-
cache: CacheLogType;
|
|
17
|
-
} | {
|
|
18
|
-
kind: 'log';
|
|
19
|
-
id: string;
|
|
20
|
-
createdAt: number;
|
|
21
|
-
log: LogType;
|
|
22
|
-
} | {
|
|
23
|
-
kind: 'socket';
|
|
24
|
-
id: string;
|
|
25
|
-
createdAt: number;
|
|
26
|
-
socket: SocketEventType;
|
|
27
|
-
};
|
|
28
12
|
export default function RequestDetailContent({ request, caches, logs, sockets, onReplay, }: RequestDetailContentProps): import("react/jsx-runtime").JSX.Element;
|
|
29
13
|
export {};
|
|
@@ -5,6 +5,8 @@ type JsonInputWithToolsProps = {
|
|
|
5
5
|
minRows?: number;
|
|
6
6
|
error?: boolean;
|
|
7
7
|
helperText?: string;
|
|
8
|
+
onBlur?: () => void;
|
|
9
|
+
disabled?: boolean;
|
|
8
10
|
};
|
|
9
|
-
export default function JsonInputWithTools({ value, onChange, placeholder, minRows, error, helperText, }: JsonInputWithToolsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function JsonInputWithTools({ value, onChange, placeholder, minRows, error, helperText, onBlur, disabled, }: JsonInputWithToolsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type JsonTreeProps = {
|
|
2
|
+
value: unknown;
|
|
3
|
+
depth: number;
|
|
4
|
+
path: string;
|
|
5
|
+
onCopy: (val: unknown, path: string) => void;
|
|
6
|
+
copiedPath: string | null;
|
|
7
|
+
isCollapsed: (path: string) => boolean;
|
|
8
|
+
onToggleCollapse: (path: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export default function JsonTree({ value, depth, path, onCopy, copiedPath, isCollapsed, onToggleCollapse, }: JsonTreeProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type JsonTreeRowProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: unknown;
|
|
5
|
+
depth: number;
|
|
6
|
+
path: string;
|
|
7
|
+
onCopy: (val: unknown, path: string) => void;
|
|
8
|
+
copiedPath: string | null;
|
|
9
|
+
isCollapsed: (path: string) => boolean;
|
|
10
|
+
onToggleCollapse: (path: string) => void;
|
|
11
|
+
renderChildren: (value: unknown, depth: number, path: string) => ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export default function JsonTreeRow({ label, value, depth, path, onCopy, copiedPath, isCollapsed, onToggleCollapse, renderChildren, }: JsonTreeRowProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -2,6 +2,18 @@ type JsonViewerProps = {
|
|
|
2
2
|
value: unknown;
|
|
3
3
|
collapsedLines?: number;
|
|
4
4
|
title?: string;
|
|
5
|
+
/** If true, wraps the viewer in a MUI Accordion (collapsible). */
|
|
6
|
+
collapsible?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Only used when collapsible=true.
|
|
9
|
+
* If not provided, it will auto-expand when value is non-empty, and collapse when empty.
|
|
10
|
+
*/
|
|
11
|
+
defaultExpanded?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Use "flat" when the parent already provides a surface (Card/Panel),
|
|
14
|
+
* to avoid nested borders/backgrounds.
|
|
15
|
+
*/
|
|
16
|
+
variant?: 'default' | 'flat';
|
|
5
17
|
};
|
|
6
|
-
export default function JsonViewer({ value, collapsedLines, title, }: JsonViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function JsonViewer({ value, collapsedLines, title, collapsible, defaultExpanded, variant, }: JsonViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
19
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type OverlayLayoutProps = {
|
|
3
|
+
top?: ReactNode;
|
|
4
|
+
bottom?: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Layout component that renders optional fixed overlays above and below
|
|
9
|
+
* the main content. It measures overlay heights and applies equivalent
|
|
10
|
+
* padding so scrollable content never hides underneath them.
|
|
11
|
+
*/
|
|
12
|
+
export default function OverlayLayout({ top, bottom, children, }: OverlayLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type UseMeasuredElementResult<T extends HTMLElement> = {
|
|
2
|
+
ref: (node: T | null) => void;
|
|
3
|
+
height: number;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Observes an element with ResizeObserver and exposes its current height.
|
|
7
|
+
* Useful for aligning spacer padding with overlay content height.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useMeasuredElement<T extends HTMLElement>(): UseMeasuredElementResult<T>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CacheTraceType } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
type CacheTraceDialogProps = {
|
|
3
|
+
log: CacheTraceType;
|
|
4
|
+
baseQuery: Record<string, unknown>;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
export default function CacheTraceDialog({ log, baseQuery, onClose, }: CacheTraceDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CacheLogType } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
type CacheValueDialogProps = {
|
|
3
|
+
log: CacheLogType;
|
|
4
|
+
baseQuery: Record<string, unknown>;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
export default function CacheValueDialog({ log, baseQuery, onClose, }: CacheValueDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CacheInsightDatum } from './CacheTagInsights.js';
|
|
2
|
+
type Dimension = 'tag' | 'key';
|
|
3
|
+
export type CacheInsightsProps = {
|
|
4
|
+
tagStats?: CacheInsightDatum[];
|
|
5
|
+
keyStats?: CacheInsightDatum[];
|
|
6
|
+
defaultDimension?: Dimension;
|
|
7
|
+
onVisibleChange?: (ids: string[]) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function CacheInsights({ tagStats, keyStats, defaultDimension, onVisibleChange, }: CacheInsightsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CacheKeyInsight } from '../../../../types/types.cacheLog';
|
|
2
|
+
type CacheInsightsKeySectionProps = {
|
|
3
|
+
keys: CacheKeyInsight[];
|
|
4
|
+
onSelectKey?: (key: string, insight: CacheKeyInsight) => void;
|
|
5
|
+
};
|
|
6
|
+
export default function CacheInsightsKeySection({ keys, onSelectKey, }: CacheInsightsKeySectionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CacheKeyInsight } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
type CacheInsightsKpiRowProps = {
|
|
3
|
+
keys?: CacheKeyInsight[];
|
|
4
|
+
windowStart?: number | null;
|
|
5
|
+
windowEnd?: number | null;
|
|
6
|
+
};
|
|
7
|
+
export default function CacheInsightsKpiRow({ keys, windowStart, windowEnd, }: CacheInsightsKpiRowProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CacheKeyInsight, CacheLogsFilter, CacheTagInsight } from '../../../../types/types.cacheLog';
|
|
2
|
+
type CacheInsightsOverviewProps = {
|
|
3
|
+
filters: CacheLogsFilter;
|
|
4
|
+
onSelectKey?: (key: string, insight: CacheKeyInsight) => void;
|
|
5
|
+
onSelectTag?: (tag: string, insight: CacheTagInsight) => void;
|
|
6
|
+
};
|
|
7
|
+
export default function CacheInsightsOverview({ filters, onSelectKey, onSelectTag, }: CacheInsightsOverviewProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CacheTagInsight } from '../../../../types/types.cacheLog';
|
|
2
|
+
type CacheInsightsTagSectionProps = {
|
|
3
|
+
tags: CacheTagInsight[];
|
|
4
|
+
onSelectTag?: (tag: string, insight: CacheTagInsight) => void;
|
|
5
|
+
};
|
|
6
|
+
export default function CacheInsightsTagSection({ tags, onSelectTag, }: CacheInsightsTagSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CacheKeyInsight } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
type CacheProblemPanelsProps = {
|
|
3
|
+
keys: CacheKeyInsight[];
|
|
4
|
+
onSelectKey?: (key: string, insight: CacheKeyInsight) => void;
|
|
5
|
+
};
|
|
6
|
+
export default function CacheProblemPanels({ keys, onSelectKey, }: CacheProblemPanelsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CacheKeyInsight, CacheTagInsight } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
import { mapKeyInsightsToChartData, mapTagInsightsToChartData } from '../../../../utils/cache/cacheInsightsMappers.js';
|
|
3
|
+
import { CacheInsightDatum } from '../../../../utils/cache/cacheInsightsMetrics.js';
|
|
4
|
+
export interface CacheTagStat {
|
|
5
|
+
tag: string;
|
|
6
|
+
hits: number;
|
|
7
|
+
misses: number;
|
|
8
|
+
sets: number;
|
|
9
|
+
totalSizeKB: number;
|
|
10
|
+
totalRequests: number;
|
|
11
|
+
hitRate: number;
|
|
12
|
+
missRate: number;
|
|
13
|
+
avgMissDurationMs: number | null;
|
|
14
|
+
}
|
|
15
|
+
type CacheTagInsightsProps = {
|
|
16
|
+
stats: CacheTagStat[];
|
|
17
|
+
};
|
|
18
|
+
export declare const CacheTagInsights: ({ stats }: CacheTagInsightsProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { mapKeyInsightsToChartData, mapTagInsightsToChartData };
|
|
20
|
+
export type { CacheInsightDatum, CacheKeyInsight, CacheTagInsight };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
cacheKey: string;
|
|
3
|
+
clearQuery?: Record<string, unknown>;
|
|
4
|
+
onCleared?: (key: string) => void;
|
|
5
|
+
clearFetch: (args: {
|
|
6
|
+
query: Record<string, unknown>;
|
|
7
|
+
}, body: never) => Promise<unknown>;
|
|
8
|
+
refetchLogs: () => void;
|
|
9
|
+
refetchTrace: () => void;
|
|
10
|
+
};
|
|
11
|
+
export default function CacheKeyDetailActions({ cacheKey, clearQuery, onCleared, clearFetch, refetchLogs, refetchTrace, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CacheLogType } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
import { FeedPaginationProps } from '../../../feeds/FeedPagination.js';
|
|
3
|
+
export default function CacheKeyDetailLogsTab({ items, data, fetchNextPage, isLoading, extractItems, hasNextPage, isFetchingNextPage, pageSize, }: Omit<FeedPaginationProps<CacheLogType>, 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import type { CacheSummaryType } from '
|
|
1
|
+
import type { CacheKeyInsight, CacheSummaryType } from '../../../../types/types.cacheLog.js';
|
|
2
2
|
type CacheKeyDetailModalProps = {
|
|
3
3
|
open: boolean;
|
|
4
4
|
cacheKey?: string | null;
|
|
5
5
|
summary?: CacheSummaryType | null;
|
|
6
|
+
insight?: CacheKeyInsight | null;
|
|
6
7
|
baseQuery: Record<string, unknown>;
|
|
8
|
+
window?: {
|
|
9
|
+
afterDate?: string;
|
|
10
|
+
beforeDate?: string;
|
|
11
|
+
};
|
|
7
12
|
onClose: () => void;
|
|
8
13
|
onPrev?: () => void;
|
|
9
14
|
onNext?: () => void;
|
|
10
15
|
onCleared?: (key: string) => void;
|
|
11
16
|
};
|
|
12
|
-
export default function CacheKeyDetailModal({ open, cacheKey, summary, baseQuery, onClose, onPrev, onNext, onCleared, }: CacheKeyDetailModalProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default function CacheKeyDetailModal({ open, cacheKey, summary, insight, baseQuery, window, onClose, onPrev, onNext, onCleared, }: CacheKeyDetailModalProps): import("react/jsx-runtime").JSX.Element;
|
|
13
18
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CacheKeyInsight, CacheSummaryType } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
import { OperationLatencySummary } from '../../../../utils/cache/cacheTraceInsights.js';
|
|
3
|
+
type Props = {
|
|
4
|
+
summary?: CacheSummaryType | null;
|
|
5
|
+
insight?: CacheKeyInsight | null;
|
|
6
|
+
computed: {
|
|
7
|
+
totalHits: number;
|
|
8
|
+
totalMisses: number;
|
|
9
|
+
totalSets: number;
|
|
10
|
+
lastHitAt: number | null;
|
|
11
|
+
lastMissAt: number | null;
|
|
12
|
+
lastSetAt: number | null;
|
|
13
|
+
};
|
|
14
|
+
latency: OperationLatencySummary;
|
|
15
|
+
};
|
|
16
|
+
export default function CacheKeyDetailSummary({ summary, insight, computed, latency, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CacheTraceType } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
type Props = {
|
|
3
|
+
traces: CacheTraceType[];
|
|
4
|
+
resetKey: string;
|
|
5
|
+
};
|
|
6
|
+
export default function CacheKeyDetailTimelineTab({ traces, resetKey }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CacheTraceType } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
import { FeedPaginationProps } from '../../../feeds/FeedPagination.js';
|
|
3
|
+
export default function CacheKeyDetailTracesTab({ isFetchingNextPage, isLoading, pageSize, data, items, fetchNextPage, hasNextPage, }: Omit<FeedPaginationProps<CacheTraceType>, 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { InfiniteData } from '@tanstack/react-query';
|
|
2
|
+
import type { CacheKeyInsight, CacheLogsFilter, CacheLogType, CacheSummaryType, CacheTagInsight } from '../../../../types/types.cacheLog.js';
|
|
3
|
+
export type CacheView = 'logs' | 'keys' | 'overview';
|
|
4
|
+
type ExportConfig = {
|
|
5
|
+
filename: string;
|
|
6
|
+
rows: Record<string, unknown>[];
|
|
7
|
+
} | null;
|
|
8
|
+
type CacheDataCardProps = {
|
|
9
|
+
cacheView: CacheView;
|
|
10
|
+
exportConfig: ExportConfig;
|
|
11
|
+
cacheFilters: CacheLogsFilter;
|
|
12
|
+
cacheLoading: boolean;
|
|
13
|
+
cacheError: unknown;
|
|
14
|
+
cacheLogs: CacheLogType[];
|
|
15
|
+
filteredCacheLogs: CacheLogType[];
|
|
16
|
+
filteredCacheSummaryItems: CacheSummaryType[];
|
|
17
|
+
cacheData?: InfiniteData<{
|
|
18
|
+
out?: CacheLogType[];
|
|
19
|
+
}>;
|
|
20
|
+
fetchNextCachePage: () => Promise<unknown>;
|
|
21
|
+
hasNextCachePage: boolean;
|
|
22
|
+
isFetchingNextCachePage: boolean;
|
|
23
|
+
onChangeView: (view: CacheView) => void;
|
|
24
|
+
onSelectSummaryRow: (item: CacheSummaryType, index: number, orderedItems: CacheSummaryType[]) => void;
|
|
25
|
+
onSelectKey: (key: string, insight?: CacheKeyInsight) => void;
|
|
26
|
+
onSelectTag: (tag: string, insight: CacheTagInsight) => void;
|
|
27
|
+
refetchCache: () => void;
|
|
28
|
+
};
|
|
29
|
+
export default function CacheDataCard({ cacheView, exportConfig, cacheFilters, cacheLoading, cacheError, cacheLogs, filteredCacheLogs, filteredCacheSummaryItems, cacheData, fetchNextCachePage, hasNextCachePage, isFetchingNextCachePage, onChangeView, onSelectSummaryRow, onSelectKey, onSelectTag, refetchCache, }: CacheDataCardProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CacheLogType, CacheLogsFilter } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
import { FilterMode, SelectionState } from '../../../../types/filterTypes.js';
|
|
3
|
+
type CacheFiltersCardProps = {
|
|
4
|
+
filters: CacheLogsFilter;
|
|
5
|
+
cacheKeyOptions: string[];
|
|
6
|
+
refreshing: boolean;
|
|
7
|
+
clearError: string | null;
|
|
8
|
+
onRefresh: () => void;
|
|
9
|
+
onClearCache: () => void;
|
|
10
|
+
onUpdateFilters: (updater: (prev: CacheLogsFilter) => CacheLogsFilter) => void;
|
|
11
|
+
getOperationState: (operation: CacheLogType['operation']) => SelectionState;
|
|
12
|
+
onToggleOperation: (operation: CacheLogType['operation'], mode: FilterMode) => void;
|
|
13
|
+
};
|
|
14
|
+
export default function CacheFiltersCard({ filters, cacheKeyOptions, refreshing, clearError, onRefresh, onClearCache, onUpdateFilters, getOperationState, onToggleOperation, }: CacheFiltersCardProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CacheLogType } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
type CacheLogsTableProps = {
|
|
3
|
+
logs: CacheLogType[];
|
|
4
|
+
baseQuery: Record<string, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export default function CacheLogsTable({ logs, baseQuery, }: CacheLogsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CacheLogType, CacheTagInsight } from '../../../../types/types.cacheLog.js';
|
|
2
|
+
type CacheTagDetailModalProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
tag: string;
|
|
5
|
+
insight: CacheTagInsight;
|
|
6
|
+
logs: CacheLogType[];
|
|
7
|
+
baseQuery: Record<string, unknown>;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
};
|
|
10
|
+
export default function CacheTagDetailModal({ open, tag, insight, logs, baseQuery: _baseQuery, onClose, }: CacheTagDetailModalProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|