zudoku 0.1.1-dev.2 → 0.1.1-dev.20
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/cli.js +2 -0
- package/dist/app/App.js +22 -0
- package/dist/app/App.js.map +1 -0
- package/dist/app/main.js +4 -16
- package/dist/app/main.js.map +1 -1
- package/dist/cli/cmds/dev.js +0 -1
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/common/logger.d.ts +1 -2
- package/dist/cli/common/logger.js +2 -4
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -1
- package/dist/cli/dev/handler.js +11 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +12 -7
- package/dist/index.d.ts +2 -6
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/{app → lib}/DevPortal.d.ts +2 -3
- package/dist/{app → lib}/DevPortal.js +6 -19
- package/dist/lib/DevPortal.js.map +1 -0
- package/dist/{app → lib}/Heading.js.map +1 -1
- package/dist/lib/Router.d.ts +4 -0
- package/dist/lib/Router.js +20 -0
- package/dist/lib/Router.js.map +1 -0
- package/dist/lib/auth.d.ts +1 -0
- package/dist/lib/auth.js +2 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/authentication/authentication.js.map +1 -0
- package/dist/{app → lib}/authentication/clerk.d.ts +1 -2
- package/dist/{app → lib}/authentication/clerk.js +1 -2
- package/dist/lib/authentication/clerk.js.map +1 -0
- package/dist/{app → lib}/authentication/openid.js +2 -2
- package/dist/lib/authentication/openid.js.map +1 -0
- package/dist/{app → lib}/components/AnchorLink.js.map +1 -1
- package/dist/{app → lib}/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/Dialog.d.ts +19 -0
- package/dist/lib/components/Dialog.js +23 -0
- package/dist/lib/components/Dialog.js.map +1 -0
- package/dist/{app → lib}/components/DynamicIcon.js.map +1 -1
- package/dist/{app → lib}/components/Header.d.ts +0 -1
- package/dist/{app → lib}/components/Header.js.map +1 -1
- package/dist/lib/components/Input.d.ts +5 -0
- package/dist/lib/components/Input.js +9 -0
- package/dist/lib/components/Input.js.map +1 -0
- package/dist/{app → lib}/components/Layout.js.map +1 -1
- package/dist/{app → lib}/components/Markdown.js.map +1 -1
- package/dist/{app → lib}/components/SyntaxHighlight.js +2 -0
- package/dist/lib/components/SyntaxHighlight.js.map +1 -0
- package/dist/{app → lib}/components/TopNavigation.js.map +1 -1
- package/dist/{app → lib}/components/context/ComponentsContext.js.map +1 -1
- package/dist/{app → lib}/components/context/DevPortalProvider.d.ts +0 -1
- package/dist/{app → lib}/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/components/context/PluginSystem.js.map +1 -0
- package/dist/{app → lib}/components/context/ThemeContext.js.map +1 -1
- package/dist/{app → lib}/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/{app → lib}/components/navigation/SideNavigation.js.map +1 -1
- package/dist/{app → lib}/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/{app → lib}/components/navigation/SideNavigationItem.js.map +1 -1
- package/dist/{app → lib}/components/navigation/SideNavigationWrapper.d.ts +1 -2
- package/dist/{app → lib}/components/navigation/SideNavigationWrapper.js.map +1 -1
- package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.d.ts +0 -1
- package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js.map +1 -1
- package/dist/{app → lib}/components/navigation/util.js.map +1 -1
- package/dist/lib/components.d.ts +3 -0
- package/dist/lib/components.js +4 -0
- package/dist/lib/components.js.map +1 -0
- package/dist/{app → lib}/core/DevPortalContext.js.map +1 -1
- package/dist/{app → lib}/core/helmet.js.map +1 -1
- package/dist/lib/core/icons.js.map +1 -0
- package/dist/{app → lib}/core/plugins.js.map +1 -1
- package/dist/lib/core/router.js.map +1 -0
- package/dist/lib/core/types/combine.js.map +1 -0
- package/dist/{app → lib}/oas/graphql/index.js.map +1 -1
- package/dist/{app → lib}/oas/graphql/server.js.map +1 -1
- package/dist/{app → lib}/oas/parser/dereference/index.js.map +1 -1
- package/dist/{app → lib}/oas/parser/dereference/resolveRef.js.map +1 -1
- package/dist/{app → lib}/oas/parser/index.js.map +1 -1
- package/dist/{app → lib}/oas/parser/upgrade/index.js.map +1 -1
- package/dist/{app → lib}/plugins/api-key/SettingsApiKeys.js.map +1 -1
- package/dist/{app → lib}/plugins/api-key/index.js.map +1 -1
- package/dist/{app → lib}/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/{app → lib}/plugins/markdown/Toc.js.map +1 -1
- package/dist/{app → lib}/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/{app → lib}/plugins/markdown/index.d.ts +0 -1
- package/dist/{app → lib}/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +12 -0
- package/dist/{app → lib}/plugins/openapi/ColorizedParam.js +10 -5
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -0
- package/dist/lib/plugins/openapi/MakeRequest.js +23 -0
- package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/MethodBadge.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +4 -0
- package/dist/{app → lib}/plugins/openapi/OperationList.js +16 -16
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/OperationListItem.d.ts +2 -2
- package/dist/{app → lib}/plugins/openapi/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +19 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/Select.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +94 -0
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -0
- package/dist/lib/plugins/openapi/SidecarBox.d.ts +8 -0
- package/dist/lib/plugins/openapi/SidecarBox.js +6 -0
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +19 -0
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +16 -0
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +58 -0
- package/dist/lib/plugins/openapi/graphql/gql.js +22 -0
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +282 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +526 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/index.d.ts +2 -0
- package/dist/lib/plugins/openapi/graphql/index.js +3 -0
- package/dist/lib/plugins/openapi/graphql/index.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/index.d.ts +0 -1
- package/dist/{app → lib}/plugins/openapi/index.js +1 -1
- package/dist/{app → lib}/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +98 -0
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/util/urql.d.ts +0 -1
- package/dist/{app → lib}/plugins/openapi/util/urql.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +1 -0
- package/dist/lib/plugins/openapi/worker/shared-worker.js +6 -0
- package/dist/lib/plugins/openapi/worker/shared-worker.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/worker/worker.js.map +1 -1
- package/dist/{app → lib}/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins.d.ts +4 -0
- package/dist/lib/plugins.js +6 -0
- package/dist/lib/plugins.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +11 -0
- package/dist/lib/ui/Button.js +34 -0
- package/dist/lib/ui/Button.js.map +1 -0
- package/dist/{app → lib}/ui/Callout.js.map +1 -1
- package/dist/{app → lib}/ui/Card.js +1 -1
- package/dist/{app → lib}/ui/Card.js.map +1 -1
- package/dist/{app → lib}/ui/Note.js.map +1 -1
- package/dist/lib/ui/Tabs.d.ts +7 -0
- package/dist/lib/ui/Tabs.js +13 -0
- package/dist/lib/ui/Tabs.js.map +1 -0
- package/dist/{app → lib}/util/MdxComponents.d.ts +2 -2
- package/dist/{app → lib}/util/MdxComponents.js.map +1 -1
- package/dist/{app → lib}/util/cn.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +15 -0
- package/dist/lib/util/createVariantComponent.js +12 -0
- package/dist/lib/util/createVariantComponent.js.map +1 -0
- package/dist/lib/util/createWaitForNotify.d.ts +1 -0
- package/dist/{app → lib}/util/createWaitForNotify.js.map +1 -1
- package/dist/{app → lib}/util/groupBy.js.map +1 -1
- package/dist/{app → lib}/util/joinPath.js.map +1 -1
- package/dist/{app → lib}/util/pastellize.js.map +1 -1
- package/dist/{app → lib}/util/slugify.d.ts +0 -1
- package/dist/lib/util/slugify.js.map +1 -0
- package/dist/{app → lib}/util/traverseNavigation.js.map +1 -1
- package/dist/{app → lib}/util/useScrollToAnchor.js.map +1 -1
- package/dist/{app → lib}/util/useScrollToTop.js.map +1 -1
- package/dist/ts.d.ts +6 -0
- package/dist/ts.js +62 -0
- package/dist/ts.js.map +1 -0
- package/dist/vite/build.js +2 -8
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +8 -2
- package/dist/vite/config.js +103 -23
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.d.ts +1 -0
- package/dist/vite/config.test.js +10 -0
- package/dist/vite/config.test.js.map +1 -0
- package/dist/vite/dev-server.js +8 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.d.ts +1 -1
- package/dist/vite/html.js +2 -3
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +4 -0
- package/dist/vite/plugin-api.js +47 -0
- package/dist/vite/plugin-api.js.map +1 -0
- package/dist/vite/plugin-auth.d.ts +4 -0
- package/dist/vite/plugin-auth.js +28 -0
- package/dist/vite/plugin-auth.js.map +1 -0
- package/dist/vite/plugin-component.d.ts +3 -0
- package/dist/vite/plugin-component.js +22 -0
- package/dist/vite/plugin-component.js.map +1 -0
- package/dist/vite/plugin-config.d.ts +6 -0
- package/dist/vite/plugin-config.js +24 -0
- package/dist/vite/plugin-config.js.map +1 -0
- package/dist/vite/plugin-docs.d.ts +4 -0
- package/dist/vite/plugin-docs.js +43 -0
- package/dist/vite/plugin-docs.js.map +1 -0
- package/dist/vite/plugin-docs.test.d.ts +1 -0
- package/dist/vite/plugin-docs.test.js +30 -0
- package/dist/vite/plugin-docs.test.js.map +1 -0
- package/dist/vite/plugin-html.d.ts +3 -0
- package/dist/vite/plugin-html.js +47 -0
- package/dist/vite/plugin-html.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +8 -0
- package/dist/vite/plugin-mdx.js +61 -0
- package/dist/vite/plugin-mdx.js.map +1 -0
- package/dist/vite/plugin-metadata.d.ts +6 -0
- package/dist/vite/plugin-metadata.js +24 -0
- package/dist/vite/plugin-metadata.js.map +1 -0
- package/dist/vite/plugin.d.ts +2 -6
- package/dist/vite/plugin.js +14 -104
- package/dist/vite/plugin.js.map +1 -1
- package/lib/DevPortal-DqcnbwLT.js +12967 -0
- package/lib/assets/index-BPdJm2ty.js +4764 -0
- package/lib/assets/worker-CnXQsqxH.js +14511 -0
- package/lib/prism-bash.min-DadFsM4Z.js +6 -0
- package/lib/prism-java.min-d5iT_mOd.js +6 -0
- package/lib/prism-json.min-B1GJqK1k.js +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js +61 -0
- package/lib/prism-php.min-o7FpoMP_.js +10 -0
- package/lib/prism-ruby.min-C7LwcKyz.js +9 -0
- package/lib/urql-B7mLfVog.js +1611 -0
- package/lib/zudoku.auth.js +31 -0
- package/lib/zudoku.components.js +6 -0
- package/lib/zudoku.openapi-worker.js +143 -0
- package/lib/zudoku.plugins.js +15650 -0
- package/package.json +53 -35
- package/src/app/App.tsx +33 -0
- package/src/app/main.tsx +6 -19
- package/src/cli/build/handler.ts +14 -0
- package/src/cli/cli.ts +77 -0
- package/src/cli/cmds/build.ts +24 -0
- package/src/cli/cmds/dev.ts +29 -0
- package/src/cli/common/analytics/lib.ts +89 -0
- package/src/cli/common/constants.ts +10 -0
- package/src/cli/common/logger.ts +5 -0
- package/src/cli/common/machine-id/lib.ts +85 -0
- package/src/cli/common/outdated.ts +102 -0
- package/src/cli/common/output.ts +86 -0
- package/src/cli/common/utils/box.license.txt +202 -0
- package/src/cli/common/utils/box.ts +116 -0
- package/src/cli/common/utils/ports.ts +21 -0
- package/src/cli/common/validators/lib.ts +43 -0
- package/src/cli/common/xdg/lib.ts +36 -0
- package/src/cli/dev/handler.ts +42 -0
- package/src/config/config.ts +56 -0
- package/src/index.ts +8 -0
- package/src/{app → lib}/DevPortal.tsx +7 -29
- package/src/lib/Router.tsx +28 -0
- package/src/lib/auth.ts +1 -0
- package/src/{app → lib}/authentication/clerk.ts +1 -3
- package/src/lib/components/Dialog.tsx +119 -0
- package/src/lib/components/Input.tsx +24 -0
- package/src/{app → lib}/components/SyntaxHighlight.tsx +2 -0
- package/src/lib/components.ts +3 -0
- package/src/{app → lib}/plugins/openapi/ColorizedParam.tsx +18 -9
- package/src/{app → lib}/plugins/openapi/MakeRequest.tsx +19 -0
- package/src/{app → lib}/plugins/openapi/OperationList.tsx +20 -22
- package/src/{app → lib}/plugins/openapi/OperationListItem.tsx +3 -3
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +51 -0
- package/src/{app → lib}/plugins/openapi/ResponsesSidecarBox.tsx +1 -1
- package/src/{app → lib}/plugins/openapi/Sidecar.tsx +81 -20
- package/src/lib/plugins/openapi/SidecarBox.tsx +36 -0
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +111 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +70 -0
- package/src/lib/plugins/openapi/graphql/graphql.ts +795 -0
- package/src/lib/plugins/openapi/graphql/index.ts +2 -0
- package/src/{app → lib}/plugins/openapi/index.tsx +6 -2
- package/src/lib/plugins/openapi/playground/Playground.tsx +309 -0
- package/src/lib/plugins/openapi/queries.graphql +6 -0
- package/src/lib/plugins/openapi/worker/shared-worker.ts +5 -0
- package/src/lib/plugins.ts +5 -0
- package/src/lib/ui/Button.tsx +56 -0
- package/src/{app → lib}/ui/Card.tsx +1 -1
- package/src/lib/ui/Tabs.tsx +52 -0
- package/src/lib/util/createVariantComponent.tsx +30 -0
- package/src/ts.ts +94 -0
- package/src/types.d.ts +24 -0
- package/src/vite/build.ts +33 -0
- package/src/vite/config.test.ts +10 -0
- package/src/vite/config.ts +183 -0
- package/src/vite/dev-server.ts +64 -0
- package/src/vite/html.ts +37 -0
- package/src/vite/plugin-api.ts +57 -0
- package/src/vite/plugin-auth.ts +32 -0
- package/src/vite/plugin-component.ts +26 -0
- package/src/vite/plugin-config.ts +31 -0
- package/src/vite/plugin-docs.test.ts +32 -0
- package/src/vite/plugin-docs.ts +52 -0
- package/src/vite/plugin-html.ts +50 -0
- package/src/vite/plugin-mdx.ts +74 -0
- package/src/vite/plugin-metadata.ts +30 -0
- package/src/vite/plugin.ts +23 -0
- package/dist/app/DevPortal.js.map +0 -1
- package/dist/app/app.js +0 -69
- package/dist/app/app.js.map +0 -1
- package/dist/app/authentication/authentication.js.map +0 -1
- package/dist/app/authentication/clerk.js.map +0 -1
- package/dist/app/authentication/openid.js.map +0 -1
- package/dist/app/components/SyntaxHighlight.js.map +0 -1
- package/dist/app/components/context/PluginSystem.js.map +0 -1
- package/dist/app/config.d.ts +0 -3
- package/dist/app/config.js +0 -9
- package/dist/app/config.js.map +0 -1
- package/dist/app/core/icons.js.map +0 -1
- package/dist/app/core/router.js.map +0 -1
- package/dist/app/core/types/combine.js.map +0 -1
- package/dist/app/markdowns.d.ts +0 -3
- package/dist/app/markdowns.js +0 -5
- package/dist/app/markdowns.js.map +0 -1
- package/dist/app/plugins/openapi/ColorizedParam.d.ts +0 -8
- package/dist/app/plugins/openapi/ColorizedParam.js.map +0 -1
- package/dist/app/plugins/openapi/MakeRequest.js +0 -11
- package/dist/app/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/app/plugins/openapi/OperationList.d.ts +0 -47
- package/dist/app/plugins/openapi/OperationList.js.map +0 -1
- package/dist/app/plugins/openapi/OperationListItem.js.map +0 -1
- package/dist/app/plugins/openapi/RequestBodySidecarBox.js +0 -19
- package/dist/app/plugins/openapi/RequestBodySidecarBox.js.map +0 -1
- package/dist/app/plugins/openapi/ResponsesSidecarBox.js.map +0 -1
- package/dist/app/plugins/openapi/Sidecar.js +0 -39
- package/dist/app/plugins/openapi/Sidecar.js.map +0 -1
- package/dist/app/plugins/openapi/SidecarBox.d.ts +0 -10
- package/dist/app/plugins/openapi/SidecarBox.js +0 -8
- package/dist/app/plugins/openapi/SidecarBox.js.map +0 -1
- package/dist/app/plugins/openapi/graphql/index.d.ts +0 -836
- package/dist/app/plugins/openapi/graphql/index.js +0 -4
- package/dist/app/plugins/openapi/graphql/index.js.map +0 -1
- package/dist/app/plugins/openapi/util/getCode.d.ts +0 -2
- package/dist/app/plugins/openapi/util/getCode.js +0 -54
- package/dist/app/plugins/openapi/util/getCode.js.map +0 -1
- package/dist/app/util/createWaitForNotify.d.ts +0 -1
- package/dist/app/util/slugify.js.map +0 -1
- package/dist/auth.d.ts +0 -2
- package/dist/auth.js +0 -3
- package/dist/auth.js.map +0 -1
- package/dist/plugins.d.ts +0 -4
- package/dist/plugins.js +0 -6
- package/dist/plugins.js.map +0 -1
- package/src/app/app.tsx +0 -85
- package/src/app/config.ts +0 -20
- package/src/app/markdowns.ts +0 -7
- package/src/app/plugins/openapi/RequestBodySidecarBox.tsx +0 -48
- package/src/app/plugins/openapi/SidecarBox.tsx +0 -35
- package/src/app/plugins/openapi/graphql/env.d.ts +0 -48
- package/src/app/plugins/openapi/graphql/index.ts +0 -13
- package/src/app/plugins/openapi/util/getCode.tsx +0 -69
- /package/dist/app/{app.d.ts → App.d.ts} +0 -0
- /package/dist/{app → lib}/Heading.d.ts +0 -0
- /package/dist/{app → lib}/Heading.js +0 -0
- /package/dist/{app → lib}/authentication/authentication.d.ts +0 -0
- /package/dist/{app → lib}/authentication/authentication.js +0 -0
- /package/dist/{app → lib}/authentication/openid.d.ts +0 -0
- /package/dist/{app → lib}/components/AnchorLink.d.ts +0 -0
- /package/dist/{app → lib}/components/AnchorLink.js +0 -0
- /package/dist/{app → lib}/components/CategoryHeading.d.ts +0 -0
- /package/dist/{app → lib}/components/CategoryHeading.js +0 -0
- /package/dist/{app → lib}/components/DynamicIcon.d.ts +0 -0
- /package/dist/{app → lib}/components/DynamicIcon.js +0 -0
- /package/dist/{app → lib}/components/Header.js +0 -0
- /package/dist/{app → lib}/components/Layout.d.ts +0 -0
- /package/dist/{app → lib}/components/Layout.js +0 -0
- /package/dist/{app → lib}/components/Markdown.d.ts +0 -0
- /package/dist/{app → lib}/components/Markdown.js +0 -0
- /package/dist/{app → lib}/components/SyntaxHighlight.d.ts +0 -0
- /package/dist/{app → lib}/components/TopNavigation.d.ts +0 -0
- /package/dist/{app → lib}/components/TopNavigation.js +0 -0
- /package/dist/{app → lib}/components/context/ComponentsContext.d.ts +0 -0
- /package/dist/{app → lib}/components/context/ComponentsContext.js +0 -0
- /package/dist/{app → lib}/components/context/DevPortalProvider.js +0 -0
- /package/dist/{app → lib}/components/context/PluginSystem.d.ts +0 -0
- /package/dist/{app → lib}/components/context/PluginSystem.js +0 -0
- /package/dist/{app → lib}/components/context/ThemeContext.d.ts +0 -0
- /package/dist/{app → lib}/components/context/ThemeContext.js +0 -0
- /package/dist/{app → lib}/components/context/ViewportAnchorContext.d.ts +0 -0
- /package/dist/{app → lib}/components/context/ViewportAnchorContext.js +0 -0
- /package/dist/{app → lib}/components/navigation/SideNavigation.d.ts +0 -0
- /package/dist/{app → lib}/components/navigation/SideNavigation.js +0 -0
- /package/dist/{app → lib}/components/navigation/SideNavigationCategory.d.ts +0 -0
- /package/dist/{app → lib}/components/navigation/SideNavigationCategory.js +0 -0
- /package/dist/{app → lib}/components/navigation/SideNavigationItem.d.ts +0 -0
- /package/dist/{app → lib}/components/navigation/SideNavigationItem.js +0 -0
- /package/dist/{app → lib}/components/navigation/SideNavigationWrapper.js +0 -0
- /package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js +0 -0
- /package/dist/{app → lib}/components/navigation/util.d.ts +0 -0
- /package/dist/{app → lib}/components/navigation/util.js +0 -0
- /package/dist/{app → lib}/core/DevPortalContext.d.ts +0 -0
- /package/dist/{app → lib}/core/DevPortalContext.js +0 -0
- /package/dist/{app → lib}/core/helmet.d.ts +0 -0
- /package/dist/{app → lib}/core/helmet.js +0 -0
- /package/dist/{app → lib}/core/icons.d.ts +0 -0
- /package/dist/{app → lib}/core/icons.js +0 -0
- /package/dist/{app → lib}/core/plugins.d.ts +0 -0
- /package/dist/{app → lib}/core/plugins.js +0 -0
- /package/dist/{app → lib}/core/router.d.ts +0 -0
- /package/dist/{app → lib}/core/router.js +0 -0
- /package/dist/{app → lib}/core/types/combine.d.ts +0 -0
- /package/dist/{app → lib}/core/types/combine.js +0 -0
- /package/dist/{app → lib}/oas/graphql/index.d.ts +0 -0
- /package/dist/{app → lib}/oas/graphql/index.js +0 -0
- /package/dist/{app → lib}/oas/graphql/server.d.ts +0 -0
- /package/dist/{app → lib}/oas/graphql/server.js +0 -0
- /package/dist/{app → lib}/oas/parser/dereference/index.d.ts +0 -0
- /package/dist/{app → lib}/oas/parser/dereference/index.js +0 -0
- /package/dist/{app → lib}/oas/parser/dereference/resolveRef.d.ts +0 -0
- /package/dist/{app → lib}/oas/parser/dereference/resolveRef.js +0 -0
- /package/dist/{app → lib}/oas/parser/index.d.ts +0 -0
- /package/dist/{app → lib}/oas/parser/index.js +0 -0
- /package/dist/{app → lib}/oas/parser/upgrade/index.d.ts +0 -0
- /package/dist/{app → lib}/oas/parser/upgrade/index.js +0 -0
- /package/dist/{app → lib}/plugins/api-key/SettingsApiKeys.d.ts +0 -0
- /package/dist/{app → lib}/plugins/api-key/SettingsApiKeys.js +0 -0
- /package/dist/{app → lib}/plugins/api-key/index.d.ts +0 -0
- /package/dist/{app → lib}/plugins/api-key/index.js +0 -0
- /package/dist/{app → lib}/plugins/markdown/MdxPage.d.ts +0 -0
- /package/dist/{app → lib}/plugins/markdown/MdxPage.js +0 -0
- /package/dist/{app → lib}/plugins/markdown/Toc.d.ts +0 -0
- /package/dist/{app → lib}/plugins/markdown/Toc.js +0 -0
- /package/dist/{app → lib}/plugins/markdown/generateRoutes.d.ts +0 -0
- /package/dist/{app → lib}/plugins/markdown/generateRoutes.js +0 -0
- /package/dist/{app → lib}/plugins/markdown/index.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/MakeRequest.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/MethodBadge.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/MethodBadge.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/ParameterList.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/ParameterList.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/ParameterListItem.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/ParameterListItem.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/Select.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/Select.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/Sidecar.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/util/urql.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/worker/worker.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/worker/worker.js +0 -0
- /package/dist/{app → lib}/plugins/redirect/index.d.ts +0 -0
- /package/dist/{app → lib}/plugins/redirect/index.js +0 -0
- /package/dist/{app → lib}/ui/Callout.d.ts +0 -0
- /package/dist/{app → lib}/ui/Callout.js +0 -0
- /package/dist/{app → lib}/ui/Card.d.ts +0 -0
- /package/dist/{app → lib}/ui/Note.d.ts +0 -0
- /package/dist/{app → lib}/ui/Note.js +0 -0
- /package/dist/{app → lib}/util/MdxComponents.js +0 -0
- /package/dist/{app → lib}/util/cn.d.ts +0 -0
- /package/dist/{app → lib}/util/cn.js +0 -0
- /package/dist/{app → lib}/util/createWaitForNotify.js +0 -0
- /package/dist/{app → lib}/util/groupBy.d.ts +0 -0
- /package/dist/{app → lib}/util/groupBy.js +0 -0
- /package/dist/{app → lib}/util/joinPath.d.ts +0 -0
- /package/dist/{app → lib}/util/joinPath.js +0 -0
- /package/dist/{app → lib}/util/pastellize.d.ts +0 -0
- /package/dist/{app → lib}/util/pastellize.js +0 -0
- /package/dist/{app → lib}/util/slugify.js +0 -0
- /package/dist/{app → lib}/util/traverseNavigation.d.ts +0 -0
- /package/dist/{app → lib}/util/traverseNavigation.js +0 -0
- /package/dist/{app → lib}/util/useScrollToAnchor.d.ts +0 -0
- /package/dist/{app → lib}/util/useScrollToAnchor.js +0 -0
- /package/dist/{app → lib}/util/useScrollToTop.d.ts +0 -0
- /package/dist/{app → lib}/util/useScrollToTop.js +0 -0
- /package/src/{app → lib}/Heading.tsx +0 -0
- /package/src/{app → lib}/authentication/authentication.ts +0 -0
- /package/src/{app → lib}/authentication/openid.ts +0 -0
- /package/src/{app → lib}/components/AnchorLink.tsx +0 -0
- /package/src/{app → lib}/components/CategoryHeading.tsx +0 -0
- /package/src/{app → lib}/components/DynamicIcon.tsx +0 -0
- /package/src/{app → lib}/components/Header.tsx +0 -0
- /package/src/{app → lib}/components/Layout.tsx +0 -0
- /package/src/{app → lib}/components/Markdown.tsx +0 -0
- /package/src/{app → lib}/components/TopNavigation.tsx +0 -0
- /package/src/{app → lib}/components/context/ComponentsContext.tsx +0 -0
- /package/src/{app → lib}/components/context/DevPortalProvider.ts +0 -0
- /package/src/{app → lib}/components/context/PluginSystem.ts +0 -0
- /package/src/{app → lib}/components/context/ThemeContext.tsx +0 -0
- /package/src/{app → lib}/components/context/ViewportAnchorContext.tsx +0 -0
- /package/src/{app → lib}/components/navigation/SideNavigation.tsx +0 -0
- /package/src/{app → lib}/components/navigation/SideNavigationCategory.tsx +0 -0
- /package/src/{app → lib}/components/navigation/SideNavigationItem.tsx +0 -0
- /package/src/{app → lib}/components/navigation/SideNavigationWrapper.tsx +0 -0
- /package/src/{app → lib}/components/navigation/useNavigationCollapsibleState.ts +0 -0
- /package/src/{app → lib}/components/navigation/util.ts +0 -0
- /package/src/{app → lib}/core/DevPortalContext.ts +0 -0
- /package/src/{app → lib}/core/helmet.ts +0 -0
- /package/src/{app → lib}/core/icons.tsx +0 -0
- /package/src/{app → lib}/core/plugins.ts +0 -0
- /package/src/{app → lib}/core/router.tsx +0 -0
- /package/src/{app → lib}/core/types/combine.ts +0 -0
- /package/src/{app → lib}/oas/graphql/index.ts +0 -0
- /package/src/{app → lib}/oas/graphql/server.ts +0 -0
- /package/src/{app → lib}/oas/parser/dereference/index.ts +0 -0
- /package/src/{app → lib}/oas/parser/dereference/resolveRef.ts +0 -0
- /package/src/{app → lib}/oas/parser/index.ts +0 -0
- /package/src/{app → lib}/oas/parser/schemas/v3.0.json +0 -0
- /package/src/{app → lib}/oas/parser/schemas/v3.1.json +0 -0
- /package/src/{app → lib}/oas/parser/upgrade/index.ts +0 -0
- /package/src/{app → lib}/plugins/api-key/SettingsApiKeys.tsx +0 -0
- /package/src/{app → lib}/plugins/api-key/index.tsx +0 -0
- /package/src/{app → lib}/plugins/markdown/MdxPage.tsx +0 -0
- /package/src/{app → lib}/plugins/markdown/Toc.tsx +0 -0
- /package/src/{app → lib}/plugins/markdown/generateRoutes.tsx +0 -0
- /package/src/{app → lib}/plugins/markdown/index.tsx +0 -0
- /package/src/{app → lib}/plugins/openapi/MethodBadge.tsx +0 -0
- /package/src/{app → lib}/plugins/openapi/ParameterList.tsx +0 -0
- /package/src/{app → lib}/plugins/openapi/ParameterListItem.tsx +0 -0
- /package/src/{app → lib}/plugins/openapi/Select.tsx +0 -0
- /package/src/{app → lib}/plugins/openapi/util/generateSchemaExample.ts +0 -0
- /package/src/{app → lib}/plugins/openapi/util/urql.ts +0 -0
- /package/src/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.ts +0 -0
- /package/src/{app → lib}/plugins/openapi/worker/worker.ts +0 -0
- /package/src/{app → lib}/plugins/redirect/index.tsx +0 -0
- /package/src/{app → lib}/ui/Callout.tsx +0 -0
- /package/src/{app → lib}/ui/Note.tsx +0 -0
- /package/src/{app → lib}/util/MdxComponents.tsx +0 -0
- /package/src/{app → lib}/util/cn.ts +0 -0
- /package/src/{app → lib}/util/createWaitForNotify.ts +0 -0
- /package/src/{app → lib}/util/groupBy.ts +0 -0
- /package/src/{app → lib}/util/joinPath.tsx +0 -0
- /package/src/{app → lib}/util/pastellize.ts +0 -0
- /package/src/{app → lib}/util/slugify.ts +0 -0
- /package/src/{app → lib}/util/traverseNavigation.ts +0 -0
- /package/src/{app → lib}/util/useScrollToAnchor.ts +0 -0
- /package/src/{app → lib}/util/useScrollToTop.ts +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
|
|
4
|
+
import { Select } from "./Select.js";
|
|
5
|
+
import * as SidecarBox from "./SidecarBox.js";
|
|
6
|
+
import { generateSchemaExample } from "./util/generateSchemaExample.js";
|
|
7
|
+
// @todo should we handle multiple content types?
|
|
8
|
+
export const RequestBodySidecarBox = ({ content }) => {
|
|
9
|
+
const [selected, setSelected] = useState("example");
|
|
10
|
+
if (!content.length)
|
|
11
|
+
return null;
|
|
12
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { children: "lol" }), _jsxs(SidecarBox.Root, { children: [_jsxs(SidecarBox.Head, { className: "text-xs flex justify-between items-center", children: [_jsx("span", { className: "font-mono", children: "Request Body" }), _jsx(Select, { onChange: (e) => setSelected(e.target.value), options: [
|
|
13
|
+
{ value: "example", label: "Example" },
|
|
14
|
+
{ value: "schema", label: "Schema" },
|
|
15
|
+
] })] }), _jsx(SidecarBox.Body, { children: _jsx(SyntaxHighlight, { language: "json", noBackground: true, copyable: false, className: "text-xs", code: JSON.stringify(selected === "example"
|
|
16
|
+
? generateSchemaExample(content[0].schema)
|
|
17
|
+
: content[0].schema, null, 2) }) })] })] }));
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=RequestBodySidecarBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestBodySidecarBox.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/RequestBodySidecarBox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC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|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
|
|
4
4
|
import { cn } from "../../util/cn.js";
|
|
5
|
-
import
|
|
5
|
+
import * as SidecarBox from "./SidecarBox.js";
|
|
6
6
|
import { generateSchemaExample } from "./util/generateSchemaExample.js";
|
|
7
7
|
export const ResponsesSidecarBox = ({ responses, }) => {
|
|
8
8
|
const [tabIndex, setTabIndex] = useState(0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsesSidecarBox.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/ResponsesSidecarBox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAGxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,SAAS,GAGV,EAAE,EAAE;IACH,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE5C,MAAM,SAAS,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,MAAkC,CAAC;IAE3E,OAAO,CACL,MAAC,UAAU,CAAC,IAAI,eACd,MAAC,UAAU,CAAC,IAAI,IAAC,SAAS,EAAC,+BAA+B,aACxD,eAAM,SAAS,EAAC,WAAW,0BAAiB,EAC5C,cAAK,SAAS,EAAC,YAAY,YACxB,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAClC,cAEE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EACjC,SAAS,EAAE,EAAE,CACX,2GAA2G,EAC3G,QAAQ,KAAK,KAAK;gCAChB,CAAC,CAAC,+CAA+C;gCACjD,CAAC,CAAC,mCAAmC,CACxC,YAEA,QAAQ,CAAC,UAAU,IATf,QAAQ,CAAC,UAAU,CAUpB,CACP,CAAC,GACE,IACU,EAClB,MAAC,UAAU,CAAC,IAAI,eACb,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,eAAe,IACd,QAAQ,EAAC,MAAM,EACf,YAAY,QACZ,QAAQ,EAAE,KAAK,EACf,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,GAC5D,CACH,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAC,gDAAgD,+BAEzD,CACR,EACD,aAAI,SAAS,EAAC,oBAAoB,GAAG,EACrC,cAAK,SAAS,EAAC,SAAS,YAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,WAAW,GAAO,IAChD,IACF,CACnB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../src/
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/Select.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,OAAO,GAQR,EAAE,EAAE,CAAC,CACJ,eAAK,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,aACnC,iBACE,SAAS,EAAE,EAAE,CACX,4EAA4E,EAC5E,iGAAiG,CAClG,EACD,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,cAAK,SAAS,EAAC,yFAAyF,YACtG,KAAC,kBAAkB,IAAC,IAAI,EAAE,EAAE,GAAI,GAC5B,IACF,CACP,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment, useMemo, useState } from "react";
|
|
3
|
+
import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
|
|
4
|
+
import { cn } from "../../util/cn.js";
|
|
5
|
+
import { ColorizedParam } from "./ColorizedParam.js";
|
|
6
|
+
import { MakeRequest } from "./MakeRequest.js";
|
|
7
|
+
import { MethodTextColorMap } from "./MethodBadge.js";
|
|
8
|
+
import { RequestBodySidecarBox } from "./RequestBodySidecarBox.js";
|
|
9
|
+
import { ResponsesSidecarBox } from "./ResponsesSidecarBox.js";
|
|
10
|
+
import { Select } from "./Select.js";
|
|
11
|
+
import * as SidecarBox from "./SidecarBox.js";
|
|
12
|
+
import { HTTPSnippet } from "@zudoku/httpsnippet";
|
|
13
|
+
import { generateSchemaExample } from "./util/generateSchemaExample.js";
|
|
14
|
+
const getConverted = (snippet, option) => {
|
|
15
|
+
let converted;
|
|
16
|
+
switch (option) {
|
|
17
|
+
case "shell":
|
|
18
|
+
converted = snippet.convert("shell", "curl");
|
|
19
|
+
break;
|
|
20
|
+
case "js":
|
|
21
|
+
converted = snippet.convert("javascript", "fetch");
|
|
22
|
+
break;
|
|
23
|
+
case "python":
|
|
24
|
+
converted = snippet.convert("python", "requests");
|
|
25
|
+
break;
|
|
26
|
+
case "java":
|
|
27
|
+
converted = snippet.convert("java", "okhttp");
|
|
28
|
+
break;
|
|
29
|
+
case "go":
|
|
30
|
+
converted = snippet.convert("go", "native");
|
|
31
|
+
break;
|
|
32
|
+
case "csharp":
|
|
33
|
+
converted = snippet.convert("csharp", "httpclient");
|
|
34
|
+
break;
|
|
35
|
+
case "kotlin":
|
|
36
|
+
converted = snippet.convert("kotlin", "okhttp");
|
|
37
|
+
break;
|
|
38
|
+
case "objc":
|
|
39
|
+
converted = snippet.convert("objc", "nsurlsession");
|
|
40
|
+
break;
|
|
41
|
+
case "php":
|
|
42
|
+
converted = snippet.convert("php", "http2");
|
|
43
|
+
break;
|
|
44
|
+
case "ruby":
|
|
45
|
+
converted = snippet.convert("ruby");
|
|
46
|
+
break;
|
|
47
|
+
case "swift":
|
|
48
|
+
converted = snippet.convert("swift");
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
converted = snippet.convert("shell");
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
return converted ? converted[0] : "";
|
|
55
|
+
};
|
|
56
|
+
export const Sidecar = ({ operation, }) => {
|
|
57
|
+
const methodTextColor = MethodTextColorMap[operation.method];
|
|
58
|
+
const [option, setOption] = useState("curl");
|
|
59
|
+
const requestBodyContent = operation.requestBody?.content;
|
|
60
|
+
const path = operation.path.split("/").map((part) => (_jsxs(Fragment, { children: [part.startsWith("{") && part.endsWith("}") ? (_jsx(ColorizedParam, { name: part.slice(1, -1), backgroundOpacity: "0",
|
|
61
|
+
// same as in `ParameterListItem`
|
|
62
|
+
slug: operation.slug + "-" + part.slice(1, -1).toLocaleLowerCase(), children: part })) : (part), "/", _jsx("wbr", {})] }, part)));
|
|
63
|
+
const code = useMemo(() => {
|
|
64
|
+
const example = requestBodyContent?.[0]?.schema
|
|
65
|
+
? generateSchemaExample(requestBodyContent[0].schema)
|
|
66
|
+
: undefined;
|
|
67
|
+
const snippet = new HTTPSnippet({
|
|
68
|
+
method: operation.method.toLocaleUpperCase(),
|
|
69
|
+
url: operation.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
70
|
+
headers: [{ name: "Authorization", value: "Bearer <token>" }],
|
|
71
|
+
postData: example
|
|
72
|
+
? {
|
|
73
|
+
text: JSON.stringify(example, null, 2),
|
|
74
|
+
mimeType: "application/json",
|
|
75
|
+
}
|
|
76
|
+
: {},
|
|
77
|
+
});
|
|
78
|
+
return getConverted(snippet, option) ?? "";
|
|
79
|
+
}, [option, operation.method, operation.path, requestBodyContent]);
|
|
80
|
+
return (_jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [_jsxs(SidecarBox.Root, { children: [_jsx(MakeRequest, { operation: operation }), _jsxs(SidecarBox.Head, { className: "flex justify-between items-center flex-nowrap p-2 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(Select, { className: "self-start", onChange: (e) => setOption(e.target.value), options: [
|
|
81
|
+
{ value: "shell", label: "cURL" },
|
|
82
|
+
{ value: "js", label: "Javascript" },
|
|
83
|
+
{ value: "python", label: "Python" },
|
|
84
|
+
{ value: "java", label: "Java" },
|
|
85
|
+
{ value: "go", label: "Go" },
|
|
86
|
+
{ value: "csharp", label: "C#" },
|
|
87
|
+
{ value: "kotlin", label: "Kotlin" },
|
|
88
|
+
{ value: "objc", label: "Objective C" },
|
|
89
|
+
{ value: "php", label: "PHP" },
|
|
90
|
+
{ value: "ruby", label: "Ruby" },
|
|
91
|
+
{ value: "swift", label: "Swift" },
|
|
92
|
+
] })] }), _jsx(SidecarBox.Body, { children: _jsx(SyntaxHighlight, { language: option, copyable: false, noBackground: true, className: "text-xs", code: code }) })] }), requestBodyContent && (_jsx(RequestBodySidecarBox, { content: requestBodyContent })), operation.responses.length > 0 && (_jsx(ResponsesSidecarBox, { responses: operation.responses }))] }));
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=Sidecar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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AAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;oCAC9B,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oCAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;iCACnC,GACD,IACc,EAClB,KAAC,UAAU,CAAC,IAAI,cACd,KAAC,eAAe,IACd,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,KAAK,EACf,YAAY,QACZ,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,IAAI,GACV,GACc,IACF,EAEjB,kBAAkB,IAAI,CACrB,KAAC,qBAAqB,IAAC,OAAO,EAAE,kBAAkB,GAAI,CACvD,EACA,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACjC,KAAC,mBAAmB,IAAC,SAAS,EAAE,SAAS,CAAC,SAAS,GAAI,CACxD,IACK,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
type BaseComponentProps<T = unknown> = PropsWithChildren<T & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const Root: ({ children, className }: BaseComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const Head: ({ children, className }: BaseComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Body: ({ children, className }: BaseComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../util/cn.js";
|
|
3
|
+
export const Root = ({ children, className }) => (_jsx("div", { className: cn("rounded-lg overflow-hidden border border-border dark:border-transparent", className), children: children }));
|
|
4
|
+
export const Head = ({ children, className }) => (_jsx("div", { className: cn("border-b border-b-border dark:border-b-zinc-600 bg-zinc-100 dark:bg-zinc-700 p-2", className), children: children }));
|
|
5
|
+
export const Body = ({ children, className }) => (_jsx("div", { className: cn("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", className), children: children }));
|
|
6
|
+
//# sourceMappingURL=SidecarBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidecarBox.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/SidecarBox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAMtC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAsB,EAAE,EAAE,CAAC,CACnE,cACE,SAAS,EAAE,EAAE,CACX,yEAAyE,EACzE,SAAS,CACV,YAEA,QAAQ,GACL,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAsB,EAAE,EAAE,CAAC,CACnE,cACE,SAAS,EAAE,EAAE,CACX,kFAAkF,EAClF,SAAS,CACV,YAEA,QAAQ,GACL,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAsB,EAAE,EAAE,CAAC,CACnE,cACE,SAAS,EAAE,EAAE,CAAC,+CAA+C,EAAE,SAAS,CAAC,YAExE,QAAQ,GACL,CACP,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from "@graphql-typed-document-node/core";
|
|
2
|
+
import type { Incremental } from "./graphql.js";
|
|
3
|
+
export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
|
|
4
|
+
" $fragmentName"?: infer TKey;
|
|
5
|
+
}] ? TKey extends string ? {
|
|
6
|
+
" $fragmentRefs"?: {
|
|
7
|
+
[key in TKey]: TType;
|
|
8
|
+
};
|
|
9
|
+
} : never : never : never;
|
|
10
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>): TType;
|
|
11
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined): TType | undefined;
|
|
12
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null): TType | null;
|
|
13
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined): TType | null | undefined;
|
|
14
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>): Array<TType>;
|
|
15
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): Array<TType> | null | undefined;
|
|
16
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
|
|
17
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
|
|
18
|
+
export declare function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(data: FT, _fragment: F): FragmentType<F>;
|
|
19
|
+
export declare function isFragmentReady<TQuery, TFrag>(queryNode: DocumentTypeDecoration<TQuery, any>, fragmentNode: TypedDocumentNode<TFrag>, data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined): data is FragmentType<typeof fragmentNode>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function useFragment(_documentNode, fragmentType) {
|
|
2
|
+
return fragmentType;
|
|
3
|
+
}
|
|
4
|
+
export function makeFragmentData(data, _fragment) {
|
|
5
|
+
return data;
|
|
6
|
+
}
|
|
7
|
+
export function isFragmentReady(queryNode, fragmentNode, data) {
|
|
8
|
+
const deferredFields = queryNode.__meta__?.deferredFields;
|
|
9
|
+
if (!deferredFields)
|
|
10
|
+
return true;
|
|
11
|
+
const fragDef = fragmentNode.definitions[0];
|
|
12
|
+
const fragName = fragDef?.name?.value;
|
|
13
|
+
const fields = (fragName && deferredFields[fragName]) || [];
|
|
14
|
+
return fields.length > 0 && fields.every((field) => data && field in data);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=fragment-masking.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragment-masking.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/fragment-masking.ts"],"names":[],"mappings":"AAqEA,MAAM,UAAU,WAAW,CACzB,aAAiD,EACjD,YAKa;IAEb,OAAO,YAAmB,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAG9B,IAAQ,EAAE,SAAY;IACtB,OAAO,IAAuB,CAAC;AACjC,CAAC;AACD,MAAM,UAAU,eAAe,CAC7B,SAA8C,EAC9C,YAAsC,EACtC,IAGa;IAEb,MAAM,cAAc,GAClB,SAGD,CAAC,QAAQ,EAAE,cAAc,CAAC;IAE3B,IAAI,CAAC,cAAc;QAAE,OAAO,IAAI,CAAC;IAEjC,MAAM,OAAO,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAE7B,CAAC;IACd,MAAM,QAAQ,GAAG,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC;IAEtC,MAAM,MAAM,GAAG,CAAC,QAAQ,IAAI,cAAc,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;IAC5D,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as types from "./graphql.js";
|
|
2
|
+
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
|
3
|
+
/**
|
|
4
|
+
* Map of all GraphQL operations in the project.
|
|
5
|
+
*
|
|
6
|
+
* This map has several performance disadvantages:
|
|
7
|
+
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
8
|
+
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
9
|
+
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
10
|
+
*
|
|
11
|
+
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
12
|
+
*/
|
|
13
|
+
declare const documents: {
|
|
14
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": DocumentNode<types.GetServerQueryQuery, types.Exact<{
|
|
15
|
+
input: types.Scalars["JSON"]["input"];
|
|
16
|
+
type: types.SchemaType;
|
|
17
|
+
}>>;
|
|
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 }\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>;
|
|
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<{
|
|
20
|
+
input: types.Scalars["JSON"]["input"];
|
|
21
|
+
type: types.SchemaType;
|
|
22
|
+
}>>;
|
|
23
|
+
"\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 method\n summary\n operationId\n path\n }\n }\n }\n }\n": DocumentNode<types.GetCategoriesQuery, types.Exact<{
|
|
24
|
+
input: types.Scalars["JSON"]["input"];
|
|
25
|
+
type: types.SchemaType;
|
|
26
|
+
}>>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* The query argument is unknown!
|
|
38
|
+
* Please regenerate the types.
|
|
39
|
+
*/
|
|
40
|
+
export declare function graphql(source: string): unknown;
|
|
41
|
+
/**
|
|
42
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
43
|
+
*/
|
|
44
|
+
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"];
|
|
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 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 }\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"): (typeof documents)["\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 }\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"];
|
|
49
|
+
/**
|
|
50
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
51
|
+
*/
|
|
52
|
+
export declare function graphql(source: "\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"): (typeof documents)["\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"];
|
|
53
|
+
/**
|
|
54
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
55
|
+
*/
|
|
56
|
+
export declare function graphql(source: "\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 method\n summary\n operationId\n path\n }\n }\n }\n }\n"): (typeof documents)["\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 method\n summary\n operationId\n path\n }\n }\n }\n }\n"];
|
|
57
|
+
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import * as types from "./graphql.js";
|
|
3
|
+
/**
|
|
4
|
+
* Map of all GraphQL operations in the project.
|
|
5
|
+
*
|
|
6
|
+
* This map has several performance disadvantages:
|
|
7
|
+
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
8
|
+
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
9
|
+
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
10
|
+
*
|
|
11
|
+
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
12
|
+
*/
|
|
13
|
+
const documents = {
|
|
14
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": types.GetServerQueryDocument,
|
|
15
|
+
"\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 }\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,
|
|
16
|
+
"\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,
|
|
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 method\n summary\n operationId\n path\n }\n }\n }\n }\n": types.GetCategoriesDocument,
|
|
18
|
+
};
|
|
19
|
+
export function graphql(source) {
|
|
20
|
+
return documents[source] ?? {};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=gql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/gql.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,kIAAkI,EAChI,KAAK,CAAC,sBAAsB;IAC9B,wmBAAwmB,EACtmB,KAAK,CAAC,6BAA6B;IACrC,4TAA4T,EAC1T,KAAK,CAAC,qBAAqB;IAC7B,kUAAkU,EAChU,KAAK,CAAC,qBAAqB;CAC9B,CAAC;AAyCF,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
|
2
|
+
export type Maybe<T> = T | null;
|
|
3
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type MakeEmpty<T extends {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}, K extends keyof T> = {
|
|
18
|
+
[_ in K]?: never;
|
|
19
|
+
};
|
|
20
|
+
export type Incremental<T> = T | {
|
|
21
|
+
[P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
|
|
22
|
+
};
|
|
23
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
24
|
+
export type Scalars = {
|
|
25
|
+
ID: {
|
|
26
|
+
input: string;
|
|
27
|
+
output: string;
|
|
28
|
+
};
|
|
29
|
+
String: {
|
|
30
|
+
input: string;
|
|
31
|
+
output: string;
|
|
32
|
+
};
|
|
33
|
+
Boolean: {
|
|
34
|
+
input: boolean;
|
|
35
|
+
output: boolean;
|
|
36
|
+
};
|
|
37
|
+
Int: {
|
|
38
|
+
input: number;
|
|
39
|
+
output: number;
|
|
40
|
+
};
|
|
41
|
+
Float: {
|
|
42
|
+
input: number;
|
|
43
|
+
output: number;
|
|
44
|
+
};
|
|
45
|
+
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
46
|
+
JSON: {
|
|
47
|
+
input: any;
|
|
48
|
+
output: any;
|
|
49
|
+
};
|
|
50
|
+
/** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
51
|
+
JSONObject: {
|
|
52
|
+
input: any;
|
|
53
|
+
output: any;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type EncodingItem = {
|
|
57
|
+
__typename?: "EncodingItem";
|
|
58
|
+
allowReserved?: Maybe<Scalars["Boolean"]["output"]>;
|
|
59
|
+
contentType?: Maybe<Scalars["String"]["output"]>;
|
|
60
|
+
explode?: Maybe<Scalars["Boolean"]["output"]>;
|
|
61
|
+
headers?: Maybe<Scalars["JSONObject"]["output"]>;
|
|
62
|
+
name: Scalars["String"]["output"];
|
|
63
|
+
style?: Maybe<Scalars["String"]["output"]>;
|
|
64
|
+
};
|
|
65
|
+
export type ExampleItem = {
|
|
66
|
+
__typename?: "ExampleItem";
|
|
67
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
68
|
+
externalValue?: Maybe<Scalars["String"]["output"]>;
|
|
69
|
+
name: Scalars["String"]["output"];
|
|
70
|
+
summary?: Maybe<Scalars["String"]["output"]>;
|
|
71
|
+
value?: Maybe<Scalars["String"]["output"]>;
|
|
72
|
+
};
|
|
73
|
+
export type MediaTypeObject = {
|
|
74
|
+
__typename?: "MediaTypeObject";
|
|
75
|
+
encoding?: Maybe<Array<EncodingItem>>;
|
|
76
|
+
examples?: Maybe<Array<ExampleItem>>;
|
|
77
|
+
mediaType: Scalars["String"]["output"];
|
|
78
|
+
schema: Scalars["JSON"]["output"];
|
|
79
|
+
};
|
|
80
|
+
export type OperationItem = {
|
|
81
|
+
__typename?: "OperationItem";
|
|
82
|
+
contentTypes: Array<Scalars["String"]["output"]>;
|
|
83
|
+
deprecated?: Maybe<Scalars["Boolean"]["output"]>;
|
|
84
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
85
|
+
method: Scalars["String"]["output"];
|
|
86
|
+
operationId?: Maybe<Scalars["String"]["output"]>;
|
|
87
|
+
parameters?: Maybe<Array<ParameterItem>>;
|
|
88
|
+
path: Scalars["String"]["output"];
|
|
89
|
+
requestBody?: Maybe<RequestBodyObject>;
|
|
90
|
+
responses: Array<ResponseItem>;
|
|
91
|
+
slug: Scalars["String"]["output"];
|
|
92
|
+
summary?: Maybe<Scalars["String"]["output"]>;
|
|
93
|
+
tags?: Maybe<Array<TagItem>>;
|
|
94
|
+
};
|
|
95
|
+
export type ParameterIn = "cookie" | "header" | "path" | "query";
|
|
96
|
+
export type ParameterItem = {
|
|
97
|
+
__typename?: "ParameterItem";
|
|
98
|
+
allowEmptyValue?: Maybe<Scalars["Boolean"]["output"]>;
|
|
99
|
+
allowReserved?: Maybe<Scalars["Boolean"]["output"]>;
|
|
100
|
+
deprecated?: Maybe<Scalars["Boolean"]["output"]>;
|
|
101
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
102
|
+
examples?: Maybe<Array<ExampleItem>>;
|
|
103
|
+
explode?: Maybe<Scalars["Boolean"]["output"]>;
|
|
104
|
+
in: ParameterIn;
|
|
105
|
+
name: Scalars["String"]["output"];
|
|
106
|
+
required?: Maybe<Scalars["Boolean"]["output"]>;
|
|
107
|
+
schema?: Maybe<Scalars["JSON"]["output"]>;
|
|
108
|
+
style?: Maybe<Scalars["String"]["output"]>;
|
|
109
|
+
};
|
|
110
|
+
export type PathItem = {
|
|
111
|
+
__typename?: "PathItem";
|
|
112
|
+
methods: Array<Scalars["String"]["output"]>;
|
|
113
|
+
path: Scalars["String"]["output"];
|
|
114
|
+
};
|
|
115
|
+
export type Query = {
|
|
116
|
+
__typename?: "Query";
|
|
117
|
+
schema: Schema;
|
|
118
|
+
};
|
|
119
|
+
export type QuerySchemaArgs = {
|
|
120
|
+
input: Scalars["JSON"]["input"];
|
|
121
|
+
type: SchemaType;
|
|
122
|
+
};
|
|
123
|
+
export type RequestBodyObject = {
|
|
124
|
+
__typename?: "RequestBodyObject";
|
|
125
|
+
content?: Maybe<Array<MediaTypeObject>>;
|
|
126
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
127
|
+
required?: Maybe<Scalars["Boolean"]["output"]>;
|
|
128
|
+
};
|
|
129
|
+
export type ResponseItem = {
|
|
130
|
+
__typename?: "ResponseItem";
|
|
131
|
+
content?: Maybe<Array<MediaTypeObject>>;
|
|
132
|
+
description: Scalars["String"]["output"];
|
|
133
|
+
headers?: Maybe<Scalars["JSON"]["output"]>;
|
|
134
|
+
links?: Maybe<Scalars["JSON"]["output"]>;
|
|
135
|
+
statusCode: Scalars["String"]["output"];
|
|
136
|
+
};
|
|
137
|
+
export type Schema = {
|
|
138
|
+
__typename?: "Schema";
|
|
139
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
140
|
+
openapi: Scalars["String"]["output"];
|
|
141
|
+
operations: Array<OperationItem>;
|
|
142
|
+
paths: Array<PathItem>;
|
|
143
|
+
tags: Array<SchemaTag>;
|
|
144
|
+
title: Scalars["String"]["output"];
|
|
145
|
+
url: Scalars["String"]["output"];
|
|
146
|
+
version: Scalars["String"]["output"];
|
|
147
|
+
};
|
|
148
|
+
export type SchemaOperationsArgs = {
|
|
149
|
+
method?: InputMaybe<Scalars["String"]["input"]>;
|
|
150
|
+
operationId?: InputMaybe<Scalars["String"]["input"]>;
|
|
151
|
+
path?: InputMaybe<Scalars["String"]["input"]>;
|
|
152
|
+
tag?: InputMaybe<Scalars["String"]["input"]>;
|
|
153
|
+
};
|
|
154
|
+
export type SchemaTagsArgs = {
|
|
155
|
+
name?: InputMaybe<Scalars["String"]["input"]>;
|
|
156
|
+
};
|
|
157
|
+
export type SchemaTag = {
|
|
158
|
+
__typename?: "SchemaTag";
|
|
159
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
160
|
+
name?: Maybe<Scalars["String"]["output"]>;
|
|
161
|
+
operations: Array<OperationItem>;
|
|
162
|
+
};
|
|
163
|
+
export type SchemaType = "json" | "url" | "yaml";
|
|
164
|
+
export type TagItem = {
|
|
165
|
+
__typename?: "TagItem";
|
|
166
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
167
|
+
name: Scalars["String"]["output"];
|
|
168
|
+
};
|
|
169
|
+
export type GetServerQueryQueryVariables = Exact<{
|
|
170
|
+
input: Scalars["JSON"]["input"];
|
|
171
|
+
type: SchemaType;
|
|
172
|
+
}>;
|
|
173
|
+
export type GetServerQueryQuery = {
|
|
174
|
+
__typename?: "Query";
|
|
175
|
+
schema: {
|
|
176
|
+
__typename?: "Schema";
|
|
177
|
+
url: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
export type OperationsFragmentFragment = {
|
|
181
|
+
__typename?: "OperationItem";
|
|
182
|
+
slug: string;
|
|
183
|
+
summary?: string | null;
|
|
184
|
+
method: string;
|
|
185
|
+
description?: string | null;
|
|
186
|
+
operationId?: string | null;
|
|
187
|
+
contentTypes: Array<string>;
|
|
188
|
+
path: string;
|
|
189
|
+
parameters?: Array<{
|
|
190
|
+
__typename?: "ParameterItem";
|
|
191
|
+
name: string;
|
|
192
|
+
in: ParameterIn;
|
|
193
|
+
description?: string | null;
|
|
194
|
+
required?: boolean | null;
|
|
195
|
+
schema?: any | null;
|
|
196
|
+
style?: string | null;
|
|
197
|
+
}> | null;
|
|
198
|
+
requestBody?: {
|
|
199
|
+
__typename?: "RequestBodyObject";
|
|
200
|
+
description?: string | null;
|
|
201
|
+
required?: boolean | null;
|
|
202
|
+
content?: Array<{
|
|
203
|
+
__typename?: "MediaTypeObject";
|
|
204
|
+
mediaType: string;
|
|
205
|
+
schema: any;
|
|
206
|
+
encoding?: Array<{
|
|
207
|
+
__typename?: "EncodingItem";
|
|
208
|
+
name: string;
|
|
209
|
+
}> | null;
|
|
210
|
+
}> | null;
|
|
211
|
+
} | null;
|
|
212
|
+
responses: Array<{
|
|
213
|
+
__typename?: "ResponseItem";
|
|
214
|
+
statusCode: string;
|
|
215
|
+
links?: any | null;
|
|
216
|
+
description: string;
|
|
217
|
+
content?: Array<{
|
|
218
|
+
__typename?: "MediaTypeObject";
|
|
219
|
+
mediaType: string;
|
|
220
|
+
schema: any;
|
|
221
|
+
encoding?: Array<{
|
|
222
|
+
__typename?: "EncodingItem";
|
|
223
|
+
name: string;
|
|
224
|
+
}> | null;
|
|
225
|
+
}> | null;
|
|
226
|
+
}>;
|
|
227
|
+
} & {
|
|
228
|
+
" $fragmentName"?: "OperationsFragmentFragment";
|
|
229
|
+
};
|
|
230
|
+
export type AllOperationsQueryVariables = Exact<{
|
|
231
|
+
input: Scalars["JSON"]["input"];
|
|
232
|
+
type: SchemaType;
|
|
233
|
+
}>;
|
|
234
|
+
export type AllOperationsQuery = {
|
|
235
|
+
__typename?: "Query";
|
|
236
|
+
schema: {
|
|
237
|
+
__typename?: "Schema";
|
|
238
|
+
description?: string | null;
|
|
239
|
+
title: string;
|
|
240
|
+
url: string;
|
|
241
|
+
version: string;
|
|
242
|
+
tags: Array<{
|
|
243
|
+
__typename?: "SchemaTag";
|
|
244
|
+
name?: string | null;
|
|
245
|
+
description?: string | null;
|
|
246
|
+
operations: Array<{
|
|
247
|
+
__typename?: "OperationItem";
|
|
248
|
+
slug: string;
|
|
249
|
+
} & {
|
|
250
|
+
" $fragmentRefs"?: {
|
|
251
|
+
OperationsFragmentFragment: OperationsFragmentFragment;
|
|
252
|
+
};
|
|
253
|
+
}>;
|
|
254
|
+
}>;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
export type GetCategoriesQueryVariables = Exact<{
|
|
258
|
+
input: Scalars["JSON"]["input"];
|
|
259
|
+
type: SchemaType;
|
|
260
|
+
}>;
|
|
261
|
+
export type GetCategoriesQuery = {
|
|
262
|
+
__typename?: "Query";
|
|
263
|
+
schema: {
|
|
264
|
+
__typename?: "Schema";
|
|
265
|
+
tags: Array<{
|
|
266
|
+
__typename: "SchemaTag";
|
|
267
|
+
name?: string | null;
|
|
268
|
+
operations: Array<{
|
|
269
|
+
__typename: "OperationItem";
|
|
270
|
+
slug: string;
|
|
271
|
+
method: string;
|
|
272
|
+
summary?: string | null;
|
|
273
|
+
operationId?: string | null;
|
|
274
|
+
path: string;
|
|
275
|
+
}>;
|
|
276
|
+
}>;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
export declare const OperationsFragmentFragmentDoc: DocumentNode<OperationsFragmentFragment, unknown>;
|
|
280
|
+
export declare const GetServerQueryDocument: DocumentNode<GetServerQueryQuery, GetServerQueryQueryVariables>;
|
|
281
|
+
export declare const AllOperationsDocument: DocumentNode<AllOperationsQuery, AllOperationsQueryVariables>;
|
|
282
|
+
export declare const GetCategoriesDocument: DocumentNode<GetCategoriesQuery, GetCategoriesQueryVariables>;
|