@emeryld/rrroutes-openapi 2.5.10 → 2.5.13

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 (48) hide show
  1. package/dist/index.cjs +64 -126
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +3 -2
  4. package/dist/index.mjs +63 -125
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/public/assets/docs.js +113 -113
  7. package/dist/web/v2/types/types.base.d.ts +1 -6
  8. package/dist/web/v2/types/types.cacheLog.d.ts +61 -670
  9. package/dist/web/v2/types/types.d.ts +3 -1
  10. package/dist/web/v2/types/types.endpoint.d.ts +5 -20
  11. package/dist/web/v2/types/types.log.d.ts +5 -20
  12. package/dist/web/v2/types/types.preset.d.ts +5 -20
  13. package/dist/web/v2/types/types.requestLog.d.ts +5 -20
  14. package/dist/web/v2/types/types.scheduling.d.ts +408 -0
  15. package/dist/web/v2/types/types.socket.d.ts +5 -20
  16. package/dist/web/v2/utils/dates.d.ts +4 -0
  17. package/dist/web/v2/utils/sizeFormat.d.ts +0 -1
  18. package/package.json +3 -3
  19. package/dist/web/v2/components/logs/cache/common/CacheSummaryStat.d.ts +0 -7
  20. package/dist/web/v2/components/logs/cache/common/CacheTraceDialog.d.ts +0 -8
  21. package/dist/web/v2/components/logs/cache/common/CacheValueDialog.d.ts +0 -8
  22. package/dist/web/v2/components/logs/cache/common/DetailField.d.ts +0 -7
  23. package/dist/web/v2/components/logs/cache/common/MutedText.d.ts +0 -4
  24. package/dist/web/v2/components/logs/cache/insights/CacheInsights.d.ts +0 -10
  25. package/dist/web/v2/components/logs/cache/insights/CacheInsightsKeySection.d.ts +0 -7
  26. package/dist/web/v2/components/logs/cache/insights/CacheInsightsKpiRow.d.ts +0 -8
  27. package/dist/web/v2/components/logs/cache/insights/CacheInsightsOverview.d.ts +0 -8
  28. package/dist/web/v2/components/logs/cache/insights/CacheInsightsTagSection.d.ts +0 -7
  29. package/dist/web/v2/components/logs/cache/insights/CacheProblemPanels.d.ts +0 -7
  30. package/dist/web/v2/components/logs/cache/insights/CacheTagInsights.d.ts +0 -20
  31. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailActions.d.ts +0 -12
  32. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailLogsTab.d.ts +0 -3
  33. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailModal.d.ts +0 -18
  34. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailSummary.d.ts +0 -17
  35. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailTimelineTab.d.ts +0 -7
  36. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailTracesTab.d.ts +0 -3
  37. package/dist/web/v2/components/logs/cache/logs/CacheDataCard.d.ts +0 -30
  38. package/dist/web/v2/components/logs/cache/logs/CacheFiltersCard.d.ts +0 -15
  39. package/dist/web/v2/components/logs/cache/logs/CacheLogsSection.d.ts +0 -1
  40. package/dist/web/v2/components/logs/cache/logs/CacheLogsTable.d.ts +0 -7
  41. package/dist/web/v2/components/logs/cache/logs/CacheSummaryTable.d.ts +0 -8
  42. package/dist/web/v2/components/logs/cache/modals/CacheTagDetailModal.d.ts +0 -11
  43. package/dist/web/v2/hooks/useCacheInsights.d.ts +0 -308
  44. package/dist/web/v2/utils/cache/cacheInsightsMappers.d.ts +0 -6
  45. package/dist/web/v2/utils/cache/cacheInsightsMetrics.d.ts +0 -24
  46. package/dist/web/v2/utils/cache/cacheTraceInsights.d.ts +0 -35
  47. package/dist/web/v2/utils/cacheFormat.d.ts +0 -7
  48. package/dist/web/v2/utils/cacheUtils.d.ts +0 -2
