netlify-onegraph-internal
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -27,3 +27,6 @@ import * as GraphQLPackage from "graphql"; | ||
description?: Maybe<string>; | ||
namedFragments: string[]; | ||
namedFragments: { | ||
name: string; | ||
typeCondition: string; | ||
}[]; | ||
inlineFragments: OutInlineFragment[]; | ||
@@ -42,3 +45,25 @@ selections: OutSelection; | ||
}; | ||
declare type OutType = OutEnum | OutObject | OutArray | OutScalar; | ||
declare type OutUnion = { | ||
kind: "union"; | ||
typenameFields: string[]; | ||
description?: Maybe<string>; | ||
objects: (OutObject & { | ||
__typename: string; | ||
})[]; | ||
namedFragments: { | ||
name: string; | ||
typeCondition: string; | ||
}[]; | ||
}; | ||
declare type OutInterface = { | ||
kind: "interface"; | ||
description?: Maybe<string>; | ||
namedFragments: { | ||
name: string; | ||
typeCondition: string; | ||
}[]; | ||
inlineFragments: OutInlineFragment[]; | ||
selections: OutSelection; | ||
}; | ||
declare type OutType = OutEnum | OutObject | OutArray | OutScalar | OutUnion | OutInterface; | ||
export declare function gatherAllReferencedTypes(GraphQL: typeof GraphQLPackage, schema: GraphQLSchema, query: OperationDefinitionNode): Array<string>; | ||
@@ -55,3 +80,3 @@ export declare function gatherVariableDefinitions(GraphQL: typeof GraphQLPackage, definition: OperationDefinitionNode): Array<[string, string]>; | ||
export declare function typeScriptSignatureForOperation(GraphQL: typeof GraphQLPackage, schema: GraphQLSchema, operationDefinition: OperationDefinitionNode, fragmentDefinitions: Record<string, FragmentDefinitionNode>): string; | ||
export declare function typeScriptDefinitionObjectForFragment(GraphQL: typeof GraphQLPackage, schema: GraphQLSchema, fragmentDefinition: FragmentDefinitionNode, fragmentDefinitions: Record<string, FragmentDefinitionNode>): OutObject | OutScalar; | ||
export declare function typeScriptDefinitionObjectForFragment(GraphQL: typeof GraphQLPackage, schema: GraphQLSchema, fragmentDefinition: FragmentDefinitionNode, fragmentDefinitions: Record<string, FragmentDefinitionNode>): OutObject | OutScalar | OutUnion; | ||
export declare function typeScriptSignatureForFragment(GraphQL: typeof GraphQLPackage, schema: GraphQLSchema, fragmentDefinition: FragmentDefinitionNode, fragmentDefinitions: Record<string, FragmentDefinitionNode>): string; | ||
@@ -58,0 +83,0 @@ export declare function typeScriptTypeNameForOperation(name: string): string; |
{ | ||
"name": "netlify-onegraph-internal", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "Internal tools for use by Netlify", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
589413
7584