kinds.js 2.0 KB

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