@emeryld/rrroutes-openapi 2.4.4 → 2.4.5

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,8 +1,10 @@
1
+ import { HttpMethod } from '@emeryld/rrroutes-contract';
1
2
  import type { RequestLogType } from '../../types/types.requestLog.js';
2
3
  type EndpointRequestFeedProps = {
3
- endpointKey: string;
4
+ method?: HttpMethod;
5
+ path?: string;
4
6
  onSelectRequest: (request: RequestLogType, index: number) => void;
5
7
  onRequestsChange?: (requests: RequestLogType[]) => void;
6
8
  };
7
- export default function EndpointRequestFeed({ endpointKey, onSelectRequest, onRequestsChange, }: EndpointRequestFeedProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function EndpointRequestFeed({ method, path, onSelectRequest, onRequestsChange, }: EndpointRequestFeedProps): import("react/jsx-runtime").JSX.Element;
8
10
  export {};
@@ -100,6 +100,107 @@ export declare const endpointFilterSchema: z.ZodObject<{
100
100
  }>>>;
101
101
  }, z.core.$strip>;
102
102
  export type RoutesFilter = z.infer<typeof endpointFilterSchema> & z.infer<typeof paginationSchema>;
103
+ export declare const endpointSchemaWithStats: z.ZodObject<{
104
+ id: z.ZodString;
105
+ name: z.ZodString;
106
+ description: z.ZodOptional<z.ZodString>;
107
+ groupId: z.ZodOptional<z.ZodString>;
108
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
+ createdAt: z.ZodNumber;
110
+ updatedAt: z.ZodNumber;
111
+ method: z.ZodEnum<{
112
+ get: "get";
113
+ post: "post";
114
+ put: "put";
115
+ patch: "patch";
116
+ delete: "delete";
117
+ }>;
118
+ path: z.ZodString;
119
+ contract: z.ZodObject<{
120
+ body: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
121
+ query: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
122
+ output: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
123
+ params: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
124
+ bodyFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
125
+ name: z.ZodString;
126
+ maxCount: z.ZodNumber;
127
+ }, z.core.$strip>>>;
128
+ }, z.core.$strip>;
129
+ feed: z.ZodOptional<z.ZodBoolean>;
130
+ summary: z.ZodOptional<z.ZodString>;
131
+ stability: z.ZodEnum<{
132
+ deprecated: "deprecated";
133
+ experimental: "experimental";
134
+ beta: "beta";
135
+ stable: "stable";
136
+ }>;
137
+ hidden: z.ZodOptional<z.ZodBoolean>;
138
+ meta: z.ZodRecord<z.ZodString, z.ZodString>;
139
+ implemented: z.ZodOptional<z.ZodBoolean>;
140
+ requests: z.ZodArray<z.ZodObject<{
141
+ id: z.ZodString;
142
+ name: z.ZodString;
143
+ description: z.ZodOptional<z.ZodString>;
144
+ groupId: z.ZodOptional<z.ZodString>;
145
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ createdAt: z.ZodNumber;
147
+ updatedAt: z.ZodNumber;
148
+ status: z.ZodNumber;
149
+ body: z.ZodOptional<z.ZodAny>;
150
+ fullUrl: z.ZodString;
151
+ path: z.ZodString;
152
+ method: z.ZodEnum<{
153
+ get: "get";
154
+ post: "post";
155
+ put: "put";
156
+ patch: "patch";
157
+ delete: "delete";
158
+ }>;
159
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
160
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
161
+ output: z.ZodOptional<z.ZodAny>;
162
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
163
+ error: z.ZodOptional<z.ZodString>;
164
+ durationMs: z.ZodNumber;
165
+ ip: z.ZodOptional<z.ZodString>;
166
+ userAgent: z.ZodOptional<z.ZodString>;
167
+ }, z.core.$strip>>;
168
+ volumeTS: z.ZodArray<z.ZodObject<{
169
+ timestamp: z.ZodNumber;
170
+ count: z.ZodNumber;
171
+ }, z.core.$strip>>;
172
+ averageDurationMs: z.ZodNumber;
173
+ successRate: z.ZodNumber;
174
+ latestErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
+ id: z.ZodString;
176
+ name: z.ZodString;
177
+ description: z.ZodOptional<z.ZodString>;
178
+ groupId: z.ZodOptional<z.ZodString>;
179
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
180
+ createdAt: z.ZodNumber;
181
+ updatedAt: z.ZodNumber;
182
+ status: z.ZodNumber;
183
+ body: z.ZodOptional<z.ZodAny>;
184
+ fullUrl: z.ZodString;
185
+ path: z.ZodString;
186
+ method: z.ZodEnum<{
187
+ get: "get";
188
+ post: "post";
189
+ put: "put";
190
+ patch: "patch";
191
+ delete: "delete";
192
+ }>;
193
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
194
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
195
+ output: z.ZodOptional<z.ZodAny>;
196
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
197
+ error: z.ZodOptional<z.ZodString>;
198
+ durationMs: z.ZodNumber;
199
+ ip: z.ZodOptional<z.ZodString>;
200
+ userAgent: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>>>;
202
+ }, z.core.$strip>;
203
+ export type EndpointDetailData = z.infer<typeof endpointSchemaWithStats>;
103
204
  export declare const endpointLeaves: readonly [{
104
205
  readonly method: "get";
105
206
  readonly path: "endpoints";
@@ -603,7 +704,34 @@ export declare const endpointLeaves: readonly [{
603
704
  }, z.core.$strip>>;
604
705
  averageDurationMs: z.ZodNumber;
605
706
  successRate: z.ZodNumber;
606
- latestErrorRequestIds: z.ZodArray<z.ZodString>;
707
+ latestErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
708
+ id: z.ZodString;
709
+ name: z.ZodString;
710
+ description: z.ZodOptional<z.ZodString>;
711
+ groupId: z.ZodOptional<z.ZodString>;
712
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
713
+ createdAt: z.ZodNumber;
714
+ updatedAt: z.ZodNumber;
715
+ status: z.ZodNumber;
716
+ body: z.ZodOptional<z.ZodAny>;
717
+ fullUrl: z.ZodString;
718
+ path: z.ZodString;
719
+ method: z.ZodEnum<{
720
+ get: "get";
721
+ post: "post";
722
+ put: "put";
723
+ patch: "patch";
724
+ delete: "delete";
725
+ }>;
726
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
727
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
728
+ output: z.ZodOptional<z.ZodAny>;
729
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
730
+ error: z.ZodOptional<z.ZodString>;
731
+ durationMs: z.ZodNumber;
732
+ ip: z.ZodOptional<z.ZodString>;
733
+ userAgent: z.ZodOptional<z.ZodString>;
734
+ }, z.core.$strip>>>;
607
735
  }, z.core.$strip>;
608
736
  }, "queryExtensionSchema" | "outputMetaSchema"> & {
609
737
  queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -685,7 +813,34 @@ export declare const endpointLeaves: readonly [{
685
813
  }, z.core.$strip>>;
686
814
  averageDurationMs: z.ZodNumber;
687
815
  successRate: z.ZodNumber;
688
- latestErrorRequestIds: z.ZodArray<z.ZodString>;
816
+ latestErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
817
+ id: z.ZodString;
818
+ name: z.ZodString;
819
+ description: z.ZodOptional<z.ZodString>;
820
+ groupId: z.ZodOptional<z.ZodString>;
821
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
822
+ createdAt: z.ZodNumber;
823
+ updatedAt: z.ZodNumber;
824
+ status: z.ZodNumber;
825
+ body: z.ZodOptional<z.ZodAny>;
826
+ fullUrl: z.ZodString;
827
+ path: z.ZodString;
828
+ method: z.ZodEnum<{
829
+ get: "get";
830
+ post: "post";
831
+ put: "put";
832
+ patch: "patch";
833
+ delete: "delete";
834
+ }>;
835
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
836
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
837
+ output: z.ZodOptional<z.ZodAny>;
838
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
839
+ error: z.ZodOptional<z.ZodString>;
840
+ durationMs: z.ZodNumber;
841
+ ip: z.ZodOptional<z.ZodString>;
842
+ userAgent: z.ZodOptional<z.ZodString>;
843
+ }, z.core.$strip>>>;
689
844
  }, z.core.$strip>;
