mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
359 lines
7.4 KiB
TypeScript
359 lines
7.4 KiB
TypeScript
|
// Loaded from https://deno.land/x/graphql_deno@v15.0.0/mod.ts
|
||
|
|
||
|
|
||
|
export type {
|
||
|
GraphQLType,
|
||
|
GraphQLInputType,
|
||
|
GraphQLOutputType,
|
||
|
GraphQLLeafType,
|
||
|
GraphQLCompositeType,
|
||
|
GraphQLAbstractType,
|
||
|
GraphQLWrappingType,
|
||
|
GraphQLNullableType,
|
||
|
GraphQLNamedType,
|
||
|
Thunk,
|
||
|
GraphQLSchemaConfig,
|
||
|
GraphQLDirectiveConfig,
|
||
|
GraphQLArgument,
|
||
|
GraphQLArgumentConfig,
|
||
|
GraphQLEnumTypeConfig,
|
||
|
GraphQLEnumValue,
|
||
|
GraphQLEnumValueConfig,
|
||
|
GraphQLEnumValueConfigMap,
|
||
|
GraphQLField,
|
||
|
GraphQLFieldConfig,
|
||
|
GraphQLFieldConfigArgumentMap,
|
||
|
GraphQLFieldConfigMap,
|
||
|
GraphQLFieldMap,
|
||
|
GraphQLFieldResolver,
|
||
|
GraphQLInputField,
|
||
|
GraphQLInputFieldConfig,
|
||
|
GraphQLInputFieldConfigMap,
|
||
|
GraphQLInputFieldMap,
|
||
|
GraphQLInputObjectTypeConfig,
|
||
|
GraphQLInterfaceTypeConfig,
|
||
|
GraphQLIsTypeOfFn,
|
||
|
GraphQLObjectTypeConfig,
|
||
|
GraphQLResolveInfo,
|
||
|
ResponsePath,
|
||
|
GraphQLScalarTypeConfig,
|
||
|
GraphQLTypeResolver,
|
||
|
GraphQLUnionTypeConfig,
|
||
|
GraphQLScalarSerializer,
|
||
|
GraphQLScalarValueParser,
|
||
|
GraphQLScalarLiteralParser,
|
||
|
ParseOptions,
|
||
|
SourceLocation,
|
||
|
Location,
|
||
|
Token,
|
||
|
TokenKindEnum,
|
||
|
KindEnum,
|
||
|
DirectiveLocationEnum,
|
||
|
// Visitor utilities
|
||
|
ASTVisitor,
|
||
|
Visitor,
|
||
|
VisitFn,
|
||
|
VisitorKeyMap,
|
||
|
// AST nodes
|
||
|
ASTNode,
|
||
|
ASTKindToNode,
|
||
|
// Each kind of AST node
|
||
|
NameNode,
|
||
|
DocumentNode,
|
||
|
DefinitionNode,
|
||
|
ExecutableDefinitionNode,
|
||
|
OperationDefinitionNode,
|
||
|
OperationTypeNode,
|
||
|
VariableDefinitionNode,
|
||
|
VariableNode,
|
||
|
SelectionSetNode,
|
||
|
SelectionNode,
|
||
|
FieldNode,
|
||
|
ArgumentNode,
|
||
|
FragmentSpreadNode,
|
||
|
InlineFragmentNode,
|
||
|
FragmentDefinitionNode,
|
||
|
ValueNode,
|
||
|
IntValueNode,
|
||
|
FloatValueNode,
|
||
|
StringValueNode,
|
||
|
BooleanValueNode,
|
||
|
NullValueNode,
|
||
|
EnumValueNode,
|
||
|
ListValueNode,
|
||
|
ObjectValueNode,
|
||
|
ObjectFieldNode,
|
||
|
DirectiveNode,
|
||
|
TypeNode,
|
||
|
NamedTypeNode,
|
||
|
ListTypeNode,
|
||
|
NonNullTypeNode,
|
||
|
TypeSystemDefinitionNode,
|
||
|
SchemaDefinitionNode,
|
||
|
OperationTypeDefinitionNode,
|
||
|
TypeDefinitionNode,
|
||
|
ScalarTypeDefinitionNode,
|
||
|
ObjectTypeDefinitionNode,
|
||
|
FieldDefinitionNode,
|
||
|
InputValueDefinitionNode,
|
||
|
InterfaceTypeDefinitionNode,
|
||
|
UnionTypeDefinitionNode,
|
||
|
EnumTypeDefinitionNode,
|
||
|
EnumValueDefinitionNode,
|
||
|
InputObjectTypeDefinitionNode,
|
||
|
DirectiveDefinitionNode,
|
||
|
TypeSystemExtensionNode,
|
||
|
SchemaExtensionNode,
|
||
|
TypeExtensionNode,
|
||
|
ScalarTypeExtensionNode,
|
||
|
ObjectTypeExtensionNode,
|
||
|
InterfaceTypeExtensionNode,
|
||
|
UnionTypeExtensionNode,
|
||
|
EnumTypeExtensionNode,
|
||
|
InputObjectTypeExtensionNode,
|
||
|
ExecutionArgs,
|
||
|
ExecutionResult,
|
||
|
SubscriptionArgs,
|
||
|
ValidationRule,
|
||
|
GraphQLFormattedError,
|
||
|
IntrospectionOptions,
|
||
|
IntrospectionQuery,
|
||
|
IntrospectionSchema,
|
||
|
IntrospectionType,
|
||
|
IntrospectionInputType,
|
||
|
IntrospectionOutputType,
|
||
|
IntrospectionScalarType,
|
||
|
IntrospectionObjectType,
|
||
|
IntrospectionInterfaceType,
|
||
|
IntrospectionUnionType,
|
||
|
IntrospectionEnumType,
|
||
|
IntrospectionInputObjectType,
|
||
|
IntrospectionTypeRef,
|
||
|
IntrospectionInputTypeRef,
|
||
|
IntrospectionOutputTypeRef,
|
||
|
IntrospectionNamedTypeRef,
|
||
|
IntrospectionListTypeRef,
|
||
|
IntrospectionNonNullTypeRef,
|
||
|
IntrospectionField,
|
||
|
IntrospectionInputValue,
|
||
|
IntrospectionEnumValue,
|
||
|
IntrospectionDirective,
|
||
|
BuildSchemaOptions,
|
||
|
BreakingChange,
|
||
|
DangerousChange,
|
||
|
} from './lib/index.d.ts';
|
||
|
|
||
|
// @deno-types="./lib/index.d.ts"
|
||
|
export {
|
||
|
version,
|
||
|
versionInfo,
|
||
|
graphql,
|
||
|
graphqlSync,
|
||
|
// Definitions
|
||
|
GraphQLSchema,
|
||
|
GraphQLDirective,
|
||
|
GraphQLScalarType,
|
||
|
GraphQLObjectType,
|
||
|
GraphQLInterfaceType,
|
||
|
GraphQLUnionType,
|
||
|
GraphQLEnumType,
|
||
|
GraphQLInputObjectType,
|
||
|
GraphQLList,
|
||
|
GraphQLNonNull,
|
||
|
// Standard GraphQL Scalars
|
||
|
specifiedScalarTypes,
|
||
|
GraphQLInt,
|
||
|
GraphQLFloat,
|
||
|
GraphQLString,
|
||
|
GraphQLBoolean,
|
||
|
GraphQLID,
|
||
|
// Built-in Directives defined by the Spec
|
||
|
specifiedDirectives,
|
||
|
GraphQLIncludeDirective,
|
||
|
GraphQLSkipDirective,
|
||
|
GraphQLDeprecatedDirective,
|
||
|
// "Enum" of Type Kinds
|
||
|
TypeKind,
|
||
|
// Constant Deprecation Reason
|
||
|
DEFAULT_DEPRECATION_REASON,
|
||
|
// GraphQL Types for introspection.
|
||
|
introspectionTypes,
|
||
|
__Schema,
|
||
|
__Directive,
|
||
|
__DirectiveLocation,
|
||
|
__Type,
|
||
|
__Field,
|
||
|
__InputValue,
|
||
|
__EnumValue,
|
||
|
__TypeKind,
|
||
|
// Meta-field definitions.
|
||
|
SchemaMetaFieldDef,
|
||
|
TypeMetaFieldDef,
|
||
|
TypeNameMetaFieldDef,
|
||
|
// Predicates
|
||
|
isSchema,
|
||
|
isDirective,
|
||
|
isType,
|
||
|
isScalarType,
|
||
|
isObjectType,
|
||
|
isInterfaceType,
|
||
|
isUnionType,
|
||
|
isEnumType,
|
||
|
isInputObjectType,
|
||
|
isListType,
|
||
|
isNonNullType,
|
||
|
isInputType,
|
||
|
isOutputType,
|
||
|
isLeafType,
|
||
|
isCompositeType,
|
||
|
isAbstractType,
|
||
|
isWrappingType,
|
||
|
isNullableType,
|
||
|
isNamedType,
|
||
|
isRequiredArgument,
|
||
|
isRequiredInputField,
|
||
|
isSpecifiedScalarType,
|
||
|
isIntrospectionType,
|
||
|
isSpecifiedDirective,
|
||
|
// Assertions
|
||
|
assertSchema,
|
||
|
assertDirective,
|
||
|
assertType,
|
||
|
assertScalarType,
|
||
|
assertObjectType,
|
||
|
assertInterfaceType,
|
||
|
assertUnionType,
|
||
|
assertEnumType,
|
||
|
assertInputObjectType,
|
||
|
assertListType,
|
||
|
assertNonNullType,
|
||
|
assertInputType,
|
||
|
assertOutputType,
|
||
|
assertLeafType,
|
||
|
assertCompositeType,
|
||
|
assertAbstractType,
|
||
|
assertWrappingType,
|
||
|
assertNullableType,
|
||
|
assertNamedType,
|
||
|
// Un-modifiers
|
||
|
getNullableType,
|
||
|
getNamedType,
|
||
|
// Validate GraphQL schema.
|
||
|
validateSchema,
|
||
|
assertValidSchema,
|
||
|
Source,
|
||
|
getLocation,
|
||
|
// Print source location
|
||
|
printLocation,
|
||
|
printSourceLocation,
|
||
|
// Lex
|
||
|
Lexer,
|
||
|
TokenKind,
|
||
|
// Parse
|
||
|
parse,
|
||
|
parseValue,
|
||
|
parseType,
|
||
|
// Print
|
||
|
print,
|
||
|
// Visit
|
||
|
visit,
|
||
|
visitInParallel,
|
||
|
getVisitFn,
|
||
|
BREAK,
|
||
|
Kind,
|
||
|
DirectiveLocation,
|
||
|
// Predicates
|
||
|
isDefinitionNode,
|
||
|
isExecutableDefinitionNode,
|
||
|
isSelectionNode,
|
||
|
isValueNode,
|
||
|
isTypeNode,
|
||
|
isTypeSystemDefinitionNode,
|
||
|
isTypeDefinitionNode,
|
||
|
isTypeSystemExtensionNode,
|
||
|
isTypeExtensionNode,
|
||
|
execute,
|
||
|
defaultFieldResolver,
|
||
|
defaultTypeResolver,
|
||
|
responsePathAsArray,
|
||
|
getDirectiveValues,
|
||
|
subscribe,
|
||
|
createSourceEventStream,
|
||
|
validate,
|
||
|
ValidationContext,
|
||
|
// All validation rules in the GraphQL Specification.
|
||
|
specifiedRules,
|
||
|
// Individual validation rules.
|
||
|
ExecutableDefinitionsRule,
|
||
|
FieldsOnCorrectTypeRule,
|
||
|
FragmentsOnCompositeTypesRule,
|
||
|
KnownArgumentNamesRule,
|
||
|
KnownDirectivesRule,
|
||
|
KnownFragmentNamesRule,
|
||
|
KnownTypeNamesRule,
|
||
|
LoneAnonymousOperationRule,
|
||
|
NoFragmentCyclesRule,
|
||
|
NoUndefinedVariablesRule,
|
||
|
NoUnusedFragmentsRule,
|
||
|
NoUnusedVariablesRule,
|
||
|
OverlappingFieldsCanBeMergedRule,
|
||
|
PossibleFragmentSpreadsRule,
|
||
|
ProvidedRequiredArgumentsRule,
|
||
|
ScalarLeafsRule,
|
||
|
SingleFieldSubscriptionsRule,
|
||
|
UniqueArgumentNamesRule,
|
||
|
UniqueDirectivesPerLocationRule,
|
||
|
UniqueFragmentNamesRule,
|
||
|
UniqueInputFieldNamesRule,
|
||
|
UniqueOperationNamesRule,
|
||
|
UniqueVariableNamesRule,
|
||
|
ValuesOfCorrectTypeRule,
|
||
|
VariablesAreInputTypesRule,
|
||
|
VariablesInAllowedPositionRule,
|
||
|
// SDL-specific validation rules
|
||
|
LoneSchemaDefinitionRule,
|
||
|
UniqueOperationTypesRule,
|
||
|
UniqueTypeNamesRule,
|
||
|
UniqueEnumValueNamesRule,
|
||
|
UniqueFieldDefinitionNamesRule,
|
||
|
UniqueDirectiveNamesRule,
|
||
|
PossibleTypeExtensionsRule,
|
||
|
GraphQLError,
|
||
|
syntaxError,
|
||
|
locatedError,
|
||
|
printError,
|
||
|
formatError,
|
||
|
getIntrospectionQuery,
|
||
|
getOperationAST,
|
||
|
getOperationRootType,
|
||
|
introspectionFromSchema,
|
||
|
buildClientSchema,
|
||
|
buildASTSchema,
|
||
|
buildSchema,
|
||
|
getDescription,
|
||
|
extendSchema,
|
||
|
lexicographicSortSchema,
|
||
|
printSchema,
|
||
|
printType,
|
||
|
printIntrospectionSchema,
|
||
|
typeFromAST,
|
||
|
valueFromAST,
|
||
|
valueFromASTUntyped,
|
||
|
astFromValue,
|
||
|
TypeInfo,
|
||
|
visitWithTypeInfo,
|
||
|
coerceInputValue,
|
||
|
concatAST,
|
||
|
separateOperations,
|
||
|
isEqualType,
|
||
|
isTypeSubTypeOf,
|
||
|
doTypesOverlap,
|
||
|
assertValidName,
|
||
|
isValidNameError,
|
||
|
BreakingChangeType,
|
||
|
DangerousChangeType,
|
||
|
findBreakingChanges,
|
||
|
findDangerousChanges,
|
||
|
findDeprecatedUsages
|
||
|
} from "./lib/index.js";
|