@graphql-tools/utils 8.9.1-alpha-9d6b1e75.0 → 8.9.1-alpha-25f2d2c4.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.
Files changed (155) hide show
  1. package/cjs/addTypes.js +1 -1
  2. package/cjs/astFromType.js +1 -1
  3. package/cjs/astFromValueUntyped.js +1 -1
  4. package/cjs/build-operation-for-field.js +1 -1
  5. package/cjs/collectFields.js +1 -1
  6. package/cjs/comments.js +1 -1
  7. package/cjs/errors.js +1 -1
  8. package/cjs/fields.js +1 -1
  9. package/cjs/filterSchema.js +1 -1
  10. package/cjs/fixSchemaAst.js +1 -1
  11. package/cjs/forEachDefaultValue.js +1 -1
  12. package/cjs/forEachField.js +1 -1
  13. package/cjs/get-fields-with-directives.js +1 -1
  14. package/cjs/get-implementing-types.js +1 -1
  15. package/cjs/getArgumentValues.js +1 -1
  16. package/cjs/getObjectTypeFromTypeMap.js +1 -1
  17. package/cjs/getOperationASTFromRequest.js +1 -1
  18. package/cjs/getResolversFromSchema.js +1 -1
  19. package/cjs/heal.js +2 -1
  20. package/cjs/helpers.js +1 -1
  21. package/cjs/implementsAbstractType.js +1 -1
  22. package/cjs/inspect.js +1 -1
  23. package/cjs/isDocumentNode.js +1 -1
  24. package/cjs/mapSchema.js +1 -1
  25. package/cjs/parse-graphql-json.js +1 -1
  26. package/cjs/parse-graphql-sdl.js +1 -1
  27. package/cjs/print-schema-with-directives.js +1 -1
  28. package/cjs/prune.js +1 -1
  29. package/cjs/renameType.js +1 -1
  30. package/cjs/rewire.js +1 -1
  31. package/cjs/selectionSets.js +1 -1
  32. package/cjs/stub.js +2 -1
  33. package/cjs/transformInputValue.js +1 -1
  34. package/cjs/updateArgument.js +1 -1
  35. package/cjs/validate-documents.js +1 -1
  36. package/cjs/visitResult.js +1 -1
  37. package/esm/addTypes.js +1 -1
  38. package/esm/astFromType.js +1 -1
  39. package/esm/astFromValueUntyped.js +1 -1
  40. package/esm/build-operation-for-field.js +1 -1
  41. package/esm/collectFields.js +1 -1
  42. package/esm/comments.js +1 -1
  43. package/esm/errors.js +1 -1
  44. package/esm/fields.js +1 -1
  45. package/esm/filterSchema.js +1 -1
  46. package/esm/fixSchemaAst.js +1 -1
  47. package/esm/forEachDefaultValue.js +1 -1
  48. package/esm/forEachField.js +1 -1
  49. package/esm/get-fields-with-directives.js +1 -1
  50. package/esm/get-implementing-types.js +1 -1
  51. package/esm/getArgumentValues.js +1 -1
  52. package/esm/getObjectTypeFromTypeMap.js +1 -1
  53. package/esm/getOperationASTFromRequest.js +1 -1
  54. package/esm/getResolversFromSchema.js +1 -1
  55. package/esm/heal.js +2 -1
  56. package/esm/helpers.js +1 -1
  57. package/esm/implementsAbstractType.js +1 -1
  58. package/esm/inspect.js +1 -1
  59. package/esm/isDocumentNode.js +1 -1
  60. package/esm/mapSchema.js +1 -1
  61. package/esm/parse-graphql-json.js +1 -1
  62. package/esm/parse-graphql-sdl.js +1 -1
  63. package/esm/print-schema-with-directives.js +1 -1
  64. package/esm/prune.js +1 -1
  65. package/esm/renameType.js +1 -1
  66. package/esm/rewire.js +1 -1
  67. package/esm/selectionSets.js +1 -1
  68. package/esm/stub.js +2 -1
  69. package/esm/transformInputValue.js +1 -1
  70. package/esm/updateArgument.js +1 -1
  71. package/esm/validate-documents.js +1 -1
  72. package/esm/visitResult.js +1 -1
  73. package/package.json +2 -4
  74. package/typings/Interfaces.d.cts +1 -1
  75. package/typings/Interfaces.d.ts +1 -1
  76. package/typings/addTypes.d.cts +1 -1
  77. package/typings/addTypes.d.ts +1 -1
  78. package/typings/astFromType.d.cts +1 -1
  79. package/typings/astFromType.d.ts +1 -1
  80. package/typings/astFromValueUntyped.d.cts +1 -1
  81. package/typings/astFromValueUntyped.d.ts +1 -1
  82. package/typings/build-operation-for-field.d.cts +1 -1
  83. package/typings/build-operation-for-field.d.ts +1 -1
  84. package/typings/collectFields.d.cts +1 -1
  85. package/typings/collectFields.d.ts +1 -1
  86. package/typings/comments.d.cts +1 -1
  87. package/typings/comments.d.ts +1 -1
  88. package/typings/errors.d.cts +1 -1
  89. package/typings/errors.d.ts +1 -1
  90. package/typings/fields.d.cts +1 -1
  91. package/typings/fields.d.ts +1 -1
  92. package/typings/filterSchema.d.cts +1 -1
  93. package/typings/filterSchema.d.ts +1 -1
  94. package/typings/fixSchemaAst.d.cts +1 -1
  95. package/typings/fixSchemaAst.d.ts +1 -1
  96. package/typings/forEachDefaultValue.d.cts +1 -1
  97. package/typings/forEachDefaultValue.d.ts +1 -1
  98. package/typings/forEachField.d.cts +1 -1
  99. package/typings/forEachField.d.ts +1 -1
  100. package/typings/get-directives.d.cts +1 -1
  101. package/typings/get-directives.d.ts +1 -1
  102. package/typings/get-fields-with-directives.d.cts +1 -1
  103. package/typings/get-fields-with-directives.d.ts +1 -1
  104. package/typings/get-implementing-types.d.cts +1 -1
  105. package/typings/get-implementing-types.d.ts +1 -1
  106. package/typings/getArgumentValues.d.cts +1 -1
  107. package/typings/getArgumentValues.d.ts +1 -1
  108. package/typings/getObjectTypeFromTypeMap.d.cts +1 -1
  109. package/typings/getObjectTypeFromTypeMap.d.ts +1 -1
  110. package/typings/getOperationASTFromRequest.d.cts +1 -1
  111. package/typings/getOperationASTFromRequest.d.ts +1 -1
  112. package/typings/getResolversFromSchema.d.cts +1 -1
  113. package/typings/getResolversFromSchema.d.ts +1 -1
  114. package/typings/getResponseKeyFromInfo.d.cts +1 -1
  115. package/typings/getResponseKeyFromInfo.d.ts +1 -1
  116. package/typings/heal.d.cts +1 -1
  117. package/typings/heal.d.ts +1 -1
  118. package/typings/helpers.d.cts +2 -2
  119. package/typings/helpers.d.ts +2 -2
  120. package/typings/implementsAbstractType.d.cts +1 -1
  121. package/typings/implementsAbstractType.d.ts +1 -1
  122. package/typings/isDocumentNode.d.cts +1 -1
  123. package/typings/isDocumentNode.d.ts +1 -1
  124. package/typings/loaders.d.cts +1 -1
  125. package/typings/loaders.d.ts +1 -1
  126. package/typings/mapSchema.d.cts +1 -1
  127. package/typings/mapSchema.d.ts +1 -1
  128. package/typings/parse-graphql-json.d.cts +1 -1
  129. package/typings/parse-graphql-json.d.ts +1 -1
  130. package/typings/parse-graphql-sdl.d.cts +1 -1
  131. package/typings/parse-graphql-sdl.d.ts +1 -1
  132. package/typings/print-schema-with-directives.d.cts +1 -1
  133. package/typings/print-schema-with-directives.d.ts +1 -1
  134. package/typings/prune.d.cts +1 -1
  135. package/typings/prune.d.ts +1 -1
  136. package/typings/renameType.d.cts +1 -1
  137. package/typings/renameType.d.ts +1 -1
  138. package/typings/rewire.d.cts +1 -1
  139. package/typings/rewire.d.ts +1 -1
  140. package/typings/rootTypes.d.cts +1 -1
  141. package/typings/rootTypes.d.ts +1 -1
  142. package/typings/selectionSets.d.cts +1 -1
  143. package/typings/selectionSets.d.ts +1 -1
  144. package/typings/stub.d.cts +1 -1
  145. package/typings/stub.d.ts +1 -1
  146. package/typings/transformInputValue.d.cts +1 -1
  147. package/typings/transformInputValue.d.ts +1 -1
  148. package/typings/types.d.cts +1 -1
  149. package/typings/types.d.ts +1 -1
  150. package/typings/updateArgument.d.cts +1 -1
  151. package/typings/updateArgument.d.ts +1 -1
  152. package/typings/validate-documents.d.cts +2 -2
  153. package/typings/validate-documents.d.ts +2 -2
  154. package/typings/visitResult.d.cts +1 -1
  155. package/typings/visitResult.d.ts +1 -1
