@emeryld/rrroutes-openapi 2.4.0 → 2.4.2
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 +32 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +32 -24
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +59 -59
- package/dist/web/v2/components/tags/CacheOperationChip.d.ts +3 -3
- package/dist/web/v2/components/tags/HttpMethodChip.d.ts +2 -2
- package/dist/web/v2/components/tags/LogLevelChip.d.ts +3 -3
- package/dist/web/v2/components/tags/StatusChip.d.ts +2 -2
- package/dist/web/v2/components/tags/chip.types.d.ts +1 -0
- package/dist/web/v2/types/filterTypes.d.ts +4 -16
- package/dist/web/v2/types/types.base.d.ts +4 -5
- package/dist/web/v2/types/types.cacheLog.d.ts +39 -35
- package/dist/web/v2/types/types.endpoint.d.ts +26 -27
- package/dist/web/v2/types/types.log.d.ts +22 -21
- package/dist/web/v2/types/types.preset.d.ts +35 -14
- package/dist/web/v2/types/types.requestLog.d.ts +32 -33
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CacheOperation } from '../../types/types.cacheLog';
|
|
2
|
+
import { ChipSelectionState } from './chip.types';
|
|
3
3
|
type CacheOperationChipProps = {
|
|
4
4
|
operation: CacheOperation;
|
|
5
|
-
state?:
|
|
5
|
+
state?: ChipSelectionState;
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
};
|
|
8
8
|
export default function CacheOperationChip({ operation, state, onClick, }: CacheOperationChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MethodType } from '../../types/types.base';
|
|
2
|
-
|
|
2
|
+
import { ChipSelectionState } from './chip.types.js';
|
|
3
3
|
type HttpMethodChipProps = {
|
|
4
4
|
method: MethodType;
|
|
5
|
-
state?:
|
|
5
|
+
state?: ChipSelectionState;
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { LogLevel } from '../../types/types.log';
|
|
2
|
+
import { ChipSelectionState } from './chip.types';
|
|
3
3
|
type LogLevelChipProps = {
|
|
4
4
|
level: LogLevel;
|
|
5
|
-
state?:
|
|
5
|
+
state?: ChipSelectionState;
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChipSelectionState } from './chip.types.js';
|
|
2
2
|
type StatusChipProps = {
|
|
3
3
|
status: number;
|
|
4
|
-
state?:
|
|
4
|
+
state?: ChipSelectionState;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
};
|
|
7
7
|
export default function StatusChip({ status, state, onClick, }: StatusChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ChipSelectionState = 'include' | 'exclude' | 'none' | 'display';
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { baseQuerySchema, paginationSchema } from './types.base';
|
|
1
3
|
export type FilterMode = 'include' | 'exclude';
|
|
2
|
-
type
|
|
3
|
-
type
|
|
4
|
-
export type BaseFilter = {
|
|
5
|
-
beforeDate?: string;
|
|
6
|
-
afterDate?: string;
|
|
7
|
-
cursor?: string;
|
|
8
|
-
orderBy: OrderByValue;
|
|
9
|
-
orderDirection: OrderDirectionValue;
|
|
10
|
-
searchQuery?: string;
|
|
11
|
-
tagsInclude: string[];
|
|
12
|
-
tagsExclude: string[];
|
|
13
|
-
groupsInclude: string[];
|
|
14
|
-
groupsExclude: string[];
|
|
15
|
-
pageSize?: number;
|
|
16
|
-
};
|
|
4
|
+
export type SelectionState = 'include' | 'exclude' | 'none';
|
|
5
|
+
export type BaseFilter = z.infer<typeof baseQuerySchema> & z.infer<typeof paginationSchema>;
|
|
17
6
|
export declare const DEFAULT_BASE_FILTER: BaseFilter;
|
|
18
7
|
export declare function buildBaseQuery(filter: BaseFilter): Record<string, unknown>;
|
|
19
8
|
export declare function serializeFilterState<T extends Record<string, unknown>>(value: T): string | null;
|
|
20
9
|
export declare function deserializeFilterState<T extends Record<string, unknown>>(raw: string, fallback: T): T;
|
|
21
|
-
export {};
|
|
@@ -31,11 +31,10 @@ export declare const baseQuerySchema: z.ZodObject<{
|
|
|
31
31
|
desc: "desc";
|
|
32
32
|
}>>;
|
|
33
33
|
searchQuery: z.ZodOptional<z.ZodString>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
34
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
38
|
}, z.core.$strip>;
|
|
40
39
|
export declare const paginationSchema: z.ZodObject<{
|
|
41
40
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
+
import { paginationSchema } from './types.base';
|
|
3
|
+
export declare const CACHE_OPERATIONS: readonly ["hit", "miss", "set", "delete"];
|
|
4
|
+
export type CacheOperation = (typeof CACHE_OPERATIONS)[number];
|
|
2
5
|
export declare const cacheLogSchema: z.ZodObject<{
|
|
3
6
|
id: z.ZodString;
|
|
4
7
|
name: z.ZodString;
|
|
@@ -31,25 +34,26 @@ export declare const cacheLogQuerySchema: z.ZodObject<{
|
|
|
31
34
|
desc: "desc";
|
|
32
35
|
}>>;
|
|
33
36
|
searchQuery: z.ZodOptional<z.ZodString>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
operations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
37
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
40
42
|
delete: "delete";
|
|
41
43
|
hit: "hit";
|
|
42
44
|
miss: "miss";
|
|
43
45
|
set: "set";
|
|
44
46
|
}>>>;
|
|
45
|
-
|
|
47
|
+
operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
46
48
|
delete: "delete";
|
|
47
49
|
hit: "hit";
|
|
48
50
|
miss: "miss";
|
|
49
51
|
set: "set";
|
|
50
52
|
}>>>;
|
|
51
53
|
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
keySearch: z.ZodOptional<z.ZodString>;
|
|
52
55
|
}, z.core.$strip>;
|
|
56
|
+
export type CacheLogsFilter = z.infer<typeof cacheLogQuerySchema> & z.infer<typeof paginationSchema>;
|
|
53
57
|
export declare const cacheSummarySchema: z.ZodObject<{
|
|
54
58
|
key: z.ZodString;
|
|
55
59
|
lastSetAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -91,14 +95,14 @@ export declare const cacheLeaves: readonly [{
|
|
|
91
95
|
beforeDate?: string | undefined;
|
|
92
96
|
afterDate?: string | undefined;
|
|
93
97
|
searchQuery?: string | undefined;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
98
|
+
groupsInclude?: string[] | undefined;
|
|
99
|
+
groupsExclude?: string[] | undefined;
|
|
100
|
+
tagsInclude?: string[] | undefined;
|
|
101
|
+
tagsExclude?: string[] | undefined;
|
|
102
|
+
operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
103
|
+
operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
101
104
|
keys?: string[] | undefined;
|
|
105
|
+
keySearch?: string | undefined;
|
|
102
106
|
} & {
|
|
103
107
|
cursor?: string | undefined;
|
|
104
108
|
pageSize?: number | undefined;
|
|
@@ -108,14 +112,14 @@ export declare const cacheLeaves: readonly [{
|
|
|
108
112
|
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
109
113
|
orderDirection?: "asc" | "desc" | undefined;
|
|
110
114
|
searchQuery?: string | undefined;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
115
|
+
groupsInclude?: string[] | undefined;
|
|
116
|
+
groupsExclude?: string[] | undefined;
|
|
117
|
+
tagsInclude?: string[] | undefined;
|
|
118
|
+
tagsExclude?: string[] | undefined;
|
|
119
|
+
operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
120
|
+
operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
118
121
|
keys?: string[] | undefined;
|
|
122
|
+
keySearch?: string | undefined;
|
|
119
123
|
} & {
|
|
120
124
|
cursor?: string | undefined;
|
|
121
125
|
pageSize?: unknown;
|
|
@@ -176,28 +180,28 @@ export declare const cacheLeaves: readonly [{
|
|
|
176
180
|
beforeDate?: string | undefined;
|
|
177
181
|
afterDate?: string | undefined;
|
|
178
182
|
searchQuery?: string | undefined;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
183
|
+
groupsInclude?: string[] | undefined;
|
|
184
|
+
groupsExclude?: string[] | undefined;
|
|
185
|
+
tagsInclude?: string[] | undefined;
|
|
186
|
+
tagsExclude?: string[] | undefined;
|
|
187
|
+
operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
188
|
+
operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
186
189
|
keys?: string[] | undefined;
|
|
190
|
+
keySearch?: string | undefined;
|
|
187
191
|
}, {
|
|
188
192
|
beforeDate?: string | undefined;
|
|
189
193
|
afterDate?: string | undefined;
|
|
190
194
|
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
191
195
|
orderDirection?: "asc" | "desc" | undefined;
|
|
192
196
|
searchQuery?: string | undefined;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
197
|
+
groupsInclude?: string[] | undefined;
|
|
198
|
+
groupsExclude?: string[] | undefined;
|
|
199
|
+
tagsInclude?: string[] | undefined;
|
|
200
|
+
tagsExclude?: string[] | undefined;
|
|
201
|
+
operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
202
|
+
operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
200
203
|
keys?: string[] | undefined;
|
|
204
|
+
keySearch?: string | undefined;
|
|
201
205
|
}>;
|
|
202
206
|
readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
203
207
|
out: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import z, { ZodType } from 'zod';
|
|
2
|
+
import { paginationSchema } from './types.base';
|
|
2
3
|
export declare const nodeKind: readonly ["object", "string", "number", "boolean", "bigint", "date", "array", "enum", "literal", "union", "record", "tuple", "unknown", "any"];
|
|
3
4
|
export type SerializableSchema = {
|
|
4
5
|
kind: (typeof nodeKind)[number];
|
|
@@ -66,19 +67,18 @@ export declare const endpointFilterSchema: z.ZodObject<{
|
|
|
66
67
|
desc: "desc";
|
|
67
68
|
}>>;
|
|
68
69
|
searchQuery: z.ZodOptional<z.ZodString>;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
70
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
72
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
methodsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
75
75
|
get: "get";
|
|
76
76
|
post: "post";
|
|
77
77
|
put: "put";
|
|
78
78
|
patch: "patch";
|
|
79
79
|
delete: "delete";
|
|
80
80
|
}>>>;
|
|
81
|
-
|
|
81
|
+
methodsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
82
82
|
get: "get";
|
|
83
83
|
post: "post";
|
|
84
84
|
put: "put";
|
|
@@ -86,19 +86,20 @@ export declare const endpointFilterSchema: z.ZodObject<{
|
|
|
86
86
|
delete: "delete";
|
|
87
87
|
}>>>;
|
|
88
88
|
path: z.ZodOptional<z.ZodString>;
|
|
89
|
-
|
|
89
|
+
stabilityInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
90
90
|
deprecated: "deprecated";
|
|
91
91
|
experimental: "experimental";
|
|
92
92
|
beta: "beta";
|
|
93
93
|
stable: "stable";
|
|
94
94
|
}>>>;
|
|
95
|
-
|
|
95
|
+
stabilityExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
96
96
|
deprecated: "deprecated";
|
|
97
97
|
experimental: "experimental";
|
|
98
98
|
beta: "beta";
|
|
99
99
|
stable: "stable";
|
|
100
100
|
}>>>;
|
|
101
101
|
}, z.core.$strip>;
|
|
102
|
+
export type RoutesFilter = z.infer<typeof endpointFilterSchema> & z.infer<typeof paginationSchema>;
|
|
102
103
|
export declare const endpointLeaves: readonly [{
|
|
103
104
|
readonly method: "get";
|
|
104
105
|
readonly path: "endpoints";
|
|
@@ -130,16 +131,15 @@ export declare const endpointLeaves: readonly [{
|
|
|
130
131
|
beforeDate?: string | undefined;
|
|
131
132
|
afterDate?: string | undefined;
|
|
132
133
|
searchQuery?: string | undefined;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
excludeMethods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
134
|
+
groupsInclude?: string[] | undefined;
|
|
135
|
+
groupsExclude?: string[] | undefined;
|
|
136
|
+
tagsInclude?: string[] | undefined;
|
|
137
|
+
tagsExclude?: string[] | undefined;
|
|
138
|
+
methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
139
|
+
methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
140
140
|
path?: string | undefined;
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
stabilityInclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
|
|
142
|
+
stabilityExclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
|
|
143
143
|
} & {
|
|
144
144
|
cursor?: string | undefined;
|
|
145
145
|
pageSize?: number | undefined;
|
|
@@ -149,16 +149,15 @@ export declare const endpointLeaves: readonly [{
|
|
|
149
149
|
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
150
150
|
orderDirection?: "asc" | "desc" | undefined;
|
|
151
151
|
searchQuery?: string | undefined;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
excludeMethods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
152
|
+
groupsInclude?: string[] | undefined;
|
|
153
|
+
groupsExclude?: string[] | undefined;
|
|
154
|
+
tagsInclude?: string[] | undefined;
|
|
155
|
+
tagsExclude?: string[] | undefined;
|
|
156
|
+
methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
157
|
+
methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
159
158
|
path?: string | undefined;
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
stabilityInclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
|
|
160
|
+
stabilityExclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
|
|
162
161
|
} & {
|
|
163
162
|
cursor?: string | undefined;
|
|
164
163
|
pageSize?: unknown;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
+
import { paginationSchema } from './types.base';
|
|
3
|
+
export declare const LOG_LEVELS: readonly ["info", "warning", "error", "debug", "trace"];
|
|
4
|
+
export type LogLevel = (typeof LOG_LEVELS)[number];
|
|
2
5
|
export declare const logSchema: z.ZodObject<{
|
|
3
6
|
id: z.ZodString;
|
|
4
7
|
name: z.ZodString;
|
|
@@ -31,19 +34,18 @@ export declare const logQuerySchema: z.ZodObject<{
|
|
|
31
34
|
desc: "desc";
|
|
32
35
|
}>>;
|
|
33
36
|
searchQuery: z.ZodOptional<z.ZodString>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
level: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
37
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
levelsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
40
42
|
error: "error";
|
|
41
43
|
info: "info";
|
|
42
44
|
warning: "warning";
|
|
43
45
|
debug: "debug";
|
|
44
46
|
trace: "trace";
|
|
45
47
|
}>>>;
|
|
46
|
-
|
|
48
|
+
levelsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
47
49
|
error: "error";
|
|
48
50
|
info: "info";
|
|
49
51
|
warning: "warning";
|
|
@@ -51,6 +53,7 @@ export declare const logQuerySchema: z.ZodObject<{
|
|
|
51
53
|
trace: "trace";
|
|
52
54
|
}>>>;
|
|
53
55
|
}, z.core.$strip>;
|
|
56
|
+
export type ApplicationLogsFilter = z.infer<typeof logQuerySchema> & z.infer<typeof paginationSchema>;
|
|
54
57
|
export declare const logLeaves: readonly [{
|
|
55
58
|
readonly method: "get";
|
|
56
59
|
readonly path: "logs";
|
|
@@ -82,13 +85,12 @@ export declare const logLeaves: readonly [{
|
|
|
82
85
|
beforeDate?: string | undefined;
|
|
83
86
|
afterDate?: string | undefined;
|
|
84
87
|
searchQuery?: string | undefined;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
excludeLevel?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
|
|
88
|
+
groupsInclude?: string[] | undefined;
|
|
89
|
+
groupsExclude?: string[] | undefined;
|
|
90
|
+
tagsInclude?: string[] | undefined;
|
|
91
|
+
tagsExclude?: string[] | undefined;
|
|
92
|
+
levelsInclude?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
|
|
93
|
+
levelsExclude?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
|
|
92
94
|
} & {
|
|
93
95
|
cursor?: string | undefined;
|
|
94
96
|
pageSize?: number | undefined;
|
|
@@ -98,13 +100,12 @@ export declare const logLeaves: readonly [{
|
|
|
98
100
|
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
99
101
|
orderDirection?: "asc" | "desc" | undefined;
|
|
100
102
|
searchQuery?: string | undefined;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
excludeLevel?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
|
|
103
|
+
groupsInclude?: string[] | undefined;
|
|
104
|
+
groupsExclude?: string[] | undefined;
|
|
105
|
+
tagsInclude?: string[] | undefined;
|
|
106
|
+
tagsExclude?: string[] | undefined;
|
|
107
|
+
levelsInclude?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
|
|
108
|
+
levelsExclude?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
|
|
108
109
|
} & {
|
|
109
110
|
cursor?: string | undefined;
|
|
110
111
|
pageSize?: unknown;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
+
import { paginationSchema } from './types.base';
|
|
2
3
|
declare const presetSchema: z.ZodObject<{
|
|
3
4
|
id: z.ZodString;
|
|
4
5
|
name: z.ZodString;
|
|
@@ -26,6 +27,28 @@ declare const presetSchema: z.ZodObject<{
|
|
|
26
27
|
}, z.core.$strip>>;
|
|
27
28
|
}, z.core.$strip>;
|
|
28
29
|
export type PresetType = z.infer<typeof presetSchema>;
|
|
30
|
+
declare const presetQuerySchema: z.ZodObject<{
|
|
31
|
+
beforeDate: z.ZodOptional<z.ZodString>;
|
|
32
|
+
afterDate: z.ZodOptional<z.ZodString>;
|
|
33
|
+
orderBy: z.ZodDefault<z.ZodEnum<{
|
|
34
|
+
timestamp: "timestamp";
|
|
35
|
+
duration: "duration";
|
|
36
|
+
level: "level";
|
|
37
|
+
path: "path";
|
|
38
|
+
}>>;
|
|
39
|
+
orderDirection: z.ZodDefault<z.ZodEnum<{
|
|
40
|
+
asc: "asc";
|
|
41
|
+
desc: "desc";
|
|
42
|
+
}>>;
|
|
43
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
44
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
nameInclude: z.ZodOptional<z.ZodString>;
|
|
49
|
+
nameExclude: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type PresetsFilter = z.infer<typeof presetQuerySchema> & z.infer<typeof paginationSchema>;
|
|
29
52
|
export declare const presetLeaves: readonly [{
|
|
30
53
|
readonly method: "get";
|
|
31
54
|
readonly path: "presets";
|
|
@@ -57,13 +80,12 @@ export declare const presetLeaves: readonly [{
|
|
|
57
80
|
beforeDate?: string | undefined;
|
|
58
81
|
afterDate?: string | undefined;
|
|
59
82
|
searchQuery?: string | undefined;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
excludeName?: string | undefined;
|
|
83
|
+
groupsInclude?: string[] | undefined;
|
|
84
|
+
groupsExclude?: string[] | undefined;
|
|
85
|
+
tagsInclude?: string[] | undefined;
|
|
86
|
+
tagsExclude?: string[] | undefined;
|
|
87
|
+
nameInclude?: string | undefined;
|
|
88
|
+
nameExclude?: string | undefined;
|
|
67
89
|
} & {
|
|
68
90
|
cursor?: string | undefined;
|
|
69
91
|
pageSize?: number | undefined;
|
|
@@ -73,13 +95,12 @@ export declare const presetLeaves: readonly [{
|
|
|
73
95
|
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
74
96
|
orderDirection?: "asc" | "desc" | undefined;
|
|
75
97
|
searchQuery?: string | undefined;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
excludeName?: string | undefined;
|
|
98
|
+
groupsInclude?: string[] | undefined;
|
|
99
|
+
groupsExclude?: string[] | undefined;
|
|
100
|
+
tagsInclude?: string[] | undefined;
|
|
101
|
+
tagsExclude?: string[] | undefined;
|
|
102
|
+
nameInclude?: string | undefined;
|
|
103
|
+
nameExclude?: string | undefined;
|
|
83
104
|
} & {
|
|
84
105
|
cursor?: string | undefined;
|
|
85
106
|
pageSize?: unknown;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
+
import { paginationSchema } from './types.base';
|
|
2
3
|
export declare const requestSchema: z.ZodObject<{
|
|
3
4
|
id: z.ZodString;
|
|
4
5
|
name: z.ZodString;
|
|
@@ -42,31 +43,31 @@ export declare const requestQuerySchema: z.ZodObject<{
|
|
|
42
43
|
desc: "desc";
|
|
43
44
|
}>>;
|
|
44
45
|
searchQuery: z.ZodOptional<z.ZodString>;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
methods: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
46
|
+
groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
+
tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
+
methodsInclude: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
51
51
|
get: "get";
|
|
52
52
|
post: "post";
|
|
53
53
|
put: "put";
|
|
54
54
|
patch: "patch";
|
|
55
55
|
delete: "delete";
|
|
56
56
|
}>>>;
|
|
57
|
-
|
|
57
|
+
methodsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
58
58
|
get: "get";
|
|
59
59
|
post: "post";
|
|
60
60
|
put: "put";
|
|
61
61
|
patch: "patch";
|
|
62
62
|
delete: "delete";
|
|
63
63
|
}>>>;
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
statusesInclude: z.ZodDefault<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
65
|
+
statusesExclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
66
66
|
path: z.ZodOptional<z.ZodString>;
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
endpointKeysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
+
endpointKeysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
69
|
}, z.core.$strip>;
|
|
70
|
+
export type HistoryFilter = z.infer<typeof requestQuerySchema> & z.infer<typeof paginationSchema>;
|
|
70
71
|
export declare const requestLogLeaves: readonly [{
|
|
71
72
|
readonly method: "get";
|
|
72
73
|
readonly path: "requests";
|
|
@@ -95,21 +96,20 @@ export declare const requestLogLeaves: readonly [{
|
|
|
95
96
|
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
96
97
|
orderBy: "timestamp" | "duration" | "level" | "path";
|
|
97
98
|
orderDirection: "asc" | "desc";
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
methodsInclude: ("get" | "post" | "put" | "patch" | "delete")[];
|
|
100
|
+
statusesInclude: number[];
|
|
100
101
|
beforeDate?: string | undefined;
|
|
101
102
|
afterDate?: string | undefined;
|
|
102
103
|
searchQuery?: string | undefined;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
excludeStatuses?: number[] | undefined;
|
|
104
|
+
groupsInclude?: string[] | undefined;
|
|
105
|
+
groupsExclude?: string[] | undefined;
|
|
106
|
+
tagsInclude?: string[] | undefined;
|
|
107
|
+
tagsExclude?: string[] | undefined;
|
|
108
|
+
methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
109
|
+
statusesExclude?: number[] | undefined;
|
|
110
110
|
path?: string | undefined;
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
endpointKeysInclude?: string[] | undefined;
|
|
112
|
+
endpointKeysExclude?: string[] | undefined;
|
|
113
113
|
} & {
|
|
114
114
|
cursor?: string | undefined;
|
|
115
115
|
pageSize?: number | undefined;
|
|
@@ -119,18 +119,17 @@ export declare const requestLogLeaves: readonly [{
|
|
|
119
119
|
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
120
120
|
orderDirection?: "asc" | "desc" | undefined;
|
|
121
121
|
searchQuery?: string | undefined;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
excludeStatuses?: unknown[] | undefined;
|
|
122
|
+
groupsInclude?: string[] | undefined;
|
|
123
|
+
groupsExclude?: string[] | undefined;
|
|
124
|
+
tagsInclude?: string[] | undefined;
|
|
125
|
+
tagsExclude?: string[] | undefined;
|
|
126
|
+
methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
127
|
+
methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
|
|
128
|
+
statusesInclude?: unknown[] | undefined;
|
|
129
|
+
statusesExclude?: unknown[] | undefined;
|
|
131
130
|
path?: string | undefined;
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
endpointKeysInclude?: string[] | undefined;
|
|
132
|
+
endpointKeysExclude?: string[] | undefined;
|
|
134
133
|
} & {
|
|
135
134
|
cursor?: string | undefined;
|
|
136
135
|
pageSize?: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeryld/rrroutes-openapi",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@emeryld/rrroutes-client": "^2.
|
|
20
|
+
"@emeryld/rrroutes-client": "^2.4.0",
|
|
21
21
|
"@emeryld/rrroutes-contract": "^2.4.18",
|
|
22
22
|
"@emotion/cache": "^11.14.0",
|
|
23
23
|
"@emotion/react": "^11.14.0",
|