index.d.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. export { validate } from './validate';
  2. export { ValidationContext, ValidationRule } from './ValidationContext';
  3. export { specifiedRules } from './specifiedRules';
  4. // Spec Section: "Executable Definitions"
  5. export { ExecutableDefinitionsRule } from './rules/ExecutableDefinitionsRule';
  6. // Spec Section: "Field Selections on Objects, Interfaces, and Unions Types"
  7. export { FieldsOnCorrectTypeRule } from './rules/FieldsOnCorrectTypeRule';
  8. // Spec Section: "Fragments on Composite Types"
  9. export { FragmentsOnCompositeTypesRule } from './rules/FragmentsOnCompositeTypesRule';
  10. // Spec Section: "Argument Names"
  11. export { KnownArgumentNamesRule } from './rules/KnownArgumentNamesRule';
  12. // Spec Section: "Directives Are Defined"
  13. export { KnownDirectivesRule } from './rules/KnownDirectivesRule';
  14. // Spec Section: "Fragment spread target defined"
  15. export { KnownFragmentNamesRule } from './rules/KnownFragmentNamesRule';
  16. // Spec Section: "Fragment Spread Type Existence"
  17. export { KnownTypeNamesRule } from './rules/KnownTypeNamesRule';
  18. // Spec Section: "Lone Anonymous Operation"
  19. export { LoneAnonymousOperationRule } from './rules/LoneAnonymousOperationRule';
  20. // Spec Section: "Fragments must not form cycles"
  21. export { NoFragmentCyclesRule } from './rules/NoFragmentCyclesRule';
  22. // Spec Section: "All Variable Used Defined"
  23. export { NoUndefinedVariablesRule } from './rules/NoUndefinedVariablesRule';
  24. // Spec Section: "Fragments must be used"
  25. export { NoUnusedFragmentsRule } from './rules/NoUnusedFragmentsRule';
  26. // Spec Section: "All Variables Used"
  27. export { NoUnusedVariablesRule } from './rules/NoUnusedVariablesRule';
  28. // Spec Section: "Field Selection Merging"
  29. export { OverlappingFieldsCanBeMergedRule } from './rules/OverlappingFieldsCanBeMergedRule';
  30. // Spec Section: "Fragment spread is possible"
  31. export { PossibleFragmentSpreadsRule } from './rules/PossibleFragmentSpreadsRule';
  32. // Spec Section: "Argument Optionality"
  33. export { ProvidedRequiredArgumentsRule } from './rules/ProvidedRequiredArgumentsRule';
  34. // Spec Section: "Leaf Field Selections"
  35. export { ScalarLeafsRule } from './rules/ScalarLeafsRule';
  36. // Spec Section: "Subscriptions with Single Root Field"
  37. export { SingleFieldSubscriptionsRule } from './rules/SingleFieldSubscriptionsRule';
  38. // Spec Section: "Argument Uniqueness"
  39. export { UniqueArgumentNamesRule } from './rules/UniqueArgumentNamesRule';
  40. // Spec Section: "Directives Are Unique Per Location"
  41. export { UniqueDirectivesPerLocationRule } from './rules/UniqueDirectivesPerLocationRule';
  42. // Spec Section: "Fragment Name Uniqueness"
  43. export { UniqueFragmentNamesRule } from './rules/UniqueFragmentNamesRule';
  44. // Spec Section: "Input Object Field Uniqueness"
  45. export { UniqueInputFieldNamesRule } from './rules/UniqueInputFieldNamesRule';
  46. // Spec Section: "Operation Name Uniqueness"
  47. export { UniqueOperationNamesRule } from './rules/UniqueOperationNamesRule';
  48. // Spec Section: "Variable Uniqueness"
  49. export { UniqueVariableNamesRule } from './rules/UniqueVariableNamesRule';
  50. // Spec Section: "Values Type Correctness"
  51. export { ValuesOfCorrectTypeRule } from './rules/ValuesOfCorrectTypeRule';
  52. // Spec Section: "Variables are Input Types"
  53. export { VariablesAreInputTypesRule } from './rules/VariablesAreInputTypesRule';
  54. // Spec Section: "All Variable Usages Are Allowed"
  55. export { VariablesInAllowedPositionRule } from './rules/VariablesInAllowedPositionRule';
  56. // SDL-specific validation rules
  57. export { LoneSchemaDefinitionRule } from './rules/LoneSchemaDefinitionRule';
  58. export { UniqueOperationTypesRule } from './rules/UniqueOperationTypesRule';
  59. export { UniqueTypeNamesRule } from './rules/UniqueTypeNamesRule';
  60. export { UniqueEnumValueNamesRule } from './rules/UniqueEnumValueNamesRule';
  61. export { UniqueFieldDefinitionNamesRule } from './rules/UniqueFieldDefinitionNamesRule';
  62. export { UniqueDirectiveNamesRule } from './rules/UniqueDirectiveNamesRule';
  63. export { PossibleTypeExtensionsRule } from './rules/PossibleTypeExtensionsRule';
  64. // Optional rules not defined by the GraphQL Specification
  65. export { NoDeprecatedCustomRule } from './rules/custom/NoDeprecatedCustomRule';
  66. export { NoSchemaIntrospectionCustomRule } from './rules/custom/NoSchemaIntrospectionCustomRule';