polen 0.10.0 → 0.11.0-next.10
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/build/api/api.d.ts +1 -0
- package/build/api/api.d.ts.map +1 -1
- package/build/api/api.js +1 -0
- package/build/api/api.js.map +1 -1
- package/build/api/config/configurator.d.ts +55 -26
- package/build/api/config/configurator.d.ts.map +1 -1
- package/build/api/config/configurator.js +27 -9
- package/build/api/config/configurator.js.map +1 -1
- package/build/api/config/merge.d.ts.map +1 -1
- package/build/api/config/merge.js +0 -11
- package/build/api/config/merge.js.map +1 -1
- package/build/api/content/metadata.d.ts +8 -2
- package/build/api/content/metadata.d.ts.map +1 -1
- package/build/api/content/metadata.js +1 -1
- package/build/api/content/metadata.js.map +1 -1
- package/build/api/schema/data-sources/data-sources.d.ts +1 -0
- package/build/api/schema/data-sources/data-sources.d.ts.map +1 -1
- package/build/api/schema/data-sources/data-sources.js +1 -0
- package/build/api/schema/data-sources/data-sources.js.map +1 -1
- package/build/api/schema/data-sources/introspection/introspection.d.ts +83 -0
- package/build/api/schema/data-sources/introspection/introspection.d.ts.map +1 -0
- package/build/api/schema/data-sources/introspection/introspection.js +110 -0
- package/build/api/schema/data-sources/introspection/introspection.js.map +1 -0
- package/build/api/schema/data-sources/memory/memory.d.ts +2 -2
- package/build/api/schema/data-sources/memory/memory.d.ts.map +1 -1
- package/build/api/schema/data-sources/memory/memory.js +1 -3
- package/build/api/schema/data-sources/memory/memory.js.map +1 -1
- package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.d.ts +7 -3
- package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.d.ts.map +1 -1
- package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.js +15 -11
- package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.js.map +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts +16 -7
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts.map +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.js +26 -7
- package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts +7 -2
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts.map +1 -1
- package/build/api/schema/data-sources/schema-file/schema-file.js +13 -5
- package/build/api/schema/data-sources/schema-file/schema-file.js.map +1 -1
- package/build/api/schema/metadata.d.ts +16 -0
- package/build/api/schema/metadata.d.ts.map +1 -0
- package/build/api/schema/metadata.js +19 -0
- package/build/api/schema/metadata.js.map +1 -0
- package/build/api/schema/read.d.ts +85 -11
- package/build/api/schema/read.d.ts.map +1 -1
- package/build/api/schema/read.js +15 -6
- package/build/api/schema/read.js.map +1 -1
- package/build/api/schema/schema.d.ts +33 -2
- package/build/api/schema/schema.d.ts.map +1 -1
- package/build/api/schema/schema.js +42 -0
- package/build/api/schema/schema.js.map +1 -1
- package/build/api/schema-source/index.d.ts +2 -0
- package/build/api/schema-source/index.d.ts.map +1 -0
- package/build/api/schema-source/index.js +2 -0
- package/build/api/schema-source/index.js.map +1 -0
- package/build/api/schema-source/schema-source.d.ts +33 -0
- package/build/api/schema-source/schema-source.d.ts.map +1 -0
- package/build/api/schema-source/schema-source.js +137 -0
- package/build/api/schema-source/schema-source.js.map +1 -0
- package/build/api/static/manifest.d.ts +1 -2
- package/build/api/static/manifest.d.ts.map +1 -1
- package/build/api/static/manifest.js +1 -1
- package/build/api/static/manifest.js.map +1 -1
- package/build/api/vite/plugins/build.d.ts.map +1 -1
- package/build/api/vite/plugins/build.js +3 -0
- package/build/api/vite/plugins/build.js.map +1 -1
- package/build/api/vite/plugins/core.d.ts +1 -0
- package/build/api/vite/plugins/core.d.ts.map +1 -1
- package/build/api/vite/plugins/core.js +25 -22
- package/build/api/vite/plugins/core.js.map +1 -1
- package/build/api/vite/plugins/main.d.ts.map +1 -1
- package/build/api/vite/plugins/main.js +1 -8
- package/build/api/vite/plugins/main.js.map +1 -1
- package/build/api/vite/plugins/schema-assets.d.ts +22 -0
- package/build/api/vite/plugins/schema-assets.d.ts.map +1 -0
- package/build/api/vite/plugins/schema-assets.js +310 -0
- package/build/api/vite/plugins/schema-assets.js.map +1 -0
- package/build/api/vite/plugins/serve.d.ts.map +1 -1
- package/build/api/vite/plugins/serve.js +11 -0
- package/build/api/vite/plugins/serve.js.map +1 -1
- package/build/cli/commands/open.js +1 -1
- package/build/cli/commands/open.js.map +1 -1
- package/build/lib/grafaid/schema/schema.d.ts +1 -1
- package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
- package/build/lib/grafaid/schema/schema.js +1 -1
- package/build/lib/grafaid/schema/schema.js.map +1 -1
- package/build/lib/graphql-change/change-groups.d.ts +2 -0
- package/build/lib/graphql-change/change-groups.d.ts.map +1 -1
- package/build/lib/graphql-change/change-groups.js +54 -0
- package/build/lib/graphql-change/change-groups.js.map +1 -1
- package/build/lib/kit-temp.d.ts +9 -0
- package/build/lib/kit-temp.d.ts.map +1 -1
- package/build/lib/kit-temp.js +14 -2
- package/build/lib/kit-temp.js.map +1 -1
- package/build/lib/path-map/path-map.d.ts.map +1 -1
- package/build/lib/path-map/path-map.js +3 -1
- package/build/lib/path-map/path-map.js.map +1 -1
- package/build/lib/react-router-aid/react-router-aid.d.ts +5 -3
- package/build/lib/react-router-aid/react-router-aid.d.ts.map +1 -1
- package/build/lib/react-router-aid/react-router-aid.js +7 -4
- package/build/lib/react-router-aid/react-router-aid.js.map +1 -1
- package/build/project-data.d.ts +3 -11
- package/build/project-data.d.ts.map +1 -1
- package/build/template/components/Changelog.d.ts +3 -3
- package/build/template/components/Changelog.d.ts.map +1 -1
- package/build/template/components/Changelog.js +8 -84
- package/build/template/components/Changelog.js.map +1 -1
- package/build/template/components/CodeBlock.d.ts +2 -0
- package/build/template/components/CodeBlock.d.ts.map +1 -1
- package/build/template/components/CodeBlock.js +1 -4
- package/build/template/components/CodeBlock.js.map +1 -1
- package/build/template/components/ComponentDispatch.d.ts +34 -0
- package/build/template/components/ComponentDispatch.d.ts.map +1 -0
- package/build/template/components/ComponentDispatch.js +33 -0
- package/build/template/components/ComponentDispatch.js.map +1 -0
- package/build/template/components/ReferenceLink.d.ts +19 -0
- package/build/template/components/ReferenceLink.d.ts.map +1 -0
- package/build/template/components/ReferenceLink.js +19 -0
- package/build/template/components/ReferenceLink.js.map +1 -0
- package/build/template/components/TypeAnnotation.d.ts.map +1 -1
- package/build/template/components/TypeAnnotation.js +3 -3
- package/build/template/components/TypeAnnotation.js.map +1 -1
- package/build/template/components/TypeFieldsLinkList.d.ts.map +1 -1
- package/build/template/components/TypeFieldsLinkList.js +4 -4
- package/build/template/components/TypeFieldsLinkList.js.map +1 -1
- package/build/template/components/TypeIndex.js +2 -2
- package/build/template/components/TypeIndex.js.map +1 -1
- package/build/template/components/VersionSelector.d.ts +7 -0
- package/build/template/components/VersionSelector.d.ts.map +1 -0
- package/build/template/components/VersionSelector.js +30 -0
- package/build/template/components/VersionSelector.js.map +1 -0
- package/build/template/components/graphql/type-link.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.js +2 -2
- package/build/template/components/graphql/type-link.js.map +1 -1
- package/build/template/hooks/useVersionPath.d.ts +6 -0
- package/build/template/hooks/useVersionPath.d.ts.map +1 -0
- package/build/template/hooks/useVersionPath.js +10 -0
- package/build/template/hooks/useVersionPath.js.map +1 -0
- package/build/template/layouts/ChangelogLayout.d.ts.map +1 -0
- package/build/template/{components → layouts}/ChangelogLayout.js +1 -1
- package/build/template/layouts/ChangelogLayout.js.map +1 -0
- package/build/template/layouts/index.d.ts +1 -0
- package/build/template/layouts/index.d.ts.map +1 -1
- package/build/template/layouts/index.js +1 -0
- package/build/template/layouts/index.js.map +1 -1
- package/build/template/lib/fetch-text.d.ts +8 -0
- package/build/template/lib/fetch-text.d.ts.map +1 -0
- package/build/template/lib/fetch-text.js +14 -0
- package/build/template/lib/fetch-text.js.map +1 -0
- package/build/template/lib/polen-url.d.ts +14 -0
- package/build/template/lib/polen-url.d.ts.map +1 -1
- package/build/template/lib/polen-url.js +16 -0
- package/build/template/lib/polen-url.js.map +1 -1
- package/build/template/lib/schema-utils/constants.d.ts +5 -0
- package/build/template/lib/schema-utils/constants.d.ts.map +1 -0
- package/build/template/lib/schema-utils/constants.js +5 -0
- package/build/template/lib/schema-utils/constants.js.map +1 -0
- package/build/template/lib/schema-utils/schema-utils.d.ts +15 -0
- package/build/template/lib/schema-utils/schema-utils.d.ts.map +1 -0
- package/build/template/lib/schema-utils/schema-utils.js +37 -0
- package/build/template/lib/schema-utils/schema-utils.js.map +1 -0
- package/build/template/routes/changelog.d.ts +4 -3
- package/build/template/routes/changelog.d.ts.map +1 -1
- package/build/template/routes/changelog.js +15 -9
- package/build/template/routes/changelog.js.map +1 -1
- package/build/template/routes/index.js +2 -2
- package/build/template/routes/index.js.map +1 -1
- package/build/template/routes/pages.d.ts +10 -0
- package/build/template/routes/pages.d.ts.map +1 -0
- package/build/template/routes/pages.js +76 -0
- package/build/template/routes/pages.js.map +1 -0
- package/build/template/routes/reference.d.ts +35 -6
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +97 -14
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.js +11 -75
- package/build/template/routes/root.js.map +1 -1
- package/build/template/server/app.d.ts +22 -1
- package/build/template/server/app.d.ts.map +1 -1
- package/build/template/server/app.js +19 -9
- package/build/template/server/app.js.map +1 -1
- package/build/template/server/main.js +9 -1
- package/build/template/server/main.js.map +1 -1
- package/build/template/server/ssg/generate.js +2 -2
- package/build/template/server/ssg/generate.js.map +1 -1
- package/build/template/server/ssg/get-route-paths.d.ts +1 -1
- package/build/template/server/ssg/get-route-paths.d.ts.map +1 -1
- package/build/template/server/ssg/get-route-paths.js +90 -27
- package/build/template/server/ssg/get-route-paths.js.map +1 -1
- package/build/template/sources/schema-source.d.ts +15 -0
- package/build/template/sources/schema-source.d.ts.map +1 -0
- package/build/template/sources/schema-source.js +64 -0
- package/build/template/sources/schema-source.js.map +1 -0
- package/package.json +16 -17
- package/src/api/api.ts +1 -0
- package/src/api/config/configurator.ts +86 -36
- package/src/api/config/merge.ts +0 -16
- package/src/api/content/metadata.ts +1 -1
- package/src/api/schema/data-sources/data-sources.ts +1 -0
- package/src/api/schema/data-sources/introspection/introspection.ts +213 -0
- package/src/api/schema/data-sources/memory/memory.ts +3 -5
- package/src/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.ts +29 -13
- package/src/api/schema/data-sources/schema-directory/schema-directory.ts +56 -16
- package/src/api/schema/data-sources/schema-file/schema-file.ts +16 -7
- package/src/api/schema/metadata.ts +23 -0
- package/src/api/schema/read.ts +109 -18
- package/src/api/schema/schema.ts +62 -2
- package/src/api/schema-source/index.ts +1 -0
- package/src/api/schema-source/schema-source.ts +189 -0
- package/src/api/static/manifest.ts +1 -1
- package/src/api/vite/plugins/build.ts +3 -0
- package/src/api/vite/plugins/core.ts +27 -22
- package/src/api/vite/plugins/main.ts +1 -9
- package/src/api/vite/plugins/schema-assets.ts +364 -0
- package/src/api/vite/plugins/serve.ts +15 -8
- package/src/cli/commands/open.ts +1 -1
- package/src/lib/grafaid/schema/schema.ts +1 -0
- package/src/lib/graphql-change/change-groups.ts +57 -0
- package/src/lib/kit-temp.ts +15 -2
- package/src/lib/mask/$.test.ts +3 -3
- package/src/lib/path-map/$.test.ts +22 -19
- package/src/lib/path-map/path-map.ts +3 -1
- package/src/lib/react-router-aid/react-router-aid.ts +12 -6
- package/src/project-data.ts +3 -11
- package/src/template/components/Changelog.tsx +16 -67
- package/src/template/components/CodeBlock.tsx +3 -5
- package/src/template/components/ComponentDispatch.tsx +42 -0
- package/src/template/components/ReferenceLink.tsx +34 -0
- package/src/template/components/TypeAnnotation.tsx +5 -7
- package/src/template/components/TypeFieldsLinkList.tsx +20 -23
- package/src/template/components/TypeIndex.tsx +10 -12
- package/src/template/components/VersionSelector.tsx +50 -0
- package/src/template/components/graphql/type-link.tsx +4 -3
- package/src/template/hooks/useVersionPath.ts +10 -0
- package/src/template/{components → layouts}/ChangelogLayout.tsx +1 -1
- package/src/template/layouts/index.ts +1 -0
- package/src/template/lib/fetch-text.ts +13 -0
- package/src/template/lib/polen-url.ts +20 -0
- package/src/template/lib/schema-utils/constants.ts +4 -0
- package/src/template/lib/schema-utils/schema-utils.ts +42 -0
- package/src/template/routes/changelog.tsx +19 -10
- package/src/template/routes/index.tsx +2 -2
- package/src/template/routes/pages.tsx +109 -0
- package/src/template/routes/reference.tsx +112 -12
- package/src/template/routes/root.tsx +11 -112
- package/src/template/server/app.ts +47 -14
- package/src/template/server/main.ts +9 -1
- package/src/template/server/ssg/generate.ts +2 -2
- package/src/template/server/ssg/get-route-paths.test.ts +132 -0
- package/src/template/server/ssg/get-route-paths.ts +91 -27
- package/src/template/sources/schema-source.ts +69 -0
- package/build/lib/graphql-document/$$.d.ts +0 -5
- package/build/lib/graphql-document/$$.d.ts.map +0 -1
- package/build/lib/graphql-document/$$.js +0 -5
- package/build/lib/graphql-document/$$.js.map +0 -1
- package/build/lib/graphql-document/$.d.ts +0 -2
- package/build/lib/graphql-document/$.d.ts.map +0 -1
- package/build/lib/graphql-document/$.js +0 -2
- package/build/lib/graphql-document/$.js.map +0 -1
- package/build/lib/graphql-document/analysis.d.ts +0 -44
- package/build/lib/graphql-document/analysis.d.ts.map +0 -1
- package/build/lib/graphql-document/analysis.js +0 -361
- package/build/lib/graphql-document/analysis.js.map +0 -1
- package/build/lib/graphql-document/components/GraphQLDocument.d.ts +0 -38
- package/build/lib/graphql-document/components/GraphQLDocument.d.ts.map +0 -1
- package/build/lib/graphql-document/components/GraphQLDocument.js +0 -151
- package/build/lib/graphql-document/components/GraphQLDocument.js.map +0 -1
- package/build/lib/graphql-document/components/GraphQLDocumentWithSchema.d.ts +0 -7
- package/build/lib/graphql-document/components/GraphQLDocumentWithSchema.d.ts.map +0 -1
- package/build/lib/graphql-document/components/GraphQLDocumentWithSchema.js +0 -27
- package/build/lib/graphql-document/components/GraphQLDocumentWithSchema.js.map +0 -1
- package/build/lib/graphql-document/components/GraphQLIdentifierPopover.d.ts +0 -33
- package/build/lib/graphql-document/components/GraphQLIdentifierPopover.d.ts.map +0 -1
- package/build/lib/graphql-document/components/GraphQLIdentifierPopover.js +0 -50
- package/build/lib/graphql-document/components/GraphQLIdentifierPopover.js.map +0 -1
- package/build/lib/graphql-document/components/IdentifierLink.d.ts +0 -39
- package/build/lib/graphql-document/components/IdentifierLink.d.ts.map +0 -1
- package/build/lib/graphql-document/components/IdentifierLink.js +0 -75
- package/build/lib/graphql-document/components/IdentifierLink.js.map +0 -1
- package/build/lib/graphql-document/components/graphql-document-styles.d.ts +0 -5
- package/build/lib/graphql-document/components/graphql-document-styles.d.ts.map +0 -1
- package/build/lib/graphql-document/components/graphql-document-styles.js +0 -144
- package/build/lib/graphql-document/components/graphql-document-styles.js.map +0 -1
- package/build/lib/graphql-document/components/index.d.ts +0 -5
- package/build/lib/graphql-document/components/index.d.ts.map +0 -1
- package/build/lib/graphql-document/components/index.js +0 -5
- package/build/lib/graphql-document/components/index.js.map +0 -1
- package/build/lib/graphql-document/example.d.ts +0 -25
- package/build/lib/graphql-document/example.d.ts.map +0 -1
- package/build/lib/graphql-document/example.js +0 -140
- package/build/lib/graphql-document/example.js.map +0 -1
- package/build/lib/graphql-document/graphql-document.d.ts +0 -35
- package/build/lib/graphql-document/graphql-document.d.ts.map +0 -1
- package/build/lib/graphql-document/graphql-document.js +0 -36
- package/build/lib/graphql-document/graphql-document.js.map +0 -1
- package/build/lib/graphql-document/hooks/use-tooltip-state.d.ts +0 -43
- package/build/lib/graphql-document/hooks/use-tooltip-state.d.ts.map +0 -1
- package/build/lib/graphql-document/hooks/use-tooltip-state.js +0 -132
- package/build/lib/graphql-document/hooks/use-tooltip-state.js.map +0 -1
- package/build/lib/graphql-document/positioning-simple.d.ts +0 -63
- package/build/lib/graphql-document/positioning-simple.d.ts.map +0 -1
- package/build/lib/graphql-document/positioning-simple.js +0 -185
- package/build/lib/graphql-document/positioning-simple.js.map +0 -1
- package/build/lib/graphql-document/schema-context.d.ts +0 -8
- package/build/lib/graphql-document/schema-context.d.ts.map +0 -1
- package/build/lib/graphql-document/schema-context.js +0 -11
- package/build/lib/graphql-document/schema-context.js.map +0 -1
- package/build/lib/graphql-document/schema-integration.d.ts +0 -135
- package/build/lib/graphql-document/schema-integration.d.ts.map +0 -1
- package/build/lib/graphql-document/schema-integration.js +0 -328
- package/build/lib/graphql-document/schema-integration.js.map +0 -1
- package/build/lib/graphql-document/types.d.ts +0 -117
- package/build/lib/graphql-document/types.d.ts.map +0 -1
- package/build/lib/graphql-document/types.js +0 -2
- package/build/lib/graphql-document/types.js.map +0 -1
- package/build/template/components/ChangelogLayout.d.ts.map +0 -1
- package/build/template/components/ChangelogLayout.js.map +0 -1
- package/build/template/components/CodeHikePre.d.ts +0 -16
- package/build/template/components/CodeHikePre.d.ts.map +0 -1
- package/build/template/components/CodeHikePre.js +0 -37
- package/build/template/components/CodeHikePre.js.map +0 -1
- package/build/template/routes/reference.$type.$field.d.ts +0 -5
- package/build/template/routes/reference.$type.$field.d.ts.map +0 -1
- package/build/template/routes/reference.$type.$field.js +0 -31
- package/build/template/routes/reference.$type.$field.js.map +0 -1
- package/build/template/routes/reference.$type.d.ts +0 -5
- package/build/template/routes/reference.$type.d.ts.map +0 -1
- package/build/template/routes/reference.$type.js +0 -23
- package/build/template/routes/reference.$type.js.map +0 -1
- package/src/lib/graphql-document/$$.ts +0 -4
- package/src/lib/graphql-document/$.test.ts +0 -132
- package/src/lib/graphql-document/$.ts +0 -1
- package/src/lib/graphql-document/README.md +0 -102
- package/src/lib/graphql-document/analysis.ts +0 -415
- package/src/lib/graphql-document/components/GraphQLDocument.tsx +0 -265
- package/src/lib/graphql-document/components/GraphQLDocument.unit.test.ts +0 -188
- package/src/lib/graphql-document/components/GraphQLDocumentWithSchema.tsx +0 -46
- package/src/lib/graphql-document/components/GraphQLIdentifierPopover.tsx +0 -199
- package/src/lib/graphql-document/components/IdentifierLink.tsx +0 -160
- package/src/lib/graphql-document/components/graphql-document-styles.ts +0 -144
- package/src/lib/graphql-document/components/index.ts +0 -4
- package/src/lib/graphql-document/demo.md +0 -155
- package/src/lib/graphql-document/example.ts +0 -163
- package/src/lib/graphql-document/graphql-document.ts +0 -37
- package/src/lib/graphql-document/hooks/use-tooltip-state.test.ts +0 -76
- package/src/lib/graphql-document/hooks/use-tooltip-state.ts +0 -191
- package/src/lib/graphql-document/positioning-simple.test.ts +0 -248
- package/src/lib/graphql-document/positioning-simple.ts +0 -260
- package/src/lib/graphql-document/schema-context.tsx +0 -20
- package/src/lib/graphql-document/schema-integration.test.ts +0 -365
- package/src/lib/graphql-document/schema-integration.ts +0 -488
- package/src/lib/graphql-document/types.ts +0 -129
- package/src/template/components/CodeHikePre.tsx +0 -51
- package/src/template/routes/reference.$type.$field.tsx +0 -34
- package/src/template/routes/reference.$type.tsx +0 -27
- /package/build/template/{components → layouts}/ChangelogLayout.d.ts +0 -0
package/build/api/api.d.ts
CHANGED
@@ -2,5 +2,6 @@ export * from './builder/index.js';
|
|
2
2
|
export * from './config-resolver/index.js';
|
3
3
|
export * from './config/index.js';
|
4
4
|
export * as Project from './project/index.js';
|
5
|
+
export * from './schema/index.js';
|
5
6
|
export * from './static/index.js';
|
6
7
|
//# sourceMappingURL=api.d.ts.map
|
package/build/api/api.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,cAAc,mBAAmB,CAAA"}
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
package/build/api/api.js
CHANGED
@@ -2,5 +2,6 @@ export * from './builder/index.js';
|
|
2
2
|
export * from './config-resolver/index.js';
|
3
3
|
export * from './config/index.js';
|
4
4
|
export * as Project from './project/index.js';
|
5
|
+
export * from './schema/index.js';
|
5
6
|
export * from './static/index.js';
|
6
7
|
//# sourceMappingURL=api.js.map
|
package/build/api/api.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,cAAc,mBAAmB,CAAA"}
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
@@ -28,25 +28,56 @@ export interface ConfigInput {
|
|
28
28
|
* - `file` - Load from a single SDL file (default: schema.graphql)
|
29
29
|
* - `directory` - Load multiple SDL files with date prefixes (enables changelog)
|
30
30
|
* - `memory` - Define schemas programmatically in configuration
|
31
|
+
* - `introspection` - Fetch schema from a GraphQL endpoint
|
32
|
+
* - `data` - Use pre-built schema objects
|
31
33
|
*
|
32
34
|
* @example
|
33
35
|
* ```ts
|
34
|
-
* //
|
36
|
+
* // Default: looks for schema.graphql
|
37
|
+
* schema: {}
|
38
|
+
*
|
39
|
+
* // Load via introspection
|
35
40
|
* schema: {
|
36
|
-
* useDataSources: 'file',
|
37
41
|
* dataSources: {
|
38
|
-
*
|
42
|
+
* introspection: {
|
43
|
+
* url: 'https://api.example.com/graphql',
|
44
|
+
* headers: { 'Authorization': `Bearer ${process.env.API_TOKEN}` }
|
45
|
+
* }
|
39
46
|
* }
|
40
47
|
* }
|
41
48
|
*
|
42
49
|
* // Multiple versions for changelog
|
43
50
|
* schema: {
|
44
|
-
* useDataSources: 'directory',
|
45
51
|
* dataSources: {
|
46
52
|
* directory: { path: './schema' }
|
47
53
|
* }
|
48
54
|
* }
|
55
|
+
*
|
56
|
+
* // Custom source order
|
57
|
+
* schema: {
|
58
|
+
* useDataSources: ['introspection', 'file'],
|
59
|
+
* dataSources: {
|
60
|
+
* introspection: { url: 'https://api.example.com/graphql' },
|
61
|
+
* file: { path: './fallback.graphql' }
|
62
|
+
* }
|
63
|
+
* }
|
49
64
|
* ```
|
65
|
+
*
|
66
|
+
* **Two introspection features**:
|
67
|
+
* 1. **File Convention**: Polen auto-detects `schema.introspection.json` files
|
68
|
+
* 2. **Config-driven**: Polen fetches and caches introspection for you
|
69
|
+
*
|
70
|
+
* **Interoperability**: The `schema.introspection.json` file uses the standard
|
71
|
+
* GraphQL introspection format, compatible with GraphQL Codegen, Apollo CLI, etc.
|
72
|
+
*
|
73
|
+
* **Lifecycle**:
|
74
|
+
* - First run: Fetches from endpoint, saves to `schema.introspection.json`
|
75
|
+
* - Subsequent runs: Loads from JSON file (no network request)
|
76
|
+
* - To refresh: Delete the JSON file
|
77
|
+
* - Runs during `polen dev` and `polen build`, never at runtime
|
78
|
+
*
|
79
|
+
* **Query details**: Uses the standard introspection query from the GraphQL spec
|
80
|
+
* @see https://spec.graphql.org/draft/#sec-Introspection
|
50
81
|
*/
|
51
82
|
schema?: SchemaConfigInput;
|
52
83
|
/**
|
@@ -237,22 +268,6 @@ export interface ConfigInput {
|
|
237
268
|
* @default false
|
238
269
|
*/
|
239
270
|
isSelfContainedMode?: boolean;
|
240
|
-
/**
|
241
|
-
* Tweak the watch behavior.
|
242
|
-
*/
|
243
|
-
watch?: {
|
244
|
-
/**
|
245
|
-
* Restart the development server when some arbitrary files change.
|
246
|
-
*
|
247
|
-
* Use this to restart when files that are not already watched by vite change.
|
248
|
-
*
|
249
|
-
* @see https://github.com/antfu/vite-plugin-restart
|
250
|
-
*/
|
251
|
-
/**
|
252
|
-
* File paths to watch and restart the development server when they change.
|
253
|
-
*/
|
254
|
-
also?: string[];
|
255
|
-
};
|
256
271
|
/**
|
257
272
|
* Whether to enable debug mode.
|
258
273
|
*
|
@@ -283,9 +298,9 @@ export interface Config {
|
|
283
298
|
};
|
284
299
|
server: {
|
285
300
|
port: number;
|
286
|
-
|
287
|
-
|
288
|
-
|
301
|
+
routes: {
|
302
|
+
assets: string;
|
303
|
+
};
|
289
304
|
};
|
290
305
|
templateVariables: TemplateVariables;
|
291
306
|
schemaAugmentations: SchemaAugmentation.Augmentation[];
|
@@ -305,7 +320,12 @@ export interface Config {
|
|
305
320
|
build: {
|
306
321
|
root: string;
|
307
322
|
relative: {
|
308
|
-
assets:
|
323
|
+
assets: {
|
324
|
+
root: string;
|
325
|
+
relative: {
|
326
|
+
schemas: string;
|
327
|
+
};
|
328
|
+
};
|
309
329
|
serverEntrypoint: string;
|
310
330
|
};
|
311
331
|
};
|
@@ -318,7 +338,10 @@ export interface Config {
|
|
318
338
|
absolute: {
|
319
339
|
build: {
|
320
340
|
root: string;
|
321
|
-
assets:
|
341
|
+
assets: {
|
342
|
+
root: string;
|
343
|
+
schemas: string;
|
344
|
+
};
|
322
345
|
serverEntrypoint: string;
|
323
346
|
};
|
324
347
|
pages: string;
|
@@ -328,7 +351,13 @@ export interface Config {
|
|
328
351
|
};
|
329
352
|
};
|
330
353
|
};
|
331
|
-
framework: PackagePaths
|
354
|
+
framework: PackagePaths & {
|
355
|
+
devAssets: {
|
356
|
+
relative: string;
|
357
|
+
absolute: string;
|
358
|
+
schemas: string;
|
359
|
+
};
|
360
|
+
};
|
332
361
|
};
|
333
362
|
advanced: {
|
334
363
|
isSelfContainedMode: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/api/config/configurator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,gBAAgB,CAAA;AAEhE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAA;AAEV,eAAO,MAAM,iBAAiB;;;;EAAsC,CAAA;AAEpE,MAAM,MAAM,iBAAiB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAA;AAEhG,KAAK,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;AAE3D;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B
|
1
|
+
{"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/api/config/configurator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,gBAAgB,CAAA;AAEhE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAA;AAEV,eAAO,MAAM,iBAAiB;;;;EAAsC,CAAA;AAEpE,MAA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;wBACZ,OAAO,EAAE,MAAM,CAAA;qBAChB,CAAA;oBACD,gBAAgB,EAAE,MAAM,CAAA;iBACzB,CAAA;gBACD,KAAK,EAAE,MAAM,CAAA;gBACb,MAAM,EAAE;oBACN,IAAI,EAAE,MAAM,CAAA;oBACZ,IAAI,EAAE,MAAM,CAAA;iBACb,CAAA;aACF,CAAA;SACF,CAAA;QACD,SAAS,EAAE,YAAY,GAAG;YACxB,SAAS,EAAE;gBACT,QAAQ,EAAE,MAAM,CAAA;gBAChB,QAAQ,EAAE,MAAM,CAAA;gBAChB,OAAO,EAAE,MAAM,CAAA;aAChB,CAAA;SACF,CAAA;KACF,CAAA;IACD,QAAQ,EAAE;QACR,mBAAmB,EAAE,OAAO,CAAA;QAC5B,QAAQ,EAAE,OAAO,CAAA;QACjB,KAAK,EAAE,OAAO,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAC,UAAU,CAAA;KACvB,CAAA;CACF;AAmCD,eAAO,MAAM,cAAc,GACzB,aAAa,WAAW,GAAG,SAAS;AACpC;;;;;;;GAOG;AACH,iBAAiB,MAAM,KACtB,OAAO,CAAC,MAAM,CAkFhB,CAAA"}
|
@@ -16,6 +16,10 @@ const buildPaths = (rootDir) => {
|
|
16
16
|
const buildAbsolute = Path.ensureAbsoluteWith(buildAbsolutePath);
|
17
17
|
const publicAbsolutePath = rootAbsolute(`public`);
|
18
18
|
const publicAbsolute = Path.ensureAbsoluteWith(publicAbsolutePath);
|
19
|
+
const assetsAbsolute = Path.ensureAbsoluteWith(buildAbsolute(`assets`));
|
20
|
+
// Dev assets paths
|
21
|
+
const devAssetsRelative = 'node_modules/.vite/polen-assets';
|
22
|
+
const devAssetsAbsolute = Path.join(packagePaths.rootDir, devAssetsRelative);
|
19
23
|
return {
|
20
24
|
project: {
|
21
25
|
rootDir,
|
@@ -24,7 +28,12 @@ const buildPaths = (rootDir) => {
|
|
24
28
|
root: `build`,
|
25
29
|
relative: {
|
26
30
|
serverEntrypoint: `app.js`,
|
27
|
-
assets:
|
31
|
+
assets: {
|
32
|
+
root: `assets`,
|
33
|
+
relative: {
|
34
|
+
schemas: `schemas`,
|
35
|
+
},
|
36
|
+
},
|
28
37
|
},
|
29
38
|
},
|
30
39
|
pages: `pages`,
|
@@ -38,7 +47,10 @@ const buildPaths = (rootDir) => {
|
|
38
47
|
build: {
|
39
48
|
root: buildAbsolute(`.`),
|
40
49
|
serverEntrypoint: buildAbsolute(`app.js`),
|
41
|
-
assets:
|
50
|
+
assets: {
|
51
|
+
root: buildAbsolute(`assets`),
|
52
|
+
schemas: assetsAbsolute(`schemas`),
|
53
|
+
},
|
42
54
|
},
|
43
55
|
public: {
|
44
56
|
root: publicAbsolute(`.`),
|
@@ -46,7 +58,14 @@ const buildPaths = (rootDir) => {
|
|
46
58
|
},
|
47
59
|
},
|
48
60
|
},
|
49
|
-
framework:
|
61
|
+
framework: {
|
62
|
+
...packagePaths,
|
63
|
+
devAssets: {
|
64
|
+
relative: devAssetsRelative,
|
65
|
+
absolute: devAssetsAbsolute,
|
66
|
+
schemas: Path.join(devAssetsAbsolute, 'schemas'),
|
67
|
+
},
|
68
|
+
},
|
50
69
|
};
|
51
70
|
};
|
52
71
|
const configInputDefaults = {
|
@@ -55,15 +74,15 @@ const configInputDefaults = {
|
|
55
74
|
title: `My Developer Portal`,
|
56
75
|
},
|
57
76
|
schemaAugmentations: [],
|
58
|
-
watch: {
|
59
|
-
also: [],
|
60
|
-
},
|
61
77
|
build: {
|
62
78
|
architecture: BuildArchitecture.enum.ssg,
|
63
79
|
base: `/`,
|
64
80
|
},
|
65
81
|
server: {
|
66
82
|
port: 3000,
|
83
|
+
routes: {
|
84
|
+
assets: '/assets',
|
85
|
+
},
|
67
86
|
},
|
68
87
|
schema: null,
|
69
88
|
ssr: {
|
@@ -144,12 +163,11 @@ baseRootDirPath) => {
|
|
144
163
|
if (configInput?.advanced?.explorer !== undefined) {
|
145
164
|
config.advanced.explorer = configInput.advanced.explorer;
|
146
165
|
}
|
147
|
-
if (configInput?.advanced?.watch?.also) {
|
148
|
-
config.watch.also = configInput.advanced.watch.also;
|
149
|
-
}
|
150
166
|
if (configInput?.server?.port !== undefined) {
|
151
167
|
config.server.port = configInput.server.port;
|
152
168
|
}
|
169
|
+
// Server routes are not configurable by users yet, use defaults
|
170
|
+
// config.server.routes is already set from defaultConfig
|
153
171
|
// Process warnings configuration
|
154
172
|
if (configInput?.warnings?.interactiveWithoutSchema?.enabled !== undefined) {
|
155
173
|
config.warnings.interactiveWithoutSchema.enabled = configInput.warnings.interactiveWithoutSchema.enabled;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"configurator.js","sourceRoot":"","sources":["../../../src/api/config/configurator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAqB,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACF,CAAA;AAEV,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"configurator.js","sourceRoot":"","sources":["../../../src/api/config/configurator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAqB,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,MAAM,CAAC,MA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,QAAQ,CAAC,QAAQ,CAAA;IAC1D,CAAC;IAED,IAAI,WAAW,EAAE,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAA;IAC9C,CAAC;IAED,gEAAgE;IAChE,yDAAyD;IAEzD,iCAAiC;IACjC,IAAI,WAAW,EAAE,QAAQ,EAAE,wBAAwB,EAAE,OAAO,KAAK,SAAS,EAAE,CAAC;QAC3E,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAC,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,wBAAwB,CAAC,OAAO,CAAA;IAC1G,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/api/config/merge.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD;;;GAGG;AACH,eAAO,MAAM,WAAW,GACtB,MAAM,WAAW,EACjB,YAAY,WAAW,GAAG,SAAS,KAClC,
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/api/config/merge.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD;;;GAGG;AACH,eAAO,MAAM,WAAW,GACtB,MAAM,WAAW,EACjB,YAAY,WAAW,GAAG,SAAS,KAClC,WAiDF,CAAA"}
|
@@ -32,17 +32,6 @@ export const mergeInputs = (base, overrides) => {
|
|
32
32
|
// Merge advanced config
|
33
33
|
if (base.advanced ?? overrides.advanced) {
|
34
34
|
merged.advanced = spreadShallow(base.advanced, overrides.advanced);
|
35
|
-
// Merge advanced.watch config
|
36
|
-
if (base.advanced?.watch ?? overrides.advanced?.watch) {
|
37
|
-
merged.advanced.watch = spreadShallow(base.advanced?.watch, overrides.advanced?.watch);
|
38
|
-
// Merge watch.also arrays
|
39
|
-
if (base.advanced?.watch?.also ?? overrides.advanced?.watch?.also) {
|
40
|
-
merged.advanced.watch.also = [
|
41
|
-
...(base.advanced?.watch?.also ?? []),
|
42
|
-
...(overrides.advanced?.watch?.also ?? []),
|
43
|
-
];
|
44
|
-
}
|
45
|
-
}
|
46
35
|
// Merge Vite configs if present
|
47
36
|
if (base.advanced?.vite ?? overrides.advanced?.vite) {
|
48
37
|
merged.advanced.vite = Vite.mergeConfig(base.advanced?.vite ?? {}, overrides.advanced?.vite ?? {});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../src/api/config/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAG7C;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,IAAiB,EACjB,SAAmC,EACtB,EAAE;IACf,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,MAAM,GAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;IAE1D,+BAA+B;IAC/B,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;QACpC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAA;IACjD,CAAC;IAED,qBAAqB;IACrB,IAAI,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;QAClC,MAAM,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;IAC3D,CAAC;IAED,sBAAsB;IACtB,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;QACp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M,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CACrC,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE,EACzB,SAAS,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE,CAC/B,CAAA;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
@@ -1,10 +1,16 @@
|
|
1
|
-
import { z } from 'zod
|
1
|
+
import { z } from 'zod';
|
2
2
|
/**
|
3
3
|
* Schema for validating front matter content
|
4
4
|
*/
|
5
5
|
export declare const MetadataSchema: z.ZodObject<{
|
6
6
|
description: z.ZodOptional<z.ZodString>;
|
7
7
|
hidden: z.ZodDefault<z.ZodBoolean>;
|
8
|
-
}, z.
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
hidden: boolean;
|
10
|
+
description?: string | undefined;
|
11
|
+
}, {
|
12
|
+
description?: string | undefined;
|
13
|
+
hidden?: boolean | undefined;
|
14
|
+
}>;
|
9
15
|
export type Metadata = z.infer<typeof MetadataSchema>;
|
10
16
|
//# sourceMappingURL=metadata.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/api/content/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/api/content/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;EAGzB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/api/content/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/api/content/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACnC,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-sources.d.ts","sourceRoot":"","sources":["../../../../src/api/schema/data-sources/data-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAA;AAC5C,OAAO,KAAK,eAAe,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAA"}
|
1
|
+
{"version":3,"file":"data-sources.d.ts","sourceRoot":"","sources":["../../../../src/api/schema/data-sources/data-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAA;AAC5C,OAAO,KAAK,eAAe,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-sources.js","sourceRoot":"","sources":["../../../../src/api/schema/data-sources/data-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAA;AAC5C,OAAO,KAAK,eAAe,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAA"}
|
1
|
+
{"version":3,"file":"data-sources.js","sourceRoot":"","sources":["../../../../src/api/schema/data-sources/data-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAA;AAC5C,OAAO,KAAK,eAAe,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAA"}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid/index';
|
2
|
+
import type { NonEmptyChangeSets, SchemaReadResult } from '../../schema.js';
|
3
|
+
/**
|
4
|
+
* Configuration for loading schema via GraphQL introspection.
|
5
|
+
*
|
6
|
+
* Polen supports two introspection features:
|
7
|
+
* 1. **File Convention**: Automatically detects `schema.introspection.json` if present
|
8
|
+
* 2. **Automatic Introspection**: Fetches from your endpoint and creates the file
|
9
|
+
*
|
10
|
+
* When configured, Polen will:
|
11
|
+
* - Execute the standard GraphQL introspection query against your endpoint
|
12
|
+
* - Save the result to `schema.introspection.json` in your project root
|
13
|
+
* - Use this cached file for subsequent builds (no network requests)
|
14
|
+
*
|
15
|
+
* The saved file contains a standard GraphQL introspection query result as defined
|
16
|
+
* in the GraphQL specification, making it compatible with any tool that works with
|
17
|
+
* introspection data (GraphQL Codegen, Apollo CLI, etc.).
|
18
|
+
*
|
19
|
+
* To refresh the schema, delete `schema.introspection.json` and rebuild.
|
20
|
+
*
|
21
|
+
* **Technical details**:
|
22
|
+
* - Uses Graffle's introspection extension
|
23
|
+
* - Performs the full introspection query (all types, fields, descriptions, etc.)
|
24
|
+
* - No customization of the query is currently supported
|
25
|
+
*
|
26
|
+
* @see https://spec.graphql.org/draft/#sec-Introspection - GraphQL Introspection spec
|
27
|
+
* @see https://github.com/graphql/graphql-js/blob/main/src/utilities/getIntrospectionQuery.ts - Reference implementation
|
28
|
+
*
|
29
|
+
* @example
|
30
|
+
* ```ts
|
31
|
+
* // Basic introspection
|
32
|
+
* introspection: {
|
33
|
+
* url: 'https://api.example.com/graphql'
|
34
|
+
* }
|
35
|
+
*
|
36
|
+
* // With authentication
|
37
|
+
* introspection: {
|
38
|
+
* url: 'https://api.example.com/graphql',
|
39
|
+
* headers: {
|
40
|
+
* 'Authorization': `Bearer ${process.env.API_TOKEN}`
|
41
|
+
* }
|
42
|
+
* }
|
43
|
+
* ```
|
44
|
+
*/
|
45
|
+
export interface ConfigInput {
|
46
|
+
/**
|
47
|
+
* The GraphQL endpoint URL to introspect.
|
48
|
+
*
|
49
|
+
* Must be a valid GraphQL endpoint that supports introspection queries.
|
50
|
+
*
|
51
|
+
* @example 'https://api.example.com/graphql'
|
52
|
+
*/
|
53
|
+
url?: string;
|
54
|
+
/**
|
55
|
+
* Optional headers to include in the introspection request.
|
56
|
+
*
|
57
|
+
* Use this for authentication, API keys, or any custom headers
|
58
|
+
* required by your GraphQL endpoint.
|
59
|
+
*
|
60
|
+
* @example
|
61
|
+
* ```ts
|
62
|
+
* headers: {
|
63
|
+
* 'Authorization': `Bearer ${process.env.API_TOKEN}`,
|
64
|
+
* 'X-API-Key': process.env.API_KEY
|
65
|
+
* }
|
66
|
+
* ```
|
67
|
+
*/
|
68
|
+
headers?: Record<string, string>;
|
69
|
+
projectRoot?: string;
|
70
|
+
}
|
71
|
+
export interface Config {
|
72
|
+
url: string;
|
73
|
+
headers?: Record<string, string>;
|
74
|
+
projectRoot: string;
|
75
|
+
}
|
76
|
+
export declare const normalizeConfig: (configInput: ConfigInput) => Config;
|
77
|
+
export declare const readOrThrow: (configInput: ConfigInput) => Promise<SchemaReadResult>;
|
78
|
+
/**
|
79
|
+
* Create a single changeset from a schema object.
|
80
|
+
* This is the core logic for handling single (unversioned) schemas from introspection.
|
81
|
+
*/
|
82
|
+
export declare const createSingleSchemaChangeset: (schema: Grafaid.Schema.Schema) => Promise<NonEmptyChangeSets>;
|
83
|
+
//# sourceMappingURL=introspection.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"introspection.d.ts","sourceRoot":"","sources":["../../../../../src/api/schema/data-sources/introspection/introspection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAK5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,KAAG,MAgB1D,CAAA;AAQD,eAAO,MAAM,WAAW,GACtB,aAAa,WAAW,KACvB,OAAO,CAAC,gBAAgB,CA+E1B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GAAU,QAAQ,OAAO,CAAC,MAAM,CAAC,MAAM,KAAG,OAAO,CAAC,kBAAkB,CAmB3G,CAAA"}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid/index';
|
2
|
+
import { GraphqlChange } from '#lib/graphql-change/index';
|
3
|
+
import { GraphqlSchemaLoader } from '#lib/graphql-schema-loader/index';
|
4
|
+
import { Fs, Json, Path } from '@wollybeard/kit';
|
5
|
+
export const normalizeConfig = (configInput) => {
|
6
|
+
if (!configInput.url) {
|
7
|
+
throw new Error(`Introspection data source requires a URL`);
|
8
|
+
}
|
9
|
+
if (!configInput.projectRoot) {
|
10
|
+
throw new Error(`Introspection data source requires a projectRoot`);
|
11
|
+
}
|
12
|
+
const config = {
|
13
|
+
url: configInput.url,
|
14
|
+
headers: configInput.headers,
|
15
|
+
projectRoot: configInput.projectRoot,
|
16
|
+
};
|
17
|
+
return config;
|
18
|
+
};
|
19
|
+
const INTROSPECTION_FILE_NAME = `schema.introspection.json`;
|
20
|
+
const getIntrospectionFilePath = (projectRoot) => {
|
21
|
+
return Path.join(projectRoot, INTROSPECTION_FILE_NAME);
|
22
|
+
};
|
23
|
+
export const readOrThrow = async (configInput) => {
|
24
|
+
const config = normalizeConfig(configInput);
|
25
|
+
const introspectionFilePath = getIntrospectionFilePath(config.projectRoot);
|
26
|
+
// Check if introspection file exists
|
27
|
+
const introspectionFileContent = await Fs.read(introspectionFilePath);
|
28
|
+
let schema;
|
29
|
+
if (introspectionFileContent) {
|
30
|
+
// Load from existing file - no reCreate capability
|
31
|
+
try {
|
32
|
+
const introspectionData = Json.codec.decode(introspectionFileContent);
|
33
|
+
// Validate introspection data structure before passing to fromIntrospectionQuery
|
34
|
+
if (!introspectionData || typeof introspectionData !== 'object') {
|
35
|
+
throw new Error('Introspection data must be a valid JSON object');
|
36
|
+
}
|
37
|
+
// Allow fromIntrospectionQuery to handle validation of the introspection format
|
38
|
+
// It will provide more specific GraphQL-related error messages
|
39
|
+
if (!('data' in introspectionData)) {
|
40
|
+
throw new Error('Introspection data missing required "data" property (expected GraphQL introspection result format)');
|
41
|
+
}
|
42
|
+
schema = Grafaid.Schema.fromIntrospectionQuery(introspectionData);
|
43
|
+
}
|
44
|
+
catch (error) {
|
45
|
+
if (error instanceof SyntaxError) {
|
46
|
+
throw new Error(`Invalid JSON in ${introspectionFilePath}: ${error.message}`);
|
47
|
+
}
|
48
|
+
else {
|
49
|
+
throw new Error(`Invalid introspection data in ${introspectionFilePath}: ${error instanceof Error ? error.message : String(error)}. Delete this file to fetch fresh introspection data.`);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
const schemaData = await createSingleSchemaChangeset(schema);
|
53
|
+
return {
|
54
|
+
data: schemaData,
|
55
|
+
source: { type: 'introspectionFile' },
|
56
|
+
};
|
57
|
+
}
|
58
|
+
else {
|
59
|
+
// Fetch via introspection - can reCreate
|
60
|
+
const introspectionResult = await GraphqlSchemaLoader.load({
|
61
|
+
type: `introspect`,
|
62
|
+
url: config.url,
|
63
|
+
headers: config.headers,
|
64
|
+
});
|
65
|
+
schema = introspectionResult;
|
66
|
+
// Get the raw introspection result for saving
|
67
|
+
const __schema = Grafaid.Schema.toIntrospectionQuery(schema);
|
68
|
+
// Wrap in GraphQL response format for consistency with API responses
|
69
|
+
const introspectionData = { data: { __schema } };
|
70
|
+
// Write to file
|
71
|
+
await Fs.write({
|
72
|
+
path: introspectionFilePath,
|
73
|
+
content: Json.codec.encode(introspectionData),
|
74
|
+
});
|
75
|
+
const schemaData = await createSingleSchemaChangeset(schema);
|
76
|
+
return {
|
77
|
+
data: schemaData,
|
78
|
+
source: {
|
79
|
+
type: 'introspectionAuto',
|
80
|
+
reCreate: async () => {
|
81
|
+
// Re-fetch using captured config - capture closure
|
82
|
+
const result = await readOrThrow(configInput);
|
83
|
+
return result.data;
|
84
|
+
},
|
85
|
+
},
|
86
|
+
};
|
87
|
+
}
|
88
|
+
};
|
89
|
+
/**
|
90
|
+
* Create a single changeset from a schema object.
|
91
|
+
* This is the core logic for handling single (unversioned) schemas from introspection.
|
92
|
+
*/
|
93
|
+
export const createSingleSchemaChangeset = async (schema) => {
|
94
|
+
const date = new Date(); // Generate date here for unversioned schema
|
95
|
+
const after = schema;
|
96
|
+
const before = Grafaid.Schema.empty;
|
97
|
+
const changes = await GraphqlChange.calcChangeset({
|
98
|
+
before,
|
99
|
+
after,
|
100
|
+
});
|
101
|
+
const changeset = {
|
102
|
+
date,
|
103
|
+
after,
|
104
|
+
before,
|
105
|
+
changes,
|
106
|
+
};
|
107
|
+
const result = [changeset];
|
108
|
+
return result;
|
109
|
+
};
|
110
|
+
//# sourceMappingURL=introspection.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"introspection.js","sourceRoot":"","sources":["../../../../../src/api/schema/data-sources/introspection/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AS,CAAC,CAAA;IAE9C,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { NonEmptyChangeSets } from '../../schema.js';
|
2
2
|
/**
|
3
3
|
* Configuration for defining schemas programmatically in memory.
|
4
4
|
*
|
@@ -47,5 +47,5 @@ export interface Config {
|
|
47
47
|
}[];
|
48
48
|
}
|
49
49
|
export declare const normalize: (configInput: ConfigInput) => Config;
|
50
|
-
export declare const read: (configInput: ConfigInput) => Promise<null |
|
50
|
+
export declare const read: (configInput: ConfigInput) => Promise<null | NonEmptyChangeSets>;
|
51
51
|
//# sourceMappingURL=memory.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../../src/api/schema/data-sources/memory/memory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../../src/api/schema/data-sources/memory/memory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,QAAQ,EACJ,MAAM,GACN,MAAM,EAAE,GACR;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACpC;AAED,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC1C;AAED,eAAO,MAAM,SAAS,GAAI,aAAa,WAAW,KAAG,MAcpD,CAAA;AAED,eAAO,MAAM,IAAI,GACf,aAAa,WAAW,KACvB,OAAO,CAAC,IAAI,GAAG,kBAAkB,CA4CnC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../../src/api/schema/data-sources/memory/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAiDrC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,WAAwB,EAAU,EAAE;IAC5D,MAAM,MAAM,GAAW;QACrB,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE;YACpD,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;gBAC1B,OAAO;oBACL,IAAI,EAAE,IAAI,IAAI,EAAE;oBAChB,KAAK,EAAE,CAAC;iBACT,CAAA;YACH,CAAC;YACD,OAAO,CAAC,CAAA;QACV,CAAC,CAAC;KACH,CAAA;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,EACvB,WAAwB,
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../../src/api/schema/data-sources/memory/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAiDrC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,WAAwB,EAAU,EAAE;IAC5D,MAAM,MAAM,GAAW;QACrB,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE;YACpD,IAAI,OAAO,CAAC,KAAK,QAAQ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