zudoku 0.0.0-fed343e → 0.0.0-ff3bc72
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/config/config.d.ts +2 -6
- package/dist/config/validators/InputSidebarSchema.d.ts +1 -0
- package/dist/config/validators/validate.d.ts +165 -47
- package/dist/config/validators/validate.js +15 -11
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/authentication/state.d.ts +16 -0
- package/dist/lib/authentication/state.js +5 -0
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Banner.js +7 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +1 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +9 -1
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +1 -1
- package/dist/lib/oas/graphql/index.d.ts +2 -1
- package/dist/lib/oas/graphql/index.js +24 -16
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +1 -0
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +2 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js +8 -6
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +2 -1
- package/dist/lib/plugins/markdown/index.js +2 -2
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -3
- package/dist/lib/plugins/openapi/Endpoint.js +46 -8
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +14 -3
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.d.ts +2 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +10 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +29 -3
- package/dist/lib/plugins/openapi/graphql/graphql.js +87 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +13 -5
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +3 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/vite/config.d.ts +1 -1
- package/dist/vite/config.js +19 -15
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.d.ts +1 -0
- package/dist/vite/dev-server.js +7 -13
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.js +4 -7
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +9 -4
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-docs.js +7 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -0
- package/dist/vite/plugin-frontmatter.js +30 -0
- package/dist/vite/plugin-frontmatter.js.map +1 -0
- package/dist/vite/plugin-sidebar.js +14 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{CategoryHeading-XnFqN2lJ.js → CategoryHeading-ovR-zHRq.js} +2 -2
- package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-ovR-zHRq.js.map} +1 -1
- package/lib/{DeveloperHint-FBb2uXJe.js → DeveloperHint-YeWHKvyr.js} +2 -2
- package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-YeWHKvyr.js.map} +1 -1
- package/lib/ErrorPage-CsZAN_za.js +16 -0
- package/lib/ErrorPage-CsZAN_za.js.map +1 -0
- package/lib/{Input-BEDZAKw0.js → Input-CtVUl3eT.js} +3 -3
- package/lib/{Input-BEDZAKw0.js.map → Input-CtVUl3eT.js.map} +1 -1
- package/lib/{Markdown-B4aR03g6.js → Markdown-DapSf3wG.js} +795 -793
- package/lib/Markdown-DapSf3wG.js.map +1 -0
- package/lib/{MdxPage-BZyQsH8Z.js → MdxPage-BqBWsXZ1.js} +23 -23
- package/lib/MdxPage-BqBWsXZ1.js.map +1 -0
- package/lib/{OperationList-2NeWEM0u.js → OperationList-CYrmxPa8.js} +151 -109
- package/lib/OperationList-CYrmxPa8.js.map +1 -0
- package/lib/{Route-BZPewmrN.js → Route-Q5mqNQrv.js} +2 -2
- package/lib/{Route-BZPewmrN.js.map → Route-Q5mqNQrv.js.map} +1 -1
- package/lib/{SidebarBadge-COz0hgfa.js → SidebarBadge-Dx7jtnoA.js} +3 -3
- package/lib/{SidebarBadge-COz0hgfa.js.map → SidebarBadge-Dx7jtnoA.js.map} +1 -1
- package/lib/{SlotletProvider-DJMaOUDs.js → SlotletProvider-D3UD5Go3.js} +4 -4
- package/lib/{SlotletProvider-DJMaOUDs.js.map → SlotletProvider-D3UD5Go3.js.map} +1 -1
- package/lib/assets/{worker-BvD7B6MG.js → worker-BP8Uzflt.js} +3238 -1161
- package/lib/assets/worker-BP8Uzflt.js.map +1 -0
- package/lib/{index-Dv2KZuEw.js → index-BlJ2rj99.js} +1774 -1644
- package/lib/index-BlJ2rj99.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/index-Bn6Lc9tq.js.map +1 -0
- package/lib/{index-1EDgIO6b.js → index-BngPzhKn.js} +3 -3
- package/lib/{index-1EDgIO6b.js.map → index-BngPzhKn.js.map} +1 -1
- package/lib/{index-Zezcv0xb.js → index-Dolisrci.js} +3 -3
- package/lib/{index-Zezcv0xb.js.map → index-Dolisrci.js.map} +1 -1
- package/lib/index-LNp6rxyU.js +2094 -0
- package/lib/index-LNp6rxyU.js.map +1 -0
- package/lib/state-hNe1dw4B.js +548 -0
- package/lib/state-hNe1dw4B.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.components.js +470 -466
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1645 -1639
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +18 -15
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/package.json +14 -4
- package/src/lib/authentication/state.ts +17 -0
- package/src/lib/components/Banner.tsx +12 -2
- package/src/lib/components/ErrorPage.tsx +0 -2
- package/src/lib/components/InlineCode.tsx +10 -0
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/core/DevPortalContext.ts +1 -1
- package/src/lib/oas/graphql/index.ts +36 -24
- package/src/lib/oas/parser/index.ts +1 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/markdown/generateRoutes.tsx +8 -5
- package/src/lib/plugins/markdown/index.tsx +3 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +86 -22
- package/src/lib/plugins/openapi/OperationList.tsx +3 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +17 -2
- package/src/lib/plugins/openapi/SimpleSelect.tsx +10 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +11 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +116 -4
- package/src/lib/plugins/openapi/interfaces.ts +4 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +39 -5
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -1
- package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
- package/dist/lib/util/slugify.d.ts +0 -2
- package/dist/lib/util/slugify.js +0 -3
- package/dist/lib/util/slugify.js.map +0 -1
- package/dist/vite/plugin-icons.d.ts +0 -3
- package/dist/vite/plugin-icons.js +0 -47
- package/dist/vite/plugin-icons.js.map +0 -1
- package/lib/ErrorPage-knunPbKI.js +0 -18
- package/lib/ErrorPage-knunPbKI.js.map +0 -1
- package/lib/Markdown-B4aR03g6.js.map +0 -1
- package/lib/MdxPage-BZyQsH8Z.js.map +0 -1
- package/lib/OperationList-2NeWEM0u.js.map +0 -1
- package/lib/assets/worker-BvD7B6MG.js.map +0 -1
- package/lib/index-Dv2KZuEw.js.map +0 -1
- package/lib/slugify-DbLhpSPt.js +0 -28
- package/lib/slugify-DbLhpSPt.js.map +0 -1
- package/lib/state-lIwt9isb.js +0 -288
- package/lib/state-lIwt9isb.js.map +0 -1
- package/src/lib/util/slugify.ts +0 -3
|
@@ -1,14 +1,52 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { CheckIcon, CopyIcon } from "lucide-react";
|
|
3
|
-
import { useState } from "react";
|
|
3
|
+
import { useState, useTransition } from "react";
|
|
4
|
+
import { useSelectedServerStore } from "../../authentication/state.js";
|
|
4
5
|
import { InlineCode } from "../../components/InlineCode.js";
|
|
5
|
-
|
|
6
|
+
import { Button } from "../../ui/Button.js";
|
|
7
|
+
import { useOasConfig } from "./context.js";
|
|
8
|
+
import { graphql } from "./graphql/index.js";
|
|
9
|
+
import { SimpleSelect } from "./SimpleSelect.js";
|
|
10
|
+
import { useQuery } from "./util/urql.js";
|
|
11
|
+
const ServersQuery = graphql(/* GraphQL */ `
|
|
12
|
+
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
13
|
+
schema(input: $input, type: $type) {
|
|
14
|
+
url
|
|
15
|
+
servers {
|
|
16
|
+
url
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`);
|
|
21
|
+
const CopyButton = ({ url }) => {
|
|
6
22
|
const [isCopied, setIsCopied] = useState(false);
|
|
7
|
-
return (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
return (_jsx(Button, { onClick: () => {
|
|
24
|
+
void navigator.clipboard.writeText(url).then(() => {
|
|
25
|
+
setIsCopied(true);
|
|
26
|
+
setTimeout(() => setIsCopied(false), 2000);
|
|
27
|
+
});
|
|
28
|
+
}, variant: "ghost", size: "icon", children: isCopied ? (_jsx(CheckIcon, { className: "text-green-600", size: 14 })) : (_jsx(CopyIcon, { size: 14, strokeWidth: 1.3 })) }));
|
|
29
|
+
};
|
|
30
|
+
const context = { suspense: true };
|
|
31
|
+
export const Endpoint = () => {
|
|
32
|
+
const [result] = useQuery({
|
|
33
|
+
query: ServersQuery,
|
|
34
|
+
variables: useOasConfig(),
|
|
35
|
+
context,
|
|
36
|
+
});
|
|
37
|
+
const [, startTransition] = useTransition();
|
|
38
|
+
const { selectedServer, setSelectedServer } = useSelectedServerStore();
|
|
39
|
+
if (!result.data)
|
|
40
|
+
return null;
|
|
41
|
+
const { servers } = result.data.schema;
|
|
42
|
+
if (servers.length === 1) {
|
|
43
|
+
return (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }), _jsx(InlineCode, { className: "text-xs px-2 py-1.5", selectOnClick: true, children: servers[0].url }), _jsx(CopyButton, { url: servers[0].url })] }));
|
|
44
|
+
}
|
|
45
|
+
return (_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs("span", { className: "font-medium text-sm", children: [servers.length > 1 ? "Endpoints" : "Endpoint", ":"] }), _jsx(SimpleSelect, { className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate", onChange: (e) => startTransition(() => {
|
|
46
|
+
setSelectedServer(e.target.value);
|
|
47
|
+
}), value: selectedServer ?? result.data.schema.url, showChevrons: servers.length > 1, options: servers.map((server) => ({
|
|
48
|
+
value: server.url,
|
|
49
|
+
label: server.url,
|
|
50
|
+
})) }), _jsx(CopyButton, { url: selectedServer ?? result.data.schema.url })] }));
|
|
13
51
|
};
|
|
14
52
|
//# sourceMappingURL=Endpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoint.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/Endpoint.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Endpoint.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/Endpoint.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE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C;gBACpC,CAAC,CAAC,EAEJ,KAAK,EAAE,cAAc,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAC/C,YAAY,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,EAChC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;oBAChC,KAAK,EAAE,MAAM,CAAC,GAAG;oBACjB,KAAK,EAAE,MAAM,CAAC,GAAG;iBAClB,CAAC,CAAC,GACH,EACF,KAAC,UAAU,IAAC,GAAG,EAAE,cAAc,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAI,IACzD,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -96,7 +96,7 @@ export const OperationList = () => {
|
|
|
96
96
|
}
|
|
97
97
|
if (!result.data)
|
|
98
98
|
return null;
|
|
99
|
-
return (_jsxs("div", { className: "pt-[--padding-content-top]", children: [_jsxs("div", { className: cn(ProseClasses, "mb-16 max-w-full prose-img:max-w-prose"), children: [_jsx(CategoryHeading, { children: "Overview" }), _jsx(Heading, { level: 1, id: "description", registerSidebarAnchor: true, children: result.data.schema.title }), _jsx(Markdown, { content: result.data.schema.description ?? "" })] }), _jsx("hr", {}), _jsx(
|
|
99
|
+
return (_jsxs("div", { className: "pt-[--padding-content-top]", children: [_jsxs("div", { className: cn(ProseClasses, "mb-16 max-w-full prose-img:max-w-prose"), children: [_jsx(CategoryHeading, { children: "Overview" }), _jsx(Heading, { level: 1, id: "description", registerSidebarAnchor: true, children: result.data.schema.title }), _jsx(Markdown, { content: result.data.schema.description ?? "" })] }), _jsx("hr", {}), _jsx("div", { className: "my-4 flex justify-end", children: _jsx(Endpoint, {}) }), result.data.schema.tags
|
|
100
100
|
.filter((tag) => tag.operations.length > 0)
|
|
101
101
|
.map((tag) => (_jsxs("div", { children: [tag.name && _jsx(CategoryHeading, { children: tag.name }), tag.description && (_jsx(Markdown, { className: `${ProseClasses} max-w-full prose-img:max-w-prose w-full mt-2 mb-12`, content: tag.description })), _jsx("div", { className: "operation mb-12", children: _jsx(StaggeredRender, { children: tag.operations.map((fragment) => (_jsx(OperationListItem, { operationFragment: fragment }, fragment.slug))) }) })] }, tag.name)))] }));
|
|
102
102
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationList.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/OperationList.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDvD,CAAC,CAAC;AAIH,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;CAiBhD,CAAC,CAAC;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AM,CAAC,IAAI;iBACrB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;iBAC1C,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACZ,0BACG,GAAG,CAAC,IAAI,IAAI,KAAC,eAAe,cAAE,GAAG,CAAC,IAAI,GAAmB,EACzD,GAAG,CAAC,WAAW,IAAI,CAClB,KAAC,QAAQ,IACP,SAAS,EAAE,GAAG,YAAY,qDAAqD,EAC/E,OAAO,EAAE,GAAG,CAAC,WAAW,GACxB,CACH,EACD,cAAK,SAAS,EAAC,iBAAiB,YAC9B,KAAC,eAAe,cACb,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAChC,KAAC,iBAAiB,IAEhB,iBAAiB,EAAE,QAAQ,IADtB,QAAQ,CAAC,IAAI,CAElB,CACH,CAAC,GACc,GACd,KAjBE,GAAG,CAAC,IAAI,CAkBZ,CACP,CAAC,IACA,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ export const OperationListItem = ({ operationFragment, }) => {
|
|
|
16
16
|
const groupedParameters = groupBy(operation.parameters ?? [], (param) => param.in);
|
|
17
17
|
const first = operation.responses.at(0);
|
|
18
18
|
const [selectedResponse, setSelectedResponse] = useState(first?.statusCode);
|
|
19
|
-
return (_jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[4fr_3fr] gap-8 items-start border-b-2 mb-16 pb-16", children: [_jsxs("div", { className: "flex flex-col gap-4", children: [_jsx(Heading, { level: 2, id: operation.slug, registerSidebarAnchor: true, children: operation.summary }), operation.description && (_jsx(Markdown, { className: `${ProseClasses} max-w-full prose-img:max-w-prose`, content: operation.description })), operation.parameters && operation.parameters.length > 0 && (_jsx(_Fragment, { children: PARAM_GROUPS.flatMap((group) => groupedParameters[group]?.length ? (_jsx(ParameterList, { id: operation.slug, parameters: groupedParameters[group], group: group }, group)) : ([])) })), renderIf(operation.requestBody?.content?.at(0)?.schema, (schema) => (_jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [_jsx(Heading, { level: 3, className: "capitalize", id: `${operation.slug}/request-body`, registerSidebarAnchor: true, children: "Request Body" }), _jsx(SchemaView, { schema: schema })] }))), operation.responses.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 3, className: "capitalize mt-8 pt-8 border-t", id: `${operation.slug}/responses`, registerSidebarAnchor: true, children: "Responses" }), _jsxs(Tabs, { onValueChange: (value) => setSelectedResponse(value), value: selectedResponse, children: [operation.responses.length > 1 && (_jsx(TabsList, { children: operation.responses.map((response) => (_jsx(TabsTrigger, { value: response.statusCode, title: response.description, children: response.statusCode }, response.statusCode))) })), _jsx("ul", { className: "list-none m-0 px-0", children: operation.responses.map((response) => (_jsx(TabsContent, { value: response.statusCode, children: _jsx(SchemaView, { schema: response.content?.find((content) => content.schema)
|
|
19
|
+
return (_jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[4fr_3fr] gap-8 items-start border-b-2 mb-16 pb-16", children: [_jsxs("div", { className: "flex flex-col gap-4", children: [_jsx(Heading, { level: 2, id: operation.slug, registerSidebarAnchor: true, children: operation.summary }), operation.description && (_jsx(Markdown, { className: `${ProseClasses} max-w-full prose-img:max-w-prose`, content: operation.description })), operation.parameters && operation.parameters.length > 0 && (_jsx(_Fragment, { children: PARAM_GROUPS.flatMap((group) => groupedParameters[group]?.length ? (_jsx(ParameterList, { id: operation.slug, parameters: groupedParameters[group], group: group }, group)) : ([])) })), renderIf(operation.requestBody?.content?.at(0)?.schema, (schema) => (_jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [_jsx(Heading, { level: 3, className: "capitalize", id: `${operation.slug}/request-body`, registerSidebarAnchor: true, children: "Request Body" }), _jsx(SchemaView, { schema: schema })] }))), operation.responses.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 3, className: "capitalize mt-8 pt-8 border-t", id: `${operation.slug}/responses`, registerSidebarAnchor: true, children: "Responses" }), _jsxs(Tabs, { onValueChange: (value) => setSelectedResponse(value), value: selectedResponse, children: [operation.responses.length > 1 && (_jsx(TabsList, { children: operation.responses.map((response) => (_jsx(TabsTrigger, { value: response.statusCode, title: response.description ?? undefined, children: response.statusCode }, response.statusCode))) })), _jsx("ul", { className: "list-none m-0 px-0", children: operation.responses.map((response) => (_jsx(TabsContent, { value: response.statusCode, children: _jsx(SchemaView, { schema: response.content?.find((content) => content.schema)
|
|
20
20
|
?.schema }) }, response.statusCode))) })] })] }))] }), _jsx(Sidecar, { selectedResponse: selectedResponse, onSelectResponse: setSelectedResponse, operation: operation })] }, operation.operationId));
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=OperationListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationListItem.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/OperationListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAgB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,CAA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C,CAAC,CAAC,CACF,EAAE,CACH,CACF,GACA,CACJ,EACA,QAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CACnE,eAAK,SAAS,EAAC,0BAA0B,aACvC,KAAC,OAAO,IACN,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,YAAY,EACtB,EAAE,EAAE,GAAG,SAAS,CAAC,IAAI,eAAe,EACpC,qBAAqB,mCAGb,EACV,KAAC,UAAU,IAAC,MAAM,EAAE,MAAM,GAAI,IAC1B,CACP,CAAC,EACD,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACjC,8BACE,KAAC,OAAO,IACN,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,+BAA+B,EACzC,EAAE,EAAE,GAAG,SAAS,CAAC,IAAI,YAAY,EACjC,qBAAqB,gCAGb,EACV,MAAC,IAAI,IACH,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,EACpD,KAAK,EAAE,gBAAgB,aAEtB,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACjC,KAAC,QAAQ,cACN,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACrC,KAAC,WAAW,IACV,KAAK,EAAE,QAAQ,CAAC,UAAU,EAE1B,KAAK,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"OperationListItem.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/OperationListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EA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AAQ,cACN,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACrC,KAAC,WAAW,IACV,KAAK,EAAE,QAAQ,CAAC,UAAU,EAE1B,KAAK,EAAE,QAAQ,CAAC,WAAW,IAAI,SAAS,YAEvC,QAAQ,CAAC,UAAU,IAHf,QAAQ,CAAC,UAAU,CAIZ,CACf,CAAC,GACO,CACZ,EACD,aAAI,SAAS,EAAC,oBAAoB,YAC/B,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACrC,KAAC,WAAW,IACV,KAAK,EAAE,QAAQ,CAAC,UAAU,YAG1B,KAAC,UAAU,IACT,MAAM,EACJ,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;oDACjD,EAAE,MAAM,GAEZ,IAPG,QAAQ,CAAC,UAAU,CAQZ,CACf,CAAC,GACC,IACA,IACN,CACJ,IACG,EAEN,KAAC,OAAO,IACN,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,mBAAmB,EACrC,SAAS,EAAE,SAAS,GACpB,KA7FG,SAAS,CAAC,WAAW,CA8FtB,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { OperationListItemResult } from "./OperationList.js";
|
|
2
|
-
export declare const PlaygroundDialogWrapper: ({ server, operation, }: {
|
|
2
|
+
export declare const PlaygroundDialogWrapper: ({ server, servers, operation, }: {
|
|
3
3
|
server: string;
|
|
4
|
+
servers?: string[];
|
|
4
5
|
operation: OperationListItemResult;
|
|
5
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { PlaygroundDialog } from "./playground/PlaygroundDialog.js";
|
|
3
|
-
export const PlaygroundDialogWrapper = ({ server, operation, }) => {
|
|
3
|
+
export const PlaygroundDialogWrapper = ({ server, servers, operation, }) => {
|
|
4
4
|
const headers = operation.parameters
|
|
5
5
|
?.filter((p) => p.in === "header")
|
|
6
6
|
.map((p) => ({
|
|
@@ -18,6 +18,6 @@ export const PlaygroundDialogWrapper = ({ server, operation, }) => {
|
|
|
18
18
|
const pathParams = operation.parameters
|
|
19
19
|
?.filter((p) => p.in === "path")
|
|
20
20
|
.map((p) => ({ name: p.name }));
|
|
21
|
-
return (_jsx(PlaygroundDialog, { server: server, method: operation.method, url: operation.path, headers: headers, queryParams: queryParams, pathParams: pathParams }));
|
|
21
|
+
return (_jsx(PlaygroundDialog, { server: server, servers: servers, method: operation.method, url: operation.path, headers: headers, queryParams: queryParams, pathParams: pathParams }));
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=PlaygroundDialogWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundDialogWrapper.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,MAAM,EACN,SAAS,
|
|
1
|
+
{"version":3,"file":"PlaygroundDialogWrapper.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,MAAM,EACN,OAAO,EACP,SAAS,GAKV,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,SAAS,CAAC,UAAU;QAClC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC;SACjC,GAAG,CAAC,CAAC,CA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AACJ,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { HTTPSnippet } from "@zudoku/httpsnippet";
|
|
3
3
|
import { Fragment, useMemo, useTransition } from "react";
|
|
4
4
|
import { useSearchParams } from "react-router-dom";
|
|
5
|
+
import { useSelectedServerStore } from "../../authentication/state.js";
|
|
5
6
|
import { TextColorMap } from "../../components/navigation/SidebarBadge.js";
|
|
6
7
|
import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
|
|
7
8
|
import { cn } from "../../util/cn.js";
|
|
@@ -61,6 +62,9 @@ export const GetServerQuery = graphql(/* GraphQL */ `
|
|
|
61
62
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
62
63
|
schema(input: $input, type: $type) {
|
|
63
64
|
url
|
|
65
|
+
servers {
|
|
66
|
+
url
|
|
67
|
+
}
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
`);
|
|
@@ -96,13 +100,14 @@ export const Sidecar = ({ operation, selectedResponse, onSelectResponse, }) => {
|
|
|
96
100
|
// same as in `ParameterListItem`
|
|
97
101
|
slug: `${operation.slug}-${paramName.toLocaleLowerCase()}`, children: part })) : (part), i < arr.length - 1 ? "/" : null, _jsx("wbr", {})] }, part + i));
|
|
98
102
|
});
|
|
103
|
+
const { selectedServer } = useSelectedServerStore();
|
|
99
104
|
const code = useMemo(() => {
|
|
100
105
|
const example = requestBodyContent?.[0]?.schema
|
|
101
106
|
? generateSchemaExample(requestBodyContent[0].schema)
|
|
102
107
|
: undefined;
|
|
103
108
|
const snippet = new HTTPSnippet({
|
|
104
109
|
method: operation.method.toLocaleUpperCase(),
|
|
105
|
-
url: (result.data?.schema.url ?? "") +
|
|
110
|
+
url: (selectedServer ?? result.data?.schema.url ?? "") +
|
|
106
111
|
operation.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
107
112
|
postData: example
|
|
108
113
|
? {
|
|
@@ -118,8 +123,14 @@ export const Sidecar = ({ operation, selectedResponse, onSelectResponse, }) => {
|
|
|
118
123
|
bodySize: 0,
|
|
119
124
|
});
|
|
120
125
|
return getConverted(snippet, selectedLang);
|
|
121
|
-
}, [
|
|
122
|
-
|
|
126
|
+
}, [
|
|
127
|
+
selectedServer,
|
|
128
|
+
selectedLang,
|
|
129
|
+
operation.method,
|
|
130
|
+
operation.path,
|
|
131
|
+
requestBodyContent,
|
|
132
|
+
]);
|
|
133
|
+
return (_jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [_jsxs(SidecarBox.Root, { children: [_jsxs(SidecarBox.Head, { className: "flex justify-between items-center flex-nowrap py-3 gap-2 text-xs", children: [_jsxs("span", { className: "font-mono break-words", children: [_jsx("span", { className: cn("font-semibold", methodTextColor), children: operation.method.toLocaleUpperCase() }), "\u00A0", path] }), _jsx(PlaygroundDialogWrapper, { server: result.data?.schema.url ?? "", servers: result.data?.schema.servers.map((server) => server.url) ?? [], operation: operation })] }), _jsx(SidecarBox.Body, { className: "max-h-[480px] p-0", children: _jsx(SyntaxHighlight, { language: selectedLang, noBackground: true, className: "text-xs p-2", code: code }) }), _jsxs(SidecarBox.Footer, { className: "flex items-center text-xs gap-2 justify-end py-1", children: [_jsx("span", { children: "Show example in" }), _jsx(SimpleSelect, { className: "self-start max-w-[150px]", value: selectedLang, onChange: (e) => {
|
|
123
134
|
startTransition(() => {
|
|
124
135
|
setSearchParams((prev) => {
|
|
125
136
|
prev.set("lang", e.target.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidecar.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/Sidecar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC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
|
|
1
1
|
import type { ChangeEventHandler } from "react";
|
|
2
|
-
export declare const SimpleSelect: ({ value, onChange, className, options, }: {
|
|
2
|
+
export declare const SimpleSelect: ({ value, onChange, className, options, showChevrons, }: {
|
|
3
3
|
value: string;
|
|
4
4
|
onChange: ChangeEventHandler<HTMLSelectElement>;
|
|
5
5
|
className?: string;
|
|
@@ -7,4 +7,5 @@ export declare const SimpleSelect: ({ value, onChange, className, options, }: {
|
|
|
7
7
|
value: string;
|
|
8
8
|
label: string;
|
|
9
9
|
}[];
|
|
10
|
+
showChevrons?: boolean;
|
|
10
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronsUpDownIcon } from "lucide-react";
|
|
3
3
|
import { cn } from "../../util/cn.js";
|
|
4
|
-
export const SimpleSelect = ({ value, onChange, className, options, }) => (_jsxs("div", { className:
|
|
4
|
+
export const SimpleSelect = ({ value, onChange, className, options, showChevrons = true, }) => (_jsxs("div", { className: "grid", children: [_jsx("select", { className: cn("row-start-1 col-start-1 border border-input text-foreground px-2 py-1 pe-6", "rounded-md appearance-none bg-zinc-50 hover:bg-white dark:bg-zinc-800 hover:dark:bg-zinc-800/75", className), value: value, onChange: onChange, children: options.map((option) => (_jsx("option", { value: option.value, children: option.label }, option.value))) }), _jsx("div", { className: cn(!showChevrons && "hidden", "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none"), children: _jsx(ChevronsUpDownIcon, { size: 14 }) })] }));
|
|
5
5
|
//# sourceMappingURL=SimpleSelect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleSelect.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/SimpleSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,
|
|
1
|
+
{"version":3,"file":"SimpleSelect.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/SimpleSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,EACP,YAAY,GAAG,IAAI,GAUpB,EAAE,EAAE,CAAC,CACJ,eAAK,SAAS,EAAC,MAAM,aACnB,iBACE,SAAS,EAAE,EAAE,CACX,4EAA4E,EAC5E,iGAAiG,EACjG,SAAS,CACV,EACD,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAEjB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,iBAAQ,KAAK,EAAE,MAAM,CAAC,KAAK,YACxB,MAAM,CAAC,KAAK,IADmB,MAAM,CAAC,KAAK,CAErC,CACV,CAAC,GACK,EACT,cACE,SAAS,EAAE,EAAE,CACX,CAAC,YAAY,IAAI,QAAQ,EACzB,yFAAyF,CAC1F,YAED,KAAC,kBAAkB,IAAC,IAAI,EAAE,EAAE,GAAI,GAC5B,IACF,CACP,CAAC"}
|
|
@@ -11,12 +11,16 @@ import * as types from "./graphql.js";
|
|
|
11
11
|
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
12
12
|
*/
|
|
13
13
|
declare const documents: {
|
|
14
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": DocumentNode<types.ServersQueryQuery, types.Exact<{
|
|
15
|
+
input: types.Scalars["JSON"]["input"];
|
|
16
|
+
type: types.SchemaType;
|
|
17
|
+
}>>;
|
|
14
18
|
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": DocumentNode<types.OperationsFragmentFragment, unknown>;
|
|
15
19
|
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": DocumentNode<types.AllOperationsQuery, types.Exact<{
|
|
16
20
|
input: types.Scalars["JSON"]["input"];
|
|
17
21
|
type: types.SchemaType;
|
|
18
22
|
}>>;
|
|
19
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": DocumentNode<types.GetServerQueryQuery, types.Exact<{
|
|
23
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": DocumentNode<types.GetServerQueryQuery, types.Exact<{
|
|
20
24
|
input: types.Scalars["JSON"]["input"];
|
|
21
25
|
type: types.SchemaType;
|
|
22
26
|
}>>;
|
|
@@ -38,6 +42,10 @@ declare const documents: {
|
|
|
38
42
|
* Please regenerate the types.
|
|
39
43
|
*/
|
|
40
44
|
export declare function graphql(source: string): unknown;
|
|
45
|
+
/**
|
|
46
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
47
|
+
*/
|
|
48
|
+
export declare function graphql(source: "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n"): (typeof documents)["\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n"];
|
|
41
49
|
/**
|
|
42
50
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
43
51
|
*/
|
|
@@ -49,7 +57,7 @@ export declare function graphql(source: "\n query AllOperations($input: JSON!,
|
|
|
49
57
|
/**
|
|
50
58
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
51
59
|
*/
|
|
52
|
-
export declare function graphql(source: "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n"): (typeof documents)["\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n"];
|
|
60
|
+
export declare function graphql(source: "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n"): (typeof documents)["\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n"];
|
|
53
61
|
/**
|
|
54
62
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
55
63
|
*/
|
|
@@ -10,9 +10,10 @@ import * as types from "./graphql.js";
|
|
|
10
10
|
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
11
11
|
*/
|
|
12
12
|
const documents = {
|
|
13
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": types.ServersQueryDocument,
|
|
13
14
|
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": types.OperationsFragmentFragmentDoc,
|
|
14
15
|
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": types.AllOperationsDocument,
|
|
15
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": types.GetServerQueryDocument,
|
|
16
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": types.GetServerQueryDocument,
|
|
16
17
|
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": types.GetCategoriesDocument,
|
|
17
18
|
};
|
|
18
19
|
export function graphql(source) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/gql.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,6tBAA6tB,EAC3tB,KAAK,CAAC,6BAA6B;IACrC,4TAA4T,EAC1T,KAAK,CAAC,qBAAqB;IAC7B,
|
|
1
|
+
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/gql.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,uKAAuK,EACrK,KAAK,CAAC,oBAAoB;IAC5B,6tBAA6tB,EAC3tB,KAAK,CAAC,6BAA6B;IACrC,4TAA4T,EAC1T,KAAK,CAAC,qBAAqB;IAC7B,yKAAyK,EACvK,KAAK,CAAC,sBAAsB;IAC9B,wVAAwV,EACtV,KAAK,CAAC,qBAAqB;CAC9B,CAAC;AA+CF,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -129,7 +129,7 @@ export type RequestBodyObject = {
|
|
|
129
129
|
export type ResponseItem = {
|
|
130
130
|
__typename?: "ResponseItem";
|
|
131
131
|
content?: Maybe<Array<MediaTypeObject>>;
|
|
132
|
-
description
|
|
132
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
133
133
|
headers?: Maybe<Scalars["JSON"]["output"]>;
|
|
134
134
|
links?: Maybe<Scalars["JSON"]["output"]>;
|
|
135
135
|
statusCode: Scalars["String"]["output"];
|
|
@@ -140,6 +140,7 @@ export type Schema = {
|
|
|
140
140
|
openapi: Scalars["String"]["output"];
|
|
141
141
|
operations: Array<OperationItem>;
|
|
142
142
|
paths: Array<PathItem>;
|
|
143
|
+
servers: Array<Server>;
|
|
143
144
|
tags: Array<SchemaTag>;
|
|
144
145
|
title: Scalars["String"]["output"];
|
|
145
146
|
url: Scalars["String"]["output"];
|
|
@@ -160,12 +161,32 @@ export type SchemaTag = {
|
|
|
160
161
|
name?: Maybe<Scalars["String"]["output"]>;
|
|
161
162
|
operations: Array<OperationItem>;
|
|
162
163
|
};
|
|
163
|
-
export type SchemaType = "file" | "url";
|
|
164
|
+
export type SchemaType = "file" | "raw" | "url";
|
|
165
|
+
export type Server = {
|
|
166
|
+
__typename?: "Server";
|
|
167
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
168
|
+
url: Scalars["String"]["output"];
|
|
169
|
+
};
|
|
164
170
|
export type TagItem = {
|
|
165
171
|
__typename?: "TagItem";
|
|
166
172
|
description?: Maybe<Scalars["String"]["output"]>;
|
|
167
173
|
name: Scalars["String"]["output"];
|
|
168
174
|
};
|
|
175
|
+
export type ServersQueryQueryVariables = Exact<{
|
|
176
|
+
input: Scalars["JSON"]["input"];
|
|
177
|
+
type: SchemaType;
|
|
178
|
+
}>;
|
|
179
|
+
export type ServersQueryQuery = {
|
|
180
|
+
__typename?: "Query";
|
|
181
|
+
schema: {
|
|
182
|
+
__typename?: "Schema";
|
|
183
|
+
url: string;
|
|
184
|
+
servers: Array<{
|
|
185
|
+
__typename?: "Server";
|
|
186
|
+
url: string;
|
|
187
|
+
}>;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
169
190
|
export type OperationsFragmentFragment = {
|
|
170
191
|
__typename?: "OperationItem";
|
|
171
192
|
slug: string;
|
|
@@ -210,7 +231,7 @@ export type OperationsFragmentFragment = {
|
|
|
210
231
|
__typename?: "ResponseItem";
|
|
211
232
|
statusCode: string;
|
|
212
233
|
links?: any | null;
|
|
213
|
-
description
|
|
234
|
+
description?: string | null;
|
|
214
235
|
content?: Array<{
|
|
215
236
|
__typename?: "MediaTypeObject";
|
|
216
237
|
mediaType: string;
|
|
@@ -260,6 +281,10 @@ export type GetServerQueryQuery = {
|
|
|
260
281
|
schema: {
|
|
261
282
|
__typename?: "Schema";
|
|
262
283
|
url: string;
|
|
284
|
+
servers: Array<{
|
|
285
|
+
__typename?: "Server";
|
|
286
|
+
url: string;
|
|
287
|
+
}>;
|
|
263
288
|
};
|
|
264
289
|
};
|
|
265
290
|
export type GetCategoriesQueryVariables = Exact<{
|
|
@@ -286,6 +311,7 @@ export type GetCategoriesQuery = {
|
|
|
286
311
|
};
|
|
287
312
|
};
|
|
288
313
|
export declare const OperationsFragmentFragmentDoc: DocumentNode<OperationsFragmentFragment, unknown>;
|
|
314
|
+
export declare const ServersQueryDocument: DocumentNode<ServersQueryQuery, ServersQueryQueryVariables>;
|
|
289
315
|
export declare const AllOperationsDocument: DocumentNode<AllOperationsQuery, AllOperationsQueryVariables>;
|
|
290
316
|
export declare const GetServerQueryDocument: DocumentNode<GetServerQueryQuery, GetServerQueryQueryVariables>;
|
|
291
317
|
export declare const GetCategoriesDocument: DocumentNode<GetCategoriesQuery, GetCategoriesQueryVariables>;
|
|
@@ -144,6 +144,83 @@ export const OperationsFragmentFragmentDoc = {
|
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
146
|
};
|
|
147
|
+
export const ServersQueryDocument = {
|
|
148
|
+
kind: "Document",
|
|
149
|
+
definitions: [
|
|
150
|
+
{
|
|
151
|
+
kind: "OperationDefinition",
|
|
152
|
+
operation: "query",
|
|
153
|
+
name: { kind: "Name", value: "ServersQuery" },
|
|
154
|
+
variableDefinitions: [
|
|
155
|
+
{
|
|
156
|
+
kind: "VariableDefinition",
|
|
157
|
+
variable: {
|
|
158
|
+
kind: "Variable",
|
|
159
|
+
name: { kind: "Name", value: "input" },
|
|
160
|
+
},
|
|
161
|
+
type: {
|
|
162
|
+
kind: "NonNullType",
|
|
163
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
kind: "VariableDefinition",
|
|
168
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
|
|
169
|
+
type: {
|
|
170
|
+
kind: "NonNullType",
|
|
171
|
+
type: {
|
|
172
|
+
kind: "NamedType",
|
|
173
|
+
name: { kind: "Name", value: "SchemaType" },
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
selectionSet: {
|
|
179
|
+
kind: "SelectionSet",
|
|
180
|
+
selections: [
|
|
181
|
+
{
|
|
182
|
+
kind: "Field",
|
|
183
|
+
name: { kind: "Name", value: "schema" },
|
|
184
|
+
arguments: [
|
|
185
|
+
{
|
|
186
|
+
kind: "Argument",
|
|
187
|
+
name: { kind: "Name", value: "input" },
|
|
188
|
+
value: {
|
|
189
|
+
kind: "Variable",
|
|
190
|
+
name: { kind: "Name", value: "input" },
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
kind: "Argument",
|
|
195
|
+
name: { kind: "Name", value: "type" },
|
|
196
|
+
value: {
|
|
197
|
+
kind: "Variable",
|
|
198
|
+
name: { kind: "Name", value: "type" },
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
selectionSet: {
|
|
203
|
+
kind: "SelectionSet",
|
|
204
|
+
selections: [
|
|
205
|
+
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
|
206
|
+
{
|
|
207
|
+
kind: "Field",
|
|
208
|
+
name: { kind: "Name", value: "servers" },
|
|
209
|
+
selectionSet: {
|
|
210
|
+
kind: "SelectionSet",
|
|
211
|
+
selections: [
|
|
212
|
+
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
};
|
|
147
224
|
export const AllOperationsDocument = {
|
|
148
225
|
kind: "Document",
|
|
149
226
|
definitions: [
|
|
@@ -448,6 +525,16 @@ export const GetServerQueryDocument = {
|
|
|
448
525
|
kind: "SelectionSet",
|
|
449
526
|
selections: [
|
|
450
527
|
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
|
528
|
+
{
|
|
529
|
+
kind: "Field",
|
|
530
|
+
name: { kind: "Name", value: "servers" },
|
|
531
|
+
selectionSet: {
|
|
532
|
+
kind: "SelectionSet",
|
|
533
|
+
selections: [
|
|
534
|
+
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
|
535
|
+
],
|
|
536
|
+
},
|
|
537
|
+
},
|
|
451
538
|
],
|
|
452
539
|
},
|
|
453
540
|
},
|