@emeryld/rrroutes-openapi 2.3.6 → 2.4.0

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.
Files changed (33) hide show
  1. package/README.md +9 -0
  2. package/dist/index.cjs +13 -17
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.mjs +13 -17
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/public/assets/docs.js +88 -86
  7. package/dist/web/v2/components/endpoints/EndpointDetailPanel.d.ts +8 -1
  8. package/dist/web/v2/components/endpoints/EndpointPlayground.d.ts +13 -3
  9. package/dist/web/v2/components/endpoints/EndpointRequestFeed.d.ts +8 -0
  10. package/dist/web/v2/components/feeds/FeedPagination.d.ts +1 -2
  11. package/dist/web/v2/components/history/RequestDetailContent.d.ts +11 -0
  12. package/dist/web/v2/components/history/RequestDetailModal.d.ts +12 -0
  13. package/dist/web/v2/components/history/RequestTable.d.ts +1 -1
  14. package/dist/web/v2/components/history/RequestsOverview.d.ts +7 -0
  15. package/dist/web/v2/components/layout/CardSection.d.ts +2 -1
  16. package/dist/web/v2/components/logs/CacheKeyDetailModal.d.ts +13 -0
  17. package/dist/web/v2/components/logs/CacheSummaryTable.d.ts +2 -1
  18. package/dist/web/v2/components/logs/LogGroupDetailModal.d.ts +13 -0
  19. package/dist/web/v2/components/primitives/DetailModal.d.ts +11 -0
  20. package/dist/web/v2/components/primitives/ExportButton.d.ts +9 -0
  21. package/dist/web/v2/hooks/useEndpointDetail.d.ts +8 -0
  22. package/dist/web/v2/hooks/useEndpointOptions.d.ts +5 -0
  23. package/dist/web/v2/stores/playgroundStore.d.ts +14 -0
  24. package/dist/web/v2/types/types.base.d.ts +4 -0
  25. package/dist/web/v2/types/types.cacheLog.d.ts +11 -2
  26. package/dist/web/v2/types/types.endpoint.d.ts +6 -2
  27. package/dist/web/v2/types/types.log.d.ts +8 -4
  28. package/dist/web/v2/types/types.preset.d.ts +18 -3
  29. package/dist/web/v2/types/types.requestLog.d.ts +8 -4
  30. package/dist/web/v2/utils/endpoints.d.ts +32 -0
  31. package/dist/web/v2/utils/exportToCsv.d.ts +3 -0
  32. package/package.json +3 -3
  33. package/dist/web/v2/components/history/RequestDetailDrawer.d.ts +0 -9
