zudoku 0.0.0-f865d81 → 0.0.0-fa903e7
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 +6 -6
- 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/cli/cli.js +1 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.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 +148 -117
- package/dist/config/validators/validate.js +13 -6
- 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/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -3
- 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 +12 -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 +10 -4
- 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 +16 -10
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +12 -4
- 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 +18 -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/oas/graphql/index.js +4 -4
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +2 -17
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -9
- package/dist/lib/plugins/api-keys/index.js +3 -0
- 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/MdxPage.d.ts +9 -1
- package/dist/lib/plugins/markdown/MdxPage.js +14 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +2 -2
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- 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 +21 -22
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.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 +35 -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 +114 -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 +15 -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 -51
- package/dist/lib/plugins/openapi/graphql/gql.js +4 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -662
- 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/interfaces.d.ts +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
- package/dist/lib/plugins/openapi/util/generateSchemaExample.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 +4 -7
- package/dist/lib/plugins/redirect/index.js +1 -1
- 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 +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/lib/util/traverse.d.ts +2 -0
- package/dist/lib/util/traverse.js +18 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- 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/build.js +5 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -8
- package/dist/vite/config.js +25 -54
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +3 -4
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +101 -0
- package/dist/vite/output.js +53 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api.js +23 -19
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-component.js +14 -19
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +2 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +0 -6
- package/dist/vite/plugin-mdx.js +13 -5
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +1 -3
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.js +3 -2
- package/dist/vite/prerender.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/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +28 -0
- package/dist/zuplo/with-zuplo.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-D0Em0SwR.js +59 -0
- package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
- package/lib/Button-jK0EsymC.js +48 -0
- 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-B2FpJ9KC.js +183 -0
- package/lib/MdxPage-B2FpJ9KC.js.map +1 -0
- package/lib/OperationList-BkNQEsNs.js +4693 -0
- package/lib/OperationList-BkNQEsNs.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/{Spinner-C6zroowC.js → SidebarBadge-DxFJcJ6V.js} +28 -17
- 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-Bf8vjASY.js → worker-BHClFO3A.js} +156 -156
- package/lib/assets/worker-BHClFO3A.js.map +1 -0
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-CpJlUPtn.js +15299 -0
- package/lib/createServer-CpJlUPtn.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-C7SaIME0.js +1277 -0
- package/lib/index-C7SaIME0.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/object_hash-CvlLgU-M.js +785 -0
- package/lib/object_hash-CvlLgU-M.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +11 -0
- package/lib/post-processors/removeExtensions.js.map +1 -0
- package/lib/post-processors/removePaths.js +28 -0
- package/lib/post-processors/removePaths.js.map +1 -0
- package/lib/post-processors/traverse.js +12 -0
- package/lib/post-processors/traverse.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 +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- 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 +1291 -1119
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16336
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +41 -39
- 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 +15 -14
- 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 +2 -2
- 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 +27 -7
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +14 -0
- package/src/app/entry.server.tsx +59 -53
- package/src/app/main.css +1 -1
- package/src/app/main.tsx +4 -4
- package/src/app/standalone.tsx +0 -3
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +3 -3
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +17 -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 -14
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +68 -40
- package/src/lib/components/Layout.tsx +49 -37
- 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 +20 -16
- package/src/lib/errors/ErrorAlert.tsx +2 -1
- package/src/lib/oas/graphql/index.ts +4 -4
- package/src/lib/oas/parser/upgrade/index.ts +3 -24
- package/src/lib/plugins/api-keys/index.tsx +12 -9
- package/src/lib/plugins/custom-pages/index.tsx +2 -2
- package/src/lib/plugins/markdown/MdxPage.tsx +25 -1
- package/src/lib/plugins/markdown/index.tsx +3 -2
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
- 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 +20 -40
- package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +157 -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 +21 -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 +10 -27
- package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
- package/src/lib/plugins/openapi/index.tsx +42 -67
- package/src/lib/plugins/openapi/interfaces.ts +1 -1
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/src/lib/plugins/redirect/index.tsx +5 -9
- package/src/lib/plugins/search-inkeep/index.tsx +2 -2
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/util/traverse.ts +25 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- 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 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- 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 -61
- 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/AuthenticationPlugin-C9BHGXlE.js +0 -55
- 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/MdxPage-DKMH_t0f.js +0 -174
- package/lib/MdxPage-DKMH_t0f.js.map +0 -1
- package/lib/OperationList-Tj7ubW_t.js +0 -604
- package/lib/OperationList-Tj7ubW_t.js.map +0 -1
- package/lib/Route-C3DGB6OS.js +0 -13
- package/lib/Route-C3DGB6OS.js.map +0 -1
- package/lib/Select-Bagt3Bme.js.map +0 -1
- package/lib/SlotletProvider-Da7eFgd2.js +0 -241
- package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
- package/lib/Spinner-C6zroowC.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/assets/worker-Bf8vjASY.js.map +0 -1
- package/lib/hook-sn0zMTkE.js.map +0 -1
- package/lib/index-AjWCJNGC.js +0 -5690
- package/lib/index-AjWCJNGC.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.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 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- 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
|
@@ -947,7 +947,7 @@ var I;
|
|
|
947
947
|
function ls(t) {
|
|
948
948
|
return t === 9 || t === 32;
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function Fi(t) {
|
|
951
951
|
return t >= 48 && t <= 57;
|
|
952
952
|
}
|
|
953
953
|
function Ga(t) {
|
|
@@ -958,7 +958,7 @@ function $s(t) {
|
|
|
958
958
|
return Ga(t) || t === 95;
|
|
959
959
|
}
|
|
960
960
|
function qa(t) {
|
|
961
|
-
return Ga(t) ||
|
|
961
|
+
return Ga(t) || Fi(t) || t === 95;
|
|
962
962
|
}
|
|
963
963
|
function Hl(t) {
|
|
964
964
|
var e;
|
|
@@ -1041,7 +1041,7 @@ class Xl {
|
|
|
1041
1041
|
function Zl(t) {
|
|
1042
1042
|
return t === D.BANG || t === D.DOLLAR || t === D.AMP || t === D.PAREN_L || t === D.PAREN_R || t === D.SPREAD || t === D.COLON || t === D.EQUALS || t === D.AT || t === D.BRACKET_L || t === D.BRACKET_R || t === D.BRACE_L || t === D.PIPE || t === D.BRACE_R;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function ui(t) {
|
|
1045
1045
|
return t >= 0 && t <= 55295 || t >= 57344 && t <= 1114111;
|
|
1046
1046
|
}
|
|
1047
1047
|
function Fr(t, e) {
|
|
@@ -1120,14 +1120,14 @@ function ec(t, e) {
|
|
|
1120
1120
|
case 34:
|
|
1121
1121
|
return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? ac(t, r) : ic(t, r);
|
|
1122
1122
|
}
|
|
1123
|
-
if (
|
|
1123
|
+
if (Fi(s) || s === 45)
|
|
1124
1124
|
return nc(t, r, s);
|
|
1125
1125
|
if ($s(s))
|
|
1126
1126
|
return uc(t, r);
|
|
1127
1127
|
throw $e(
|
|
1128
1128
|
t.source,
|
|
1129
1129
|
r,
|
|
1130
|
-
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
1130
|
+
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ui(s) || Fr(n, r) ? `Unexpected character: ${Ln(t, r)}.` : `Invalid character: ${Ln(t, r)}.`
|
|
1131
1131
|
);
|
|
1132
1132
|
}
|
|
1133
1133
|
return _e(t, D.EOF, i, i);
|
|
@@ -1139,7 +1139,7 @@ function tc(t, e) {
|
|
|
1139
1139
|
const s = n.charCodeAt(r);
|
|
1140
1140
|
if (s === 10 || s === 13)
|
|
1141
1141
|
break;
|
|
1142
|
-
if (
|
|
1142
|
+
if (ui(s))
|
|
1143
1143
|
++r;
|
|
1144
1144
|
else if (Fr(n, r))
|
|
1145
1145
|
r += 2;
|
|
@@ -1158,7 +1158,7 @@ function nc(t, e, n) {
|
|
|
1158
1158
|
const i = t.source.body;
|
|
1159
1159
|
let r = e, s = n, o = !1;
|
|
1160
1160
|
if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
|
|
1161
|
-
if (s = i.charCodeAt(++r),
|
|
1161
|
+
if (s = i.charCodeAt(++r), Fi(s))
|
|
1162
1162
|
throw $e(
|
|
1163
1163
|
t.source,
|
|
1164
1164
|
r,
|
|
@@ -1187,7 +1187,7 @@ function nc(t, e, n) {
|
|
|
1187
1187
|
);
|
|
1188
1188
|
}
|
|
1189
1189
|
function Hr(t, e, n) {
|
|
1190
|
-
if (!
|
|
1190
|
+
if (!Fi(n))
|
|
1191
1191
|
throw $e(
|
|
1192
1192
|
t.source,
|
|
1193
1193
|
e,
|
|
@@ -1198,7 +1198,7 @@ function Hr(t, e, n) {
|
|
|
1198
1198
|
);
|
|
1199
1199
|
const i = t.source.body;
|
|
1200
1200
|
let r = e + 1;
|
|
1201
|
-
for (;
|
|
1201
|
+
for (; Fi(i.charCodeAt(r)); )
|
|
1202
1202
|
++r;
|
|
1203
1203
|
return r;
|
|
1204
1204
|
}
|
|
@@ -1217,7 +1217,7 @@ function ic(t, e) {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
if (a === 10 || a === 13)
|
|
1219
1219
|
break;
|
|
1220
|
-
if (
|
|
1220
|
+
if (ui(a))
|
|
1221
1221
|
++r;
|
|
1222
1222
|
else if (Fr(n, r))
|
|
1223
1223
|
r += 2;
|
|
@@ -1239,14 +1239,14 @@ function rc(t, e) {
|
|
|
1239
1239
|
for (; r < 12; ) {
|
|
1240
1240
|
const s = n.charCodeAt(e + r++);
|
|
1241
1241
|
if (s === 125) {
|
|
1242
|
-
if (r < 5 || !
|
|
1242
|
+
if (r < 5 || !ui(i))
|
|
1243
1243
|
break;
|
|
1244
1244
|
return {
|
|
1245
1245
|
value: String.fromCodePoint(i),
|
|
1246
1246
|
size: r
|
|
1247
1247
|
};
|
|
1248
1248
|
}
|
|
1249
|
-
if (i = i << 4 |
|
|
1249
|
+
if (i = i << 4 | bi(s), i < 0)
|
|
1250
1250
|
break;
|
|
1251
1251
|
}
|
|
1252
1252
|
throw $e(
|
|
@@ -1260,7 +1260,7 @@ function rc(t, e) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
function sc(t, e) {
|
|
1262
1262
|
const n = t.source.body, i = Oo(n, e + 2);
|
|
1263
|
-
if (
|
|
1263
|
+
if (ui(i))
|
|
1264
1264
|
return {
|
|
1265
1265
|
value: String.fromCodePoint(i),
|
|
1266
1266
|
size: 6
|
|
@@ -1280,9 +1280,9 @@ function sc(t, e) {
|
|
|
1280
1280
|
);
|
|
1281
1281
|
}
|
|
1282
1282
|
function Oo(t, e) {
|
|
1283
|
-
return
|
|
1283
|
+
return bi(t.charCodeAt(e)) << 12 | bi(t.charCodeAt(e + 1)) << 8 | bi(t.charCodeAt(e + 2)) << 4 | bi(t.charCodeAt(e + 3));
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function bi(t) {
|
|
1286
1286
|
return t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 70 ? t - 55 : t >= 97 && t <= 102 ? t - 87 : -1;
|
|
1287
1287
|
}
|
|
1288
1288
|
function oc(t, e) {
|
|
@@ -1366,7 +1366,7 @@ function ac(t, e) {
|
|
|
1366
1366
|
a += n.slice(o, s), u.push(a), c === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, a = "", o = s, r = s;
|
|
1367
1367
|
continue;
|
|
1368
1368
|
}
|
|
1369
|
-
if (
|
|
1369
|
+
if (ui(c))
|
|
1370
1370
|
++s;
|
|
1371
1371
|
else if (Fr(n, s))
|
|
1372
1372
|
s += 2;
|
|
@@ -2943,7 +2943,7 @@ const Ic = [
|
|
|
2943
2943
|
"\\u009D",
|
|
2944
2944
|
"\\u009E",
|
|
2945
2945
|
"\\u009F"
|
|
2946
|
-
],
|
|
2946
|
+
], Ei = Object.freeze({});
|
|
2947
2947
|
function Ps(t, e, n = Ba) {
|
|
2948
2948
|
const i = /* @__PURE__ */ new Map();
|
|
2949
2949
|
for (const y of Object.values(I))
|
|
@@ -2981,7 +2981,7 @@ function Ps(t, e, n = Ba) {
|
|
|
2981
2981
|
var E, R;
|
|
2982
2982
|
us(c) || ae(!1, `Invalid AST Node: ${G(c)}.`);
|
|
2983
2983
|
const O = y ? (E = i.get(c.kind)) === null || E === void 0 ? void 0 : E.leave : (R = i.get(c.kind)) === null || R === void 0 ? void 0 : R.enter;
|
|
2984
|
-
if (A = O == null ? void 0 : O.call(e, c, f, g, p, w), A ===
|
|
2984
|
+
if (A = O == null ? void 0 : O.call(e, c, f, g, p, w), A === Ei)
|
|
2985
2985
|
break;
|
|
2986
2986
|
if (A === !1) {
|
|
2987
2987
|
if (!y) {
|
|
@@ -3031,8 +3031,8 @@ function Oc(t) {
|
|
|
3031
3031
|
const p = (f = s[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
|
|
3032
3032
|
if (p === !1)
|
|
3033
3033
|
e[g] = c;
|
|
3034
|
-
else if (p ===
|
|
3035
|
-
e[g] =
|
|
3034
|
+
else if (p === Ei)
|
|
3035
|
+
e[g] = Ei;
|
|
3036
3036
|
else if (p !== void 0)
|
|
3037
3037
|
return p;
|
|
3038
3038
|
}
|
|
@@ -3043,8 +3043,8 @@ function Oc(t) {
|
|
|
3043
3043
|
if (e[g] === null) {
|
|
3044
3044
|
var f;
|
|
3045
3045
|
const p = (f = o[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
|
|
3046
|
-
if (p ===
|
|
3047
|
-
e[g] =
|
|
3046
|
+
if (p === Ei)
|
|
3047
|
+
e[g] = Ei;
|
|
3048
3048
|
else if (p !== void 0 && p !== !1)
|
|
3049
3049
|
return p;
|
|
3050
3050
|
} else e[g] === c && (e[g] = null);
|
|
@@ -3390,7 +3390,7 @@ function Bt(t) {
|
|
|
3390
3390
|
return Gt(t, ri);
|
|
3391
3391
|
}
|
|
3392
3392
|
function ze(t) {
|
|
3393
|
-
return Gt(t,
|
|
3393
|
+
return Gt(t, Ai);
|
|
3394
3394
|
}
|
|
3395
3395
|
function je(t) {
|
|
3396
3396
|
return Gt(t, Ue);
|
|
@@ -3401,8 +3401,8 @@ function re(t) {
|
|
|
3401
3401
|
function Pt(t) {
|
|
3402
3402
|
return Dn(t) || Bt(t) || ze(t) || Ms(t) && Pt(t.ofType);
|
|
3403
3403
|
}
|
|
3404
|
-
function
|
|
3405
|
-
return Dn(t) || pe(t) || ve(t) || Vt(t) || Bt(t) || Ms(t) &&
|
|
3404
|
+
function Ni(t) {
|
|
3405
|
+
return Dn(t) || pe(t) || ve(t) || Vt(t) || Bt(t) || Ms(t) && Ni(t.ofType);
|
|
3406
3406
|
}
|
|
3407
3407
|
function yn(t) {
|
|
3408
3408
|
return Dn(t) || Bt(t);
|
|
@@ -3814,7 +3814,7 @@ function Fo(t, e) {
|
|
|
3814
3814
|
astNode: i.astNode
|
|
3815
3815
|
}));
|
|
3816
3816
|
}
|
|
3817
|
-
class
|
|
3817
|
+
class Ai {
|
|
3818
3818
|
constructor(e) {
|
|
3819
3819
|
var n, i;
|
|
3820
3820
|
this.name = qt(e.name), this.description = e.description, this.extensions = mt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (i = e.isOneOf) !== null && i !== void 0 ? i : !1, this._fields = Cc.bind(void 0, e);
|
|
@@ -4171,9 +4171,9 @@ const Us = new nn({
|
|
|
4171
4171
|
function au(t) {
|
|
4172
4172
|
return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4174
|
+
function vi(t, e) {
|
|
4175
4175
|
if (re(e)) {
|
|
4176
|
-
const n =
|
|
4176
|
+
const n = vi(t, e.ofType);
|
|
4177
4177
|
return (n == null ? void 0 : n.kind) === I.NULL ? null : n;
|
|
4178
4178
|
}
|
|
4179
4179
|
if (t === null)
|
|
@@ -4187,7 +4187,7 @@ function Ei(t, e) {
|
|
|
4187
4187
|
if (au(t)) {
|
|
4188
4188
|
const i = [];
|
|
4189
4189
|
for (const r of t) {
|
|
4190
|
-
const s =
|
|
4190
|
+
const s = vi(r, n);
|
|
4191
4191
|
s != null && i.push(s);
|
|
4192
4192
|
}
|
|
4193
4193
|
return {
|
|
@@ -4195,14 +4195,14 @@ function Ei(t, e) {
|
|
|
4195
4195
|
values: i
|
|
4196
4196
|
};
|
|
4197
4197
|
}
|
|
4198
|
-
return
|
|
4198
|
+
return vi(t, n);
|
|
4199
4199
|
}
|
|
4200
4200
|
if (ze(e)) {
|
|
4201
4201
|
if (!Ht(t))
|
|
4202
4202
|
return null;
|
|
4203
4203
|
const n = [];
|
|
4204
4204
|
for (const i of Object.values(e.getFields())) {
|
|
4205
|
-
const r =
|
|
4205
|
+
const r = vi(t[i.name], i.type);
|
|
4206
4206
|
r && n.push({
|
|
4207
4207
|
kind: I.OBJECT_FIELD,
|
|
4208
4208
|
name: {
|
|
@@ -4580,7 +4580,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4580
4580
|
type: ue,
|
|
4581
4581
|
description: "A GraphQL-formatted string representing the default value for this input value.",
|
|
4582
4582
|
resolve(t) {
|
|
4583
|
-
const { type: e, defaultValue: n } = t, i =
|
|
4583
|
+
const { type: e, defaultValue: n } = t, i = vi(n, e);
|
|
4584
4584
|
return i ? be(i) : null;
|
|
4585
4585
|
}
|
|
4586
4586
|
},
|
|
@@ -4998,7 +4998,7 @@ function Co(t, e) {
|
|
|
4998
4998
|
...e.extensionASTNodes
|
|
4999
4999
|
]);
|
|
5000
5000
|
for (const o of n) {
|
|
5001
|
-
if (Cn(t, o), !
|
|
5001
|
+
if (Cn(t, o), !Ni(o.type)) {
|
|
5002
5002
|
var i;
|
|
5003
5003
|
t.reportError(
|
|
5004
5004
|
`The type of ${e.name}.${o.name} must be Output Type but got: ${G(o.type)}.`,
|
|
@@ -5033,21 +5033,21 @@ function ko(t, e) {
|
|
|
5033
5033
|
if (!ve(i)) {
|
|
5034
5034
|
t.reportError(
|
|
5035
5035
|
`Type ${G(e)} must only implement Interface types, it cannot implement ${G(i)}.`,
|
|
5036
|
-
|
|
5036
|
+
xi(e, i)
|
|
5037
5037
|
);
|
|
5038
5038
|
continue;
|
|
5039
5039
|
}
|
|
5040
5040
|
if (e === i) {
|
|
5041
5041
|
t.reportError(
|
|
5042
5042
|
`Type ${e.name} cannot implement itself because it would create a circular reference.`,
|
|
5043
|
-
|
|
5043
|
+
xi(e, i)
|
|
5044
5044
|
);
|
|
5045
5045
|
continue;
|
|
5046
5046
|
}
|
|
5047
5047
|
if (n[i.name]) {
|
|
5048
5048
|
t.reportError(
|
|
5049
5049
|
`Type ${e.name} can only implement ${i.name} once.`,
|
|
5050
|
-
|
|
5050
|
+
xi(e, i)
|
|
5051
5051
|
);
|
|
5052
5052
|
continue;
|
|
5053
5053
|
}
|
|
@@ -5110,8 +5110,8 @@ function zc(t, e, n) {
|
|
|
5110
5110
|
i.includes(r) || t.reportError(
|
|
5111
5111
|
r === e ? `Type ${e.name} cannot implement ${n.name} because it would create a circular reference.` : `Type ${e.name} must implement ${r.name} because it is implemented by ${n.name}.`,
|
|
5112
5112
|
[
|
|
5113
|
-
...
|
|
5114
|
-
...
|
|
5113
|
+
...xi(n, r),
|
|
5114
|
+
...xi(e, n)
|
|
5115
5115
|
]
|
|
5116
5116
|
);
|
|
5117
5117
|
}
|
|
@@ -5210,7 +5210,7 @@ function Jc(t) {
|
|
|
5210
5210
|
i[s.name] = void 0;
|
|
5211
5211
|
}
|
|
5212
5212
|
}
|
|
5213
|
-
function
|
|
5213
|
+
function xi(t, e) {
|
|
5214
5214
|
const { astNode: n, extensionASTNodes: i } = t;
|
|
5215
5215
|
return (n != null ? [n, ...i] : i).flatMap((s) => {
|
|
5216
5216
|
var o;
|
|
@@ -5252,7 +5252,7 @@ function it(t, e) {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
class yu {
|
|
5254
5254
|
constructor(e, n, i) {
|
|
5255
|
-
this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? Kc, n && (Pt(n) && this._inputTypeStack.push(n), bn(n) && this._parentTypeStack.push(n),
|
|
5255
|
+
this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? Kc, n && (Pt(n) && this._inputTypeStack.push(n), bn(n) && this._parentTypeStack.push(n), Ni(n) && this._typeStack.push(n));
|
|
5256
5256
|
}
|
|
5257
5257
|
get [Symbol.toStringTag]() {
|
|
5258
5258
|
return "TypeInfo";
|
|
@@ -5303,7 +5303,7 @@ class yu {
|
|
|
5303
5303
|
case I.FIELD: {
|
|
5304
5304
|
const r = this.getParentType();
|
|
5305
5305
|
let s, o;
|
|
5306
|
-
r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(
|
|
5306
|
+
r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(Ni(o) ? o : void 0);
|
|
5307
5307
|
break;
|
|
5308
5308
|
}
|
|
5309
5309
|
case I.DIRECTIVE:
|
|
@@ -5317,7 +5317,7 @@ class yu {
|
|
|
5317
5317
|
case I.INLINE_FRAGMENT:
|
|
5318
5318
|
case I.FRAGMENT_DEFINITION: {
|
|
5319
5319
|
const r = e.typeCondition, s = r ? it(n, r) : jt(this.getType());
|
|
5320
|
-
this._typeStack.push(
|
|
5320
|
+
this._typeStack.push(Ni(s) ? s : void 0);
|
|
5321
5321
|
break;
|
|
5322
5322
|
}
|
|
5323
5323
|
case I.VARIABLE_DEFINITION: {
|
|
@@ -6482,16 +6482,16 @@ function Kt(t) {
|
|
|
6482
6482
|
return e.reverse();
|
|
6483
6483
|
}
|
|
6484
6484
|
function Pf(t, e, n = jf) {
|
|
6485
|
-
return
|
|
6485
|
+
return wi(t, e, n, void 0);
|
|
6486
6486
|
}
|
|
6487
6487
|
function jf(t, e, n) {
|
|
6488
6488
|
let i = "Invalid value " + G(e);
|
|
6489
6489
|
throw t.length > 0 && (i += ` at "value${$f(t)}"`), n.message = i + ": " + n.message, n;
|
|
6490
6490
|
}
|
|
6491
|
-
function
|
|
6491
|
+
function wi(t, e, n, i) {
|
|
6492
6492
|
if (re(e)) {
|
|
6493
6493
|
if (t != null)
|
|
6494
|
-
return
|
|
6494
|
+
return wi(t, e.ofType, n, i);
|
|
6495
6495
|
n(
|
|
6496
6496
|
Kt(i),
|
|
6497
6497
|
t,
|
|
@@ -6507,8 +6507,8 @@ function vi(t, e, n, i) {
|
|
|
6507
6507
|
const r = e.ofType;
|
|
6508
6508
|
return au(t) ? Array.from(t, (s, o) => {
|
|
6509
6509
|
const a = jo(i, o, void 0);
|
|
6510
|
-
return
|
|
6511
|
-
}) : [
|
|
6510
|
+
return wi(s, r, n, a);
|
|
6511
|
+
}) : [wi(t, r, n, i)];
|
|
6512
6512
|
}
|
|
6513
6513
|
if (ze(e)) {
|
|
6514
6514
|
if (!Ht(t)) {
|
|
@@ -6537,7 +6537,7 @@ function vi(t, e, n, i) {
|
|
|
6537
6537
|
}
|
|
6538
6538
|
continue;
|
|
6539
6539
|
}
|
|
6540
|
-
r[o.name] =
|
|
6540
|
+
r[o.name] = wi(
|
|
6541
6541
|
a,
|
|
6542
6542
|
o.type,
|
|
6543
6543
|
n,
|
|
@@ -7550,7 +7550,7 @@ function ud(t) {
|
|
|
7550
7550
|
}
|
|
7551
7551
|
if (ze(p)) {
|
|
7552
7552
|
const w = p.toConfig();
|
|
7553
|
-
return new
|
|
7553
|
+
return new Ai({
|
|
7554
7554
|
...w,
|
|
7555
7555
|
fields: () => c(w.fields)
|
|
7556
7556
|
});
|
|
@@ -7594,7 +7594,7 @@ function cd(t) {
|
|
|
7594
7594
|
return e.set(r, s), s;
|
|
7595
7595
|
};
|
|
7596
7596
|
}
|
|
7597
|
-
function
|
|
7597
|
+
function fi(t, e, n) {
|
|
7598
7598
|
return e in t ? Object.defineProperty(t, e, {
|
|
7599
7599
|
value: n,
|
|
7600
7600
|
enumerable: !0,
|
|
@@ -7602,7 +7602,7 @@ function ci(t, e, n) {
|
|
|
7602
7602
|
writable: !0
|
|
7603
7603
|
}) : t[e] = n, t;
|
|
7604
7604
|
}
|
|
7605
|
-
const
|
|
7605
|
+
const di = /* @__PURE__ */ new WeakMap();
|
|
7606
7606
|
class fd {
|
|
7607
7607
|
/**
|
|
7608
7608
|
* Called for each type defined with the SchemaBuilder
|
|
@@ -7686,11 +7686,11 @@ class fd {
|
|
|
7686
7686
|
return e;
|
|
7687
7687
|
}
|
|
7688
7688
|
runUnique(e, n) {
|
|
7689
|
-
if (
|
|
7689
|
+
if (di.has(this.builder) || di.set(this.builder, /* @__PURE__ */ new Map()), !di.get(this.builder).has(e)) {
|
|
7690
7690
|
const i = n();
|
|
7691
|
-
return
|
|
7691
|
+
return di.get(this.builder).set(e, i), i;
|
|
7692
7692
|
}
|
|
7693
|
-
return
|
|
7693
|
+
return di.get(this.builder).get(e);
|
|
7694
7694
|
}
|
|
7695
7695
|
/**
|
|
7696
7696
|
* Creates a data object unique to the current request for use by this plugin
|
|
@@ -7709,7 +7709,7 @@ class fd {
|
|
|
7709
7709
|
return this.requestDataMap(e);
|
|
7710
7710
|
}
|
|
7711
7711
|
constructor(e, n) {
|
|
7712
|
-
|
|
7712
|
+
fi(this, "name", void 0), fi(this, "builder", void 0), fi(this, "buildCache", void 0), fi(this, "options", void 0), fi(this, "requestDataMap", cd((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
|
|
7713
7713
|
}
|
|
7714
7714
|
}
|
|
7715
7715
|
function dd(t, e, n) {
|
|
@@ -7756,7 +7756,7 @@ class hd extends fd {
|
|
|
7756
7756
|
super(e, "PothosMergedPlugin"), dd(this, "plugins", void 0), this.plugins = n;
|
|
7757
7757
|
}
|
|
7758
7758
|
}
|
|
7759
|
-
const $n = Symbol.for("Pothos.outputShapeKey"),
|
|
7759
|
+
const $n = Symbol.for("Pothos.outputShapeKey"), li = Symbol.for("Pothos.parentShapeKey"), Gi = Symbol.for("Pothos.inputShapeKey"), pd = Symbol.for("Pothos.inputFieldShapeKey"), gd = Symbol.for("Pothos.outputFieldShapeKey"), Or = Symbol.for("Pothos.typeBrandKey");
|
|
7760
7760
|
function Bo(t, e, n) {
|
|
7761
7761
|
return e in t ? Object.defineProperty(t, e, {
|
|
7762
7762
|
value: n,
|
|
@@ -7781,7 +7781,7 @@ function jn(t, e, n) {
|
|
|
7781
7781
|
writable: !0
|
|
7782
7782
|
}) : t[e] = n, t;
|
|
7783
7783
|
}
|
|
7784
|
-
let md = $n, yd =
|
|
7784
|
+
let md = $n, yd = li, bd = Gi;
|
|
7785
7785
|
class Ou extends Ne {
|
|
7786
7786
|
constructor(e) {
|
|
7787
7787
|
super("Scalar", e), jn(this, "kind", "Scalar"), jn(this, "$inferType", void 0), jn(this, "$inferInput", void 0), jn(this, md, void 0), jn(this, yd, void 0), jn(this, bd, void 0);
|
|
@@ -7800,7 +7800,7 @@ class Nu extends Ou {
|
|
|
7800
7800
|
super(e.name), Ed(this, "type", void 0), this.type = e;
|
|
7801
7801
|
}
|
|
7802
7802
|
}
|
|
7803
|
-
function
|
|
7803
|
+
function hi(t, e, n) {
|
|
7804
7804
|
return e in t ? Object.defineProperty(t, e, {
|
|
7805
7805
|
value: n,
|
|
7806
7806
|
enumerable: !0,
|
|
@@ -7811,7 +7811,7 @@ function di(t, e, n) {
|
|
|
7811
7811
|
let vd = Gi;
|
|
7812
7812
|
class $r extends Ne {
|
|
7813
7813
|
constructor(e, n) {
|
|
7814
|
-
super("InputList", `InputList<${String(e)}>`),
|
|
7814
|
+
super("InputList", `InputList<${String(e)}>`), hi(this, "kind", "InputList"), hi(this, vd, void 0), hi(this, "$inferInput", void 0), hi(this, "listType", void 0), hi(this, "required", void 0), this.listType = e, this.required = n;
|
|
7815
7815
|
}
|
|
7816
7816
|
}
|
|
7817
7817
|
function Mn(t, e, n) {
|
|
@@ -7822,7 +7822,7 @@ function Mn(t, e, n) {
|
|
|
7822
7822
|
writable: !0
|
|
7823
7823
|
}) : t[e] = n, t;
|
|
7824
7824
|
}
|
|
7825
|
-
let wd = $n, Td =
|
|
7825
|
+
let wd = $n, Td = li;
|
|
7826
7826
|
class Pr extends Ne {
|
|
7827
7827
|
constructor(e, n) {
|
|
7828
7828
|
super("List", `List<${String(e)}>`), Mn(this, "kind", "List"), Mn(this, "$inferType", void 0), Mn(this, wd, void 0), Mn(this, Td, void 0), Mn(this, "listType", void 0), Mn(this, "nullable", void 0), this.listType = e, this.nullable = n;
|
|
@@ -7980,7 +7980,7 @@ class Ad {
|
|
|
7980
7980
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
7981
7981
|
e.kind === "InputObject" && this.buildTypeFromConfig(e);
|
|
7982
7982
|
}), this.types.forEach((e) => {
|
|
7983
|
-
e instanceof
|
|
7983
|
+
e instanceof Ai && e.getFields();
|
|
7984
7984
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
7985
7985
|
e.kind === "Interface" && this.buildTypeFromConfig(e);
|
|
7986
7986
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
@@ -8127,7 +8127,7 @@ class Ad {
|
|
|
8127
8127
|
}
|
|
8128
8128
|
getOutputType(e) {
|
|
8129
8129
|
const n = this.getType(e);
|
|
8130
|
-
if (n instanceof
|
|
8130
|
+
if (n instanceof Ai)
|
|
8131
8131
|
throw new ie(`Expected ${String(e)} to be an output type but it was defined as an InputObject`);
|
|
8132
8132
|
return n;
|
|
8133
8133
|
}
|
|
@@ -8244,7 +8244,7 @@ class Ad {
|
|
|
8244
8244
|
});
|
|
8245
8245
|
}
|
|
8246
8246
|
buildInputObject(e) {
|
|
8247
|
-
const n = new
|
|
8247
|
+
const n = new Ai({
|
|
8248
8248
|
...e,
|
|
8249
8249
|
extensions: {
|
|
8250
8250
|
...e.extensions,
|
|
@@ -8315,7 +8315,7 @@ function Ji(t, e, n) {
|
|
|
8315
8315
|
writable: !0
|
|
8316
8316
|
}) : t[e] = n, t;
|
|
8317
8317
|
}
|
|
8318
|
-
let Rd = $n, Ld =
|
|
8318
|
+
let Rd = $n, Ld = li;
|
|
8319
8319
|
class Cd extends Ne {
|
|
8320
8320
|
constructor(e, n) {
|
|
8321
8321
|
super(e, n), Ji(this, "kind", void 0), Ji(this, "$inferType", void 0), Ji(this, Rd, void 0), Ji(this, Ld, void 0), this.kind = e;
|
|
@@ -8629,7 +8629,7 @@ class Es {
|
|
|
8629
8629
|
}), this.builder = e, this.kind = n, this.typename = i;
|
|
8630
8630
|
}
|
|
8631
8631
|
}
|
|
8632
|
-
function
|
|
8632
|
+
function pi(t, e, n) {
|
|
8633
8633
|
return e in t ? Object.defineProperty(t, e, {
|
|
8634
8634
|
value: n,
|
|
8635
8635
|
enumerable: !0,
|
|
@@ -8643,7 +8643,7 @@ class jd {
|
|
|
8643
8643
|
return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
|
|
8644
8644
|
}
|
|
8645
8645
|
constructor(e, n) {
|
|
8646
|
-
|
|
8646
|
+
pi(this, "kind", void 0), pi(this, "parentTypename", void 0), pi(this, "fieldName", void 0), pi(this, "$inferType", void 0), pi(this, Pd, void 0), this.kind = e, this.parentTypename = n;
|
|
8647
8647
|
}
|
|
8648
8648
|
}
|
|
8649
8649
|
function Ki(t, e, n) {
|
|
@@ -9026,7 +9026,7 @@ class nr extends jr {
|
|
|
9026
9026
|
super("Subscription", e, "Subscription", "Object");
|
|
9027
9027
|
}
|
|
9028
9028
|
}
|
|
9029
|
-
function
|
|
9029
|
+
function gi(t, e, n) {
|
|
9030
9030
|
return e in t ? Object.defineProperty(t, e, {
|
|
9031
9031
|
value: n,
|
|
9032
9032
|
enumerable: !0,
|
|
@@ -9037,7 +9037,7 @@ function pi(t, e, n) {
|
|
|
9037
9037
|
let Vd = $n, Bd = Gi;
|
|
9038
9038
|
class Gd extends Ne {
|
|
9039
9039
|
constructor(e) {
|
|
9040
|
-
super("Enum", e),
|
|
9040
|
+
super("Enum", e), gi(this, "kind", "Enum"), gi(this, "$inferType", void 0), gi(this, "$inferInput", void 0), gi(this, Vd, void 0), gi(this, Bd, void 0);
|
|
9041
9041
|
}
|
|
9042
9042
|
}
|
|
9043
9043
|
function cr(t, e, n) {
|
|
@@ -9062,7 +9062,7 @@ class zd extends xu {
|
|
|
9062
9062
|
super(n), cr(this, "builder", void 0), this.builder = e;
|
|
9063
9063
|
}
|
|
9064
9064
|
}
|
|
9065
|
-
function
|
|
9065
|
+
function Ti(t, e, n) {
|
|
9066
9066
|
return e in t ? Object.defineProperty(t, e, {
|
|
9067
9067
|
value: n,
|
|
9068
9068
|
enumerable: !0,
|
|
@@ -9070,10 +9070,10 @@ function wi(t, e, n) {
|
|
|
9070
9070
|
writable: !0
|
|
9071
9071
|
}) : t[e] = n, t;
|
|
9072
9072
|
}
|
|
9073
|
-
let Qd = $n, Wd =
|
|
9073
|
+
let Qd = $n, Wd = li;
|
|
9074
9074
|
class Fu extends Ne {
|
|
9075
9075
|
constructor(e) {
|
|
9076
|
-
super("Interface", e),
|
|
9076
|
+
super("Interface", e), Ti(this, "kind", "Interface"), Ti(this, "$inferType", void 0), Ti(this, Qd, void 0), Ti(this, Wd, void 0);
|
|
9077
9077
|
}
|
|
9078
9078
|
}
|
|
9079
9079
|
class Yd extends Fu {
|
|
@@ -9081,10 +9081,10 @@ class Yd extends Fu {
|
|
|
9081
9081
|
return this.builder.interfaceType(this, e);
|
|
9082
9082
|
}
|
|
9083
9083
|
constructor(e, n) {
|
|
9084
|
-
super(n),
|
|
9084
|
+
super(n), Ti(this, "builder", void 0), this.builder = e;
|
|
9085
9085
|
}
|
|
9086
9086
|
}
|
|
9087
|
-
function
|
|
9087
|
+
function Si(t, e, n) {
|
|
9088
9088
|
return e in t ? Object.defineProperty(t, e, {
|
|
9089
9089
|
value: n,
|
|
9090
9090
|
enumerable: !0,
|
|
@@ -9092,10 +9092,10 @@ function Ti(t, e, n) {
|
|
|
9092
9092
|
writable: !0
|
|
9093
9093
|
}) : t[e] = n, t;
|
|
9094
9094
|
}
|
|
9095
|
-
let Hd = $n, Jd =
|
|
9095
|
+
let Hd = $n, Jd = li;
|
|
9096
9096
|
class vs extends Ne {
|
|
9097
9097
|
constructor(e) {
|
|
9098
|
-
super("Object", e),
|
|
9098
|
+
super("Object", e), Si(this, "kind", "Object"), Si(this, "$inferType", void 0), Si(this, Hd, void 0), Si(this, Jd, void 0);
|
|
9099
9099
|
}
|
|
9100
9100
|
}
|
|
9101
9101
|
class Kd extends vs {
|
|
@@ -9103,7 +9103,7 @@ class Kd extends vs {
|
|
|
9103
9103
|
return this.builder.objectType(this, e);
|
|
9104
9104
|
}
|
|
9105
9105
|
constructor(e, n) {
|
|
9106
|
-
super(n),
|
|
9106
|
+
super(n), Si(this, "builder", void 0), this.builder = e;
|
|
9107
9107
|
}
|
|
9108
9108
|
}
|
|
9109
9109
|
function ir(t, e, n) {
|
|
@@ -9114,7 +9114,7 @@ function ir(t, e, n) {
|
|
|
9114
9114
|
writable: !0
|
|
9115
9115
|
}) : t[e] = n, t;
|
|
9116
9116
|
}
|
|
9117
|
-
let Xd = $n, Zd =
|
|
9117
|
+
let Xd = $n, Zd = li;
|
|
9118
9118
|
class eh extends Ne {
|
|
9119
9119
|
constructor(e) {
|
|
9120
9120
|
super("Union", e), ir(this, "kind", "Union"), ir(this, "$inferType", void 0), ir(this, Xd, void 0), ir(this, Zd, void 0);
|
|
@@ -11929,7 +11929,7 @@ const Ah = Th(function(e, n, i, r, s) {
|
|
|
11929
11929
|
function Ur(t) {
|
|
11930
11930
|
return (t == null ? void 0 : t[Symbol.asyncIterator]) != null;
|
|
11931
11931
|
}
|
|
11932
|
-
function
|
|
11932
|
+
function ci(t, e, n) {
|
|
11933
11933
|
return { prev: t, key: e, typename: n };
|
|
11934
11934
|
}
|
|
11935
11935
|
function Ve(t) {
|
|
@@ -12019,7 +12019,7 @@ const En = {
|
|
|
12019
12019
|
magenta: "\x1B[35m",
|
|
12020
12020
|
cyan: "\x1B[36m",
|
|
12021
12021
|
reset: "\x1B[0m"
|
|
12022
|
-
}, Xo = En.yellow + "WARN" + En.reset, Zo = En.cyan + "INFO" + En.reset, ea = En.red + "ERR" + En.reset, ta = En.magenta + "DEBUG" + En.reset,
|
|
12022
|
+
}, Xo = En.yellow + "WARN" + En.reset, Zo = En.cyan + "INFO" + En.reset, ea = En.red + "ERR" + En.reset, ta = En.magenta + "DEBUG" + En.reset, mi = {
|
|
12023
12023
|
debug: 0,
|
|
12024
12024
|
info: 1,
|
|
12025
12025
|
warn: 2,
|
|
@@ -12027,12 +12027,12 @@ const En = {
|
|
|
12027
12027
|
silent: 4
|
|
12028
12028
|
}, rr = () => {
|
|
12029
12029
|
}, Vr = (t) => (...e) => console.log(t, ...e), Ch = console.debug ? (...t) => console.debug(ta, ...t) : Vr(ta), kh = console.info ? (...t) => console.info(Zo, ...t) : Vr(Zo), Dh = console.warn ? (...t) => console.warn(Xo, ...t) : Vr(Xo), $h = console.error ? (...t) => console.error(ea, ...t) : Vr(ea), is = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
|
|
12030
|
-
const n =
|
|
12030
|
+
const n = mi[t];
|
|
12031
12031
|
return {
|
|
12032
|
-
debug: n >
|
|
12033
|
-
info: n >
|
|
12034
|
-
warn: n >
|
|
12035
|
-
error: n >
|
|
12032
|
+
debug: n > mi.debug ? rr : Ch,
|
|
12033
|
+
info: n > mi.info ? rr : kh,
|
|
12034
|
+
warn: n > mi.warn ? rr : Dh,
|
|
12035
|
+
error: n > mi.error ? rr : $h
|
|
12036
12036
|
};
|
|
12037
12037
|
};
|
|
12038
12038
|
var Ph = '<!doctype html><html lang=en><head><meta charset=utf-8><title>__TITLE__</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><link rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/style.css></head><body id=body class=no-focus-outline><noscript>You need to enable JavaScript to run this app.</noscript><div id=root></div><script type=module>import{renderYogaGraphiQL}from"https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
|
|
@@ -12411,7 +12411,7 @@ function Kh(t) {
|
|
|
12411
12411
|
function Xh(t, e, n, i, r) {
|
|
12412
12412
|
return vh(r, (s, [o, a]) => {
|
|
12413
12413
|
var c;
|
|
12414
|
-
const u =
|
|
12414
|
+
const u = ci(i, o, e.name);
|
|
12415
12415
|
if ((c = t.signal) != null && c.aborted)
|
|
12416
12416
|
throw t.signal.reason;
|
|
12417
12417
|
return new pt(() => Gu(t, e, n, a, u)).then((f) => (f === void 0 || (s[o] = f), s));
|
|
@@ -12425,7 +12425,7 @@ function Zs(t, e, n, i, r, s) {
|
|
|
12425
12425
|
for (const [c, f] of r) {
|
|
12426
12426
|
if ((u = t.signal) != null && u.aborted)
|
|
12427
12427
|
throw t.signal.reason;
|
|
12428
|
-
const g =
|
|
12428
|
+
const g = ci(i, c, e.name), p = Gu(t, e, n, f, g, s);
|
|
12429
12429
|
p !== void 0 && (o[c] = p, Ae(p) && (a = !0));
|
|
12430
12430
|
}
|
|
12431
12431
|
} catch (c) {
|
|
@@ -12533,7 +12533,7 @@ async function ep(t, e, n, i, r, s, o) {
|
|
|
12533
12533
|
fp(g, s, t, n, i, e, r, u.label, o);
|
|
12534
12534
|
break;
|
|
12535
12535
|
}
|
|
12536
|
-
const w =
|
|
12536
|
+
const w = ci(r, g, void 0);
|
|
12537
12537
|
let E;
|
|
12538
12538
|
try {
|
|
12539
12539
|
if (E = await s.next(), E.done)
|
|
@@ -12560,7 +12560,7 @@ function tp(t, e, n, i, r, s, o) {
|
|
|
12560
12560
|
const p = [];
|
|
12561
12561
|
let w = 0;
|
|
12562
12562
|
for (const E of s) {
|
|
12563
|
-
const R =
|
|
12563
|
+
const R = ci(r, w, void 0);
|
|
12564
12564
|
if (c && typeof c.initialCount == "number" && w >= c.initialCount) {
|
|
12565
12565
|
g = lp(r, R, E, t, n, i, a, c.label, g), w++;
|
|
12566
12566
|
continue;
|
|
@@ -12749,7 +12749,7 @@ function up(t) {
|
|
|
12749
12749
|
throw X(`The subscription field "${f}" is not defined.`, {
|
|
12750
12750
|
nodes: c
|
|
12751
12751
|
});
|
|
12752
|
-
const p =
|
|
12752
|
+
const p = ci(void 0, u, o.name), w = qu(t, g, c, o, p);
|
|
12753
12753
|
try {
|
|
12754
12754
|
const E = Du(g, c[0], r), R = t.contextValue, y = (g.subscribe ?? t.subscribeFieldResolver)(s, E, R, w);
|
|
12755
12755
|
return Ae(y) ? y.then(fa).then(void 0, (S) => {
|
|
@@ -12839,7 +12839,7 @@ async function cp(t, e, n, i, r, s, o) {
|
|
|
12839
12839
|
async function fp(t, e, n, i, r, s, o, a, u) {
|
|
12840
12840
|
let c = t, f = u ?? void 0;
|
|
12841
12841
|
for (; ; ) {
|
|
12842
|
-
const g =
|
|
12842
|
+
const g = ci(o, c, void 0), p = new Hu({
|
|
12843
12843
|
label: a,
|
|
12844
12844
|
path: g,
|
|
12845
12845
|
parentContext: f,
|
|
@@ -13788,7 +13788,7 @@ function ng(t) {
|
|
|
13788
13788
|
const e = new to(t);
|
|
13789
13789
|
return nl(e);
|
|
13790
13790
|
}
|
|
13791
|
-
function
|
|
13791
|
+
function Ri(t, e) {
|
|
13792
13792
|
let n = t.headers.get("content-type");
|
|
13793
13793
|
return n = (n == null ? void 0 : n.split(",")[0]) || null, n === e || !!(n != null && n.startsWith(`${e};`));
|
|
13794
13794
|
}
|
|
@@ -13800,14 +13800,14 @@ function rg(t) {
|
|
|
13800
13800
|
return nl(n);
|
|
13801
13801
|
}
|
|
13802
13802
|
function sg(t) {
|
|
13803
|
-
return t.method === "POST" &&
|
|
13803
|
+
return t.method === "POST" && Ri(t, "application/x-www-form-urlencoded");
|
|
13804
13804
|
}
|
|
13805
13805
|
async function og(t) {
|
|
13806
13806
|
const e = await t.text();
|
|
13807
13807
|
return ng(e);
|
|
13808
13808
|
}
|
|
13809
13809
|
function ag(t) {
|
|
13810
|
-
return t.method === "POST" &&
|
|
13810
|
+
return t.method === "POST" && Ri(t, "application/graphql");
|
|
13811
13811
|
}
|
|
13812
13812
|
async function ug(t) {
|
|
13813
13813
|
return {
|
|
@@ -13815,7 +13815,7 @@ async function ug(t) {
|
|
|
13815
13815
|
};
|
|
13816
13816
|
}
|
|
13817
13817
|
function lg(t) {
|
|
13818
|
-
return t.method === "POST" && (
|
|
13818
|
+
return t.method === "POST" && (Ri(t, "application/json") || Ri(t, "application/graphql+json"));
|
|
13819
13819
|
}
|
|
13820
13820
|
async function cg(t) {
|
|
13821
13821
|
let e;
|
|
@@ -13860,7 +13860,7 @@ function fg(t, e, n) {
|
|
|
13860
13860
|
s = s[a] = i === r ? n : typeof (o = s[a]) == typeof e ? o : e[i] * 0 !== 0 || ~("" + e[i]).indexOf(".") ? {} : [];
|
|
13861
13861
|
}
|
|
13862
13862
|
function dg(t) {
|
|
13863
|
-
return t.method === "POST" &&
|
|
13863
|
+
return t.method === "POST" && Ri(t, "multipart/form-data");
|
|
13864
13864
|
}
|
|
13865
13865
|
async function hg(t) {
|
|
13866
13866
|
let e;
|
|
@@ -13930,7 +13930,7 @@ function gg(t, e) {
|
|
|
13930
13930
|
}
|
|
13931
13931
|
function mg(t, e) {
|
|
13932
13932
|
if (!bg(t))
|
|
13933
|
-
throw X(`Expected params to be an object but given ${
|
|
13933
|
+
throw X(`Expected params to be an object but given ${_i(t)}.`, {
|
|
13934
13934
|
extensions: {
|
|
13935
13935
|
http: {
|
|
13936
13936
|
status: 400,
|
|
@@ -13952,7 +13952,7 @@ function mg(t, e) {
|
|
|
13952
13952
|
}
|
|
13953
13953
|
}
|
|
13954
13954
|
});
|
|
13955
|
-
const n =
|
|
13955
|
+
const n = _i(t.query);
|
|
13956
13956
|
if (n !== "string")
|
|
13957
13957
|
throw X(`Expected "query" param to be a string, but given ${n}.`, {
|
|
13958
13958
|
extensions: {
|
|
@@ -13964,7 +13964,7 @@ function mg(t, e) {
|
|
|
13964
13964
|
}
|
|
13965
13965
|
}
|
|
13966
13966
|
});
|
|
13967
|
-
const i =
|
|
13967
|
+
const i = _i(t.variables);
|
|
13968
13968
|
if (!["object", "null", "undefined"].includes(i))
|
|
13969
13969
|
throw X(`Expected "variables" param to be empty or an object, but given ${i}.`, {
|
|
13970
13970
|
extensions: {
|
|
@@ -13976,7 +13976,7 @@ function mg(t, e) {
|
|
|
13976
13976
|
}
|
|
13977
13977
|
}
|
|
13978
13978
|
});
|
|
13979
|
-
const r =
|
|
13979
|
+
const r = _i(t.extensions);
|
|
13980
13980
|
if (!["object", "null", "undefined"].includes(r))
|
|
13981
13981
|
throw X(`Expected "extensions" param to be empty or an object, but given ${r}.`, {
|
|
13982
13982
|
extensions: {
|
|
@@ -13997,11 +13997,11 @@ function yg(t) {
|
|
|
13997
13997
|
}
|
|
13998
13998
|
};
|
|
13999
13999
|
}
|
|
14000
|
-
function
|
|
14000
|
+
function _i(t) {
|
|
14001
14001
|
return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
|
|
14002
14002
|
}
|
|
14003
14003
|
function bg(t) {
|
|
14004
|
-
return
|
|
14004
|
+
return _i(t) === "object";
|
|
14005
14005
|
}
|
|
14006
14006
|
function Eg(t) {
|
|
14007
14007
|
return t === "GET" || t === "POST";
|
|
@@ -14193,7 +14193,7 @@ let Ng = (Wt = class {
|
|
|
14193
14193
|
}
|
|
14194
14194
|
}, Yn = new WeakMap(), // private constructor
|
|
14195
14195
|
Y(Wt, Yn, !1), Wt);
|
|
14196
|
-
var La, Ca, vt, rt, wt, Tt, Hn, Jn, Ie, St, Te, de, ee, Qe, st, Ge, Re, _t, Le, It, Ot, ot, Nt, pn, We, V, Is, An, Zt, Li, at, ol, xn, Kn, Ci, sn, on, Os, pr, gr, ce, Ns,
|
|
14196
|
+
var La, Ca, vt, rt, wt, Tt, Hn, Jn, Ie, St, Te, de, ee, Qe, st, Ge, Re, _t, Le, It, Ot, ot, Nt, pn, We, V, Is, An, Zt, Li, at, ol, xn, Kn, Ci, sn, on, Os, pr, gr, ce, Ns, Ii, an, As, Xn;
|
|
14197
14197
|
let Ag = (Xn = class {
|
|
14198
14198
|
constructor(e) {
|
|
14199
14199
|
Y(this, V);
|
|
@@ -14379,7 +14379,7 @@ let Ag = (Xn = class {
|
|
|
14379
14379
|
},
|
|
14380
14380
|
moveToTail: (n) => {
|
|
14381
14381
|
var i;
|
|
14382
|
-
return k(i = e, V,
|
|
14382
|
+
return k(i = e, V, Ii).call(i, n);
|
|
14383
14383
|
},
|
|
14384
14384
|
indexes: (n) => {
|
|
14385
14385
|
var i;
|
|
@@ -14681,7 +14681,7 @@ let Ag = (Xn = class {
|
|
|
14681
14681
|
if (g === void 0)
|
|
14682
14682
|
g = l(this, Ie) === 0 ? l(this, Re) : l(this, _t).length !== 0 ? l(this, _t).pop() : l(this, Ie) === l(this, vt) ? k(this, V, pr).call(this, !1) : l(this, Ie), l(this, de)[g] = e, l(this, ee)[g] = n, l(this, Te).set(e, g), l(this, Qe)[l(this, Re)] = g, l(this, st)[g] = l(this, Re), $(this, Re, g), Tn(this, Ie)._++, l(this, Kn).call(this, g, f, u), u && (u.set = "add"), c = !1;
|
|
14683
14683
|
else {
|
|
14684
|
-
k(this, V,
|
|
14684
|
+
k(this, V, Ii).call(this, g);
|
|
14685
14685
|
const y = l(this, ee)[g];
|
|
14686
14686
|
if (n !== y) {
|
|
14687
14687
|
if (l(this, pn) && k(this, V, ce).call(this, y)) {
|
|
@@ -14828,7 +14828,7 @@ let Ag = (Xn = class {
|
|
|
14828
14828
|
}
|
|
14829
14829
|
const T = l(this, at).call(this, O);
|
|
14830
14830
|
if (!x && !T)
|
|
14831
|
-
return y && (y.fetch = "hit"), k(this, V,
|
|
14831
|
+
return y && (y.fetch = "hit"), k(this, V, Ii).call(this, O), r && l(this, An).call(this, O), y && l(this, Zt).call(this, y, O), C;
|
|
14832
14832
|
const _ = k(this, V, gr).call(this, e, O, A, R), b = _.__staleWhileFetching !== void 0 && i;
|
|
14833
14833
|
return y && (y.fetch = T ? "stale" : "refresh", b && T && (y.returnedStale = !0)), b ? _.__staleWhileFetching : _.__returned = _;
|
|
14834
14834
|
}
|
|
@@ -14862,7 +14862,7 @@ let Ag = (Xn = class {
|
|
|
14862
14862
|
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Te).get(e);
|
|
14863
14863
|
if (a !== void 0) {
|
|
14864
14864
|
const u = l(this, ee)[a], c = k(this, V, ce).call(this, u);
|
|
14865
|
-
return o && l(this, Zt).call(this, o, a), l(this, at).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, V, an).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, V,
|
|
14865
|
+
return o && l(this, Zt).call(this, o, a), l(this, at).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, V, an).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, V, Ii).call(this, a), r && l(this, An).call(this, a), u));
|
|
14866
14866
|
} else o && (o.get = "miss");
|
|
14867
14867
|
}
|
|
14868
14868
|
/**
|
|
@@ -15006,7 +15006,7 @@ let Ag = (Xn = class {
|
|
|
15006
15006
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof Ar;
|
|
15007
15007
|
}, Ns = function(e, n) {
|
|
15008
15008
|
l(this, st)[n] = e, l(this, Qe)[e] = n;
|
|
15009
|
-
},
|
|
15009
|
+
}, Ii = function(e) {
|
|
15010
15010
|
e !== l(this, Re) && (e === l(this, Ge) ? $(this, Ge, l(this, Qe)[e]) : k(this, V, Ns).call(this, l(this, st)[e], l(this, Qe)[e]), k(this, V, Ns).call(this, l(this, Re), e), $(this, Re, e));
|
|
15011
15011
|
}, an = function(e, n) {
|
|
15012
15012
|
var r, s, o, a;
|
|
@@ -15101,7 +15101,7 @@ function Rg({ documentCache: t = rs(), errorCache: e = rs(), validationCache: n
|
|
|
15101
15101
|
};
|
|
15102
15102
|
}
|
|
15103
15103
|
const Lg = () => !0;
|
|
15104
|
-
function
|
|
15104
|
+
function yi(t) {
|
|
15105
15105
|
const e = t.match || Lg;
|
|
15106
15106
|
return {
|
|
15107
15107
|
onRequestParse({ request: n, setRequestParser: i }) {
|
|
@@ -15560,23 +15560,23 @@ class Qg {
|
|
|
15560
15560
|
logger: this.logger
|
|
15561
15561
|
}),
|
|
15562
15562
|
// Middlewares before the GraphQL execution
|
|
15563
|
-
|
|
15563
|
+
yi({
|
|
15564
15564
|
match: ig,
|
|
15565
15565
|
parse: rg
|
|
15566
15566
|
}),
|
|
15567
|
-
|
|
15567
|
+
yi({
|
|
15568
15568
|
match: lg,
|
|
15569
15569
|
parse: cg
|
|
15570
15570
|
}),
|
|
15571
|
-
(e == null ? void 0 : e.multipart) !== !1 &&
|
|
15571
|
+
(e == null ? void 0 : e.multipart) !== !1 && yi({
|
|
15572
15572
|
match: dg,
|
|
15573
15573
|
parse: hg
|
|
15574
15574
|
}),
|
|
15575
|
-
|
|
15575
|
+
yi({
|
|
15576
15576
|
match: ag,
|
|
15577
15577
|
parse: ug
|
|
15578
15578
|
}),
|
|
15579
|
-
|
|
15579
|
+
yi({
|
|
15580
15580
|
match: sg,
|
|
15581
15581
|
parse: og
|
|
15582
15582
|
}),
|
|
@@ -15765,7 +15765,7 @@ const On = class On {
|
|
|
15765
15765
|
Zn = new WeakMap(), // private constructor
|
|
15766
15766
|
Y(On, Zn, !1);
|
|
15767
15767
|
let Fs = On;
|
|
15768
|
-
var Da, $a, At, ut, xt, Ft, ei, ti, Oe, Rt, Se, he, te, Ye, lt, qe, Ce, Lt, ke, Ct, kt, ct, Dt, gn, He, B, Ls, Fn, en, ki, ft, fl, Rn, ni, Di, ln, cn, Cs, yr, br, fe, ks,
|
|
15768
|
+
var Da, $a, At, ut, xt, Ft, ei, ti, Oe, Rt, Se, he, te, Ye, lt, qe, Ce, Lt, ke, Ct, kt, ct, Dt, gn, He, B, Ls, Fn, en, ki, ft, fl, Rn, ni, Di, ln, cn, Cs, yr, br, fe, ks, Oi, fn, Ds;
|
|
15769
15769
|
const fo = class fo {
|
|
15770
15770
|
constructor(e) {
|
|
15771
15771
|
Y(this, B);
|
|
@@ -15951,7 +15951,7 @@ const fo = class fo {
|
|
|
15951
15951
|
},
|
|
15952
15952
|
moveToTail: (n) => {
|
|
15953
15953
|
var i;
|
|
15954
|
-
return k(i = e, B,
|
|
15954
|
+
return k(i = e, B, Oi).call(i, n);
|
|
15955
15955
|
},
|
|
15956
15956
|
indexes: (n) => {
|
|
15957
15957
|
var i;
|
|
@@ -16253,7 +16253,7 @@ const fo = class fo {
|
|
|
16253
16253
|
if (g === void 0)
|
|
16254
16254
|
g = l(this, Oe) === 0 ? l(this, Ce) : l(this, Lt).length !== 0 ? l(this, Lt).pop() : l(this, Oe) === l(this, At) ? k(this, B, yr).call(this, !1) : l(this, Oe), l(this, he)[g] = e, l(this, te)[g] = n, l(this, Se).set(e, g), l(this, Ye)[l(this, Ce)] = g, l(this, lt)[g] = l(this, Ce), $(this, Ce, g), Tn(this, Oe)._++, l(this, ni).call(this, g, f, u), u && (u.set = "add"), c = !1;
|
|
16255
16255
|
else {
|
|
16256
|
-
k(this, B,
|
|
16256
|
+
k(this, B, Oi).call(this, g);
|
|
16257
16257
|
const y = l(this, te)[g];
|
|
16258
16258
|
if (n !== y) {
|
|
16259
16259
|
if (l(this, gn) && k(this, B, fe).call(this, y)) {
|
|
@@ -16400,7 +16400,7 @@ const fo = class fo {
|
|
|
16400
16400
|
}
|
|
16401
16401
|
const T = l(this, ft).call(this, O);
|
|
16402
16402
|
if (!x && !T)
|
|
16403
|
-
return y && (y.fetch = "hit"), k(this, B,
|
|
16403
|
+
return y && (y.fetch = "hit"), k(this, B, Oi).call(this, O), r && l(this, Fn).call(this, O), y && l(this, en).call(this, y, O), C;
|
|
16404
16404
|
const _ = k(this, B, br).call(this, e, O, A, R), b = _.__staleWhileFetching !== void 0 && i;
|
|
16405
16405
|
return y && (y.fetch = T ? "stale" : "refresh", b && T && (y.returnedStale = !0)), b ? _.__staleWhileFetching : _.__returned = _;
|
|
16406
16406
|
}
|
|
@@ -16434,7 +16434,7 @@ const fo = class fo {
|
|
|
16434
16434
|
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Se).get(e);
|
|
16435
16435
|
if (a !== void 0) {
|
|
16436
16436
|
const u = l(this, te)[a], c = k(this, B, fe).call(this, u);
|
|
16437
|
-
return o && l(this, en).call(this, o, a), l(this, ft).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, B, fn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, B,
|
|
16437
|
+
return o && l(this, en).call(this, o, a), l(this, ft).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, B, fn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, B, Oi).call(this, a), r && l(this, Fn).call(this, a), u));
|
|
16438
16438
|
} else o && (o.get = "miss");
|
|
16439
16439
|
}
|
|
16440
16440
|
/**
|
|
@@ -16579,7 +16579,7 @@ At = new WeakMap(), ut = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(),
|
|
|
16579
16579
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof xr;
|
|
16580
16580
|
}, ks = function(e, n) {
|
|
16581
16581
|
l(this, lt)[n] = e, l(this, Ye)[e] = n;
|
|
16582
|
-
},
|
|
16582
|
+
}, Oi = function(e) {
|
|
16583
16583
|
e !== l(this, Ce) && (e === l(this, qe) ? $(this, qe, l(this, Ye)[e]) : k(this, B, ks).call(this, l(this, lt)[e], l(this, Ye)[e]), k(this, B, ks).call(this, l(this, Ce), e), $(this, Ce, e));
|
|
16584
16584
|
}, fn = function(e, n) {
|
|
16585
16585
|
var r, s, o, a;
|
|
@@ -17807,16 +17807,14 @@ const ss = /* @__PURE__ */ new Map(), _m = (t, e) => {
|
|
|
17807
17807
|
return o;
|
|
17808
17808
|
}, s = await r(n);
|
|
17809
17809
|
return os.set(t, s), s;
|
|
17810
|
-
}
|
|
17811
|
-
function dn(t, e) {
|
|
17810
|
+
}, dn = (t, e) => {
|
|
17812
17811
|
const n = {};
|
|
17813
17812
|
for (const [i, r] of Object.entries(t))
|
|
17814
17813
|
Array.isArray(r) ? n[i] = r.map(
|
|
17815
17814
|
(s) => typeof s == "object" && s !== null ? dn(s, e) : s
|
|
17816
17815
|
) : typeof r == "object" && r !== null ? n[i] = dn(r, e) : n[i] = r;
|
|
17817
17816
|
return e(n);
|
|
17818
|
-
}
|
|
17819
|
-
const Nm = (t) => {
|
|
17817
|
+
}, Nm = (t) => {
|
|
17820
17818
|
var e;
|
|
17821
17819
|
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = dn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = dn(t, (n) => (n.exclusiveMinimum === !0 ? (n.exclusiveMinimum = n.minimum, delete n.minimum) : n.exclusiveMinimum === !1 && delete n.exclusiveMinimum, n.exclusiveMaximum === !0 ? (n.exclusiveMaximum = n.maximum, delete n.maximum) : n.exclusiveMaximum === !1 && delete n.exclusiveMaximum, n)), t = dn(t, (n) => (n.example !== void 0 && (n.examples = {
|
|
17822
17820
|
default: n.example
|
|
@@ -17888,7 +17886,7 @@ const Nm = (t) => {
|
|
|
17888
17886
|
ttl: 60 * 10 * 1e3,
|
|
17889
17887
|
ttlAutopurge: !0,
|
|
17890
17888
|
fetchMethod: (t, e, { context: n }) => Fm(n)
|
|
17891
|
-
}), Me = new th({}),
|
|
17889
|
+
}), Me = new th({}), ai = Me.addScalarType("JSON", fh), Cm = Me.addScalarType("JSONObject", dh), ml = (t) => {
|
|
17892
17890
|
const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
|
|
17893
17891
|
(r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
|
|
17894
17892
|
), i = [...new Set(n)].filter(
|
|
@@ -17968,7 +17966,7 @@ const Nm = (t) => {
|
|
|
17968
17966
|
name: t.exposeString("name"),
|
|
17969
17967
|
summary: t.exposeString("summary", { nullable: !0 }),
|
|
17970
17968
|
description: t.exposeString("description", { nullable: !0 }),
|
|
17971
|
-
value: t.
|
|
17969
|
+
value: t.expose("value", { type: ai, nullable: !0 }),
|
|
17972
17970
|
externalValue: t.exposeString("externalValue", { nullable: !0 })
|
|
17973
17971
|
})
|
|
17974
17972
|
}), Mm = Me.enumType("ParameterIn", {
|
|
@@ -17995,12 +17993,12 @@ const Nm = (t) => {
|
|
|
17995
17993
|
})),
|
|
17996
17994
|
nullable: !0
|
|
17997
17995
|
}),
|
|
17998
|
-
schema: t.expose("schema", { type:
|
|
17996
|
+
schema: t.expose("schema", { type: ai, nullable: !0 })
|
|
17999
17997
|
})
|
|
18000
17998
|
}), El = Me.objectRef("MediaTypeObject").implement({
|
|
18001
17999
|
fields: (t) => ({
|
|
18002
18000
|
mediaType: t.exposeString("mediaType"),
|
|
18003
|
-
schema: t.expose("schema", { type:
|
|
18001
|
+
schema: t.expose("schema", { type: ai, nullable: !0 }),
|
|
18004
18002
|
examples: t.expose("examples", { type: [bl], nullable: !0 }),
|
|
18005
18003
|
encoding: t.expose("encoding", { type: [jm], nullable: !0 })
|
|
18006
18004
|
})
|
|
@@ -18015,8 +18013,8 @@ const Nm = (t) => {
|
|
|
18015
18013
|
statusCode: t.exposeString("statusCode"),
|
|
18016
18014
|
description: t.exposeString("description", { nullable: !0 }),
|
|
18017
18015
|
content: t.expose("content", { type: [El], nullable: !0 }),
|
|
18018
|
-
headers: t.expose("headers", { type:
|
|
18019
|
-
links: t.expose("links", { type:
|
|
18016
|
+
headers: t.expose("headers", { type: ai, nullable: !0 }),
|
|
18017
|
+
links: t.expose("links", { type: ai, nullable: !0 })
|
|
18020
18018
|
})
|
|
18021
18019
|
}), vl = Me.objectRef("OperationItem").implement({
|
|
18022
18020
|
fields: (t) => ({
|
|
@@ -18066,11 +18064,11 @@ const Nm = (t) => {
|
|
|
18066
18064
|
statusCode: n,
|
|
18067
18065
|
description: i.description,
|
|
18068
18066
|
content: Object.entries(i.content ?? {}).map(
|
|
18069
|
-
([r, s]) => ({
|
|
18067
|
+
([r, { schema: s, examples: o }]) => ({
|
|
18070
18068
|
mediaType: r,
|
|
18071
|
-
schema: s
|
|
18072
|
-
examples: Object.entries(
|
|
18073
|
-
([
|
|
18069
|
+
schema: s,
|
|
18070
|
+
examples: Object.entries(o ?? {}).map(
|
|
18071
|
+
([a, u]) => ({ name: a, ...u })
|
|
18074
18072
|
)
|
|
18075
18073
|
})
|
|
18076
18074
|
),
|
|
@@ -18155,7 +18153,7 @@ Me.queryType({
|
|
|
18155
18153
|
type: Gm,
|
|
18156
18154
|
args: {
|
|
18157
18155
|
type: t.arg({ type: zm, required: !0 }),
|
|
18158
|
-
input: t.arg({ type:
|
|
18156
|
+
input: t.arg({ type: ai, required: !0 })
|
|
18159
18157
|
},
|
|
18160
18158
|
resolve: async (e, n, i) => {
|
|
18161
18159
|
const r = await qm(n.input);
|
|
@@ -18173,25 +18171,27 @@ const Qm = Me.toSchema(), Wm = (t) => Wg({ schema: Qm, ...t }), Ym = () => Wm({
|
|
|
18173
18171
|
})
|
|
18174
18172
|
]
|
|
18175
18173
|
}), Hm = Ym(), Jm = self;
|
|
18176
|
-
Jm.addEventListener(
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
|
|
18183
|
-
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
18188
|
-
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
18193
|
-
|
|
18194
|
-
|
|
18195
|
-
|
|
18196
|
-
|
|
18197
|
-
|
|
18174
|
+
Jm.addEventListener("connect", (t) => {
|
|
18175
|
+
const e = t.ports[0];
|
|
18176
|
+
e.onmessage = (n) => {
|
|
18177
|
+
if (n.data.port) {
|
|
18178
|
+
const i = n.data.port;
|
|
18179
|
+
i.onmessage = async (r) => {
|
|
18180
|
+
const { id: s, body: o } = r.data, u = await (await Hm.fetch(
|
|
18181
|
+
new Request("/__z/graphql", {
|
|
18182
|
+
method: "POST",
|
|
18183
|
+
body: o,
|
|
18184
|
+
headers: {
|
|
18185
|
+
"Content-Type": "application/json"
|
|
18186
|
+
}
|
|
18187
|
+
})
|
|
18188
|
+
)).text();
|
|
18189
|
+
i.postMessage({
|
|
18190
|
+
id: s,
|
|
18191
|
+
body: u
|
|
18192
|
+
});
|
|
18193
|
+
}, i.start();
|
|
18194
|
+
}
|
|
18195
|
+
}, e.start();
|
|
18196
|
+
});
|
|
18197
|
+
//# sourceMappingURL=worker-BHClFO3A.js.map
|