690
845
  meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
691
846
  }, z.core.$strip>;
@@ -749,7 +904,6 @@ export declare const endpointLeaves: readonly [{
749
904
  }[];
750
905
  averageDurationMs: number;
751
906
  successRate: number;
752
- latestErrorRequestIds: string[];
753
907
  description?: string | undefined;
754
908
  groupId?: string | undefined;
755
909
  tags?: string[] | undefined;
@@ -757,6 +911,28 @@ export declare const endpointLeaves: readonly [{
757
911
  summary?: string | undefined;
758
912
  hidden?: boolean | undefined;
759
913
  implemented?: boolean | undefined;
914
+ latestErrors?: {
915
+ id: string;
916
+ name: string;
917
+ createdAt: number;
918
+ updatedAt: number;
919
+ status: number;
920
+ fullUrl: string;
921
+ path: string;
922
+ method: "get" | "post" | "put" | "patch" | "delete";
923
+ durationMs: number;
924
+ description?: string | undefined;
925
+ groupId?: string | undefined;
926
+ tags?: string[] | undefined;
927
+ body?: any;
928
+ query?: Record<string, any> | undefined;
929
+ params?: Record<string, any> | undefined;
930
+ output?: any;
931
+ headers?: Record<string, any> | undefined;
932
+ error?: string | undefined;
933
+ ip?: string | undefined;
934
+ userAgent?: string | undefined;
935
+ }[] | undefined;
760
936
  };
761
937
  meta: unknown;
762
938
  }, {
@@ -807,7 +983,6 @@ export declare const endpointLeaves: readonly [{
807
983
  }[];
808
984
  averageDurationMs: number;
809
985
  successRate: number;
810
- latestErrorRequestIds: string[];
811
986
  description?: string | undefined;
812
987
  groupId?: string | undefined;
813
988
  tags?: string[] | undefined;
@@ -815,6 +990,28 @@ export declare const endpointLeaves: readonly [{
815
990
  summary?: string | undefined;
816
991
  hidden?: boolean | undefined;
817
992
  implemented?: boolean | undefined;
993
+ latestErrors?: {
994
+ id: string;
995
+ name: string;
996
+ createdAt: number;
997
+ updatedAt: number;
998
+ status: number;
999
+ fullUrl: string;
1000
+ path: string;
1001
+ method: "get" | "post" | "put" | "patch" | "delete";
1002
+ durationMs: number;
1003
+ description?: string | undefined;
1004
+ groupId?: string | undefined;
1005
+ tags?: string[] | undefined;
1006
+ body?: any;
1007
+ query?: Record<string, any> | undefined;
1008
+ params?: Record<string, any> | undefined;
1009
+ output?: any;
1010
+ headers?: Record<string, any> | undefined;
1011
+ error?: string | undefined;
1012
+ ip?: string | undefined;
1013
+ userAgent?: string | undefined;
1014
+ }[] | undefined;
818
1015
  };
819
1016
  meta: unknown;
820
1017
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",