@emeryld/rrroutes-openapi 2.5.21 → 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.
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +91 -91
- package/dist/web/v2/components/requests/timeline/RequestTimelineFilters.d.ts +3 -0
- package/dist/web/v2/components/requests/timeline/RequestTimelineRow.d.ts +2 -1
- package/dist/web/v2/components/requests/timeline/types.d.ts +6 -0
- package/dist/web/v2/components/scheduling/SchedulingDetailModal.d.ts +9 -0
- package/dist/web/v2/pages/SchedulingPage.d.ts +1 -0
- package/dist/web/v2/registries/optionRegistries.d.ts +5 -0
- package/dist/web/v2/types/types.scheduling.d.ts +97 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SchedulingType } from '../../types/types.scheduling.js';
|
|
2
|
+
type SchedulingDetailModalProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
scheduling: SchedulingType | null;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
getStatusColor?: (status?: string) => string;
|
|
7
|
+
};
|
|
8
|
+
export default function SchedulingDetailModal({ open, scheduling, onClose, getStatusColor, }: SchedulingDetailModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SchedulingPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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[]>;
|
|
@@ -36,6 +36,12 @@ export declare const schedulableHandler: z.ZodObject<{
|
|
|
36
36
|
payload: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export type SchedulableHandlerType = z.infer<typeof schedulableHandler>;
|
|
39
|
+
export declare const scheduleHandlerBodySchema: z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
payload: z.ZodAny;
|
|
42
|
+
runAt: z.ZodCoercedDate<unknown>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type ScheduleHandlerBodyType = z.infer<typeof scheduleHandlerBodySchema>;
|
|
39
45
|
export declare const schedulingLeaves: readonly [{
|
|
40
46
|
readonly method: "get";
|
|
41
47
|
readonly path: "schedulings";
|
|
@@ -411,4 +417,95 @@ export declare const schedulingLeaves: readonly [{
|
|
|
411
417
|
}>>>, "paramsSchema"> & {
|
|
412
418
|
paramsSchema: undefined;
|
|
413
419
|
}>>;
|
|
420
|
+
}, {
|
|
421
|
+
readonly method: "post";
|
|
422
|
+
readonly path: "schedulings/handlers";
|
|
423
|
+
readonly cfg: Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<{}, "queryExtensionSchema" | "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema" | Exclude<keyof (import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
424
|
+
feed: false;
|
|
425
|
+
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
426
|
+
queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
427
|
+
feed: false;
|
|
428
|
+
}>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
429
|
+
feed: false;
|
|
430
|
+
}>["queryExtensionSchema"] : undefined;
|
|
431
|
+
outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
432
|
+
feed: false;
|
|
433
|
+
}>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
434
|
+
feed: false;
|
|
435
|
+
}>["outputMetaSchema"] : undefined;
|
|
436
|
+
}> extends infer WithDefaults extends import("@emeryld/rrroutes-contract").MethodCfg ? import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, Exclude<keyof WithDefaults, "querySchema" | "outputSchema" | "feed">> & Omit<WithDefaults, "querySchema" | "outputSchema" | "feed">> & (WithDefaults["feed"] extends true ? (WithDefaults["feed"] extends true ? {
|
|
437
|
+
feed: true;
|
|
438
|
+
} : {
|
|
439
|
+
feed?: boolean;
|
|
440
|
+
}) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
441
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
442
|
+
} : {
|
|
443
|
+
paramsSchema: undefined;
|
|
444
|
+
}) : (WithDefaults["feed"] extends true ? {
|
|
445
|
+
feed: true;
|
|
446
|
+
} : {
|
|
447
|
+
feed?: boolean;
|
|
448
|
+
}) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
449
|
+
querySchema: WithDefaults["querySchema"];
|
|
450
|
+
} : {
|
|
451
|
+
querySchema?: undefined;
|
|
452
|
+
}) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
453
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
454
|
+
} : {
|
|
455
|
+
paramsSchema: undefined;
|
|
456
|
+
}))> : never), "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema">> & import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, "queryExtensionSchema" | "outputMetaSchema" | "bodySchema"> & Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<{
|
|
457
|
+
bodySchema: z.ZodObject<{
|
|
458
|
+
name: z.ZodString;
|
|
459
|
+
payload: z.ZodAny;
|
|
460
|
+
runAt: z.ZodCoercedDate<unknown>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
outputSchema: z.ZodObject<{
|
|
463
|
+
success: z.ZodBoolean;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
}, "feed"> & {
|
|
466
|
+
feed: false;
|
|
467
|
+
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
468
|
+
queryExtensionSchema: undefined;
|
|
469
|
+
outputMetaSchema: undefined;
|
|
470
|
+
}>, "querySchema" | "outputSchema" | "feed">> & {
|
|
471
|
+
feed?: boolean;
|
|
472
|
+
} & {
|
|
473
|
+
querySchema?: undefined;
|
|
474
|
+
} & {
|
|
475
|
+
outputSchema: z.ZodObject<{
|
|
476
|
+
out: z.ZodObject<{
|
|
477
|
+
success: z.ZodBoolean;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
meta: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
} & {
|
|
482
|
+
paramsSchema: undefined;
|
|
483
|
+
}>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
|
|
484
|
+
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
485
|
+
name: string;
|
|
486
|
+
payload: any;
|
|
487
|
+
runAt: Date;
|
|
488
|
+
}, {
|
|
489
|
+
name: string;
|
|
490
|
+
payload: any;
|
|
491
|
+
runAt: unknown;
|
|
492
|
+
}>;
|
|
493
|
+
querySchema: undefined;
|
|
494
|
+
paramsSchema: undefined;
|
|
495
|
+
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
496
|
+
out: {
|
|
497
|
+
success: boolean;
|
|
498
|
+
};
|
|
499
|
+
meta?: string | undefined;
|
|
500
|
+
}, {
|
|
501
|
+
out: {
|
|
502
|
+
success: boolean;
|
|
503
|
+
};
|
|
504
|
+
meta?: string | undefined;
|
|
505
|
+
}>;
|
|
506
|
+
outputMetaSchema: undefined;
|
|
507
|
+
queryExtensionSchema: undefined;
|
|
508
|
+
}>>>, "paramsSchema"> & {
|
|
509
|
+
paramsSchema: undefined;
|
|
510
|
+
}>>;
|
|
414
511
|
}];
|