zudoku 0.16.3 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +14 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +5 -4
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +2 -2
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
- package/dist/config/validators/validate.d.ts +114 -114
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -2
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +0 -1
- package/dist/lib/authentication/providers/openid.js +11 -26
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -3
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/Bootstrap.d.ts +3 -1
- package/dist/lib/components/Bootstrap.js +11 -3
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +5 -7
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +11 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +16 -12
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +2 -0
- package/dist/lib/components/TopNavigation.js +13 -7
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
- package/dist/lib/components/context/ZudokuContext.js +8 -13
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +18 -10
- package/dist/lib/components/index.js +2 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +2 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +3 -7
- package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +12 -12
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -9
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +2 -2
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +7 -22
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +4 -4
- package/dist/lib/plugins/openapi/Route.js +2 -4
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +34 -33
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -52
- 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 +134 -9
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -778
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +40 -53
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +2 -2
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/ui/ActionButton.d.ts +3 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/lib/util/useOnScreen.d.ts +4 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/vite/config.js +0 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +0 -6
- package/dist/vite/plugin-mdx.js +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +0 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-CDlhr8gL.js} +11 -10
- package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
- package/lib/{AuthenticationPlugin-C9BHGXlE.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
- package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
- package/lib/{Spinner-ChOGyPls.js → Button-jK0EsymC.js} +12 -15
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Markdown-ievDDhFT.js +15192 -0
- package/lib/Markdown-ievDDhFT.js.map +1 -0
- package/lib/{MdxPage-DKMH_t0f.js → MdxPage-Bwn-VSsH.js} +5 -5
- package/lib/{MdxPage-DKMH_t0f.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
- package/lib/OperationList-BwBl1xrD.js +4691 -0
- package/lib/OperationList-BwBl1xrD.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/{Select-Bagt3Bme.js → Select-O9ZM3ZgX.js} +7 -7
- package/lib/Select-O9ZM3ZgX.js.map +1 -0
- package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-DyomlzGx.js +252 -0
- package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
- package/lib/assets/{worker-YA-aCP3P.js → worker-CPsGZsve.js} +24 -22
- package/lib/assets/{worker-YA-aCP3P.js.map → worker-CPsGZsve.js.map} +1 -1
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-DK-g7kbB.js +16089 -0
- package/lib/createServer-DK-g7kbB.js.map +1 -0
- package/lib/{hook-sn0zMTkE.js → hook-hEqe7fPB.js} +12 -14
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/index-DNxQ_rCt.js +1273 -0
- package/lib/index-DNxQ_rCt.js.map +1 -0
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-tsXBLONe.js +203 -0
- package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/useExposedProps-CTPtylCV.js +10 -0
- package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
- package/lib/{ZudokuContext-BKXGJTmu.js → utils-DcpDOncX.js} +242 -246
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +124 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1284 -1121
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16346
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +18 -18
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -9
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +14 -4
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +14 -0
- package/src/app/entry.server.tsx +59 -57
- package/src/app/main.tsx +4 -4
- package/src/app/standalone.tsx +0 -3
- package/src/lib/authentication/authentication.ts +2 -2
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +16 -11
- package/src/lib/authentication/providers/openid.tsx +12 -30
- package/src/lib/authentication/state.ts +50 -9
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/Bootstrap.tsx +36 -9
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +32 -37
- package/src/lib/components/Layout.tsx +48 -36
- package/src/lib/components/MobileTopNavigation.tsx +15 -18
- package/src/lib/components/SyntaxHighlight.tsx +81 -46
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +27 -19
- package/src/lib/components/Zudoku.tsx +108 -0
- package/src/lib/components/context/ZudokuContext.ts +11 -16
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +2 -3
- package/src/lib/components/navigation/Sidebar.tsx +3 -3
- package/src/lib/components/navigation/utils.ts +2 -2
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +3 -11
- package/src/lib/core/plugins.ts +12 -16
- package/src/lib/errors/ErrorAlert.tsx +2 -1
- package/src/lib/plugins/api-keys/index.tsx +9 -9
- package/src/lib/plugins/custom-pages/index.tsx +2 -2
- package/src/lib/plugins/markdown/index.tsx +2 -2
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
- package/src/lib/plugins/openapi/OperationList.tsx +6 -40
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +72 -61
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +7 -25
- package/src/lib/plugins/openapi/graphql/graphql.ts +351 -782
- package/src/lib/plugins/openapi/index.tsx +42 -67
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -1
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/src/lib/plugins/redirect/index.tsx +2 -2
- package/src/lib/plugins/search-inkeep/index.tsx +2 -2
- package/src/lib/ui/ActionButton.tsx +1 -1
- package/src/lib/util/useOnScreen.ts +32 -0
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -9
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -54
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -62
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/lib/ClientOnly-CVN6leDu.js.map +0 -1
- package/lib/DeveloperHint-DHdLXGHA.js +0 -16
- package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
- package/lib/Markdown-BDcCAWwm.js +0 -18059
- package/lib/Markdown-BDcCAWwm.js.map +0 -1
- package/lib/OperationList-BjppA5yM.js +0 -621
- package/lib/OperationList-BjppA5yM.js.map +0 -1
- package/lib/Route-D_djzMv3.js +0 -13
- package/lib/Route-D_djzMv3.js.map +0 -1
- package/lib/Select-Bagt3Bme.js.map +0 -1
- package/lib/SidebarBadge-Bbt92M5K.js +0 -38
- package/lib/SidebarBadge-Bbt92M5K.js.map +0 -1
- package/lib/SlotletProvider-Da7eFgd2.js +0 -241
- package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
- package/lib/Spinner-ChOGyPls.js.map +0 -1
- package/lib/StaggeredRender-DDHSzQKE.js +0 -17
- package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
- package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
- package/lib/hook-sn0zMTkE.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/index-_gtpPhlu.js +0 -5877
- package/lib/index-_gtpPhlu.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/urql-core-35Qt_U4i.js +0 -1511
- package/lib/urql-core-35Qt_U4i.js.map +0 -1
- package/lib/useExposedProps-ChOIUaS4.js +0 -9
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -65
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -79
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ulid } from "ulidx";
|
|
2
|
+
import { initializeWorker } from "zudoku/openapi-worker";
|
|
3
|
+
import { ZudokuError } from "../../../util/invariant.js";
|
|
4
|
+
let localServerPromise;
|
|
5
|
+
let worker;
|
|
6
|
+
const throwIfError = (response) => {
|
|
7
|
+
if (!response.errors?.[0])
|
|
8
|
+
return;
|
|
9
|
+
throw new ZudokuError(response.errors[0].message, {
|
|
10
|
+
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config.",
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export class GraphQLClient {
|
|
14
|
+
config;
|
|
15
|
+
#mode;
|
|
16
|
+
#pendingRequests = new Map();
|
|
17
|
+
#port;
|
|
18
|
+
constructor(config) {
|
|
19
|
+
this.config = config;
|
|
20
|
+
if (config.server) {
|
|
21
|
+
this.#mode = "remote";
|
|
22
|
+
}
|
|
23
|
+
else if (config.inMemory || typeof SharedWorker === "undefined") {
|
|
24
|
+
this.#mode = "in-memory";
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
this.#mode = "worker";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
#initializeLocalServer = () => import("./createServer.js").then((m) => m.createServer());
|
|
31
|
+
fetch = async (query, ...[variables]) => {
|
|
32
|
+
const operationName = query.match(/query (\w+)/)?.[1];
|
|
33
|
+
const body = JSON.stringify({ query, variables, operationName });
|
|
34
|
+
switch (this.#mode) {
|
|
35
|
+
case "remote": {
|
|
36
|
+
const response = await fetch(this.config.server, {
|
|
37
|
+
method: "POST",
|
|
38
|
+
body,
|
|
39
|
+
headers: { "Content-Type": "application/json" },
|
|
40
|
+
});
|
|
41
|
+
if (!response.ok) {
|
|
42
|
+
throw new Error("Network response was not ok");
|
|
43
|
+
}
|
|
44
|
+
const result = (await response.json());
|
|
45
|
+
throwIfError(result);
|
|
46
|
+
return result.data;
|
|
47
|
+
}
|
|
48
|
+
case "in-memory": {
|
|
49
|
+
if (!localServerPromise) {
|
|
50
|
+
localServerPromise = this.#initializeLocalServer();
|
|
51
|
+
}
|
|
52
|
+
const localServer = await localServerPromise;
|
|
53
|
+
if (!localServer)
|
|
54
|
+
throw new Error("Local server not initialized");
|
|
55
|
+
const response = await localServer.fetch(new Request("http://localhost/graphql", {
|
|
56
|
+
method: "POST",
|
|
57
|
+
body,
|
|
58
|
+
headers: { "Content-Type": "application/json" },
|
|
59
|
+
}));
|
|
60
|
+
if (!response.ok) {
|
|
61
|
+
throw new Error("Network response was not ok");
|
|
62
|
+
}
|
|
63
|
+
const result = (await response.json());
|
|
64
|
+
throwIfError(result);
|
|
65
|
+
return result.data;
|
|
66
|
+
}
|
|
67
|
+
case "worker": {
|
|
68
|
+
if (!worker) {
|
|
69
|
+
worker = initializeWorker();
|
|
70
|
+
}
|
|
71
|
+
if (!this.#port) {
|
|
72
|
+
const channel = new MessageChannel();
|
|
73
|
+
worker.port.postMessage({ port: channel.port2 }, [channel.port2]);
|
|
74
|
+
this.#port = channel.port1;
|
|
75
|
+
this.#port.onmessage = (e) => {
|
|
76
|
+
const { id, body } = e.data;
|
|
77
|
+
const resolve = this.#pendingRequests.get(id);
|
|
78
|
+
if (resolve) {
|
|
79
|
+
const result = JSON.parse(body);
|
|
80
|
+
resolve(result);
|
|
81
|
+
this.#pendingRequests.delete(id);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
// eslint-disable-next-line no-console
|
|
85
|
+
console.error(`No pending request found for id: ${id}`);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
this.#port.start();
|
|
89
|
+
}
|
|
90
|
+
const id = ulid();
|
|
91
|
+
const resultPromise = new Promise((resolve) => {
|
|
92
|
+
this.#pendingRequests.set(id, resolve);
|
|
93
|
+
this.#port.postMessage({ id, body });
|
|
94
|
+
});
|
|
95
|
+
const result = await resultPromise;
|
|
96
|
+
throwIfError(result);
|
|
97
|
+
return result.data;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=GraphQLClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQLClient.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/GraphQLClient.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { GraphQLClient } from "./GraphQLClient.js";
|
|
3
|
+
export declare const GraphQLContext: import("react").Context<GraphQLClient | undefined>;
|
|
4
|
+
export declare const GraphQLProvider: ({ children, client, }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
client: GraphQLClient;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext } from "react";
|
|
3
|
+
export const GraphQLContext = createContext(undefined);
|
|
4
|
+
export const GraphQLProvider = ({ children, client, }) => (_jsx(GraphQLContext.Provider, { value: client, children: children }));
|
|
5
|
+
//# sourceMappingURL=GraphQLContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQLContext.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/GraphQLContext.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAkB,MAAM,OAAO,CAAC;AAGtD,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CACzC,SAAS,CACV,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,QAAQ,EACR,MAAM,GAIP,EAAE,EAAE,CAAC,CACJ,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YAAG,QAAQ,GAA2B,CAC7E,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TypedDocumentString } from "../graphql/graphql.js";
|
|
2
|
+
export declare const useCreateQuery: <TResult, TVariables>(query: TypedDocumentString<TResult, TVariables>, ...variables: TVariables extends Record<string, never> ? [] : [TVariables]) => {
|
|
3
|
+
readonly queryFn: () => Promise<TResult>;
|
|
4
|
+
readonly queryKey: readonly [TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
5
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { GraphQLContext } from "./GraphQLContext.js";
|
|
3
|
+
export const useCreateQuery = (query, ...variables) => {
|
|
4
|
+
const graphQLClient = useContext(GraphQLContext);
|
|
5
|
+
if (graphQLClient === undefined) {
|
|
6
|
+
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
queryFn: () => graphQLClient.fetch(query, ...variables),
|
|
10
|
+
queryKey: [query, variables[0]],
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useCreateQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateQuery.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/useCreateQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,KAA+C,EAC/C,GAAG,SAAuE,EAC1E,EAAE;IACF,MAAM,aAAa,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IACjD,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IAED,OAAO;QACL,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,SAAS,CAAC;QACvD,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;KACvB,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
import { createServer } from "./createServer.js";
|
|
2
2
|
const localServer = createServer();
|
|
3
3
|
const worker = self;
|
|
4
|
-
worker.addEventListener("connect",
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
worker.addEventListener("connect", (event) => {
|
|
5
|
+
const mainPort = event.ports[0];
|
|
6
|
+
mainPort.onmessage = (e) => {
|
|
7
|
+
if (e.data.port) {
|
|
8
|
+
const clientPort = e.data.port;
|
|
9
|
+
clientPort.onmessage = async (event) => {
|
|
10
|
+
const { id, body } = event.data;
|
|
11
|
+
const response = await localServer.fetch(new Request("/__z/graphql", {
|
|
12
|
+
method: "POST",
|
|
13
|
+
body,
|
|
14
|
+
headers: {
|
|
15
|
+
"Content-Type": "application/json",
|
|
16
|
+
},
|
|
17
|
+
}));
|
|
18
|
+
const responseBody = await response.text();
|
|
19
|
+
clientPort.postMessage({
|
|
20
|
+
id,
|
|
21
|
+
body: responseBody,
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
clientPort.start();
|
|
25
|
+
}
|
|
18
26
|
};
|
|
27
|
+
mainPort.start();
|
|
19
28
|
});
|
|
20
29
|
//# sourceMappingURL=worker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,MAAM,WAAW,GAAG,YAAY,EAAE,CAAC;AAEnC,MAAM,MAAM,GAAG,IAA0C,CAAC;AAE1D,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEhC,QAAS,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,EAAE;QAC1B,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YAChB,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,IAAmB,CAAC;YAE9C,UAAU,CAAC,SAAS,GAAG,KAAK,EAC1B,KAAiD,EACjD,EAAE;gBACF,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC;gBAEhC,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,OAAO,CAAC,cAAc,EAAE;oBAC1B,MAAM,EAAE,MAAM;oBACd,IAAI;oBACJ,OAAO,EAAE;wBACP,cAAc,EAAE,kBAAkB;qBACnC;iBACF,CAAC,CACH,CAAC;gBAEF,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;gBAE3C,UAAU,CAAC,WAAW,CAAC;oBACrB,EAAE;oBACF,IAAI,EAAE,YAAY;iBACK,CAAC,CAAC;YAC7B,CAAC,CAAC;YAEF,UAAU,CAAC,KAAK,EAAE,CAAC;QACrB,CAAC;IACH,CAAC,CAAC;IAEF,QAAS,CAAC,KAAK,EAAE,CAAC;AACpB,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DocumentTypeDecoration, ResultOf
|
|
2
|
-
import type { Incremental } from "./graphql.js";
|
|
1
|
+
import type { DocumentTypeDecoration, ResultOf } from "@graphql-typed-document-node/core";
|
|
2
|
+
import type { Incremental, TypedDocumentString } from "./graphql.js";
|
|
3
3
|
export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
|
|
4
4
|
" $fragmentName"?: infer TKey;
|
|
5
5
|
}] ? TKey extends string ? {
|
|
@@ -16,4 +16,4 @@ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration
|
|
|
16
16
|
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
|
|
17
17
|
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
|
|
18
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:
|
|
19
|
+
export declare function isFragmentReady<TQuery, TFrag>(queryNode: TypedDocumentString<TQuery, any>, fragmentNode: TypedDocumentString<TFrag, any>, data: FragmentType<TypedDocumentString<Incremental<TFrag>, any>> | null | undefined): data is FragmentType<typeof fragmentNode>;
|
|
@@ -6,11 +6,10 @@ export function makeFragmentData(data, _fragment) {
|
|
|
6
6
|
}
|
|
7
7
|
export function isFragmentReady(queryNode, fragmentNode, data) {
|
|
8
8
|
const deferredFields = queryNode.__meta__?.deferredFields;
|
|
9
|
-
|
|
9
|
+
const fragName = fragmentNode.__meta__?.fragmentName;
|
|
10
|
+
if (!deferredFields || !fragName)
|
|
10
11
|
return true;
|
|
11
|
-
const
|
|
12
|
-
const fragName = fragDef?.name?.value;
|
|
13
|
-
const fields = (fragName && deferredFields[fragName]) || [];
|
|
12
|
+
const fields = deferredFields[fragName] ?? [];
|
|
14
13
|
return fields.length > 0 && fields.every((field) => data && field in data);
|
|
15
14
|
}
|
|
16
15
|
//# sourceMappingURL=fragment-masking.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fragment-masking.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/fragment-masking.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fragment-masking.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/fragment-masking.ts"],"names":[],"mappings":"AAmEA,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,SAA2C,EAC3C,YAA6C,EAC7C,IAGa;IAEb,MAAM,cAAc,GAAG,SAAS,CAAC,QAAQ,EAAE,cAG1C,CAAC;IACF,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,EAAE,YAAkC,CAAC;IAE3E,IAAI,CAAC,cAAc,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE9C,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC9C,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"}
|
|
@@ -1,67 +1,20 @@
|
|
|
1
|
-
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
|
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
|
-
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
|
|
13
|
-
*/
|
|
14
|
-
declare const documents: {
|
|
15
|
-
"\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<{
|
|
16
|
-
input: types.Scalars["JSON"]["input"];
|
|
17
|
-
type: types.SchemaType;
|
|
18
|
-
}>>;
|
|
19
|
-
"\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 examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": DocumentNode<types.OperationsFragmentFragment, unknown>;
|
|
20
|
-
"\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<{
|
|
21
|
-
input: types.Scalars["JSON"]["input"];
|
|
22
|
-
type: types.SchemaType;
|
|
23
|
-
}>>;
|
|
24
|
-
"\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<{
|
|
25
|
-
input: types.Scalars["JSON"]["input"];
|
|
26
|
-
type: types.SchemaType;
|
|
27
|
-
}>>;
|
|
28
|
-
"\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": DocumentNode<types.GetCategoriesQuery, types.Exact<{
|
|
29
|
-
input: types.Scalars["JSON"]["input"];
|
|
30
|
-
type: types.SchemaType;
|
|
31
|
-
}>>;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* The query argument is unknown!
|
|
43
|
-
* Please regenerate the types.
|
|
44
|
-
*/
|
|
45
|
-
export declare function graphql(source: string): unknown;
|
|
46
1
|
/**
|
|
47
2
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
48
3
|
*/
|
|
49
|
-
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"):
|
|
4
|
+
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 import("./graphql.js").ServersQueryDocument;
|
|
50
5
|
/**
|
|
51
6
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
52
7
|
*/
|
|
53
|
-
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 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 examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n"):
|
|
8
|
+
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 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 examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n"): typeof import("./graphql.js").OperationsFragmentFragmentDoc;
|
|
54
9
|
/**
|
|
55
10
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
56
11
|
*/
|
|
57
|
-
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"):
|
|
12
|
+
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 import("./graphql.js").AllOperationsDocument;
|
|
58
13
|
/**
|
|
59
14
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
60
15
|
*/
|
|
61
|
-
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"):
|
|
16
|
+
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 import("./graphql.js").GetServerQueryDocument;
|
|
62
17
|
/**
|
|
63
18
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
64
19
|
*/
|
|
65
|
-
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 deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n"):
|
|
66
|
-
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
|
|
67
|
-
export {};
|
|
20
|
+
export declare function graphql(source: "\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\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"): typeof import("./graphql.js").GetCategoriesDocument;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
import * as types from "./graphql.js";
|
|
2
3
|
/**
|
|
3
4
|
* Map of all GraphQL operations in the project.
|
|
@@ -15,7 +16,7 @@ const documents = {
|
|
|
15
16
|
"\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 examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": types.OperationsFragmentFragmentDoc,
|
|
16
17
|
"\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
18
|
"\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,
|
|
18
|
-
"\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,
|
|
19
|
+
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\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,
|
|
19
20
|
};
|
|
20
21
|
export function graphql(source) {
|
|
21
22
|
return documents[source] ?? {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/gql.ts"],"names":[],"mappings":"
|
|
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;AAEtC;;;;;;;;;;GAUG;AACH,MAAM,SAAS,GAAG;IAChB,uKAAuK,EACrK,KAAK,CAAC,oBAAoB;IAC5B,m+BAAm+B,EACj+B,KAAK,CAAC,6BAA6B;IACrC,4TAA4T,EAC1T,KAAK,CAAC,qBAAqB;IAC7B,yKAAyK,EACvK,KAAK,CAAC,sBAAsB;IAC9B,mWAAmW,EACjW,KAAK,CAAC,qBAAqB;CAC9B,CAAC;AAiCF,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DocumentTypeDecoration } from "@graphql-typed-document-node/core";
|
|
2
2
|
export type Maybe<T> = T | null;
|
|
3
3
|
export type InputMaybe<T> = Maybe<T>;
|
|
4
4
|
export type Exact<T extends {
|
|
@@ -53,8 +53,125 @@ export type Scalars = {
|
|
|
53
53
|
output: any;
|
|
54
54
|
};
|
|
55
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["JSON"]["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?: Maybe<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
|
+
};
|
|
56
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?: Maybe<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
|
+
servers: Array<Server>;
|
|
144
|
+
tags: Array<SchemaTag>;
|
|
145
|
+
title: Scalars["String"]["output"];
|
|
146
|
+
url: Scalars["String"]["output"];
|
|
147
|
+
version: Scalars["String"]["output"];
|
|
148
|
+
};
|
|
149
|
+
export type SchemaOperationsArgs = {
|
|
150
|
+
method?: InputMaybe<Scalars["String"]["input"]>;
|
|
151
|
+
operationId?: InputMaybe<Scalars["String"]["input"]>;
|
|
152
|
+
path?: InputMaybe<Scalars["String"]["input"]>;
|
|
153
|
+
tag?: InputMaybe<Scalars["String"]["input"]>;
|
|
154
|
+
};
|
|
155
|
+
export type SchemaTagsArgs = {
|
|
156
|
+
name?: InputMaybe<Scalars["String"]["input"]>;
|
|
157
|
+
};
|
|
158
|
+
export type SchemaTag = {
|
|
159
|
+
__typename?: "SchemaTag";
|
|
160
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
161
|
+
name?: Maybe<Scalars["String"]["output"]>;
|
|
162
|
+
operations: Array<OperationItem>;
|
|
163
|
+
};
|
|
57
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
|
+
};
|
|
170
|
+
export type TagItem = {
|
|
171
|
+
__typename?: "TagItem";
|
|
172
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
173
|
+
name: Scalars["String"]["output"];
|
|
174
|
+
};
|
|
58
175
|
export type ServersQueryQueryVariables = Exact<{
|
|
59
176
|
input: Scalars["JSON"]["input"];
|
|
60
177
|
type: SchemaType;
|
|
@@ -92,7 +209,7 @@ export type OperationsFragmentFragment = {
|
|
|
92
209
|
name: string;
|
|
93
210
|
description?: string | null;
|
|
94
211
|
externalValue?: string | null;
|
|
95
|
-
value?:
|
|
212
|
+
value?: any | null;
|
|
96
213
|
summary?: string | null;
|
|
97
214
|
}> | null;
|
|
98
215
|
}> | null;
|
|
@@ -113,7 +230,7 @@ export type OperationsFragmentFragment = {
|
|
|
113
230
|
name: string;
|
|
114
231
|
description?: string | null;
|
|
115
232
|
externalValue?: string | null;
|
|
116
|
-
value?:
|
|
233
|
+
value?: any | null;
|
|
117
234
|
summary?: string | null;
|
|
118
235
|
}> | null;
|
|
119
236
|
}> | null;
|
|
@@ -132,7 +249,7 @@ export type OperationsFragmentFragment = {
|
|
|
132
249
|
name: string;
|
|
133
250
|
description?: string | null;
|
|
134
251
|
externalValue?: string | null;
|
|
135
|
-
value?:
|
|
252
|
+
value?: any | null;
|
|
136
253
|
summary?: string | null;
|
|
137
254
|
}> | null;
|
|
138
255
|
encoding?: Array<{
|
|
@@ -194,6 +311,7 @@ export type GetCategoriesQuery = {
|
|
|
194
311
|
__typename?: "Query";
|
|
195
312
|
schema: {
|
|
196
313
|
__typename?: "Schema";
|
|
314
|
+
url: string;
|
|
197
315
|
tags: Array<{
|
|
198
316
|
__typename: "SchemaTag";
|
|
199
317
|
name?: string | null;
|
|
@@ -209,8 +327,15 @@ export type GetCategoriesQuery = {
|
|
|
209
327
|
}>;
|
|
210
328
|
};
|
|
211
329
|
};
|
|
212
|
-
export declare
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
330
|
+
export declare class TypedDocumentString<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
|
|
331
|
+
private value;
|
|
332
|
+
__meta__?: Record<string, any> | undefined;
|
|
333
|
+
__apiType?: DocumentTypeDecoration<TResult, TVariables>["__apiType"];
|
|
334
|
+
constructor(value: string, __meta__?: Record<string, any> | undefined);
|
|
335
|
+
toString(): string & DocumentTypeDecoration<TResult, TVariables>;
|
|
336
|
+
}
|
|
337
|
+
export declare const OperationsFragmentFragmentDoc: TypedDocumentString<OperationsFragmentFragment, unknown>;
|
|
338
|
+
export declare const ServersQueryDocument: TypedDocumentString<ServersQueryQuery, ServersQueryQueryVariables>;
|
|
339
|
+
export declare const AllOperationsDocument: TypedDocumentString<AllOperationsQuery, AllOperationsQueryVariables>;
|
|
340
|
+
export declare const GetServerQueryDocument: TypedDocumentString<GetServerQueryQuery, GetServerQueryQueryVariables>;
|
|
341
|
+
export declare const GetCategoriesDocument: TypedDocumentString<GetCategoriesQuery, GetCategoriesQueryVariables>;
|