@emeryld/rrroutes-openapi 2.5.17 → 2.5.20
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +122 -105
- package/dist/web/v2/components/cache/CacheKeysChart.d.ts +6 -0
- package/dist/web/v2/components/cache/CacheKeysSection.d.ts +1 -0
- package/dist/web/v2/components/cache/CacheTraceChart.d.ts +6 -0
- package/dist/web/v2/components/cache/CacheTraceSection.d.ts +1 -0
- package/dist/web/v2/components/cache/cacheChartRegistry.d.ts +1 -0
- package/dist/web/v2/components/cache/cacheUtils.d.ts +10 -0
- package/dist/web/v2/components/history/RequestTable.d.ts +5 -1
- package/dist/web/v2/components/logs/LogsTable.d.ts +5 -1
- package/dist/web/v2/components/primitives/SortableTable.d.ts +29 -0
- package/dist/web/v2/components/sockets/SocketEventsTable.d.ts +5 -1
- package/dist/web/v2/components/tags/CacheOperationChip.d.ts +5 -2
- package/dist/web/v2/pages/CacheLogsPage.d.ts +1 -0
- package/dist/web/v2/types/types.cacheLog.d.ts +6 -0
- package/package.json +4 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChartData } from 'chart.js';
|
|
2
|
+
import '../cache/cacheChartRegistry.js';
|
|
3
|
+
export type CacheKeysChartProps = {
|
|
4
|
+
data: ChartData<'line'> | null;
|
|
5
|
+
};
|
|
6
|
+
export default function CacheKeysChart({ data }: CacheKeysChartProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CacheKeysSection(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChartData } from 'chart.js';
|
|
2
|
+
import '../cache/cacheChartRegistry.js';
|
|
3
|
+
export type CacheTraceChartProps = {
|
|
4
|
+
data: ChartData<'bar' | 'line'> | null;
|
|
5
|
+
};
|
|
6
|
+
export default function CacheTraceChart({ data }: CacheTraceChartProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CacheTraceSection(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChartData } from 'chart.js';
|
|
2
|
+
import { CacheOperation, type CacheLogType, type CacheTraceType } from '../../types/types.cacheLog.js';
|
|
3
|
+
import { type SelectionState } from '../../types/filterTypes.js';
|
|
4
|
+
export declare const CACHE_OPERATIONS: CacheOperation[];
|
|
5
|
+
export type CacheOperationSelection = Record<CacheOperation, SelectionState>;
|
|
6
|
+
export declare const DEFAULT_OPERATION_SELECTION: CacheOperationSelection;
|
|
7
|
+
export declare function cycleSelectionState(prev: SelectionState): SelectionState;
|
|
8
|
+
export declare function matchesOperationSelection(operation: CacheOperation | undefined, selection: CacheOperationSelection): boolean;
|
|
9
|
+
export declare function buildCacheHitMissChartData(entries: CacheLogType[]): ChartData<'line'> | null;
|
|
10
|
+
export declare function buildTraceTimelineChartData(traces: CacheTraceType[]): ChartData<'bar' | 'line'> | null;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { RequestLogType } from '../../types/types.requestLog.js';
|
|
2
|
+
import { type SortDirection } from '../primitives/SortableTable.js';
|
|
2
3
|
type RequestTableProps = {
|
|
3
4
|
requests: RequestLogType[];
|
|
5
|
+
sortBy?: string | null;
|
|
6
|
+
sortDirection?: SortDirection;
|
|
7
|
+
onSortChange?: (newSortBy: string | null, newSortDirection: SortDirection) => void;
|
|
4
8
|
onSelect: (request: RequestLogType, index: number) => void;
|
|
5
9
|
};
|
|
6
|
-
export default function RequestTable({ requests, onSelect, }: RequestTableProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function RequestTable({ requests, onSelect, sortBy, sortDirection, onSortChange, }: RequestTableProps): import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { LogType } from '../../types/types.log.js';
|
|
2
|
+
import { type SortDirection } from '../primitives/SortableTable.js';
|
|
2
3
|
type LogsTableProps = {
|
|
3
4
|
logs: LogType[];
|
|
5
|
+
sortBy?: string | null;
|
|
6
|
+
sortDirection?: SortDirection;
|
|
7
|
+
onSortChange?: (newSortBy: string | null, newSortDirection: SortDirection) => void;
|
|
4
8
|
onSelect?: (log: LogType) => void;
|
|
5
9
|
};
|
|
6
|
-
export default function LogsTable({ logs, onSelect }: LogsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function LogsTable({ logs, onSelect, sortBy, sortDirection, onSortChange, }: LogsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TableCellProps } from '@mui/material';
|
|
3
|
+
export type SortDirection = 'asc' | 'desc' | 'none';
|
|
4
|
+
type ColumnDefinition = {
|
|
5
|
+
key: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
align?: TableCellProps['align'];
|
|
8
|
+
width?: number | string;
|
|
9
|
+
};
|
|
10
|
+
export type RawColumnDefinition = string | ColumnDefinition;
|
|
11
|
+
type RowRendererParams<T> = {
|
|
12
|
+
row: T;
|
|
13
|
+
rowIndex: number;
|
|
14
|
+
cells: ReactNode[];
|
|
15
|
+
};
|
|
16
|
+
type SortableTableProps<T extends Record<string, unknown>> = {
|
|
17
|
+
data: T[];
|
|
18
|
+
columns: RawColumnDefinition[];
|
|
19
|
+
sortBy?: string | null;
|
|
20
|
+
sortDirection?: SortDirection;
|
|
21
|
+
onSortChange?: (newSortBy: string | null, newSortDirection: SortDirection) => void;
|
|
22
|
+
renderCell?: (row: T, columnKey: string) => ReactNode;
|
|
23
|
+
rowKey?: (row: T, index: number) => React.Key;
|
|
24
|
+
size?: 'small' | 'medium';
|
|
25
|
+
stickyHeader?: boolean;
|
|
26
|
+
rowRenderer?: (params: RowRendererParams<T>) => ReactNode;
|
|
27
|
+
};
|
|
28
|
+
export default function SortableTable<T extends Record<string, unknown>>({ data, columns, sortBy, sortDirection, onSortChange, renderCell, rowRenderer, rowKey, size, stickyHeader, }: SortableTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { SocketEventType } from '../../types/types.socket.js';
|
|
2
|
+
import { type SortDirection } from '../primitives/SortableTable.js';
|
|
2
3
|
type SocketEventsTableProps = {
|
|
3
4
|
events: SocketEventType[];
|
|
4
5
|
onSelect?: (event: SocketEventType, ordered: SocketEventType[]) => void;
|
|
5
6
|
onOpenGroup?: (groupId: string, event: SocketEventType) => void;
|
|
7
|
+
sortBy?: string | null;
|
|
8
|
+
sortDirection?: SortDirection;
|
|
9
|
+
onSortChange?: (newSortBy: string | null, newSortDirection: SortDirection) => void;
|
|
6
10
|
};
|
|
7
|
-
export default function SocketEventsTable({ events, onSelect, onOpenGroup, }: SocketEventsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function SocketEventsTable({ events, onSelect, onOpenGroup, sortBy, sortDirection, onSortChange, }: SocketEventsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
8
12
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import type { ChipProps } from '@mui/material';
|
|
1
2
|
import { CacheOperation } from '../../types/types.cacheLog';
|
|
2
3
|
import { ChipSelectionState } from './chip.types';
|
|
4
|
+
export declare const CACHE_OPERATION_COLORS: Record<CacheOperation, string>;
|
|
3
5
|
type CacheOperationChipProps = {
|
|
4
6
|
operation: CacheOperation;
|
|
5
7
|
state?: ChipSelectionState;
|
|
6
8
|
onClick?: () => void;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
colorOverrides?: Partial<Record<CacheOperation, string>>;
|
|
10
|
+
} & Omit<ChipProps, 'label' | 'onClick'>;
|
|
11
|
+
export default function CacheOperationChip({ operation, state, onClick, colorOverrides, sx, ...rest }: CacheOperationChipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CacheLogsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,6 +6,7 @@ export declare const cacheLogSchema: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
9
10
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
11
|
createdAt: z.ZodNumber;
|
|
11
12
|
updatedAt: z.ZodNumber;
|
|
@@ -110,6 +111,7 @@ export declare const cacheLeaves: readonly [{
|
|
|
110
111
|
id: z.ZodString;
|
|
111
112
|
name: z.ZodString;
|
|
112
113
|
description: z.ZodOptional<z.ZodString>;
|
|
114
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
113
115
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
116
|
createdAt: z.ZodNumber;
|
|
115
117
|
updatedAt: z.ZodNumber;
|
|
@@ -159,6 +161,7 @@ export declare const cacheLeaves: readonly [{
|
|
|
159
161
|
id: z.ZodString;
|
|
160
162
|
name: z.ZodString;
|
|
161
163
|
description: z.ZodOptional<z.ZodString>;
|
|
164
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
162
165
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
163
166
|
createdAt: z.ZodNumber;
|
|
164
167
|
updatedAt: z.ZodNumber;
|
|
@@ -206,6 +209,7 @@ export declare const cacheLeaves: readonly [{
|
|
|
206
209
|
id: z.ZodString;
|
|
207
210
|
name: z.ZodString;
|
|
208
211
|
description: z.ZodOptional<z.ZodString>;
|
|
212
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
209
213
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
214
|
createdAt: z.ZodNumber;
|
|
211
215
|
updatedAt: z.ZodNumber;
|
|
@@ -263,6 +267,7 @@ export declare const cacheLeaves: readonly [{
|
|
|
263
267
|
updatedAt: number;
|
|
264
268
|
value: any;
|
|
265
269
|
description?: string | undefined;
|
|
270
|
+
groupId?: string | undefined;
|
|
266
271
|
tags?: string[] | undefined;
|
|
267
272
|
size?: number | undefined;
|
|
268
273
|
setAt?: number | undefined;
|
|
@@ -280,6 +285,7 @@ export declare const cacheLeaves: readonly [{
|
|
|
280
285
|
updatedAt: number;
|
|
281
286
|
value: any;
|
|
282
287
|
description?: string | undefined;
|
|
288
|
+
groupId?: string | undefined;
|
|
283
289
|
tags?: string[] | undefined;
|
|
284
290
|
size?: number | undefined;
|
|
285
291
|
setAt?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeryld/rrroutes-openapi",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -25,12 +25,14 @@
|
|
|
25
25
|
"@mui/icons-material": "^7.3.6",
|
|
26
26
|
"@mui/material": "^7.3.6",
|
|
27
27
|
"@tanstack/react-query": "^5.90.12",
|
|
28
|
+
"chart.js": "^4.5.1",
|
|
28
29
|
"react": "^18.3.1",
|
|
30
|
+
"react-chartjs-2": "^5.3.1",
|
|
29
31
|
"react-dom": "^18.3.1",
|
|
30
32
|
"react-router-dom": "^7.10.1",
|
|
31
33
|
"recharts": "^3.6.0",
|
|
32
34
|
"socket.io-client": "^4.8.1",
|
|
33
|
-
"zod": "^4.2.
|
|
35
|
+
"zod": "^4.2.1"
|
|
34
36
|
},
|
|
35
37
|
"peerDependencies": {
|
|
36
38
|
"express": "^5.1.0"
|