@emeryld/rrroutes-openapi 2.4.1 → 2.4.3

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.
@@ -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;
@@ -31,42 +32,42 @@ export type RequestLogType = z.infer<typeof requestSchema>;
31
32
  export declare const requestQuerySchema: z.ZodObject<{
32
33
  beforeDate: z.ZodOptional<z.ZodString>;
33
34
  afterDate: z.ZodOptional<z.ZodString>;
34
- orderBy: z.ZodDefault<z.ZodEnum<{
35
+ orderBy: z.ZodOptional<z.ZodEnum<{
35
36
  timestamp: "timestamp";
36
37
  duration: "duration";
37
38
  level: "level";
38
39
  path: "path";
39
40
  }>>;
40
- orderDirection: z.ZodDefault<z.ZodEnum<{
41
+ orderDirection: z.ZodOptional<z.ZodEnum<{
41
42
  asc: "asc";
42
43
  desc: "desc";
43
44
  }>>;
44
45
  searchQuery: z.ZodOptional<z.ZodString>;
45
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
- excludeGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
- excludeTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
- cursor: z.ZodOptional<z.ZodString>;
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.ZodOptional<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
- excludeMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
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
- statuses: z.ZodDefault<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
65
- excludeStatuses: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
64
+ statusesInclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
65
+ statusesExclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
66
66
  path: z.ZodOptional<z.ZodString>;
67
- endpointKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
- excludeEndpointKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
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";
@@ -93,23 +94,22 @@ export declare const requestLogLeaves: readonly [{
93
94
  docsMeta?: Record<string, unknown> | undefined;
94
95
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
95
96
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
96
- orderBy: "timestamp" | "duration" | "level" | "path";
97
- orderDirection: "asc" | "desc";
98
- methods: ("get" | "post" | "put" | "patch" | "delete")[];
99
- statuses: number[];
100
97
  beforeDate?: string | undefined;
101
98
  afterDate?: string | undefined;
99
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
100
+ orderDirection?: "asc" | "desc" | undefined;
102
101
  searchQuery?: string | undefined;
103
- groups?: string[] | undefined;
104
- excludeGroups?: string[] | undefined;
105
- tags?: string[] | undefined;
106
- excludeTags?: string[] | undefined;
107
- cursor?: string | undefined;
108
- excludeMethods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
109
- excludeStatuses?: number[] | undefined;
102
+ groupsInclude?: string[] | undefined;
103
+ groupsExclude?: string[] | undefined;
104
+ tagsInclude?: string[] | undefined;
105
+ tagsExclude?: string[] | undefined;
106
+ methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
107
+ methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
108
+ statusesInclude?: number[] | undefined;
109
+ statusesExclude?: number[] | undefined;
110
110
  path?: string | undefined;
111
- endpointKeys?: string[] | undefined;
112
- excludeEndpointKeys?: string[] | undefined;
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
- groups?: string[] | undefined;
123
- excludeGroups?: string[] | undefined;
124
- tags?: string[] | undefined;
125
- excludeTags?: string[] | undefined;
126
- cursor?: string | undefined;
127
- methods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
128
- excludeMethods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
129
- statuses?: unknown[] | undefined;
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
- endpointKeys?: string[] | undefined;
133
- excludeEndpointKeys?: string[] | undefined;
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.1",
3
+ "version": "2.4.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -24,7 +24,7 @@
24
24
  "@emotion/styled": "^11.14.1",
25
25
  "@mui/icons-material": "^7.3.6",
26
26
  "@mui/material": "^7.3.6",
27
- "@tanstack/react-query": "^5.90.11",
27
+ "@tanstack/react-query": "^5.90.12",
28
28
  "react": "^18.3.1",
29
29
  "react-dom": "^18.3.1",
30
30
  "react-router-dom": "^7.10.0",