directiveLocation.d.ts 939 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * The set of allowed directive location values.
  3. */
  4. export const DirectiveLocation: _DirectiveLocation;
  5. // @internal
  6. type _DirectiveLocation = {
  7. // Request Definitions
  8. QUERY: 'QUERY';
  9. MUTATION: 'MUTATION';
  10. SUBSCRIPTION: 'SUBSCRIPTION';
  11. FIELD: 'FIELD';
  12. FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION';
  13. FRAGMENT_SPREAD: 'FRAGMENT_SPREAD';
  14. INLINE_FRAGMENT: 'INLINE_FRAGMENT';
  15. VARIABLE_DEFINITION: 'VARIABLE_DEFINITION';
  16. // Type System Definitions
  17. SCHEMA: 'SCHEMA';
  18. SCALAR: 'SCALAR';
  19. OBJECT: 'OBJECT';
  20. FIELD_DEFINITION: 'FIELD_DEFINITION';
  21. ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION';
  22. INTERFACE: 'INTERFACE';
  23. UNION: 'UNION';
  24. ENUM: 'ENUM';
  25. ENUM_VALUE: 'ENUM_VALUE';
  26. INPUT_OBJECT: 'INPUT_OBJECT';
  27. INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION';
  28. };
  29. /**
  30. * The enum type representing the directive location values.
  31. */
  32. export type DirectiveLocationEnum = _DirectiveLocation[keyof _DirectiveLocation];