@weavelogic/knowledge-graph-agent 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +374 -427
- package/dist/_virtual/ExpiringCache.js +5 -0
- package/dist/_virtual/ExpiringCache.js.map +1 -0
- package/dist/_virtual/___vite-browser-external.js +7 -0
- package/dist/_virtual/___vite-browser-external.js.map +1 -0
- package/dist/_virtual/__vite-browser-external.js +5 -0
- package/dist/_virtual/__vite-browser-external.js.map +1 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +7 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +27 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/assert-valid-pattern.js +5 -0
- package/dist/_virtual/assert-valid-pattern.js.map +1 -0
- package/dist/_virtual/ast-converter.js +5 -0
- package/dist/_virtual/ast-converter.js.map +1 -0
- package/dist/_virtual/ast-spec.js +5 -0
- package/dist/_virtual/ast-spec.js.map +1 -0
- package/dist/_virtual/ast.js +5 -0
- package/dist/_virtual/ast.js.map +1 -0
- package/dist/_virtual/brace-expressions.js +5 -0
- package/dist/_virtual/brace-expressions.js.map +1 -0
- package/dist/_virtual/browser.js +6 -0
- package/dist/_virtual/browser.js.map +1 -0
- package/dist/_virtual/browser2.js +5 -0
- package/dist/_virtual/browser2.js.map +1 -0
- package/dist/_virtual/candidateTSConfigRootDirs.js +5 -0
- package/dist/_virtual/candidateTSConfigRootDirs.js.map +1 -0
- package/dist/_virtual/check-modifiers.js +5 -0
- package/dist/_virtual/check-modifiers.js.map +1 -0
- package/dist/_virtual/clear-caches.js +5 -0
- package/dist/_virtual/clear-caches.js.map +1 -0
- package/dist/_virtual/compilerOptions.js +5 -0
- package/dist/_virtual/compilerOptions.js.map +1 -0
- package/dist/_virtual/convert-comments.js +5 -0
- package/dist/_virtual/convert-comments.js.map +1 -0
- package/dist/_virtual/convert.js +5 -0
- package/dist/_virtual/convert.js.map +1 -0
- package/dist/_virtual/createIsolatedProgram.js +5 -0
- package/dist/_virtual/createIsolatedProgram.js.map +1 -0
- package/dist/_virtual/createParseSettings.js +5 -0
- package/dist/_virtual/createParseSettings.js.map +1 -0
- package/dist/_virtual/createParserServices.js +5 -0
- package/dist/_virtual/createParserServices.js.map +1 -0
- package/dist/_virtual/createProjectProgram.js +5 -0
- package/dist/_virtual/createProjectProgram.js.map +1 -0
- package/dist/_virtual/createProjectProgramError.js +5 -0
- package/dist/_virtual/createProjectProgramError.js.map +1 -0
- package/dist/_virtual/createProjectService.js +5 -0
- package/dist/_virtual/createProjectService.js.map +1 -0
- package/dist/_virtual/createSourceFile.js +5 -0
- package/dist/_virtual/createSourceFile.js.map +1 -0
- package/dist/_virtual/describeFilePath.js +5 -0
- package/dist/_virtual/describeFilePath.js.map +1 -0
- package/dist/_virtual/escape.js +5 -0
- package/dist/_virtual/escape.js.map +1 -0
- package/dist/_virtual/eslint-visitor-keys.js +5 -0
- package/dist/_virtual/eslint-visitor-keys.js.map +1 -0
- package/dist/_virtual/estree-to-ts-node-types.js +5 -0
- package/dist/_virtual/estree-to-ts-node-types.js.map +1 -0
- package/dist/_virtual/get-keys.js +5 -0
- package/dist/_virtual/get-keys.js.map +1 -0
- package/dist/_virtual/getModifiers.js +5 -0
- package/dist/_virtual/getModifiers.js.map +1 -0
- package/dist/_virtual/getParsedConfigFile.js +5 -0
- package/dist/_virtual/getParsedConfigFile.js.map +1 -0
- package/dist/_virtual/getParsedConfigFileFromTSServer.js +5 -0
- package/dist/_virtual/getParsedConfigFileFromTSServer.js.map +1 -0
- package/dist/_virtual/getProjectConfigFiles.js +5 -0
- package/dist/_virtual/getProjectConfigFiles.js.map +1 -0
- package/dist/_virtual/getScriptKind.js +5 -0
- package/dist/_virtual/getScriptKind.js.map +1 -0
- package/dist/_virtual/getWatchProgramsForProjects.js +5 -0
- package/dist/_virtual/getWatchProgramsForProjects.js.map +1 -0
- package/dist/_virtual/global-ponyfill.js +9 -0
- package/dist/_virtual/global-ponyfill.js.map +1 -0
- package/dist/_virtual/global-ponyfill2.js +5 -0
- package/dist/_virtual/global-ponyfill2.js.map +1 -0
- package/dist/_virtual/index.js +2 -4
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/_virtual/inferSingleRun.js +5 -0
- package/dist/_virtual/inferSingleRun.js.map +1 -0
- package/dist/_virtual/lib.js +5 -0
- package/dist/_virtual/lib.js.map +1 -0
- package/dist/_virtual/node-utils.js +5 -0
- package/dist/_virtual/node-utils.js.map +1 -0
- package/dist/_virtual/parser-options.js +5 -0
- package/dist/_virtual/parser-options.js.map +1 -0
- package/dist/_virtual/parser.js +5 -0
- package/dist/_virtual/parser.js.map +1 -0
- package/dist/_virtual/re.js +5 -0
- package/dist/_virtual/re.js.map +1 -0
- package/dist/_virtual/resolveProjectList.js +5 -0
- package/dist/_virtual/resolveProjectList.js.map +1 -0
- package/dist/_virtual/semantic-or-syntactic-errors.js +5 -0
- package/dist/_virtual/semantic-or-syntactic-errors.js.map +1 -0
- package/dist/_virtual/shared.js +5 -0
- package/dist/_virtual/shared.js.map +1 -0
- package/dist/_virtual/simple-traverse.js +5 -0
- package/dist/_virtual/simple-traverse.js.map +1 -0
- package/dist/_virtual/source-files.js +5 -0
- package/dist/_virtual/source-files.js.map +1 -0
- package/dist/_virtual/ts-estree.js +5 -0
- package/dist/_virtual/ts-estree.js.map +1 -0
- package/dist/_virtual/ts-nodes.js +5 -0
- package/dist/_virtual/ts-nodes.js.map +1 -0
- package/dist/_virtual/tsserverlibrary.js +5 -0
- package/dist/_virtual/tsserverlibrary.js.map +1 -0
- package/dist/_virtual/typescript.js +5 -0
- package/dist/_virtual/typescript.js.map +1 -0
- package/dist/_virtual/unescape.js +5 -0
- package/dist/_virtual/unescape.js.map +1 -0
- package/dist/_virtual/useProgramFromProjectService.js +5 -0
- package/dist/_virtual/useProgramFromProjectService.js.map +1 -0
- package/dist/_virtual/useProvidedPrograms.js +5 -0
- package/dist/_virtual/useProvidedPrograms.js.map +1 -0
- package/dist/_virtual/utils.js +5 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/validateDefaultProjectForFilesGlob.js +5 -0
- package/dist/_virtual/validateDefaultProjectForFilesGlob.js.map +1 -0
- package/dist/_virtual/version-check.js +5 -0
- package/dist/_virtual/version-check.js.map +1 -0
- package/dist/_virtual/version.js +5 -0
- package/dist/_virtual/version.js.map +1 -0
- package/dist/_virtual/visitor-keys.js +5 -0
- package/dist/_virtual/visitor-keys.js.map +1 -0
- package/dist/_virtual/warnAboutTSVersion.js +5 -0
- package/dist/_virtual/warnAboutTSVersion.js.map +1 -0
- package/dist/_virtual/withoutProjectParserOptions.js +5 -0
- package/dist/_virtual/withoutProjectParserOptions.js.map +1 -0
- package/dist/_virtual/xhtml-entities.js +5 -0
- package/dist/_virtual/xhtml-entities.js.map +1 -0
- package/dist/audit/config.d.ts +150 -0
- package/dist/audit/config.d.ts.map +1 -0
- package/dist/audit/config.js +111 -0
- package/dist/audit/config.js.map +1 -0
- package/dist/audit/index.d.ts +38 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/services/audit-chain.d.ts +276 -0
- package/dist/audit/services/audit-chain.d.ts.map +1 -0
- package/dist/audit/services/audit-chain.js +502 -0
- package/dist/audit/services/audit-chain.js.map +1 -0
- package/dist/audit/services/index.d.ts +11 -0
- package/dist/audit/services/index.d.ts.map +1 -0
- package/dist/audit/services/syndication.d.ts +334 -0
- package/dist/audit/services/syndication.d.ts.map +1 -0
- package/dist/audit/services/syndication.js +589 -0
- package/dist/audit/services/syndication.js.map +1 -0
- package/dist/audit/types.d.ts +453 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/cli/commands/audit.d.ts +21 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/audit.js +621 -0
- package/dist/cli/commands/audit.js.map +1 -0
- package/dist/cli/commands/dashboard.d.ts +14 -0
- package/dist/cli/commands/dashboard.d.ts.map +1 -0
- package/dist/cli/commands/dashboard.js +271 -0
- package/dist/cli/commands/dashboard.js.map +1 -0
- package/dist/cli/commands/plugin.d.ts +14 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.js +784 -0
- package/dist/cli/commands/plugin.js.map +1 -0
- package/dist/cli/commands/serve.d.ts +15 -0
- package/dist/cli/commands/serve.d.ts.map +1 -0
- package/dist/cli/commands/serve.js +252 -0
- package/dist/cli/commands/serve.js.map +1 -0
- package/dist/cli/commands/vector.d.ts +14 -0
- package/dist/cli/commands/vector.d.ts.map +1 -0
- package/dist/cli/commands/vector.js +429 -0
- package/dist/cli/commands/vector.js.map +1 -0
- package/dist/cli/commands/workflow.d.ts +12 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +471 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +54 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/config/manager.js +325 -0
- package/dist/config/manager.js.map +1 -0
- package/dist/dashboard-server/index.d.ts +31 -0
- package/dist/dashboard-server/index.d.ts.map +1 -0
- package/dist/dashboard-server/server.d.ts +205 -0
- package/dist/dashboard-server/server.d.ts.map +1 -0
- package/dist/dashboard-server/server.js +651 -0
- package/dist/dashboard-server/server.js.map +1 -0
- package/dist/database/schemas/index.d.ts +85 -0
- package/dist/database/schemas/index.d.ts.map +1 -0
- package/dist/graphql/context.d.ts +154 -0
- package/dist/graphql/context.d.ts.map +1 -0
- package/dist/graphql/context.js +168 -0
- package/dist/graphql/context.js.map +1 -0
- package/dist/graphql/index.d.ts +12 -0
- package/dist/graphql/index.d.ts.map +1 -0
- package/dist/graphql/pubsub.d.ts +282 -0
- package/dist/graphql/pubsub.d.ts.map +1 -0
- package/dist/graphql/resolvers/index.d.ts +519 -0
- package/dist/graphql/resolvers/index.d.ts.map +1 -0
- package/dist/graphql/resolvers/mutations.d.ts +255 -0
- package/dist/graphql/resolvers/mutations.d.ts.map +1 -0
- package/dist/graphql/resolvers/queries.d.ts +451 -0
- package/dist/graphql/resolvers/queries.d.ts.map +1 -0
- package/dist/graphql/resolvers/subscriptions.d.ts +399 -0
- package/dist/graphql/resolvers/subscriptions.d.ts.map +1 -0
- package/dist/graphql/scalars.d.ts +89 -0
- package/dist/graphql/scalars.d.ts.map +1 -0
- package/dist/graphql/scalars.js +242 -0
- package/dist/graphql/scalars.js.map +1 -0
- package/dist/graphql/server.d.ts +122 -0
- package/dist/graphql/server.d.ts.map +1 -0
- package/dist/graphql/server.js +368 -0
- package/dist/graphql/server.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/handlers/index.js +1 -1
- package/dist/mcp-server/server.js +2 -2
- package/dist/mcp-server/tools/audit/checkpoint.d.ts +58 -0
- package/dist/mcp-server/tools/audit/checkpoint.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/checkpoint.js +73 -0
- package/dist/mcp-server/tools/audit/checkpoint.js.map +1 -0
- package/dist/mcp-server/tools/audit/index.d.ts +53 -0
- package/dist/mcp-server/tools/audit/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/index.js +12 -0
- package/dist/mcp-server/tools/audit/index.js.map +1 -0
- package/dist/mcp-server/tools/audit/query.d.ts +58 -0
- package/dist/mcp-server/tools/audit/query.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/query.js +125 -0
- package/dist/mcp-server/tools/audit/query.js.map +1 -0
- package/dist/mcp-server/tools/audit/sync.d.ts +58 -0
- package/dist/mcp-server/tools/audit/sync.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/sync.js +126 -0
- package/dist/mcp-server/tools/audit/sync.js.map +1 -0
- package/dist/mcp-server/tools/index.d.ts +3 -0
- package/dist/mcp-server/tools/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/registry.js +90 -0
- package/dist/mcp-server/tools/registry.js.map +1 -1
- package/dist/mcp-server/tools/vector/index.d.ts +12 -0
- package/dist/mcp-server/tools/vector/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/index.js +12 -0
- package/dist/mcp-server/tools/vector/index.js.map +1 -0
- package/dist/mcp-server/tools/vector/search.d.ts +41 -0
- package/dist/mcp-server/tools/vector/search.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/search.js +224 -0
- package/dist/mcp-server/tools/vector/search.js.map +1 -0
- package/dist/mcp-server/tools/vector/trajectory.d.ts +39 -0
- package/dist/mcp-server/tools/vector/trajectory.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/trajectory.js +170 -0
- package/dist/mcp-server/tools/vector/trajectory.js.map +1 -0
- package/dist/mcp-server/tools/vector/upsert.d.ts +44 -0
- package/dist/mcp-server/tools/vector/upsert.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/upsert.js +175 -0
- package/dist/mcp-server/tools/vector/upsert.js.map +1 -0
- package/dist/mcp-server/tools/workflow/index.d.ts +29 -0
- package/dist/mcp-server/tools/workflow/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/index.js +12 -0
- package/dist/mcp-server/tools/workflow/index.js.map +1 -0
- package/dist/mcp-server/tools/workflow/list.d.ts +41 -0
- package/dist/mcp-server/tools/workflow/list.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/list.js +195 -0
- package/dist/mcp-server/tools/workflow/list.js.map +1 -0
- package/dist/mcp-server/tools/workflow/start.d.ts +40 -0
- package/dist/mcp-server/tools/workflow/start.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/start.js +165 -0
- package/dist/mcp-server/tools/workflow/start.js.map +1 -0
- package/dist/mcp-server/tools/workflow/status.d.ts +38 -0
- package/dist/mcp-server/tools/workflow/status.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/status.js +97 -0
- package/dist/mcp-server/tools/workflow/status.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/create.js +31 -0
- package/dist/node_modules/@envelop/core/esm/create.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/document-string-map.js +5 -0
- package/dist/node_modules/@envelop/core/esm/document-string-map.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/orchestrator.js +407 -0
- package/dist/node_modules/@envelop/core/esm/orchestrator.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-engine.js +29 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-engine.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-extend-context.js +10 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-extend-context.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-masked-errors.js +86 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-masked-errors.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/utils.js +129 -0
- package/dist/node_modules/@envelop/core/esm/utils.js.map +1 -0
- package/dist/node_modules/@envelop/instrumentation/esm/instrumentation.js +51 -0
- package/dist/node_modules/@envelop/instrumentation/esm/instrumentation.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/coerceError.js +26 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/coerceError.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/execute.js +1101 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/execute.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/flattenAsyncIterable.js +72 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/flattenAsyncIterable.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/invariant.js +9 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/invariant.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/normalizedExecutor.js +22 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/normalizedExecutor.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/promiseForObject.js +26 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/promiseForObject.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/values.js +73 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/values.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/extensions.js +46 -0
- package/dist/node_modules/@graphql-tools/merge/esm/extensions.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/links.js +142 -0
- package/dist/node_modules/@graphql-tools/merge/esm/links.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/merge-resolvers.js +27 -0
- package/dist/node_modules/@graphql-tools/merge/esm/merge-resolvers.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/arguments.js +23 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/arguments.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/directives.js +113 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum-values.js +39 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum-values.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum.js +23 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/fields.js +74 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/fields.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/input-type.js +27 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/input-type.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/interface.js +29 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/interface.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-named-type-array.js +15 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-named-type-array.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-nodes.js +81 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-nodes.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-typedefs.js +142 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-typedefs.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/scalar.js +21 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/scalar.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/schema-def.js +36 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/schema-def.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/type.js +29 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/type.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/union.js +24 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/union.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/utils.js +67 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/utils.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/addResolversToSchema.js +287 -0
- package/dist/node_modules/@graphql-tools/schema/esm/addResolversToSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/assertResolversPresent.js +42 -0
- package/dist/node_modules/@graphql-tools/schema/esm/assertResolversPresent.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/checkForResolveTypeResolver.js +22 -0
- package/dist/node_modules/@graphql-tools/schema/esm/checkForResolveTypeResolver.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/extendResolversFromInterfaces.js +34 -0
- package/dist/node_modules/@graphql-tools/schema/esm/extendResolversFromInterfaces.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/makeExecutableSchema.js +50 -0
- package/dist/node_modules/@graphql-tools/schema/esm/makeExecutableSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/AccumulatorMap.js +17 -0
- package/dist/node_modules/@graphql-tools/utils/esm/AccumulatorMap.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Interfaces.js +32 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Interfaces.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Path.js +21 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Path.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromType.js +31 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromType.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValue.js +70 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValue.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js +56 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/collectFields.js +137 -0
- package/dist/node_modules/@graphql-tools/utils/esm/collectFields.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/comments.js +337 -0
- package/dist/node_modules/@graphql-tools/utils/esm/comments.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js +20 -0
- package/dist/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/directives.js +46 -0
- package/dist/node_modules/@graphql-tools/utils/esm/directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/errors.js +52 -0
- package/dist/node_modules/@graphql-tools/utils/esm/errors.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachDefaultValue.js +28 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachDefaultValue.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachField.js +18 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachField.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/get-directives.js +12 -0
- package/dist/node_modules/@graphql-tools/utils/esm/get-directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getArgumentValues.js +61 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getArgumentValues.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js +76 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getObjectTypeFromTypeMap.js +13 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getObjectTypeFromTypeMap.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/heal.js +120 -0
- package/dist/node_modules/@graphql-tools/utils/esm/heal.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/helpers.js +42 -0
- package/dist/node_modules/@graphql-tools/utils/esm/helpers.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isAsyncIterable.js +7 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isAsyncIterable.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isDocumentNode.js +8 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isDocumentNode.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/jsutils.js +26 -0
- package/dist/node_modules/@graphql-tools/utils/esm/jsutils.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mapSchema.js +439 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mapSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/memoize.js +104 -0
- package/dist/node_modules/@graphql-tools/utils/esm/memoize.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mergeDeep.js +86 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mergeDeep.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js +370 -0
- package/dist/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rewire.js +155 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rewire.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rootTypes.js +33 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rootTypes.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/stub.js +32 -0
- package/dist/node_modules/@graphql-tools/utils/esm/stub.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/transformInputValue.js +47 -0
- package/dist/node_modules/@graphql-tools/utils/esm/transformInputValue.js.map +1 -0
- package/dist/node_modules/@graphql-yoga/logger/esm/index.js +42 -0
- package/dist/node_modules/@graphql-yoga/logger/esm/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/createProjectService.js +126 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/createProjectService.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js +25 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/index.js +32 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js +20 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js +87 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js +34 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +201 -0
- package/dist/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/index.js +45 -0
- package/dist/node_modules/@typescript-eslint/types/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/lib.js +12 -0
- package/dist/node_modules/@typescript-eslint/types/dist/lib.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/parser-options.js +12 -0
- package/dist/node_modules/@typescript-eslint/types/dist/parser-options.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/ts-estree.js +52 -0
- package/dist/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +54 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js +207 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +34 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +81 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +2438 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +117 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +33 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js +82 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +84 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +31 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +90 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +292 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +134 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +91 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js +35 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js +39 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +88 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/index.js +90 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +268 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +533 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +50 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js +38 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +216 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +87 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +53 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +89 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +92 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +132 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +124 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +64 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js +63 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +12 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +46 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +12 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js +205 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +75 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version.js +15 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +23 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js +495 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js +121 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js +763 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/package.json.js +9 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/package.json.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +16 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/index.js +25 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +187 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/AsyncDisposableStack.js +72 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/AsyncDisposableStack.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/SupressedError.js +16 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/SupressedError.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/index.js +6 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/index.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/symbols.js +12 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/symbols.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/utils.js +12 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/utils.js.map +1 -0
- package/dist/node_modules/@whatwg-node/fetch/dist/global-ponyfill.js +33 -0
- package/dist/node_modules/@whatwg-node/fetch/dist/global-ponyfill.js.map +1 -0
- package/dist/node_modules/@whatwg-node/promise-helpers/esm/index.js +241 -0
- package/dist/node_modules/@whatwg-node/promise-helpers/esm/index.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/createServerAdapter.js +333 -0
- package/dist/node_modules/@whatwg-node/server/esm/createServerAdapter.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/plugins/useCors.js +106 -0
- package/dist/node_modules/@whatwg-node/server/esm/plugins/useCors.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/utils.js +476 -0
- package/dist/node_modules/@whatwg-node/server/esm/utils.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/uwebsockets.js +232 -0
- package/dist/node_modules/@whatwg-node/server/esm/uwebsockets.js.map +1 -0
- package/dist/node_modules/balanced-match/index.js +62 -0
- package/dist/node_modules/balanced-match/index.js.map +1 -0
- package/dist/node_modules/brace-expansion/index.js +156 -0
- package/dist/node_modules/brace-expansion/index.js.map +1 -0
- package/dist/node_modules/cross-inspect/esm/index.js +89 -0
- package/dist/node_modules/cross-inspect/esm/index.js.map +1 -0
- package/dist/node_modules/debug/src/browser.js +178 -0
- package/dist/node_modules/debug/src/browser.js.map +1 -0
- package/dist/node_modules/debug/src/common.js +183 -0
- package/dist/node_modules/debug/src/common.js.map +1 -0
- package/dist/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.js +353 -0
- package/dist/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.js.map +1 -0
- package/dist/node_modules/fdir/dist/index.js +540 -0
- package/dist/node_modules/fdir/dist/index.js.map +1 -0
- package/dist/node_modules/graphql/error/GraphQLError.js +154 -0
- package/dist/node_modules/graphql/error/GraphQLError.js.map +1 -0
- package/dist/node_modules/graphql/error/locatedError.js +23 -0
- package/dist/node_modules/graphql/error/locatedError.js.map +1 -0
- package/dist/node_modules/graphql/error/syntaxError.js +11 -0
- package/dist/node_modules/graphql/error/syntaxError.js.map +1 -0
- package/dist/node_modules/graphql/execution/collectFields.js +128 -0
- package/dist/node_modules/graphql/execution/collectFields.js.map +1 -0
- package/dist/node_modules/graphql/execution/execute.js +606 -0
- package/dist/node_modules/graphql/execution/execute.js.map +1 -0
- package/dist/node_modules/graphql/execution/mapAsyncIterator.js +46 -0
- package/dist/node_modules/graphql/execution/mapAsyncIterator.js.map +1 -0
- package/dist/node_modules/graphql/execution/subscribe.js +121 -0
- package/dist/node_modules/graphql/execution/subscribe.js.map +1 -0
- package/dist/node_modules/graphql/execution/values.js +184 -0
- package/dist/node_modules/graphql/execution/values.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/Path.js +21 -0
- package/dist/node_modules/graphql/jsutils/Path.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/devAssert.js +10 -0
- package/dist/node_modules/graphql/jsutils/devAssert.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/didYouMean.js +24 -0
- package/dist/node_modules/graphql/jsutils/didYouMean.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/groupBy.js +17 -0
- package/dist/node_modules/graphql/jsutils/groupBy.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/identityFunc.js +7 -0
- package/dist/node_modules/graphql/jsutils/identityFunc.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/inspect.js +85 -0
- package/dist/node_modules/graphql/jsutils/inspect.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/instanceOf.js +42 -0
- package/dist/node_modules/graphql/jsutils/instanceOf.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/invariant.js +12 -0
- package/dist/node_modules/graphql/jsutils/invariant.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isAsyncIterable.js +7 -0
- package/dist/node_modules/graphql/jsutils/isAsyncIterable.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isIterableObject.js +7 -0
- package/dist/node_modules/graphql/jsutils/isIterableObject.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isObjectLike.js +7 -0
- package/dist/node_modules/graphql/jsutils/isObjectLike.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isPromise.js +7 -0
- package/dist/node_modules/graphql/jsutils/isPromise.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/keyMap.js +11 -0
- package/dist/node_modules/graphql/jsutils/keyMap.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/keyValMap.js +11 -0
- package/dist/node_modules/graphql/jsutils/keyValMap.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/mapValue.js +11 -0
- package/dist/node_modules/graphql/jsutils/mapValue.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/memoize3.js +28 -0
- package/dist/node_modules/graphql/jsutils/memoize3.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/naturalCompare.js +47 -0
- package/dist/node_modules/graphql/jsutils/naturalCompare.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/printPathArray.js +9 -0
- package/dist/node_modules/graphql/jsutils/printPathArray.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/promiseForObject.js +13 -0
- package/dist/node_modules/graphql/jsutils/promiseForObject.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/promiseReduce.js +12 -0
- package/dist/node_modules/graphql/jsutils/promiseReduce.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/suggestionList.js +94 -0
- package/dist/node_modules/graphql/jsutils/suggestionList.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/toError.js +15 -0
- package/dist/node_modules/graphql/jsutils/toError.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/toObjMap.js +17 -0
- package/dist/node_modules/graphql/jsutils/toObjMap.js.map +1 -0
- package/dist/node_modules/graphql/language/ast.js +189 -0
- package/dist/node_modules/graphql/language/ast.js.map +1 -0
- package/dist/node_modules/graphql/language/blockString.js +60 -0
- package/dist/node_modules/graphql/language/blockString.js.map +1 -0
- package/dist/node_modules/graphql/language/characterClasses.js +24 -0
- package/dist/node_modules/graphql/language/characterClasses.js.map +1 -0
- package/dist/node_modules/graphql/language/directiveLocation.js +26 -0
- package/dist/node_modules/graphql/language/directiveLocation.js.map +1 -0
- package/dist/node_modules/graphql/language/kinds.js +55 -0
- package/dist/node_modules/graphql/language/kinds.js.map +1 -0
- package/dist/node_modules/graphql/language/lexer.js +543 -0
- package/dist/node_modules/graphql/language/lexer.js.map +1 -0
- package/dist/node_modules/graphql/language/location.js +22 -0
- package/dist/node_modules/graphql/language/location.js.map +1 -0
- package/dist/node_modules/graphql/language/parser.js +1343 -0
- package/dist/node_modules/graphql/language/parser.js.map +1 -0
- package/dist/node_modules/graphql/language/predicates.js +28 -0
- package/dist/node_modules/graphql/language/predicates.js.map +1 -0
- package/dist/node_modules/graphql/language/printLocation.js +51 -0
- package/dist/node_modules/graphql/language/printLocation.js.map +1 -0
- package/dist/node_modules/graphql/language/printString.js +178 -0
- package/dist/node_modules/graphql/language/printString.js.map +1 -0
- package/dist/node_modules/graphql/language/printer.js +269 -0
- package/dist/node_modules/graphql/language/printer.js.map +1 -0
- package/dist/node_modules/graphql/language/source.js +33 -0
- package/dist/node_modules/graphql/language/source.js.map +1 -0
- package/dist/node_modules/graphql/language/tokenKind.js +30 -0
- package/dist/node_modules/graphql/language/tokenKind.js.map +1 -0
- package/dist/node_modules/graphql/language/visitor.js +192 -0
- package/dist/node_modules/graphql/language/visitor.js.map +1 -0
- package/dist/node_modules/graphql/type/assertName.js +34 -0
- package/dist/node_modules/graphql/type/assertName.js.map +1 -0
- package/dist/node_modules/graphql/type/definition.js +648 -0
- package/dist/node_modules/graphql/type/definition.js.map +1 -0
- package/dist/node_modules/graphql/type/directives.js +137 -0
- package/dist/node_modules/graphql/type/directives.js.map +1 -0
- package/dist/node_modules/graphql/type/introspection.js +506 -0
- package/dist/node_modules/graphql/type/introspection.js.map +1 -0
- package/dist/node_modules/graphql/type/scalars.js +248 -0
- package/dist/node_modules/graphql/type/scalars.js.map +1 -0
- package/dist/node_modules/graphql/type/schema.js +223 -0
- package/dist/node_modules/graphql/type/schema.js.map +1 -0
- package/dist/node_modules/graphql/type/validate.js +461 -0
- package/dist/node_modules/graphql/type/validate.js.map +1 -0
- package/dist/node_modules/graphql/utilities/TypeInfo.js +257 -0
- package/dist/node_modules/graphql/utilities/TypeInfo.js.map +1 -0
- package/dist/node_modules/graphql/utilities/astFromValue.js +111 -0
- package/dist/node_modules/graphql/utilities/astFromValue.js.map +1 -0
- package/dist/node_modules/graphql/utilities/buildASTSchema.js +65 -0
- package/dist/node_modules/graphql/utilities/buildASTSchema.js.map +1 -0
- package/dist/node_modules/graphql/utilities/coerceInputValue.js +154 -0
- package/dist/node_modules/graphql/utilities/coerceInputValue.js.map +1 -0
- package/dist/node_modules/graphql/utilities/extendSchema.js +456 -0
- package/dist/node_modules/graphql/utilities/extendSchema.js.map +1 -0
- package/dist/node_modules/graphql/utilities/getOperationAST.js +22 -0
- package/dist/node_modules/graphql/utilities/getOperationAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/sortValueNode.js +30 -0
- package/dist/node_modules/graphql/utilities/sortValueNode.js.map +1 -0
- package/dist/node_modules/graphql/utilities/typeComparators.js +58 -0
- package/dist/node_modules/graphql/utilities/typeComparators.js.map +1 -0
- package/dist/node_modules/graphql/utilities/typeFromAST.js +20 -0
- package/dist/node_modules/graphql/utilities/typeFromAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/valueFromAST.js +109 -0
- package/dist/node_modules/graphql/utilities/valueFromAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/valueFromASTUntyped.js +32 -0
- package/dist/node_modules/graphql/utilities/valueFromASTUntyped.js.map +1 -0
- package/dist/node_modules/graphql/validation/ValidationContext.js +171 -0
- package/dist/node_modules/graphql/validation/ValidationContext.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +24 -0
- package/dist/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +80 -0
- package/dist/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +43 -0
- package/dist/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +73 -0
- package/dist/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownDirectivesRule.js +112 -0
- package/dist/node_modules/graphql/validation/rules/KnownDirectivesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +20 -0
- package/dist/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +55 -0
- package/dist/node_modules/graphql/validation/rules/KnownTypeNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +28 -0
- package/dist/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +34 -0
- package/dist/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +56 -0
- package/dist/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +53 -0
- package/dist/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +34 -0
- package/dist/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +41 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +519 -0
- package/dist/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +55 -0
- package/dist/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +113 -0
- package/dist/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +99 -0
- package/dist/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ScalarLeafsRule.js +53 -0
- package/dist/node_modules/graphql/validation/rules/ScalarLeafsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +62 -0
- package/dist/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +47 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +29 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +63 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +50 -0
- package/dist/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +59 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +27 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +32 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +48 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +41 -0
- package/dist/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +30 -0
- package/dist/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +170 -0
- package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +27 -0
- package/dist/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +74 -0
- package/dist/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/specifiedRules.js +88 -0
- package/dist/node_modules/graphql/validation/specifiedRules.js.map +1 -0
- package/dist/node_modules/graphql/validation/validate.js +65 -0
- package/dist/node_modules/graphql/validation/validate.js.map +1 -0
- package/dist/node_modules/graphql/version.js +10 -0
- package/dist/node_modules/graphql/version.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/common.js +127 -0
- package/dist/node_modules/graphql-ws/lib/common.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/server.js +257 -0
- package/dist/node_modules/graphql-ws/lib/server.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/use/ws.js +83 -0
- package/dist/node_modules/graphql-ws/lib/use/ws.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/utils.js +35 -0
- package/dist/node_modules/graphql-ws/lib/utils.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/error.js +127 -0
- package/dist/node_modules/graphql-yoga/esm/error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/graphiql-html.js +5 -0
- package/dist/node_modules/graphql-yoga/esm/graphiql-html.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/landing-page-html.js +21 -0
- package/dist/node_modules/graphql-yoga/esm/landing-page-html.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/allowed-headers.js +26 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/allowed-headers.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/get.js +15 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/get.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-form-url-encoded.js +12 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-form-url-encoded.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-graphql-string.js +12 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-graphql-string.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-json.js +58 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-json.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-multipart.js +78 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-multipart.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/utils.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/utils.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-graphql-query-params.js +131 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-graphql-query-params.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-method-for-graphql.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-method-for-graphql.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-http-validation-error.js +21 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-http-validation-error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-limit-batching.js +37 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-limit-batching.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-prevent-mutation-via-get.js +61 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-prevent-mutation-via-get.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/accept.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/accept.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/multipart.js +68 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/multipart.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/regular.js +29 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/regular.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/sse.js +83 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/sse.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/stringify.js +47 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/stringify.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-graphiql.js +55 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-graphiql.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-health-check.js +20 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-health-check.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-parser-and-validation-cache.js +63 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-parser-and-validation-cache.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-request-parser.js +15 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-request-parser.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-result-processor.js +58 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-result-processor.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-schema.js +76 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-schema.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-unhandled-route.js +52 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-unhandled-route.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/process-request.js +56 -0
- package/dist/node_modules/graphql-yoga/esm/process-request.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/server.js +374 -0
- package/dist/node_modules/graphql-yoga/esm/server.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/utils/create-lru-cache.js +10 -0
- package/dist/node_modules/graphql-yoga/esm/utils/create-lru-cache.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/utils/mask-error.js +47 -0
- package/dist/node_modules/graphql-yoga/esm/utils/mask-error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/node_modules/lru-cache/dist/esm/index.js +1370 -0
- package/dist/node_modules/graphql-yoga/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/dist/node_modules/ms/index.js +121 -0
- package/dist/node_modules/ms/index.js.map +1 -0
- package/dist/node_modules/picomatch/index.js +23 -0
- package/dist/node_modules/picomatch/index.js.map +1 -0
- package/dist/node_modules/picomatch/lib/constants.js +203 -0
- package/dist/node_modules/picomatch/lib/constants.js.map +1 -0
- package/dist/node_modules/picomatch/lib/parse.js +774 -0
- package/dist/node_modules/picomatch/lib/parse.js.map +1 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +148 -0
- package/dist/node_modules/picomatch/lib/picomatch.js.map +1 -0
- package/dist/node_modules/picomatch/lib/scan.js +336 -0
- package/dist/node_modules/picomatch/lib/scan.js.map +1 -0
- package/dist/node_modules/picomatch/lib/utils.js +71 -0
- package/dist/node_modules/picomatch/lib/utils.js.map +1 -0
- package/dist/node_modules/semver/classes/comparator.js +123 -0
- package/dist/node_modules/semver/classes/comparator.js.map +1 -0
- package/dist/node_modules/semver/classes/range.js +388 -0
- package/dist/node_modules/semver/classes/range.js.map +1 -0
- package/dist/node_modules/semver/classes/semver.js +288 -0
- package/dist/node_modules/semver/classes/semver.js.map +1 -0
- package/dist/node_modules/semver/functions/clean.js +18 -0
- package/dist/node_modules/semver/functions/clean.js.map +1 -0
- package/dist/node_modules/semver/functions/cmp.js +60 -0
- package/dist/node_modules/semver/functions/cmp.js.map +1 -0
- package/dist/node_modules/semver/functions/coerce.js +53 -0
- package/dist/node_modules/semver/functions/coerce.js.map +1 -0
- package/dist/node_modules/semver/functions/compare-build.js +19 -0
- package/dist/node_modules/semver/functions/compare-build.js.map +1 -0
- package/dist/node_modules/semver/functions/compare-loose.js +15 -0
- package/dist/node_modules/semver/functions/compare-loose.js.map +1 -0
- package/dist/node_modules/semver/functions/compare.js +15 -0
- package/dist/node_modules/semver/functions/compare.js.map +1 -0
- package/dist/node_modules/semver/functions/diff.js +49 -0
- package/dist/node_modules/semver/functions/diff.js.map +1 -0
- package/dist/node_modules/semver/functions/eq.js +15 -0
- package/dist/node_modules/semver/functions/eq.js.map +1 -0
- package/dist/node_modules/semver/functions/gt.js +15 -0
- package/dist/node_modules/semver/functions/gt.js.map +1 -0
- package/dist/node_modules/semver/functions/gte.js +15 -0
- package/dist/node_modules/semver/functions/gte.js.map +1 -0
- package/dist/node_modules/semver/functions/inc.js +29 -0
- package/dist/node_modules/semver/functions/inc.js.map +1 -0
- package/dist/node_modules/semver/functions/lt.js +15 -0
- package/dist/node_modules/semver/functions/lt.js.map +1 -0
- package/dist/node_modules/semver/functions/lte.js +15 -0
- package/dist/node_modules/semver/functions/lte.js.map +1 -0
- package/dist/node_modules/semver/functions/major.js +15 -0
- package/dist/node_modules/semver/functions/major.js.map +1 -0
- package/dist/node_modules/semver/functions/minor.js +15 -0
- package/dist/node_modules/semver/functions/minor.js.map +1 -0
- package/dist/node_modules/semver/functions/neq.js +15 -0
- package/dist/node_modules/semver/functions/neq.js.map +1 -0
- package/dist/node_modules/semver/functions/parse.js +27 -0
- package/dist/node_modules/semver/functions/parse.js.map +1 -0
- package/dist/node_modules/semver/functions/patch.js +15 -0
- package/dist/node_modules/semver/functions/patch.js.map +1 -0
- package/dist/node_modules/semver/functions/prerelease.js +18 -0
- package/dist/node_modules/semver/functions/prerelease.js.map +1 -0
- package/dist/node_modules/semver/functions/rcompare.js +15 -0
- package/dist/node_modules/semver/functions/rcompare.js.map +1 -0
- package/dist/node_modules/semver/functions/rsort.js +15 -0
- package/dist/node_modules/semver/functions/rsort.js.map +1 -0
- package/dist/node_modules/semver/functions/satisfies.js +22 -0
- package/dist/node_modules/semver/functions/satisfies.js.map +1 -0
- package/dist/node_modules/semver/functions/sort.js +15 -0
- package/dist/node_modules/semver/functions/sort.js.map +1 -0
- package/dist/node_modules/semver/functions/valid.js +18 -0
- package/dist/node_modules/semver/functions/valid.js.map +1 -0
- package/dist/node_modules/semver/index.js +140 -0
- package/dist/node_modules/semver/index.js.map +1 -0
- package/dist/node_modules/semver/internal/constants.js +36 -0
- package/dist/node_modules/semver/internal/constants.js.map +1 -0
- package/dist/node_modules/semver/internal/debug.js +14 -0
- package/dist/node_modules/semver/internal/debug.js.map +1 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/lrucache.js.map +1 -0
- package/dist/node_modules/semver/internal/parse-options.js +23 -0
- package/dist/node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/node_modules/semver/internal/re.js +96 -0
- package/dist/node_modules/semver/internal/re.js.map +1 -0
- package/dist/node_modules/semver/ranges/gtr.js +15 -0
- package/dist/node_modules/semver/ranges/gtr.js.map +1 -0
- package/dist/node_modules/semver/ranges/intersects.js +19 -0
- package/dist/node_modules/semver/ranges/intersects.js.map +1 -0
- package/dist/node_modules/semver/ranges/ltr.js +15 -0
- package/dist/node_modules/semver/ranges/ltr.js.map +1 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +35 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +35 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/node_modules/semver/ranges/min-version.js +66 -0
- package/dist/node_modules/semver/ranges/min-version.js.map +1 -0
- package/dist/node_modules/semver/ranges/outside.js +81 -0
- package/dist/node_modules/semver/ranges/outside.js.map +1 -0
- package/dist/node_modules/semver/ranges/simplify.js +56 -0
- package/dist/node_modules/semver/ranges/simplify.js.map +1 -0
- package/dist/node_modules/semver/ranges/subset.js +170 -0
- package/dist/node_modules/semver/ranges/subset.js.map +1 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +15 -0
- package/dist/node_modules/semver/ranges/to-comparators.js.map +1 -0
- package/dist/node_modules/semver/ranges/valid.js +21 -0
- package/dist/node_modules/semver/ranges/valid.js.map +1 -0
- package/dist/node_modules/tinyglobby/dist/index.js +332 -0
- package/dist/node_modules/tinyglobby/dist/index.js.map +1 -0
- package/dist/node_modules/ts-api-utils/lib/index.js +2361 -0
- package/dist/node_modules/ts-api-utils/lib/index.js.map +1 -0
- package/dist/node_modules/typescript/lib/tsserverlibrary.js +33 -0
- package/dist/node_modules/typescript/lib/tsserverlibrary.js.map +1 -0
- package/dist/node_modules/typescript/lib/typescript.js +210602 -0
- package/dist/node_modules/typescript/lib/typescript.js.map +1 -0
- package/dist/node_modules/ws/browser.js +16 -0
- package/dist/node_modules/ws/browser.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.d.ts +105 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.js +507 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.d.ts +70 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.js +405 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/index.d.ts +191 -0
- package/dist/plugins/analyzers/code-complexity/index.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/index.js +276 -0
- package/dist/plugins/analyzers/code-complexity/index.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/metrics.d.ts +77 -0
- package/dist/plugins/analyzers/code-complexity/metrics.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/metrics.js +514 -0
- package/dist/plugins/analyzers/code-complexity/metrics.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/plugin.d.ts +161 -0
- package/dist/plugins/analyzers/code-complexity/plugin.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/plugin.js +661 -0
- package/dist/plugins/analyzers/code-complexity/plugin.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/types.d.ts +360 -0
- package/dist/plugins/analyzers/code-complexity/types.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/types.js +27 -0
- package/dist/plugins/analyzers/code-complexity/types.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.d.ts +56 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.js +387 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.d.ts +60 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.js +295 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/index.d.ts +201 -0
- package/dist/plugins/analyzers/dependency-health/index.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/index.js +857 -0
- package/dist/plugins/analyzers/dependency-health/index.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.d.ts +68 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.js +226 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/types.d.ts +462 -0
- package/dist/plugins/analyzers/dependency-health/types.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.d.ts +80 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.js +215 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.js.map +1 -0
- package/dist/plugins/analyzers/index.d.ts +12 -0
- package/dist/plugins/analyzers/index.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +13 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/loader.d.ts +158 -0
- package/dist/plugins/loader.d.ts.map +1 -0
- package/dist/plugins/loader.js +554 -0
- package/dist/plugins/loader.js.map +1 -0
- package/dist/plugins/manager.d.ts +183 -0
- package/dist/plugins/manager.d.ts.map +1 -0
- package/dist/plugins/manager.js +876 -0
- package/dist/plugins/manager.js.map +1 -0
- package/dist/plugins/registry.d.ts +163 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +448 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/types.d.ts +930 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +43 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/server/container.d.ts +263 -0
- package/dist/server/container.d.ts.map +1 -0
- package/dist/server/container.js +605 -0
- package/dist/server/container.js.map +1 -0
- package/dist/server/event-bus.d.ts +418 -0
- package/dist/server/event-bus.d.ts.map +1 -0
- package/dist/server/event-bus.js +442 -0
- package/dist/server/event-bus.js.map +1 -0
- package/dist/server/index.d.ts +37 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/manager.d.ts +123 -0
- package/dist/server/manager.d.ts.map +1 -0
- package/dist/server/manager.js +742 -0
- package/dist/server/manager.js.map +1 -0
- package/dist/server/shared-services.d.ts +130 -0
- package/dist/server/shared-services.d.ts.map +1 -0
- package/dist/server/shared-services.js +476 -0
- package/dist/server/shared-services.js.map +1 -0
- package/dist/server/types.d.ts +320 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/server/types.js +13 -0
- package/dist/server/types.js.map +1 -0
- package/dist/services/manager.js +328 -0
- package/dist/services/manager.js.map +1 -0
- package/dist/vector/config.d.ts +300 -0
- package/dist/vector/config.d.ts.map +1 -0
- package/dist/vector/config.js +124 -0
- package/dist/vector/config.js.map +1 -0
- package/dist/vector/index.d.ts +50 -0
- package/dist/vector/index.d.ts.map +1 -0
- package/dist/vector/services/index.d.ts +13 -0
- package/dist/vector/services/index.d.ts.map +1 -0
- package/dist/vector/services/trajectory-tracker.d.ts +405 -0
- package/dist/vector/services/trajectory-tracker.d.ts.map +1 -0
- package/dist/vector/services/trajectory-tracker.js +445 -0
- package/dist/vector/services/trajectory-tracker.js.map +1 -0
- package/dist/vector/services/vector-store.d.ts +339 -0
- package/dist/vector/services/vector-store.d.ts.map +1 -0
- package/dist/vector/services/vector-store.js +748 -0
- package/dist/vector/services/vector-store.js.map +1 -0
- package/dist/vector/types.d.ts +677 -0
- package/dist/vector/types.d.ts.map +1 -0
- package/dist/workflow/adapters/goap-adapter.d.ts +196 -0
- package/dist/workflow/adapters/goap-adapter.d.ts.map +1 -0
- package/dist/workflow/adapters/goap-adapter.js +706 -0
- package/dist/workflow/adapters/goap-adapter.js.map +1 -0
- package/dist/workflow/adapters/index.d.ts +10 -0
- package/dist/workflow/adapters/index.d.ts.map +1 -0
- package/dist/workflow/config.d.ts +135 -0
- package/dist/workflow/config.d.ts.map +1 -0
- package/dist/workflow/config.js +92 -0
- package/dist/workflow/config.js.map +1 -0
- package/dist/workflow/handlers/index.d.ts +9 -0
- package/dist/workflow/handlers/index.d.ts.map +1 -0
- package/dist/workflow/handlers/webhook-handlers.d.ts +397 -0
- package/dist/workflow/handlers/webhook-handlers.d.ts.map +1 -0
- package/dist/workflow/handlers/webhook-handlers.js +454 -0
- package/dist/workflow/handlers/webhook-handlers.js.map +1 -0
- package/dist/workflow/index.d.ts +42 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/services/index.d.ts +9 -0
- package/dist/workflow/services/index.d.ts.map +1 -0
- package/dist/workflow/services/workflow-service.d.ts +318 -0
- package/dist/workflow/services/workflow-service.d.ts.map +1 -0
- package/dist/workflow/services/workflow-service.js +577 -0
- package/dist/workflow/services/workflow-service.js.map +1 -0
- package/dist/workflow/types.d.ts +470 -0
- package/dist/workflow/types.d.ts.map +1 -0
- package/dist/workflow/workflows/realtime-collab.d.ts +245 -0
- package/dist/workflow/workflows/realtime-collab.d.ts.map +1 -0
- package/package.json +29 -3
- package/dist/_virtual/additionalItems.js +0 -5
- package/dist/_virtual/additionalItems.js.map +0 -1
- package/dist/_virtual/additionalProperties.js +0 -5
- package/dist/_virtual/additionalProperties.js.map +0 -1
- package/dist/_virtual/ajv.js +0 -6
- package/dist/_virtual/ajv.js.map +0 -1
- package/dist/_virtual/ajv2.js +0 -5
- package/dist/_virtual/ajv2.js.map +0 -1
- package/dist/_virtual/allOf.js +0 -5
- package/dist/_virtual/allOf.js.map +0 -1
- package/dist/_virtual/anyOf.js +0 -5
- package/dist/_virtual/anyOf.js.map +0 -1
- package/dist/_virtual/applicability.js +0 -5
- package/dist/_virtual/applicability.js.map +0 -1
- package/dist/_virtual/boolSchema.js +0 -5
- package/dist/_virtual/boolSchema.js.map +0 -1
- package/dist/_virtual/code.js +0 -5
- package/dist/_virtual/code.js.map +0 -1
- package/dist/_virtual/code2.js +0 -5
- package/dist/_virtual/code2.js.map +0 -1
- package/dist/_virtual/const.js +0 -5
- package/dist/_virtual/const.js.map +0 -1
- package/dist/_virtual/contains.js +0 -5
- package/dist/_virtual/contains.js.map +0 -1
- package/dist/_virtual/core.js +0 -5
- package/dist/_virtual/core.js.map +0 -1
- package/dist/_virtual/dataType.js +0 -5
- package/dist/_virtual/dataType.js.map +0 -1
- package/dist/_virtual/defaults.js +0 -5
- package/dist/_virtual/defaults.js.map +0 -1
- package/dist/_virtual/dependencies.js +0 -5
- package/dist/_virtual/dependencies.js.map +0 -1
- package/dist/_virtual/draft7.js +0 -5
- package/dist/_virtual/draft7.js.map +0 -1
- package/dist/_virtual/enum.js +0 -5
- package/dist/_virtual/enum.js.map +0 -1
- package/dist/_virtual/equal.js +0 -5
- package/dist/_virtual/equal.js.map +0 -1
- package/dist/_virtual/errors.js +0 -5
- package/dist/_virtual/errors.js.map +0 -1
- package/dist/_virtual/format.js +0 -5
- package/dist/_virtual/format.js.map +0 -1
- package/dist/_virtual/formats.js +0 -5
- package/dist/_virtual/formats.js.map +0 -1
- package/dist/_virtual/id.js +0 -5
- package/dist/_virtual/id.js.map +0 -1
- package/dist/_virtual/if.js +0 -5
- package/dist/_virtual/if.js.map +0 -1
- package/dist/_virtual/index12.js +0 -5
- package/dist/_virtual/index12.js.map +0 -1
- package/dist/_virtual/items.js +0 -5
- package/dist/_virtual/items.js.map +0 -1
- package/dist/_virtual/items2020.js +0 -5
- package/dist/_virtual/items2020.js.map +0 -1
- package/dist/_virtual/keyword.js +0 -5
- package/dist/_virtual/keyword.js.map +0 -1
- package/dist/_virtual/limit.js +0 -5
- package/dist/_virtual/limit.js.map +0 -1
- package/dist/_virtual/limitItems.js +0 -5
- package/dist/_virtual/limitItems.js.map +0 -1
- package/dist/_virtual/limitLength.js +0 -5
- package/dist/_virtual/limitLength.js.map +0 -1
- package/dist/_virtual/limitNumber.js +0 -5
- package/dist/_virtual/limitNumber.js.map +0 -1
- package/dist/_virtual/limitProperties.js +0 -5
- package/dist/_virtual/limitProperties.js.map +0 -1
- package/dist/_virtual/metadata.js +0 -5
- package/dist/_virtual/metadata.js.map +0 -1
- package/dist/_virtual/multipleOf.js +0 -5
- package/dist/_virtual/multipleOf.js.map +0 -1
- package/dist/_virtual/names.js +0 -5
- package/dist/_virtual/names.js.map +0 -1
- package/dist/_virtual/not.js +0 -5
- package/dist/_virtual/not.js.map +0 -1
- package/dist/_virtual/oneOf.js +0 -5
- package/dist/_virtual/oneOf.js.map +0 -1
- package/dist/_virtual/pattern.js +0 -5
- package/dist/_virtual/pattern.js.map +0 -1
- package/dist/_virtual/patternProperties.js +0 -5
- package/dist/_virtual/patternProperties.js.map +0 -1
- package/dist/_virtual/prefixItems.js +0 -5
- package/dist/_virtual/prefixItems.js.map +0 -1
- package/dist/_virtual/properties.js +0 -5
- package/dist/_virtual/properties.js.map +0 -1
- package/dist/_virtual/propertyNames.js +0 -5
- package/dist/_virtual/propertyNames.js.map +0 -1
- package/dist/_virtual/ref.js +0 -5
- package/dist/_virtual/ref.js.map +0 -1
- package/dist/_virtual/ref_error.js +0 -5
- package/dist/_virtual/ref_error.js.map +0 -1
- package/dist/_virtual/required.js +0 -5
- package/dist/_virtual/required.js.map +0 -1
- package/dist/_virtual/resolve.js +0 -5
- package/dist/_virtual/resolve.js.map +0 -1
- package/dist/_virtual/rules.js +0 -5
- package/dist/_virtual/rules.js.map +0 -1
- package/dist/_virtual/scope.js +0 -5
- package/dist/_virtual/scope.js.map +0 -1
- package/dist/_virtual/subschema.js +0 -5
- package/dist/_virtual/subschema.js.map +0 -1
- package/dist/_virtual/thenElse.js +0 -5
- package/dist/_virtual/thenElse.js.map +0 -1
- package/dist/_virtual/types.js +0 -5
- package/dist/_virtual/types.js.map +0 -1
- package/dist/_virtual/ucs2length.js +0 -5
- package/dist/_virtual/ucs2length.js.map +0 -1
- package/dist/_virtual/uniqueItems.js +0 -5
- package/dist/_virtual/uniqueItems.js.map +0 -1
- package/dist/_virtual/uri.js +0 -5
- package/dist/_virtual/uri.js.map +0 -1
- package/dist/_virtual/util.js +0 -5
- package/dist/_virtual/util.js.map +0 -1
- package/dist/_virtual/validation_error.js +0 -5
- package/dist/_virtual/validation_error.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +0 -296
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +0 -71
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +0 -26
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +0 -407
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +0 -1332
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +0 -71
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +0 -1
- package/dist/node_modules/ajv/dist/ajv.js +0 -84
- package/dist/node_modules/ajv/dist/ajv.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -160
- package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -728
- package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -152
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/errors.js +0 -131
- package/dist/node_modules/ajv/dist/compile/errors.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/index.js +0 -234
- package/dist/node_modules/ajv/dist/compile/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/names.js +0 -44
- package/dist/node_modules/ajv/dist/compile/names.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -22
- package/dist/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/resolve.js +0 -163
- package/dist/node_modules/ajv/dist/compile/resolve.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/rules.js +0 -35
- package/dist/node_modules/ajv/dist/compile/rules.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/util.js +0 -173
- package/dist/node_modules/ajv/dist/compile/util.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -27
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -58
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -193
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -43
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -522
- package/dist/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -126
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -89
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
- package/dist/node_modules/ajv/dist/core.js +0 -628
- package/dist/node_modules/ajv/dist/core.js.map +0 -1
- package/dist/node_modules/ajv/dist/refs/data.json.js +0 -24
- package/dist/node_modules/ajv/dist/refs/data.json.js.map +0 -1
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +0 -25
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/equal.js +0 -16
- package/dist/node_modules/ajv/dist/runtime/equal.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -30
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/uri.js +0 -16
- package/dist/node_modules/ajv/dist/runtime/uri.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -20
- package/dist/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -59
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -114
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -32
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -100
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -103
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -75
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -68
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -64
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -43
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -36
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -64
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -81
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -66
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -49
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -23
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -140
- package/dist/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -19
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -132
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -114
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -18
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -31
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -95
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -36
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -56
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -52
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -39
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -37
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -33
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -89
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -75
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/formats.js +0 -209
- package/dist/node_modules/ajv-formats/dist/formats.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/index.js +0 -51
- package/dist/node_modules/ajv-formats/dist/index.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/limit.js +0 -80
- package/dist/node_modules/ajv-formats/dist/limit.js.map +0 -1
- package/dist/node_modules/fast-deep-equal/index.js +0 -39
- package/dist/node_modules/fast-deep-equal/index.js.map +0 -1
- package/dist/node_modules/fast-uri/index.js +0 -261
- package/dist/node_modules/fast-uri/index.js.map +0 -1
- package/dist/node_modules/fast-uri/lib/schemes.js +0 -215
- package/dist/node_modules/fast-uri/lib/schemes.js.map +0 -1
- package/dist/node_modules/fast-uri/lib/utils.js +0 -261
- package/dist/node_modules/fast-uri/lib/utils.js.map +0 -1
- package/dist/node_modules/json-schema-traverse/index.js +0 -92
- package/dist/node_modules/json-schema-traverse/index.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.js +0 -37
- package/dist/node_modules/zod/v4/classic/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.js +0 -43
- package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.js +0 -13
- package/dist/node_modules/zod/v4/classic/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -688
- package/dist/node_modules/zod/v4/classic/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/api.js +0 -492
- package/dist/node_modules/zod/v4/core/api.js.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.js +0 -405
- package/dist/node_modules/zod/v4/core/checks.js.map +0 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -58
- package/dist/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.js +0 -38
- package/dist/node_modules/zod/v4/core/doc.js.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.js +0 -82
- package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.js +0 -60
- package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.js +0 -87
- package/dist/node_modules/zod/v4/core/regexes.js.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -52
- package/dist/node_modules/zod/v4/core/registries.js.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.js +0 -1283
- package/dist/node_modules/zod/v4/core/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/util.js +0 -341
- package/dist/node_modules/zod/v4/core/util.js.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.js +0 -9
- package/dist/node_modules/zod/v4/core/versions.js.map +0 -1
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -2
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/string.js.map +0 -1
|
@@ -0,0 +1,1101 @@
|
|
|
1
|
+
import { isPromise, fakePromise, createDeferredPromise, mapAsyncIterator, handleMaybePromise } from "../../../../@whatwg-node/promise-helpers/esm/index.js";
|
|
2
|
+
import { coerceError } from "./coerceError.js";
|
|
3
|
+
import { flattenAsyncIterable } from "./flattenAsyncIterable.js";
|
|
4
|
+
import { invariant } from "./invariant.js";
|
|
5
|
+
import { promiseForObject } from "./promiseForObject.js";
|
|
6
|
+
import { getVariableValues } from "./values.js";
|
|
7
|
+
import { isObjectLike, promiseReduce, isIterableObject } from "../../../utils/esm/jsutils.js";
|
|
8
|
+
import { assertValidSchema } from "../../../../graphql/type/validate.js";
|
|
9
|
+
import { memoize1, memoize3 } from "../../../utils/esm/memoize.js";
|
|
10
|
+
import { Kind } from "../../../../graphql/language/kinds.js";
|
|
11
|
+
import { isAsyncIterable } from "../../../utils/esm/isAsyncIterable.js";
|
|
12
|
+
import { collectFields, collectSubFields } from "../../../utils/esm/collectFields.js";
|
|
13
|
+
import { addPath, pathToArray } from "../../../utils/esm/Path.js";
|
|
14
|
+
import { getArgumentValues } from "../../../utils/esm/getArgumentValues.js";
|
|
15
|
+
import { createGraphQLError, locatedError } from "../../../utils/esm/errors.js";
|
|
16
|
+
import { getDefinedRootType } from "../../../utils/esm/rootTypes.js";
|
|
17
|
+
import { SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef } from "../../../../graphql/type/introspection.js";
|
|
18
|
+
import { inspect } from "../../../../cross-inspect/esm/index.js";
|
|
19
|
+
import { isNonNullType, isListType, isLeafType, isAbstractType, isObjectType } from "../../../../graphql/type/definition.js";
|
|
20
|
+
import { GraphQLError } from "../../../../graphql/error/GraphQLError.js";
|
|
21
|
+
import { getDirectiveValues } from "../../../../graphql/execution/values.js";
|
|
22
|
+
import { GraphQLStreamDirective } from "../../../utils/esm/directives.js";
|
|
23
|
+
import { versionInfo } from "../../../../graphql/version.js";
|
|
24
|
+
import { DisposableSymbols } from "../../../../@whatwg-node/disposablestack/esm/symbols.js";
|
|
25
|
+
const collectSubfields = memoize3((exeContext, returnType, fieldNodes) => collectSubFields(exeContext.schema, exeContext.fragments, exeContext.variableValues, returnType, fieldNodes));
|
|
26
|
+
function execute(args) {
|
|
27
|
+
const exeContext = buildExecutionContext(args);
|
|
28
|
+
if (!("schema" in exeContext)) {
|
|
29
|
+
return {
|
|
30
|
+
errors: exeContext.map((e) => {
|
|
31
|
+
Object.defineProperty(e, "extensions", {
|
|
32
|
+
value: {
|
|
33
|
+
...e.extensions,
|
|
34
|
+
http: {
|
|
35
|
+
...e.extensions?.["http"] || {},
|
|
36
|
+
status: 400
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
return e;
|
|
41
|
+
})
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return executeImpl(exeContext);
|
|
45
|
+
}
|
|
46
|
+
function executeImpl(exeContext) {
|
|
47
|
+
exeContext.signal?.throwIfAborted();
|
|
48
|
+
return handleMaybePromise(() => executeOperation(exeContext), (data) => {
|
|
49
|
+
const initialResult = buildResponse(data, exeContext.errors);
|
|
50
|
+
if (exeContext.subsequentPayloads.size > 0) {
|
|
51
|
+
return {
|
|
52
|
+
initialResult: {
|
|
53
|
+
...initialResult,
|
|
54
|
+
hasNext: true
|
|
55
|
+
},
|
|
56
|
+
subsequentResults: yieldSubsequentPayloads(exeContext)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return initialResult;
|
|
60
|
+
}, (error) => {
|
|
61
|
+
exeContext.signal?.throwIfAborted();
|
|
62
|
+
if (error.errors) {
|
|
63
|
+
exeContext.errors.push(...error.errors);
|
|
64
|
+
} else {
|
|
65
|
+
exeContext.errors.push(error);
|
|
66
|
+
}
|
|
67
|
+
return buildResponse(null, exeContext.errors);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function buildResponse(data, errors) {
|
|
71
|
+
return errors.length === 0 ? { data } : { errors, data };
|
|
72
|
+
}
|
|
73
|
+
const getFragmentsFromDocument = memoize1(function getFragmentsFromDocument2(document) {
|
|
74
|
+
const fragments = /* @__PURE__ */ Object.create(null);
|
|
75
|
+
for (const definition of document.definitions) {
|
|
76
|
+
if (definition.kind === Kind.FRAGMENT_DEFINITION) {
|
|
77
|
+
fragments[definition.name.value] = definition;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return fragments;
|
|
81
|
+
});
|
|
82
|
+
function buildExecutionContext(args) {
|
|
83
|
+
const { schema, document, rootValue, contextValue, variableValues: rawVariableValues, operationName, fieldResolver, typeResolver, subscribeFieldResolver, signal, schemaCoordinateInErrors } = args;
|
|
84
|
+
signal?.throwIfAborted();
|
|
85
|
+
assertValidSchema(schema);
|
|
86
|
+
const fragments = getFragmentsFromDocument(document);
|
|
87
|
+
let operation;
|
|
88
|
+
for (const definition of document.definitions) {
|
|
89
|
+
switch (definition.kind) {
|
|
90
|
+
case Kind.OPERATION_DEFINITION:
|
|
91
|
+
if (operationName == null) {
|
|
92
|
+
if (operation !== void 0) {
|
|
93
|
+
return [
|
|
94
|
+
createGraphQLError("Must provide operation name if query contains multiple operations.", {
|
|
95
|
+
extensions: {
|
|
96
|
+
code: "OPERATION_RESOLUTION_FAILURE"
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
];
|
|
100
|
+
}
|
|
101
|
+
operation = definition;
|
|
102
|
+
} else if (definition.name?.value === operationName) {
|
|
103
|
+
operation = definition;
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
if (operation == null) {
|
|
109
|
+
if (operationName != null) {
|
|
110
|
+
return [
|
|
111
|
+
createGraphQLError(`Unknown operation named "${operationName}".`, {
|
|
112
|
+
extensions: {
|
|
113
|
+
code: "OPERATION_RESOLUTION_FAILURE"
|
|
114
|
+
}
|
|
115
|
+
})
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
return [
|
|
119
|
+
createGraphQLError("Must provide an operation.", {
|
|
120
|
+
extensions: {
|
|
121
|
+
code: "OPERATION_RESOLUTION_FAILURE"
|
|
122
|
+
}
|
|
123
|
+
})
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
const variableDefinitions = operation.variableDefinitions ?? [];
|
|
127
|
+
const coercedVariableValues = getVariableValues(schema, variableDefinitions, rawVariableValues ?? {}, {
|
|
128
|
+
maxErrors: 50
|
|
129
|
+
});
|
|
130
|
+
if (coercedVariableValues.errors) {
|
|
131
|
+
return coercedVariableValues.errors;
|
|
132
|
+
}
|
|
133
|
+
signal?.throwIfAborted();
|
|
134
|
+
let onSignalAbort;
|
|
135
|
+
let signalPromise;
|
|
136
|
+
if (signal) {
|
|
137
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
138
|
+
const signalDeferred = createDeferredPromise();
|
|
139
|
+
signalPromise = signalDeferred.promise;
|
|
140
|
+
const sharedListener = () => {
|
|
141
|
+
signalDeferred.reject(signal.reason);
|
|
142
|
+
signal.removeEventListener("abort", sharedListener);
|
|
143
|
+
};
|
|
144
|
+
signal.addEventListener("abort", sharedListener, { once: true });
|
|
145
|
+
signalPromise.catch(() => {
|
|
146
|
+
for (const listener of listeners) {
|
|
147
|
+
listener();
|
|
148
|
+
}
|
|
149
|
+
listeners.clear();
|
|
150
|
+
});
|
|
151
|
+
onSignalAbort = (handler) => {
|
|
152
|
+
listeners.add(handler);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
schema,
|
|
157
|
+
fragments,
|
|
158
|
+
rootValue,
|
|
159
|
+
contextValue,
|
|
160
|
+
operation,
|
|
161
|
+
variableValues: coercedVariableValues.coerced,
|
|
162
|
+
fieldResolver: fieldResolver ?? defaultFieldResolver,
|
|
163
|
+
typeResolver: typeResolver ?? defaultTypeResolver,
|
|
164
|
+
subscribeFieldResolver: subscribeFieldResolver ?? defaultFieldResolver,
|
|
165
|
+
subsequentPayloads: /* @__PURE__ */ new Set(),
|
|
166
|
+
errors: [],
|
|
167
|
+
signal,
|
|
168
|
+
onSignalAbort,
|
|
169
|
+
signalPromise,
|
|
170
|
+
schemaCoordinateInErrors
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function buildPerEventExecutionContext(exeContext, payload) {
|
|
174
|
+
return {
|
|
175
|
+
...exeContext,
|
|
176
|
+
rootValue: payload,
|
|
177
|
+
subsequentPayloads: /* @__PURE__ */ new Set(),
|
|
178
|
+
errors: []
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
function executeOperation(exeContext) {
|
|
182
|
+
const { operation, schema, fragments, variableValues, rootValue } = exeContext;
|
|
183
|
+
const rootType = getDefinedRootType(schema, operation.operation, [operation]);
|
|
184
|
+
if (rootType == null) {
|
|
185
|
+
createGraphQLError(`Schema is not configured to execute ${operation.operation} operation.`, {
|
|
186
|
+
nodes: operation
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
const { fields: rootFields, patches } = collectFields(schema, fragments, variableValues, rootType, operation.selectionSet);
|
|
190
|
+
const path = void 0;
|
|
191
|
+
let result;
|
|
192
|
+
if (operation.operation === "mutation") {
|
|
193
|
+
result = executeFieldsSerially(exeContext, rootType, rootValue, path, rootFields);
|
|
194
|
+
} else {
|
|
195
|
+
result = executeFields(exeContext, rootType, rootValue, path, rootFields);
|
|
196
|
+
}
|
|
197
|
+
for (const patch of patches) {
|
|
198
|
+
const { label, fields: patchFields } = patch;
|
|
199
|
+
executeDeferredFragment(exeContext, rootType, rootValue, patchFields, label, path);
|
|
200
|
+
}
|
|
201
|
+
return result;
|
|
202
|
+
}
|
|
203
|
+
function executeFieldsSerially(exeContext, parentType, sourceValue, path, fields) {
|
|
204
|
+
return promiseReduce(fields, (results, [responseName, fieldNodes]) => {
|
|
205
|
+
const fieldPath = addPath(path, responseName, parentType.name);
|
|
206
|
+
exeContext.signal?.throwIfAborted();
|
|
207
|
+
return handleMaybePromise(() => executeField(exeContext, parentType, sourceValue, fieldNodes, fieldPath), (result) => {
|
|
208
|
+
if (result === void 0) {
|
|
209
|
+
return results;
|
|
210
|
+
}
|
|
211
|
+
results[responseName] = result;
|
|
212
|
+
return results;
|
|
213
|
+
});
|
|
214
|
+
}, /* @__PURE__ */ Object.create(null));
|
|
215
|
+
}
|
|
216
|
+
function executeFields(exeContext, parentType, sourceValue, path, fields, asyncPayloadRecord) {
|
|
217
|
+
const results = /* @__PURE__ */ Object.create(null);
|
|
218
|
+
let containsPromise = false;
|
|
219
|
+
try {
|
|
220
|
+
for (const [responseName, fieldNodes] of fields) {
|
|
221
|
+
exeContext.signal?.throwIfAborted();
|
|
222
|
+
const fieldPath = addPath(path, responseName, parentType.name);
|
|
223
|
+
const result = executeField(exeContext, parentType, sourceValue, fieldNodes, fieldPath, asyncPayloadRecord);
|
|
224
|
+
if (result !== void 0) {
|
|
225
|
+
results[responseName] = result;
|
|
226
|
+
if (isPromise(result)) {
|
|
227
|
+
containsPromise = true;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
} catch (error) {
|
|
232
|
+
if (error !== exeContext.signal?.reason && containsPromise) {
|
|
233
|
+
return handleMaybePromise(() => promiseForObject(results, exeContext.signal), () => {
|
|
234
|
+
throw error;
|
|
235
|
+
}, () => {
|
|
236
|
+
throw error;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
throw error;
|
|
240
|
+
}
|
|
241
|
+
if (!containsPromise) {
|
|
242
|
+
return results;
|
|
243
|
+
}
|
|
244
|
+
return promiseForObject(results, exeContext.signal, exeContext.signalPromise);
|
|
245
|
+
}
|
|
246
|
+
function executeField(exeContext, parentType, source, fieldNodes, path, asyncPayloadRecord) {
|
|
247
|
+
const errors = asyncPayloadRecord?.errors ?? exeContext.errors;
|
|
248
|
+
const fieldDef = getFieldDef(exeContext.schema, parentType, fieldNodes[0]);
|
|
249
|
+
if (!fieldDef) {
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
const returnType = fieldDef.type;
|
|
253
|
+
const resolveFn = fieldDef.resolve ?? exeContext.fieldResolver;
|
|
254
|
+
const info = buildResolveInfo(exeContext, fieldDef, fieldNodes, parentType, path);
|
|
255
|
+
try {
|
|
256
|
+
exeContext.signal?.throwIfAborted();
|
|
257
|
+
const args = getArgumentValues(fieldDef, fieldNodes[0], exeContext.variableValues);
|
|
258
|
+
const contextValue = exeContext.contextValue;
|
|
259
|
+
const result = resolveFn(source, args, contextValue, info);
|
|
260
|
+
let completed;
|
|
261
|
+
if (isPromise(result)) {
|
|
262
|
+
completed = result.then((resolved) => completeValue(exeContext, returnType, fieldNodes, info, path, resolved, asyncPayloadRecord));
|
|
263
|
+
} else {
|
|
264
|
+
completed = completeValue(exeContext, returnType, fieldNodes, info, path, result, asyncPayloadRecord);
|
|
265
|
+
}
|
|
266
|
+
if (isPromise(completed)) {
|
|
267
|
+
return completed.then(void 0, (rawError) => {
|
|
268
|
+
if (rawError instanceof AggregateError) {
|
|
269
|
+
let result2;
|
|
270
|
+
for (let rawErrorItem of rawError.errors) {
|
|
271
|
+
rawErrorItem = coerceError(rawErrorItem);
|
|
272
|
+
const error2 = locatedError(rawErrorItem, fieldNodes, pathToArray(path), exeContext.schemaCoordinateInErrors && info);
|
|
273
|
+
result2 = handleFieldError(error2, returnType, errors);
|
|
274
|
+
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
275
|
+
}
|
|
276
|
+
return result2;
|
|
277
|
+
}
|
|
278
|
+
rawError = coerceError(rawError);
|
|
279
|
+
const error = locatedError(rawError, fieldNodes, pathToArray(path), exeContext.schemaCoordinateInErrors && info);
|
|
280
|
+
const handledError = handleFieldError(error, returnType, errors);
|
|
281
|
+
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
282
|
+
return handledError;
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
return completed;
|
|
286
|
+
} catch (rawError) {
|
|
287
|
+
if (rawError instanceof AggregateError) {
|
|
288
|
+
let result;
|
|
289
|
+
for (let rawErrorItem of rawError.errors) {
|
|
290
|
+
rawErrorItem = coerceError(rawErrorItem);
|
|
291
|
+
const error2 = locatedError(rawErrorItem, fieldNodes, pathToArray(path), exeContext.schemaCoordinateInErrors && info);
|
|
292
|
+
result = handleFieldError(error2, returnType, errors);
|
|
293
|
+
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
294
|
+
}
|
|
295
|
+
return result;
|
|
296
|
+
}
|
|
297
|
+
const coercedError = coerceError(rawError);
|
|
298
|
+
const error = locatedError(coercedError, fieldNodes, pathToArray(path), exeContext.schemaCoordinateInErrors && info);
|
|
299
|
+
const handledError = handleFieldError(error, returnType, errors);
|
|
300
|
+
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
301
|
+
return handledError;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
function buildResolveInfo(exeContext, fieldDef, fieldNodes, parentType, path) {
|
|
305
|
+
return {
|
|
306
|
+
fieldName: fieldDef.name,
|
|
307
|
+
fieldNodes,
|
|
308
|
+
returnType: fieldDef.type,
|
|
309
|
+
parentType,
|
|
310
|
+
path,
|
|
311
|
+
schema: exeContext.schema,
|
|
312
|
+
fragments: exeContext.fragments,
|
|
313
|
+
rootValue: exeContext.rootValue,
|
|
314
|
+
operation: exeContext.operation,
|
|
315
|
+
variableValues: exeContext.variableValues,
|
|
316
|
+
signal: exeContext.signal
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
const CRITICAL_ERROR = "CRITICAL_ERROR";
|
|
320
|
+
function handleFieldError(error, returnType, errors) {
|
|
321
|
+
if (isNonNullType(returnType)) {
|
|
322
|
+
throw error;
|
|
323
|
+
}
|
|
324
|
+
if (error.extensions?.[CRITICAL_ERROR]) {
|
|
325
|
+
throw error;
|
|
326
|
+
}
|
|
327
|
+
errors.push(error);
|
|
328
|
+
return null;
|
|
329
|
+
}
|
|
330
|
+
function completeValue(exeContext, returnType, fieldNodes, info, path, result, asyncPayloadRecord) {
|
|
331
|
+
if (result instanceof Error) {
|
|
332
|
+
throw result;
|
|
333
|
+
}
|
|
334
|
+
if (isNonNullType(returnType)) {
|
|
335
|
+
const completed = completeValue(exeContext, returnType.ofType, fieldNodes, info, path, result, asyncPayloadRecord);
|
|
336
|
+
if (completed === null) {
|
|
337
|
+
throw new Error(`Cannot return null for non-nullable field ${info.parentType.name}.${info.fieldName}.`);
|
|
338
|
+
}
|
|
339
|
+
return completed;
|
|
340
|
+
}
|
|
341
|
+
if (result == null) {
|
|
342
|
+
return null;
|
|
343
|
+
}
|
|
344
|
+
if (isListType(returnType)) {
|
|
345
|
+
return completeListValue(exeContext, returnType, fieldNodes, info, path, result, asyncPayloadRecord);
|
|
346
|
+
}
|
|
347
|
+
if (isLeafType(returnType)) {
|
|
348
|
+
return completeLeafValue(returnType, result);
|
|
349
|
+
}
|
|
350
|
+
if (isAbstractType(returnType)) {
|
|
351
|
+
return completeAbstractValue(exeContext, returnType, fieldNodes, info, path, result, asyncPayloadRecord);
|
|
352
|
+
}
|
|
353
|
+
if (isObjectType(returnType)) {
|
|
354
|
+
return completeObjectValue(exeContext, returnType, fieldNodes, info, path, result, asyncPayloadRecord);
|
|
355
|
+
}
|
|
356
|
+
console.assert(false, "Cannot complete value of unexpected output type: " + inspect(returnType));
|
|
357
|
+
}
|
|
358
|
+
function getStreamValues(exeContext, fieldNodes, path) {
|
|
359
|
+
if (typeof path.key === "number") {
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
const stream = getDirectiveValues(GraphQLStreamDirective, fieldNodes[0], exeContext.variableValues);
|
|
363
|
+
if (!stream) {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
if (stream.if === false) {
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
invariant(typeof stream["initialCount"] === "number", "initialCount must be a number");
|
|
370
|
+
invariant(stream["initialCount"] >= 0, "initialCount must be a positive integer");
|
|
371
|
+
return {
|
|
372
|
+
initialCount: stream["initialCount"],
|
|
373
|
+
label: typeof stream["label"] === "string" ? stream["label"] : void 0
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
async function completeAsyncIteratorValue(exeContext, itemType, fieldNodes, info, path, iterator, asyncPayloadRecord) {
|
|
377
|
+
exeContext.signal?.throwIfAborted();
|
|
378
|
+
if (iterator.return) {
|
|
379
|
+
exeContext.onSignalAbort?.(() => {
|
|
380
|
+
iterator.return?.();
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
const errors = asyncPayloadRecord?.errors ?? exeContext.errors;
|
|
384
|
+
const stream = getStreamValues(exeContext, fieldNodes, path);
|
|
385
|
+
let containsPromise = false;
|
|
386
|
+
const completedResults = [];
|
|
387
|
+
let index = 0;
|
|
388
|
+
while (true) {
|
|
389
|
+
if (stream && typeof stream.initialCount === "number" && index >= stream.initialCount) {
|
|
390
|
+
executeStreamIterator(index, iterator, exeContext, fieldNodes, info, itemType, path, stream.label, asyncPayloadRecord);
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
const itemPath = addPath(path, index, void 0);
|
|
394
|
+
let iteration;
|
|
395
|
+
try {
|
|
396
|
+
iteration = await iterator.next();
|
|
397
|
+
if (iteration.done) {
|
|
398
|
+
break;
|
|
399
|
+
}
|
|
400
|
+
} catch (rawError) {
|
|
401
|
+
const coercedError = coerceError(rawError);
|
|
402
|
+
const error = locatedError(coercedError, fieldNodes, pathToArray(itemPath), exeContext.schemaCoordinateInErrors && info);
|
|
403
|
+
completedResults.push(handleFieldError(error, itemType, errors));
|
|
404
|
+
break;
|
|
405
|
+
}
|
|
406
|
+
if (completeListItemValue(iteration.value, completedResults, errors, exeContext, itemType, fieldNodes, info, itemPath, asyncPayloadRecord)) {
|
|
407
|
+
containsPromise = true;
|
|
408
|
+
}
|
|
409
|
+
index += 1;
|
|
410
|
+
}
|
|
411
|
+
return containsPromise ? Promise.all(completedResults) : completedResults;
|
|
412
|
+
}
|
|
413
|
+
function completeListValue(exeContext, returnType, fieldNodes, info, path, result, asyncPayloadRecord) {
|
|
414
|
+
const itemType = returnType.ofType;
|
|
415
|
+
const errors = asyncPayloadRecord?.errors ?? exeContext.errors;
|
|
416
|
+
if (isAsyncIterable(result)) {
|
|
417
|
+
const iterator = result[Symbol.asyncIterator]();
|
|
418
|
+
return completeAsyncIteratorValue(exeContext, itemType, fieldNodes, info, path, iterator, asyncPayloadRecord);
|
|
419
|
+
}
|
|
420
|
+
if (!isIterableObject(result)) {
|
|
421
|
+
throw createGraphQLError(`Expected Iterable, but did not find one for field "${info.parentType.name}.${info.fieldName}".`);
|
|
422
|
+
}
|
|
423
|
+
const stream = getStreamValues(exeContext, fieldNodes, path);
|
|
424
|
+
let containsPromise = false;
|
|
425
|
+
let previousAsyncPayloadRecord = asyncPayloadRecord;
|
|
426
|
+
const completedResults = [];
|
|
427
|
+
let index = 0;
|
|
428
|
+
for (const item of result) {
|
|
429
|
+
const itemPath = addPath(path, index, void 0);
|
|
430
|
+
if (stream && typeof stream.initialCount === "number" && index >= stream.initialCount) {
|
|
431
|
+
previousAsyncPayloadRecord = executeStreamField(path, itemPath, item, exeContext, fieldNodes, info, itemType, stream.label, previousAsyncPayloadRecord);
|
|
432
|
+
index++;
|
|
433
|
+
continue;
|
|
434
|
+
}
|
|
435
|
+
if (completeListItemValue(item, completedResults, errors, exeContext, itemType, fieldNodes, info, itemPath, asyncPayloadRecord)) {
|
|
436
|
+
containsPromise = true;
|
|
437
|
+
}
|
|
438
|
+
index++;
|
|
439
|
+
}
|
|
440
|
+
return containsPromise ? Promise.all(completedResults) : completedResults;
|
|
441
|
+
}
|
|
442
|
+
function completeListItemValue(item, completedResults, errors, exeContext, itemType, fieldNodes, info, itemPath, asyncPayloadRecord) {
|
|
443
|
+
try {
|
|
444
|
+
let completedItem;
|
|
445
|
+
if (isPromise(item)) {
|
|
446
|
+
completedItem = item.then((resolved) => completeValue(exeContext, itemType, fieldNodes, info, itemPath, resolved, asyncPayloadRecord));
|
|
447
|
+
} else {
|
|
448
|
+
completedItem = completeValue(exeContext, itemType, fieldNodes, info, itemPath, item, asyncPayloadRecord);
|
|
449
|
+
}
|
|
450
|
+
if (isPromise(completedItem)) {
|
|
451
|
+
completedResults.push(completedItem.then(void 0, (rawError) => {
|
|
452
|
+
rawError = coerceError(rawError);
|
|
453
|
+
const error = locatedError(rawError, fieldNodes, pathToArray(itemPath), exeContext.schemaCoordinateInErrors && info);
|
|
454
|
+
const handledError = handleFieldError(error, itemType, errors);
|
|
455
|
+
filterSubsequentPayloads(exeContext, itemPath, asyncPayloadRecord);
|
|
456
|
+
return handledError;
|
|
457
|
+
}));
|
|
458
|
+
return true;
|
|
459
|
+
}
|
|
460
|
+
completedResults.push(completedItem);
|
|
461
|
+
} catch (rawError) {
|
|
462
|
+
const coercedError = coerceError(rawError);
|
|
463
|
+
const error = locatedError(coercedError, fieldNodes, pathToArray(itemPath), exeContext.schemaCoordinateInErrors && info);
|
|
464
|
+
const handledError = handleFieldError(error, itemType, errors);
|
|
465
|
+
filterSubsequentPayloads(exeContext, itemPath, asyncPayloadRecord);
|
|
466
|
+
completedResults.push(handledError);
|
|
467
|
+
}
|
|
468
|
+
return false;
|
|
469
|
+
}
|
|
470
|
+
function completeLeafValue(returnType, result) {
|
|
471
|
+
let serializedResult;
|
|
472
|
+
try {
|
|
473
|
+
serializedResult = returnType.serialize(result);
|
|
474
|
+
} catch (err) {
|
|
475
|
+
if (err instanceof GraphQLError) {
|
|
476
|
+
throw new Error(err.message);
|
|
477
|
+
}
|
|
478
|
+
throw err;
|
|
479
|
+
}
|
|
480
|
+
if (serializedResult == null) {
|
|
481
|
+
throw new Error(`Expected \`${inspect(returnType)}.serialize(${inspect(result)})\` to return non-nullable value, returned: ${inspect(serializedResult)}`);
|
|
482
|
+
}
|
|
483
|
+
return serializedResult;
|
|
484
|
+
}
|
|
485
|
+
function completeAbstractValue(exeContext, returnType, fieldNodes, info, path, result, asyncPayloadRecord) {
|
|
486
|
+
const resolveTypeFn = returnType.resolveType ?? exeContext.typeResolver;
|
|
487
|
+
const contextValue = exeContext.contextValue;
|
|
488
|
+
const runtimeType = resolveTypeFn(result, contextValue, info, returnType);
|
|
489
|
+
if (isPromise(runtimeType)) {
|
|
490
|
+
return runtimeType.then((resolvedRuntimeType) => completeObjectValue(exeContext, ensureValidRuntimeType(resolvedRuntimeType, exeContext, returnType, fieldNodes, info, result), fieldNodes, info, path, result, asyncPayloadRecord));
|
|
491
|
+
}
|
|
492
|
+
return completeObjectValue(exeContext, ensureValidRuntimeType(runtimeType, exeContext, returnType, fieldNodes, info, result), fieldNodes, info, path, result, asyncPayloadRecord);
|
|
493
|
+
}
|
|
494
|
+
function ensureValidRuntimeType(runtimeTypeName, exeContext, returnType, fieldNodes, info, result) {
|
|
495
|
+
if (runtimeTypeName == null) {
|
|
496
|
+
throw createGraphQLError(`Abstract type "${returnType.name}" must resolve to an Object type at runtime for field "${info.parentType.name}.${info.fieldName}". Either the "${returnType.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`, { nodes: fieldNodes });
|
|
497
|
+
}
|
|
498
|
+
if (isObjectType(runtimeTypeName)) {
|
|
499
|
+
if (versionInfo.major >= 16) {
|
|
500
|
+
throw createGraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");
|
|
501
|
+
}
|
|
502
|
+
runtimeTypeName = runtimeTypeName.name;
|
|
503
|
+
}
|
|
504
|
+
if (typeof runtimeTypeName !== "string") {
|
|
505
|
+
throw createGraphQLError(`Abstract type "${returnType.name}" must resolve to an Object type at runtime for field "${info.parentType.name}.${info.fieldName}" with value ${inspect(result)}, received "${inspect(runtimeTypeName)}".`);
|
|
506
|
+
}
|
|
507
|
+
const runtimeType = exeContext.schema.getType(runtimeTypeName);
|
|
508
|
+
if (runtimeType == null) {
|
|
509
|
+
throw createGraphQLError(`Abstract type "${returnType.name}" was resolved to a type "${runtimeTypeName}" that does not exist inside the schema.`, { nodes: fieldNodes });
|
|
510
|
+
}
|
|
511
|
+
if (!isObjectType(runtimeType)) {
|
|
512
|
+
throw createGraphQLError(`Abstract type "${returnType.name}" was resolved to a non-object type "${runtimeTypeName}".`, { nodes: fieldNodes });
|
|
513
|
+
}
|
|
514
|
+
if (!exeContext.schema.isSubType(returnType, runtimeType)) {
|
|
515
|
+
throw createGraphQLError(`Runtime Object type "${runtimeType.name}" is not a possible type for "${returnType.name}".`, { nodes: fieldNodes });
|
|
516
|
+
}
|
|
517
|
+
return runtimeType;
|
|
518
|
+
}
|
|
519
|
+
function completeObjectValue(exeContext, returnType, fieldNodes, info, path, result, asyncPayloadRecord) {
|
|
520
|
+
if (returnType.isTypeOf) {
|
|
521
|
+
const isTypeOf = returnType.isTypeOf(result, exeContext.contextValue, info);
|
|
522
|
+
if (isPromise(isTypeOf)) {
|
|
523
|
+
return isTypeOf.then((resolvedIsTypeOf) => {
|
|
524
|
+
if (!resolvedIsTypeOf) {
|
|
525
|
+
throw invalidReturnTypeError(returnType, result, fieldNodes);
|
|
526
|
+
}
|
|
527
|
+
return collectAndExecuteSubfields(exeContext, returnType, fieldNodes, path, result, asyncPayloadRecord);
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
if (!isTypeOf) {
|
|
531
|
+
throw invalidReturnTypeError(returnType, result, fieldNodes);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
return collectAndExecuteSubfields(exeContext, returnType, fieldNodes, path, result, asyncPayloadRecord);
|
|
535
|
+
}
|
|
536
|
+
function invalidReturnTypeError(returnType, result, fieldNodes) {
|
|
537
|
+
return createGraphQLError(`Expected value of type "${returnType.name}" but got: ${inspect(result)}.`, {
|
|
538
|
+
nodes: fieldNodes
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
function collectAndExecuteSubfields(exeContext, returnType, fieldNodes, path, result, asyncPayloadRecord) {
|
|
542
|
+
const { fields: subFieldNodes, patches: subPatches } = collectSubfields(exeContext, returnType, fieldNodes);
|
|
543
|
+
const subFields = executeFields(exeContext, returnType, result, path, subFieldNodes, asyncPayloadRecord);
|
|
544
|
+
for (const subPatch of subPatches) {
|
|
545
|
+
const { label, fields: subPatchFieldNodes } = subPatch;
|
|
546
|
+
executeDeferredFragment(exeContext, returnType, result, subPatchFieldNodes, label, path, asyncPayloadRecord);
|
|
547
|
+
}
|
|
548
|
+
return subFields;
|
|
549
|
+
}
|
|
550
|
+
const defaultTypeResolver = function(value, contextValue, info, abstractType) {
|
|
551
|
+
if (isObjectLike(value) && typeof value["__typename"] === "string") {
|
|
552
|
+
return value["__typename"];
|
|
553
|
+
}
|
|
554
|
+
const possibleTypes = info.schema.getPossibleTypes(abstractType);
|
|
555
|
+
const promisedIsTypeOfResults = [];
|
|
556
|
+
for (let i = 0; i < possibleTypes.length; i++) {
|
|
557
|
+
const type = possibleTypes[i];
|
|
558
|
+
if (type.isTypeOf) {
|
|
559
|
+
const isTypeOfResult = type.isTypeOf(value, contextValue, info);
|
|
560
|
+
if (isPromise(isTypeOfResult)) {
|
|
561
|
+
promisedIsTypeOfResults[i] = isTypeOfResult;
|
|
562
|
+
} else if (isTypeOfResult) {
|
|
563
|
+
return type.name;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
if (promisedIsTypeOfResults.length) {
|
|
568
|
+
return Promise.all(promisedIsTypeOfResults).then((isTypeOfResults) => {
|
|
569
|
+
for (let i = 0; i < isTypeOfResults.length; i++) {
|
|
570
|
+
if (isTypeOfResults[i]) {
|
|
571
|
+
return possibleTypes[i].name;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
const defaultFieldResolver = function(source, args, contextValue, info) {
|
|
578
|
+
if (isObjectLike(source) || typeof source === "function") {
|
|
579
|
+
const property = source[info.fieldName];
|
|
580
|
+
if (typeof property === "function") {
|
|
581
|
+
return source[info.fieldName](args, contextValue, info);
|
|
582
|
+
}
|
|
583
|
+
return property;
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
function subscribe(args) {
|
|
587
|
+
const exeContext = buildExecutionContext(args);
|
|
588
|
+
if (!("schema" in exeContext)) {
|
|
589
|
+
for (const error of exeContext) {
|
|
590
|
+
const extensions = error.extensions ||= {};
|
|
591
|
+
const httpExtensions = extensions["http"] ||= {};
|
|
592
|
+
httpExtensions.status = 400;
|
|
593
|
+
error.extensions["code"] = "BAD_USER_INPUT";
|
|
594
|
+
}
|
|
595
|
+
return {
|
|
596
|
+
errors: exeContext
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
const resultOrStream = createSourceEventStreamImpl(exeContext);
|
|
600
|
+
if (isPromise(resultOrStream)) {
|
|
601
|
+
return resultOrStream.then((resolvedResultOrStream) => mapSourceToResponse(exeContext, resolvedResultOrStream));
|
|
602
|
+
}
|
|
603
|
+
return mapSourceToResponse(exeContext, resultOrStream);
|
|
604
|
+
}
|
|
605
|
+
function isIncrementalResults(results) {
|
|
606
|
+
return results?.initialResult;
|
|
607
|
+
}
|
|
608
|
+
function flattenIncrementalResults(incrementalResults) {
|
|
609
|
+
const subsequentIterator = incrementalResults.subsequentResults;
|
|
610
|
+
let initialResultSent = false;
|
|
611
|
+
let done = false;
|
|
612
|
+
return {
|
|
613
|
+
[Symbol.asyncIterator]() {
|
|
614
|
+
return this;
|
|
615
|
+
},
|
|
616
|
+
next() {
|
|
617
|
+
if (done) {
|
|
618
|
+
return fakePromise({ value: void 0, done });
|
|
619
|
+
}
|
|
620
|
+
if (initialResultSent) {
|
|
621
|
+
return subsequentIterator.next();
|
|
622
|
+
}
|
|
623
|
+
initialResultSent = true;
|
|
624
|
+
return fakePromise({
|
|
625
|
+
value: incrementalResults.initialResult,
|
|
626
|
+
done
|
|
627
|
+
});
|
|
628
|
+
},
|
|
629
|
+
return() {
|
|
630
|
+
done = true;
|
|
631
|
+
return subsequentIterator.return();
|
|
632
|
+
},
|
|
633
|
+
throw(error) {
|
|
634
|
+
done = true;
|
|
635
|
+
return subsequentIterator.throw(error);
|
|
636
|
+
},
|
|
637
|
+
[DisposableSymbols.asyncDispose]() {
|
|
638
|
+
done = true;
|
|
639
|
+
return subsequentIterator?.[DisposableSymbols.asyncDispose]?.();
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
async function* ensureAsyncIterable(someExecutionResult) {
|
|
644
|
+
if ("initialResult" in someExecutionResult) {
|
|
645
|
+
yield* flattenIncrementalResults(someExecutionResult);
|
|
646
|
+
} else {
|
|
647
|
+
yield someExecutionResult;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
function mapSourceToResponse(exeContext, resultOrStream) {
|
|
651
|
+
if (!isAsyncIterable(resultOrStream)) {
|
|
652
|
+
return resultOrStream;
|
|
653
|
+
}
|
|
654
|
+
return flattenAsyncIterable(mapAsyncIterator(resultOrStream, (payload) => handleMaybePromise(() => executeImpl(buildPerEventExecutionContext(exeContext, payload)), ensureAsyncIterable), (error) => {
|
|
655
|
+
if (error instanceof AggregateError) {
|
|
656
|
+
throw new AggregateError(error.errors.map((e) => wrapError(e, exeContext.operation)), error.message);
|
|
657
|
+
}
|
|
658
|
+
throw wrapError(error, exeContext.operation);
|
|
659
|
+
}));
|
|
660
|
+
}
|
|
661
|
+
function wrapError(error, operation) {
|
|
662
|
+
return createGraphQLError(error.message, {
|
|
663
|
+
originalError: error,
|
|
664
|
+
nodes: [operation]
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
function createSourceEventStreamImpl(exeContext) {
|
|
668
|
+
try {
|
|
669
|
+
const eventStream = executeSubscription(exeContext);
|
|
670
|
+
if (isPromise(eventStream)) {
|
|
671
|
+
return eventStream.then(void 0, (error) => ({ errors: [error] }));
|
|
672
|
+
}
|
|
673
|
+
return eventStream;
|
|
674
|
+
} catch (error) {
|
|
675
|
+
return { errors: [error] };
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
function executeSubscription(exeContext) {
|
|
679
|
+
const { schema, fragments, operation, variableValues, rootValue } = exeContext;
|
|
680
|
+
const rootType = schema.getSubscriptionType();
|
|
681
|
+
if (rootType == null) {
|
|
682
|
+
throw createGraphQLError("Schema is not configured to execute subscription operation.", {
|
|
683
|
+
nodes: operation
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
const { fields: rootFields } = collectFields(schema, fragments, variableValues, rootType, operation.selectionSet);
|
|
687
|
+
const [responseName, fieldNodes] = [...rootFields.entries()][0];
|
|
688
|
+
const fieldName = fieldNodes[0].name.value;
|
|
689
|
+
const fieldDef = getFieldDef(schema, rootType, fieldNodes[0]);
|
|
690
|
+
if (!fieldDef) {
|
|
691
|
+
throw createGraphQLError(`The subscription field "${fieldName}" is not defined.`, {
|
|
692
|
+
nodes: fieldNodes
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
const path = addPath(void 0, responseName, rootType.name);
|
|
696
|
+
const info = buildResolveInfo(exeContext, fieldDef, fieldNodes, rootType, path);
|
|
697
|
+
try {
|
|
698
|
+
const args = getArgumentValues(fieldDef, fieldNodes[0], variableValues);
|
|
699
|
+
const contextValue = exeContext.contextValue;
|
|
700
|
+
const resolveFn = fieldDef.subscribe ?? exeContext.subscribeFieldResolver;
|
|
701
|
+
const result = resolveFn(rootValue, args, contextValue, info);
|
|
702
|
+
if (isPromise(result)) {
|
|
703
|
+
return result.then((result2) => assertEventStream(result2, exeContext.signal, exeContext.onSignalAbort)).then(void 0, (error) => {
|
|
704
|
+
throw locatedError(error, fieldNodes, pathToArray(path), exeContext.schemaCoordinateInErrors && info);
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
return assertEventStream(result, exeContext.signal, exeContext.onSignalAbort);
|
|
708
|
+
} catch (error) {
|
|
709
|
+
throw locatedError(error, fieldNodes, pathToArray(path), exeContext.schemaCoordinateInErrors && info);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
function assertEventStream(result, signal, onSignalAbort) {
|
|
713
|
+
signal?.throwIfAborted();
|
|
714
|
+
if (result instanceof Error) {
|
|
715
|
+
throw result;
|
|
716
|
+
}
|
|
717
|
+
if (!isAsyncIterable(result)) {
|
|
718
|
+
throw createGraphQLError(`Subscription field must return Async Iterable. Received: ${inspect(result)}.`);
|
|
719
|
+
}
|
|
720
|
+
if (onSignalAbort) {
|
|
721
|
+
return {
|
|
722
|
+
[Symbol.asyncIterator]() {
|
|
723
|
+
const asyncIterator = result[Symbol.asyncIterator]();
|
|
724
|
+
if (asyncIterator.return) {
|
|
725
|
+
onSignalAbort?.(() => {
|
|
726
|
+
asyncIterator.return?.();
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
return asyncIterator;
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
return result;
|
|
734
|
+
}
|
|
735
|
+
function executeDeferredFragment(exeContext, parentType, sourceValue, fields, label, path, parentContext) {
|
|
736
|
+
const asyncPayloadRecord = new DeferredFragmentRecord({
|
|
737
|
+
label,
|
|
738
|
+
path,
|
|
739
|
+
parentContext,
|
|
740
|
+
exeContext
|
|
741
|
+
});
|
|
742
|
+
let promiseOrData;
|
|
743
|
+
try {
|
|
744
|
+
promiseOrData = executeFields(exeContext, parentType, sourceValue, path, fields, asyncPayloadRecord);
|
|
745
|
+
if (isPromise(promiseOrData)) {
|
|
746
|
+
promiseOrData = promiseOrData.then(null, (e) => {
|
|
747
|
+
asyncPayloadRecord.errors.push(e);
|
|
748
|
+
return null;
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
} catch (e) {
|
|
752
|
+
asyncPayloadRecord.errors.push(e);
|
|
753
|
+
promiseOrData = null;
|
|
754
|
+
}
|
|
755
|
+
asyncPayloadRecord.addData(promiseOrData);
|
|
756
|
+
}
|
|
757
|
+
function executeStreamField(path, itemPath, item, exeContext, fieldNodes, info, itemType, label, parentContext) {
|
|
758
|
+
const asyncPayloadRecord = new StreamRecord({
|
|
759
|
+
label,
|
|
760
|
+
path: itemPath,
|
|
761
|
+
parentContext,
|
|
762
|
+
exeContext
|
|
763
|
+
});
|
|
764
|
+
let completedItem;
|
|
765
|
+
try {
|
|
766
|
+
try {
|
|
767
|
+
if (isPromise(item)) {
|
|
768
|
+
completedItem = item.then((resolved) => completeValue(exeContext, itemType, fieldNodes, info, itemPath, resolved, asyncPayloadRecord));
|
|
769
|
+
} else {
|
|
770
|
+
completedItem = completeValue(exeContext, itemType, fieldNodes, info, itemPath, item, asyncPayloadRecord);
|
|
771
|
+
}
|
|
772
|
+
if (isPromise(completedItem)) {
|
|
773
|
+
completedItem = completedItem.then(void 0, (rawError) => {
|
|
774
|
+
rawError = coerceError(rawError);
|
|
775
|
+
const error = locatedError(rawError, fieldNodes, pathToArray(itemPath), exeContext.schemaCoordinateInErrors && info);
|
|
776
|
+
const handledError = handleFieldError(error, itemType, asyncPayloadRecord.errors);
|
|
777
|
+
filterSubsequentPayloads(exeContext, itemPath, asyncPayloadRecord);
|
|
778
|
+
return handledError;
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
} catch (rawError) {
|
|
782
|
+
const coercedError = coerceError(rawError);
|
|
783
|
+
const error = locatedError(coercedError, fieldNodes, pathToArray(itemPath), exeContext.schemaCoordinateInErrors && info);
|
|
784
|
+
completedItem = handleFieldError(error, itemType, asyncPayloadRecord.errors);
|
|
785
|
+
filterSubsequentPayloads(exeContext, itemPath, asyncPayloadRecord);
|
|
786
|
+
}
|
|
787
|
+
} catch (error) {
|
|
788
|
+
asyncPayloadRecord.errors.push(error);
|
|
789
|
+
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
790
|
+
asyncPayloadRecord.addItems(null);
|
|
791
|
+
return asyncPayloadRecord;
|
|
792
|
+
}
|
|
793
|
+
let completedItems;
|
|
794
|
+
if (isPromise(completedItem)) {
|
|
795
|
+
completedItems = completedItem.then((value) => [value], (error) => {
|
|
796
|
+
asyncPayloadRecord.errors.push(error);
|
|
797
|
+
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
798
|
+
return null;
|
|
799
|
+
});
|
|
800
|
+
} else {
|
|
801
|
+
completedItems = [completedItem];
|
|
802
|
+
}
|
|
803
|
+
asyncPayloadRecord.addItems(completedItems);
|
|
804
|
+
return asyncPayloadRecord;
|
|
805
|
+
}
|
|
806
|
+
async function executeStreamIteratorItem(iterator, exeContext, fieldNodes, info, itemType, asyncPayloadRecord, itemPath) {
|
|
807
|
+
let item;
|
|
808
|
+
try {
|
|
809
|
+
const { value, done } = await iterator.next();
|
|
810
|
+
if (done) {
|
|
811
|
+
asyncPayloadRecord.setIsCompletedIterator();
|
|
812
|
+
return { done, value: void 0 };
|
|
813
|
+
}
|
|
814
|
+
item = value;
|
|
815
|
+
} catch (rawError) {
|
|
816
|
+
const coercedError = coerceError(rawError);
|
|
817
|
+
const error = locatedError(coercedError, fieldNodes, pathToArray(itemPath), exeContext.schemaCoordinateInErrors && info);
|
|
818
|
+
const value = handleFieldError(error, itemType, asyncPayloadRecord.errors);
|
|
819
|
+
return { done: true, value };
|
|
820
|
+
}
|
|
821
|
+
let completedItem;
|
|
822
|
+
try {
|
|
823
|
+
completedItem = completeValue(exeContext, itemType, fieldNodes, info, itemPath, item, asyncPayloadRecord);
|
|
824
|
+
if (isPromise(completedItem)) {
|
|
825
|
+
completedItem = completedItem.then(void 0, (rawError) => {
|
|
826
|
+
const error = locatedError(rawError, fieldNodes, pathToArray(itemPath), exeContext.schemaCoordinateInErrors && info);
|
|
827
|
+
const handledError = handleFieldError(error, itemType, asyncPayloadRecord.errors);
|
|
828
|
+
filterSubsequentPayloads(exeContext, itemPath, asyncPayloadRecord);
|
|
829
|
+
return handledError;
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
return { done: false, value: completedItem };
|
|
833
|
+
} catch (rawError) {
|
|
834
|
+
const error = locatedError(rawError, fieldNodes, pathToArray(itemPath), exeContext.schemaCoordinateInErrors && info);
|
|
835
|
+
const value = handleFieldError(error, itemType, asyncPayloadRecord.errors);
|
|
836
|
+
filterSubsequentPayloads(exeContext, itemPath, asyncPayloadRecord);
|
|
837
|
+
return { done: false, value };
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
async function executeStreamIterator(initialIndex, iterator, exeContext, fieldNodes, info, itemType, path, label, parentContext) {
|
|
841
|
+
let index = initialIndex;
|
|
842
|
+
let previousAsyncPayloadRecord = parentContext ?? void 0;
|
|
843
|
+
while (true) {
|
|
844
|
+
const itemPath = addPath(path, index, void 0);
|
|
845
|
+
const asyncPayloadRecord = new StreamRecord({
|
|
846
|
+
label,
|
|
847
|
+
path: itemPath,
|
|
848
|
+
parentContext: previousAsyncPayloadRecord,
|
|
849
|
+
iterator,
|
|
850
|
+
exeContext
|
|
851
|
+
});
|
|
852
|
+
let iteration;
|
|
853
|
+
try {
|
|
854
|
+
iteration = await executeStreamIteratorItem(iterator, exeContext, fieldNodes, info, itemType, asyncPayloadRecord, itemPath);
|
|
855
|
+
} catch (error) {
|
|
856
|
+
asyncPayloadRecord.errors.push(error);
|
|
857
|
+
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
858
|
+
asyncPayloadRecord.addItems(null);
|
|
859
|
+
if (iterator?.return) {
|
|
860
|
+
iterator.return().catch(() => {
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
return;
|
|
864
|
+
}
|
|
865
|
+
const { done, value: completedItem } = iteration;
|
|
866
|
+
let completedItems;
|
|
867
|
+
if (isPromise(completedItem)) {
|
|
868
|
+
completedItems = completedItem.then((value) => [value], (error) => {
|
|
869
|
+
asyncPayloadRecord.errors.push(error);
|
|
870
|
+
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
871
|
+
return null;
|
|
872
|
+
});
|
|
873
|
+
} else {
|
|
874
|
+
completedItems = [completedItem];
|
|
875
|
+
}
|
|
876
|
+
asyncPayloadRecord.addItems(completedItems);
|
|
877
|
+
if (done) {
|
|
878
|
+
break;
|
|
879
|
+
}
|
|
880
|
+
previousAsyncPayloadRecord = asyncPayloadRecord;
|
|
881
|
+
index++;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
function filterSubsequentPayloads(exeContext, nullPath, currentAsyncRecord) {
|
|
885
|
+
const nullPathArray = pathToArray(nullPath);
|
|
886
|
+
exeContext.subsequentPayloads.forEach((asyncRecord) => {
|
|
887
|
+
if (asyncRecord === currentAsyncRecord) {
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
for (let i = 0; i < nullPathArray.length; i++) {
|
|
891
|
+
if (asyncRecord.path[i] !== nullPathArray[i]) {
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
if (isStreamPayload(asyncRecord) && asyncRecord.iterator?.return) {
|
|
896
|
+
asyncRecord.iterator.return().catch(() => {
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
exeContext.subsequentPayloads.delete(asyncRecord);
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
function getCompletedIncrementalResults(exeContext) {
|
|
903
|
+
const incrementalResults = [];
|
|
904
|
+
for (const asyncPayloadRecord of exeContext.subsequentPayloads) {
|
|
905
|
+
const incrementalResult = {};
|
|
906
|
+
if (!asyncPayloadRecord.isCompleted) {
|
|
907
|
+
continue;
|
|
908
|
+
}
|
|
909
|
+
exeContext.subsequentPayloads.delete(asyncPayloadRecord);
|
|
910
|
+
if (isStreamPayload(asyncPayloadRecord)) {
|
|
911
|
+
const items = asyncPayloadRecord.items;
|
|
912
|
+
if (asyncPayloadRecord.isCompletedIterator) {
|
|
913
|
+
continue;
|
|
914
|
+
}
|
|
915
|
+
incrementalResult.items = items;
|
|
916
|
+
} else {
|
|
917
|
+
const data = asyncPayloadRecord.data;
|
|
918
|
+
incrementalResult.data = data ?? null;
|
|
919
|
+
}
|
|
920
|
+
incrementalResult.path = asyncPayloadRecord.path;
|
|
921
|
+
if (asyncPayloadRecord.label) {
|
|
922
|
+
incrementalResult.label = asyncPayloadRecord.label;
|
|
923
|
+
}
|
|
924
|
+
if (asyncPayloadRecord.errors.length > 0) {
|
|
925
|
+
incrementalResult.errors = asyncPayloadRecord.errors;
|
|
926
|
+
}
|
|
927
|
+
incrementalResults.push(incrementalResult);
|
|
928
|
+
}
|
|
929
|
+
return incrementalResults;
|
|
930
|
+
}
|
|
931
|
+
function yieldSubsequentPayloads(exeContext) {
|
|
932
|
+
let isDone = false;
|
|
933
|
+
async function next() {
|
|
934
|
+
if (isDone) {
|
|
935
|
+
return { value: void 0, done: true };
|
|
936
|
+
}
|
|
937
|
+
const subSequentPayloadPromises = Array.from(exeContext.subsequentPayloads).map((record) => record.promise);
|
|
938
|
+
if (exeContext.signalPromise) {
|
|
939
|
+
await Promise.race([exeContext.signalPromise, ...subSequentPayloadPromises]);
|
|
940
|
+
} else {
|
|
941
|
+
await Promise.race(subSequentPayloadPromises);
|
|
942
|
+
}
|
|
943
|
+
if (isDone) {
|
|
944
|
+
return { value: void 0, done: true };
|
|
945
|
+
}
|
|
946
|
+
const incremental = getCompletedIncrementalResults(exeContext);
|
|
947
|
+
const hasNext = exeContext.subsequentPayloads.size > 0;
|
|
948
|
+
if (!incremental.length && hasNext) {
|
|
949
|
+
return next();
|
|
950
|
+
}
|
|
951
|
+
if (!hasNext) {
|
|
952
|
+
isDone = true;
|
|
953
|
+
}
|
|
954
|
+
return {
|
|
955
|
+
value: incremental.length ? { incremental, hasNext } : { hasNext },
|
|
956
|
+
done: false
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
function returnStreamIterators() {
|
|
960
|
+
const promises = [];
|
|
961
|
+
exeContext.subsequentPayloads.forEach((asyncPayloadRecord) => {
|
|
962
|
+
if (isStreamPayload(asyncPayloadRecord) && asyncPayloadRecord.iterator?.return) {
|
|
963
|
+
promises.push(asyncPayloadRecord.iterator.return());
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
return Promise.all(promises);
|
|
967
|
+
}
|
|
968
|
+
return {
|
|
969
|
+
[Symbol.asyncIterator]() {
|
|
970
|
+
return this;
|
|
971
|
+
},
|
|
972
|
+
next,
|
|
973
|
+
async return() {
|
|
974
|
+
await returnStreamIterators();
|
|
975
|
+
isDone = true;
|
|
976
|
+
return { value: void 0, done: true };
|
|
977
|
+
},
|
|
978
|
+
async throw(error) {
|
|
979
|
+
await returnStreamIterators();
|
|
980
|
+
isDone = true;
|
|
981
|
+
throw error;
|
|
982
|
+
},
|
|
983
|
+
async [DisposableSymbols.asyncDispose]() {
|
|
984
|
+
await returnStreamIterators();
|
|
985
|
+
isDone = true;
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
class DeferredFragmentRecord {
|
|
990
|
+
type;
|
|
991
|
+
errors;
|
|
992
|
+
label;
|
|
993
|
+
path;
|
|
994
|
+
promise;
|
|
995
|
+
data;
|
|
996
|
+
parentContext;
|
|
997
|
+
isCompleted;
|
|
998
|
+
_exeContext;
|
|
999
|
+
_resolve;
|
|
1000
|
+
constructor(opts) {
|
|
1001
|
+
this.type = "defer";
|
|
1002
|
+
this.label = opts.label;
|
|
1003
|
+
this.path = pathToArray(opts.path);
|
|
1004
|
+
this.parentContext = opts.parentContext;
|
|
1005
|
+
this.errors = [];
|
|
1006
|
+
this._exeContext = opts.exeContext;
|
|
1007
|
+
this._exeContext.subsequentPayloads.add(this);
|
|
1008
|
+
this.isCompleted = false;
|
|
1009
|
+
this.data = null;
|
|
1010
|
+
this.promise = new Promise((resolve) => {
|
|
1011
|
+
this._resolve = (MaybePromise) => {
|
|
1012
|
+
resolve(MaybePromise);
|
|
1013
|
+
};
|
|
1014
|
+
}).then((data) => {
|
|
1015
|
+
this.data = data;
|
|
1016
|
+
this.isCompleted = true;
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
addData(data) {
|
|
1020
|
+
const parentData = this.parentContext?.promise;
|
|
1021
|
+
if (parentData) {
|
|
1022
|
+
this._resolve?.(parentData.then(() => data));
|
|
1023
|
+
return;
|
|
1024
|
+
}
|
|
1025
|
+
this._resolve?.(data);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
class StreamRecord {
|
|
1029
|
+
type;
|
|
1030
|
+
errors;
|
|
1031
|
+
label;
|
|
1032
|
+
path;
|
|
1033
|
+
items;
|
|
1034
|
+
promise;
|
|
1035
|
+
parentContext;
|
|
1036
|
+
iterator;
|
|
1037
|
+
isCompletedIterator;
|
|
1038
|
+
isCompleted;
|
|
1039
|
+
_exeContext;
|
|
1040
|
+
_resolve;
|
|
1041
|
+
constructor(opts) {
|
|
1042
|
+
this.type = "stream";
|
|
1043
|
+
this.items = null;
|
|
1044
|
+
this.label = opts.label;
|
|
1045
|
+
this.path = pathToArray(opts.path);
|
|
1046
|
+
this.parentContext = opts.parentContext;
|
|
1047
|
+
this.iterator = opts.iterator;
|
|
1048
|
+
this.errors = [];
|
|
1049
|
+
this._exeContext = opts.exeContext;
|
|
1050
|
+
this._exeContext.subsequentPayloads.add(this);
|
|
1051
|
+
this.isCompleted = false;
|
|
1052
|
+
this.items = null;
|
|
1053
|
+
this.promise = new Promise((resolve) => {
|
|
1054
|
+
this._resolve = (MaybePromise) => {
|
|
1055
|
+
resolve(MaybePromise);
|
|
1056
|
+
};
|
|
1057
|
+
}).then((items) => {
|
|
1058
|
+
this.items = items;
|
|
1059
|
+
this.isCompleted = true;
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
addItems(items) {
|
|
1063
|
+
const parentData = this.parentContext?.promise;
|
|
1064
|
+
if (parentData) {
|
|
1065
|
+
this._resolve?.(parentData.then(() => items));
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
1068
|
+
this._resolve?.(items);
|
|
1069
|
+
}
|
|
1070
|
+
setIsCompletedIterator() {
|
|
1071
|
+
this.isCompletedIterator = true;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
function isStreamPayload(asyncPayload) {
|
|
1075
|
+
return asyncPayload.type === "stream";
|
|
1076
|
+
}
|
|
1077
|
+
function getFieldDef(schema, parentType, fieldNode) {
|
|
1078
|
+
const fieldName = fieldNode.name.value;
|
|
1079
|
+
if (fieldName === SchemaMetaFieldDef.name && schema.getQueryType() === parentType) {
|
|
1080
|
+
return SchemaMetaFieldDef;
|
|
1081
|
+
} else if (fieldName === TypeMetaFieldDef.name && schema.getQueryType() === parentType) {
|
|
1082
|
+
return TypeMetaFieldDef;
|
|
1083
|
+
} else if (fieldName === TypeNameMetaFieldDef.name) {
|
|
1084
|
+
return TypeNameMetaFieldDef;
|
|
1085
|
+
}
|
|
1086
|
+
return parentType.getFields()[fieldName];
|
|
1087
|
+
}
|
|
1088
|
+
export {
|
|
1089
|
+
CRITICAL_ERROR,
|
|
1090
|
+
buildExecutionContext,
|
|
1091
|
+
buildResolveInfo,
|
|
1092
|
+
defaultFieldResolver,
|
|
1093
|
+
defaultTypeResolver,
|
|
1094
|
+
execute,
|
|
1095
|
+
flattenIncrementalResults,
|
|
1096
|
+
getFieldDef,
|
|
1097
|
+
getFragmentsFromDocument,
|
|
1098
|
+
isIncrementalResults,
|
|
1099
|
+
subscribe
|
|
1100
|
+
};
|
|
1101
|
+
//# sourceMappingURL=execute.js.map
|