@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.
- package/cjs/addTypes.js +1 -1
- package/cjs/astFromType.js +1 -1
- package/cjs/astFromValueUntyped.js +1 -1
- package/cjs/build-operation-for-field.js +1 -1
- package/cjs/collectFields.js +1 -1
- package/cjs/comments.js +1 -1
- package/cjs/errors.js +1 -1
- package/cjs/fields.js +1 -1
- package/cjs/filterSchema.js +1 -1
- package/cjs/fixSchemaAst.js +1 -1
- package/cjs/forEachDefaultValue.js +1 -1
- package/cjs/forEachField.js +1 -1
- package/cjs/get-fields-with-directives.js +1 -1
- package/cjs/get-implementing-types.js +1 -1
- package/cjs/getArgumentValues.js +1 -1
- package/cjs/getObjectTypeFromTypeMap.js +1 -1
- package/cjs/getOperationASTFromRequest.js +1 -1
- package/cjs/getResolversFromSchema.js +1 -1
- package/cjs/heal.js +2 -1
- package/cjs/helpers.js +1 -1
- package/cjs/implementsAbstractType.js +1 -1
- package/cjs/inspect.js +1 -1
- package/cjs/isDocumentNode.js +1 -1
- package/cjs/mapSchema.js +1 -1
- package/cjs/parse-graphql-json.js +1 -1
- package/cjs/parse-graphql-sdl.js +1 -1
- package/cjs/print-schema-with-directives.js +1 -1
- package/cjs/prune.js +1 -1
- package/cjs/renameType.js +1 -1
- package/cjs/rewire.js +1 -1
- package/cjs/selectionSets.js +1 -1
- package/cjs/stub.js +2 -1
- package/cjs/transformInputValue.js +1 -1
- package/cjs/updateArgument.js +1 -1
- package/cjs/validate-documents.js +1 -1
- package/cjs/visitResult.js +1 -1
- package/esm/addTypes.js +1 -1
- package/esm/astFromType.js +1 -1
- package/esm/astFromValueUntyped.js +1 -1
- package/esm/build-operation-for-field.js +1 -1
- package/esm/collectFields.js +1 -1
- package/esm/comments.js +1 -1
- package/esm/errors.js +1 -1
- package/esm/fields.js +1 -1
- package/esm/filterSchema.js +1 -1
- package/esm/fixSchemaAst.js +1 -1
- package/esm/forEachDefaultValue.js +1 -1
- package/esm/forEachField.js +1 -1
- package/esm/get-fields-with-directives.js +1 -1
- package/esm/get-implementing-types.js +1 -1
- package/esm/getArgumentValues.js +1 -1
- package/esm/getObjectTypeFromTypeMap.js +1 -1
- package/esm/getOperationASTFromRequest.js +1 -1
- package/esm/getResolversFromSchema.js +1 -1
- package/esm/heal.js +2 -1
- package/esm/helpers.js +1 -1
- package/esm/implementsAbstractType.js +1 -1
- package/esm/inspect.js +1 -1
- package/esm/isDocumentNode.js +1 -1
- package/esm/mapSchema.js +1 -1
- package/esm/parse-graphql-json.js +1 -1
- package/esm/parse-graphql-sdl.js +1 -1
- package/esm/print-schema-with-directives.js +1 -1
- package/esm/prune.js +1 -1
- package/esm/renameType.js +1 -1
- package/esm/rewire.js +1 -1
- package/esm/selectionSets.js +1 -1
- package/esm/stub.js +2 -1
- package/esm/transformInputValue.js +1 -1
- package/esm/updateArgument.js +1 -1
- package/esm/validate-documents.js +1 -1
- package/esm/visitResult.js +1 -1
- package/package.json +2 -4
- package/typings/Interfaces.d.cts +1 -1
- package/typings/Interfaces.d.ts +1 -1
- package/typings/addTypes.d.cts +1 -1
- package/typings/addTypes.d.ts +1 -1
- package/typings/astFromType.d.cts +1 -1
- package/typings/astFromType.d.ts +1 -1
- package/typings/astFromValueUntyped.d.cts +1 -1
- package/typings/astFromValueUntyped.d.ts +1 -1
- package/typings/build-operation-for-field.d.cts +1 -1
- package/typings/build-operation-for-field.d.ts +1 -1
- package/typings/collectFields.d.cts +1 -1
- package/typings/collectFields.d.ts +1 -1
- package/typings/comments.d.cts +1 -1
- package/typings/comments.d.ts +1 -1
- package/typings/errors.d.cts +1 -1
- package/typings/errors.d.ts +1 -1
- package/typings/fields.d.cts +1 -1
- package/typings/fields.d.ts +1 -1
- package/typings/filterSchema.d.cts +1 -1
- package/typings/filterSchema.d.ts +1 -1
- package/typings/fixSchemaAst.d.cts +1 -1
- package/typings/fixSchemaAst.d.ts +1 -1
- package/typings/forEachDefaultValue.d.cts +1 -1
- package/typings/forEachDefaultValue.d.ts +1 -1
- package/typings/forEachField.d.cts +1 -1
- package/typings/forEachField.d.ts +1 -1
- package/typings/get-directives.d.cts +1 -1
- package/typings/get-directives.d.ts +1 -1
- package/typings/get-fields-with-directives.d.cts +1 -1
- package/typings/get-fields-with-directives.d.ts +1 -1
- package/typings/get-implementing-types.d.cts +1 -1
- package/typings/get-implementing-types.d.ts +1 -1
- package/typings/getArgumentValues.d.cts +1 -1
- package/typings/getArgumentValues.d.ts +1 -1
- package/typings/getObjectTypeFromTypeMap.d.cts +1 -1
- package/typings/getObjectTypeFromTypeMap.d.ts +1 -1
- package/typings/getOperationASTFromRequest.d.cts +1 -1
- package/typings/getOperationASTFromRequest.d.ts +1 -1
- package/typings/getResolversFromSchema.d.cts +1 -1
- package/typings/getResolversFromSchema.d.ts +1 -1
- package/typings/getResponseKeyFromInfo.d.cts +1 -1
- package/typings/getResponseKeyFromInfo.d.ts +1 -1
- package/typings/heal.d.cts +1 -1
- package/typings/heal.d.ts +1 -1
- package/typings/helpers.d.cts +2 -2
- package/typings/helpers.d.ts +2 -2
- package/typings/implementsAbstractType.d.cts +1 -1
- package/typings/implementsAbstractType.d.ts +1 -1
- package/typings/isDocumentNode.d.cts +1 -1
- package/typings/isDocumentNode.d.ts +1 -1
- package/typings/loaders.d.cts +1 -1
- package/typings/loaders.d.ts +1 -1
- package/typings/mapSchema.d.cts +1 -1
- package/typings/mapSchema.d.ts +1 -1
- package/typings/parse-graphql-json.d.cts +1 -1
- package/typings/parse-graphql-json.d.ts +1 -1
- package/typings/parse-graphql-sdl.d.cts +1 -1
- package/typings/parse-graphql-sdl.d.ts +1 -1
- package/typings/print-schema-with-directives.d.cts +1 -1
- package/typings/print-schema-with-directives.d.ts +1 -1
- package/typings/prune.d.cts +1 -1
- package/typings/prune.d.ts +1 -1
- package/typings/renameType.d.cts +1 -1
- package/typings/renameType.d.ts +1 -1
- package/typings/rewire.d.cts +1 -1
- package/typings/rewire.d.ts +1 -1
- package/typings/rootTypes.d.cts +1 -1
- package/typings/rootTypes.d.ts +1 -1
- package/typings/selectionSets.d.cts +1 -1
- package/typings/selectionSets.d.ts +1 -1
- package/typings/stub.d.cts +1 -1
- package/typings/stub.d.ts +1 -1
- package/typings/transformInputValue.d.cts +1 -1
- package/typings/transformInputValue.d.ts +1 -1
- package/typings/types.d.cts +1 -1
- package/typings/types.d.ts +1 -1
- package/typings/updateArgument.d.cts +1 -1
- package/typings/updateArgument.d.ts +1 -1
- package/typings/validate-documents.d.cts +2 -2
- package/typings/validate-documents.d.ts +2 -2
- package/typings/visitResult.d.cts +1 -1
- 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);
|
package/esm/selectionSets.js
CHANGED
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;
|
package/esm/updateArgument.js
CHANGED
|
@@ -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();
|
package/esm/visitResult.js
CHANGED
|
@@ -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-
|
|
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": {
|
package/typings/Interfaces.d.cts
CHANGED
|
@@ -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>;
|
package/typings/Interfaces.d.ts
CHANGED
|
@@ -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>;
|
package/typings/addTypes.d.cts
CHANGED
|
@@ -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;
|
package/typings/addTypes.d.ts
CHANGED
|
@@ -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;
|
package/typings/astFromType.d.ts
CHANGED
|
@@ -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 { 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>>;
|
package/typings/comments.d.cts
CHANGED
|
@@ -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
|
};
|
package/typings/comments.d.ts
CHANGED
|
@@ -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
|
};
|
package/typings/errors.d.cts
CHANGED
package/typings/errors.d.ts
CHANGED
package/typings/fields.d.cts
CHANGED
|
@@ -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>;
|
package/typings/fields.d.ts
CHANGED
|
@@ -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,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,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;
|
package/typings/heal.d.cts
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;
|
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;
|
package/typings/helpers.d.cts
CHANGED
|
@@ -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 |
|
|
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>;
|
package/typings/helpers.d.ts
CHANGED
|
@@ -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 |
|
|
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;
|
package/typings/loaders.d.cts
CHANGED
|
@@ -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;
|
package/typings/loaders.d.ts
CHANGED
|
@@ -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;
|
package/typings/mapSchema.d.cts
CHANGED
|
@@ -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;
|
package/typings/mapSchema.d.ts
CHANGED
|
@@ -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;
|
package/typings/prune.d.cts
CHANGED
package/typings/prune.d.ts
CHANGED
package/typings/renameType.d.cts
CHANGED
|
@@ -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;
|
package/typings/renameType.d.ts
CHANGED
|
@@ -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;
|
package/typings/rewire.d.cts
CHANGED
|
@@ -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>;
|
package/typings/rewire.d.ts
CHANGED
|
@@ -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>;
|
package/typings/rootTypes.d.cts
CHANGED
|
@@ -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>;
|
package/typings/rootTypes.d.ts
CHANGED
|
@@ -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;
|