polen 0.11.0-next.24 → 0.11.0-next.26
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/config/input.d.ts +259 -77
- package/build/api/config/input.d.ts.map +1 -1
- package/build/api/config/input.js +2 -0
- package/build/api/config/input.js.map +1 -1
- package/build/api/config/normalized.d.ts +433 -143
- package/build/api/config/normalized.d.ts.map +1 -1
- package/build/api/config/normalized.js +47 -0
- package/build/api/config/normalized.js.map +1 -1
- package/build/api/config-template/template.d.ts +191 -121
- package/build/api/config-template/template.d.ts.map +1 -1
- package/build/api/config-template/template.js +18 -1
- package/build/api/config-template/template.js.map +1 -1
- package/build/api/examples/diagnostic/diagnostic.d.ts +0 -23
- package/build/api/examples/diagnostic/diagnostic.d.ts.map +1 -1
- package/build/api/examples/diagnostic/diagnostic.js +1 -3
- package/build/api/examples/diagnostic/diagnostic.js.map +1 -1
- package/build/api/examples/scanner.d.ts +27 -1
- package/build/api/examples/scanner.d.ts.map +1 -1
- package/build/api/examples/scanner.js +30 -17
- package/build/api/examples/scanner.js.map +1 -1
- package/build/api/examples/schemas/catalog.d.ts +56 -12
- package/build/api/examples/schemas/catalog.d.ts.map +1 -1
- package/build/api/examples/schemas/example/example.d.ts +54 -11
- package/build/api/examples/schemas/example/example.d.ts.map +1 -1
- package/build/api/examples/schemas/example/example.js +5 -0
- package/build/api/examples/schemas/example/example.js.map +1 -1
- package/build/api/reference/$.d.ts +4 -0
- package/build/api/reference/$.d.ts.map +1 -0
- package/build/api/reference/$.js +4 -0
- package/build/api/reference/$.js.map +1 -0
- package/build/api/reference/catalog.d.ts +69 -0
- package/build/api/reference/catalog.d.ts.map +1 -0
- package/build/api/reference/catalog.js +44 -0
- package/build/api/reference/catalog.js.map +1 -0
- package/build/api/reference/config.d.ts +616 -0
- package/build/api/reference/config.d.ts.map +1 -0
- package/build/api/reference/config.js +162 -0
- package/build/api/reference/config.js.map +1 -0
- package/build/api/reference/scanner.d.ts +26 -0
- package/build/api/reference/scanner.d.ts.map +1 -0
- package/build/api/reference/scanner.js +27 -0
- package/build/api/reference/scanner.js.map +1 -0
- package/build/api/schema/augmentations/$$.d.ts +7 -0
- package/build/api/schema/augmentations/$$.d.ts.map +1 -0
- package/build/api/schema/augmentations/$$.js +7 -0
- package/build/api/schema/augmentations/$$.js.map +1 -0
- package/build/api/schema/augmentations/$.d.ts +1 -1
- package/build/api/schema/augmentations/$.d.ts.map +1 -1
- package/build/api/schema/augmentations/$.js +1 -1
- package/build/api/schema/augmentations/$.js.map +1 -1
- package/build/api/schema/augmentations/apply.d.ts +29 -0
- package/build/api/schema/augmentations/apply.d.ts.map +1 -0
- package/build/api/schema/augmentations/apply.js +181 -0
- package/build/api/schema/augmentations/apply.js.map +1 -0
- package/build/api/schema/augmentations/augmentation.d.ts +31 -0
- package/build/api/schema/augmentations/augmentation.d.ts.map +1 -0
- package/build/api/schema/augmentations/augmentation.js +22 -0
- package/build/api/schema/augmentations/augmentation.js.map +1 -0
- package/build/api/schema/augmentations/config.d.ts +24 -0
- package/build/api/schema/augmentations/config.d.ts.map +1 -0
- package/build/api/schema/augmentations/config.js +9 -0
- package/build/api/schema/augmentations/config.js.map +1 -0
- package/build/api/schema/augmentations/diagnostics/diagnostic.d.ts +67 -0
- package/build/api/schema/augmentations/diagnostics/diagnostic.d.ts.map +1 -0
- package/build/api/schema/augmentations/diagnostics/diagnostic.js +13 -0
- package/build/api/schema/augmentations/diagnostics/diagnostic.js.map +1 -0
- package/build/api/schema/augmentations/diagnostics/duplicate-version.d.ts +45 -0
- package/build/api/schema/augmentations/diagnostics/duplicate-version.d.ts.map +1 -0
- package/build/api/schema/augmentations/diagnostics/duplicate-version.js +17 -0
- package/build/api/schema/augmentations/diagnostics/duplicate-version.js.map +1 -0
- package/build/api/schema/augmentations/diagnostics/invalid-path.d.ts +46 -0
- package/build/api/schema/augmentations/diagnostics/invalid-path.d.ts.map +1 -0
- package/build/api/schema/augmentations/diagnostics/invalid-path.js +18 -0
- package/build/api/schema/augmentations/diagnostics/invalid-path.js.map +1 -0
- package/build/api/schema/augmentations/diagnostics/version-mismatch.d.ts +46 -0
- package/build/api/schema/augmentations/diagnostics/version-mismatch.d.ts.map +1 -0
- package/build/api/schema/augmentations/diagnostics/version-mismatch.js +18 -0
- package/build/api/schema/augmentations/diagnostics/version-mismatch.js.map +1 -0
- package/build/api/schema/augmentations/input.d.ts +145 -0
- package/build/api/schema/augmentations/input.d.ts.map +1 -0
- package/build/api/schema/augmentations/input.js +191 -0
- package/build/api/schema/augmentations/input.js.map +1 -0
- package/build/api/schema/augmentations/placement.d.ts +8 -0
- package/build/api/schema/augmentations/placement.d.ts.map +1 -0
- package/build/api/schema/augmentations/placement.js +7 -0
- package/build/api/schema/augmentations/placement.js.map +1 -0
- package/build/api/schema/config-schema.d.ts +66 -66
- package/build/api/schema/config-schema.d.ts.map +1 -1
- package/build/api/schema/config-schema.js +2 -2
- package/build/api/schema/config-schema.js.map +1 -1
- package/build/api/schema/input-source/load.d.ts +2 -0
- package/build/api/schema/input-source/load.d.ts.map +1 -1
- package/build/api/schema/input-source/load.js.map +1 -1
- package/build/api/schema/input-sources/directory.d.ts +39 -39
- package/build/api/schema/input-sources/file.d.ts +39 -39
- package/build/api/schema/input-sources/introspection-file.d.ts +39 -39
- package/build/api/schema/input-sources/introspection.d.ts +39 -39
- package/build/api/schema/input-sources/memory.d.ts +39 -39
- package/build/api/schema/input-sources/versioned-directory.d.ts +79 -79
- package/build/api/schema/load.d.ts.map +1 -1
- package/build/api/schema/load.js +9 -2
- package/build/api/schema/load.js.map +1 -1
- package/build/lib/catalog/catalog.d.ts +1181 -1181
- package/build/lib/catalog/unversioned.d.ts +312 -312
- package/build/lib/catalog/versioned.d.ts +634 -634
- package/build/lib/change/change.d.ts +238 -238
- package/build/lib/document/document.d.ts +14 -8
- package/build/lib/document/document.d.ts.map +1 -1
- package/build/lib/document/versioned.d.ts +17 -10
- package/build/lib/document/versioned.d.ts.map +1 -1
- package/build/lib/grafaid/schema/KindMap/_.d.ts +1 -1
- package/build/lib/grafaid/schema/format-default-value.d.ts +11 -0
- package/build/lib/grafaid/schema/format-default-value.d.ts.map +1 -0
- package/build/lib/grafaid/schema/format-default-value.js +20 -0
- package/build/lib/grafaid/schema/format-default-value.js.map +1 -0
- package/build/lib/grafaid/schema/schema.d.ts +1 -0
- package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
- package/build/lib/grafaid/schema/schema.js +1 -0
- package/build/lib/grafaid/schema/schema.js.map +1 -1
- package/build/lib/graphql-path/$$.d.ts +7 -13
- package/build/lib/graphql-path/$$.d.ts.map +1 -1
- package/build/lib/graphql-path/$$.js +7 -13
- package/build/lib/graphql-path/$$.js.map +1 -1
- package/build/lib/graphql-path/definition.d.ts +104 -94
- package/build/lib/graphql-path/definition.d.ts.map +1 -1
- package/build/lib/graphql-path/definition.js +126 -125
- package/build/lib/graphql-path/definition.js.map +1 -1
- package/build/lib/graphql-path/query.d.ts +25 -57
- package/build/lib/graphql-path/query.d.ts.map +1 -1
- package/build/lib/graphql-path/query.js +15 -93
- package/build/lib/graphql-path/query.js.map +1 -1
- package/build/lib/graphql-path/schema.d.ts +49 -0
- package/build/lib/graphql-path/schema.d.ts.map +1 -0
- package/build/lib/graphql-path/schema.js +89 -0
- package/build/lib/graphql-path/schema.js.map +1 -0
- package/build/lib/graphql-path/types.d.ts +76 -28
- package/build/lib/graphql-path/types.d.ts.map +1 -1
- package/build/lib/graphql-path/types.js +101 -2
- package/build/lib/graphql-path/types.js.map +1 -1
- package/build/lib/revision/revision.d.ts +1170 -1170
- package/build/lib/schema/schema.d.ts +708 -708
- package/build/lib/schema/unversioned.d.ts +1092 -1092
- package/build/lib/schema/versioned.d.ts +634 -634
- package/build/lib/semver/official-release.d.ts +10 -10
- package/build/lib/semver/pre-release.d.ts +10 -10
- package/build/lib/semver/semver.d.ts +50 -50
- package/build/lib/version-coverage/version-coverage.d.ts +43 -11
- package/build/lib/version-coverage/version-coverage.d.ts.map +1 -1
- package/build/lib/version-coverage/version-coverage.js +40 -6
- package/build/lib/version-coverage/version-coverage.js.map +1 -1
- package/build/template/components/ArgumentAnnotation.d.ts +2 -1
- package/build/template/components/ArgumentAnnotation.d.ts.map +1 -1
- package/build/template/components/ArgumentAnnotation.js +14 -4
- package/build/template/components/ArgumentAnnotation.js.map +1 -1
- package/build/template/components/ArgumentListAnnotation.d.ts +1 -0
- package/build/template/components/ArgumentListAnnotation.d.ts.map +1 -1
- package/build/template/components/ArgumentListAnnotation.js +21 -8
- package/build/template/components/ArgumentListAnnotation.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.js +0 -1
- package/build/template/components/Changelog/groups/FieldArgument.js.map +1 -1
- package/build/template/components/CodeBlock.d.ts.map +1 -1
- package/build/template/components/CodeBlock.js +1 -1
- package/build/template/components/CodeBlock.js.map +1 -1
- package/build/template/components/Description.js +1 -1
- package/build/template/components/Description.js.map +1 -1
- package/build/template/components/ExampleLink.d.ts.map +1 -1
- package/build/template/components/ExampleLink.js +2 -1
- package/build/template/components/ExampleLink.js.map +1 -1
- package/build/template/components/Field.d.ts +2 -0
- package/build/template/components/Field.d.ts.map +1 -1
- package/build/template/components/Field.js +42 -4
- package/build/template/components/Field.js.map +1 -1
- package/build/template/components/FieldList.d.ts +2 -1
- package/build/template/components/FieldList.d.ts.map +1 -1
- package/build/template/components/FieldList.js +14 -3
- package/build/template/components/FieldList.js.map +1 -1
- package/build/template/components/FieldListSection.d.ts.map +1 -1
- package/build/template/components/FieldListSection.js +6 -1
- package/build/template/components/FieldListSection.js.map +1 -1
- package/build/template/components/GraphQLDocument.d.ts.map +1 -1
- package/build/template/components/GraphQLDocument.js +2 -1
- package/build/template/components/GraphQLDocument.js.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +2 -0
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +4 -3
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts +2 -2
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.js +17 -12
- package/build/template/components/GraphQLInteractive/lib/parser.js.map +1 -1
- package/build/template/components/IAPIndicator.d.ts +12 -0
- package/build/template/components/IAPIndicator.d.ts.map +1 -0
- package/build/template/components/IAPIndicator.js +21 -0
- package/build/template/components/IAPIndicator.js.map +1 -0
- package/build/template/components/Link.d.ts +1 -2
- package/build/template/components/Link.d.ts.map +1 -1
- package/build/template/components/Link.js +5 -2
- package/build/template/components/Link.js.map +1 -1
- package/build/template/components/NamedType.d.ts.map +1 -1
- package/build/template/components/NamedType.js +9 -5
- package/build/template/components/NamedType.js.map +1 -1
- package/build/template/components/ReferenceLink.d.ts +2 -2
- package/build/template/components/ReferenceLink.d.ts.map +1 -1
- package/build/template/components/ReferenceLink.js +5 -3
- package/build/template/components/ReferenceLink.js.map +1 -1
- package/build/template/components/TypeAnnotation.d.ts +2 -0
- package/build/template/components/TypeAnnotation.d.ts.map +1 -1
- package/build/template/components/TypeAnnotation.js +4 -4
- package/build/template/components/TypeAnnotation.js.map +1 -1
- package/build/template/components/ViewModeToggle.d.ts +3 -0
- package/build/template/components/ViewModeToggle.d.ts.map +1 -0
- package/build/template/components/ViewModeToggle.js +9 -0
- package/build/template/components/ViewModeToggle.js.map +1 -0
- package/build/template/components/graphql/type-link.d.ts +2 -0
- package/build/template/components/graphql/type-link.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.js +15 -3
- package/build/template/components/graphql/type-link.js.map +1 -1
- package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -1
- package/build/template/components/home/PlaygroundPreview.js +3 -2
- package/build/template/components/home/PlaygroundPreview.js.map +1 -1
- package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.js +18 -5
- package/build/template/components/sidebar/SidebarItem.js.map +1 -1
- package/build/template/contexts/ReferenceConfigContext.d.ts +16 -0
- package/build/template/contexts/ReferenceConfigContext.d.ts.map +1 -0
- package/build/template/contexts/ReferenceConfigContext.js +14 -0
- package/build/template/contexts/ReferenceConfigContext.js.map +1 -0
- package/build/template/contexts/ViewModeContext.d.ts +14 -0
- package/build/template/contexts/ViewModeContext.d.ts.map +1 -0
- package/build/template/contexts/ViewModeContext.js +40 -0
- package/build/template/contexts/ViewModeContext.js.map +1 -0
- package/build/template/hooks/use-examples.d.ts +4 -1
- package/build/template/hooks/use-examples.d.ts.map +1 -1
- package/build/template/hooks/useAlignedColumns.d.ts +10 -0
- package/build/template/hooks/useAlignedColumns.d.ts.map +1 -0
- package/build/template/hooks/useAlignedColumns.js +17 -0
- package/build/template/hooks/useAlignedColumns.js.map +1 -0
- package/build/template/routes/changelog/ChangelogSidebar.d.ts +2 -2
- package/build/template/routes/changelog/ChangelogSidebar.d.ts.map +1 -1
- package/build/template/routes/changelog/ChangelogSidebar.js +4 -4
- package/build/template/routes/changelog/ChangelogSidebar.js.map +1 -1
- package/build/template/routes/examples/_.d.ts +12 -3
- package/build/template/routes/examples/_.d.ts.map +1 -1
- package/build/template/routes/examples/_index.d.ts +8 -2
- package/build/template/routes/examples/_index.d.ts.map +1 -1
- package/build/template/routes/examples/name.d.ts +12 -3
- package/build/template/routes/examples/name.d.ts.map +1 -1
- package/build/template/routes/examples/name.js +6 -2
- package/build/template/routes/examples/name.js.map +1 -1
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +37 -10
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/stores/changelog.d.ts +39 -39
- package/build/vite/plugins/core.d.ts.map +1 -1
- package/build/vite/plugins/core.js +6 -0
- package/build/vite/plugins/core.js.map +1 -1
- package/build/vite/plugins/examples.d.ts.map +1 -1
- package/build/vite/plugins/examples.js +10 -3
- package/build/vite/plugins/examples.js.map +1 -1
- package/build/vite/plugins/index.d.ts +1 -0
- package/build/vite/plugins/index.d.ts.map +1 -1
- package/build/vite/plugins/index.js +1 -0
- package/build/vite/plugins/index.js.map +1 -1
- package/build/vite/plugins/navbar.d.ts.map +1 -1
- package/build/vite/plugins/navbar.js +3 -1
- package/build/vite/plugins/navbar.js.map +1 -1
- package/build/vite/plugins/reference.d.ts +19 -0
- package/build/vite/plugins/reference.d.ts.map +1 -0
- package/build/vite/plugins/reference.js +96 -0
- package/build/vite/plugins/reference.js.map +1 -0
- package/build/vite/plugins/schemas.d.ts.map +1 -1
- package/build/vite/plugins/schemas.js +38 -2
- package/build/vite/plugins/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/api/config/input.ts +2 -0
- package/src/api/config/normalized.ts +54 -0
- package/src/api/config-template/template.ts +18 -1
- package/src/api/examples/diagnostic/diagnostic.ts +0 -3
- package/src/api/examples/scanner.test.ts +83 -0
- package/src/api/examples/scanner.ts +31 -21
- package/src/api/examples/schemas/example/example.ts +6 -0
- package/src/api/reference/$.ts +3 -0
- package/src/api/reference/catalog.ts +55 -0
- package/src/api/reference/config.ts +193 -0
- package/src/api/reference/scanner.ts +53 -0
- package/src/api/schema/augmentations/$$.ts +6 -0
- package/src/api/schema/augmentations/$.ts +1 -1
- package/src/api/schema/augmentations/apply.test.ts +89 -0
- package/src/api/schema/augmentations/apply.ts +277 -0
- package/src/api/schema/augmentations/augmentation.ts +24 -0
- package/src/api/schema/augmentations/config.ts +11 -0
- package/src/api/schema/augmentations/diagnostics/diagnostic.ts +20 -0
- package/src/api/schema/augmentations/diagnostics/duplicate-version.ts +20 -0
- package/src/api/schema/augmentations/diagnostics/invalid-path.ts +21 -0
- package/src/api/schema/augmentations/diagnostics/version-mismatch.ts +21 -0
- package/src/api/schema/augmentations/input.test.ts +144 -0
- package/src/api/schema/augmentations/input.ts +215 -0
- package/src/api/schema/augmentations/placement.ts +11 -0
- package/src/api/schema/config-schema.ts +2 -2
- package/src/api/schema/input-source/load.ts +2 -0
- package/src/api/schema/load.ts +19 -2
- package/src/lib/grafaid/schema/format-default-value.ts +22 -0
- package/src/lib/grafaid/schema/schema.ts +2 -0
- package/src/lib/graphql-path/$$.ts +7 -13
- package/src/lib/graphql-path/$.test.ts +175 -0
- package/src/lib/graphql-path/definition.ts +162 -162
- package/src/lib/graphql-path/query.ts +15 -98
- package/src/lib/graphql-path/schema.ts +136 -0
- package/src/lib/graphql-path/types.ts +108 -28
- package/src/lib/version-coverage/version-coverage.ts +48 -6
- package/src/template/components/ArgumentAnnotation.tsx +58 -9
- package/src/template/components/ArgumentListAnnotation.tsx +50 -17
- package/src/template/components/Changelog/groups/FieldArgument.tsx +0 -1
- package/src/template/components/CodeBlock.tsx +1 -0
- package/src/template/components/Description.tsx +1 -1
- package/src/template/components/ExampleLink.tsx +2 -1
- package/src/template/components/Field.tsx +148 -20
- package/src/template/components/FieldList.tsx +28 -13
- package/src/template/components/FieldListSection.tsx +12 -2
- package/src/template/components/GraphQLDocument.tsx +2 -0
- package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +6 -1
- package/src/template/components/GraphQLInteractive/lib/parser.ts +16 -3
- package/src/template/components/IAPIndicator.tsx +73 -0
- package/src/template/components/Link.tsx +9 -3
- package/src/template/components/NamedType.tsx +54 -28
- package/src/template/components/ReferenceLink.tsx +16 -10
- package/src/template/components/TypeAnnotation.tsx +17 -5
- package/src/template/components/ViewModeToggle.tsx +27 -0
- package/src/template/components/graphql/type-link.tsx +34 -3
- package/src/template/components/home/PlaygroundPreview.tsx +3 -0
- package/src/template/components/sidebar/SidebarItem.tsx +21 -5
- package/src/template/contexts/ReferenceConfigContext.tsx +37 -0
- package/src/template/contexts/ViewModeContext.tsx +64 -0
- package/src/template/hooks/useAlignedColumns.ts +19 -0
- package/src/template/routes/changelog/ChangelogSidebar.tsx +4 -4
- package/src/template/routes/examples/name.tsx +13 -1
- package/src/template/routes/reference.tsx +67 -23
- package/src/types/virtual-modules.d.ts +5 -0
- package/src/vite/plugins/core.ts +6 -0
- package/src/vite/plugins/examples.ts +12 -2
- package/src/vite/plugins/index.ts +1 -0
- package/src/vite/plugins/navbar.ts +4 -1
- package/src/vite/plugins/reference.ts +130 -0
- package/src/vite/plugins/schemas.ts +51 -2
- package/build/api/examples/diagnostic/unused-default.d.ts +0 -49
- package/build/api/examples/diagnostic/unused-default.d.ts.map +0 -1
- package/build/api/examples/diagnostic/unused-default.js +0 -19
- package/build/api/examples/diagnostic/unused-default.js.map +0 -1
- package/build/api/schema/augmentations/augmentations/description.d.ts +0 -26
- package/build/api/schema/augmentations/augmentations/description.d.ts.map +0 -1
- package/build/api/schema/augmentations/augmentations/description.js +0 -55
- package/build/api/schema/augmentations/augmentations/description.js.map +0 -1
- package/build/api/schema/augmentations/schema-augmentation.d.ts +0 -20
- package/build/api/schema/augmentations/schema-augmentation.d.ts.map +0 -1
- package/build/api/schema/augmentations/schema-augmentation.js +0 -22
- package/build/api/schema/augmentations/schema-augmentation.js.map +0 -1
- package/build/api/schema/augmentations/target.d.ts +0 -25
- package/build/api/schema/augmentations/target.d.ts.map +0 -1
- package/build/api/schema/augmentations/target.js +0 -39
- package/build/api/schema/augmentations/target.js.map +0 -1
- package/build/lib/graphql-path/constructors.d.ts +0 -57
- package/build/lib/graphql-path/constructors.d.ts.map +0 -1
- package/build/lib/graphql-path/constructors.js +0 -73
- package/build/lib/graphql-path/constructors.js.map +0 -1
- package/build/template/components/ArgumentList.d.ts +0 -6
- package/build/template/components/ArgumentList.d.ts.map +0 -1
- package/build/template/components/ArgumentList.js +0 -9
- package/build/template/components/ArgumentList.js.map +0 -1
- package/src/api/examples/diagnostic/unused-default.ts +0 -22
- package/src/api/schema/augmentations/augmentations/description.ts +0 -69
- package/src/api/schema/augmentations/schema-augmentation.ts +0 -32
- package/src/api/schema/augmentations/target.ts +0 -61
- package/src/lib/graphql-path/constructors.ts +0 -81
- package/src/template/components/ArgumentList.tsx +0 -22
@@ -33,7 +33,7 @@ export declare class VersionNotFoundInDocumentError extends VersionNotFoundInDoc
|
|
33
33
|
export declare const Document: S.Union<[S.TaggedStruct<"DocumentUnversioned", {
|
34
34
|
document: typeof S.String;
|
35
35
|
}>, S.TaggedStruct<"DocumentVersioned", {
|
36
|
-
versionDocuments: S.HashMap<S.Union<[S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>>]>, typeof S.String>;
|
36
|
+
versionDocuments: S.HashMap<S.Union<[typeof VersionCoverage.VersionCoverageUnversioned, S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>>]>, typeof S.String>;
|
37
37
|
}>]>;
|
38
38
|
export type Document = typeof Document.Type;
|
39
39
|
export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions | number) => u is {
|
@@ -41,46 +41,52 @@ export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST
|
|
41
41
|
readonly document: string;
|
42
42
|
} | {
|
43
43
|
readonly _tag: "DocumentVersioned";
|
44
|
-
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
44
|
+
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
45
45
|
};
|
46
46
|
export declare const decode: (i: {
|
47
47
|
readonly _tag: "DocumentUnversioned";
|
48
48
|
readonly document: string;
|
49
49
|
} | {
|
50
50
|
readonly _tag: "DocumentVersioned";
|
51
|
-
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[]
|
51
|
+
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
|
52
|
+
readonly _tag: "VersionCoverageUnversioned";
|
53
|
+
}, string])[];
|
52
54
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
53
55
|
readonly _tag: "DocumentUnversioned";
|
54
56
|
readonly document: string;
|
55
57
|
} | {
|
56
58
|
readonly _tag: "DocumentVersioned";
|
57
|
-
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
59
|
+
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
58
60
|
}, import("effect/ParseResult").ParseError, never>;
|
59
61
|
export declare const decodeSync: (i: {
|
60
62
|
readonly _tag: "DocumentUnversioned";
|
61
63
|
readonly document: string;
|
62
64
|
} | {
|
63
65
|
readonly _tag: "DocumentVersioned";
|
64
|
-
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[]
|
66
|
+
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
|
67
|
+
readonly _tag: "VersionCoverageUnversioned";
|
68
|
+
}, string])[];
|
65
69
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
|
66
70
|
readonly _tag: "DocumentUnversioned";
|
67
71
|
readonly document: string;
|
68
72
|
} | {
|
69
73
|
readonly _tag: "DocumentVersioned";
|
70
|
-
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
74
|
+
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
71
75
|
};
|
72
76
|
export declare const encode: (a: {
|
73
77
|
readonly _tag: "DocumentUnversioned";
|
74
78
|
readonly document: string;
|
75
79
|
} | {
|
76
80
|
readonly _tag: "DocumentVersioned";
|
77
|
-
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
81
|
+
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
78
82
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
79
83
|
readonly _tag: "DocumentUnversioned";
|
80
84
|
readonly document: string;
|
81
85
|
} | {
|
82
86
|
readonly _tag: "DocumentVersioned";
|
83
|
-
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[]
|
87
|
+
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
|
88
|
+
readonly _tag: "VersionCoverageUnversioned";
|
89
|
+
}, string])[];
|
84
90
|
}, import("effect/ParseResult").ParseError, never>;
|
85
91
|
/**
|
86
92
|
* Resolve document content for a given version coverage.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/lib/document/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAQ,MAAM,EAAU,MAAM,QAAQ,CAAA;;;;AAQ7C;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,kCAAiD;IACjG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB,CAAC;CAAG;;;;AAEL;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,oCAAmD;IACrG,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB,CAAC;CAAG;AAML;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;IAGpB,CAAA;AAMD,MAAM,MAAM,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;;;GASG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,QAAQ,EAClB,UAAU,OAAO,CAAC,OAAO,EACzB,kBAAkB,eAAe,CAAC,eAAe,GAAG,IAAI,KACvD,MAAM,CAAC,MAAM,CACd;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAA;CAAE,EACzC,4BAA4B,GAC5B,8BAA8B,GAC9B,OAAO,CAAC,6BAA6B,GACrC,OAAO,CAAC,iBAAiB,CAiD5B,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { S } from '#lib/kit-temp/effect';
|
2
|
+
import { VersionCoverage } from '#lib/version-coverage';
|
2
3
|
import { Version } from '#lib/version/$';
|
3
4
|
import { HashMap, Option } from 'effect';
|
4
5
|
export declare const DocumentVersioned: S.TaggedStruct<"DocumentVersioned", {
|
@@ -8,40 +9,46 @@ export declare const DocumentVersioned: S.TaggedStruct<"DocumentVersioned", {
|
|
8
9
|
* - Single version → document (e.g., v1 → "query for v1")
|
9
10
|
* - Version set → document (e.g., {v2,v3} → "shared query")
|
10
11
|
*/
|
11
|
-
versionDocuments: S.HashMap<S.Union<[S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>>]>, typeof S.String>;
|
12
|
+
versionDocuments: S.HashMap<S.Union<[typeof VersionCoverage.VersionCoverageUnversioned, S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>>]>, typeof S.String>;
|
12
13
|
}>;
|
13
14
|
export type DocumentVersioned = typeof DocumentVersioned.Type;
|
14
15
|
export declare const make: (props: {
|
15
16
|
readonly _tag?: "DocumentVersioned";
|
16
|
-
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
17
|
+
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
17
18
|
}, options?: S.MakeOptions) => {
|
18
19
|
readonly _tag: "DocumentVersioned";
|
19
|
-
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
20
|
+
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
20
21
|
};
|
21
22
|
export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions | number) => u is {
|
22
23
|
readonly _tag: "DocumentVersioned";
|
23
|
-
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
24
|
+
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
24
25
|
};
|
25
26
|
export declare const decode: (i: {
|
26
27
|
readonly _tag: "DocumentVersioned";
|
27
|
-
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[]
|
28
|
+
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
|
29
|
+
readonly _tag: "VersionCoverageUnversioned";
|
30
|
+
}, string])[];
|
28
31
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
29
32
|
readonly _tag: "DocumentVersioned";
|
30
|
-
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
33
|
+
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
31
34
|
}, import("effect/ParseResult").ParseError, never>;
|
32
35
|
export declare const decodeSync: (i: {
|
33
36
|
readonly _tag: "DocumentVersioned";
|
34
|
-
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[]
|
37
|
+
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
|
38
|
+
readonly _tag: "VersionCoverageUnversioned";
|
39
|
+
}, string])[];
|
35
40
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
|
36
41
|
readonly _tag: "DocumentVersioned";
|
37
|
-
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
42
|
+
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
38
43
|
};
|
39
44
|
export declare const encode: (a: {
|
40
45
|
readonly _tag: "DocumentVersioned";
|
41
|
-
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
46
|
+
readonly versionDocuments: HashMap.HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | VersionCoverage.VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
42
47
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
43
48
|
readonly _tag: "DocumentVersioned";
|
44
|
-
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[]
|
49
|
+
readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
|
50
|
+
readonly _tag: "VersionCoverageUnversioned";
|
51
|
+
}, string])[];
|
45
52
|
}, import("effect/ParseResult").ParseError, never>;
|
46
53
|
/**
|
47
54
|
* Get document for a specific version
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"versioned.d.ts","sourceRoot":"","sources":["../../../src/lib/document/versioned.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"versioned.d.ts","sourceRoot":"","sources":["../../../src/lib/document/versioned.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAMxC,eAAO,MAAM,iBAAiB;IAC5B;;;;;OAKG;;EAKH,CAAA;AAMF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA;AAM7D,eAAO,MAAM,IAAI;;;;;;CAAyB,CAAA;AAM1C,eAAO,MAAM,EAAE;;;CAA0B,CAAA;AAMzC,eAAO,MAAM,MAAM;;;;;;;;kDAA8B,CAAA;AACjD,eAAO,MAAM,UAAU;;;;;;;;CAAkC,CAAA;AACzD,eAAO,MAAM,MAAM;;;;;;;;kDAA8B,CAAA;AAMjD;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,KAAK,iBAAiB,EACtB,SAAS,OAAO,CAAC,OAAO,KACvB,MAAM,CAAC,MAAM,CAAC,MAAM,CAetB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,KAAK,iBAAiB,KAAG,OAAO,CAAC,OAAO,EAQtE,CAAA;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,GAAI,KAAK,iBAAiB,KAAG,MAe1E,CAAA"}
|
@@ -15,5 +15,5 @@ export declare const Name: {
|
|
15
15
|
export type KindName = keyof KindMap[`list`];
|
16
16
|
export declare const getKindMap: (schema: Schema) => KindMap;
|
17
17
|
export declare const hasCustomScalars: (typeMapByKind: KindMap) => boolean;
|
18
|
-
export declare const getInterfaceImplementors: (typeMap: KindMap, interfaceTypeSearch: GraphQLInterfaceType) => (
|
18
|
+
export declare const getInterfaceImplementors: (typeMap: KindMap, interfaceTypeSearch: GraphQLInterfaceType) => (Type.Object<any, any> | GraphQLInterfaceType)[];
|
19
19
|
//# sourceMappingURL=_.d.ts.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { GraphQLInputType } from 'graphql';
|
2
|
+
/**
|
3
|
+
* Formats a GraphQL default value into a string representation.
|
4
|
+
* Returns just the value part (e.g., "20", "true", '"hello"')
|
5
|
+
*
|
6
|
+
* @param value - The default value from a GraphQL argument or input field
|
7
|
+
* @param type - The GraphQL input type of the field
|
8
|
+
* @returns The formatted value string, or null if value is undefined
|
9
|
+
*/
|
10
|
+
export declare const formatDefaultValue: (value: unknown, type: GraphQLInputType) => string | null;
|
11
|
+
//# sourceMappingURL=format-default-value.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"format-default-value.d.ts","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/format-default-value.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,EAAE,MAAM,gBAAgB,KAAG,MAAM,GAAG,IAUpF,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { astFromValue, print } from 'graphql';
|
2
|
+
/**
|
3
|
+
* Formats a GraphQL default value into a string representation.
|
4
|
+
* Returns just the value part (e.g., "20", "true", '"hello"')
|
5
|
+
*
|
6
|
+
* @param value - The default value from a GraphQL argument or input field
|
7
|
+
* @param type - The GraphQL input type of the field
|
8
|
+
* @returns The formatted value string, or null if value is undefined
|
9
|
+
*/
|
10
|
+
export const formatDefaultValue = (value, type) => {
|
11
|
+
if (value === undefined)
|
12
|
+
return null;
|
13
|
+
const ast = astFromValue(value, type);
|
14
|
+
if (!ast) {
|
15
|
+
// Fallback for edge cases where astFromValue fails
|
16
|
+
return JSON.stringify(value);
|
17
|
+
}
|
18
|
+
return print(ast);
|
19
|
+
};
|
20
|
+
//# sourceMappingURL=format-default-value.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"format-default-value.js","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/format-default-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAG7C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAE,IAAsB,EAAiB,EAAE;IAC1F,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IAEpC,MAAM,GAAG,GAAG,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IACrC,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,mDAAmD;QACnD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,CAAA;AACnB,CAAC,CAAA"}
|
@@ -17,6 +17,7 @@ export * as Args from './args.js';
|
|
17
17
|
export * as TypesLike from './types-like.js';
|
18
18
|
export * as NodesLike from './nodes-like.js';
|
19
19
|
export * from './read.js';
|
20
|
+
export * from './format-default-value.js';
|
20
21
|
import * as AST from './ast.js';
|
21
22
|
export declare const empty: GraphQLSchema;
|
22
23
|
//# sourceMappingURL=schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5D,OAAO,EAAkB,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9D,OAAO,EACL,iBAAiB,IAAI,sBAAsB,EAC3C,aAAa,IAAI,MAAM,EACvB,uBAAuB,IAAI,oBAAoB,EAC/C,WAAW,IAAI,KAAK,GACrB,MAAM,SAAS,CAAA;AAGhB,eAAO,MAAM,OAAO,GAAI,KAAK,GAAG,CAAC,QAAQ,KAAG,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAW/E,CAAA;AAEJ,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,cAAc,sBAAsB,CAAA;AAEpC,cAAc,qBAAqB,CAAA;AAEnC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,2BAA2B,CAAA;AAEzC,cAAc,iBAAiB,CAAA;AAE/B,cAAc,iBAAiB,CAAA;AAE/B,cAAc,cAAc,CAAA;AAE5B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,cAAc,WAAW,CAAA;AAEzB,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,eAAO,MAAM,KAAK,EAAE,aAAyC,CAAA"}
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5D,OAAO,EAAkB,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9D,OAAO,EACL,iBAAiB,IAAI,sBAAsB,EAC3C,aAAa,IAAI,MAAM,EACvB,uBAAuB,IAAI,oBAAoB,EAC/C,WAAW,IAAI,KAAK,GACrB,MAAM,SAAS,CAAA;AAGhB,eAAO,MAAM,OAAO,GAAI,KAAK,GAAG,CAAC,QAAQ,KAAG,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAW/E,CAAA;AAEJ,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,cAAc,sBAAsB,CAAA;AAEpC,cAAc,qBAAqB,CAAA;AAEnC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,2BAA2B,CAAA;AAEzC,cAAc,iBAAiB,CAAA;AAE/B,cAAc,iBAAiB,CAAA;AAE/B,cAAc,cAAc,CAAA;AAE5B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,cAAc,WAAW,CAAA;AAEzB,cAAc,2BAA2B,CAAA;AAEzC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,eAAO,MAAM,KAAK,EAAE,aAAyC,CAAA"}
|
@@ -24,6 +24,7 @@ export * as Args from './args.js';
|
|
24
24
|
export * as TypesLike from './types-like.js';
|
25
25
|
export * as NodesLike from './nodes-like.js';
|
26
26
|
export * from './read.js';
|
27
|
+
export * from './format-default-value.js';
|
27
28
|
import * as AST from './ast.js';
|
28
29
|
export const empty = buildASTSchema(AST.empty);
|
29
30
|
//# sourceMappingURL=schema.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/schema.ts"],"names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,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,cAAc,WAAW,CAAA;AAEzB,cAAc,2BAA2B,CAAA;AAEzC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,MAAM,CAAC,MAAM,KAAK,GAAkB,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA"}
|
@@ -22,21 +22,15 @@
|
|
22
22
|
* const encoded = GraphQLPath.Definition.encode(userNameFieldPath) // "User.name"
|
23
23
|
* const decoded = GraphQLPath.Definition.decode("User.name") // field definition path
|
24
24
|
*
|
25
|
-
* //
|
26
|
-
* const queryPath = GraphQLPath.Query.
|
27
|
-
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
*
|
31
|
-
* .type('User')
|
32
|
-
* .field('name')
|
33
|
-
* .build()
|
34
|
-
*
|
35
|
-
* // Encode/decode query paths
|
36
|
-
* const encodedQuery = GraphQLPath.Query.encode(queryPath) // "User.posts.Post.author.User.name"
|
37
|
-
* const decodedQuery = GraphQLPath.Query.decode("User.posts.Post.author") // query path
|
25
|
+
* // Decode a query path from a string
|
26
|
+
* const queryPath = GraphQLPath.Query.decode("User.posts.Post.author.User.name")
|
27
|
+
* // Returns array of segments: [TypeSegment, FieldSegment, TypeSegment, FieldSegment, ...]
|
28
|
+
*
|
29
|
+
* // Encode query path segments to a string
|
30
|
+
* const encoded = GraphQLPath.Query.encode(queryPath) // "User.posts.Post.author.User.name"
|
38
31
|
* ```
|
39
32
|
*/
|
40
33
|
export * as Definition from './definition.js';
|
41
34
|
export * as Query from './query.js';
|
35
|
+
export * as Schema from './schema.js';
|
42
36
|
//# sourceMappingURL=$$.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-path/$$.ts"],"names":[],"mappings":"AAAA
|
1
|
+
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-path/$$.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA"}
|
@@ -22,21 +22,15 @@
|
|
22
22
|
* const encoded = GraphQLPath.Definition.encode(userNameFieldPath) // "User.name"
|
23
23
|
* const decoded = GraphQLPath.Definition.decode("User.name") // field definition path
|
24
24
|
*
|
25
|
-
* //
|
26
|
-
* const queryPath = GraphQLPath.Query.
|
27
|
-
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
*
|
31
|
-
* .type('User')
|
32
|
-
* .field('name')
|
33
|
-
* .build()
|
34
|
-
*
|
35
|
-
* // Encode/decode query paths
|
36
|
-
* const encodedQuery = GraphQLPath.Query.encode(queryPath) // "User.posts.Post.author.User.name"
|
37
|
-
* const decodedQuery = GraphQLPath.Query.decode("User.posts.Post.author") // query path
|
25
|
+
* // Decode a query path from a string
|
26
|
+
* const queryPath = GraphQLPath.Query.decode("User.posts.Post.author.User.name")
|
27
|
+
* // Returns array of segments: [TypeSegment, FieldSegment, TypeSegment, FieldSegment, ...]
|
28
|
+
*
|
29
|
+
* // Encode query path segments to a string
|
30
|
+
* const encoded = GraphQLPath.Query.encode(queryPath) // "User.posts.Post.author.User.name"
|
38
31
|
* ```
|
39
32
|
*/
|
40
33
|
export * as Definition from './definition.js';
|
41
34
|
export * as Query from './query.js';
|
35
|
+
export * as Schema from './schema.js';
|
42
36
|
//# sourceMappingURL=$$.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"$$.js","sourceRoot":"","sources":["../../../src/lib/graphql-path/$$.ts"],"names":[],"mappings":"AAAA
|
1
|
+
{"version":3,"file":"$$.js","sourceRoot":"","sources":["../../../src/lib/graphql-path/$$.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA"}
|
@@ -1,152 +1,162 @@
|
|
1
1
|
/**
|
2
|
-
* Definition path operations
|
3
|
-
*/
|
4
|
-
import
|
5
|
-
/**
|
6
|
-
*
|
7
|
-
*
|
8
|
-
*
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
* Definition path operations using Effect Schema transforms
|
3
|
+
*/
|
4
|
+
import { S } from '#lib/kit-temp/effect';
|
5
|
+
/**
|
6
|
+
* Type definition path codec
|
7
|
+
* Encoded: "User"
|
8
|
+
* Decoded: [{ _tag: 'TypeSegment', type: 'User' }]
|
9
|
+
*/
|
10
|
+
export declare const TypeDefinitionPath: S.transformOrFail<typeof S.String, S.Tuple<[S.TaggedStruct<"TypeSegment", {
|
11
|
+
type: typeof S.String;
|
12
|
+
}>]>, never>;
|
13
|
+
/**
|
14
|
+
* Field definition path codec
|
15
|
+
* Encoded: "User.name"
|
16
|
+
* Decoded: [{ _tag: 'TypeSegment', type: 'User' }, { _tag: 'FieldSegment', field: 'name' }]
|
17
|
+
*/
|
18
|
+
export declare const FieldDefinitionPath: S.transformOrFail<typeof S.String, S.Tuple2<S.TaggedStruct<"TypeSegment", {
|
19
|
+
type: typeof S.String;
|
20
|
+
}>, S.TaggedStruct<"FieldSegment", {
|
21
|
+
field: typeof S.String;
|
22
|
+
}>>, never>;
|
23
|
+
/**
|
24
|
+
* Argument definition path codec
|
25
|
+
* Encoded: "User.posts(limit)"
|
26
|
+
* Decoded: [{ _tag: 'TypeSegment', type: 'User' }, { _tag: 'FieldSegment', field: 'posts' }, { _tag: 'ArgumentSegment', argument: 'limit' }]
|
27
|
+
*/
|
28
|
+
export declare const ArgumentDefinitionPath: S.transformOrFail<typeof S.String, S.Tuple<[S.TaggedStruct<"TypeSegment", {
|
29
|
+
type: typeof S.String;
|
30
|
+
}>, S.TaggedStruct<"FieldSegment", {
|
31
|
+
field: typeof S.String;
|
32
|
+
}>, S.TaggedStruct<"ArgumentSegment", {
|
33
|
+
argument: typeof S.String;
|
34
|
+
}>]>, never>;
|
35
|
+
/**
|
36
|
+
* Union of all definition paths
|
37
|
+
* Automatically determines the correct path type from the string format
|
38
|
+
*/
|
39
|
+
export declare const DefinitionPath: S.Union<[S.transformOrFail<typeof S.String, S.Tuple<[S.TaggedStruct<"TypeSegment", {
|
40
|
+
type: typeof S.String;
|
41
|
+
}>, S.TaggedStruct<"FieldSegment", {
|
42
|
+
field: typeof S.String;
|
43
|
+
}>, S.TaggedStruct<"ArgumentSegment", {
|
44
|
+
argument: typeof S.String;
|
45
|
+
}>]>, never>, S.transformOrFail<typeof S.String, S.Tuple2<S.TaggedStruct<"TypeSegment", {
|
46
|
+
type: typeof S.String;
|
47
|
+
}>, S.TaggedStruct<"FieldSegment", {
|
48
|
+
field: typeof S.String;
|
49
|
+
}>>, never>, S.transformOrFail<typeof S.String, S.Tuple<[S.TaggedStruct<"TypeSegment", {
|
50
|
+
type: typeof S.String;
|
51
|
+
}>]>, never>]>;
|
52
|
+
export type TypeDefinitionPath = S.Schema.Type<typeof TypeDefinitionPath>;
|
53
|
+
export type FieldDefinitionPath = S.Schema.Type<typeof FieldDefinitionPath>;
|
54
|
+
export type ArgumentDefinitionPath = S.Schema.Type<typeof ArgumentDefinitionPath>;
|
55
|
+
export type DefinitionPath = S.Schema.Type<typeof DefinitionPath>;
|
15
56
|
/**
|
16
57
|
* Decode a string expression into a definition path
|
17
|
-
*
|
18
58
|
* @param expression - The string expression to decode
|
19
|
-
* @returns The decoded definition path
|
59
|
+
* @returns The decoded definition path
|
20
60
|
* @example
|
21
61
|
* decode('User') // type definition path
|
22
62
|
* decode('User.name') // field definition path
|
23
63
|
* decode('User.posts(limit)') // argument definition path
|
24
64
|
*/
|
25
|
-
export declare const
|
65
|
+
export declare const decodeSync: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => readonly [{
|
66
|
+
readonly _tag: "TypeSegment";
|
67
|
+
readonly type: string;
|
68
|
+
}] | readonly [{
|
69
|
+
readonly _tag: "TypeSegment";
|
70
|
+
readonly type: string;
|
71
|
+
}, {
|
72
|
+
readonly _tag: "FieldSegment";
|
73
|
+
readonly field: string;
|
74
|
+
}] | readonly [{
|
75
|
+
readonly _tag: "TypeSegment";
|
76
|
+
readonly type: string;
|
77
|
+
}, {
|
78
|
+
readonly _tag: "FieldSegment";
|
79
|
+
readonly field: string;
|
80
|
+
}, {
|
81
|
+
readonly _tag: "ArgumentSegment";
|
82
|
+
readonly argument: string;
|
83
|
+
}];
|
84
|
+
/**
|
85
|
+
* Encode a definition path to a string expression
|
86
|
+
* @param path - The definition path to encode
|
87
|
+
* @returns A string expression representation
|
88
|
+
* @example
|
89
|
+
* encode([{ _tag: 'TypeSegment', type: 'User' }]) // 'User'
|
90
|
+
* encode([{ _tag: 'TypeSegment', type: 'User' }, { _tag: 'FieldSegment', field: 'name' }]) // 'User.name'
|
91
|
+
*/
|
92
|
+
export declare const encodeSync: (a: readonly [{
|
93
|
+
readonly _tag: "TypeSegment";
|
94
|
+
readonly type: string;
|
95
|
+
}] | readonly [{
|
96
|
+
readonly _tag: "TypeSegment";
|
97
|
+
readonly type: string;
|
98
|
+
}, {
|
99
|
+
readonly _tag: "FieldSegment";
|
100
|
+
readonly field: string;
|
101
|
+
}] | readonly [{
|
102
|
+
readonly _tag: "TypeSegment";
|
103
|
+
readonly type: string;
|
104
|
+
}, {
|
105
|
+
readonly _tag: "FieldSegment";
|
106
|
+
readonly field: string;
|
107
|
+
}, {
|
108
|
+
readonly _tag: "ArgumentSegment";
|
109
|
+
readonly argument: string;
|
110
|
+
}], overrideOptions?: import("effect/SchemaAST").ParseOptions) => string;
|
26
111
|
/**
|
27
112
|
* Extract the type name from any definition path
|
28
|
-
*
|
29
113
|
* @param path - The definition path
|
30
114
|
* @returns The type name
|
31
|
-
* @example getType([{ kind: 'type', type: 'User' }]) // 'User'
|
32
115
|
*/
|
33
116
|
export declare const getType: (path: DefinitionPath) => string;
|
34
117
|
/**
|
35
118
|
* Extract the field name from a field or argument definition path
|
36
|
-
*
|
37
119
|
* @param path - The field or argument definition path
|
38
120
|
* @returns The field name
|
39
|
-
* @example getField([{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]) // 'name'
|
40
121
|
*/
|
41
122
|
export declare const getField: (path: FieldDefinitionPath | ArgumentDefinitionPath) => string;
|
42
123
|
/**
|
43
124
|
* Extract the argument name from an argument definition path
|
44
|
-
*
|
45
125
|
* @param path - The argument definition path
|
46
126
|
* @returns The argument name
|
47
|
-
* @example getArgument([{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]) // 'limit'
|
48
127
|
*/
|
49
128
|
export declare const getArgument: (path: ArgumentDefinitionPath) => string;
|
50
|
-
/**
|
51
|
-
* Parse field path like "User.email" into type and field names
|
52
|
-
*/
|
53
|
-
export declare const parseFieldPath: (path?: string) => {
|
54
|
-
typeName: string | null;
|
55
|
-
fieldName: string | null;
|
56
|
-
};
|
57
|
-
/**
|
58
|
-
* Definition paths - direct paths to schema definition elements
|
59
|
-
* These represent the "address" of a specific schema element
|
60
|
-
*/
|
61
|
-
export type DefinitionPath = TypeDefinitionPath | FieldDefinitionPath | ArgumentDefinitionPath;
|
62
|
-
/**
|
63
|
-
* Path to a type definition
|
64
|
-
* @example [{ kind: 'type', type: 'User' }]
|
65
|
-
*/
|
66
|
-
export type TypeDefinitionPath = [TypeSegment];
|
67
|
-
/**
|
68
|
-
* Path to a field definition (type + field)
|
69
|
-
* @example [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]
|
70
|
-
*/
|
71
|
-
export type FieldDefinitionPath = [TypeSegment, FieldSegment];
|
72
|
-
/**
|
73
|
-
* Path to an argument definition (type + field + argument)
|
74
|
-
* @example [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]
|
75
|
-
*/
|
76
|
-
export type ArgumentDefinitionPath = [TypeSegment, FieldSegment, ArgumentSegment];
|
77
129
|
/**
|
78
130
|
* Type guard to check if a path is a type definition path
|
79
|
-
*
|
80
|
-
* @param path - The path to check
|
81
|
-
* @returns True if the path is a type definition path
|
82
131
|
*/
|
83
132
|
export declare const isTypeDefinitionPath: (path: DefinitionPath) => path is TypeDefinitionPath;
|
84
133
|
/**
|
85
134
|
* Type guard to check if a path is a field definition path
|
86
|
-
*
|
87
|
-
* @param path - The path to check
|
88
|
-
* @returns True if the path is a field definition path
|
89
135
|
*/
|
90
136
|
export declare const isFieldDefinitionPath: (path: DefinitionPath) => path is FieldDefinitionPath;
|
91
137
|
/**
|
92
138
|
* Type guard to check if a path is an argument definition path
|
93
|
-
*
|
94
|
-
* @param path - The path to check
|
95
|
-
* @returns True if the path is an argument definition path
|
96
139
|
*/
|
97
140
|
export declare const isArgumentDefinitionPath: (path: DefinitionPath) => path is ArgumentDefinitionPath;
|
98
|
-
/**
|
99
|
-
* Create a path to a type definition
|
100
|
-
*
|
101
|
-
* @param type - The type name
|
102
|
-
* @returns A type definition path
|
103
|
-
* @example createTypeDefinitionPath('User') // [{ kind: 'type', type: 'User' }]
|
104
|
-
*/
|
105
|
-
export declare const createTypeDefinitionPath: (type: string) => TypeDefinitionPath;
|
106
|
-
/**
|
107
|
-
* Create a path to a field definition
|
108
|
-
*
|
109
|
-
* @param type - The type name
|
110
|
-
* @param field - The field name
|
111
|
-
* @returns A field definition path
|
112
|
-
* @example createFieldDefinitionPath('User', 'name') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]
|
113
|
-
*/
|
114
|
-
export declare const createFieldDefinitionPath: (type: string, field: string) => FieldDefinitionPath;
|
115
|
-
/**
|
116
|
-
* Create a path to an argument definition
|
117
|
-
*
|
118
|
-
* @param type - The type name
|
119
|
-
* @param field - The field name
|
120
|
-
* @param argument - The argument name
|
121
|
-
* @returns An argument definition path
|
122
|
-
* @example createArgumentDefinitionPath('User', 'posts', 'limit') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]
|
123
|
-
*/
|
124
|
-
export declare const createArgumentDefinitionPath: (type: string, field: string, argument: string) => ArgumentDefinitionPath;
|
125
141
|
/**
|
126
142
|
* Create a type definition path
|
127
|
-
*
|
128
143
|
* @param type - The type name
|
129
144
|
* @returns A type definition path
|
130
|
-
* @example type('User') // [{ kind: 'type', type: 'User' }]
|
131
145
|
*/
|
132
|
-
export declare const type: (
|
146
|
+
export declare const type: (typeName: string) => TypeDefinitionPath;
|
133
147
|
/**
|
134
148
|
* Create a field definition path
|
135
|
-
*
|
136
149
|
* @param type - The type name
|
137
150
|
* @param field - The field name
|
138
151
|
* @returns A field definition path
|
139
|
-
* @example field('User', 'name') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]
|
140
152
|
*/
|
141
|
-
export declare const field: (
|
153
|
+
export declare const field: (typeName: string, fieldName: string) => FieldDefinitionPath;
|
142
154
|
/**
|
143
155
|
* Create an argument definition path
|
144
|
-
*
|
145
156
|
* @param type - The type name
|
146
157
|
* @param field - The field name
|
147
158
|
* @param argument - The argument name
|
148
159
|
* @returns An argument definition path
|
149
|
-
* @example argument('User', 'posts', 'limit') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]
|
150
160
|
*/
|
151
|
-
export declare const argument: (
|
161
|
+
export declare const argument: (typeName: string, fieldName: string, argumentName: string) => ArgumentDefinitionPath;
|
152
162
|
//# sourceMappingURL=definition.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-path/definition.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
1
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