@emeryld/rrroutes-openapi 2.6.0 → 2.6.1

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.
@@ -4,17 +4,20 @@ export type TimelineFilterState = {
4
4
  logLevels: Set<string>;
5
5
  cacheOperations: Set<string>;
6
6
  socketDirections: Set<string>;
7
+ schedulingStatuses: Set<string>;
7
8
  };
8
9
  export type TimelineFilterOptions = {
9
10
  kinds: RequestTimelineEvent['kind'][];
10
11
  logLevels: string[];
11
12
  cacheOperations: string[];
12
13
  socketDirections: string[];
14
+ schedulingStatuses: string[];
13
15
  };
14
16
  export type TimelineFilterStats = {
15
17
  logLevelCounts: Record<string, number>;
16
18
  cacheOperationCounts: Record<string, number>;
17
19
  socketDirectionCounts: Record<string, number>;
20
+ schedulingStatusCounts: Record<string, number>;
18
21
  };
19
22
  type RequestTimelineFiltersProps = {
20
23
  available: TimelineFilterOptions;
@@ -3,6 +3,7 @@ type RequestTimelineRowProps = {
3
3
  event: RequestTimelineEvent;
4
4
  deltaMs: number | null;
5
5
  maxDeltaMs: number;
6
+ getSchedulingStatusColor?: (status?: string) => string;
6
7
  };
7
- export default function RequestTimelineRow({ event, deltaMs, maxDeltaMs, }: RequestTimelineRowProps): import("react/jsx-runtime").JSX.Element;
8
+ export default function RequestTimelineRow({ event, deltaMs, maxDeltaMs, getSchedulingStatusColor, }: RequestTimelineRowProps): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -1,5 +1,6 @@
1
1
  import type { CacheTraceType } from '../../../types/types.cacheLog.js';
2
2
  import type { LogType } from '../../../types/types.log.js';
3
+ import type { SchedulingType } from '../../../types/types.scheduling.js';
3
4
  import type { SocketEventType } from '../../../types/types.socket.js';
4
5
  export type RequestTimelineEvent = {
5
6
  kind: 'cache';
@@ -11,6 +12,11 @@ export type RequestTimelineEvent = {
11
12
  id: string;
12
13
  createdAt: number;
13
14
  log: LogType;
15
+ } | {
16
+ kind: 'scheduling';
17
+ id: string;
18
+ createdAt: number;
19
+ scheduling: SchedulingType;
14
20
  } | {
15
21
  kind: 'socket';
16
22
  id: string;
@@ -3,6 +3,7 @@ type SchedulingDetailModalProps = {
3
3
  open: boolean;
4
4
  scheduling: SchedulingType | null;
5
5
  onClose: () => void;
6
+ getStatusColor?: (status?: string) => string;
6
7
  };
7
- export default function SchedulingDetailModal({ open, scheduling, onClose, }: SchedulingDetailModalProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export default function SchedulingDetailModal({ open, scheduling, onClose, getStatusColor, }: SchedulingDetailModalProps): import("react/jsx-runtime").JSX.Element | null;
8
9
  export {};
@@ -10,3 +10,8 @@ export declare const levelRegistry: import("./genericRegistry").Registry<{
10
10
  value: string;
11
11
  }[]>;
12
12
  export declare const endpointTagRegistry: import("./genericRegistry").Registry<string[]>;
13
+ export type SchedulingStatusEntry = {
14
+ value: string;
15
+ color: string;
16
+ };
17
+ export declare const schedulingStatusRegistry: import("./genericRegistry").Registry<SchedulingStatusEntry[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",