index.js 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. Object.defineProperty(exports, "validate", {
  6. enumerable: true,
  7. get: function get() {
  8. return _validate.validate;
  9. }
  10. });
  11. Object.defineProperty(exports, "ValidationContext", {
  12. enumerable: true,
  13. get: function get() {
  14. return _ValidationContext.ValidationContext;
  15. }
  16. });
  17. Object.defineProperty(exports, "specifiedRules", {
  18. enumerable: true,
  19. get: function get() {
  20. return _specifiedRules.specifiedRules;
  21. }
  22. });
  23. Object.defineProperty(exports, "ExecutableDefinitionsRule", {
  24. enumerable: true,
  25. get: function get() {
  26. return _ExecutableDefinitions.ExecutableDefinitions;
  27. }
  28. });
  29. Object.defineProperty(exports, "FieldsOnCorrectTypeRule", {
  30. enumerable: true,
  31. get: function get() {
  32. return _FieldsOnCorrectType.FieldsOnCorrectType;
  33. }
  34. });
  35. Object.defineProperty(exports, "FragmentsOnCompositeTypesRule", {
  36. enumerable: true,
  37. get: function get() {
  38. return _FragmentsOnCompositeTypes.FragmentsOnCompositeTypes;
  39. }
  40. });
  41. Object.defineProperty(exports, "KnownArgumentNamesRule", {
  42. enumerable: true,
  43. get: function get() {
  44. return _KnownArgumentNames.KnownArgumentNames;
  45. }
  46. });
  47. Object.defineProperty(exports, "KnownDirectivesRule", {
  48. enumerable: true,
  49. get: function get() {
  50. return _KnownDirectives.KnownDirectives;
  51. }
  52. });
  53. Object.defineProperty(exports, "KnownFragmentNamesRule", {
  54. enumerable: true,
  55. get: function get() {
  56. return _KnownFragmentNames.KnownFragmentNames;
  57. }
  58. });
  59. Object.defineProperty(exports, "KnownTypeNamesRule", {
  60. enumerable: true,
  61. get: function get() {
  62. return _KnownTypeNames.KnownTypeNames;
  63. }
  64. });
  65. Object.defineProperty(exports, "LoneAnonymousOperationRule", {
  66. enumerable: true,
  67. get: function get() {
  68. return _LoneAnonymousOperation.LoneAnonymousOperation;
  69. }
  70. });
  71. Object.defineProperty(exports, "NoFragmentCyclesRule", {
  72. enumerable: true,
  73. get: function get() {
  74. return _NoFragmentCycles.NoFragmentCycles;
  75. }
  76. });
  77. Object.defineProperty(exports, "NoUndefinedVariablesRule", {
  78. enumerable: true,
  79. get: function get() {
  80. return _NoUndefinedVariables.NoUndefinedVariables;
  81. }
  82. });
  83. Object.defineProperty(exports, "NoUnusedFragmentsRule", {
  84. enumerable: true,
  85. get: function get() {
  86. return _NoUnusedFragments.NoUnusedFragments;
  87. }
  88. });
  89. Object.defineProperty(exports, "NoUnusedVariablesRule", {
  90. enumerable: true,
  91. get: function get() {
  92. return _NoUnusedVariables.NoUnusedVariables;
  93. }
  94. });
  95. Object.defineProperty(exports, "OverlappingFieldsCanBeMergedRule", {
  96. enumerable: true,
  97. get: function get() {
  98. return _OverlappingFieldsCanBeMerged.OverlappingFieldsCanBeMerged;
  99. }
  100. });
  101. Object.defineProperty(exports, "PossibleFragmentSpreadsRule", {
  102. enumerable: true,
  103. get: function get() {
  104. return _PossibleFragmentSpreads.PossibleFragmentSpreads;
  105. }
  106. });
  107. Object.defineProperty(exports, "ProvidedRequiredArgumentsRule", {
  108. enumerable: true,
  109. get: function get() {
  110. return _ProvidedRequiredArguments.ProvidedRequiredArguments;
  111. }
  112. });
  113. Object.defineProperty(exports, "ScalarLeafsRule", {
  114. enumerable: true,
  115. get: function get() {
  116. return _ScalarLeafs.ScalarLeafs;
  117. }
  118. });
  119. Object.defineProperty(exports, "SingleFieldSubscriptionsRule", {
  120. enumerable: true,
  121. get: function get() {
  122. return _SingleFieldSubscriptions.SingleFieldSubscriptions;
  123. }
  124. });
  125. Object.defineProperty(exports, "UniqueArgumentNamesRule", {
  126. enumerable: true,
  127. get: function get() {
  128. return _UniqueArgumentNames.UniqueArgumentNames;
  129. }
  130. });
  131. Object.defineProperty(exports, "UniqueDirectivesPerLocationRule", {
  132. enumerable: true,
  133. get: function get() {
  134. return _UniqueDirectivesPerLocation.UniqueDirectivesPerLocation;
  135. }
  136. });
  137. Object.defineProperty(exports, "UniqueFragmentNamesRule", {
  138. enumerable: true,
  139. get: function get() {
  140. return _UniqueFragmentNames.UniqueFragmentNames;
  141. }
  142. });
  143. Object.defineProperty(exports, "UniqueInputFieldNamesRule", {
  144. enumerable: true,
  145. get: function get() {
  146. return _UniqueInputFieldNames.UniqueInputFieldNames;
  147. }
  148. });
  149. Object.defineProperty(exports, "UniqueOperationNamesRule", {
  150. enumerable: true,
  151. get: function get() {
  152. return _UniqueOperationNames.UniqueOperationNames;
  153. }
  154. });
  155. Object.defineProperty(exports, "UniqueVariableNamesRule", {
  156. enumerable: true,
  157. get: function get() {
  158. return _UniqueVariableNames.UniqueVariableNames;
  159. }
  160. });
  161. Object.defineProperty(exports, "ValuesOfCorrectTypeRule", {
  162. enumerable: true,
  163. get: function get() {
  164. return _ValuesOfCorrectType.ValuesOfCorrectType;
  165. }
  166. });
  167. Object.defineProperty(exports, "VariablesAreInputTypesRule", {
  168. enumerable: true,
  169. get: function get() {
  170. return _VariablesAreInputTypes.VariablesAreInputTypes;
  171. }
  172. });
  173. Object.defineProperty(exports, "VariablesInAllowedPositionRule", {
  174. enumerable: true,
  175. get: function get() {
  176. return _VariablesInAllowedPosition.VariablesInAllowedPosition;
  177. }
  178. });
  179. Object.defineProperty(exports, "LoneSchemaDefinitionRule", {
  180. enumerable: true,
  181. get: function get() {
  182. return _LoneSchemaDefinition.LoneSchemaDefinition;
  183. }
  184. });
  185. Object.defineProperty(exports, "UniqueOperationTypesRule", {
  186. enumerable: true,
  187. get: function get() {
  188. return _UniqueOperationTypes.UniqueOperationTypes;
  189. }
  190. });
  191. Object.defineProperty(exports, "UniqueTypeNamesRule", {
  192. enumerable: true,
  193. get: function get() {
  194. return _UniqueTypeNames.UniqueTypeNames;
  195. }
  196. });
  197. Object.defineProperty(exports, "UniqueEnumValueNamesRule", {
  198. enumerable: true,
  199. get: function get() {
  200. return _UniqueEnumValueNames.UniqueEnumValueNames;
  201. }
  202. });
  203. Object.defineProperty(exports, "UniqueFieldDefinitionNamesRule", {
  204. enumerable: true,
  205. get: function get() {
  206. return _UniqueFieldDefinitionNames.UniqueFieldDefinitionNames;
  207. }
  208. });
  209. Object.defineProperty(exports, "UniqueDirectiveNamesRule", {
  210. enumerable: true,
  211. get: function get() {
  212. return _UniqueDirectiveNames.UniqueDirectiveNames;
  213. }
  214. });
  215. Object.defineProperty(exports, "PossibleTypeExtensionsRule", {
  216. enumerable: true,
  217. get: function get() {
  218. return _PossibleTypeExtensions.PossibleTypeExtensions;
  219. }
  220. });
  221. var _validate = require("./validate");
  222. var _ValidationContext = require("./ValidationContext");
  223. var _specifiedRules = require("./specifiedRules");
  224. var _ExecutableDefinitions = require("./rules/ExecutableDefinitions");
  225. var _FieldsOnCorrectType = require("./rules/FieldsOnCorrectType");
  226. var _FragmentsOnCompositeTypes = require("./rules/FragmentsOnCompositeTypes");
  227. var _KnownArgumentNames = require("./rules/KnownArgumentNames");
  228. var _KnownDirectives = require("./rules/KnownDirectives");
  229. var _KnownFragmentNames = require("./rules/KnownFragmentNames");
  230. var _KnownTypeNames = require("./rules/KnownTypeNames");
  231. var _LoneAnonymousOperation = require("./rules/LoneAnonymousOperation");
  232. var _NoFragmentCycles = require("./rules/NoFragmentCycles");
  233. var _NoUndefinedVariables = require("./rules/NoUndefinedVariables");
  234. var _NoUnusedFragments = require("./rules/NoUnusedFragments");
  235. var _NoUnusedVariables = require("./rules/NoUnusedVariables");
  236. var _OverlappingFieldsCanBeMerged = require("./rules/OverlappingFieldsCanBeMerged");
  237. var _PossibleFragmentSpreads = require("./rules/PossibleFragmentSpreads");
  238. var _ProvidedRequiredArguments = require("./rules/ProvidedRequiredArguments");
  239. var _ScalarLeafs = require("./rules/ScalarLeafs");
  240. var _SingleFieldSubscriptions = require("./rules/SingleFieldSubscriptions");
  241. var _UniqueArgumentNames = require("./rules/UniqueArgumentNames");
  242. var _UniqueDirectivesPerLocation = require("./rules/UniqueDirectivesPerLocation");
  243. var _UniqueFragmentNames = require("./rules/UniqueFragmentNames");
  244. var _UniqueInputFieldNames = require("./rules/UniqueInputFieldNames");
  245. var _UniqueOperationNames = require("./rules/UniqueOperationNames");
  246. var _UniqueVariableNames = require("./rules/UniqueVariableNames");
  247. var _ValuesOfCorrectType = require("./rules/ValuesOfCorrectType");
  248. var _VariablesAreInputTypes = require("./rules/VariablesAreInputTypes");
  249. var _VariablesInAllowedPosition = require("./rules/VariablesInAllowedPosition");
  250. var _LoneSchemaDefinition = require("./rules/LoneSchemaDefinition");
  251. var _UniqueOperationTypes = require("./rules/UniqueOperationTypes");
  252. var _UniqueTypeNames = require("./rules/UniqueTypeNames");
  253. var _UniqueEnumValueNames = require("./rules/UniqueEnumValueNames");
  254. var _UniqueFieldDefinitionNames = require("./rules/UniqueFieldDefinitionNames");
  255. var _UniqueDirectiveNames = require("./rules/UniqueDirectiveNames");
  256. var _PossibleTypeExtensions = require("./rules/PossibleTypeExtensions");