package/esm/rewire.js CHANGED
@@ -1,4 +1,4 @@
1
- import { GraphQLDirective, GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLObjectType, GraphQLNonNull, GraphQLScalarType, GraphQLUnionType, isInterfaceType, isEnumType, isInputObjectType, isListType, isNamedType, isNonNullType, isObjectType, isScalarType, isUnionType, isSpecifiedScalarType, isSpecifiedDirective, } from 'graphql';
1
+ import { GraphQLDirective, GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLObjectType, GraphQLNonNull, GraphQLScalarType, GraphQLUnionType, isInterfaceType, isEnumType, isInputObjectType, isListType, isNamedType, isNonNullType, isObjectType, isScalarType, isUnionType, isSpecifiedScalarType, isSpecifiedDirective, } from '@graphql-tools/graphql';
2
2
  import { getBuiltInForStub, isNamedStub } from './stub.js';
3
3
  export function rewireTypes(originalTypeMap, directives) {
4
4
  const referenceTypeMap = Object.create(null);
@@ -1,4 +1,4 @@
1
- import { parse } from 'graphql';
1
+ import { parse } from '@graphql-tools/graphql';
2
2
  export function parseSelectionSet(selectionSet, options) {
3
3
  const query = parse(selectionSet, options).definitions[0];
4
4
  return query.selectionSet;
package/esm/stub.js CHANGED
@@ -1,4 +1,4 @@
1
- import { GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLString, GraphQLInt, GraphQLFloat, GraphQLBoolean, GraphQLID, Kind, GraphQLList, GraphQLNonNull, } from 'graphql';
1
+ import { GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLString, GraphQLInt, GraphQLFloat, GraphQLBoolean, GraphQLID, Kind, GraphQLList, GraphQLNonNull, } from '@graphql-tools/graphql';
2
2
  export function createNamedStub(name, type) {
3
3
  let constructor;
4
4
  if (type === 'object') {
@@ -24,6 +24,7 @@ export function createStub(node, type) {
24
24
  case Kind.LIST_TYPE:
25
25
  return new GraphQLList(createStub(node.type, type));
26
26
  case Kind.NON_NULL_TYPE:
27
+ // @ts-expect-error TODO: What is going on here?
27
28
  return new GraphQLNonNull(createStub(node.type, type));
28
29
  default:
29
30
  if (type === 'output') {
@@ -1,4 +1,4 @@
1
- import { getNullableType, isLeafType, isListType, isInputObjectType } from 'graphql';
1
+ import { getNullableType, isLeafType, isListType, isInputObjectType } from '@graphql-tools/graphql';
2
2
  export function transformInputValue(type, value, inputLeafValueTransformer = null, inputObjectValueTransformer = null) {
3
3
  if (value == null) {
4
4
  return value;
@@ -1,4 +1,4 @@
1
- import { Kind } from 'graphql';
1
+ import { Kind } from '@graphql-tools/graphql';
2
2
  import { astFromType } from './astFromType.js';
3
3
  export function updateArgument(argumentNodes, variableDefinitionsMap, variableValues, argName, varName, type, value) {
4
4
  argumentNodes[argName] = {
@@ -1,4 +1,4 @@
1
- import { Kind, validate, specifiedRules, concatAST, versionInfo, } from 'graphql';
1
+ import { Kind, validate, specifiedRules, concatAST, versionInfo, } from '@graphql-tools/graphql';
2
2
  import { AggregateError } from './AggregateError.js';
3
3
  export async function validateGraphQlDocuments(schema, documentFiles, effectiveRules = createDefaultRules()) {
4
4
  const allFragmentMap = new Map();
@@ -1,5 +1,5 @@
1
1
  import { getOperationASTFromRequest } from './getOperationASTFromRequest.js';
2
- import { Kind, isListType, getNullableType, isAbstractType, isObjectType, TypeNameMetaFieldDef, SchemaMetaFieldDef, } from 'graphql';
2
+ import { Kind, isListType, getNullableType, isAbstractType, isObjectType, TypeNameMetaFieldDef, SchemaMetaFieldDef, } from '@graphql-tools/graphql';
3
3
  import { collectFields, collectSubFields } from './collectFields.js';
4
4
  export function visitData(data, enter, leave) {
5
5
  if (Array.isArray(data)) {
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "8.9.1-alpha-9d6b1e75.0",
3
+ "version": "8.9.1-alpha-25f2d2c4.0",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
- "peerDependencies": {
7
- "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
8
- },
9
6
  "dependencies": {
7
+ "@graphql-tools/graphql": "0.1.0-alpha-25f2d2c4.0",
10
8
  "tslib": "^2.4.0"
11
9
  },
12
10
  "repository": {
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, GraphQLField, GraphQLInputType, GraphQLNamedType, GraphQLResolveInfo, GraphQLScalarType, DocumentNode, FieldNode, GraphQLEnumValue, GraphQLEnumType, GraphQLUnionType, GraphQLArgument, GraphQLInputField, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLDirective, FragmentDefinitionNode, SelectionNode, ExecutionResult as GraphQLExecutionResult, GraphQLOutputType, FieldDefinitionNode, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLArgumentConfig, GraphQLEnumValueConfig, GraphQLScalarSerializer, GraphQLScalarValueParser, GraphQLScalarLiteralParser, ScalarTypeDefinitionNode, ScalarTypeExtensionNode, EnumTypeDefinitionNode, EnumTypeExtensionNode, GraphQLIsTypeOfFn, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, InterfaceTypeExtensionNode, InterfaceTypeDefinitionNode, GraphQLTypeResolver, UnionTypeDefinitionNode, UnionTypeExtensionNode, InputObjectTypeExtensionNode, InputObjectTypeDefinitionNode, GraphQLType, Source, DefinitionNode, OperationTypeNode } from 'graphql';
1
+ import { GraphQLSchema, GraphQLField, GraphQLInputType, GraphQLNamedType, GraphQLResolveInfo, GraphQLScalarType, DocumentNode, FieldNode, GraphQLEnumValue, GraphQLEnumType, GraphQLUnionType, GraphQLArgument, GraphQLInputField, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLDirective, FragmentDefinitionNode, SelectionNode, ExecutionResult as GraphQLExecutionResult, GraphQLOutputType, FieldDefinitionNode, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLArgumentConfig, GraphQLEnumValueConfig, GraphQLScalarSerializer, GraphQLScalarValueParser, GraphQLScalarLiteralParser, ScalarTypeDefinitionNode, ScalarTypeExtensionNode, EnumTypeDefinitionNode, EnumTypeExtensionNode, GraphQLIsTypeOfFn, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, InterfaceTypeExtensionNode, InterfaceTypeDefinitionNode, GraphQLTypeResolver, UnionTypeDefinitionNode, UnionTypeExtensionNode, InputObjectTypeExtensionNode, InputObjectTypeDefinitionNode, GraphQLType, Source, DefinitionNode, OperationTypeNode } from '@graphql-tools/graphql';
2
2
  export declare type ExecutionResult<TData = Record<string, any>> = GraphQLExecutionResult & {
3
3
  data?: TData | null;
4
4
  extensions?: Record<string, any>;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, GraphQLField, GraphQLInputType, GraphQLNamedType, GraphQLResolveInfo, GraphQLScalarType, DocumentNode, FieldNode, GraphQLEnumValue, GraphQLEnumType, GraphQLUnionType, GraphQLArgument, GraphQLInputField, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLDirective, FragmentDefinitionNode, SelectionNode, ExecutionResult as GraphQLExecutionResult, GraphQLOutputType, FieldDefinitionNode, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLArgumentConfig, GraphQLEnumValueConfig, GraphQLScalarSerializer, GraphQLScalarValueParser, GraphQLScalarLiteralParser, ScalarTypeDefinitionNode, ScalarTypeExtensionNode, EnumTypeDefinitionNode, EnumTypeExtensionNode, GraphQLIsTypeOfFn, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, InterfaceTypeExtensionNode, InterfaceTypeDefinitionNode, GraphQLTypeResolver, UnionTypeDefinitionNode, UnionTypeExtensionNode, InputObjectTypeExtensionNode, InputObjectTypeDefinitionNode, GraphQLType, Source, DefinitionNode, OperationTypeNode } from 'graphql';
1
+ import { GraphQLSchema, GraphQLField, GraphQLInputType, GraphQLNamedType, GraphQLResolveInfo, GraphQLScalarType, DocumentNode, FieldNode, GraphQLEnumValue, GraphQLEnumType, GraphQLUnionType, GraphQLArgument, GraphQLInputField, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLDirective, FragmentDefinitionNode, SelectionNode, ExecutionResult as GraphQLExecutionResult, GraphQLOutputType, FieldDefinitionNode, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLArgumentConfig, GraphQLEnumValueConfig, GraphQLScalarSerializer, GraphQLScalarValueParser, GraphQLScalarLiteralParser, ScalarTypeDefinitionNode, ScalarTypeExtensionNode, EnumTypeDefinitionNode, EnumTypeExtensionNode, GraphQLIsTypeOfFn, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, InterfaceTypeExtensionNode, InterfaceTypeDefinitionNode, GraphQLTypeResolver, UnionTypeDefinitionNode, UnionTypeExtensionNode, InputObjectTypeExtensionNode, InputObjectTypeDefinitionNode, GraphQLType, Source, DefinitionNode, OperationTypeNode } from '@graphql-tools/graphql';
2
2
  export declare type ExecutionResult<TData = Record<string, any>> = GraphQLExecutionResult & {
3
3
  data?: TData | null;
4
4
  extensions?: Record<string, any>;
@@ -1,2 +1,2 @@
1
- import { GraphQLSchema, GraphQLNamedType, GraphQLDirective } from 'graphql';
1
+ import { GraphQLSchema, GraphQLNamedType, GraphQLDirective } from '@graphql-tools/graphql';
2
2
  export declare function addTypes(schema: GraphQLSchema, newTypesOrDirectives: Array<GraphQLNamedType | GraphQLDirective>): GraphQLSchema;
@@ -1,2 +1,2 @@
1
- import { GraphQLSchema, GraphQLNamedType, GraphQLDirective } from 'graphql';
1
+ import { GraphQLSchema, GraphQLNamedType, GraphQLDirective } from '@graphql-tools/graphql';
2
2
  export declare function addTypes(schema: GraphQLSchema, newTypesOrDirectives: Array<GraphQLNamedType | GraphQLDirective>): GraphQLSchema;
@@ -1,2 +1,2 @@
1
- import { GraphQLType, TypeNode } from 'graphql';
1
+ import { GraphQLType, TypeNode } from '@graphql-tools/graphql';
2
2
  export declare function astFromType(type: GraphQLType): TypeNode;
@@ -1,2 +1,2 @@
1
- import { GraphQLType, TypeNode } from 'graphql';
1
+ import { GraphQLType, TypeNode } from '@graphql-tools/graphql';
2
2
  export declare function astFromType(type: GraphQLType): TypeNode;
@@ -1,4 +1,4 @@
1
- import { ValueNode } from 'graphql';
1
+ import { ValueNode } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * Produces a GraphQL Value AST given a JavaScript object.
4
4
  * Function will match JavaScript/JSON values to GraphQL AST schema format
@@ -1,4 +1,4 @@
1
- import { ValueNode } from 'graphql';
1
+ import { ValueNode } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * Produces a GraphQL Value AST given a JavaScript object.
4
4
  * Function will match JavaScript/JSON values to GraphQL AST schema format
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, OperationDefinitionNode, OperationTypeNode } from 'graphql';
1
+ import { GraphQLSchema, OperationDefinitionNode, OperationTypeNode } from '@graphql-tools/graphql';
2
2
  export declare type Skip = string[];
3
3
  export declare type Force = string[];
4
4
  export declare type Ignore = string[];
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, OperationDefinitionNode, OperationTypeNode } from 'graphql';
1
+ import { GraphQLSchema, OperationDefinitionNode, OperationTypeNode } from '@graphql-tools/graphql';
2
2
  export declare type Skip = string[];
3
3
  export declare type Force = string[];
4
4
  export declare type Ignore = string[];
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, FragmentDefinitionNode, GraphQLObjectType, SelectionSetNode, FieldNode } from 'graphql';
1
+ import { GraphQLSchema, FragmentDefinitionNode, GraphQLObjectType, SelectionSetNode, FieldNode } from '@graphql-tools/graphql';
2
2
  export declare function collectFields(schema: GraphQLSchema, fragments: Record<string, FragmentDefinitionNode>, variableValues: {
3
3
  [variable: string]: unknown;
4
4
  }, runtimeType: GraphQLObjectType, selectionSet: SelectionSetNode, fields: Map<string, Array<FieldNode>>, visitedFragmentNames: Set<string>): Map<string, Array<FieldNode>>;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, FragmentDefinitionNode, GraphQLObjectType, SelectionSetNode, FieldNode } from 'graphql';
1
+ import { GraphQLSchema, FragmentDefinitionNode, GraphQLObjectType, SelectionSetNode, FieldNode } from '@graphql-tools/graphql';
2
2
  export declare function collectFields(schema: GraphQLSchema, fragments: Record<string, FragmentDefinitionNode>, variableValues: {
3
3
  [variable: string]: unknown;
4
4
  }, runtimeType: GraphQLObjectType, selectionSet: SelectionSetNode, fields: Map<string, Array<FieldNode>>, visitedFragmentNames: Set<string>): Map<string, Array<FieldNode>>;
@@ -1,4 +1,4 @@
1
- import { StringValueNode, ASTNode, NameNode, DefinitionNode, Location } from 'graphql';
1
+ import { StringValueNode, ASTNode, NameNode, DefinitionNode, Location } from '@graphql-tools/graphql';
2
2
  export declare type NamedDefinitionNode = DefinitionNode & {
3
3
  name?: NameNode;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { StringValueNode, ASTNode, NameNode, DefinitionNode, Location } from 'graphql';
1
+ import { StringValueNode, ASTNode, NameNode, DefinitionNode, Location } from '@graphql-tools/graphql';
2
2
  export declare type NamedDefinitionNode = DefinitionNode & {
3
3
  name?: NameNode;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ASTNode, GraphQLError, Source } from 'graphql';
1
+ import { ASTNode, GraphQLError, Source } from '@graphql-tools/graphql';
2
2
  import { Maybe } from './types.cjs';
3
3
  interface GraphQLErrorOptions {
4
4
  nodes?: ReadonlyArray<ASTNode> | ASTNode | null;
@@ -1,4 +1,4 @@
1
- import { ASTNode, GraphQLError, Source } from 'graphql';
1
+ import { ASTNode, GraphQLError, Source } from '@graphql-tools/graphql';
2
2
  import { Maybe } from './types.js';
3
3
  interface GraphQLErrorOptions {
4
4
  nodes?: ReadonlyArray<ASTNode> | ASTNode | null;
@@ -1,4 +1,4 @@
1
- import { GraphQLFieldConfigMap, GraphQLFieldConfig, GraphQLSchema } from 'graphql';
1
+ import { GraphQLFieldConfigMap, GraphQLFieldConfig, GraphQLSchema } from '@graphql-tools/graphql';
2
2
  export declare function appendObjectFields(schema: GraphQLSchema, typeName: string, additionalFields: GraphQLFieldConfigMap<any, any>): GraphQLSchema;
3
3
  export declare function removeObjectFields(schema: GraphQLSchema, typeName: string, testFn: (fieldName: string, field: GraphQLFieldConfig<any, any>) => boolean): [GraphQLSchema, GraphQLFieldConfigMap<any, any>];
4
4
  export declare function selectObjectFields(schema: GraphQLSchema, typeName: string, testFn: (fieldName: string, field: GraphQLFieldConfig<any, any>) => boolean): GraphQLFieldConfigMap<any, any>;
@@ -1,4 +1,4 @@
1
- import { GraphQLFieldConfigMap, GraphQLFieldConfig, GraphQLSchema } from 'graphql';
1
+ import { GraphQLFieldConfigMap, GraphQLFieldConfig, GraphQLSchema } from '@graphql-tools/graphql';
2
2
  export declare function appendObjectFields(schema: GraphQLSchema, typeName: string, additionalFields: GraphQLFieldConfigMap<any, any>): GraphQLSchema;
3
3
  export declare function removeObjectFields(schema: GraphQLSchema, typeName: string, testFn: (fieldName: string, field: GraphQLFieldConfig<any, any>) => boolean): [GraphQLSchema, GraphQLFieldConfigMap<any, any>];
4
4
  export declare function selectObjectFields(schema: GraphQLSchema, typeName: string, testFn: (fieldName: string, field: GraphQLFieldConfig<any, any>) => boolean): GraphQLFieldConfigMap<any, any>;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { FieldFilter, RootFieldFilter, TypeFilter, ArgumentFilter } from './Interfaces.cjs';
3
3
  export declare function filterSchema({ schema, typeFilter, fieldFilter, rootFieldFilter, objectFieldFilter, interfaceFieldFilter, inputObjectFieldFilter, argumentFilter, }: {
4
4
  schema: GraphQLSchema;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { FieldFilter, RootFieldFilter, TypeFilter, ArgumentFilter } from './Interfaces.js';
3
3
  export declare function filterSchema({ schema, typeFilter, fieldFilter, rootFieldFilter, objectFieldFilter, interfaceFieldFilter, inputObjectFieldFilter, argumentFilter, }: {
4
4
  schema: GraphQLSchema;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema, BuildSchemaOptions } from 'graphql';
1
+ import { GraphQLSchema, BuildSchemaOptions } from '@graphql-tools/graphql';
2
2
  import { SchemaPrintOptions } from './types.cjs';
3
3
  export declare function fixSchemaAst(schema: GraphQLSchema, options: BuildSchemaOptions & SchemaPrintOptions): GraphQLSchema;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema, BuildSchemaOptions } from 'graphql';
1
+ import { GraphQLSchema, BuildSchemaOptions } from '@graphql-tools/graphql';
2
2
  import { SchemaPrintOptions } from './types.js';
3
3
  export declare function fixSchemaAst(schema: GraphQLSchema, options: BuildSchemaOptions & SchemaPrintOptions): GraphQLSchema;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IDefaultValueIteratorFn } from './Interfaces.cjs';
3
3
  export declare function forEachDefaultValue(schema: GraphQLSchema, fn: IDefaultValueIteratorFn): void;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IDefaultValueIteratorFn } from './Interfaces.js';
3
3
  export declare function forEachDefaultValue(schema: GraphQLSchema, fn: IDefaultValueIteratorFn): void;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IFieldIteratorFn } from './Interfaces.cjs';
3
3
  export declare function forEachField(schema: GraphQLSchema, fn: IFieldIteratorFn): void;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IFieldIteratorFn } from './Interfaces.js';
3
3
  export declare function forEachField(schema: GraphQLSchema, fn: IFieldIteratorFn): void;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, GraphQLNamedType, GraphQLField, GraphQLInputField, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLSchemaConfig, GraphQLObjectTypeConfig, GraphQLInterfaceTypeConfig, GraphQLUnionTypeConfig, GraphQLScalarTypeConfig, GraphQLEnumTypeConfig, GraphQLInputObjectTypeConfig, GraphQLEnumValue, GraphQLEnumValueConfig } from 'graphql';
1
+ import { GraphQLSchema, GraphQLNamedType, GraphQLField, GraphQLInputField, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLSchemaConfig, GraphQLObjectTypeConfig, GraphQLInterfaceTypeConfig, GraphQLUnionTypeConfig, GraphQLScalarTypeConfig, GraphQLEnumTypeConfig, GraphQLInputObjectTypeConfig, GraphQLEnumValue, GraphQLEnumValueConfig } from '@graphql-tools/graphql';
2
2
  export interface DirectiveAnnotation {
3
3
  name: string;
4
4
  args?: Record<string, any>;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, GraphQLNamedType, GraphQLField, GraphQLInputField, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLSchemaConfig, GraphQLObjectTypeConfig, GraphQLInterfaceTypeConfig, GraphQLUnionTypeConfig, GraphQLScalarTypeConfig, GraphQLEnumTypeConfig, GraphQLInputObjectTypeConfig, GraphQLEnumValue, GraphQLEnumValueConfig } from 'graphql';
1
+ import { GraphQLSchema, GraphQLNamedType, GraphQLField, GraphQLInputField, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLSchemaConfig, GraphQLObjectTypeConfig, GraphQLInterfaceTypeConfig, GraphQLUnionTypeConfig, GraphQLScalarTypeConfig, GraphQLEnumTypeConfig, GraphQLInputObjectTypeConfig, GraphQLEnumValue, GraphQLEnumValueConfig } from '@graphql-tools/graphql';
2
2
  export interface DirectiveAnnotation {
3
3
  name: string;
4
4
  args?: Record<string, any>;
@@ -1,4 +1,4 @@
1
- import { DocumentNode } from 'graphql';
1
+ import { DocumentNode } from '@graphql-tools/graphql';
2
2
  export declare type DirectiveArgs = {
3
3
  [name: string]: any;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { DocumentNode } from 'graphql';
1
+ import { DocumentNode } from '@graphql-tools/graphql';
2
2
  export declare type DirectiveArgs = {
3
3
  [name: string]: any;
4
4
  };
@@ -1,2 +1,2 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  export declare function getImplementingTypes(interfaceName: string, schema: GraphQLSchema): string[];
@@ -1,2 +1,2 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  export declare function getImplementingTypes(interfaceName: string, schema: GraphQLSchema): string[];
@@ -1,4 +1,4 @@
1
- import { GraphQLField, GraphQLDirective, DirectiveNode, FieldNode } from 'graphql';
1
+ import { GraphQLField, GraphQLDirective, DirectiveNode, FieldNode } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * Prepares an object map of argument values given a list of argument
4
4
  * definitions and list of argument AST nodes.
@@ -1,4 +1,4 @@
1
- import { GraphQLField, GraphQLDirective, DirectiveNode, FieldNode } from 'graphql';
1
+ import { GraphQLField, GraphQLDirective, DirectiveNode, FieldNode } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * Prepares an object map of argument values given a list of argument
4
4
  * definitions and list of argument AST nodes.
@@ -1,3 +1,3 @@
1
- import { GraphQLNamedType, GraphQLObjectType } from 'graphql';
1
+ import { GraphQLNamedType, GraphQLObjectType } from '@graphql-tools/graphql';
2
2
  import { Maybe } from './types.cjs';
3
3
  export declare function getObjectTypeFromTypeMap(typeMap: Record<string, GraphQLNamedType>, type: Maybe<GraphQLObjectType>): GraphQLObjectType | undefined;
@@ -1,3 +1,3 @@
1
- import { GraphQLNamedType, GraphQLObjectType } from 'graphql';
1
+ import { GraphQLNamedType, GraphQLObjectType } from '@graphql-tools/graphql';
2
2
  import { Maybe } from './types.js';
3
3
  export declare function getObjectTypeFromTypeMap(typeMap: Record<string, GraphQLNamedType>, type: Maybe<GraphQLObjectType>): GraphQLObjectType | undefined;
@@ -1,4 +1,4 @@
1
- import { DocumentNode, OperationDefinitionNode } from 'graphql';
1
+ import { DocumentNode, OperationDefinitionNode } from '@graphql-tools/graphql';
2
2
  import { ExecutionRequest } from './Interfaces.cjs';
3
3
  export declare function getOperationASTFromDocument(documentNode: DocumentNode, operationName?: string): OperationDefinitionNode;
4
4
  export declare const getOperationASTFromRequest: (request: ExecutionRequest) => OperationDefinitionNode;
@@ -1,4 +1,4 @@
1
- import { DocumentNode, OperationDefinitionNode } from 'graphql';
1
+ import { DocumentNode, OperationDefinitionNode } from '@graphql-tools/graphql';
2
2
  import { ExecutionRequest } from './Interfaces.js';
3
3
  export declare function getOperationASTFromDocument(documentNode: DocumentNode, operationName?: string): OperationDefinitionNode;
4
4
  export declare const getOperationASTFromRequest: (request: ExecutionRequest) => OperationDefinitionNode;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IResolvers } from './Interfaces.cjs';
3
3
  export declare function getResolversFromSchema(schema: GraphQLSchema, includeDefaultMergedResolver?: boolean): IResolvers;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IResolvers } from './Interfaces.js';
3
3
  export declare function getResolversFromSchema(schema: GraphQLSchema, includeDefaultMergedResolver?: boolean): IResolvers;
@@ -1,4 +1,4 @@
1
- import { GraphQLResolveInfo } from 'graphql';
1
+ import { GraphQLResolveInfo } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * Get the key under which the result of this resolver will be placed in the response JSON. Basically, just
4
4
  * resolves aliases.
@@ -1,4 +1,4 @@
1
- import { GraphQLResolveInfo } from 'graphql';
1
+ import { GraphQLResolveInfo } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * Get the key under which the result of this resolver will be placed in the response JSON. Basically, just
4
4
  * resolves aliases.
@@ -1,3 +1,3 @@
1
- import { GraphQLDirective, GraphQLNamedType, GraphQLSchema } from 'graphql';
1
+ import { GraphQLDirective, GraphQLNamedType, GraphQLSchema } from '@graphql-tools/graphql';
2
2
  export declare function healSchema(schema: GraphQLSchema): GraphQLSchema;
3
3
  export declare function healTypes(originalTypeMap: Record<string, GraphQLNamedType | null>, directives: ReadonlyArray<GraphQLDirective>): void;
package/typings/heal.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { GraphQLDirective, GraphQLNamedType, GraphQLSchema } from 'graphql';
1
+ import { GraphQLDirective, GraphQLNamedType, GraphQLSchema } from '@graphql-tools/graphql';
2
2
  export declare function healSchema(schema: GraphQLSchema): GraphQLSchema;
3
3
  export declare function healTypes(originalTypeMap: Record<string, GraphQLNamedType | null>, directives: ReadonlyArray<GraphQLDirective>): void;
@@ -1,8 +1,8 @@
1
- import { ASTNode } from 'graphql';
1
+ import { ASTNode } from '@graphql-tools/graphql';
2
2
  export declare const asArray: <T>(fns: T | T[]) => T[];
3
3
  export declare function isDocumentString(str: any): boolean;
4
4
  export declare function isValidPath(str: any): boolean;
5
- export declare function compareStrings<A, B>(a: A, b: B): 1 | -1 | 0;
5
+ export declare function compareStrings<A, B>(a: A, b: B): 1 | 0 | -1;
6
6
  export declare function nodeToString(a: ASTNode): string;
7
7
  export declare function compareNodes(a: ASTNode, b: ASTNode, customFn?: (a: any, b: any) => number): number;
8
8
  export declare function isSome<T>(input: T): input is Exclude<T, null | undefined>;
@@ -1,8 +1,8 @@
1
- import { ASTNode } from 'graphql';
1
+ import { ASTNode } from '@graphql-tools/graphql';
2
2
  export declare const asArray: <T>(fns: T | T[]) => T[];
3
3
  export declare function isDocumentString(str: any): boolean;
4
4
  export declare function isValidPath(str: any): boolean;
5
- export declare function compareStrings<A, B>(a: A, b: B): 1 | -1 | 0;
5
+ export declare function compareStrings<A, B>(a: A, b: B): 1 | 0 | -1;
6
6
  export declare function nodeToString(a: ASTNode): string;
7
7
  export declare function compareNodes(a: ASTNode, b: ASTNode, customFn?: (a: any, b: any) => number): number;
8
8
  export declare function isSome<T>(input: T): input is Exclude<T, null | undefined>;
@@ -1,3 +1,3 @@
1
- import { GraphQLType, GraphQLSchema } from 'graphql';
1
+ import { GraphQLType, GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { Maybe } from './types.cjs';
3
3
  export declare function implementsAbstractType(schema: GraphQLSchema, typeA: Maybe<GraphQLType>, typeB: Maybe<GraphQLType>): boolean;
@@ -1,3 +1,3 @@
1
- import { GraphQLType, GraphQLSchema } from 'graphql';
1
+ import { GraphQLType, GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { Maybe } from './types.js';
3
3
  export declare function implementsAbstractType(schema: GraphQLSchema, typeA: Maybe<GraphQLType>, typeB: Maybe<GraphQLType>): boolean;
@@ -1,2 +1,2 @@
1
- import { DocumentNode } from 'graphql';
1
+ import { DocumentNode } from '@graphql-tools/graphql';
2
2
  export declare function isDocumentNode(object: any): object is DocumentNode;
@@ -1,2 +1,2 @@
1
- import { DocumentNode } from 'graphql';
1
+ import { DocumentNode } from '@graphql-tools/graphql';
2
2
  export declare function isDocumentNode(object: any): object is DocumentNode;
@@ -1,4 +1,4 @@
1
- import { DocumentNode, GraphQLSchema, BuildSchemaOptions } from 'graphql';
1
+ import { DocumentNode, GraphQLSchema, BuildSchemaOptions } from '@graphql-tools/graphql';
2
2
  import { GraphQLParseOptions } from './Interfaces.cjs';
3
3
  export interface Source {
4
4
  document?: DocumentNode;
@@ -1,4 +1,4 @@
1
- import { DocumentNode, GraphQLSchema, BuildSchemaOptions } from 'graphql';
1
+ import { DocumentNode, GraphQLSchema, BuildSchemaOptions } from '@graphql-tools/graphql';
2
2
  import { GraphQLParseOptions } from './Interfaces.js';
3
3
  export interface Source {
4
4
  document?: DocumentNode;
@@ -1,4 +1,4 @@
1
- import { GraphQLObjectType, GraphQLSchema, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLEnumType } from 'graphql';
1
+ import { GraphQLObjectType, GraphQLSchema, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLEnumType } from '@graphql-tools/graphql';
2
2
  import { SchemaMapper } from './Interfaces.cjs';
3
3
  export declare function mapSchema(schema: GraphQLSchema, schemaMapper?: SchemaMapper): GraphQLSchema;
4
4
  export declare function correctASTNodes(type: GraphQLObjectType): GraphQLObjectType;
@@ -1,4 +1,4 @@
1
- import { GraphQLObjectType, GraphQLSchema, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLEnumType } from 'graphql';
1
+ import { GraphQLObjectType, GraphQLSchema, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLEnumType } from '@graphql-tools/graphql';
2
2
  import { SchemaMapper } from './Interfaces.js';
3
3
  export declare function mapSchema(schema: GraphQLSchema, schemaMapper?: SchemaMapper): GraphQLSchema;
4
4
  export declare function correctASTNodes(type: GraphQLObjectType): GraphQLObjectType;
@@ -1,4 +1,4 @@
1
- import { ParseOptions } from 'graphql';
1
+ import { ParseOptions } from '@graphql-tools/graphql';
2
2
  import { Source } from './loaders.cjs';
3
3
  import { SchemaPrintOptions } from './types.cjs';
4
4
  export declare function parseGraphQLJSON(location: string, jsonContent: string, options: SchemaPrintOptions & ParseOptions): Source;
@@ -1,4 +1,4 @@
1
- import { ParseOptions } from 'graphql';
1
+ import { ParseOptions } from '@graphql-tools/graphql';
2
2
  import { Source } from './loaders.js';
3
3
  import { SchemaPrintOptions } from './types.js';
4
4
  export declare function parseGraphQLJSON(location: string, jsonContent: string, options: SchemaPrintOptions & ParseOptions): Source;
@@ -1,4 +1,4 @@
1
- import { DocumentNode, ASTNode, StringValueNode } from 'graphql';
1
+ import { DocumentNode, ASTNode, StringValueNode } from '@graphql-tools/graphql';
2
2
  import { GraphQLParseOptions } from './Interfaces.cjs';
3
3
  export declare function parseGraphQLSDL(location: string | undefined, rawSDL: string, options?: GraphQLParseOptions): {
4
4
  location: string | undefined;
@@ -1,4 +1,4 @@
1
- import { DocumentNode, ASTNode, StringValueNode } from 'graphql';
1
+ import { DocumentNode, ASTNode, StringValueNode } from '@graphql-tools/graphql';
2
2
  import { GraphQLParseOptions } from './Interfaces.js';
3
3
  export declare function parseGraphQLSDL(location: string | undefined, rawSDL: string, options?: GraphQLParseOptions): {
4
4
  location: string | undefined;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, GraphQLNamedType, DirectiveNode, FieldDefinitionNode, InputValueDefinitionNode, GraphQLArgument, EnumValueDefinitionNode, GraphQLDirective, DirectiveDefinitionNode, SchemaDefinitionNode, SchemaExtensionNode, GraphQLObjectType, ObjectTypeDefinitionNode, GraphQLField, GraphQLInterfaceType, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, GraphQLUnionType, GraphQLInputObjectType, InputObjectTypeDefinitionNode, GraphQLInputField, GraphQLEnumType, GraphQLEnumValue, EnumTypeDefinitionNode, GraphQLScalarType, ScalarTypeDefinitionNode, DocumentNode } from 'graphql';
1
+ import { GraphQLSchema, GraphQLNamedType, DirectiveNode, FieldDefinitionNode, InputValueDefinitionNode, GraphQLArgument, EnumValueDefinitionNode, GraphQLDirective, DirectiveDefinitionNode, SchemaDefinitionNode, SchemaExtensionNode, GraphQLObjectType, ObjectTypeDefinitionNode, GraphQLField, GraphQLInterfaceType, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, GraphQLUnionType, GraphQLInputObjectType, InputObjectTypeDefinitionNode, GraphQLInputField, GraphQLEnumType, GraphQLEnumValue, EnumTypeDefinitionNode, GraphQLScalarType, ScalarTypeDefinitionNode, DocumentNode } from '@graphql-tools/graphql';
2
2
  import { GetDocumentNodeFromSchemaOptions, PrintSchemaWithDirectivesOptions, Maybe } from './types.cjs';
3
3
  export declare function getDocumentNodeFromSchema(schema: GraphQLSchema, options?: GetDocumentNodeFromSchemaOptions): DocumentNode;
4
4
  export declare function printSchemaWithDirectives(schema: GraphQLSchema, options?: PrintSchemaWithDirectivesOptions): string;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema, GraphQLNamedType, DirectiveNode, FieldDefinitionNode, InputValueDefinitionNode, GraphQLArgument, EnumValueDefinitionNode, GraphQLDirective, DirectiveDefinitionNode, SchemaDefinitionNode, SchemaExtensionNode, GraphQLObjectType, ObjectTypeDefinitionNode, GraphQLField, GraphQLInterfaceType, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, GraphQLUnionType, GraphQLInputObjectType, InputObjectTypeDefinitionNode, GraphQLInputField, GraphQLEnumType, GraphQLEnumValue, EnumTypeDefinitionNode, GraphQLScalarType, ScalarTypeDefinitionNode, DocumentNode } from 'graphql';
1
+ import { GraphQLSchema, GraphQLNamedType, DirectiveNode, FieldDefinitionNode, InputValueDefinitionNode, GraphQLArgument, EnumValueDefinitionNode, GraphQLDirective, DirectiveDefinitionNode, SchemaDefinitionNode, SchemaExtensionNode, GraphQLObjectType, ObjectTypeDefinitionNode, GraphQLField, GraphQLInterfaceType, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, GraphQLUnionType, GraphQLInputObjectType, InputObjectTypeDefinitionNode, GraphQLInputField, GraphQLEnumType, GraphQLEnumValue, EnumTypeDefinitionNode, GraphQLScalarType, ScalarTypeDefinitionNode, DocumentNode } from '@graphql-tools/graphql';
2
2
  import { GetDocumentNodeFromSchemaOptions, PrintSchemaWithDirectivesOptions, Maybe } from './types.js';
3
3
  export declare function getDocumentNodeFromSchema(schema: GraphQLSchema, options?: GetDocumentNodeFromSchemaOptions): DocumentNode;
4
4
  export declare function printSchemaWithDirectives(schema: GraphQLSchema, options?: PrintSchemaWithDirectivesOptions): string;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { PruneSchemaOptions } from './types.cjs';
3
3
  /**
4
4
  * Prunes the provided schema, removing unused and empty types
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { PruneSchemaOptions } from './types.js';
3
3
  /**
4
4
  * Prunes the provided schema, removing unused and empty types
@@ -1,4 +1,4 @@
1
- import { GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLNamedType, GraphQLScalarType, GraphQLUnionType } from 'graphql';
1
+ import { GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLNamedType, GraphQLScalarType, GraphQLUnionType } from '@graphql-tools/graphql';
2
2
  export declare function renameType(type: GraphQLObjectType, newTypeName: string): GraphQLObjectType;
3
3
  export declare function renameType(type: GraphQLInterfaceType, newTypeName: string): GraphQLInterfaceType;
4
4
  export declare function renameType(type: GraphQLUnionType, newTypeName: string): GraphQLUnionType;
@@ -1,4 +1,4 @@
1
- import { GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLNamedType, GraphQLScalarType, GraphQLUnionType } from 'graphql';
1
+ import { GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLNamedType, GraphQLScalarType, GraphQLUnionType } from '@graphql-tools/graphql';
2
2
  export declare function renameType(type: GraphQLObjectType, newTypeName: string): GraphQLObjectType;
3
3
  export declare function renameType(type: GraphQLInterfaceType, newTypeName: string): GraphQLInterfaceType;
4
4
  export declare function renameType(type: GraphQLUnionType, newTypeName: string): GraphQLUnionType;
@@ -1,4 +1,4 @@
1
- import { GraphQLDirective, GraphQLNamedType } from 'graphql';
1
+ import { GraphQLDirective, GraphQLNamedType } from '@graphql-tools/graphql';
2
2
  export declare function rewireTypes(originalTypeMap: Record<string, GraphQLNamedType | null>, directives: ReadonlyArray<GraphQLDirective>): {
3
3
  typeMap: Record<string, GraphQLNamedType>;
4
4
  directives: Array<GraphQLDirective>;
@@ -1,4 +1,4 @@
1
- import { GraphQLDirective, GraphQLNamedType } from 'graphql';
1
+ import { GraphQLDirective, GraphQLNamedType } from '@graphql-tools/graphql';
2
2
  export declare function rewireTypes(originalTypeMap: Record<string, GraphQLNamedType | null>, directives: ReadonlyArray<GraphQLDirective>): {
3
3
  typeMap: Record<string, GraphQLNamedType>;
4
4
  directives: Array<GraphQLDirective>;
@@ -1,4 +1,4 @@
1
- import { GraphQLObjectType, GraphQLSchema, OperationTypeNode } from 'graphql';
1
+ import { GraphQLObjectType, GraphQLSchema, OperationTypeNode } from '@graphql-tools/graphql';
2
2
  export declare function getDefinedRootType(schema: GraphQLSchema, operation: OperationTypeNode): GraphQLObjectType;
3
3
  export declare const getRootTypeNames: (schema: GraphQLSchema) => Set<string>;
4
4
  export declare const getRootTypes: (schema: GraphQLSchema) => Set<GraphQLObjectType>;
@@ -1,4 +1,4 @@
1
- import { GraphQLObjectType, GraphQLSchema, OperationTypeNode } from 'graphql';
1
+ import { GraphQLObjectType, GraphQLSchema, OperationTypeNode } from '@graphql-tools/graphql';
2
2
  export declare function getDefinedRootType(schema: GraphQLSchema, operation: OperationTypeNode): GraphQLObjectType;
3
3
  export declare const getRootTypeNames: (schema: GraphQLSchema) => Set<string>;
4
4
  export declare const getRootTypes: (schema: GraphQLSchema) => Set<GraphQLObjectType>;
@@ -1,3 +1,3 @@
1
- import { SelectionSetNode } from 'graphql';
1
+ import { SelectionSetNode } from '@graphql-tools/graphql';
2
2
  import { GraphQLParseOptions } from './Interfaces.cjs';
3
3
  export declare function parseSelectionSet(selectionSet: string, options?: GraphQLParseOptions): SelectionSetNode;
@@ -1,3 +1,3 @@
1
- import { SelectionSetNode } from 'graphql';
1
+ import { SelectionSetNode } from '@graphql-tools/graphql';
2
2
  import { GraphQLParseOptions } from './Interfaces.js';
3
3
  export declare function parseSelectionSet(selectionSet: string, options?: GraphQLParseOptions): SelectionSetNode;