graphql-tool-utilities
Advanced tools
Comparing version 0.4.0 to 0.5.0
58
ast.d.ts
@@ -1,2 +0,37 @@ | ||
import { GraphQLSchema, DocumentNode, GraphQLType } from 'graphql'; | ||
import { GraphQLSchema, DocumentNode, GraphQLType, GraphQLOutputType, GraphQLInputType, GraphQLInterfaceType, GraphQLObjectType } from 'graphql'; | ||
export interface Variable { | ||
name: string; | ||
type: GraphQLInputType; | ||
} | ||
export interface Field { | ||
responseName: string; | ||
fieldName: string; | ||
type: GraphQLOutputType; | ||
fields?: Field[]; | ||
fragmentSpreads?: string[]; | ||
inlineFragments?: InlineFragment[]; | ||
} | ||
export interface InlineFragment { | ||
typeCondition: GraphQLObjectType | GraphQLInterfaceType; | ||
possibleTypes: (GraphQLObjectType | GraphQLInterfaceType)[]; | ||
fields: Field[]; | ||
fragmentSpreads: string[]; | ||
inlineFragments?: InlineFragment[]; | ||
} | ||
export interface Fragment extends InlineFragment { | ||
filePath: string; | ||
fragmentName: string; | ||
source: string; | ||
fragmentsReferenced: string[]; | ||
fields: Field[]; | ||
} | ||
export interface Operation { | ||
filePath: string; | ||
operationName: string; | ||
operationType: 'query' | 'mutation' | 'subscription'; | ||
variables: Variable[]; | ||
fields: Field[]; | ||
fragmentsReferenced: string[]; | ||
fragmentSpreads?: string[]; | ||
} | ||
export interface AST { | ||
@@ -7,22 +42,7 @@ operations: { | ||
fragments: { | ||
[key: string]: FragmentSpread; | ||
[key: string]: Fragment; | ||
}; | ||
typesUsed: GraphQLType[]; | ||
schema: GraphQLSchema; | ||
} | ||
export interface Operation { | ||
fields: Field[]; | ||
operationType: 'query' | 'mutation'; | ||
filePath?: string; | ||
} | ||
export interface FragmentSpread { | ||
fields: Field[]; | ||
typeCondition: GraphQLType; | ||
possibleTypes: GraphQLType[]; | ||
} | ||
export interface Field { | ||
responseName: string; | ||
fieldName: string; | ||
type: GraphQLType; | ||
fields?: Field[]; | ||
fragmentSpreads?: string[]; | ||
} | ||
export interface Compile { | ||
@@ -29,0 +49,0 @@ (schema: GraphQLSchema, document: DocumentNode): AST; |
{ | ||
"name": "graphql-tool-utilities", | ||
"description": "Common utilities for GraphQL developer tools", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/lemonmade/graphql-tools/tree/master/packages/graphql-tool-utilities", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4028
54
0