@graphql-tools/utils 8.9.1-alpha-b9e4a92b.0 → 8.9.1-alpha-98c3fea0.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/typings/stub.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLNamedType, TypeNode, GraphQLType, GraphQLOutputType, GraphQLInputType } from 'graphql';
|
|
1
|
+
import { GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLNamedType, TypeNode, GraphQLType, GraphQLOutputType, GraphQLInputType } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function createNamedStub(name: string, type: 'object'): GraphQLObjectType;
|
|
3
3
|
export declare function createNamedStub(name: string, type: 'interface'): GraphQLInterfaceType;
|
|
4
4
|
export declare function createNamedStub(name: string, type: 'input'): GraphQLInputObjectType;
|
package/typings/stub.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLNamedType, TypeNode, GraphQLType, GraphQLOutputType, GraphQLInputType } from 'graphql';
|
|
1
|
+
import { GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLNamedType, TypeNode, GraphQLType, GraphQLOutputType, GraphQLInputType } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function createNamedStub(name: string, type: 'object'): GraphQLObjectType;
|
|
3
3
|
export declare function createNamedStub(name: string, type: 'interface'): GraphQLInterfaceType;
|
|
4
4
|
export declare function createNamedStub(name: string, type: 'input'): GraphQLInputObjectType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLInputType } from 'graphql';
|
|
1
|
+
import { GraphQLInputType } from '@graphql-tools/graphql';
|
|
2
2
|
import { InputLeafValueTransformer, InputObjectValueTransformer, Maybe } from './types.cjs';
|
|
3
3
|
export declare function transformInputValue(type: GraphQLInputType, value: any, inputLeafValueTransformer?: Maybe<InputLeafValueTransformer>, inputObjectValueTransformer?: Maybe<InputObjectValueTransformer>): any;
|
|
4
4
|
export declare function serializeInputValue(type: GraphQLInputType, value: any): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLInputType } from 'graphql';
|
|
1
|
+
import { GraphQLInputType } from '@graphql-tools/graphql';
|
|
2
2
|
import { InputLeafValueTransformer, InputObjectValueTransformer, Maybe } from './types.js';
|
|
3
3
|
export declare function transformInputValue(type: GraphQLInputType, value: any, inputLeafValueTransformer?: Maybe<InputLeafValueTransformer>, inputObjectValueTransformer?: Maybe<InputObjectValueTransformer>): any;
|
|
4
4
|
export declare function serializeInputValue(type: GraphQLInputType, value: any): any;
|
package/typings/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLEnumType, GraphQLInputObjectType, GraphQLNamedType, GraphQLScalarType, visit } from 'graphql';
|
|
1
|
+
import { GraphQLEnumType, GraphQLInputObjectType, GraphQLNamedType, GraphQLScalarType, visit } from '@graphql-tools/graphql';
|
|
2
2
|
export interface SchemaPrintOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Descriptions are defined as preceding string literals, however an older
|
package/typings/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLEnumType, GraphQLInputObjectType, GraphQLNamedType, GraphQLScalarType, visit } from 'graphql';
|
|
1
|
+
import { GraphQLEnumType, GraphQLInputObjectType, GraphQLNamedType, GraphQLScalarType, visit } from '@graphql-tools/graphql';
|
|
2
2
|
export interface SchemaPrintOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Descriptions are defined as preceding string literals, however an older
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphQLInputType, ArgumentNode, VariableDefinitionNode } from 'graphql';
|
|
1
|
+
import { GraphQLInputType, ArgumentNode, VariableDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function updateArgument(argumentNodes: Record<string, ArgumentNode>, variableDefinitionsMap: Record<string, VariableDefinitionNode>, variableValues: Record<string, any>, argName: string, varName: string, type: GraphQLInputType, value: any): void;
|
|
3
3
|
export declare function createVariableNameGenerator(variableDefinitionMap: Record<string, VariableDefinitionNode>): (argName: string) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphQLInputType, ArgumentNode, VariableDefinitionNode } from 'graphql';
|
|
1
|
+
import { GraphQLInputType, ArgumentNode, VariableDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function updateArgument(argumentNodes: Record<string, ArgumentNode>, variableDefinitionsMap: Record<string, VariableDefinitionNode>, variableValues: Record<string, any>, argName: string, varName: string, type: GraphQLInputType, value: any): void;
|
|
3
3
|
export declare function createVariableNameGenerator(variableDefinitionMap: Record<string, VariableDefinitionNode>): (argName: string) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema, GraphQLError, ValidationContext, ASTVisitor } from 'graphql';
|
|
1
|
+
import { GraphQLSchema, GraphQLError, ValidationContext, ASTVisitor } from '@graphql-tools/graphql';
|
|
2
2
|
import { Source } from './loaders.cjs';
|
|
3
3
|
export declare type ValidationRule = (context: ValidationContext) => ASTVisitor;
|
|
4
4
|
export interface LoadDocumentError {
|
|
@@ -7,4 +7,4 @@ export interface LoadDocumentError {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function validateGraphQlDocuments(schema: GraphQLSchema, documentFiles: Source[], effectiveRules?: ValidationRule[]): Promise<ReadonlyArray<LoadDocumentError>>;
|
|
9
9
|
export declare function checkValidationErrors(loadDocumentErrors: ReadonlyArray<LoadDocumentError>): void | never;
|
|
10
|
-
export declare function createDefaultRules(): import("graphql").ValidationRule[];
|
|
10
|
+
export declare function createDefaultRules(): import("@graphql-tools/graphql").ValidationRule[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema, GraphQLError, ValidationContext, ASTVisitor } from 'graphql';
|
|
1
|
+
import { GraphQLSchema, GraphQLError, ValidationContext, ASTVisitor } from '@graphql-tools/graphql';
|
|
2
2
|
import { Source } from './loaders.js';
|
|
3
3
|
export declare type ValidationRule = (context: ValidationContext) => ASTVisitor;
|
|
4
4
|
export interface LoadDocumentError {
|
|
@@ -7,4 +7,4 @@ export interface LoadDocumentError {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function validateGraphQlDocuments(schema: GraphQLSchema, documentFiles: Source[], effectiveRules?: ValidationRule[]): Promise<ReadonlyArray<LoadDocumentError>>;
|
|
9
9
|
export declare function checkValidationErrors(loadDocumentErrors: ReadonlyArray<LoadDocumentError>): void | never;
|
|
10
|
-
export declare function createDefaultRules(): import("graphql").ValidationRule[];
|
|
10
|
+
export declare function createDefaultRules(): import("@graphql-tools/graphql").ValidationRule[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema, GraphQLError } from 'graphql';
|
|
1
|
+
import { GraphQLSchema, GraphQLError } from '@graphql-tools/graphql';
|
|
2
2
|
import { ExecutionRequest, ExecutionResult } from './Interfaces.cjs';
|
|
3
3
|
export declare type ValueVisitor = (value: any) => any;
|
|
4
4
|
export declare type ObjectValueVisitor = {
|
package/typings/visitResult.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema, GraphQLError } from 'graphql';
|
|
1
|
+
import { GraphQLSchema, GraphQLError } from '@graphql-tools/graphql';
|
|
2
2
|
import { ExecutionRequest, ExecutionResult } from './Interfaces.js';
|
|
3
3
|
export declare type ValueVisitor = (value: any) => any;
|
|
4
4
|
export declare type ObjectValueVisitor = {
|