@@ -73,7 +73,6 @@ export declare const requestLogLeaves: readonly [{
73
73
  readonly cfg: Readonly<{
74
74
  description?: string | undefined;
75
75
  tags?: string[] | undefined;
76
- deprecated?: boolean | undefined;
77
76
  queryExtensionSchema: z.ZodObject<{
78
77
  cursor: z.ZodOptional<z.ZodString>;
79
78
  pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -88,6 +87,7 @@ export declare const requestLogLeaves: readonly [{
88
87
  feed: true;
89
88
  summary?: string | undefined;
90
89
  docsGroup?: string | undefined;
90
+ deprecated?: boolean | undefined;
91
91
  stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
92
92
  docsHidden?: boolean | undefined;
93
93
  docsMeta?: Record<string, unknown> | undefined;
@@ -161,6 +161,7 @@ export declare const requestLogLeaves: readonly [{
161
161
  }[];
162
162
  meta: {
163
163
  totalCount?: number | undefined;
164
+ nextCursor?: string | undefined;
164
165
  };
165
166
  }, {
166
167
  out: {
@@ -187,18 +188,20 @@ export declare const requestLogLeaves: readonly [{
187
188
  }[];
188
189
  meta: {
189
190
  totalCount?: number | undefined;
191
+ nextCursor?: string | undefined;
190
192
  };
191
193
  }>;
192
194
  outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
193
195
  totalCount?: number | undefined;
196
+ nextCursor?: string | undefined;
194
197
  }, {
195
198
  totalCount?: number | undefined;
199
+ nextCursor?: string | undefined;
196
200
  }>;
197
201
  }>;
198
202
  }, import("@emeryld/rrroutes-contract").LeafLowProfile<"get", "requests/:requestId", {
199
203
  readonly description?: string | undefined;
200
204
  readonly tags?: string[] | undefined;
201
- readonly deprecated?: boolean | undefined;
202
205
  readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
203
206
  readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
204
207
  readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
@@ -220,10 +223,10 @@ export declare const requestLogLeaves: readonly [{
220
223
  createdAt: number;
221
224
  updatedAt: number;
222
225
  level: "error" | "info" | "warning" | "debug" | "trace";
223
- meta: z.core.util.JSONType;
224
226
  description?: string | undefined;
225
227
  groupId?: string | undefined;
226
228
  tags?: string[] | undefined;
229
+ meta?: any;
227
230
  }[];
228
231
  caches: {
229
232
  id: string;
@@ -267,10 +270,10 @@ export declare const requestLogLeaves: readonly [{
267
270
  createdAt: number;
268
271
  updatedAt: number;
269
272
  level: "error" | "info" | "warning" | "debug" | "trace";
270
- meta: z.core.util.JSONType;
271
273
  description?: string | undefined;
272
274
  groupId?: string | undefined;
273
275
  tags?: string[] | undefined;
276
+ meta?: any;
274
277
  }[];
275
278
  caches: {
276
279
  id: string;
@@ -302,6 +305,7 @@ export declare const requestLogLeaves: readonly [{
302
305
  readonly feed?: boolean | undefined;
303
306
  readonly summary?: string | undefined;
304
307
  readonly docsGroup?: string | undefined;
308
+ readonly deprecated?: boolean | undefined;
305
309
  readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
306
310
  readonly docsHidden?: boolean | undefined;
307
311
  readonly docsMeta?: Record<string, unknown> | undefined;
@@ -0,0 +1,32 @@
1
+ import type { EndpointType } from '../types/types.endpoint.js';
2
+ import { type MethodType } from '../types/types.base.js';
3
+ export type EndpointTabKey = 'request' | 'response' | 'meta' | 'metrics' | 'playground';
4
+ export type EndpointPanelLayout = 'split' | 'details' | 'playground';
5
+ export declare const ENDPOINT_TAB_QUERY_KEY = "tab";
6
+ export declare const ENDPOINT_LAYOUT_QUERY_KEY = "layout";
7
+ export declare const ENDPOINT_TABS: EndpointTabKey[];
8
+ export declare function mapTabQueryParam(value: string | null): EndpointTabKey;
9
+ export declare function tabToQueryParam(tab: EndpointTabKey): string | null;
10
+ export declare function mapLayoutQueryParam(value: string | null): EndpointPanelLayout;
11
+ export declare function layoutToQueryParam(layout: EndpointPanelLayout): string | null;
12
+ type EndpointIdentifiers = {
13
+ displayId: string;
14
+ encodedId: string;
15
+ };
16
+ export declare function getEndpointIdentifiers(method?: string, path?: string): EndpointIdentifiers;
17
+ export type EndpointOption = {
18
+ value: string;
19
+ display: string;
20
+ method: MethodType;
21
+ path: string;
22
+ };
23
+ export declare function buildEndpointOption(endpoint: EndpointType): EndpointOption;
24
+ export declare function parseEndpointDisplay(raw?: string | null): EndpointOption | undefined;
25
+ export declare function encodeEndpointDisplay(displayId?: string | null): string;
26
+ type EndpointDetailUrlOptions = {
27
+ tab?: EndpointTabKey;
28
+ layout?: EndpointPanelLayout;
29
+ extraParams?: Record<string, string | undefined>;
30
+ };
31
+ export declare function buildEndpointDetailUrl(displayId: string, options?: EndpointDetailUrlOptions): string;
32
+ export {};
@@ -0,0 +1,3 @@
1
+ type CsvRow = Record<string, unknown>;
2
+ export declare function exportToCsv(filename: string, rows: CsvRow[]): void;
3
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.3.6",
3
+ "version": "2.4.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -17,8 +17,8 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@emeryld/rrroutes-client": "^2.3.11",
21
- "@emeryld/rrroutes-contract": "^2.4.17",
20
+ "@emeryld/rrroutes-client": "^2.3.12",
21
+ "@emeryld/rrroutes-contract": "^2.4.18",
22
22
  "@emotion/cache": "^11.14.0",
23
23
  "@emotion/react": "^11.14.0",
24
24
  "@emotion/styled": "^11.14.1",
@@ -1,9 +0,0 @@
1
- import type { RequestLogType } from '../../types/types.requestLog.js';
2
- type RequestDetailDrawerProps = {
3
- request?: RequestLogType | null;
4
- open: boolean;
5
- onClose: () => void;
6
- onReplay?: (request: RequestLogType) => void;
7
- };
8
- export default function RequestDetailDrawer({ request, open, onClose, onReplay, }: RequestDetailDrawerProps): import("react/jsx-runtime").JSX.Element;
9
- export {};