kinds.d.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * The set of allowed kind values for AST nodes.
  3. */
  4. export const Kind: _Kind;
  5. // @internal
  6. type _Kind = {
  7. // Name
  8. NAME: 'Name';
  9. // Document
  10. DOCUMENT: 'Document';
  11. OPERATION_DEFINITION: 'OperationDefinition';
  12. VARIABLE_DEFINITION: 'VariableDefinition';
  13. SELECTION_SET: 'SelectionSet';
  14. FIELD: 'Field';
  15. ARGUMENT: 'Argument';
  16. // Fragments
  17. FRAGMENT_SPREAD: 'FragmentSpread';
  18. INLINE_FRAGMENT: 'InlineFragment';
  19. FRAGMENT_DEFINITION: 'FragmentDefinition';
  20. // Values
  21. VARIABLE: 'Variable';
  22. INT: 'IntValue';
  23. FLOAT: 'FloatValue';
  24. STRING: 'StringValue';
  25. BOOLEAN: 'BooleanValue';
  26. NULL: 'NullValue';
  27. ENUM: 'EnumValue';
  28. LIST: 'ListValue';
  29. OBJECT: 'ObjectValue';
  30. OBJECT_FIELD: 'ObjectField';
  31. // Directives
  32. DIRECTIVE: 'Directive';
  33. // Types
  34. NAMED_TYPE: 'NamedType';
  35. LIST_TYPE: 'ListType';
  36. NON_NULL_TYPE: 'NonNullType';
  37. // Type System Definitions
  38. SCHEMA_DEFINITION: 'SchemaDefinition';
  39. OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition';
  40. // Type Definitions
  41. SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition';
  42. OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition';
  43. FIELD_DEFINITION: 'FieldDefinition';
  44. INPUT_VALUE_DEFINITION: 'InputValueDefinition';
  45. INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition';
  46. UNION_TYPE_DEFINITION: 'UnionTypeDefinition';
  47. ENUM_TYPE_DEFINITION: 'EnumTypeDefinition';
  48. ENUM_VALUE_DEFINITION: 'EnumValueDefinition';
  49. INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition';
  50. // Directive Definitions
  51. DIRECTIVE_DEFINITION: 'DirectiveDefinition';
  52. // Type System Extensions
  53. SCHEMA_EXTENSION: 'SchemaExtension';
  54. // Type Extensions
  55. SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension';
  56. OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension';
  57. INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension';
  58. UNION_TYPE_EXTENSION: 'UnionTypeExtension';
  59. ENUM_TYPE_EXTENSION: 'EnumTypeExtension';
  60. INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension';
  61. };
  62. /**
  63. * The enum type representing the possible kind values of AST nodes.
  64. */
  65. export type KindEnum = _Kind[keyof _Kind];