index.d.ts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. export { validate } from './validate';
  2. export { ValidationContext, ValidationRule } from './ValidationContext';
  3. export { specifiedRules } from './specifiedRules';
  4. // Spec Section: "Executable Definitions"
  5. export {
  6. ExecutableDefinitions as ExecutableDefinitionsRule,
  7. } from './rules/ExecutableDefinitions';
  8. // Spec Section: "Field Selections on Objects, Interfaces, and Unions Types"
  9. export {
  10. FieldsOnCorrectType as FieldsOnCorrectTypeRule,
  11. } from './rules/FieldsOnCorrectType';
  12. // Spec Section: "Fragments on Composite Types"
  13. export {
  14. FragmentsOnCompositeTypes as FragmentsOnCompositeTypesRule,
  15. } from './rules/FragmentsOnCompositeTypes';
  16. // Spec Section: "Argument Names"
  17. export {
  18. KnownArgumentNames as KnownArgumentNamesRule,
  19. } from './rules/KnownArgumentNames';
  20. // Spec Section: "Directives Are Defined"
  21. export {
  22. KnownDirectives as KnownDirectivesRule,
  23. } from './rules/KnownDirectives';
  24. // Spec Section: "Fragment spread target defined"
  25. export {
  26. KnownFragmentNames as KnownFragmentNamesRule,
  27. } from './rules/KnownFragmentNames';
  28. // Spec Section: "Fragment Spread Type Existence"
  29. export { KnownTypeNames as KnownTypeNamesRule } from './rules/KnownTypeNames';
  30. // Spec Section: "Lone Anonymous Operation"
  31. export {
  32. LoneAnonymousOperation as LoneAnonymousOperationRule,
  33. } from './rules/LoneAnonymousOperation';
  34. // Spec Section: "Fragments must not form cycles"
  35. export {
  36. NoFragmentCycles as NoFragmentCyclesRule,
  37. } from './rules/NoFragmentCycles';
  38. // Spec Section: "All Variable Used Defined"
  39. export {
  40. NoUndefinedVariables as NoUndefinedVariablesRule,
  41. } from './rules/NoUndefinedVariables';
  42. // Spec Section: "Fragments must be used"
  43. export {
  44. NoUnusedFragments as NoUnusedFragmentsRule,
  45. } from './rules/NoUnusedFragments';
  46. // Spec Section: "All Variables Used"
  47. export {
  48. NoUnusedVariables as NoUnusedVariablesRule,
  49. } from './rules/NoUnusedVariables';
  50. // Spec Section: "Field Selection Merging"
  51. export {
  52. OverlappingFieldsCanBeMerged as OverlappingFieldsCanBeMergedRule,
  53. } from './rules/OverlappingFieldsCanBeMerged';
  54. // Spec Section: "Fragment spread is possible"
  55. export {
  56. PossibleFragmentSpreads as PossibleFragmentSpreadsRule,
  57. } from './rules/PossibleFragmentSpreads';
  58. // Spec Section: "Argument Optionality"
  59. export {
  60. ProvidedRequiredArguments as ProvidedRequiredArgumentsRule,
  61. } from './rules/ProvidedRequiredArguments';
  62. // Spec Section: "Leaf Field Selections"
  63. export { ScalarLeafs as ScalarLeafsRule } from './rules/ScalarLeafs';
  64. // Spec Section: "Subscriptions with Single Root Field"
  65. export {
  66. SingleFieldSubscriptions as SingleFieldSubscriptionsRule,
  67. } from './rules/SingleFieldSubscriptions';
  68. // Spec Section: "Argument Uniqueness"
  69. export {
  70. UniqueArgumentNames as UniqueArgumentNamesRule,
  71. } from './rules/UniqueArgumentNames';
  72. // Spec Section: "Directives Are Unique Per Location"
  73. export {
  74. UniqueDirectivesPerLocation as UniqueDirectivesPerLocationRule,
  75. } from './rules/UniqueDirectivesPerLocation';
  76. // Spec Section: "Fragment Name Uniqueness"
  77. export {
  78. UniqueFragmentNames as UniqueFragmentNamesRule,
  79. } from './rules/UniqueFragmentNames';
  80. // Spec Section: "Input Object Field Uniqueness"
  81. export {
  82. UniqueInputFieldNames as UniqueInputFieldNamesRule,
  83. } from './rules/UniqueInputFieldNames';
  84. // Spec Section: "Operation Name Uniqueness"
  85. export {
  86. UniqueOperationNames as UniqueOperationNamesRule,
  87. } from './rules/UniqueOperationNames';
  88. // Spec Section: "Variable Uniqueness"
  89. export {
  90. UniqueVariableNames as UniqueVariableNamesRule,
  91. } from './rules/UniqueVariableNames';
  92. // Spec Section: "Values Type Correctness"
  93. export {
  94. ValuesOfCorrectType as ValuesOfCorrectTypeRule,
  95. } from './rules/ValuesOfCorrectType';
  96. // Spec Section: "Variables are Input Types"
  97. export {
  98. VariablesAreInputTypes as VariablesAreInputTypesRule,
  99. } from './rules/VariablesAreInputTypes';
  100. // Spec Section: "All Variable Usages Are Allowed"
  101. export {
  102. VariablesInAllowedPosition as VariablesInAllowedPositionRule,
  103. } from './rules/VariablesInAllowedPosition';
  104. // SDL-specific validation rules
  105. export {
  106. LoneSchemaDefinition as LoneSchemaDefinitionRule,
  107. } from './rules/LoneSchemaDefinition';
  108. export {
  109. UniqueOperationTypes as UniqueOperationTypesRule,
  110. } from './rules/UniqueOperationTypes';
  111. export {
  112. UniqueTypeNames as UniqueTypeNamesRule,
  113. } from './rules/UniqueTypeNames';
  114. export {
  115. UniqueEnumValueNames as UniqueEnumValueNamesRule,
  116. } from './rules/UniqueEnumValueNames';
  117. export {
  118. UniqueFieldDefinitionNames as UniqueFieldDefinitionNamesRule,
  119. } from './rules/UniqueFieldDefinitionNames';
  120. export {
  121. UniqueDirectiveNames as UniqueDirectiveNamesRule,
  122. } from './rules/UniqueDirectiveNames';
  123. export {
  124. PossibleTypeExtensions as PossibleTypeExtensionsRule,
  125. } from './rules/PossibleTypeExtensions';