@emeryld/rrroutes-openapi 2.5.13 → 2.5.15
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 +45 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +45 -27
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +61 -61
- package/dist/web/v2/types/types.cacheLog.d.ts +246 -183
- package/package.json +1 -1
- package/dist/web/v2/hooks/useCacheTrace.d.ts +0 -21
|
@@ -2,23 +2,21 @@ import z from 'zod';
|
|
|
2
2
|
import { paginationSchema } from './types.base';
|
|
3
3
|
export declare const CACHE_OPERATIONS: readonly ["hit", "miss", "set", "delete"];
|
|
4
4
|
export type CacheOperation = (typeof CACHE_OPERATIONS)[number];
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const cacheLogSchema: z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
delete: "delete";
|
|
10
|
-
hit: "hit";
|
|
11
|
-
miss: "miss";
|
|
12
|
-
set: "set";
|
|
13
|
-
}>;
|
|
14
|
-
key: z.ZodString;
|
|
15
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
9
|
groupId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
|
|
10
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
createdAt: z.ZodNumber;
|
|
12
|
+
updatedAt: z.ZodNumber;
|
|
13
|
+
value: z.ZodNullable<z.ZodAny>;
|
|
14
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
setAt: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
ttlMs: z.ZodOptional<z.ZodNumber>;
|
|
19
17
|
}, z.core.$strip>;
|
|
20
|
-
export type
|
|
21
|
-
export declare const
|
|
18
|
+
export type CacheLogType = z.infer<typeof cacheLogSchema>;
|
|
19
|
+
export declare const cacheLogQuerySchema: z.ZodObject<{
|
|
22
20
|
beforeDate: z.ZodOptional<z.ZodString>;
|
|
23
21
|
afterDate: z.ZodOptional<z.ZodString>;
|
|
24
22
|
orderBy: z.ZodOptional<z.ZodString>;
|
|
@@ -31,23 +29,27 @@ export declare const cacheTraceQuerySchema: z.ZodObject<{
|
|
|
31
29
|
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
30
|
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
31
|
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
|
+
keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
|
-
export type
|
|
36
|
-
export declare const
|
|
35
|
+
export type CacheLogsFilter = z.infer<typeof cacheLogQuerySchema> & z.infer<typeof paginationSchema>;
|
|
36
|
+
export declare const cacheTraceSchema: z.ZodObject<{
|
|
37
37
|
id: z.ZodString;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
timestamp: z.ZodNumber;
|
|
39
|
+
operation: z.ZodEnum<{
|
|
40
|
+
delete: "delete";
|
|
41
|
+
hit: "hit";
|
|
42
|
+
miss: "miss";
|
|
43
|
+
set: "set";
|
|
44
|
+
}>;
|
|
45
|
+
key: z.ZodString;
|
|
45
46
|
size: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
49
|
+
type: z.ZodOptional<z.ZodString>;
|
|
48
50
|
}, z.core.$strip>;
|
|
49
|
-
export type
|
|
50
|
-
export declare const
|
|
51
|
+
export type CacheTraceType = z.infer<typeof cacheTraceSchema>;
|
|
52
|
+
export declare const cacheTraceQuerySchema: z.ZodObject<{
|
|
51
53
|
beforeDate: z.ZodOptional<z.ZodString>;
|
|
52
54
|
afterDate: z.ZodOptional<z.ZodString>;
|
|
53
55
|
orderBy: z.ZodOptional<z.ZodString>;
|
|
@@ -62,8 +64,20 @@ export declare const cacheLogQuerySchema: z.ZodObject<{
|
|
|
62
64
|
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
65
|
keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
66
|
keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
+
operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
68
|
+
delete: "delete";
|
|
69
|
+
hit: "hit";
|
|
70
|
+
miss: "miss";
|
|
71
|
+
set: "set";
|
|
72
|
+
}>>>;
|
|
73
|
+
operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
74
|
+
delete: "delete";
|
|
75
|
+
hit: "hit";
|
|
76
|
+
miss: "miss";
|
|
77
|
+
set: "set";
|
|
78
|
+
}>>>;
|
|
65
79
|
}, z.core.$strip>;
|
|
66
|
-
export type
|
|
80
|
+
export type CacheTraceQuery = z.infer<typeof cacheTraceQuerySchema>;
|
|
67
81
|
export declare const cacheLeaves: readonly [{
|
|
68
82
|
readonly method: "get";
|
|
69
83
|
readonly path: "cache";
|
|
@@ -296,10 +310,166 @@ export declare const cacheLeaves: readonly [{
|
|
|
296
310
|
pageSize?: unknown;
|
|
297
311
|
}>;
|
|
298
312
|
}>>>;
|
|
313
|
+
}, {
|
|
314
|
+
readonly method: "post";
|
|
315
|
+
readonly path: "cache/clear";
|
|
316
|
+
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_1, "feed"> & {
|
|
317
|
+
feed: false;
|
|
318
|
+
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
319
|
+
queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
320
|
+
feed: false;
|
|
321
|
+
}>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
322
|
+
feed: false;
|
|
323
|
+
}>["queryExtensionSchema"] : undefined;
|
|
324
|
+
outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
325
|
+
feed: false;
|
|
326
|
+
}>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
327
|
+
feed: false;
|
|
328
|
+
}>["outputMetaSchema"] : undefined;
|
|
329
|
+
}> 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 ? {
|
|
330
|
+
feed: true;
|
|
331
|
+
} : {
|
|
332
|
+
feed?: boolean;
|
|
333
|
+
}) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
334
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
335
|
+
} : {
|
|
336
|
+
paramsSchema: undefined;
|
|
337
|
+
}) : (WithDefaults["feed"] extends true ? {
|
|
338
|
+
feed: true;
|
|
339
|
+
} : {
|
|
340
|
+
feed?: boolean;
|
|
341
|
+
}) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
342
|
+
querySchema: WithDefaults["querySchema"];
|
|
343
|
+
} : {
|
|
344
|
+
querySchema?: undefined;
|
|
345
|
+
}) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
346
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
347
|
+
} : {
|
|
348
|
+
paramsSchema: undefined;
|
|
349
|
+
}))> : 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<import("@emeryld/rrroutes-contract").Prettify<Omit<{
|
|
350
|
+
outputSchema: z.ZodObject<{
|
|
351
|
+
success: z.ZodBoolean;
|
|
352
|
+
}, z.core.$strip>;
|
|
353
|
+
querySchema: z.ZodObject<{
|
|
354
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
355
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
356
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
357
|
+
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
358
|
+
asc: "asc";
|
|
359
|
+
desc: "desc";
|
|
360
|
+
}>>;
|
|
361
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
362
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
363
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
364
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
365
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
366
|
+
keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
367
|
+
keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
}, "feed"> & {
|
|
370
|
+
feed: false;
|
|
371
|
+
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
372
|
+
queryExtensionSchema: undefined;
|
|
373
|
+
outputMetaSchema: undefined;
|
|
374
|
+
}>, "querySchema" | "outputSchema" | "feed">> & {
|
|
375
|
+
feed?: boolean;
|
|
376
|
+
} & {
|
|
377
|
+
querySchema: z.ZodObject<{
|
|
378
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
379
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
380
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
381
|
+
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
382
|
+
asc: "asc";
|
|
383
|
+
desc: "desc";
|
|
384
|
+
}>>;
|
|
385
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
386
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
387
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
388
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
389
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
390
|
+
keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
391
|
+
keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
} & {
|
|
394
|
+
outputSchema: z.ZodObject<{
|
|
395
|
+
out: z.ZodObject<{
|
|
396
|
+
success: z.ZodBoolean;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
meta: z.ZodOptional<z.ZodString>;
|
|
399
|
+
}, z.core.$strip>;
|
|
400
|
+
} & {
|
|
401
|
+
paramsSchema: undefined;
|
|
402
|
+
}>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
|
|
403
|
+
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
404
|
+
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
405
|
+
beforeDate?: string | undefined;
|
|
406
|
+
afterDate?: string | undefined;
|
|
407
|
+
orderBy?: string | undefined;
|
|
408
|
+
orderDirection?: "asc" | "desc" | undefined;
|
|
409
|
+
searchQuery?: string | undefined;
|
|
410
|
+
groupsInclude?: string[] | undefined;
|
|
411
|
+
groupsExclude?: string[] | undefined;
|
|
412
|
+
tagsInclude?: string[] | undefined;
|
|
413
|
+
tagsExclude?: string[] | undefined;
|
|
414
|
+
keysInclude?: string[] | undefined;
|
|
415
|
+
keysExclude?: string[] | undefined;
|
|
416
|
+
}, {
|
|
417
|
+
beforeDate?: string | undefined;
|
|
418
|
+
afterDate?: string | undefined;
|
|
419
|
+
orderBy?: string | undefined;
|
|
420
|
+
orderDirection?: "asc" | "desc" | undefined;
|
|
421
|
+
searchQuery?: string | undefined;
|
|
422
|
+
groupsInclude?: string[] | undefined;
|
|
423
|
+
groupsExclude?: string[] | undefined;
|
|
424
|
+
tagsInclude?: string[] | undefined;
|
|
425
|
+
tagsExclude?: string[] | undefined;
|
|
426
|
+
keysInclude?: string[] | undefined;
|
|
427
|
+
keysExclude?: string[] | undefined;
|
|
428
|
+
}>;
|
|
429
|
+
paramsSchema: undefined;
|
|
430
|
+
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
431
|
+
out: {
|
|
432
|
+
success: boolean;
|
|
433
|
+
};
|
|
434
|
+
meta?: string | undefined;
|
|
435
|
+
}, {
|
|
436
|
+
out: {
|
|
437
|
+
success: boolean;
|
|
438
|
+
};
|
|
439
|
+
meta?: string | undefined;
|
|
440
|
+
}>;
|
|
441
|
+
outputMetaSchema: undefined;
|
|
442
|
+
queryExtensionSchema: undefined;
|
|
443
|
+
}>>>, "paramsSchema"> & {
|
|
444
|
+
paramsSchema: undefined;
|
|
445
|
+
}>>;
|
|
299
446
|
}, {
|
|
300
447
|
readonly method: "get";
|
|
301
|
-
readonly path: "cache
|
|
302
|
-
readonly cfg: Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<{}, "
|
|
448
|
+
readonly path: "cache/trace";
|
|
449
|
+
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_2, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
450
|
+
queryExtensionSchema: C_2["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C_2["queryExtensionSchema"] : undefined;
|
|
451
|
+
outputMetaSchema: C_2["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C_2["outputMetaSchema"] : undefined;
|
|
452
|
+
}> 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 ? {
|
|
453
|
+
feed: true;
|
|
454
|
+
} : {
|
|
455
|
+
feed?: boolean;
|
|
456
|
+
}) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
457
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
458
|
+
} : {
|
|
459
|
+
paramsSchema: undefined;
|
|
460
|
+
}) : (WithDefaults["feed"] extends true ? {
|
|
461
|
+
feed: true;
|
|
462
|
+
} : {
|
|
463
|
+
feed?: boolean;
|
|
464
|
+
}) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
465
|
+
querySchema: WithDefaults["querySchema"];
|
|
466
|
+
} : {
|
|
467
|
+
querySchema?: undefined;
|
|
468
|
+
}) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
469
|
+
paramsSchema: WithDefaults["paramsSchema"];
|
|
470
|
+
} : {
|
|
471
|
+
paramsSchema: undefined;
|
|
472
|
+
}))> : 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<{
|
|
303
473
|
feed: true;
|
|
304
474
|
outputSchema: z.ZodArray<z.ZodObject<{
|
|
305
475
|
id: z.ZodString;
|
|
@@ -316,10 +486,6 @@ export declare const cacheLeaves: readonly [{
|
|
|
316
486
|
groupId: z.ZodOptional<z.ZodString>;
|
|
317
487
|
type: z.ZodOptional<z.ZodString>;
|
|
318
488
|
}, z.core.$strip>>;
|
|
319
|
-
queryExtensionSchema: z.ZodObject<{
|
|
320
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
321
|
-
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
322
|
-
}, z.core.$strip>;
|
|
323
489
|
querySchema: z.ZodObject<{
|
|
324
490
|
beforeDate: z.ZodOptional<z.ZodString>;
|
|
325
491
|
afterDate: z.ZodOptional<z.ZodString>;
|
|
@@ -333,11 +499,29 @@ export declare const cacheLeaves: readonly [{
|
|
|
333
499
|
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
334
500
|
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
335
501
|
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
502
|
+
keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
503
|
+
keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
504
|
+
operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
505
|
+
delete: "delete";
|
|
506
|
+
hit: "hit";
|
|
507
|
+
miss: "miss";
|
|
508
|
+
set: "set";
|
|
509
|
+
}>>>;
|
|
510
|
+
operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
511
|
+
delete: "delete";
|
|
512
|
+
hit: "hit";
|
|
513
|
+
miss: "miss";
|
|
514
|
+
set: "set";
|
|
515
|
+
}>>>;
|
|
336
516
|
}, z.core.$strip>;
|
|
337
517
|
outputMetaSchema: z.ZodObject<{
|
|
338
518
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
339
519
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
340
520
|
}, z.core.$strip>;
|
|
521
|
+
queryExtensionSchema: z.ZodObject<{
|
|
522
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
523
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
524
|
+
}, z.core.$strip>;
|
|
341
525
|
}, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
342
526
|
queryExtensionSchema: z.ZodObject<{
|
|
343
527
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -366,10 +550,6 @@ export declare const cacheLeaves: readonly [{
|
|
|
366
550
|
groupId: z.ZodOptional<z.ZodString>;
|
|
367
551
|
type: z.ZodOptional<z.ZodString>;
|
|
368
552
|
}, z.core.$strip>>;
|
|
369
|
-
queryExtensionSchema: z.ZodObject<{
|
|
370
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
371
|
-
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
372
|
-
}, z.core.$strip>;
|
|
373
553
|
querySchema: z.ZodObject<{
|
|
374
554
|
beforeDate: z.ZodOptional<z.ZodString>;
|
|
375
555
|
afterDate: z.ZodOptional<z.ZodString>;
|
|
@@ -383,11 +563,29 @@ export declare const cacheLeaves: readonly [{
|
|
|
383
563
|
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
384
564
|
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
385
565
|
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
566
|
+
keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
567
|
+
keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
568
|
+
operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
569
|
+
delete: "delete";
|
|
570
|
+
hit: "hit";
|
|
571
|
+
miss: "miss";
|
|
572
|
+
set: "set";
|
|
573
|
+
}>>>;
|
|
574
|
+
operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
575
|
+
delete: "delete";
|
|
576
|
+
hit: "hit";
|
|
577
|
+
miss: "miss";
|
|
578
|
+
set: "set";
|
|
579
|
+
}>>>;
|
|
386
580
|
}, z.core.$strip>;
|
|
387
581
|
outputMetaSchema: z.ZodObject<{
|
|
388
582
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
389
583
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
390
584
|
}, z.core.$strip>;
|
|
585
|
+
queryExtensionSchema: z.ZodObject<{
|
|
586
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
587
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
588
|
+
}, z.core.$strip>;
|
|
391
589
|
}, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
392
590
|
queryExtensionSchema: z.ZodObject<{
|
|
393
591
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -420,9 +618,7 @@ export declare const cacheLeaves: readonly [{
|
|
|
420
618
|
}, z.core.$strip>;
|
|
421
619
|
}, z.core.$strip>;
|
|
422
620
|
} & {
|
|
423
|
-
paramsSchema:
|
|
424
|
-
cacheKey: z.ZodString;
|
|
425
|
-
}, z.core.$strip>;
|
|
621
|
+
paramsSchema: undefined;
|
|
426
622
|
}>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
|
|
427
623
|
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
428
624
|
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
@@ -435,6 +631,10 @@ export declare const cacheLeaves: readonly [{
|
|
|
435
631
|
groupsExclude?: string[] | undefined;
|
|
436
632
|
tagsInclude?: string[] | undefined;
|
|
437
633
|
tagsExclude?: string[] | undefined;
|
|
634
|
+
keysInclude?: string[] | undefined;
|
|
635
|
+
keysExclude?: string[] | undefined;
|
|
636
|
+
operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
637
|
+
operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
438
638
|
} & {
|
|
439
639
|
cursor?: string | undefined;
|
|
440
640
|
pageSize?: number | undefined;
|
|
@@ -448,15 +648,15 @@ export declare const cacheLeaves: readonly [{
|
|
|
448
648
|
groupsExclude?: string[] | undefined;
|
|
449
649
|
tagsInclude?: string[] | undefined;
|
|
450
650
|
tagsExclude?: string[] | undefined;
|
|
651
|
+
keysInclude?: string[] | undefined;
|
|
652
|
+
keysExclude?: string[] | undefined;
|
|
653
|
+
operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
654
|
+
operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
451
655
|
} & {
|
|
452
656
|
cursor?: string | undefined;
|
|
453
657
|
pageSize?: unknown;
|
|
454
658
|
}>;
|
|
455
|
-
paramsSchema:
|
|
456
|
-
cacheKey: string;
|
|
457
|
-
}, {
|
|
458
|
-
cacheKey: string;
|
|
459
|
-
}>;
|
|
659
|
+
paramsSchema: undefined;
|
|
460
660
|
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
461
661
|
out: {
|
|
462
662
|
id: string;
|
|
@@ -502,143 +702,6 @@ export declare const cacheLeaves: readonly [{
|
|
|
502
702
|
cursor?: string | undefined;
|
|
503
703
|
pageSize?: unknown;
|
|
504
704
|
}>;
|
|
505
|
-
}>>>, "paramsSchema"> & {
|
|
506
|
-
paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
507
|
-
cacheKey: string;
|
|
508
|
-
}, {
|
|
509
|
-
cacheKey: string;
|
|
510
|
-
}>;
|
|
511
|
-
}>>;
|
|
512
|
-
}, {
|
|
513
|
-
readonly method: "post";
|
|
514
|
-
readonly path: "cache/clear";
|
|
515
|
-
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_1, "feed"> & {
|
|
516
|
-
feed: false;
|
|
517
|
-
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
518
|
-
queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
519
|
-
feed: false;
|
|
520
|
-
}>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
521
|
-
feed: false;
|
|
522
|
-
}>["queryExtensionSchema"] : undefined;
|
|
523
|
-
outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
524
|
-
feed: false;
|
|
525
|
-
}>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
|
|
526
|
-
feed: false;
|
|
527
|
-
}>["outputMetaSchema"] : undefined;
|
|
528
|
-
}> 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 ? {
|
|
529
|
-
feed: true;
|
|
530
|
-
} : {
|
|
531
|
-
feed?: boolean;
|
|
532
|
-
}) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
533
|
-
paramsSchema: WithDefaults["paramsSchema"];
|
|
534
|
-
} : {
|
|
535
|
-
paramsSchema: undefined;
|
|
536
|
-
}) : (WithDefaults["feed"] extends true ? {
|
|
537
|
-
feed: true;
|
|
538
|
-
} : {
|
|
539
|
-
feed?: boolean;
|
|
540
|
-
}) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
541
|
-
querySchema: WithDefaults["querySchema"];
|
|
542
|
-
} : {
|
|
543
|
-
querySchema?: undefined;
|
|
544
|
-
}) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
|
|
545
|
-
paramsSchema: WithDefaults["paramsSchema"];
|
|
546
|
-
} : {
|
|
547
|
-
paramsSchema: undefined;
|
|
548
|
-
}))> : 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<import("@emeryld/rrroutes-contract").Prettify<Omit<{
|
|
549
|
-
outputSchema: z.ZodObject<{
|
|
550
|
-
success: z.ZodBoolean;
|
|
551
|
-
}, z.core.$strip>;
|
|
552
|
-
querySchema: z.ZodObject<{
|
|
553
|
-
beforeDate: z.ZodOptional<z.ZodString>;
|
|
554
|
-
afterDate: z.ZodOptional<z.ZodString>;
|
|
555
|
-
orderBy: z.ZodOptional<z.ZodString>;
|
|
556
|
-
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
557
|
-
asc: "asc";
|
|
558
|
-
desc: "desc";
|
|
559
|
-
}>>;
|
|
560
|
-
searchQuery: z.ZodOptional<z.ZodString>;
|
|
561
|
-
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
562
|
-
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
563
|
-
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
564
|
-
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
565
|
-
keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
566
|
-
keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
567
|
-
}, z.core.$strip>;
|
|
568
|
-
}, "feed"> & {
|
|
569
|
-
feed: false;
|
|
570
|
-
}>, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
571
|
-
queryExtensionSchema: undefined;
|
|
572
|
-
outputMetaSchema: undefined;
|
|
573
|
-
}>, "querySchema" | "outputSchema" | "feed">> & {
|
|
574
|
-
feed?: boolean;
|
|
575
|
-
} & {
|
|
576
|
-
querySchema: z.ZodObject<{
|
|
577
|
-
beforeDate: z.ZodOptional<z.ZodString>;
|
|
578
|
-
afterDate: z.ZodOptional<z.ZodString>;
|
|
579
|
-
orderBy: z.ZodOptional<z.ZodString>;
|
|
580
|
-
orderDirection: z.ZodOptional<z.ZodEnum<{
|
|
581
|
-
asc: "asc";
|
|
582
|
-
desc: "desc";
|
|
583
|
-
}>>;
|
|
584
|
-
searchQuery: z.ZodOptional<z.ZodString>;
|
|
585
|
-
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
586
|
-
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
587
|
-
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
588
|
-
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
589
|
-
keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
590
|
-
keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
591
|
-
}, z.core.$strip>;
|
|
592
|
-
} & {
|
|
593
|
-
outputSchema: z.ZodObject<{
|
|
594
|
-
out: z.ZodObject<{
|
|
595
|
-
success: z.ZodBoolean;
|
|
596
|
-
}, z.core.$strip>;
|
|
597
|
-
meta: z.ZodOptional<z.ZodString>;
|
|
598
|
-
}, z.core.$strip>;
|
|
599
|
-
} & {
|
|
600
|
-
paramsSchema: undefined;
|
|
601
|
-
}>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
|
|
602
|
-
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
603
|
-
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
604
|
-
beforeDate?: string | undefined;
|
|
605
|
-
afterDate?: string | undefined;
|
|
606
|
-
orderBy?: string | undefined;
|
|
607
|
-
orderDirection?: "asc" | "desc" | undefined;
|
|
608
|
-
searchQuery?: string | undefined;
|
|
609
|
-
groupsInclude?: string[] | undefined;
|
|
610
|
-
groupsExclude?: string[] | undefined;
|
|
611
|
-
tagsInclude?: string[] | undefined;
|
|
612
|
-
tagsExclude?: string[] | undefined;
|
|
613
|
-
keysInclude?: string[] | undefined;
|
|
614
|
-
keysExclude?: string[] | undefined;
|
|
615
|
-
}, {
|
|
616
|
-
beforeDate?: string | undefined;
|
|
617
|
-
afterDate?: string | undefined;
|
|
618
|
-
orderBy?: string | undefined;
|
|
619
|
-
orderDirection?: "asc" | "desc" | undefined;
|
|
620
|
-
searchQuery?: string | undefined;
|
|
621
|
-
groupsInclude?: string[] | undefined;
|
|
622
|
-
groupsExclude?: string[] | undefined;
|
|
623
|
-
tagsInclude?: string[] | undefined;
|
|
624
|
-
tagsExclude?: string[] | undefined;
|
|
625
|
-
keysInclude?: string[] | undefined;
|
|
626
|
-
keysExclude?: string[] | undefined;
|
|
627
|
-
}>;
|
|
628
|
-
paramsSchema: undefined;
|
|
629
|
-
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
630
|
-
out: {
|
|
631
|
-
success: boolean;
|
|
632
|
-
};
|
|
633
|
-
meta?: string | undefined;
|
|
634
|
-
}, {
|
|
635
|
-
out: {
|
|
636
|
-
success: boolean;
|
|
637
|
-
};
|
|
638
|
-
meta?: string | undefined;
|
|
639
|
-
}>;
|
|
640
|
-
outputMetaSchema: undefined;
|
|
641
|
-
queryExtensionSchema: undefined;
|
|
642
705
|
}>>>, "paramsSchema"> & {
|
|
643
706
|
paramsSchema: undefined;
|
|
644
707
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { CacheTraceQuery, CacheTraceType } from '../types/types.cacheLog.js';
|
|
2
|
-
type CacheTraceFeedFilters = CacheTraceQuery & {
|
|
3
|
-
cursor?: string;
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
};
|
|
6
|
-
export type UseCacheTraceOptions = CacheTraceFeedFilters & {
|
|
7
|
-
cacheKey: string;
|
|
8
|
-
};
|
|
9
|
-
type UseCacheTraceResult = {
|
|
10
|
-
traces: CacheTraceType[];
|
|
11
|
-
data: any;
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
isFetching: boolean;
|
|
14
|
-
error: unknown;
|
|
15
|
-
refetch: () => Promise<unknown>;
|
|
16
|
-
fetchNextPage: () => Promise<unknown>;
|
|
17
|
-
hasNextPage?: boolean;
|
|
18
|
-
isFetchingNextPage?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export declare function useCacheTrace(options: UseCacheTraceOptions | null): UseCacheTraceResult;
|
|
21
|
-
export {};
|