@@ -28,12 +28,7 @@ export type SocketEventType = z.infer<typeof socketEventSchema>;
28
28
  export declare const socketEventQuerySchema: z.ZodObject<{
29
29
  beforeDate: z.ZodOptional<z.ZodString>;
30
30
  afterDate: z.ZodOptional<z.ZodString>;
31
- orderBy: z.ZodOptional<z.ZodEnum<{
32
- timestamp: "timestamp";
33
- duration: "duration";
34
- level: "level";
35
- path: "path";
36
- }>>;
31
+ orderBy: z.ZodOptional<z.ZodString>;
37
32
  orderDirection: z.ZodOptional<z.ZodEnum<{
38
33
  asc: "asc";
39
34
  desc: "desc";
@@ -109,12 +104,7 @@ export declare const socketLeaves: readonly [{
109
104
  querySchema: z.ZodObject<{
110
105
  beforeDate: z.ZodOptional<z.ZodString>;
111
106
  afterDate: z.ZodOptional<z.ZodString>;
112
- orderBy: z.ZodOptional<z.ZodEnum<{
113
- timestamp: "timestamp";
114
- duration: "duration";
115
- level: "level";
116
- path: "path";
117
- }>>;
107
+ orderBy: z.ZodOptional<z.ZodString>;
118
108
  orderDirection: z.ZodOptional<z.ZodEnum<{
119
109
  asc: "asc";
120
110
  desc: "desc";
@@ -171,12 +161,7 @@ export declare const socketLeaves: readonly [{
171
161
  querySchema: z.ZodObject<{
172
162
  beforeDate: z.ZodOptional<z.ZodString>;
173
163
  afterDate: z.ZodOptional<z.ZodString>;
174
- orderBy: z.ZodOptional<z.ZodEnum<{
175
- timestamp: "timestamp";
176
- duration: "duration";
177
- level: "level";
178
- path: "path";
179
- }>>;
164
+ orderBy: z.ZodOptional<z.ZodString>;
180
165
  orderDirection: z.ZodOptional<z.ZodEnum<{
181
166
  asc: "asc";
182
167
  desc: "desc";
@@ -240,7 +225,7 @@ export declare const socketLeaves: readonly [{
240
225
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
241
226
  beforeDate?: string | undefined;
242
227
  afterDate?: string | undefined;
243
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
228
+ orderBy?: string | undefined;
244
229
  orderDirection?: "asc" | "desc" | undefined;
245
230
  searchQuery?: string | undefined;
246
231
  groupsInclude?: string[] | undefined;
@@ -256,7 +241,7 @@ export declare const socketLeaves: readonly [{
256
241
  }, {
257
242
  beforeDate?: string | undefined;
258
243
  afterDate?: string | undefined;
259
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
244
+ orderBy?: string | undefined;
260
245
  orderDirection?: "asc" | "desc" | undefined;
261
246
  searchQuery?: string | undefined;
262
247
  groupsInclude?: string[] | undefined;
@@ -1 +1,5 @@
1
1
  export declare function nowIso(): string;
2
+ export declare function formatTimestamp(value?: number | null): string;
3
+ export declare function formatIsoDate(value?: number | null): string;
4
+ export declare function formatDurationMs(value?: number | null): string;
5
+ export declare function formatRelative(value?: number | null): string;
@@ -1,2 +1 @@
1
1
  export declare function formatSize(bytes?: number | null): string;
2
- export default formatSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.5.10",
3
+ "version": "2.5.13",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -28,9 +28,9 @@
28
28
  "react": "^18.3.1",
29
29
  "react-dom": "^18.3.1",
30
30
  "react-router-dom": "^7.10.1",
31
- "recharts": "^3.5.1",
31
+ "recharts": "^3.6.0",
32
32
  "socket.io-client": "^4.8.1",
33
- "zod": "^4.1.13"
33
+ "zod": "^4.2.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "express": "^5.1.0"
@@ -1,7 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- type CacheSummaryStatProps = {
3
- label: string;
4
- value: ReactNode;
5
- };
6
- export default function CacheSummaryStat({ label, value, }: CacheSummaryStatProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,7 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- type DetailFieldProps = {
3
- label: string;
4
- children: ReactNode;
5
- };
6
- export default function DetailField({ label, children }: DetailFieldProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,4 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export default function MutedText({ children }: {
3
- children: ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
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 {};
@@ -1,7 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,7 +0,0 @@
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 {};
@@ -1,7 +0,0 @@
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 {};
@@ -1,20 +0,0 @@
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 };
@@ -1,12 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
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,18 +0,0 @@
1
- import type { CacheKeyInsight, CacheSummaryType } from '../../../../types/types.cacheLog.js';
2
- type CacheKeyDetailModalProps = {
3
- open: boolean;
4
- cacheKey?: string | null;
5
- summary?: CacheSummaryType | null;
6
- insight?: CacheKeyInsight | null;
7
- baseQuery: Record<string, unknown>;
8
- window?: {
9
- afterDate?: string;
10
- beforeDate?: string;
11
- };
12
- onClose: () => void;
13
- onPrev?: () => void;
14
- onNext?: () => void;
15
- onCleared?: (key: string) => void;
16
- };
17
- export default function CacheKeyDetailModal({ open, cacheKey, summary, insight, baseQuery, window, onClose, onPrev, onNext, onCleared, }: CacheKeyDetailModalProps): import("react/jsx-runtime").JSX.Element;
18
- export {};
@@ -1,17 +0,0 @@
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 {};
@@ -1,7 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
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;
@@ -1,30 +0,0 @@
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 {};
@@ -1,15 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export default function CacheLogsSection(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
1
- import type { CacheLogType, CacheSummaryType } from '../../../../types/types.cacheLog.js';
2
- type CacheSummaryTableProps = {
3
- items: CacheSummaryType[];
4
- logs: CacheLogType[];
5
- onSelectKey?: (item: CacheSummaryType, index: number, orderedItems: CacheSummaryType[]) => void;
6
- };
7
- export default function CacheSummaryTable({ items, logs, onSelectKey, }: CacheSummaryTableProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,11 +0,0 @@
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 {};