@emeryld/rrroutes-openapi 2.4.6 → 2.4.7
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 +74 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +74 -0
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +83 -83
- package/dist/web/v2/components/logs/ApplicationLogsSection.d.ts +1 -0
- package/dist/web/v2/components/logs/cache/CacheInsightsKeySection.d.ts +6 -0
- package/dist/web/v2/components/logs/cache/CacheInsightsOverview.d.ts +6 -0
- package/dist/web/v2/components/logs/cache/CacheInsightsTagSection.d.ts +6 -0
- package/dist/web/v2/components/logs/{CacheKeyDetailModal.d.ts → cache/CacheKeyDetailModal.d.ts} +1 -1
- package/dist/web/v2/components/logs/cache/CacheLogsSection.d.ts +1 -0
- package/dist/web/v2/components/logs/{CacheLogsTable.d.ts → cache/CacheLogsTable.d.ts} +1 -1
- package/dist/web/v2/components/logs/{CacheSummaryTable.d.ts → cache/CacheSummaryTable.d.ts} +1 -1
- package/dist/web/v2/components/logs/cache/CacheTagInsights.d.ts +65 -0
- package/dist/web/v2/components/logs/{CacheValueDialog.d.ts → cache/CacheValueDialog.d.ts} +1 -1
- package/dist/web/v2/hooks/useCacheInsights.d.ts +308 -0
- package/dist/web/v2/types/types.cacheLog.d.ts +407 -5
- package/package.json +1 -1
- package/dist/web/v2/components/logs/CacheTagInsights.d.ts +0 -16
|
@@ -66,6 +66,113 @@ export declare const cacheSummarySchema: z.ZodObject<{
|
|
|
66
66
|
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
67
67
|
}, z.core.$strip>;
|
|
68
68
|
export type CacheSummaryType = z.infer<typeof cacheSummarySchema>;
|
|
69
|
+
export declare const cacheKeyInsightSchema: z.ZodObject<{
|
|
70
|
+
key: z.ZodString;
|
|
71
|
+
currentSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
lastSetAt: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
lastDeleteAt: z.ZodNullable<z.ZodNumber>;
|
|
74
|
+
lastHitAt: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
lastMissAt: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
lastActivityAt: z.ZodNullable<z.ZodNumber>;
|
|
77
|
+
totalHits: z.ZodNumber;
|
|
78
|
+
totalMisses: z.ZodNumber;
|
|
79
|
+
totalSets: z.ZodNumber;
|
|
80
|
+
totalDeletes: z.ZodNumber;
|
|
81
|
+
hitsSinceLastSet: z.ZodNumber;
|
|
82
|
+
missesSinceLastSet: z.ZodNumber;
|
|
83
|
+
deletesSinceLastSet: z.ZodNumber;
|
|
84
|
+
avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
86
|
+
avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
87
|
+
hitRate: z.ZodNumber;
|
|
88
|
+
missRate: z.ZodNumber;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const cacheTagInsightSchema: z.ZodObject<{
|
|
91
|
+
tag: z.ZodString;
|
|
92
|
+
approxCurrentSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
totalHits: z.ZodNumber;
|
|
94
|
+
totalMisses: z.ZodNumber;
|
|
95
|
+
totalSets: z.ZodNumber;
|
|
96
|
+
totalDeletes: z.ZodNumber;
|
|
97
|
+
avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
|
|
98
|
+
avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
99
|
+
avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
100
|
+
hitRate: z.ZodNumber;
|
|
101
|
+
missRate: z.ZodNumber;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export declare const cacheInsightsSchema: z.ZodObject<{
|
|
104
|
+
computedAt: z.ZodNumber;
|
|
105
|
+
windowStart: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
windowEnd: z.ZodNullable<z.ZodNumber>;
|
|
107
|
+
groupBy: z.ZodEnum<{
|
|
108
|
+
key: "key";
|
|
109
|
+
tag: "tag";
|
|
110
|
+
both: "both";
|
|
111
|
+
}>;
|
|
112
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
key: z.ZodString;
|
|
114
|
+
currentSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
115
|
+
lastSetAt: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
lastDeleteAt: z.ZodNullable<z.ZodNumber>;
|
|
117
|
+
lastHitAt: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
lastMissAt: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
lastActivityAt: z.ZodNullable<z.ZodNumber>;
|
|
120
|
+
totalHits: z.ZodNumber;
|
|
121
|
+
totalMisses: z.ZodNumber;
|
|
122
|
+
totalSets: z.ZodNumber;
|
|
123
|
+
totalDeletes: z.ZodNumber;
|
|
124
|
+
hitsSinceLastSet: z.ZodNumber;
|
|
125
|
+
missesSinceLastSet: z.ZodNumber;
|
|
126
|
+
deletesSinceLastSet: z.ZodNumber;
|
|
127
|
+
avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
|
|
128
|
+
avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
129
|
+
avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
130
|
+
hitRate: z.ZodNumber;
|
|
131
|
+
missRate: z.ZodNumber;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
133
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
134
|
+
tag: z.ZodString;
|
|
135
|
+
approxCurrentSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
136
|
+
totalHits: z.ZodNumber;
|
|
137
|
+
totalMisses: z.ZodNumber;
|
|
138
|
+
totalSets: z.ZodNumber;
|
|
139
|
+
totalDeletes: z.ZodNumber;
|
|
140
|
+
avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
|
|
141
|
+
avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
142
|
+
avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
143
|
+
hitRate: z.ZodNumber;
|
|
144
|
+
missRate: z.ZodNumber;
|
|
145
|
+
}, z.core.$strip>>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export type CacheKeyInsight = z.infer<typeof cacheKeyInsightSchema>;
|
|
148
|
+
export type CacheTagInsight = z.infer<typeof cacheTagInsightSchema>;
|
|
149
|
+
export type CacheInsights = z.infer<typeof cacheInsightsSchema>;
|
|
150
|
+
export declare const cacheInsightsQuerySchema: z.ZodObject<{
|
|
151
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
152
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
153
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
154
|
+
timestamp: "timestamp";
|
|
155
|
+
duration: "duration";
|
|
156
|
+
level: "level";
|
|
157
|
+
path: "path";
|
|
158
|
+
}>>;
|
|
159
|
+
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
asc: "asc";
|
|
161
|
+
desc: "desc";
|
|
162
|
+
}>>;
|
|
163
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
164
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
166
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
|
+
groupBy: z.ZodDefault<z.ZodEnum<{
|
|
170
|
+
key: "key";
|
|
171
|
+
tag: "tag";
|
|
172
|
+
both: "both";
|
|
173
|
+
}>>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
export type CacheInsightsFilter = z.infer<typeof cacheInsightsQuerySchema>;
|
|
69
176
|
export declare const cacheLeaves: readonly [{
|
|
70
177
|
readonly method: "get";
|
|
71
178
|
readonly path: "cache";
|
|
@@ -351,20 +458,315 @@ export declare const cacheLeaves: readonly [{
|
|
|
351
458
|
pageSize?: unknown;
|
|
352
459
|
}>;
|
|
353
460
|
}>>>;
|
|
461
|
+
}, {
|
|
462
|
+
readonly method: "get";
|
|
463
|
+
readonly path: "cache/insights";
|
|
464
|
+
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<C_1, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
465
|
+
queryExtensionSchema: C_1["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C_1["queryExtensionSchema"] : undefined;
|
|
466
|
+
outputMetaSchema: C_1["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C_1["outputMetaSchema"] : undefined;
|
|
467
|
+
}> 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 ? {
|
|
468
|
+
feed: true;
|
|
469
|
+
} : {
|
|
470
|
+
feed?: boolean;
|
|
471
|
+
}) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
472
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
473
|
+
} : {
|
|
474
|
+
paramsSchema: undefined;
|
|
475
|
+
}) : (WithDefaults["feed"] extends true ? {
|
|
476
|
+
feed: true;
|
|
477
|
+
} : {
|
|
478
|
+
feed?: boolean;
|
|
479
|
+
}) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
480
|
+
querySchema: WithDefaults["querySchema"];
|
|
481
|
+
} : {
|
|
482
|
+
querySchema?: undefined;
|
|
483
|
+
}) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
484
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
485
|
+
} : {
|
|
486
|
+
paramsSchema: undefined;
|
|
487
|
+
}))> : 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"> & Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<{
|
|
488
|
+
outputSchema: z.ZodObject<{
|
|
489
|
+
computedAt: z.ZodNumber;
|
|
490
|
+
windowStart: z.ZodNullable<z.ZodNumber>;
|
|
491
|
+
windowEnd: z.ZodNullable<z.ZodNumber>;
|
|
492
|
+
groupBy: z.ZodEnum<{
|
|
493
|
+
key: "key";
|
|
494
|
+
tag: "tag";
|
|
495
|
+
both: "both";
|
|
496
|
+
}>;
|
|
497
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
498
|
+
key: z.ZodString;
|
|
499
|
+
currentSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
500
|
+
lastSetAt: z.ZodNullable<z.ZodNumber>;
|
|
501
|
+
lastDeleteAt: z.ZodNullable<z.ZodNumber>;
|
|
502
|
+
lastHitAt: z.ZodNullable<z.ZodNumber>;
|
|
503
|
+
lastMissAt: z.ZodNullable<z.ZodNumber>;
|
|
504
|
+
lastActivityAt: z.ZodNullable<z.ZodNumber>;
|
|
505
|
+
totalHits: z.ZodNumber;
|
|
506
|
+
totalMisses: z.ZodNumber;
|
|
507
|
+
totalSets: z.ZodNumber;
|
|
508
|
+
totalDeletes: z.ZodNumber;
|
|
509
|
+
hitsSinceLastSet: z.ZodNumber;
|
|
510
|
+
missesSinceLastSet: z.ZodNumber;
|
|
511
|
+
deletesSinceLastSet: z.ZodNumber;
|
|
512
|
+
avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
|
|
513
|
+
avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
514
|
+
avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
515
|
+
hitRate: z.ZodNumber;
|
|
516
|
+
missRate: z.ZodNumber;
|
|
517
|
+
}, z.core.$strip>>>;
|
|
518
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
519
|
+
tag: z.ZodString;
|
|
520
|
+
approxCurrentSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
521
|
+
totalHits: z.ZodNumber;
|
|
522
|
+
totalMisses: z.ZodNumber;
|
|
523
|
+
totalSets: z.ZodNumber;
|
|
524
|
+
totalDeletes: z.ZodNumber;
|
|
525
|
+
avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
|
|
526
|
+
avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
527
|
+
avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
528
|
+
hitRate: z.ZodNumber;
|
|
529
|
+
missRate: z.ZodNumber;
|
|
530
|
+
}, z.core.$strip>>>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
querySchema: z.ZodObject<{
|
|
533
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
534
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
535
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
536
|
+
timestamp: "timestamp";
|
|
537
|
+
duration: "duration";
|
|
538
|
+
level: "level";
|
|
539
|
+
path: "path";
|
|
540
|
+
}>>;
|
|
541
|
+
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
542
|
+
asc: "asc";
|
|
543
|
+
desc: "desc";
|
|
544
|
+
}>>;
|
|
545
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
546
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
547
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
548
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
550
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
551
|
+
groupBy: z.ZodDefault<z.ZodEnum<{
|
|
552
|
+
key: "key";
|
|
553
|
+
tag: "tag";
|
|
554
|
+
both: "both";
|
|
555
|
+
}>>;
|
|
556
|
+
}, z.core.$strip>;
|
|
557
|
+
}, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
558
|
+
queryExtensionSchema: undefined;
|
|
559
|
+
outputMetaSchema: undefined;
|
|
560
|
+
}>, "querySchema" | "outputSchema" | "feed">> & {
|
|
561
|
+
feed?: boolean;
|
|
562
|
+
} & {
|
|
563
|
+
querySchema: z.ZodObject<{
|
|
564
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
565
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
566
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
567
|
+
timestamp: "timestamp";
|
|
568
|
+
duration: "duration";
|
|
569
|
+
level: "level";
|
|
570
|
+
path: "path";
|
|
571
|
+
}>>;
|
|
572
|
+
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
573
|
+
asc: "asc";
|
|
574
|
+
desc: "desc";
|
|
575
|
+
}>>;
|
|
576
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
577
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
578
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
579
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
580
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
581
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
582
|
+
groupBy: z.ZodDefault<z.ZodEnum<{
|
|
583
|
+
key: "key";
|
|
584
|
+
tag: "tag";
|
|
585
|
+
both: "both";
|
|
586
|
+
}>>;
|
|
587
|
+
}, z.core.$strip>;
|
|
588
|
+
} & {
|
|
589
|
+
outputSchema: z.ZodObject<{
|
|
590
|
+
out: z.ZodObject<{
|
|
591
|
+
computedAt: z.ZodNumber;
|
|
592
|
+
windowStart: z.ZodNullable<z.ZodNumber>;
|
|
593
|
+
windowEnd: z.ZodNullable<z.ZodNumber>;
|
|
594
|
+
groupBy: z.ZodEnum<{
|
|
595
|
+
key: "key";
|
|
596
|
+
tag: "tag";
|
|
597
|
+
both: "both";
|
|
598
|
+
}>;
|
|
599
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
600
|
+
key: z.ZodString;
|
|
601
|
+
currentSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
602
|
+
lastSetAt: z.ZodNullable<z.ZodNumber>;
|
|
603
|
+
lastDeleteAt: z.ZodNullable<z.ZodNumber>;
|
|
604
|
+
lastHitAt: z.ZodNullable<z.ZodNumber>;
|
|
605
|
+
lastMissAt: z.ZodNullable<z.ZodNumber>;
|
|
606
|
+
lastActivityAt: z.ZodNullable<z.ZodNumber>;
|
|
607
|
+
totalHits: z.ZodNumber;
|
|
608
|
+
totalMisses: z.ZodNumber;
|
|
609
|
+
totalSets: z.ZodNumber;
|
|
610
|
+
totalDeletes: z.ZodNumber;
|
|
611
|
+
hitsSinceLastSet: z.ZodNumber;
|
|
612
|
+
missesSinceLastSet: z.ZodNumber;
|
|
613
|
+
deletesSinceLastSet: z.ZodNumber;
|
|
614
|
+
avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
|
|
615
|
+
avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
616
|
+
avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
617
|
+
hitRate: z.ZodNumber;
|
|
618
|
+
missRate: z.ZodNumber;
|
|
619
|
+
}, z.core.$strip>>>;
|
|
620
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
621
|
+
tag: z.ZodString;
|
|
622
|
+
approxCurrentSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
623
|
+
totalHits: z.ZodNumber;
|
|
624
|
+
totalMisses: z.ZodNumber;
|
|
625
|
+
totalSets: z.ZodNumber;
|
|
626
|
+
totalDeletes: z.ZodNumber;
|
|
627
|
+
avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
|
|
628
|
+
avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
629
|
+
avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
|
|
630
|
+
hitRate: z.ZodNumber;
|
|
631
|
+
missRate: z.ZodNumber;
|
|
632
|
+
}, z.core.$strip>>>;
|
|
633
|
+
}, z.core.$strip>;
|
|
634
|
+
meta: z.ZodOptional<z.ZodString>;
|
|
635
|
+
}, z.core.$strip>;
|
|
636
|
+
} & {
|
|
637
|
+
paramsSchema: undefined;
|
|
638
|
+
}>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
|
|
639
|
+
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
640
|
+
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
641
|
+
groupBy: "key" | "tag" | "both";
|
|
642
|
+
beforeDate?: string | undefined;
|
|
643
|
+
afterDate?: string | undefined;
|
|
644
|
+
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
645
|
+
orderDirection?: "asc" | "desc" | undefined;
|
|
646
|
+
searchQuery?: string | undefined;
|
|
647
|
+
groupsInclude?: string[] | undefined;
|
|
648
|
+
groupsExclude?: string[] | undefined;
|
|
649
|
+
tagsInclude?: string[] | undefined;
|
|
650
|
+
tagsExclude?: string[] | undefined;
|
|
651
|
+
keys?: string[] | undefined;
|
|
652
|
+
}, {
|
|
653
|
+
beforeDate?: string | undefined;
|
|
654
|
+
afterDate?: string | undefined;
|
|
655
|
+
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
656
|
+
orderDirection?: "asc" | "desc" | undefined;
|
|
657
|
+
searchQuery?: string | undefined;
|
|
658
|
+
groupsInclude?: string[] | undefined;
|
|
659
|
+
groupsExclude?: string[] | undefined;
|
|
660
|
+
tagsInclude?: string[] | undefined;
|
|
661
|
+
tagsExclude?: string[] | undefined;
|
|
662
|
+
keys?: string[] | undefined;
|
|
663
|
+
groupBy?: "key" | "tag" | "both" | undefined;
|
|
664
|
+
}>;
|
|
665
|
+
paramsSchema: undefined;
|
|
666
|
+
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
667
|
+
out: {
|
|
668
|
+
computedAt: number;
|
|
669
|
+
windowStart: number | null;
|
|
670
|
+
windowEnd: number | null;
|
|
671
|
+
groupBy: "key" | "tag" | "both";
|
|
672
|
+
keys?: {
|
|
673
|
+
key: string;
|
|
674
|
+
currentSizeBytes: number | null;
|
|
675
|
+
lastSetAt: number | null;
|
|
676
|
+
lastDeleteAt: number | null;
|
|
677
|
+
lastHitAt: number | null;
|
|
678
|
+
lastMissAt: number | null;
|
|
679
|
+
lastActivityAt: number | null;
|
|
680
|
+
totalHits: number;
|
|
681
|
+
totalMisses: number;
|
|
682
|
+
totalSets: number;
|
|
683
|
+
totalDeletes: number;
|
|
684
|
+
hitsSinceLastSet: number;
|
|
685
|
+
missesSinceLastSet: number;
|
|
686
|
+
deletesSinceLastSet: number;
|
|
687
|
+
avgTimeBetweenSetsMs: number | null;
|
|
688
|
+
avgHitsBetweenSets: number | null;
|
|
689
|
+
avgMissesBetweenSets: number | null;
|
|
690
|
+
hitRate: number;
|
|
691
|
+
missRate: number;
|
|
692
|
+
}[] | undefined;
|
|
693
|
+
tags?: {
|
|
694
|
+
tag: string;
|
|
695
|
+
approxCurrentSizeBytes: number | null;
|
|
696
|
+
totalHits: number;
|
|
697
|
+
totalMisses: number;
|
|
698
|
+
totalSets: number;
|
|
699
|
+
totalDeletes: number;
|
|
700
|
+
avgTimeBetweenSetsMs: number | null;
|
|
701
|
+
avgHitsBetweenSets: number | null;
|
|
702
|
+
avgMissesBetweenSets: number | null;
|
|
703
|
+
hitRate: number;
|
|
704
|
+
missRate: number;
|
|
705
|
+
}[] | undefined;
|
|
706
|
+
};
|
|
707
|
+
meta?: string | undefined;
|
|
708
|
+
}, {
|
|
709
|
+
out: {
|
|
710
|
+
computedAt: number;
|
|
711
|
+
windowStart: number | null;
|
|
712
|
+
windowEnd: number | null;
|
|
713
|
+
groupBy: "key" | "tag" | "both";
|
|
714
|
+
keys?: {
|
|
715
|
+
key: string;
|
|
716
|
+
currentSizeBytes: number | null;
|
|
717
|
+
lastSetAt: number | null;
|
|
718
|
+
lastDeleteAt: number | null;
|
|
719
|
+
lastHitAt: number | null;
|
|
720
|
+
lastMissAt: number | null;
|
|
721
|
+
lastActivityAt: number | null;
|
|
722
|
+
totalHits: number;
|
|
723
|
+
totalMisses: number;
|
|
724
|
+
totalSets: number;
|
|
725
|
+
totalDeletes: number;
|
|
726
|
+
hitsSinceLastSet: number;
|
|
727
|
+
missesSinceLastSet: number;
|
|
728
|
+
deletesSinceLastSet: number;
|
|
729
|
+
avgTimeBetweenSetsMs: number | null;
|
|
730
|
+
avgHitsBetweenSets: number | null;
|
|
731
|
+
avgMissesBetweenSets: number | null;
|
|
732
|
+
hitRate: number;
|
|
733
|
+
missRate: number;
|
|
734
|
+
}[] | undefined;
|
|
735
|
+
tags?: {
|
|
736
|
+
tag: string;
|
|
737
|
+
approxCurrentSizeBytes: number | null;
|
|
738
|
+
totalHits: number;
|
|
739
|
+
totalMisses: number;
|
|
740
|
+
totalSets: number;
|
|
741
|
+
totalDeletes: number;
|
|
742
|
+
avgTimeBetweenSetsMs: number | null;
|
|
743
|
+
avgHitsBetweenSets: number | null;
|
|
744
|
+
avgMissesBetweenSets: number | null;
|
|
745
|
+
hitRate: number;
|
|
746
|
+
missRate: number;
|
|
747
|
+
}[] | undefined;
|
|
748
|
+
};
|
|
749
|
+
meta?: string | undefined;
|
|
750
|
+
}>;
|
|
751
|
+
outputMetaSchema: undefined;
|
|
752
|
+
queryExtensionSchema: undefined;
|
|
753
|
+
}>>>, "paramsSchema"> & {
|
|
754
|
+
paramsSchema: undefined;
|
|
755
|
+
}>>;
|
|
354
756
|
}, {
|
|
355
757
|
readonly method: "post";
|
|
356
758
|
readonly path: "cache/clear";
|
|
357
|
-
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<
|
|
759
|
+
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"> & {
|
|
358
760
|
feed: false;
|
|
359
761
|
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
360
|
-
queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<
|
|
762
|
+
queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
361
763
|
feed: false;
|
|
362
|
-
}>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<
|
|
764
|
+
}>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
363
765
|
feed: false;
|
|
364
766
|
}>["queryExtensionSchema"] : undefined;
|
|
365
|
-
outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<
|
|
767
|
+
outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
366
768
|
feed: false;
|
|
367
|
-
}>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<
|
|
769
|
+
}>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
|
|
368
770
|
feed: false;
|
|
369
771
|
}>["outputMetaSchema"] : undefined;
|
|
370
772
|
}> 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 ? {
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface CacheTagStat {
|
|
2
|
-
tag: string;
|
|
3
|
-
hits: number;
|
|
4
|
-
misses: number;
|
|
5
|
-
sets: number;
|
|
6
|
-
totalSizeMB: number;
|
|
7
|
-
totalRequests: number;
|
|
8
|
-
hitRate: number;
|
|
9
|
-
missRate: number;
|
|
10
|
-
avgMissDurationMs: number | null;
|
|
11
|
-
}
|
|
12
|
-
type CacheTagInsightsProps = {
|
|
13
|
-
stats: CacheTagStat[];
|
|
14
|
-
};
|
|
15
|
-
export declare const CacheTagInsights: ({ stats }: CacheTagInsightsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
-
export {};
|