graphql 17.0.0-alpha.8 → 17.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1267) hide show
  1. package/README.md +54 -10
  2. package/__dev__/devMode.d.mts +1 -0
  3. package/__dev__/devMode.d.ts +1 -0
  4. package/__dev__/devMode.js +3 -0
  5. package/__dev__/devMode.mjs +3 -0
  6. package/__dev__/error/GraphQLError.d.mts +1 -0
  7. package/__dev__/error/GraphQLError.d.ts +1 -0
  8. package/__dev__/error/GraphQLError.js +3 -0
  9. package/__dev__/error/GraphQLError.mjs +3 -0
  10. package/__dev__/error/ensureGraphQLError.d.mts +1 -0
  11. package/__dev__/error/ensureGraphQLError.d.ts +1 -0
  12. package/__dev__/error/ensureGraphQLError.js +3 -0
  13. package/__dev__/error/ensureGraphQLError.mjs +3 -0
  14. package/__dev__/error/index.d.mts +1 -0
  15. package/__dev__/error/index.d.ts +1 -0
  16. package/__dev__/error/index.js +3 -0
  17. package/__dev__/error/index.mjs +3 -0
  18. package/__dev__/error/locatedError.d.mts +1 -0
  19. package/__dev__/error/locatedError.d.ts +1 -0
  20. package/__dev__/error/locatedError.js +3 -0
  21. package/__dev__/error/locatedError.mjs +3 -0
  22. package/__dev__/error/syntaxError.d.mts +1 -0
  23. package/__dev__/error/syntaxError.d.ts +1 -0
  24. package/__dev__/error/syntaxError.js +3 -0
  25. package/__dev__/error/syntaxError.mjs +3 -0
  26. package/__dev__/execution/AbortedGraphQLExecutionError.d.mts +1 -0
  27. package/__dev__/execution/AbortedGraphQLExecutionError.d.ts +1 -0
  28. package/__dev__/execution/AbortedGraphQLExecutionError.js +3 -0
  29. package/__dev__/execution/AbortedGraphQLExecutionError.mjs +3 -0
  30. package/__dev__/execution/AsyncWorkTracker.d.mts +1 -0
  31. package/__dev__/execution/AsyncWorkTracker.d.ts +1 -0
  32. package/__dev__/execution/AsyncWorkTracker.js +3 -0
  33. package/__dev__/execution/AsyncWorkTracker.mjs +3 -0
  34. package/__dev__/execution/Executor.d.mts +1 -0
  35. package/__dev__/execution/Executor.d.ts +1 -0
  36. package/__dev__/execution/Executor.js +3 -0
  37. package/__dev__/execution/Executor.mjs +3 -0
  38. package/__dev__/execution/ExecutorThrowingOnIncremental.d.mts +1 -0
  39. package/__dev__/execution/ExecutorThrowingOnIncremental.d.ts +1 -0
  40. package/__dev__/execution/ExecutorThrowingOnIncremental.js +3 -0
  41. package/__dev__/execution/ExecutorThrowingOnIncremental.mjs +3 -0
  42. package/__dev__/execution/cancellablePromise.d.mts +1 -0
  43. package/__dev__/execution/cancellablePromise.d.ts +1 -0
  44. package/__dev__/execution/cancellablePromise.js +3 -0
  45. package/__dev__/execution/cancellablePromise.mjs +3 -0
  46. package/__dev__/execution/collectFields.d.mts +1 -0
  47. package/__dev__/execution/collectFields.d.ts +1 -0
  48. package/__dev__/execution/collectFields.js +3 -0
  49. package/__dev__/execution/collectFields.mjs +3 -0
  50. package/__dev__/execution/collectIteratorPromises.d.mts +1 -0
  51. package/__dev__/execution/collectIteratorPromises.d.ts +1 -0
  52. package/__dev__/execution/collectIteratorPromises.js +3 -0
  53. package/__dev__/execution/collectIteratorPromises.mjs +3 -0
  54. package/__dev__/execution/createSharedExecutionContext.d.mts +1 -0
  55. package/__dev__/execution/createSharedExecutionContext.d.ts +1 -0
  56. package/__dev__/execution/createSharedExecutionContext.js +3 -0
  57. package/__dev__/execution/createSharedExecutionContext.mjs +3 -0
  58. package/__dev__/execution/execute.d.mts +1 -0
  59. package/__dev__/execution/execute.d.ts +1 -0
  60. package/__dev__/execution/execute.js +3 -0
  61. package/__dev__/execution/execute.mjs +3 -0
  62. package/__dev__/execution/getStreamUsage.d.mts +1 -0
  63. package/__dev__/execution/getStreamUsage.d.ts +1 -0
  64. package/__dev__/execution/getStreamUsage.js +3 -0
  65. package/__dev__/execution/getStreamUsage.mjs +3 -0
  66. package/__dev__/execution/getVariableSignature.d.mts +1 -0
  67. package/__dev__/execution/getVariableSignature.d.ts +1 -0
  68. package/__dev__/execution/getVariableSignature.js +3 -0
  69. package/__dev__/execution/getVariableSignature.mjs +3 -0
  70. package/__dev__/execution/hooks.d.mts +1 -0
  71. package/__dev__/execution/hooks.d.ts +1 -0
  72. package/__dev__/execution/hooks.js +3 -0
  73. package/__dev__/execution/hooks.mjs +3 -0
  74. package/__dev__/execution/incremental/Computation.d.mts +1 -0
  75. package/__dev__/execution/incremental/Computation.d.ts +1 -0
  76. package/__dev__/execution/incremental/Computation.js +3 -0
  77. package/__dev__/execution/incremental/Computation.mjs +3 -0
  78. package/__dev__/execution/incremental/IncrementalExecutor.d.mts +1 -0
  79. package/__dev__/execution/incremental/IncrementalExecutor.d.ts +1 -0
  80. package/__dev__/execution/incremental/IncrementalExecutor.js +3 -0
  81. package/__dev__/execution/incremental/IncrementalExecutor.mjs +3 -0
  82. package/__dev__/execution/incremental/IncrementalPublisher.d.mts +1 -0
  83. package/__dev__/execution/incremental/IncrementalPublisher.d.ts +1 -0
  84. package/__dev__/execution/incremental/IncrementalPublisher.js +3 -0
  85. package/__dev__/execution/incremental/IncrementalPublisher.mjs +3 -0
  86. package/__dev__/execution/incremental/Queue.d.mts +1 -0
  87. package/__dev__/execution/incremental/Queue.d.ts +1 -0
  88. package/__dev__/execution/incremental/Queue.js +3 -0
  89. package/__dev__/execution/incremental/Queue.mjs +3 -0
  90. package/__dev__/execution/incremental/WorkQueue.d.mts +1 -0
  91. package/__dev__/execution/incremental/WorkQueue.d.ts +1 -0
  92. package/__dev__/execution/incremental/WorkQueue.js +3 -0
  93. package/__dev__/execution/incremental/WorkQueue.mjs +3 -0
  94. package/__dev__/execution/incremental/buildExecutionPlan.d.mts +1 -0
  95. package/__dev__/execution/incremental/buildExecutionPlan.d.ts +1 -0
  96. package/__dev__/execution/incremental/buildExecutionPlan.js +3 -0
  97. package/__dev__/execution/incremental/buildExecutionPlan.mjs +3 -0
  98. package/__dev__/execution/index.d.mts +1 -0
  99. package/__dev__/execution/index.d.ts +1 -0
  100. package/__dev__/execution/index.js +3 -0
  101. package/__dev__/execution/index.mjs +3 -0
  102. package/__dev__/execution/mapAsyncIterable.d.mts +1 -0
  103. package/__dev__/execution/mapAsyncIterable.d.ts +1 -0
  104. package/__dev__/execution/mapAsyncIterable.js +3 -0
  105. package/__dev__/execution/mapAsyncIterable.mjs +3 -0
  106. package/__dev__/execution/returnIteratorCatchingErrors.d.mts +1 -0
  107. package/__dev__/execution/returnIteratorCatchingErrors.d.ts +1 -0
  108. package/__dev__/execution/returnIteratorCatchingErrors.js +3 -0
  109. package/__dev__/execution/returnIteratorCatchingErrors.mjs +3 -0
  110. package/__dev__/execution/values.d.mts +1 -0
  111. package/__dev__/execution/values.d.ts +1 -0
  112. package/__dev__/execution/values.js +3 -0
  113. package/__dev__/execution/values.mjs +3 -0
  114. package/__dev__/execution/withConcurrentAbruptClose.d.mts +1 -0
  115. package/__dev__/execution/withConcurrentAbruptClose.d.ts +1 -0
  116. package/__dev__/execution/withConcurrentAbruptClose.js +3 -0
  117. package/__dev__/execution/withConcurrentAbruptClose.mjs +3 -0
  118. package/__dev__/graphql.d.mts +1 -0
  119. package/__dev__/graphql.d.ts +1 -0
  120. package/__dev__/graphql.js +3 -0
  121. package/__dev__/graphql.mjs +3 -0
  122. package/__dev__/harness.d.mts +1 -0
  123. package/__dev__/harness.d.ts +1 -0
  124. package/__dev__/harness.js +3 -0
  125. package/__dev__/harness.mjs +3 -0
  126. package/__dev__/index.d.mts +1 -0
  127. package/__dev__/index.d.ts +1 -0
  128. package/__dev__/index.js +3 -0
  129. package/__dev__/index.mjs +3 -0
  130. package/__dev__/jsutils/AccumulatorMap.d.mts +1 -0
  131. package/__dev__/jsutils/AccumulatorMap.d.ts +1 -0
  132. package/__dev__/jsutils/AccumulatorMap.js +3 -0
  133. package/__dev__/jsutils/AccumulatorMap.mjs +3 -0
  134. package/__dev__/jsutils/Maybe.d.mts +1 -0
  135. package/__dev__/jsutils/Maybe.d.ts +1 -0
  136. package/__dev__/jsutils/Maybe.js +3 -0
  137. package/__dev__/jsutils/Maybe.mjs +3 -0
  138. package/__dev__/jsutils/ObjMap.d.mts +1 -0
  139. package/__dev__/jsutils/ObjMap.d.ts +1 -0
  140. package/__dev__/jsutils/ObjMap.js +3 -0
  141. package/__dev__/jsutils/ObjMap.mjs +3 -0
  142. package/__dev__/jsutils/Path.d.mts +1 -0
  143. package/__dev__/jsutils/Path.d.ts +1 -0
  144. package/__dev__/jsutils/Path.js +3 -0
  145. package/__dev__/jsutils/Path.mjs +3 -0
  146. package/__dev__/jsutils/PromiseOrValue.d.mts +1 -0
  147. package/__dev__/jsutils/PromiseOrValue.d.ts +1 -0
  148. package/__dev__/jsutils/PromiseOrValue.js +3 -0
  149. package/__dev__/jsutils/PromiseOrValue.mjs +3 -0
  150. package/__dev__/jsutils/capitalize.d.mts +1 -0
  151. package/__dev__/jsutils/capitalize.d.ts +1 -0
  152. package/__dev__/jsutils/capitalize.js +3 -0
  153. package/__dev__/jsutils/capitalize.mjs +3 -0
  154. package/__dev__/jsutils/devAssert.d.mts +1 -0
  155. package/__dev__/jsutils/devAssert.d.ts +1 -0
  156. package/__dev__/jsutils/devAssert.js +3 -0
  157. package/__dev__/jsutils/devAssert.mjs +3 -0
  158. package/__dev__/jsutils/didYouMean.d.mts +1 -0
  159. package/__dev__/jsutils/didYouMean.d.ts +1 -0
  160. package/__dev__/jsutils/didYouMean.js +3 -0
  161. package/__dev__/jsutils/didYouMean.mjs +3 -0
  162. package/__dev__/jsutils/formatList.d.mts +1 -0
  163. package/__dev__/jsutils/formatList.d.ts +1 -0
  164. package/__dev__/jsutils/formatList.js +3 -0
  165. package/__dev__/jsutils/formatList.mjs +3 -0
  166. package/__dev__/jsutils/getBySet.d.mts +1 -0
  167. package/__dev__/jsutils/getBySet.d.ts +1 -0
  168. package/__dev__/jsutils/getBySet.js +3 -0
  169. package/__dev__/jsutils/getBySet.mjs +3 -0
  170. package/__dev__/jsutils/groupBy.d.mts +1 -0
  171. package/__dev__/jsutils/groupBy.d.ts +1 -0
  172. package/__dev__/jsutils/groupBy.js +3 -0
  173. package/__dev__/jsutils/groupBy.mjs +3 -0
  174. package/__dev__/jsutils/identityFunc.d.mts +1 -0
  175. package/__dev__/jsutils/identityFunc.d.ts +1 -0
  176. package/__dev__/jsutils/identityFunc.js +3 -0
  177. package/__dev__/jsutils/identityFunc.mjs +3 -0
  178. package/__dev__/jsutils/inspect.d.mts +1 -0
  179. package/__dev__/jsutils/inspect.d.ts +1 -0
  180. package/__dev__/jsutils/inspect.js +3 -0
  181. package/__dev__/jsutils/inspect.mjs +3 -0
  182. package/__dev__/jsutils/instanceOf.d.mts +1 -0
  183. package/__dev__/jsutils/instanceOf.d.ts +1 -0
  184. package/__dev__/jsutils/instanceOf.js +3 -0
  185. package/__dev__/jsutils/instanceOf.mjs +3 -0
  186. package/__dev__/jsutils/invariant.d.mts +1 -0
  187. package/__dev__/jsutils/invariant.d.ts +1 -0
  188. package/__dev__/jsutils/invariant.js +3 -0
  189. package/__dev__/jsutils/invariant.mjs +3 -0
  190. package/__dev__/jsutils/isAsyncIterable.d.mts +1 -0
  191. package/__dev__/jsutils/isAsyncIterable.d.ts +1 -0
  192. package/__dev__/jsutils/isAsyncIterable.js +3 -0
  193. package/__dev__/jsutils/isAsyncIterable.mjs +3 -0
  194. package/__dev__/jsutils/isIterableObject.d.mts +1 -0
  195. package/__dev__/jsutils/isIterableObject.d.ts +1 -0
  196. package/__dev__/jsutils/isIterableObject.js +3 -0
  197. package/__dev__/jsutils/isIterableObject.mjs +3 -0
  198. package/__dev__/jsutils/isObjectLike.d.mts +1 -0
  199. package/__dev__/jsutils/isObjectLike.d.ts +1 -0
  200. package/__dev__/jsutils/isObjectLike.js +3 -0
  201. package/__dev__/jsutils/isObjectLike.mjs +3 -0
  202. package/__dev__/jsutils/isPromise.d.mts +1 -0
  203. package/__dev__/jsutils/isPromise.d.ts +1 -0
  204. package/__dev__/jsutils/isPromise.js +3 -0
  205. package/__dev__/jsutils/isPromise.mjs +3 -0
  206. package/__dev__/jsutils/isSameSet.d.mts +1 -0
  207. package/__dev__/jsutils/isSameSet.d.ts +1 -0
  208. package/__dev__/jsutils/isSameSet.js +3 -0
  209. package/__dev__/jsutils/isSameSet.mjs +3 -0
  210. package/__dev__/jsutils/keyMap.d.mts +1 -0
  211. package/__dev__/jsutils/keyMap.d.ts +1 -0
  212. package/__dev__/jsutils/keyMap.js +3 -0
  213. package/__dev__/jsutils/keyMap.mjs +3 -0
  214. package/__dev__/jsutils/keyValMap.d.mts +1 -0
  215. package/__dev__/jsutils/keyValMap.d.ts +1 -0
  216. package/__dev__/jsutils/keyValMap.js +3 -0
  217. package/__dev__/jsutils/keyValMap.mjs +3 -0
  218. package/__dev__/jsutils/mapValue.d.mts +1 -0
  219. package/__dev__/jsutils/mapValue.d.ts +1 -0
  220. package/__dev__/jsutils/mapValue.js +3 -0
  221. package/__dev__/jsutils/mapValue.mjs +3 -0
  222. package/__dev__/jsutils/memoize1.d.mts +1 -0
  223. package/__dev__/jsutils/memoize1.d.ts +1 -0
  224. package/__dev__/jsutils/memoize1.js +3 -0
  225. package/__dev__/jsutils/memoize1.mjs +3 -0
  226. package/__dev__/jsutils/memoize2.d.mts +1 -0
  227. package/__dev__/jsutils/memoize2.d.ts +1 -0
  228. package/__dev__/jsutils/memoize2.js +3 -0
  229. package/__dev__/jsutils/memoize2.mjs +3 -0
  230. package/__dev__/jsutils/memoize3.d.mts +1 -0
  231. package/__dev__/jsutils/memoize3.d.ts +1 -0
  232. package/__dev__/jsutils/memoize3.js +3 -0
  233. package/__dev__/jsutils/memoize3.mjs +3 -0
  234. package/__dev__/jsutils/naturalCompare.d.mts +1 -0
  235. package/__dev__/jsutils/naturalCompare.d.ts +1 -0
  236. package/__dev__/jsutils/naturalCompare.js +3 -0
  237. package/__dev__/jsutils/naturalCompare.mjs +3 -0
  238. package/__dev__/jsutils/printPathArray.d.mts +1 -0
  239. package/__dev__/jsutils/printPathArray.d.ts +1 -0
  240. package/__dev__/jsutils/printPathArray.js +3 -0
  241. package/__dev__/jsutils/printPathArray.mjs +3 -0
  242. package/__dev__/jsutils/promiseForObject.d.mts +1 -0
  243. package/__dev__/jsutils/promiseForObject.d.ts +1 -0
  244. package/__dev__/jsutils/promiseForObject.js +3 -0
  245. package/__dev__/jsutils/promiseForObject.mjs +3 -0
  246. package/__dev__/jsutils/promiseReduce.d.mts +1 -0
  247. package/__dev__/jsutils/promiseReduce.d.ts +1 -0
  248. package/__dev__/jsutils/promiseReduce.js +3 -0
  249. package/__dev__/jsutils/promiseReduce.mjs +3 -0
  250. package/__dev__/jsutils/promiseWithResolvers.d.mts +1 -0
  251. package/__dev__/jsutils/promiseWithResolvers.d.ts +1 -0
  252. package/__dev__/jsutils/promiseWithResolvers.js +3 -0
  253. package/__dev__/jsutils/promiseWithResolvers.mjs +3 -0
  254. package/__dev__/jsutils/suggestionList.d.mts +1 -0
  255. package/__dev__/jsutils/suggestionList.d.ts +1 -0
  256. package/__dev__/jsutils/suggestionList.js +3 -0
  257. package/__dev__/jsutils/suggestionList.mjs +3 -0
  258. package/__dev__/jsutils/toError.d.mts +1 -0
  259. package/__dev__/jsutils/toError.d.ts +1 -0
  260. package/__dev__/jsutils/toError.js +3 -0
  261. package/__dev__/jsutils/toError.mjs +3 -0
  262. package/__dev__/jsutils/toObjMap.d.mts +1 -0
  263. package/__dev__/jsutils/toObjMap.d.ts +1 -0
  264. package/__dev__/jsutils/toObjMap.js +3 -0
  265. package/__dev__/jsutils/toObjMap.mjs +3 -0
  266. package/__dev__/language/KindTypeMap.d.mts +1 -0
  267. package/__dev__/language/KindTypeMap.d.ts +1 -0
  268. package/__dev__/language/KindTypeMap.js +3 -0
  269. package/__dev__/language/KindTypeMap.mjs +3 -0
  270. package/__dev__/language/ast.d.mts +1 -0
  271. package/__dev__/language/ast.d.ts +1 -0
  272. package/__dev__/language/ast.js +3 -0
  273. package/__dev__/language/ast.mjs +3 -0
  274. package/__dev__/language/blockString.d.mts +1 -0
  275. package/__dev__/language/blockString.d.ts +1 -0
  276. package/__dev__/language/blockString.js +3 -0
  277. package/__dev__/language/blockString.mjs +3 -0
  278. package/__dev__/language/characterClasses.d.mts +1 -0
  279. package/__dev__/language/characterClasses.d.ts +1 -0
  280. package/__dev__/language/characterClasses.js +3 -0
  281. package/__dev__/language/characterClasses.mjs +3 -0
  282. package/__dev__/language/directiveLocation.d.mts +1 -0
  283. package/__dev__/language/directiveLocation.d.ts +1 -0
  284. package/__dev__/language/directiveLocation.js +3 -0
  285. package/__dev__/language/directiveLocation.mjs +3 -0
  286. package/__dev__/language/index.d.mts +1 -0
  287. package/__dev__/language/index.d.ts +1 -0
  288. package/__dev__/language/index.js +3 -0
  289. package/__dev__/language/index.mjs +3 -0
  290. package/__dev__/language/kinds.d.mts +1 -0
  291. package/__dev__/language/kinds.d.ts +1 -0
  292. package/__dev__/language/kinds.js +3 -0
  293. package/__dev__/language/kinds.mjs +3 -0
  294. package/__dev__/language/kinds_.d.mts +1 -0
  295. package/__dev__/language/kinds_.d.ts +1 -0
  296. package/__dev__/language/kinds_.js +3 -0
  297. package/__dev__/language/kinds_.mjs +3 -0
  298. package/__dev__/language/lexer.d.mts +1 -0
  299. package/__dev__/language/lexer.d.ts +1 -0
  300. package/__dev__/language/lexer.js +3 -0
  301. package/__dev__/language/lexer.mjs +3 -0
  302. package/__dev__/language/location.d.mts +1 -0
  303. package/__dev__/language/location.d.ts +1 -0
  304. package/__dev__/language/location.js +3 -0
  305. package/__dev__/language/location.mjs +3 -0
  306. package/__dev__/language/parser.d.mts +1 -0
  307. package/__dev__/language/parser.d.ts +1 -0
  308. package/__dev__/language/parser.js +3 -0
  309. package/__dev__/language/parser.mjs +3 -0
  310. package/__dev__/language/predicates.d.mts +1 -0
  311. package/__dev__/language/predicates.d.ts +1 -0
  312. package/__dev__/language/predicates.js +3 -0
  313. package/__dev__/language/predicates.mjs +3 -0
  314. package/__dev__/language/printLocation.d.mts +1 -0
  315. package/__dev__/language/printLocation.d.ts +1 -0
  316. package/__dev__/language/printLocation.js +3 -0
  317. package/__dev__/language/printLocation.mjs +3 -0
  318. package/__dev__/language/printString.d.mts +1 -0
  319. package/__dev__/language/printString.d.ts +1 -0
  320. package/__dev__/language/printString.js +3 -0
  321. package/__dev__/language/printString.mjs +3 -0
  322. package/__dev__/language/printer.d.mts +1 -0
  323. package/__dev__/language/printer.d.ts +1 -0
  324. package/__dev__/language/printer.js +3 -0
  325. package/__dev__/language/printer.mjs +3 -0
  326. package/__dev__/language/schemaCoordinateLexer.d.mts +1 -0
  327. package/__dev__/language/schemaCoordinateLexer.d.ts +1 -0
  328. package/__dev__/language/schemaCoordinateLexer.js +3 -0
  329. package/__dev__/language/schemaCoordinateLexer.mjs +3 -0
  330. package/__dev__/language/source.d.mts +1 -0
  331. package/__dev__/language/source.d.ts +1 -0
  332. package/__dev__/language/source.js +3 -0
  333. package/__dev__/language/source.mjs +3 -0
  334. package/__dev__/language/tokenKind.d.mts +1 -0
  335. package/__dev__/language/tokenKind.d.ts +1 -0
  336. package/__dev__/language/tokenKind.js +3 -0
  337. package/__dev__/language/tokenKind.mjs +3 -0
  338. package/__dev__/language/visitor.d.mts +1 -0
  339. package/__dev__/language/visitor.d.ts +1 -0
  340. package/__dev__/language/visitor.js +3 -0
  341. package/__dev__/language/visitor.mjs +3 -0
  342. package/__dev__/type/assertName.d.mts +1 -0
  343. package/__dev__/type/assertName.d.ts +1 -0
  344. package/__dev__/type/assertName.js +3 -0
  345. package/__dev__/type/assertName.mjs +3 -0
  346. package/__dev__/type/definition.d.mts +1 -0
  347. package/__dev__/type/definition.d.ts +1 -0
  348. package/__dev__/type/definition.js +3 -0
  349. package/__dev__/type/definition.mjs +3 -0
  350. package/__dev__/type/directives.d.mts +1 -0
  351. package/__dev__/type/directives.d.ts +1 -0
  352. package/__dev__/type/directives.js +3 -0
  353. package/__dev__/type/directives.mjs +3 -0
  354. package/__dev__/type/index.d.mts +1 -0
  355. package/__dev__/type/index.d.ts +1 -0
  356. package/__dev__/type/index.js +3 -0
  357. package/__dev__/type/index.mjs +3 -0
  358. package/__dev__/type/introspection.d.mts +1 -0
  359. package/__dev__/type/introspection.d.ts +1 -0
  360. package/__dev__/type/introspection.js +3 -0
  361. package/__dev__/type/introspection.mjs +3 -0
  362. package/__dev__/type/scalars.d.mts +1 -0
  363. package/__dev__/type/scalars.d.ts +1 -0
  364. package/__dev__/type/scalars.js +3 -0
  365. package/__dev__/type/scalars.mjs +3 -0
  366. package/__dev__/type/schema.d.mts +1 -0
  367. package/__dev__/type/schema.d.ts +1 -0
  368. package/__dev__/type/schema.js +3 -0
  369. package/__dev__/type/schema.mjs +3 -0
  370. package/__dev__/type/validate.d.mts +1 -0
  371. package/__dev__/type/validate.d.ts +1 -0
  372. package/__dev__/type/validate.js +3 -0
  373. package/__dev__/type/validate.mjs +3 -0
  374. package/__dev__/utilities/TypeInfo.d.mts +1 -0
  375. package/__dev__/utilities/TypeInfo.d.ts +1 -0
  376. package/__dev__/utilities/TypeInfo.js +3 -0
  377. package/__dev__/utilities/TypeInfo.mjs +3 -0
  378. package/__dev__/utilities/astFromValue.d.mts +1 -0
  379. package/__dev__/utilities/astFromValue.d.ts +1 -0
  380. package/__dev__/utilities/astFromValue.js +3 -0
  381. package/__dev__/utilities/astFromValue.mjs +3 -0
  382. package/__dev__/utilities/buildASTSchema.d.mts +1 -0
  383. package/__dev__/utilities/buildASTSchema.d.ts +1 -0
  384. package/__dev__/utilities/buildASTSchema.js +3 -0
  385. package/__dev__/utilities/buildASTSchema.mjs +3 -0
  386. package/__dev__/utilities/buildClientSchema.d.mts +1 -0
  387. package/__dev__/utilities/buildClientSchema.d.ts +1 -0
  388. package/__dev__/utilities/buildClientSchema.js +3 -0
  389. package/__dev__/utilities/buildClientSchema.mjs +3 -0
  390. package/__dev__/utilities/coerceInputValue.d.mts +1 -0
  391. package/__dev__/utilities/coerceInputValue.d.ts +1 -0
  392. package/__dev__/utilities/coerceInputValue.js +3 -0
  393. package/__dev__/utilities/coerceInputValue.mjs +3 -0
  394. package/__dev__/utilities/concatAST.d.mts +1 -0
  395. package/__dev__/utilities/concatAST.d.ts +1 -0
  396. package/__dev__/utilities/concatAST.js +3 -0
  397. package/__dev__/utilities/concatAST.mjs +3 -0
  398. package/__dev__/utilities/extendSchema.d.mts +1 -0
  399. package/__dev__/utilities/extendSchema.d.ts +1 -0
  400. package/__dev__/utilities/extendSchema.js +3 -0
  401. package/__dev__/utilities/extendSchema.mjs +3 -0
  402. package/__dev__/utilities/findSchemaChanges.d.mts +1 -0
  403. package/__dev__/utilities/findSchemaChanges.d.ts +1 -0
  404. package/__dev__/utilities/findSchemaChanges.js +3 -0
  405. package/__dev__/utilities/findSchemaChanges.mjs +3 -0
  406. package/__dev__/utilities/getDefaultValueAST.d.mts +1 -0
  407. package/__dev__/utilities/getDefaultValueAST.d.ts +1 -0
  408. package/__dev__/utilities/getDefaultValueAST.js +3 -0
  409. package/__dev__/utilities/getDefaultValueAST.mjs +3 -0
  410. package/__dev__/utilities/getIntrospectionQuery.d.mts +1 -0
  411. package/__dev__/utilities/getIntrospectionQuery.d.ts +1 -0
  412. package/__dev__/utilities/getIntrospectionQuery.js +3 -0
  413. package/__dev__/utilities/getIntrospectionQuery.mjs +3 -0
  414. package/__dev__/utilities/getOperationAST.d.mts +1 -0
  415. package/__dev__/utilities/getOperationAST.d.ts +1 -0
  416. package/__dev__/utilities/getOperationAST.js +3 -0
  417. package/__dev__/utilities/getOperationAST.mjs +3 -0
  418. package/__dev__/utilities/index.d.mts +1 -0
  419. package/__dev__/utilities/index.d.ts +1 -0
  420. package/__dev__/utilities/index.js +3 -0
  421. package/__dev__/utilities/index.mjs +3 -0
  422. package/__dev__/utilities/introspectionFromSchema.d.mts +1 -0
  423. package/__dev__/utilities/introspectionFromSchema.d.ts +1 -0
  424. package/__dev__/utilities/introspectionFromSchema.js +3 -0
  425. package/__dev__/utilities/introspectionFromSchema.mjs +3 -0
  426. package/__dev__/utilities/lexicographicSortSchema.d.mts +1 -0
  427. package/__dev__/utilities/lexicographicSortSchema.d.ts +1 -0
  428. package/__dev__/utilities/lexicographicSortSchema.js +3 -0
  429. package/__dev__/utilities/lexicographicSortSchema.mjs +3 -0
  430. package/__dev__/utilities/mapSchemaConfig.d.mts +1 -0
  431. package/__dev__/utilities/mapSchemaConfig.d.ts +1 -0
  432. package/__dev__/utilities/mapSchemaConfig.js +3 -0
  433. package/__dev__/utilities/mapSchemaConfig.mjs +3 -0
  434. package/__dev__/utilities/printSchema.d.mts +1 -0
  435. package/__dev__/utilities/printSchema.d.ts +1 -0
  436. package/__dev__/utilities/printSchema.js +3 -0
  437. package/__dev__/utilities/printSchema.mjs +3 -0
  438. package/__dev__/utilities/replaceVariables.d.mts +1 -0
  439. package/__dev__/utilities/replaceVariables.d.ts +1 -0
  440. package/__dev__/utilities/replaceVariables.js +3 -0
  441. package/__dev__/utilities/replaceVariables.mjs +3 -0
  442. package/__dev__/utilities/resolveSchemaCoordinate.d.mts +1 -0
  443. package/__dev__/utilities/resolveSchemaCoordinate.d.ts +1 -0
  444. package/__dev__/utilities/resolveSchemaCoordinate.js +3 -0
  445. package/__dev__/utilities/resolveSchemaCoordinate.mjs +3 -0
  446. package/__dev__/utilities/separateOperations.d.mts +1 -0
  447. package/__dev__/utilities/separateOperations.d.ts +1 -0
  448. package/__dev__/utilities/separateOperations.js +3 -0
  449. package/__dev__/utilities/separateOperations.mjs +3 -0
  450. package/__dev__/utilities/sortValueNode.d.mts +1 -0
  451. package/__dev__/utilities/sortValueNode.d.ts +1 -0
  452. package/__dev__/utilities/sortValueNode.js +3 -0
  453. package/__dev__/utilities/sortValueNode.mjs +3 -0
  454. package/__dev__/utilities/stripIgnoredCharacters.d.mts +1 -0
  455. package/__dev__/utilities/stripIgnoredCharacters.d.ts +1 -0
  456. package/__dev__/utilities/stripIgnoredCharacters.js +3 -0
  457. package/__dev__/utilities/stripIgnoredCharacters.mjs +3 -0
  458. package/__dev__/utilities/typeComparators.d.mts +1 -0
  459. package/__dev__/utilities/typeComparators.d.ts +1 -0
  460. package/__dev__/utilities/typeComparators.js +3 -0
  461. package/__dev__/utilities/typeComparators.mjs +3 -0
  462. package/__dev__/utilities/typeFromAST.d.mts +1 -0
  463. package/__dev__/utilities/typeFromAST.d.ts +1 -0
  464. package/__dev__/utilities/typeFromAST.js +3 -0
  465. package/__dev__/utilities/typeFromAST.mjs +3 -0
  466. package/__dev__/utilities/typedQueryDocumentNode.d.mts +1 -0
  467. package/__dev__/utilities/typedQueryDocumentNode.d.ts +1 -0
  468. package/__dev__/utilities/typedQueryDocumentNode.js +3 -0
  469. package/__dev__/utilities/typedQueryDocumentNode.mjs +3 -0
  470. package/__dev__/utilities/validateInputValue.d.mts +1 -0
  471. package/__dev__/utilities/validateInputValue.d.ts +1 -0
  472. package/__dev__/utilities/validateInputValue.js +3 -0
  473. package/__dev__/utilities/validateInputValue.mjs +3 -0
  474. package/__dev__/utilities/valueFromAST.d.mts +1 -0
  475. package/__dev__/utilities/valueFromAST.d.ts +1 -0
  476. package/__dev__/utilities/valueFromAST.js +3 -0
  477. package/__dev__/utilities/valueFromAST.mjs +3 -0
  478. package/__dev__/utilities/valueFromASTUntyped.d.mts +1 -0
  479. package/__dev__/utilities/valueFromASTUntyped.d.ts +1 -0
  480. package/__dev__/utilities/valueFromASTUntyped.js +3 -0
  481. package/__dev__/utilities/valueFromASTUntyped.mjs +3 -0
  482. package/__dev__/utilities/valueToLiteral.d.mts +1 -0
  483. package/__dev__/utilities/valueToLiteral.d.ts +1 -0
  484. package/__dev__/utilities/valueToLiteral.js +3 -0
  485. package/__dev__/utilities/valueToLiteral.mjs +3 -0
  486. package/__dev__/validation/ValidationContext.d.mts +1 -0
  487. package/__dev__/validation/ValidationContext.d.ts +1 -0
  488. package/__dev__/validation/ValidationContext.js +3 -0
  489. package/__dev__/validation/ValidationContext.mjs +3 -0
  490. package/__dev__/validation/index.d.mts +1 -0
  491. package/__dev__/validation/index.d.ts +1 -0
  492. package/__dev__/validation/index.js +3 -0
  493. package/__dev__/validation/index.mjs +3 -0
  494. package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.d.mts +1 -0
  495. package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.d.ts +1 -0
  496. package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.js +3 -0
  497. package/__dev__/validation/rules/DeferStreamDirectiveLabelRule.mjs +3 -0
  498. package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.mts +1 -0
  499. package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.ts +1 -0
  500. package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.js +3 -0
  501. package/__dev__/validation/rules/DeferStreamDirectiveOnRootFieldRule.mjs +3 -0
  502. package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.mts +1 -0
  503. package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.ts +1 -0
  504. package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.js +3 -0
  505. package/__dev__/validation/rules/DeferStreamDirectiveOnValidOperationsRule.mjs +3 -0
  506. package/__dev__/validation/rules/ExecutableDefinitionsRule.d.mts +1 -0
  507. package/__dev__/validation/rules/ExecutableDefinitionsRule.d.ts +1 -0
  508. package/__dev__/validation/rules/ExecutableDefinitionsRule.js +3 -0
  509. package/__dev__/validation/rules/ExecutableDefinitionsRule.mjs +3 -0
  510. package/__dev__/validation/rules/FieldsOnCorrectTypeRule.d.mts +1 -0
  511. package/__dev__/validation/rules/FieldsOnCorrectTypeRule.d.ts +1 -0
  512. package/__dev__/validation/rules/FieldsOnCorrectTypeRule.js +3 -0
  513. package/__dev__/validation/rules/FieldsOnCorrectTypeRule.mjs +3 -0
  514. package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.d.mts +1 -0
  515. package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.d.ts +1 -0
  516. package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.js +3 -0
  517. package/__dev__/validation/rules/FragmentsOnCompositeTypesRule.mjs +3 -0
  518. package/__dev__/validation/rules/KnownArgumentNamesRule.d.mts +1 -0
  519. package/__dev__/validation/rules/KnownArgumentNamesRule.d.ts +1 -0
  520. package/__dev__/validation/rules/KnownArgumentNamesRule.js +3 -0
  521. package/__dev__/validation/rules/KnownArgumentNamesRule.mjs +3 -0
  522. package/__dev__/validation/rules/KnownDirectivesRule.d.mts +1 -0
  523. package/__dev__/validation/rules/KnownDirectivesRule.d.ts +1 -0
  524. package/__dev__/validation/rules/KnownDirectivesRule.js +3 -0
  525. package/__dev__/validation/rules/KnownDirectivesRule.mjs +3 -0
  526. package/__dev__/validation/rules/KnownFragmentNamesRule.d.mts +1 -0
  527. package/__dev__/validation/rules/KnownFragmentNamesRule.d.ts +1 -0
  528. package/__dev__/validation/rules/KnownFragmentNamesRule.js +3 -0
  529. package/__dev__/validation/rules/KnownFragmentNamesRule.mjs +3 -0
  530. package/__dev__/validation/rules/KnownOperationTypesRule.d.mts +1 -0
  531. package/__dev__/validation/rules/KnownOperationTypesRule.d.ts +1 -0
  532. package/__dev__/validation/rules/KnownOperationTypesRule.js +3 -0
  533. package/__dev__/validation/rules/KnownOperationTypesRule.mjs +3 -0
  534. package/__dev__/validation/rules/KnownTypeNamesRule.d.mts +1 -0
  535. package/__dev__/validation/rules/KnownTypeNamesRule.d.ts +1 -0
  536. package/__dev__/validation/rules/KnownTypeNamesRule.js +3 -0
  537. package/__dev__/validation/rules/KnownTypeNamesRule.mjs +3 -0
  538. package/__dev__/validation/rules/LoneAnonymousOperationRule.d.mts +1 -0
  539. package/__dev__/validation/rules/LoneAnonymousOperationRule.d.ts +1 -0
  540. package/__dev__/validation/rules/LoneAnonymousOperationRule.js +3 -0
  541. package/__dev__/validation/rules/LoneAnonymousOperationRule.mjs +3 -0
  542. package/__dev__/validation/rules/LoneSchemaDefinitionRule.d.mts +1 -0
  543. package/__dev__/validation/rules/LoneSchemaDefinitionRule.d.ts +1 -0
  544. package/__dev__/validation/rules/LoneSchemaDefinitionRule.js +3 -0
  545. package/__dev__/validation/rules/LoneSchemaDefinitionRule.mjs +3 -0
  546. package/__dev__/validation/rules/MaxIntrospectionDepthRule.d.mts +1 -0
  547. package/__dev__/validation/rules/MaxIntrospectionDepthRule.d.ts +1 -0
  548. package/__dev__/validation/rules/MaxIntrospectionDepthRule.js +3 -0
  549. package/__dev__/validation/rules/MaxIntrospectionDepthRule.mjs +3 -0
  550. package/__dev__/validation/rules/NoFragmentCyclesRule.d.mts +1 -0
  551. package/__dev__/validation/rules/NoFragmentCyclesRule.d.ts +1 -0
  552. package/__dev__/validation/rules/NoFragmentCyclesRule.js +3 -0
  553. package/__dev__/validation/rules/NoFragmentCyclesRule.mjs +3 -0
  554. package/__dev__/validation/rules/NoUndefinedVariablesRule.d.mts +1 -0
  555. package/__dev__/validation/rules/NoUndefinedVariablesRule.d.ts +1 -0
  556. package/__dev__/validation/rules/NoUndefinedVariablesRule.js +3 -0
  557. package/__dev__/validation/rules/NoUndefinedVariablesRule.mjs +3 -0
  558. package/__dev__/validation/rules/NoUnusedFragmentsRule.d.mts +1 -0
  559. package/__dev__/validation/rules/NoUnusedFragmentsRule.d.ts +1 -0
  560. package/__dev__/validation/rules/NoUnusedFragmentsRule.js +3 -0
  561. package/__dev__/validation/rules/NoUnusedFragmentsRule.mjs +3 -0
  562. package/__dev__/validation/rules/NoUnusedVariablesRule.d.mts +1 -0
  563. package/__dev__/validation/rules/NoUnusedVariablesRule.d.ts +1 -0
  564. package/__dev__/validation/rules/NoUnusedVariablesRule.js +3 -0
  565. package/__dev__/validation/rules/NoUnusedVariablesRule.mjs +3 -0
  566. package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.d.mts +1 -0
  567. package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +1 -0
  568. package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.js +3 -0
  569. package/__dev__/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +3 -0
  570. package/__dev__/validation/rules/PossibleFragmentSpreadsRule.d.mts +1 -0
  571. package/__dev__/validation/rules/PossibleFragmentSpreadsRule.d.ts +1 -0
  572. package/__dev__/validation/rules/PossibleFragmentSpreadsRule.js +3 -0
  573. package/__dev__/validation/rules/PossibleFragmentSpreadsRule.mjs +3 -0
  574. package/__dev__/validation/rules/PossibleTypeExtensionsRule.d.mts +1 -0
  575. package/__dev__/validation/rules/PossibleTypeExtensionsRule.d.ts +1 -0
  576. package/__dev__/validation/rules/PossibleTypeExtensionsRule.js +3 -0
  577. package/__dev__/validation/rules/PossibleTypeExtensionsRule.mjs +3 -0
  578. package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.d.mts +1 -0
  579. package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.d.ts +1 -0
  580. package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.js +3 -0
  581. package/__dev__/validation/rules/ProvidedRequiredArgumentsRule.mjs +3 -0
  582. package/__dev__/validation/rules/ScalarLeafsRule.d.mts +1 -0
  583. package/__dev__/validation/rules/ScalarLeafsRule.d.ts +1 -0
  584. package/__dev__/validation/rules/ScalarLeafsRule.js +3 -0
  585. package/__dev__/validation/rules/ScalarLeafsRule.mjs +3 -0
  586. package/__dev__/validation/rules/SingleFieldSubscriptionsRule.d.mts +1 -0
  587. package/__dev__/validation/rules/SingleFieldSubscriptionsRule.d.ts +1 -0
  588. package/__dev__/validation/rules/SingleFieldSubscriptionsRule.js +3 -0
  589. package/__dev__/validation/rules/SingleFieldSubscriptionsRule.mjs +3 -0
  590. package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.d.mts +1 -0
  591. package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.d.ts +1 -0
  592. package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.js +3 -0
  593. package/__dev__/validation/rules/StreamDirectiveOnListFieldRule.mjs +3 -0
  594. package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.d.mts +1 -0
  595. package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +1 -0
  596. package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.js +3 -0
  597. package/__dev__/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +3 -0
  598. package/__dev__/validation/rules/UniqueArgumentNamesRule.d.mts +1 -0
  599. package/__dev__/validation/rules/UniqueArgumentNamesRule.d.ts +1 -0
  600. package/__dev__/validation/rules/UniqueArgumentNamesRule.js +3 -0
  601. package/__dev__/validation/rules/UniqueArgumentNamesRule.mjs +3 -0
  602. package/__dev__/validation/rules/UniqueDirectiveNamesRule.d.mts +1 -0
  603. package/__dev__/validation/rules/UniqueDirectiveNamesRule.d.ts +1 -0
  604. package/__dev__/validation/rules/UniqueDirectiveNamesRule.js +3 -0
  605. package/__dev__/validation/rules/UniqueDirectiveNamesRule.mjs +3 -0
  606. package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.d.mts +1 -0
  607. package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.d.ts +1 -0
  608. package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.js +3 -0
  609. package/__dev__/validation/rules/UniqueDirectivesPerLocationRule.mjs +3 -0
  610. package/__dev__/validation/rules/UniqueEnumValueNamesRule.d.mts +1 -0
  611. package/__dev__/validation/rules/UniqueEnumValueNamesRule.d.ts +1 -0
  612. package/__dev__/validation/rules/UniqueEnumValueNamesRule.js +3 -0
  613. package/__dev__/validation/rules/UniqueEnumValueNamesRule.mjs +3 -0
  614. package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.d.mts +1 -0
  615. package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +1 -0
  616. package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.js +3 -0
  617. package/__dev__/validation/rules/UniqueFieldDefinitionNamesRule.mjs +3 -0
  618. package/__dev__/validation/rules/UniqueFragmentNamesRule.d.mts +1 -0
  619. package/__dev__/validation/rules/UniqueFragmentNamesRule.d.ts +1 -0
  620. package/__dev__/validation/rules/UniqueFragmentNamesRule.js +3 -0
  621. package/__dev__/validation/rules/UniqueFragmentNamesRule.mjs +3 -0
  622. package/__dev__/validation/rules/UniqueInputFieldNamesRule.d.mts +1 -0
  623. package/__dev__/validation/rules/UniqueInputFieldNamesRule.d.ts +1 -0
  624. package/__dev__/validation/rules/UniqueInputFieldNamesRule.js +3 -0
  625. package/__dev__/validation/rules/UniqueInputFieldNamesRule.mjs +3 -0
  626. package/__dev__/validation/rules/UniqueOperationNamesRule.d.mts +1 -0
  627. package/__dev__/validation/rules/UniqueOperationNamesRule.d.ts +1 -0
  628. package/__dev__/validation/rules/UniqueOperationNamesRule.js +3 -0
  629. package/__dev__/validation/rules/UniqueOperationNamesRule.mjs +3 -0
  630. package/__dev__/validation/rules/UniqueOperationTypesRule.d.mts +1 -0
  631. package/__dev__/validation/rules/UniqueOperationTypesRule.d.ts +1 -0
  632. package/__dev__/validation/rules/UniqueOperationTypesRule.js +3 -0
  633. package/__dev__/validation/rules/UniqueOperationTypesRule.mjs +3 -0
  634. package/__dev__/validation/rules/UniqueTypeNamesRule.d.mts +1 -0
  635. package/__dev__/validation/rules/UniqueTypeNamesRule.d.ts +1 -0
  636. package/__dev__/validation/rules/UniqueTypeNamesRule.js +3 -0
  637. package/__dev__/validation/rules/UniqueTypeNamesRule.mjs +3 -0
  638. package/__dev__/validation/rules/UniqueVariableNamesRule.d.mts +1 -0
  639. package/__dev__/validation/rules/UniqueVariableNamesRule.d.ts +1 -0
  640. package/__dev__/validation/rules/UniqueVariableNamesRule.js +3 -0
  641. package/__dev__/validation/rules/UniqueVariableNamesRule.mjs +3 -0
  642. package/__dev__/validation/rules/ValuesOfCorrectTypeRule.d.mts +1 -0
  643. package/__dev__/validation/rules/ValuesOfCorrectTypeRule.d.ts +1 -0
  644. package/__dev__/validation/rules/ValuesOfCorrectTypeRule.js +3 -0
  645. package/__dev__/validation/rules/ValuesOfCorrectTypeRule.mjs +3 -0
  646. package/__dev__/validation/rules/VariablesAreInputTypesRule.d.mts +1 -0
  647. package/__dev__/validation/rules/VariablesAreInputTypesRule.d.ts +1 -0
  648. package/__dev__/validation/rules/VariablesAreInputTypesRule.js +3 -0
  649. package/__dev__/validation/rules/VariablesAreInputTypesRule.mjs +3 -0
  650. package/__dev__/validation/rules/VariablesInAllowedPositionRule.d.mts +1 -0
  651. package/__dev__/validation/rules/VariablesInAllowedPositionRule.d.ts +1 -0
  652. package/__dev__/validation/rules/VariablesInAllowedPositionRule.js +3 -0
  653. package/__dev__/validation/rules/VariablesInAllowedPositionRule.mjs +3 -0
  654. package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.d.mts +1 -0
  655. package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.d.ts +1 -0
  656. package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.js +3 -0
  657. package/__dev__/validation/rules/custom/NoDeprecatedCustomRule.mjs +3 -0
  658. package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.mts +1 -0
  659. package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +1 -0
  660. package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +3 -0
  661. package/__dev__/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +3 -0
  662. package/__dev__/validation/specifiedRules.d.mts +1 -0
  663. package/__dev__/validation/specifiedRules.d.ts +1 -0
  664. package/__dev__/validation/specifiedRules.js +3 -0
  665. package/__dev__/validation/specifiedRules.mjs +3 -0
  666. package/__dev__/validation/validate.d.mts +1 -0
  667. package/__dev__/validation/validate.d.ts +1 -0
  668. package/__dev__/validation/validate.js +3 -0
  669. package/__dev__/validation/validate.mjs +3 -0
  670. package/__dev__/version.d.mts +1 -0
  671. package/__dev__/version.d.ts +1 -0
  672. package/__dev__/version.js +3 -0
  673. package/__dev__/version.mjs +3 -0
  674. package/devMode.d.mts +2 -0
  675. package/devMode.d.ts +2 -0
  676. package/devMode.js +14 -0
  677. package/devMode.js.map +1 -0
  678. package/devMode.mjs +10 -0
  679. package/devMode.mjs.map +1 -0
  680. package/error/GraphQLError.d.mts +120 -0
  681. package/error/ensureGraphQLError.d.mts +5 -0
  682. package/error/ensureGraphQLError.d.ts +5 -0
  683. package/error/ensureGraphQLError.js +16 -0
  684. package/error/ensureGraphQLError.js.map +1 -0
  685. package/error/ensureGraphQLError.mjs +13 -0
  686. package/error/ensureGraphQLError.mjs.map +1 -0
  687. package/error/index.d.mts +4 -0
  688. package/error/locatedError.d.mts +9 -0
  689. package/error/syntaxError.d.mts +7 -0
  690. package/execution/AbortedGraphQLExecutionError.d.mts +6 -0
  691. package/execution/AbortedGraphQLExecutionError.d.ts +6 -0
  692. package/execution/AbortedGraphQLExecutionError.js +27 -0
  693. package/execution/AbortedGraphQLExecutionError.js.map +1 -0
  694. package/execution/AbortedGraphQLExecutionError.mjs +23 -0
  695. package/execution/AbortedGraphQLExecutionError.mjs.map +1 -0
  696. package/execution/AsyncWorkTracker.d.mts +10 -0
  697. package/execution/AsyncWorkTracker.d.ts +10 -0
  698. package/execution/AsyncWorkTracker.js +49 -0
  699. package/execution/AsyncWorkTracker.js.map +1 -0
  700. package/execution/AsyncWorkTracker.mjs +45 -0
  701. package/execution/AsyncWorkTracker.mjs.map +1 -0
  702. package/execution/Executor.d.mts +212 -0
  703. package/execution/Executor.d.ts +212 -0
  704. package/execution/Executor.js +655 -0
  705. package/execution/Executor.js.map +1 -0
  706. package/execution/Executor.mjs +651 -0
  707. package/execution/Executor.mjs.map +1 -0
  708. package/execution/ExecutorThrowingOnIncremental.d.mts +12 -0
  709. package/execution/ExecutorThrowingOnIncremental.d.ts +12 -0
  710. package/execution/ExecutorThrowingOnIncremental.js +47 -0
  711. package/execution/ExecutorThrowingOnIncremental.js.map +1 -0
  712. package/execution/ExecutorThrowingOnIncremental.mjs +43 -0
  713. package/execution/ExecutorThrowingOnIncremental.mjs.map +1 -0
  714. package/execution/cancellablePromise.d.mts +6 -0
  715. package/execution/cancellablePromise.d.ts +6 -0
  716. package/execution/cancellablePromise.js +49 -0
  717. package/execution/cancellablePromise.js.map +1 -0
  718. package/execution/cancellablePromise.mjs +45 -0
  719. package/execution/cancellablePromise.mjs.map +1 -0
  720. package/execution/collectFields.d.mts +59 -0
  721. package/execution/collectFields.d.ts +15 -4
  722. package/execution/collectFields.js +57 -22
  723. package/execution/collectFields.js.map +1 -1
  724. package/execution/collectFields.mjs +58 -23
  725. package/execution/collectFields.mjs.map +1 -1
  726. package/execution/collectIteratorPromises.d.mts +5 -0
  727. package/execution/collectIteratorPromises.d.ts +5 -0
  728. package/execution/collectIteratorPromises.js +27 -0
  729. package/execution/collectIteratorPromises.js.map +1 -0
  730. package/execution/collectIteratorPromises.mjs +24 -0
  731. package/execution/collectIteratorPromises.mjs.map +1 -0
  732. package/execution/createSharedExecutionContext.d.mts +10 -0
  733. package/execution/createSharedExecutionContext.d.ts +10 -0
  734. package/execution/createSharedExecutionContext.js +20 -0
  735. package/execution/createSharedExecutionContext.js.map +1 -0
  736. package/execution/createSharedExecutionContext.mjs +17 -0
  737. package/execution/createSharedExecutionContext.mjs.map +1 -0
  738. package/execution/execute.d.mts +180 -0
  739. package/execution/execute.d.ts +73 -118
  740. package/execution/execute.js +218 -1121
  741. package/execution/execute.js.map +1 -1
  742. package/execution/execute.mjs +213 -1119
  743. package/execution/execute.mjs.map +1 -1
  744. package/execution/getStreamUsage.d.mts +13 -0
  745. package/execution/getStreamUsage.d.ts +13 -0
  746. package/execution/getStreamUsage.js +41 -0
  747. package/execution/getStreamUsage.js.map +1 -0
  748. package/execution/getStreamUsage.mjs +38 -0
  749. package/execution/getStreamUsage.mjs.map +1 -0
  750. package/execution/getVariableSignature.d.mts +18 -0
  751. package/execution/hooks.d.mts +9 -0
  752. package/execution/hooks.d.ts +9 -0
  753. package/execution/hooks.js +24 -0
  754. package/execution/hooks.js.map +1 -0
  755. package/execution/hooks.mjs +21 -0
  756. package/execution/hooks.mjs.map +1 -0
  757. package/execution/incremental/Computation.d.mts +22 -0
  758. package/execution/incremental/Computation.d.ts +22 -0
  759. package/execution/incremental/Computation.js +68 -0
  760. package/execution/incremental/Computation.js.map +1 -0
  761. package/execution/incremental/Computation.mjs +64 -0
  762. package/execution/incremental/Computation.mjs.map +1 -0
  763. package/execution/incremental/IncrementalExecutor.d.mts +182 -0
  764. package/execution/incremental/IncrementalExecutor.d.ts +182 -0
  765. package/execution/incremental/IncrementalExecutor.js +390 -0
  766. package/execution/incremental/IncrementalExecutor.js.map +1 -0
  767. package/execution/incremental/IncrementalExecutor.mjs +386 -0
  768. package/execution/incremental/IncrementalExecutor.mjs.map +1 -0
  769. package/execution/incremental/IncrementalPublisher.d.mts +17 -0
  770. package/execution/incremental/IncrementalPublisher.d.ts +17 -0
  771. package/execution/incremental/IncrementalPublisher.js +201 -0
  772. package/execution/incremental/IncrementalPublisher.js.map +1 -0
  773. package/execution/incremental/IncrementalPublisher.mjs +197 -0
  774. package/execution/incremental/IncrementalPublisher.mjs.map +1 -0
  775. package/execution/incremental/Queue.d.mts +86 -0
  776. package/execution/incremental/Queue.d.ts +86 -0
  777. package/execution/incremental/Queue.js +330 -0
  778. package/execution/incremental/Queue.js.map +1 -0
  779. package/execution/incremental/Queue.mjs +325 -0
  780. package/execution/incremental/Queue.mjs.map +1 -0
  781. package/execution/incremental/WorkQueue.d.mts +67 -0
  782. package/execution/incremental/WorkQueue.d.ts +67 -0
  783. package/execution/incremental/WorkQueue.js +396 -0
  784. package/execution/incremental/WorkQueue.js.map +1 -0
  785. package/execution/incremental/WorkQueue.mjs +393 -0
  786. package/execution/incremental/WorkQueue.mjs.map +1 -0
  787. package/execution/incremental/buildExecutionPlan.d.mts +7 -0
  788. package/execution/{buildExecutionPlan.d.ts → incremental/buildExecutionPlan.d.ts} +1 -1
  789. package/execution/{buildExecutionPlan.js → incremental/buildExecutionPlan.js} +2 -2
  790. package/execution/incremental/buildExecutionPlan.js.map +1 -0
  791. package/execution/{buildExecutionPlan.mjs → incremental/buildExecutionPlan.mjs} +2 -2
  792. package/execution/incremental/buildExecutionPlan.mjs.map +1 -0
  793. package/execution/index.d.mts +8 -0
  794. package/execution/index.d.ts +6 -3
  795. package/execution/index.js +8 -4
  796. package/execution/index.js.map +1 -1
  797. package/execution/index.mjs +2 -1
  798. package/execution/index.mjs.map +1 -1
  799. package/execution/mapAsyncIterable.d.mts +6 -0
  800. package/execution/mapAsyncIterable.d.ts +1 -1
  801. package/execution/mapAsyncIterable.js +28 -51
  802. package/execution/mapAsyncIterable.js.map +1 -1
  803. package/execution/mapAsyncIterable.mjs +28 -51
  804. package/execution/mapAsyncIterable.mjs.map +1 -1
  805. package/execution/returnIteratorCatchingErrors.d.mts +1 -0
  806. package/execution/returnIteratorCatchingErrors.d.ts +1 -0
  807. package/execution/returnIteratorCatchingErrors.js +12 -0
  808. package/execution/returnIteratorCatchingErrors.js.map +1 -0
  809. package/execution/returnIteratorCatchingErrors.mjs +9 -0
  810. package/execution/returnIteratorCatchingErrors.mjs.map +1 -0
  811. package/execution/values.d.mts +61 -0
  812. package/execution/values.d.ts +12 -21
  813. package/execution/values.js +111 -74
  814. package/execution/values.js.map +1 -1
  815. package/execution/values.mjs +111 -73
  816. package/execution/values.mjs.map +1 -1
  817. package/execution/withConcurrentAbruptClose.d.mts +13 -0
  818. package/execution/withConcurrentAbruptClose.d.ts +13 -0
  819. package/execution/withConcurrentAbruptClose.js +72 -0
  820. package/execution/withConcurrentAbruptClose.js.map +1 -0
  821. package/execution/withConcurrentAbruptClose.mjs +69 -0
  822. package/execution/withConcurrentAbruptClose.mjs.map +1 -0
  823. package/graphql.d.mts +61 -0
  824. package/graphql.d.ts +9 -16
  825. package/graphql.js +22 -22
  826. package/graphql.js.map +1 -1
  827. package/graphql.mjs +22 -22
  828. package/graphql.mjs.map +1 -1
  829. package/harness.d.mts +15 -0
  830. package/harness.d.ts +15 -0
  831. package/harness.js +13 -0
  832. package/harness.js.map +1 -0
  833. package/harness.mjs +10 -0
  834. package/harness.mjs.map +1 -0
  835. package/index.d.mts +51 -0
  836. package/index.d.ts +10 -7
  837. package/index.js +25 -8
  838. package/index.js.map +1 -1
  839. package/index.mjs +11 -5
  840. package/index.mjs.map +1 -1
  841. package/jsutils/AccumulatorMap.d.mts +7 -0
  842. package/jsutils/AccumulatorMap.js +1 -0
  843. package/jsutils/AccumulatorMap.js.map +1 -1
  844. package/jsutils/AccumulatorMap.mjs +1 -0
  845. package/jsutils/AccumulatorMap.mjs.map +1 -1
  846. package/jsutils/Maybe.d.mts +2 -0
  847. package/jsutils/ObjMap.d.mts +18 -0
  848. package/jsutils/Path.d.mts +14 -0
  849. package/jsutils/PromiseOrValue.d.mts +1 -0
  850. package/jsutils/capitalize.d.mts +4 -0
  851. package/jsutils/devAssert.d.mts +1 -0
  852. package/jsutils/didYouMean.d.mts +5 -0
  853. package/jsutils/formatList.d.mts +8 -0
  854. package/jsutils/formatList.js +2 -1
  855. package/jsutils/formatList.js.map +1 -1
  856. package/jsutils/formatList.mjs +2 -1
  857. package/jsutils/formatList.mjs.map +1 -1
  858. package/jsutils/getBySet.d.mts +1 -0
  859. package/jsutils/groupBy.d.mts +4 -0
  860. package/jsutils/identityFunc.d.mts +4 -0
  861. package/jsutils/inspect.d.mts +4 -0
  862. package/jsutils/instanceOf.d.mts +15 -0
  863. package/jsutils/instanceOf.d.ts +8 -7
  864. package/jsutils/instanceOf.js +29 -30
  865. package/jsutils/instanceOf.js.map +1 -1
  866. package/jsutils/instanceOf.mjs +28 -30
  867. package/jsutils/instanceOf.mjs.map +1 -1
  868. package/jsutils/invariant.d.mts +1 -0
  869. package/jsutils/isAsyncIterable.d.mts +5 -0
  870. package/jsutils/isIterableObject.d.mts +18 -0
  871. package/jsutils/isObjectLike.d.mts +7 -0
  872. package/jsutils/isPromise.d.mts +6 -0
  873. package/jsutils/isPromise.d.ts +2 -1
  874. package/jsutils/isPromise.js +5 -1
  875. package/jsutils/isPromise.js.map +1 -1
  876. package/jsutils/isPromise.mjs +4 -1
  877. package/jsutils/isPromise.mjs.map +1 -1
  878. package/jsutils/isSameSet.d.mts +1 -0
  879. package/jsutils/keyMap.d.mts +29 -0
  880. package/jsutils/keyValMap.d.mts +19 -0
  881. package/jsutils/mapValue.d.mts +6 -0
  882. package/jsutils/memoize1.d.mts +4 -0
  883. package/jsutils/memoize1.d.ts +4 -0
  884. package/jsutils/memoize1.js +19 -0
  885. package/jsutils/memoize1.js.map +1 -0
  886. package/jsutils/memoize1.mjs +16 -0
  887. package/jsutils/memoize1.mjs.map +1 -0
  888. package/jsutils/memoize2.d.mts +4 -0
  889. package/jsutils/memoize2.d.ts +4 -0
  890. package/jsutils/memoize2.js +24 -0
  891. package/jsutils/memoize2.js.map +1 -0
  892. package/jsutils/memoize2.mjs +21 -0
  893. package/jsutils/memoize2.mjs.map +1 -0
  894. package/jsutils/memoize3.d.mts +4 -0
  895. package/jsutils/memoize3.js +1 -3
  896. package/jsutils/memoize3.js.map +1 -1
  897. package/jsutils/memoize3.mjs +1 -3
  898. package/jsutils/memoize3.mjs.map +1 -1
  899. package/jsutils/naturalCompare.d.mts +8 -0
  900. package/jsutils/printPathArray.d.mts +4 -0
  901. package/jsutils/promiseForObject.d.mts +10 -0
  902. package/jsutils/promiseForObject.d.ts +2 -1
  903. package/jsutils/promiseForObject.js +8 -7
  904. package/jsutils/promiseForObject.js.map +1 -1
  905. package/jsutils/promiseForObject.mjs +8 -7
  906. package/jsutils/promiseForObject.mjs.map +1 -1
  907. package/jsutils/promiseReduce.d.mts +9 -0
  908. package/jsutils/promiseWithResolvers.d.mts +10 -0
  909. package/jsutils/suggestionList.d.mts +5 -0
  910. package/jsutils/toError.d.mts +4 -0
  911. package/jsutils/toObjMap.d.mts +4 -0
  912. package/language/KindTypeMap.d.mts +2 -0
  913. package/language/KindTypeMap.d.ts +2 -0
  914. package/language/KindTypeMap.js +3 -0
  915. package/language/KindTypeMap.js.map +1 -0
  916. package/language/KindTypeMap.mjs +2 -0
  917. package/language/KindTypeMap.mjs.map +1 -0
  918. package/language/ast.d.mts +495 -0
  919. package/language/ast.d.ts +94 -51
  920. package/language/ast.js +15 -2
  921. package/language/ast.js.map +1 -1
  922. package/language/ast.mjs +15 -2
  923. package/language/ast.mjs.map +1 -1
  924. package/language/blockString.d.mts +23 -0
  925. package/language/characterClasses.d.mts +47 -0
  926. package/language/directiveLocation.d.mts +28 -0
  927. package/language/index.d.mts +16 -0
  928. package/language/index.d.ts +3 -3
  929. package/language/index.js +7 -2
  930. package/language/index.js.map +1 -1
  931. package/language/index.mjs +5 -3
  932. package/language/index.mjs.map +1 -1
  933. package/language/kinds.d.mts +3 -0
  934. package/language/kinds.js +34 -1
  935. package/language/kinds.js.map +1 -1
  936. package/language/kinds_.d.mts +109 -0
  937. package/language/kinds_.d.ts +11 -0
  938. package/language/kinds_.js +7 -1
  939. package/language/kinds_.js.map +1 -1
  940. package/language/kinds_.mjs +6 -0
  941. package/language/kinds_.mjs.map +1 -1
  942. package/language/lexer.d.mts +87 -0
  943. package/language/lexer.d.ts +43 -1
  944. package/language/lexer.js +10 -0
  945. package/language/lexer.js.map +1 -1
  946. package/language/lexer.mjs +10 -3
  947. package/language/lexer.mjs.map +1 -1
  948. package/language/location.d.mts +13 -0
  949. package/language/location.js +2 -1
  950. package/language/location.js.map +1 -1
  951. package/language/location.mjs +2 -1
  952. package/language/location.mjs.map +1 -1
  953. package/language/parser.d.mts +522 -0
  954. package/language/parser.d.ts +28 -4
  955. package/language/parser.js +101 -6
  956. package/language/parser.js.map +1 -1
  957. package/language/parser.mjs +100 -6
  958. package/language/parser.mjs.map +1 -1
  959. package/language/predicates.d.mts +19 -0
  960. package/language/predicates.d.ts +9 -1
  961. package/language/predicates.js +19 -0
  962. package/language/predicates.js.map +1 -1
  963. package/language/predicates.mjs +17 -0
  964. package/language/predicates.mjs.map +1 -1
  965. package/language/printLocation.d.mts +11 -0
  966. package/language/printString.d.mts +5 -0
  967. package/language/printer.d.mts +6 -0
  968. package/language/printer.js +28 -12
  969. package/language/printer.js.map +1 -1
  970. package/language/printer.mjs +28 -12
  971. package/language/printer.mjs.map +1 -1
  972. package/language/schemaCoordinateLexer.d.mts +43 -0
  973. package/language/schemaCoordinateLexer.d.ts +43 -0
  974. package/language/schemaCoordinateLexer.js +93 -0
  975. package/language/schemaCoordinateLexer.js.map +1 -0
  976. package/language/schemaCoordinateLexer.mjs +89 -0
  977. package/language/schemaCoordinateLexer.mjs.map +1 -0
  978. package/language/source.d.mts +26 -0
  979. package/language/source.d.ts +1 -0
  980. package/language/source.js +7 -3
  981. package/language/source.js.map +1 -1
  982. package/language/source.mjs +7 -3
  983. package/language/source.mjs.map +1 -1
  984. package/language/tokenKind.d.mts +30 -0
  985. package/language/tokenKind.d.ts +1 -0
  986. package/language/tokenKind.js +1 -0
  987. package/language/tokenKind.js.map +1 -1
  988. package/language/tokenKind.mjs +1 -0
  989. package/language/tokenKind.mjs.map +1 -1
  990. package/language/visitor.d.mts +160 -0
  991. package/language/visitor.js +3 -2
  992. package/language/visitor.js.map +1 -1
  993. package/language/visitor.mjs +3 -2
  994. package/language/visitor.mjs.map +1 -1
  995. package/package.json +174 -7
  996. package/type/assertName.d.mts +10 -0
  997. package/type/definition.d.mts +933 -0
  998. package/type/definition.d.ts +58 -16
  999. package/type/definition.js +53 -28
  1000. package/type/definition.js.map +1 -1
  1001. package/type/definition.mjs +53 -28
  1002. package/type/definition.mjs.map +1 -1
  1003. package/type/directives.d.mts +97 -0
  1004. package/type/directives.d.ts +5 -0
  1005. package/type/directives.js +20 -4
  1006. package/type/directives.js.map +1 -1
  1007. package/type/directives.mjs +19 -3
  1008. package/type/directives.mjs.map +1 -1
  1009. package/type/index.d.mts +12 -0
  1010. package/type/index.d.ts +1 -1
  1011. package/type/index.js.map +1 -1
  1012. package/type/index.mjs.map +1 -1
  1013. package/type/introspection.d.mts +26 -0
  1014. package/type/introspection.d.ts +3 -3
  1015. package/type/introspection.js +9 -7
  1016. package/type/introspection.js.map +1 -1
  1017. package/type/introspection.mjs +9 -7
  1018. package/type/introspection.mjs.map +1 -1
  1019. package/type/scalars.d.mts +19 -0
  1020. package/type/scalars.d.ts +5 -5
  1021. package/type/scalars.js +130 -38
  1022. package/type/scalars.js.map +1 -1
  1023. package/type/scalars.mjs +130 -38
  1024. package/type/scalars.mjs.map +1 -1
  1025. package/type/schema.d.mts +172 -0
  1026. package/type/schema.d.ts +2 -0
  1027. package/type/schema.js +11 -13
  1028. package/type/schema.js.map +1 -1
  1029. package/type/schema.mjs +11 -13
  1030. package/type/schema.mjs.map +1 -1
  1031. package/type/validate.d.mts +21 -0
  1032. package/type/validate.d.ts +6 -0
  1033. package/type/validate.js +48 -30
  1034. package/type/validate.js.map +1 -1
  1035. package/type/validate.mjs +47 -30
  1036. package/type/validate.mjs.map +1 -1
  1037. package/utilities/TypeInfo.d.mts +55 -0
  1038. package/utilities/TypeInfo.js +3 -1
  1039. package/utilities/TypeInfo.js.map +1 -1
  1040. package/utilities/TypeInfo.mjs +3 -1
  1041. package/utilities/TypeInfo.mjs.map +1 -1
  1042. package/utilities/astFromValue.d.mts +27 -0
  1043. package/utilities/astFromValue.d.ts +1 -0
  1044. package/utilities/astFromValue.js +8 -2
  1045. package/utilities/astFromValue.js.map +1 -1
  1046. package/utilities/astFromValue.mjs +8 -2
  1047. package/utilities/astFromValue.mjs.map +1 -1
  1048. package/utilities/buildASTSchema.d.mts +29 -0
  1049. package/utilities/buildClientSchema.d.mts +16 -0
  1050. package/utilities/buildClientSchema.js +10 -6
  1051. package/utilities/buildClientSchema.js.map +1 -1
  1052. package/utilities/buildClientSchema.mjs +9 -6
  1053. package/utilities/buildClientSchema.mjs.map +1 -1
  1054. package/utilities/coerceInputValue.d.mts +34 -0
  1055. package/utilities/coerceInputValue.d.ts +7 -1
  1056. package/utilities/coerceInputValue.js +36 -13
  1057. package/utilities/coerceInputValue.js.map +1 -1
  1058. package/utilities/coerceInputValue.mjs +36 -13
  1059. package/utilities/coerceInputValue.mjs.map +1 -1
  1060. package/utilities/concatAST.d.mts +7 -0
  1061. package/utilities/extendSchema.d.mts +29 -0
  1062. package/utilities/extendSchema.js +2 -1
  1063. package/utilities/extendSchema.js.map +1 -1
  1064. package/utilities/extendSchema.mjs +2 -1
  1065. package/utilities/extendSchema.mjs.map +1 -1
  1066. package/utilities/findSchemaChanges.d.mts +72 -0
  1067. package/utilities/findSchemaChanges.d.ts +18 -18
  1068. package/utilities/findSchemaChanges.js +4 -2
  1069. package/utilities/findSchemaChanges.js.map +1 -1
  1070. package/utilities/findSchemaChanges.mjs +4 -2
  1071. package/utilities/findSchemaChanges.mjs.map +1 -1
  1072. package/utilities/getDefaultValueAST.d.mts +3 -0
  1073. package/utilities/getDefaultValueAST.js +4 -2
  1074. package/utilities/getDefaultValueAST.js.map +1 -1
  1075. package/utilities/getDefaultValueAST.mjs +4 -2
  1076. package/utilities/getDefaultValueAST.mjs.map +1 -1
  1077. package/utilities/getIntrospectionQuery.d.mts +138 -0
  1078. package/utilities/getOperationAST.d.mts +8 -0
  1079. package/utilities/index.d.mts +32 -0
  1080. package/utilities/index.d.ts +2 -0
  1081. package/utilities/index.js +5 -1
  1082. package/utilities/index.js.map +1 -1
  1083. package/utilities/index.mjs +2 -0
  1084. package/utilities/index.mjs.map +1 -1
  1085. package/utilities/introspectionFromSchema.d.mts +12 -0
  1086. package/utilities/introspectionFromSchema.js +2 -1
  1087. package/utilities/introspectionFromSchema.js.map +1 -1
  1088. package/utilities/introspectionFromSchema.mjs +2 -1
  1089. package/utilities/introspectionFromSchema.mjs.map +1 -1
  1090. package/utilities/lexicographicSortSchema.d.mts +7 -0
  1091. package/utilities/mapSchemaConfig.d.mts +66 -0
  1092. package/utilities/mapSchemaConfig.d.ts +1 -1
  1093. package/utilities/mapSchemaConfig.js +6 -3
  1094. package/utilities/mapSchemaConfig.js.map +1 -1
  1095. package/utilities/mapSchemaConfig.mjs +6 -3
  1096. package/utilities/mapSchemaConfig.mjs.map +1 -1
  1097. package/utilities/printSchema.d.mts +7 -0
  1098. package/utilities/printSchema.js +4 -2
  1099. package/utilities/printSchema.js.map +1 -1
  1100. package/utilities/printSchema.mjs +4 -2
  1101. package/utilities/printSchema.mjs.map +1 -1
  1102. package/utilities/replaceVariables.d.mts +13 -0
  1103. package/utilities/replaceVariables.d.ts +2 -1
  1104. package/utilities/replaceVariables.js +17 -8
  1105. package/utilities/replaceVariables.js.map +1 -1
  1106. package/utilities/replaceVariables.mjs +17 -8
  1107. package/utilities/replaceVariables.mjs.map +1 -1
  1108. package/utilities/resolveSchemaCoordinate.d.mts +57 -0
  1109. package/utilities/resolveSchemaCoordinate.d.ts +57 -0
  1110. package/utilities/resolveSchemaCoordinate.js +167 -0
  1111. package/utilities/resolveSchemaCoordinate.js.map +1 -0
  1112. package/utilities/resolveSchemaCoordinate.mjs +163 -0
  1113. package/utilities/resolveSchemaCoordinate.mjs.map +1 -0
  1114. package/utilities/separateOperations.d.mts +9 -0
  1115. package/utilities/sortValueNode.d.mts +9 -0
  1116. package/utilities/stripIgnoredCharacters.d.mts +62 -0
  1117. package/utilities/typeComparators.d.mts +21 -0
  1118. package/utilities/typeFromAST.d.mts +15 -0
  1119. package/utilities/typedQueryDocumentNode.d.mts +17 -0
  1120. package/utilities/validateInputValue.d.mts +19 -0
  1121. package/utilities/validateInputValue.d.ts +2 -1
  1122. package/utilities/validateInputValue.js +42 -17
  1123. package/utilities/validateInputValue.js.map +1 -1
  1124. package/utilities/validateInputValue.mjs +42 -17
  1125. package/utilities/validateInputValue.mjs.map +1 -1
  1126. package/utilities/valueFromAST.d.mts +26 -0
  1127. package/utilities/valueFromAST.js +24 -9
  1128. package/utilities/valueFromAST.js.map +1 -1
  1129. package/utilities/valueFromAST.mjs +24 -9
  1130. package/utilities/valueFromAST.mjs.map +1 -1
  1131. package/utilities/valueFromASTUntyped.d.mts +20 -0
  1132. package/utilities/valueToLiteral.d.mts +31 -0
  1133. package/utilities/valueToLiteral.d.ts +1 -0
  1134. package/utilities/valueToLiteral.js +4 -1
  1135. package/utilities/valueToLiteral.js.map +1 -1
  1136. package/utilities/valueToLiteral.mjs +4 -1
  1137. package/utilities/valueToLiteral.mjs.map +1 -1
  1138. package/validation/ValidationContext.d.mts +70 -0
  1139. package/validation/ValidationContext.js +2 -0
  1140. package/validation/ValidationContext.js.map +1 -1
  1141. package/validation/ValidationContext.mjs +2 -0
  1142. package/validation/ValidationContext.mjs.map +1 -1
  1143. package/validation/index.d.mts +46 -0
  1144. package/validation/rules/DeferStreamDirectiveLabelRule.d.mts +8 -0
  1145. package/validation/rules/DeferStreamDirectiveLabelRule.js +1 -1
  1146. package/validation/rules/DeferStreamDirectiveLabelRule.js.map +1 -1
  1147. package/validation/rules/DeferStreamDirectiveLabelRule.mjs +1 -1
  1148. package/validation/rules/DeferStreamDirectiveLabelRule.mjs.map +1 -1
  1149. package/validation/rules/DeferStreamDirectiveOnRootFieldRule.d.mts +8 -0
  1150. package/validation/rules/DeferStreamDirectiveOnValidOperationsRule.d.mts +8 -0
  1151. package/validation/rules/ExecutableDefinitionsRule.d.mts +11 -0
  1152. package/validation/rules/FieldsOnCorrectTypeRule.d.mts +11 -0
  1153. package/validation/rules/FragmentsOnCompositeTypesRule.d.mts +12 -0
  1154. package/validation/rules/KnownArgumentNamesRule.d.mts +16 -0
  1155. package/validation/rules/KnownDirectivesRule.d.mts +11 -0
  1156. package/validation/rules/KnownDirectivesRule.js +7 -4
  1157. package/validation/rules/KnownDirectivesRule.js.map +1 -1
  1158. package/validation/rules/KnownDirectivesRule.mjs +7 -4
  1159. package/validation/rules/KnownDirectivesRule.mjs.map +1 -1
  1160. package/validation/rules/KnownFragmentNamesRule.d.mts +11 -0
  1161. package/validation/rules/KnownOperationTypesRule.d.mts +11 -0
  1162. package/validation/rules/KnownTypeNamesRule.d.mts +11 -0
  1163. package/validation/rules/LoneAnonymousOperationRule.d.mts +11 -0
  1164. package/validation/rules/LoneSchemaDefinitionRule.d.mts +8 -0
  1165. package/validation/rules/MaxIntrospectionDepthRule.d.mts +3 -0
  1166. package/validation/rules/MaxIntrospectionDepthRule.d.ts +2 -2
  1167. package/validation/rules/MaxIntrospectionDepthRule.js +1 -2
  1168. package/validation/rules/MaxIntrospectionDepthRule.js.map +1 -1
  1169. package/validation/rules/MaxIntrospectionDepthRule.mjs +1 -2
  1170. package/validation/rules/MaxIntrospectionDepthRule.mjs.map +1 -1
  1171. package/validation/rules/NoFragmentCyclesRule.d.mts +11 -0
  1172. package/validation/rules/NoUndefinedVariablesRule.d.mts +11 -0
  1173. package/validation/rules/NoUnusedFragmentsRule.d.mts +11 -0
  1174. package/validation/rules/NoUnusedVariablesRule.d.mts +11 -0
  1175. package/validation/rules/OverlappingFieldsCanBeMergedRule.d.mts +12 -0
  1176. package/validation/rules/OverlappingFieldsCanBeMergedRule.js +15 -14
  1177. package/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +1 -1
  1178. package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +15 -14
  1179. package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs.map +1 -1
  1180. package/validation/rules/PossibleFragmentSpreadsRule.d.mts +10 -0
  1181. package/validation/rules/PossibleTypeExtensionsRule.d.mts +8 -0
  1182. package/validation/rules/PossibleTypeExtensionsRule.js +5 -3
  1183. package/validation/rules/PossibleTypeExtensionsRule.js.map +1 -1
  1184. package/validation/rules/PossibleTypeExtensionsRule.mjs +5 -3
  1185. package/validation/rules/PossibleTypeExtensionsRule.mjs.map +1 -1
  1186. package/validation/rules/ProvidedRequiredArgumentsRule.d.mts +13 -0
  1187. package/validation/rules/ScalarLeafsRule.d.mts +9 -0
  1188. package/validation/rules/SingleFieldSubscriptionsRule.d.mts +12 -0
  1189. package/validation/rules/SingleFieldSubscriptionsRule.d.ts +2 -1
  1190. package/validation/rules/SingleFieldSubscriptionsRule.js +9 -2
  1191. package/validation/rules/SingleFieldSubscriptionsRule.js.map +1 -1
  1192. package/validation/rules/SingleFieldSubscriptionsRule.mjs +9 -2
  1193. package/validation/rules/SingleFieldSubscriptionsRule.mjs.map +1 -1
  1194. package/validation/rules/StreamDirectiveOnListFieldRule.d.mts +8 -0
  1195. package/validation/rules/UniqueArgumentDefinitionNamesRule.d.mts +9 -0
  1196. package/validation/rules/UniqueArgumentNamesRule.d.mts +11 -0
  1197. package/validation/rules/UniqueDirectiveNamesRule.d.mts +8 -0
  1198. package/validation/rules/UniqueDirectivesPerLocationRule.d.mts +11 -0
  1199. package/validation/rules/UniqueEnumValueNamesRule.d.mts +8 -0
  1200. package/validation/rules/UniqueFieldDefinitionNamesRule.d.mts +8 -0
  1201. package/validation/rules/UniqueFragmentNamesRule.d.mts +10 -0
  1202. package/validation/rules/UniqueInputFieldNamesRule.d.mts +11 -0
  1203. package/validation/rules/UniqueInputFieldNamesRule.js +2 -1
  1204. package/validation/rules/UniqueInputFieldNamesRule.js.map +1 -1
  1205. package/validation/rules/UniqueInputFieldNamesRule.mjs +2 -1
  1206. package/validation/rules/UniqueInputFieldNamesRule.mjs.map +1 -1
  1207. package/validation/rules/UniqueOperationNamesRule.d.mts +10 -0
  1208. package/validation/rules/UniqueOperationTypesRule.d.mts +8 -0
  1209. package/validation/rules/UniqueTypeNamesRule.d.mts +8 -0
  1210. package/validation/rules/UniqueVariableNamesRule.d.mts +8 -0
  1211. package/validation/rules/ValuesOfCorrectTypeRule.d.mts +11 -0
  1212. package/validation/rules/ValuesOfCorrectTypeRule.js +5 -0
  1213. package/validation/rules/ValuesOfCorrectTypeRule.js.map +1 -1
  1214. package/validation/rules/ValuesOfCorrectTypeRule.mjs +5 -0
  1215. package/validation/rules/ValuesOfCorrectTypeRule.mjs.map +1 -1
  1216. package/validation/rules/VariablesAreInputTypesRule.d.mts +11 -0
  1217. package/validation/rules/VariablesInAllowedPositionRule.d.mts +10 -0
  1218. package/validation/rules/VariablesInAllowedPositionRule.js +1 -3
  1219. package/validation/rules/VariablesInAllowedPositionRule.js.map +1 -1
  1220. package/validation/rules/VariablesInAllowedPositionRule.mjs +1 -3
  1221. package/validation/rules/VariablesInAllowedPositionRule.mjs.map +1 -1
  1222. package/validation/rules/custom/NoDeprecatedCustomRule.d.mts +13 -0
  1223. package/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.mts +13 -0
  1224. package/validation/specifiedRules.d.mts +17 -0
  1225. package/validation/specifiedRules.d.ts +1 -2
  1226. package/validation/specifiedRules.js +3 -1
  1227. package/validation/specifiedRules.js.map +1 -1
  1228. package/validation/specifiedRules.mjs +3 -1
  1229. package/validation/specifiedRules.mjs.map +1 -1
  1230. package/validation/validate.d.mts +48 -0
  1231. package/validation/validate.d.ts +5 -4
  1232. package/validation/validate.js +10 -5
  1233. package/validation/validate.js.map +1 -1
  1234. package/validation/validate.mjs +10 -5
  1235. package/validation/validate.mjs.map +1 -1
  1236. package/version.d.mts +13 -0
  1237. package/version.js +2 -2
  1238. package/version.js.map +1 -1
  1239. package/version.mjs +2 -2
  1240. package/version.mjs.map +1 -1
  1241. package/execution/AbortSignalListener.d.ts +0 -17
  1242. package/execution/AbortSignalListener.js +0 -71
  1243. package/execution/AbortSignalListener.js.map +0 -1
  1244. package/execution/AbortSignalListener.mjs +0 -65
  1245. package/execution/AbortSignalListener.mjs.map +0 -1
  1246. package/execution/IncrementalGraph.d.ts +0 -29
  1247. package/execution/IncrementalGraph.js +0 -232
  1248. package/execution/IncrementalGraph.js.map +0 -1
  1249. package/execution/IncrementalGraph.mjs +0 -228
  1250. package/execution/IncrementalGraph.mjs.map +0 -1
  1251. package/execution/IncrementalPublisher.d.ts +0 -10
  1252. package/execution/IncrementalPublisher.js +0 -259
  1253. package/execution/IncrementalPublisher.js.map +0 -1
  1254. package/execution/IncrementalPublisher.mjs +0 -256
  1255. package/execution/IncrementalPublisher.mjs.map +0 -1
  1256. package/execution/buildExecutionPlan.js.map +0 -1
  1257. package/execution/buildExecutionPlan.mjs.map +0 -1
  1258. package/execution/types.d.ts +0 -161
  1259. package/execution/types.js +0 -36
  1260. package/execution/types.js.map +0 -1
  1261. package/execution/types.mjs +0 -27
  1262. package/execution/types.mjs.map +0 -1
  1263. package/jsutils/BoxedPromiseOrValue.d.ts +0 -15
  1264. package/jsutils/BoxedPromiseOrValue.js +0 -27
  1265. package/jsutils/BoxedPromiseOrValue.js.map +0 -1
  1266. package/jsutils/BoxedPromiseOrValue.mjs +0 -23
  1267. package/jsutils/BoxedPromiseOrValue.mjs.map +0 -1
package/language/ast.mjs CHANGED
@@ -22,7 +22,7 @@ export class Location {
22
22
  * within a Source.
23
23
  */
24
24
  export class Token {
25
- // eslint-disable-next-line @typescript-eslint/max-params
25
+ // eslint-disable-next-line max-params
26
26
  constructor(kind, start, end, line, column, value) {
27
27
  this.kind = kind;
28
28
  this.start = start;
@@ -53,12 +53,19 @@ export const QueryDocumentKeys = {
53
53
  Name: [],
54
54
  Document: ['definitions'],
55
55
  OperationDefinition: [
56
+ 'description',
56
57
  'name',
57
58
  'variableDefinitions',
58
59
  'directives',
59
60
  'selectionSet',
60
61
  ],
61
- VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],
62
+ VariableDefinition: [
63
+ 'description',
64
+ 'variable',
65
+ 'type',
66
+ 'defaultValue',
67
+ 'directives',
68
+ ],
62
69
  Variable: ['name'],
63
70
  SelectionSet: ['selections'],
64
71
  Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],
@@ -73,6 +80,7 @@ export const QueryDocumentKeys = {
73
80
  ],
74
81
  InlineFragment: ['typeCondition', 'directives', 'selectionSet'],
75
82
  FragmentDefinition: [
83
+ 'description',
76
84
  'name',
77
85
  // Note: Fragment variables are experimental and may be changed or removed
78
86
  // in the future.
@@ -131,6 +139,11 @@ export const QueryDocumentKeys = {
131
139
  UnionTypeExtension: ['name', 'directives', 'types'],
132
140
  EnumTypeExtension: ['name', 'directives', 'values'],
133
141
  InputObjectTypeExtension: ['name', 'directives', 'fields'],
142
+ TypeCoordinate: ['name'],
143
+ MemberCoordinate: ['name', 'memberName'],
144
+ ArgumentCoordinate: ['name', 'fieldName', 'argumentName'],
145
+ DirectiveCoordinate: ['name'],
146
+ DirectiveArgumentCoordinate: ['name', 'argumentName'],
134
147
  };
135
148
  const kindValues = new Set(Object.keys(QueryDocumentKeys));
136
149
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ast.js","sourceRoot":"","sources":["../../src/language/ast.ts"],"names":[],"mappings":"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","sourcesContent":["import type { Kind } from './kinds.js';\nimport type { Source } from './source.js';\nimport type { TokenKind } from './tokenKind.js';\n\n/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport class Location {\n /**\n * The character offset at which this Node begins.\n */\n readonly start: number;\n\n /**\n * The character offset at which this Node ends.\n */\n readonly end: number;\n\n /**\n * The Token at which this Node begins.\n */\n readonly startToken: Token;\n\n /**\n * The Token at which this Node ends.\n */\n readonly endToken: Token;\n\n /**\n * The Source document the AST represents.\n */\n readonly source: Source;\n\n constructor(startToken: Token, endToken: Token, source: Source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n\n get [Symbol.toStringTag]() {\n return 'Location';\n }\n\n toJSON(): { start: number; end: number } {\n return { start: this.start, end: this.end };\n }\n}\n\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\nexport class Token {\n /**\n * The kind of Token.\n */\n readonly kind: TokenKind;\n\n /**\n * The character offset at which this Node begins.\n */\n readonly start: number;\n\n /**\n * The character offset at which this Node ends.\n */\n readonly end: number;\n\n /**\n * The 1-indexed line number on which this Token appears.\n */\n readonly line: number;\n\n /**\n * The 1-indexed column number at which this Token begins.\n */\n readonly column: number;\n\n /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n *\n * Note: is undefined for punctuation tokens, but typed as string for\n * convenience in the parser.\n */\n readonly value: string;\n\n /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. <SOF> is always the first node and <EOF>\n * the last.\n */\n readonly prev: Token | null;\n readonly next: Token | null;\n\n // eslint-disable-next-line @typescript-eslint/max-params\n constructor(\n kind: TokenKind,\n start: number,\n end: number,\n line: number,\n column: number,\n value?: string,\n ) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.value = value!;\n this.prev = null;\n this.next = null;\n }\n\n get [Symbol.toStringTag]() {\n return 'Token';\n }\n\n toJSON(): {\n kind: TokenKind;\n value?: string;\n line: number;\n column: number;\n } {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column,\n };\n }\n}\n\n/**\n * The list of all possible AST node types.\n */\nexport type ASTNode =\n | NameNode\n | DocumentNode\n | OperationDefinitionNode\n | VariableDefinitionNode\n | VariableNode\n | SelectionSetNode\n | FieldNode\n | ArgumentNode\n | FragmentArgumentNode\n | FragmentSpreadNode\n | InlineFragmentNode\n | FragmentDefinitionNode\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ListValueNode\n | ObjectValueNode\n | ObjectFieldNode\n | DirectiveNode\n | NamedTypeNode\n | ListTypeNode\n | NonNullTypeNode\n | SchemaDefinitionNode\n | OperationTypeDefinitionNode\n | ScalarTypeDefinitionNode\n | ObjectTypeDefinitionNode\n | FieldDefinitionNode\n | InputValueDefinitionNode\n | InterfaceTypeDefinitionNode\n | UnionTypeDefinitionNode\n | EnumTypeDefinitionNode\n | EnumValueDefinitionNode\n | InputObjectTypeDefinitionNode\n | DirectiveDefinitionNode\n | SchemaExtensionNode\n | ScalarTypeExtensionNode\n | ObjectTypeExtensionNode\n | InterfaceTypeExtensionNode\n | UnionTypeExtensionNode\n | EnumTypeExtensionNode\n | InputObjectTypeExtensionNode;\n\n/**\n * Utility type listing all nodes indexed by their kind.\n */\nexport type ASTKindToNode = {\n [NodeT in ASTNode as NodeT['kind']]: NodeT;\n};\n\n/**\n * @internal\n */\nexport const QueryDocumentKeys: {\n [NodeT in ASTNode as NodeT['kind']]: ReadonlyArray<keyof NodeT>;\n} = {\n Name: [],\n\n Document: ['definitions'],\n OperationDefinition: [\n 'name',\n 'variableDefinitions',\n 'directives',\n 'selectionSet',\n ],\n VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],\n Variable: ['name'],\n SelectionSet: ['selections'],\n Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n Argument: ['name', 'value'],\n FragmentArgument: ['name', 'value'],\n\n FragmentSpread: [\n 'name',\n // Note: Fragment arguments are experimental and may be changed or removed\n // in the future.\n 'arguments',\n 'directives',\n ],\n InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n FragmentDefinition: [\n 'name',\n // Note: Fragment variables are experimental and may be changed or removed\n // in the future.\n 'variableDefinitions',\n 'typeCondition',\n 'directives',\n 'selectionSet',\n ],\n\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: ['values'],\n ObjectValue: ['fields'],\n ObjectField: ['name', 'value'],\n\n Directive: ['name', 'arguments'],\n\n NamedType: ['name'],\n ListType: ['type'],\n NonNullType: ['type'],\n\n SchemaDefinition: ['description', 'directives', 'operationTypes'],\n OperationTypeDefinition: ['type'],\n\n ScalarTypeDefinition: ['description', 'name', 'directives'],\n ObjectTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n InputValueDefinition: [\n 'description',\n 'name',\n 'type',\n 'defaultValue',\n 'directives',\n ],\n InterfaceTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n EnumValueDefinition: ['description', 'name', 'directives'],\n InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n\n DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n\n SchemaExtension: ['directives', 'operationTypes'],\n\n ScalarTypeExtension: ['name', 'directives'],\n ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n UnionTypeExtension: ['name', 'directives', 'types'],\n EnumTypeExtension: ['name', 'directives', 'values'],\n InputObjectTypeExtension: ['name', 'directives', 'fields'],\n};\n\nconst kindValues = new Set<string>(Object.keys(QueryDocumentKeys));\n/**\n * @internal\n */\nexport function isNode(maybeNode: any): maybeNode is ASTNode {\n const maybeKind = maybeNode?.kind;\n return typeof maybeKind === 'string' && kindValues.has(maybeKind);\n}\n\n/** Name */\n\nexport interface NameNode {\n readonly kind: typeof Kind.NAME;\n readonly loc?: Location | undefined;\n readonly value: string;\n}\n\n/** Document */\n\nexport interface DocumentNode {\n readonly kind: typeof Kind.DOCUMENT;\n readonly loc?: Location | undefined;\n readonly definitions: ReadonlyArray<DefinitionNode>;\n readonly tokenCount?: number | undefined;\n}\n\nexport type DefinitionNode =\n | ExecutableDefinitionNode\n | TypeSystemDefinitionNode\n | TypeSystemExtensionNode;\n\nexport type ExecutableDefinitionNode =\n | OperationDefinitionNode\n | FragmentDefinitionNode;\n\nexport interface OperationDefinitionNode {\n readonly kind: typeof Kind.OPERATION_DEFINITION;\n readonly loc?: Location | undefined;\n readonly operation: OperationTypeNode;\n readonly name?: NameNode | undefined;\n readonly variableDefinitions?:\n | ReadonlyArray<VariableDefinitionNode>\n | undefined;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n readonly selectionSet: SelectionSetNode;\n}\n\nexport const OperationTypeNode = {\n QUERY: 'query' as const,\n MUTATION: 'mutation' as const,\n SUBSCRIPTION: 'subscription' as const,\n} as const;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type OperationTypeNode =\n (typeof OperationTypeNode)[keyof typeof OperationTypeNode];\n\nexport interface VariableDefinitionNode {\n readonly kind: typeof Kind.VARIABLE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly variable: VariableNode;\n readonly type: TypeNode;\n readonly defaultValue?: ConstValueNode | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface VariableNode {\n readonly kind: typeof Kind.VARIABLE;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n}\n\nexport interface SelectionSetNode {\n kind: typeof Kind.SELECTION_SET;\n loc?: Location | undefined;\n selections: ReadonlyArray<SelectionNode>;\n}\n\nexport type SelectionNode = FieldNode | FragmentSpreadNode | InlineFragmentNode;\n\nexport interface FieldNode {\n readonly kind: typeof Kind.FIELD;\n readonly loc?: Location | undefined;\n readonly alias?: NameNode | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ArgumentNode> | undefined;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n readonly selectionSet?: SelectionSetNode | undefined;\n}\n\nexport interface ArgumentNode {\n readonly kind: typeof Kind.ARGUMENT;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\nexport interface ConstArgumentNode {\n readonly kind: typeof Kind.ARGUMENT;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ConstValueNode;\n}\n\nexport interface FragmentArgumentNode {\n readonly kind: typeof Kind.FRAGMENT_ARGUMENT;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\n/** Fragments */\n\nexport interface FragmentSpreadNode {\n readonly kind: typeof Kind.FRAGMENT_SPREAD;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<FragmentArgumentNode> | undefined;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n}\n\nexport interface InlineFragmentNode {\n readonly kind: typeof Kind.INLINE_FRAGMENT;\n readonly loc?: Location | undefined;\n readonly typeCondition?: NamedTypeNode | undefined;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n readonly selectionSet: SelectionSetNode;\n}\n\nexport interface FragmentDefinitionNode {\n readonly kind: typeof Kind.FRAGMENT_DEFINITION;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly variableDefinitions?:\n | ReadonlyArray<VariableDefinitionNode>\n | undefined;\n readonly typeCondition: NamedTypeNode;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n readonly selectionSet: SelectionSetNode;\n}\n\n/** Values */\n\nexport type ValueNode =\n | VariableNode\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ListValueNode\n | ObjectValueNode;\n\nexport type ConstValueNode =\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ConstListValueNode\n | ConstObjectValueNode;\n\nexport interface IntValueNode {\n readonly kind: typeof Kind.INT;\n readonly loc?: Location | undefined;\n readonly value: string;\n}\n\nexport interface FloatValueNode {\n readonly kind: typeof Kind.FLOAT;\n readonly loc?: Location | undefined;\n readonly value: string;\n}\n\nexport interface StringValueNode {\n readonly kind: typeof Kind.STRING;\n readonly loc?: Location | undefined;\n readonly value: string;\n readonly block?: boolean | undefined;\n}\n\nexport interface BooleanValueNode {\n readonly kind: typeof Kind.BOOLEAN;\n readonly loc?: Location | undefined;\n readonly value: boolean;\n}\n\nexport interface NullValueNode {\n readonly kind: typeof Kind.NULL;\n readonly loc?: Location | undefined;\n}\n\nexport interface EnumValueNode {\n readonly kind: typeof Kind.ENUM;\n readonly loc?: Location | undefined;\n readonly value: string;\n}\n\nexport interface ListValueNode {\n readonly kind: typeof Kind.LIST;\n readonly loc?: Location | undefined;\n readonly values: ReadonlyArray<ValueNode>;\n}\n\nexport interface ConstListValueNode {\n readonly kind: typeof Kind.LIST;\n readonly loc?: Location | undefined;\n readonly values: ReadonlyArray<ConstValueNode>;\n}\n\nexport interface ObjectValueNode {\n readonly kind: typeof Kind.OBJECT;\n readonly loc?: Location | undefined;\n readonly fields: ReadonlyArray<ObjectFieldNode>;\n}\n\nexport interface ConstObjectValueNode {\n readonly kind: typeof Kind.OBJECT;\n readonly loc?: Location | undefined;\n readonly fields: ReadonlyArray<ConstObjectFieldNode>;\n}\n\nexport interface ObjectFieldNode {\n readonly kind: typeof Kind.OBJECT_FIELD;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\nexport interface ConstObjectFieldNode {\n readonly kind: typeof Kind.OBJECT_FIELD;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ConstValueNode;\n}\n\n/** Directives */\n\nexport interface DirectiveNode {\n readonly kind: typeof Kind.DIRECTIVE;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ArgumentNode> | undefined;\n}\n\nexport interface ConstDirectiveNode {\n readonly kind: typeof Kind.DIRECTIVE;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ConstArgumentNode> | undefined;\n}\n\n/** Type Reference */\n\nexport type TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode;\n\nexport interface NamedTypeNode {\n readonly kind: typeof Kind.NAMED_TYPE;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n}\n\nexport interface ListTypeNode {\n readonly kind: typeof Kind.LIST_TYPE;\n readonly loc?: Location | undefined;\n readonly type: TypeNode;\n}\n\nexport interface NonNullTypeNode {\n readonly kind: typeof Kind.NON_NULL_TYPE;\n readonly loc?: Location | undefined;\n readonly type: NamedTypeNode | ListTypeNode;\n}\n\n/** Type System Definition */\n\nexport type TypeSystemDefinitionNode =\n | SchemaDefinitionNode\n | TypeDefinitionNode\n | DirectiveDefinitionNode;\n\nexport interface SchemaDefinitionNode {\n readonly kind: typeof Kind.SCHEMA_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly operationTypes: ReadonlyArray<OperationTypeDefinitionNode>;\n}\n\nexport interface OperationTypeDefinitionNode {\n readonly kind: typeof Kind.OPERATION_TYPE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly operation: OperationTypeNode;\n readonly type: NamedTypeNode;\n}\n\n/** Type Definition */\n\nexport type TypeDefinitionNode =\n | ScalarTypeDefinitionNode\n | ObjectTypeDefinitionNode\n | InterfaceTypeDefinitionNode\n | UnionTypeDefinitionNode\n | EnumTypeDefinitionNode\n | InputObjectTypeDefinitionNode;\n\nexport interface ScalarTypeDefinitionNode {\n readonly kind: typeof Kind.SCALAR_TYPE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface ObjectTypeDefinitionNode {\n readonly kind: typeof Kind.OBJECT_TYPE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode> | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<FieldDefinitionNode> | undefined;\n}\n\nexport interface FieldDefinitionNode {\n readonly kind: typeof Kind.FIELD_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<InputValueDefinitionNode> | undefined;\n readonly type: TypeNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface InputValueDefinitionNode {\n readonly kind: typeof Kind.INPUT_VALUE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly type: TypeNode;\n readonly defaultValue?: ConstValueNode | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface InterfaceTypeDefinitionNode {\n readonly kind: typeof Kind.INTERFACE_TYPE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode> | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<FieldDefinitionNode> | undefined;\n}\n\nexport interface UnionTypeDefinitionNode {\n readonly kind: typeof Kind.UNION_TYPE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly types?: ReadonlyArray<NamedTypeNode> | undefined;\n}\n\nexport interface EnumTypeDefinitionNode {\n readonly kind: typeof Kind.ENUM_TYPE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly values?: ReadonlyArray<EnumValueDefinitionNode> | undefined;\n}\n\nexport interface EnumValueDefinitionNode {\n readonly kind: typeof Kind.ENUM_VALUE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface InputObjectTypeDefinitionNode {\n readonly kind: typeof Kind.INPUT_OBJECT_TYPE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<InputValueDefinitionNode> | undefined;\n}\n\n/** Directive Definitions */\n\nexport interface DirectiveDefinitionNode {\n readonly kind: typeof Kind.DIRECTIVE_DEFINITION;\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<InputValueDefinitionNode> | undefined;\n readonly repeatable: boolean;\n readonly locations: ReadonlyArray<NameNode>;\n}\n\n/** Type System Extensions */\n\nexport type TypeSystemExtensionNode = SchemaExtensionNode | TypeExtensionNode;\n\nexport interface SchemaExtensionNode {\n readonly kind: typeof Kind.SCHEMA_EXTENSION;\n readonly loc?: Location | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly operationTypes?:\n | ReadonlyArray<OperationTypeDefinitionNode>\n | undefined;\n}\n\n/** Type Extensions */\n\nexport type TypeExtensionNode =\n | ScalarTypeExtensionNode\n | ObjectTypeExtensionNode\n | InterfaceTypeExtensionNode\n | UnionTypeExtensionNode\n | EnumTypeExtensionNode\n | InputObjectTypeExtensionNode;\n\nexport interface ScalarTypeExtensionNode {\n readonly kind: typeof Kind.SCALAR_TYPE_EXTENSION;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface ObjectTypeExtensionNode {\n readonly kind: typeof Kind.OBJECT_TYPE_EXTENSION;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode> | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<FieldDefinitionNode> | undefined;\n}\n\nexport interface InterfaceTypeExtensionNode {\n readonly kind: typeof Kind.INTERFACE_TYPE_EXTENSION;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode> | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<FieldDefinitionNode> | undefined;\n}\n\nexport interface UnionTypeExtensionNode {\n readonly kind: typeof Kind.UNION_TYPE_EXTENSION;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly types?: ReadonlyArray<NamedTypeNode> | undefined;\n}\n\nexport interface EnumTypeExtensionNode {\n readonly kind: typeof Kind.ENUM_TYPE_EXTENSION;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly values?: ReadonlyArray<EnumValueDefinitionNode> | undefined;\n}\n\nexport interface InputObjectTypeExtensionNode {\n readonly kind: typeof Kind.INPUT_OBJECT_TYPE_EXTENSION;\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<InputValueDefinitionNode> | undefined;\n}\n"]}
1
+ {"version":3,"file":"ast.js","sourceRoot":"","sources":["../../src/language/ast.ts"],"names":[],"mappings":"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","sourcesContent":["import type { KindTypeMap } from './KindTypeMap.js';\nimport type { Source } from './source.js';\nimport type { TokenKind } from './tokenKind.js';\n\n/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport class Location {\n /**\n * The character offset at which this Node begins.\n */\n readonly start: number;\n\n /**\n * The character offset at which this Node ends.\n */\n readonly end: number;\n\n /**\n * The Token at which this Node begins.\n */\n readonly startToken: Token;\n\n /**\n * The Token at which this Node ends.\n */\n readonly endToken: Token;\n\n /**\n * The Source document the AST represents.\n */\n readonly source: Source;\n\n constructor(startToken: Token, endToken: Token, source: Source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n\n get [Symbol.toStringTag](): string {\n return 'Location';\n }\n\n toJSON(): { start: number; end: number } {\n return { start: this.start, end: this.end };\n }\n}\n\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\nexport class Token {\n /**\n * The kind of Token.\n */\n readonly kind: TokenKind;\n\n /**\n * The character offset at which this Node begins.\n */\n readonly start: number;\n\n /**\n * The character offset at which this Node ends.\n */\n readonly end: number;\n\n /**\n * The 1-indexed line number on which this Token appears.\n */\n readonly line: number;\n\n /**\n * The 1-indexed column number at which this Token begins.\n */\n readonly column: number;\n\n /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n *\n * Note: is undefined for punctuation tokens, but typed as string for\n * convenience in the parser.\n */\n readonly value: string;\n\n /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. <SOF> is always the first node and <EOF>\n * the last.\n */\n readonly prev: Token | null;\n readonly next: Token | null;\n\n // eslint-disable-next-line max-params\n constructor(\n kind: TokenKind,\n start: number,\n end: number,\n line: number,\n column: number,\n value?: string,\n ) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.value = value!;\n this.prev = null;\n this.next = null;\n }\n\n get [Symbol.toStringTag](): string {\n return 'Token';\n }\n\n toJSON(): {\n kind: TokenKind;\n value?: string;\n line: number;\n column: number;\n } {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column,\n };\n }\n}\n\n/**\n * The list of all possible AST node types.\n */\nexport type ASTNode =\n | NameNode\n | DocumentNode\n | OperationDefinitionNode\n | VariableDefinitionNode\n | VariableNode\n | SelectionSetNode\n | FieldNode\n | ArgumentNode\n | FragmentArgumentNode\n | FragmentSpreadNode\n | InlineFragmentNode\n | FragmentDefinitionNode\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ListValueNode\n | ObjectValueNode\n | ObjectFieldNode\n | DirectiveNode\n | NamedTypeNode\n | ListTypeNode\n | NonNullTypeNode\n | SchemaDefinitionNode\n | OperationTypeDefinitionNode\n | ScalarTypeDefinitionNode\n | ObjectTypeDefinitionNode\n | FieldDefinitionNode\n | InputValueDefinitionNode\n | InterfaceTypeDefinitionNode\n | UnionTypeDefinitionNode\n | EnumTypeDefinitionNode\n | EnumValueDefinitionNode\n | InputObjectTypeDefinitionNode\n | DirectiveDefinitionNode\n | SchemaExtensionNode\n | ScalarTypeExtensionNode\n | ObjectTypeExtensionNode\n | InterfaceTypeExtensionNode\n | UnionTypeExtensionNode\n | EnumTypeExtensionNode\n | InputObjectTypeExtensionNode\n | TypeCoordinateNode\n | MemberCoordinateNode\n | ArgumentCoordinateNode\n | DirectiveCoordinateNode\n | DirectiveArgumentCoordinateNode;\n\n/**\n * Utility type listing all nodes indexed by their kind.\n */\nexport type ASTKindToNode = {\n [NodeT in ASTNode as NodeT['kind']]: NodeT;\n};\n\n/**\n * @internal\n */\nexport const QueryDocumentKeys: {\n [NodeT in ASTNode as NodeT['kind']]: ReadonlyArray<keyof NodeT>;\n} = {\n Name: [],\n\n Document: ['definitions'],\n OperationDefinition: [\n 'description',\n 'name',\n 'variableDefinitions',\n 'directives',\n 'selectionSet',\n ],\n VariableDefinition: [\n 'description',\n 'variable',\n 'type',\n 'defaultValue',\n 'directives',\n ],\n Variable: ['name'],\n SelectionSet: ['selections'],\n Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n Argument: ['name', 'value'],\n FragmentArgument: ['name', 'value'],\n\n FragmentSpread: [\n 'name',\n // Note: Fragment arguments are experimental and may be changed or removed\n // in the future.\n 'arguments',\n 'directives',\n ],\n InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n FragmentDefinition: [\n 'description',\n 'name',\n // Note: Fragment variables are experimental and may be changed or removed\n // in the future.\n 'variableDefinitions',\n 'typeCondition',\n 'directives',\n 'selectionSet',\n ],\n\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: ['values'],\n ObjectValue: ['fields'],\n ObjectField: ['name', 'value'],\n\n Directive: ['name', 'arguments'],\n\n NamedType: ['name'],\n ListType: ['type'],\n NonNullType: ['type'],\n\n SchemaDefinition: ['description', 'directives', 'operationTypes'],\n OperationTypeDefinition: ['type'],\n\n ScalarTypeDefinition: ['description', 'name', 'directives'],\n ObjectTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n InputValueDefinition: [\n 'description',\n 'name',\n 'type',\n 'defaultValue',\n 'directives',\n ],\n InterfaceTypeDefinition: [\n 'description',\n 'name',\n 'interfaces',\n 'directives',\n 'fields',\n ],\n UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n EnumValueDefinition: ['description', 'name', 'directives'],\n InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n\n DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n\n SchemaExtension: ['directives', 'operationTypes'],\n\n ScalarTypeExtension: ['name', 'directives'],\n ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n UnionTypeExtension: ['name', 'directives', 'types'],\n EnumTypeExtension: ['name', 'directives', 'values'],\n InputObjectTypeExtension: ['name', 'directives', 'fields'],\n\n TypeCoordinate: ['name'],\n MemberCoordinate: ['name', 'memberName'],\n ArgumentCoordinate: ['name', 'fieldName', 'argumentName'],\n DirectiveCoordinate: ['name'],\n DirectiveArgumentCoordinate: ['name', 'argumentName'],\n};\n\nconst kindValues = new Set<string>(Object.keys(QueryDocumentKeys));\n/**\n * @internal\n */\nexport function isNode(maybeNode: any): maybeNode is ASTNode {\n const maybeKind = maybeNode?.kind;\n return typeof maybeKind === 'string' && kindValues.has(maybeKind);\n}\n\n/** Name */\n\nexport interface NameNode {\n readonly kind: KindTypeMap['NAME'];\n readonly loc?: Location | undefined;\n readonly value: string;\n}\n\n/** Document */\n\nexport interface DocumentNode {\n readonly kind: KindTypeMap['DOCUMENT'];\n readonly loc?: Location | undefined;\n readonly definitions: ReadonlyArray<DefinitionNode>;\n readonly tokenCount?: number | undefined;\n}\n\nexport type DefinitionNode =\n | ExecutableDefinitionNode\n | TypeSystemDefinitionNode\n | TypeSystemExtensionNode;\n\nexport type ExecutableDefinitionNode =\n | OperationDefinitionNode\n | FragmentDefinitionNode;\n\nexport interface OperationDefinitionNode {\n readonly kind: KindTypeMap['OPERATION_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly operation: OperationTypeNode;\n readonly name?: NameNode | undefined;\n readonly variableDefinitions?:\n | ReadonlyArray<VariableDefinitionNode>\n | undefined;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n readonly selectionSet: SelectionSetNode;\n}\n\n/**\n * A narrowed OperationDefinitionNode for subscription operations.\n * Subscription operations go through a distinct execution pipeline\n * (source event stream + per-event execution), so narrowing the operation\n * type allows functions in that pipeline to accept only valid input.\n */\nexport interface SubscriptionOperationDefinitionNode extends OperationDefinitionNode {\n readonly operation: (typeof OperationTypeNode)['SUBSCRIPTION'];\n}\n\nexport const OperationTypeNode = {\n QUERY: 'query' as const,\n MUTATION: 'mutation' as const,\n SUBSCRIPTION: 'subscription' as const,\n} as const;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type OperationTypeNode =\n (typeof OperationTypeNode)[keyof typeof OperationTypeNode];\n\nexport interface VariableDefinitionNode {\n readonly kind: KindTypeMap['VARIABLE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly variable: VariableNode;\n readonly type: TypeNode;\n readonly defaultValue?: ConstValueNode | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface VariableNode {\n readonly kind: KindTypeMap['VARIABLE'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n}\n\nexport interface SelectionSetNode {\n kind: KindTypeMap['SELECTION_SET'];\n loc?: Location | undefined;\n selections: ReadonlyArray<SelectionNode>;\n}\n\nexport type SelectionNode = FieldNode | FragmentSpreadNode | InlineFragmentNode;\n\nexport interface FieldNode {\n readonly kind: KindTypeMap['FIELD'];\n readonly loc?: Location | undefined;\n readonly alias?: NameNode | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ArgumentNode> | undefined;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n readonly selectionSet?: SelectionSetNode | undefined;\n}\n\nexport interface ArgumentNode {\n readonly kind: KindTypeMap['ARGUMENT'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\nexport interface ConstArgumentNode {\n readonly kind: KindTypeMap['ARGUMENT'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ConstValueNode;\n}\n\nexport interface FragmentArgumentNode {\n readonly kind: KindTypeMap['FRAGMENT_ARGUMENT'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\n/** Fragments */\n\nexport interface FragmentSpreadNode {\n readonly kind: KindTypeMap['FRAGMENT_SPREAD'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<FragmentArgumentNode> | undefined;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n}\n\nexport interface InlineFragmentNode {\n readonly kind: KindTypeMap['INLINE_FRAGMENT'];\n readonly loc?: Location | undefined;\n readonly typeCondition?: NamedTypeNode | undefined;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n readonly selectionSet: SelectionSetNode;\n}\n\nexport interface FragmentDefinitionNode {\n readonly kind: KindTypeMap['FRAGMENT_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly variableDefinitions?:\n | ReadonlyArray<VariableDefinitionNode>\n | undefined;\n readonly typeCondition: NamedTypeNode;\n readonly directives?: ReadonlyArray<DirectiveNode> | undefined;\n readonly selectionSet: SelectionSetNode;\n}\n\n/** Values */\n\nexport type ValueNode =\n | VariableNode\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ListValueNode\n | ObjectValueNode;\n\nexport type ConstValueNode =\n | IntValueNode\n | FloatValueNode\n | StringValueNode\n | BooleanValueNode\n | NullValueNode\n | EnumValueNode\n | ConstListValueNode\n | ConstObjectValueNode;\n\nexport interface IntValueNode {\n readonly kind: KindTypeMap['INT'];\n readonly loc?: Location | undefined;\n readonly value: string;\n}\n\nexport interface FloatValueNode {\n readonly kind: KindTypeMap['FLOAT'];\n readonly loc?: Location | undefined;\n readonly value: string;\n}\n\nexport interface StringValueNode {\n readonly kind: KindTypeMap['STRING'];\n readonly loc?: Location | undefined;\n readonly value: string;\n readonly block?: boolean | undefined;\n}\n\nexport interface BooleanValueNode {\n readonly kind: KindTypeMap['BOOLEAN'];\n readonly loc?: Location | undefined;\n readonly value: boolean;\n}\n\nexport interface NullValueNode {\n readonly kind: KindTypeMap['NULL'];\n readonly loc?: Location | undefined;\n}\n\nexport interface EnumValueNode {\n readonly kind: KindTypeMap['ENUM'];\n readonly loc?: Location | undefined;\n readonly value: string;\n}\n\nexport interface ListValueNode {\n readonly kind: KindTypeMap['LIST'];\n readonly loc?: Location | undefined;\n readonly values: ReadonlyArray<ValueNode>;\n}\n\nexport interface ConstListValueNode {\n readonly kind: KindTypeMap['LIST'];\n readonly loc?: Location | undefined;\n readonly values: ReadonlyArray<ConstValueNode>;\n}\n\nexport interface ObjectValueNode {\n readonly kind: KindTypeMap['OBJECT'];\n readonly loc?: Location | undefined;\n readonly fields: ReadonlyArray<ObjectFieldNode>;\n}\n\nexport interface ConstObjectValueNode {\n readonly kind: KindTypeMap['OBJECT'];\n readonly loc?: Location | undefined;\n readonly fields: ReadonlyArray<ConstObjectFieldNode>;\n}\n\nexport interface ObjectFieldNode {\n readonly kind: KindTypeMap['OBJECT_FIELD'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ValueNode;\n}\n\nexport interface ConstObjectFieldNode {\n readonly kind: KindTypeMap['OBJECT_FIELD'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly value: ConstValueNode;\n}\n\n/** Directives */\n\nexport interface DirectiveNode {\n readonly kind: KindTypeMap['DIRECTIVE'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ArgumentNode> | undefined;\n}\n\nexport interface ConstDirectiveNode {\n readonly kind: KindTypeMap['DIRECTIVE'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<ConstArgumentNode> | undefined;\n}\n\n/** Type Reference */\n\nexport type TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode;\n\nexport interface NamedTypeNode {\n readonly kind: KindTypeMap['NAMED_TYPE'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n}\n\nexport interface ListTypeNode {\n readonly kind: KindTypeMap['LIST_TYPE'];\n readonly loc?: Location | undefined;\n readonly type: TypeNode;\n}\n\nexport interface NonNullTypeNode {\n readonly kind: KindTypeMap['NON_NULL_TYPE'];\n readonly loc?: Location | undefined;\n readonly type: NamedTypeNode | ListTypeNode;\n}\n\n/** Type System Definition */\n\nexport type TypeSystemDefinitionNode =\n | SchemaDefinitionNode\n | TypeDefinitionNode\n | DirectiveDefinitionNode;\n\nexport interface SchemaDefinitionNode {\n readonly kind: KindTypeMap['SCHEMA_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly operationTypes: ReadonlyArray<OperationTypeDefinitionNode>;\n}\n\nexport interface OperationTypeDefinitionNode {\n readonly kind: KindTypeMap['OPERATION_TYPE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly operation: OperationTypeNode;\n readonly type: NamedTypeNode;\n}\n\n/** Type Definition */\n\nexport type TypeDefinitionNode =\n | ScalarTypeDefinitionNode\n | ObjectTypeDefinitionNode\n | InterfaceTypeDefinitionNode\n | UnionTypeDefinitionNode\n | EnumTypeDefinitionNode\n | InputObjectTypeDefinitionNode;\n\nexport interface ScalarTypeDefinitionNode {\n readonly kind: KindTypeMap['SCALAR_TYPE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface ObjectTypeDefinitionNode {\n readonly kind: KindTypeMap['OBJECT_TYPE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode> | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<FieldDefinitionNode> | undefined;\n}\n\nexport interface FieldDefinitionNode {\n readonly kind: KindTypeMap['FIELD_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<InputValueDefinitionNode> | undefined;\n readonly type: TypeNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface InputValueDefinitionNode {\n readonly kind: KindTypeMap['INPUT_VALUE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly type: TypeNode;\n readonly defaultValue?: ConstValueNode | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface InterfaceTypeDefinitionNode {\n readonly kind: KindTypeMap['INTERFACE_TYPE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode> | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<FieldDefinitionNode> | undefined;\n}\n\nexport interface UnionTypeDefinitionNode {\n readonly kind: KindTypeMap['UNION_TYPE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly types?: ReadonlyArray<NamedTypeNode> | undefined;\n}\n\nexport interface EnumTypeDefinitionNode {\n readonly kind: KindTypeMap['ENUM_TYPE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly values?: ReadonlyArray<EnumValueDefinitionNode> | undefined;\n}\n\nexport interface EnumValueDefinitionNode {\n readonly kind: KindTypeMap['ENUM_VALUE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface InputObjectTypeDefinitionNode {\n readonly kind: KindTypeMap['INPUT_OBJECT_TYPE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<InputValueDefinitionNode> | undefined;\n}\n\n/** Directive Definitions */\n\nexport interface DirectiveDefinitionNode {\n readonly kind: KindTypeMap['DIRECTIVE_DEFINITION'];\n readonly loc?: Location | undefined;\n readonly description?: StringValueNode | undefined;\n readonly name: NameNode;\n readonly arguments?: ReadonlyArray<InputValueDefinitionNode> | undefined;\n readonly repeatable: boolean;\n readonly locations: ReadonlyArray<NameNode>;\n}\n\n/** Type System Extensions */\n\nexport type TypeSystemExtensionNode = SchemaExtensionNode | TypeExtensionNode;\n\nexport interface SchemaExtensionNode {\n readonly kind: KindTypeMap['SCHEMA_EXTENSION'];\n readonly loc?: Location | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly operationTypes?:\n | ReadonlyArray<OperationTypeDefinitionNode>\n | undefined;\n}\n\n/** Type Extensions */\n\nexport type TypeExtensionNode =\n | ScalarTypeExtensionNode\n | ObjectTypeExtensionNode\n | InterfaceTypeExtensionNode\n | UnionTypeExtensionNode\n | EnumTypeExtensionNode\n | InputObjectTypeExtensionNode;\n\nexport interface ScalarTypeExtensionNode {\n readonly kind: KindTypeMap['SCALAR_TYPE_EXTENSION'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n}\n\nexport interface ObjectTypeExtensionNode {\n readonly kind: KindTypeMap['OBJECT_TYPE_EXTENSION'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode> | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<FieldDefinitionNode> | undefined;\n}\n\nexport interface InterfaceTypeExtensionNode {\n readonly kind: KindTypeMap['INTERFACE_TYPE_EXTENSION'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly interfaces?: ReadonlyArray<NamedTypeNode> | undefined;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<FieldDefinitionNode> | undefined;\n}\n\nexport interface UnionTypeExtensionNode {\n readonly kind: KindTypeMap['UNION_TYPE_EXTENSION'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly types?: ReadonlyArray<NamedTypeNode> | undefined;\n}\n\nexport interface EnumTypeExtensionNode {\n readonly kind: KindTypeMap['ENUM_TYPE_EXTENSION'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly values?: ReadonlyArray<EnumValueDefinitionNode> | undefined;\n}\n\nexport interface InputObjectTypeExtensionNode {\n readonly kind: KindTypeMap['INPUT_OBJECT_TYPE_EXTENSION'];\n readonly loc?: Location | undefined;\n readonly name: NameNode;\n readonly directives?: ReadonlyArray<ConstDirectiveNode> | undefined;\n readonly fields?: ReadonlyArray<InputValueDefinitionNode> | undefined;\n}\n\n/** Schema Coordinates */\n\nexport type SchemaCoordinateNode =\n | TypeCoordinateNode\n | MemberCoordinateNode\n | ArgumentCoordinateNode\n | DirectiveCoordinateNode\n | DirectiveArgumentCoordinateNode;\n\nexport interface TypeCoordinateNode {\n readonly kind: KindTypeMap['TYPE_COORDINATE'];\n readonly loc?: Location;\n readonly name: NameNode;\n}\n\nexport interface MemberCoordinateNode {\n readonly kind: KindTypeMap['MEMBER_COORDINATE'];\n readonly loc?: Location;\n readonly name: NameNode;\n readonly memberName: NameNode;\n}\n\nexport interface ArgumentCoordinateNode {\n readonly kind: KindTypeMap['ARGUMENT_COORDINATE'];\n readonly loc?: Location;\n readonly name: NameNode;\n readonly fieldName: NameNode;\n readonly argumentName: NameNode;\n}\n\nexport interface DirectiveCoordinateNode {\n readonly kind: KindTypeMap['DIRECTIVE_COORDINATE'];\n readonly loc?: Location;\n readonly name: NameNode;\n}\n\nexport interface DirectiveArgumentCoordinateNode {\n readonly kind: KindTypeMap['DIRECTIVE_ARGUMENT_COORDINATE'];\n readonly loc?: Location;\n readonly name: NameNode;\n readonly argumentName: NameNode;\n}\n"]}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Produces the value of a block string from its parsed raw value, similar to
3
+ * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.
4
+ *
5
+ * This implements the GraphQL spec's BlockStringValue() static algorithm.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare function dedentBlockStringLines(lines: ReadonlyArray<string>): Array<string>;
10
+ /**
11
+ * @internal
12
+ */
13
+ export declare function isPrintableAsBlockString(value: string): boolean;
14
+ /**
15
+ * Print a block string in the indented block form by adding a leading and
16
+ * trailing blank line. However, if a block string starts with whitespace and is
17
+ * a single-line, adding a leading blank line would strip that whitespace.
18
+ *
19
+ * @internal
20
+ */
21
+ export declare function printBlockString(value: string, options?: {
22
+ minimize?: boolean;
23
+ }): string;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * ```
3
+ * WhiteSpace ::
4
+ * - "Horizontal Tab (U+0009)"
5
+ * - "Space (U+0020)"
6
+ * ```
7
+ * @internal
8
+ */
9
+ export declare function isWhiteSpace(code: number): boolean;
10
+ /**
11
+ * ```
12
+ * Digit :: one of
13
+ * - `0` `1` `2` `3` `4` `5` `6` `7` `8` `9`
14
+ * ```
15
+ * @internal
16
+ */
17
+ export declare function isDigit(code: number): boolean;
18
+ /**
19
+ * ```
20
+ * Letter :: one of
21
+ * - `A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M`
22
+ * - `N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z`
23
+ * - `a` `b` `c` `d` `e` `f` `g` `h` `i` `j` `k` `l` `m`
24
+ * - `n` `o` `p` `q` `r` `s` `t` `u` `v` `w` `x` `y` `z`
25
+ * ```
26
+ * @internal
27
+ */
28
+ export declare function isLetter(code: number): boolean;
29
+ /**
30
+ * ```
31
+ * NameStart ::
32
+ * - Letter
33
+ * - `_`
34
+ * ```
35
+ * @internal
36
+ */
37
+ export declare function isNameStart(code: number): boolean;
38
+ /**
39
+ * ```
40
+ * NameContinue ::
41
+ * - Letter
42
+ * - Digit
43
+ * - `_`
44
+ * ```
45
+ * @internal
46
+ */
47
+ export declare function isNameContinue(code: number): boolean;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * The set of allowed directive location values.
3
+ */
4
+ export declare const DirectiveLocation: {
5
+ /** Request Definitions */
6
+ readonly QUERY: "QUERY";
7
+ readonly MUTATION: "MUTATION";
8
+ readonly SUBSCRIPTION: "SUBSCRIPTION";
9
+ readonly FIELD: "FIELD";
10
+ readonly FRAGMENT_DEFINITION: "FRAGMENT_DEFINITION";
11
+ readonly FRAGMENT_SPREAD: "FRAGMENT_SPREAD";
12
+ readonly INLINE_FRAGMENT: "INLINE_FRAGMENT";
13
+ readonly VARIABLE_DEFINITION: "VARIABLE_DEFINITION";
14
+ /** Type System Definitions */
15
+ readonly SCHEMA: "SCHEMA";
16
+ readonly SCALAR: "SCALAR";
17
+ readonly OBJECT: "OBJECT";
18
+ readonly FIELD_DEFINITION: "FIELD_DEFINITION";
19
+ readonly ARGUMENT_DEFINITION: "ARGUMENT_DEFINITION";
20
+ readonly INTERFACE: "INTERFACE";
21
+ readonly UNION: "UNION";
22
+ readonly ENUM: "ENUM";
23
+ readonly ENUM_VALUE: "ENUM_VALUE";
24
+ readonly INPUT_OBJECT: "INPUT_OBJECT";
25
+ readonly INPUT_FIELD_DEFINITION: "INPUT_FIELD_DEFINITION";
26
+ readonly FRAGMENT_VARIABLE_DEFINITION: "FRAGMENT_VARIABLE_DEFINITION";
27
+ };
28
+ export type DirectiveLocation = (typeof DirectiveLocation)[keyof typeof DirectiveLocation];
@@ -0,0 +1,16 @@
1
+ export { Source } from './source.js';
2
+ export { getLocation } from './location.js';
3
+ export type { SourceLocation } from './location.js';
4
+ export { printLocation, printSourceLocation } from './printLocation.js';
5
+ export { Kind } from './kinds.js';
6
+ export { TokenKind } from './tokenKind.js';
7
+ export { Lexer } from './lexer.js';
8
+ export { parse, parseValue, parseConstValue, parseType, parseSchemaCoordinate, } from './parser.js';
9
+ export type { ParseOptions } from './parser.js';
10
+ export { print } from './printer.js';
11
+ export { visit, visitInParallel, getEnterLeaveForKind, BREAK, } from './visitor.js';
12
+ export type { ASTVisitor, ASTVisitFn, ASTVisitorKeyMap } from './visitor.js';
13
+ export { Location, Token, OperationTypeNode } from './ast.js';
14
+ export type { ASTNode, ASTKindToNode, NameNode, DocumentNode, DefinitionNode, ExecutableDefinitionNode, OperationDefinitionNode, SubscriptionOperationDefinitionNode, VariableDefinitionNode, VariableNode, SelectionSetNode, SelectionNode, FieldNode, ArgumentNode, FragmentArgumentNode, ConstArgumentNode, FragmentSpreadNode, InlineFragmentNode, FragmentDefinitionNode, ValueNode, ConstValueNode, IntValueNode, FloatValueNode, StringValueNode, BooleanValueNode, NullValueNode, EnumValueNode, ListValueNode, ConstListValueNode, ObjectValueNode, ConstObjectValueNode, ObjectFieldNode, ConstObjectFieldNode, DirectiveNode, ConstDirectiveNode, TypeNode, NamedTypeNode, ListTypeNode, NonNullTypeNode, TypeSystemDefinitionNode, SchemaDefinitionNode, OperationTypeDefinitionNode, TypeDefinitionNode, ScalarTypeDefinitionNode, ObjectTypeDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, EnumTypeDefinitionNode, EnumValueDefinitionNode, InputObjectTypeDefinitionNode, DirectiveDefinitionNode, TypeSystemExtensionNode, SchemaExtensionNode, TypeExtensionNode, ScalarTypeExtensionNode, ObjectTypeExtensionNode, InterfaceTypeExtensionNode, UnionTypeExtensionNode, EnumTypeExtensionNode, InputObjectTypeExtensionNode, SchemaCoordinateNode, TypeCoordinateNode, MemberCoordinateNode, ArgumentCoordinateNode, DirectiveCoordinateNode, DirectiveArgumentCoordinateNode, } from './ast.js';
15
+ export { isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isConstValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode, isSchemaCoordinateNode, isSubscriptionOperationDefinitionNode, } from './predicates.js';
16
+ export { DirectiveLocation } from './directiveLocation.js';
@@ -5,12 +5,12 @@ export { printLocation, printSourceLocation } from './printLocation.js';
5
5
  export { Kind } from './kinds.js';
6
6
  export { TokenKind } from './tokenKind.js';
7
7
  export { Lexer } from './lexer.js';
8
- export { parse, parseValue, parseConstValue, parseType } from './parser.js';
8
+ export { parse, parseValue, parseConstValue, parseType, parseSchemaCoordinate, } from './parser.js';
9
9
  export type { ParseOptions } from './parser.js';
10
10
  export { print } from './printer.js';
11
11
  export { visit, visitInParallel, getEnterLeaveForKind, BREAK, } from './visitor.js';
12
12
  export type { ASTVisitor, ASTVisitFn, ASTVisitorKeyMap } from './visitor.js';
13
13
  export { Location, Token, OperationTypeNode } from './ast.js';
14
- export type { ASTNode, ASTKindToNode, NameNode, DocumentNode, DefinitionNode, ExecutableDefinitionNode, OperationDefinitionNode, VariableDefinitionNode, VariableNode, SelectionSetNode, SelectionNode, FieldNode, ArgumentNode, FragmentArgumentNode, ConstArgumentNode, FragmentSpreadNode, InlineFragmentNode, FragmentDefinitionNode, ValueNode, ConstValueNode, IntValueNode, FloatValueNode, StringValueNode, BooleanValueNode, NullValueNode, EnumValueNode, ListValueNode, ConstListValueNode, ObjectValueNode, ConstObjectValueNode, ObjectFieldNode, ConstObjectFieldNode, DirectiveNode, ConstDirectiveNode, TypeNode, NamedTypeNode, ListTypeNode, NonNullTypeNode, TypeSystemDefinitionNode, SchemaDefinitionNode, OperationTypeDefinitionNode, TypeDefinitionNode, ScalarTypeDefinitionNode, ObjectTypeDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, EnumTypeDefinitionNode, EnumValueDefinitionNode, InputObjectTypeDefinitionNode, DirectiveDefinitionNode, TypeSystemExtensionNode, SchemaExtensionNode, TypeExtensionNode, ScalarTypeExtensionNode, ObjectTypeExtensionNode, InterfaceTypeExtensionNode, UnionTypeExtensionNode, EnumTypeExtensionNode, InputObjectTypeExtensionNode, } from './ast.js';
15
- export { isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isConstValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode, } from './predicates.js';
14
+ export type { ASTNode, ASTKindToNode, NameNode, DocumentNode, DefinitionNode, ExecutableDefinitionNode, OperationDefinitionNode, SubscriptionOperationDefinitionNode, VariableDefinitionNode, VariableNode, SelectionSetNode, SelectionNode, FieldNode, ArgumentNode, FragmentArgumentNode, ConstArgumentNode, FragmentSpreadNode, InlineFragmentNode, FragmentDefinitionNode, ValueNode, ConstValueNode, IntValueNode, FloatValueNode, StringValueNode, BooleanValueNode, NullValueNode, EnumValueNode, ListValueNode, ConstListValueNode, ObjectValueNode, ConstObjectValueNode, ObjectFieldNode, ConstObjectFieldNode, DirectiveNode, ConstDirectiveNode, TypeNode, NamedTypeNode, ListTypeNode, NonNullTypeNode, TypeSystemDefinitionNode, SchemaDefinitionNode, OperationTypeDefinitionNode, TypeDefinitionNode, ScalarTypeDefinitionNode, ObjectTypeDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, InterfaceTypeDefinitionNode, UnionTypeDefinitionNode, EnumTypeDefinitionNode, EnumValueDefinitionNode, InputObjectTypeDefinitionNode, DirectiveDefinitionNode, TypeSystemExtensionNode, SchemaExtensionNode, TypeExtensionNode, ScalarTypeExtensionNode, ObjectTypeExtensionNode, InterfaceTypeExtensionNode, UnionTypeExtensionNode, EnumTypeExtensionNode, InputObjectTypeExtensionNode, SchemaCoordinateNode, TypeCoordinateNode, MemberCoordinateNode, ArgumentCoordinateNode, DirectiveCoordinateNode, DirectiveArgumentCoordinateNode, } from './ast.js';
15
+ export { isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isConstValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode, isSchemaCoordinateNode, isSubscriptionOperationDefinitionNode, } from './predicates.js';
16
16
  export { DirectiveLocation } from './directiveLocation.js';
package/language/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DirectiveLocation = exports.isTypeExtensionNode = exports.isTypeSystemExtensionNode = exports.isTypeDefinitionNode = exports.isTypeSystemDefinitionNode = exports.isTypeNode = exports.isConstValueNode = exports.isValueNode = exports.isSelectionNode = exports.isExecutableDefinitionNode = exports.isDefinitionNode = exports.OperationTypeNode = exports.Token = exports.Location = exports.BREAK = exports.getEnterLeaveForKind = exports.visitInParallel = exports.visit = exports.parseType = exports.parseConstValue = exports.parseValue = exports.parse = exports.Lexer = exports.TokenKind = exports.Kind = exports.printSourceLocation = exports.printLocation = exports.getLocation = exports.Source = void 0;
3
+ exports.DirectiveLocation = exports.isSubscriptionOperationDefinitionNode = exports.isSchemaCoordinateNode = exports.isTypeExtensionNode = exports.isTypeSystemExtensionNode = exports.isTypeDefinitionNode = exports.isTypeSystemDefinitionNode = exports.isTypeNode = exports.isConstValueNode = exports.isValueNode = exports.isSelectionNode = exports.isExecutableDefinitionNode = exports.isDefinitionNode = exports.OperationTypeNode = exports.Token = exports.Location = exports.BREAK = exports.getEnterLeaveForKind = exports.visitInParallel = exports.visit = exports.print = exports.parseSchemaCoordinate = exports.parseType = exports.parseConstValue = exports.parseValue = exports.parse = exports.Lexer = exports.TokenKind = exports.Kind = exports.printSourceLocation = exports.printLocation = exports.getLocation = exports.Source = void 0;
4
4
  var source_js_1 = require("./source.js");
5
5
  Object.defineProperty(exports, "Source", { enumerable: true, get: function () { return source_js_1.Source; } });
6
6
  var location_js_1 = require("./location.js");
@@ -9,7 +9,9 @@ var printLocation_js_1 = require("./printLocation.js");
9
9
  Object.defineProperty(exports, "printLocation", { enumerable: true, get: function () { return printLocation_js_1.printLocation; } });
10
10
  Object.defineProperty(exports, "printSourceLocation", { enumerable: true, get: function () { return printLocation_js_1.printSourceLocation; } });
11
11
  // @see https://github.com/typescript-eslint/typescript-eslint/issues/10313
12
- // eslint-disable-next-line @typescript-eslint/consistent-type-exports
12
+ // Deno misclassifies this merged value+type re-export and requires `export type`.
13
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14
+ // @ts-ignore TS1205
13
15
  var kinds_js_1 = require("./kinds.js");
14
16
  Object.defineProperty(exports, "Kind", { enumerable: true, get: function () { return kinds_js_1.Kind; } });
15
17
  var tokenKind_js_1 = require("./tokenKind.js");
@@ -21,6 +23,7 @@ Object.defineProperty(exports, "parse", { enumerable: true, get: function () { r
21
23
  Object.defineProperty(exports, "parseValue", { enumerable: true, get: function () { return parser_js_1.parseValue; } });
22
24
  Object.defineProperty(exports, "parseConstValue", { enumerable: true, get: function () { return parser_js_1.parseConstValue; } });
23
25
  Object.defineProperty(exports, "parseType", { enumerable: true, get: function () { return parser_js_1.parseType; } });
26
+ Object.defineProperty(exports, "parseSchemaCoordinate", { enumerable: true, get: function () { return parser_js_1.parseSchemaCoordinate; } });
24
27
  var printer_js_1 = require("./printer.js");
25
28
  Object.defineProperty(exports, "print", { enumerable: true, get: function () { return printer_js_1.print; } });
26
29
  var visitor_js_1 = require("./visitor.js");
@@ -43,6 +46,8 @@ Object.defineProperty(exports, "isTypeSystemDefinitionNode", { enumerable: true,
43
46
  Object.defineProperty(exports, "isTypeDefinitionNode", { enumerable: true, get: function () { return predicates_js_1.isTypeDefinitionNode; } });
44
47
  Object.defineProperty(exports, "isTypeSystemExtensionNode", { enumerable: true, get: function () { return predicates_js_1.isTypeSystemExtensionNode; } });
45
48
  Object.defineProperty(exports, "isTypeExtensionNode", { enumerable: true, get: function () { return predicates_js_1.isTypeExtensionNode; } });
49
+ Object.defineProperty(exports, "isSchemaCoordinateNode", { enumerable: true, get: function () { return predicates_js_1.isSchemaCoordinateNode; } });
50
+ Object.defineProperty(exports, "isSubscriptionOperationDefinitionNode", { enumerable: true, get: function () { return predicates_js_1.isSubscriptionOperationDefinitionNode; } });
46
51
  var directiveLocation_js_1 = require("./directiveLocation.js");
47
52
  Object.defineProperty(exports, "DirectiveLocation", { enumerable: true, get: function () { return directiveLocation_js_1.DirectiveLocation; } });
48
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/language/index.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAA5B,mGAAA,MAAM,OAAA;AAEf,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAGpB,uDAAwE;AAA/D,iHAAA,aAAa,OAAA;AAAE,uHAAA,mBAAmB,OAAA;AAE3C,2EAA2E;AAC3E,sEAAsE;AACtE,uCAAkC;AAAzB,gGAAA,IAAI,OAAA;AAEb,+CAA2C;AAAlC,yGAAA,SAAS,OAAA;AAElB,uCAAmC;AAA1B,iGAAA,KAAK,OAAA;AAEd,yCAA4E;AAAnE,kGAAA,KAAK,OAAA;AAAE,uGAAA,UAAU,OAAA;AAAE,4GAAA,eAAe,OAAA;AAAE,sGAAA,SAAS,OAAA;AAGtD,2CAAqC;AAA5B,mGAAA,KAAK,OAAA;AAEd,2CAKsB;AAJpB,mGAAA,KAAK,OAAA;AACL,6GAAA,eAAe,OAAA;AACf,kHAAA,oBAAoB,OAAA;AACpB,mGAAA,KAAK,OAAA;AAIP,mCAA8D;AAArD,kGAAA,QAAQ,OAAA;AAAE,+FAAA,KAAK,OAAA;AAAE,2GAAA,iBAAiB,OAAA;AAkE3C,iDAWyB;AAVvB,iHAAA,gBAAgB,OAAA;AAChB,2HAAA,0BAA0B,OAAA;AAC1B,gHAAA,eAAe,OAAA;AACf,4GAAA,WAAW,OAAA;AACX,iHAAA,gBAAgB,OAAA;AAChB,2GAAA,UAAU,OAAA;AACV,2HAAA,0BAA0B,OAAA;AAC1B,qHAAA,oBAAoB,OAAA;AACpB,0HAAA,yBAAyB,OAAA;AACzB,oHAAA,mBAAmB,OAAA;AAGrB,+DAA2D;AAAlD,yHAAA,iBAAiB,OAAA","sourcesContent":["export { Source } from './source.js';\n\nexport { getLocation } from './location.js';\nexport type { SourceLocation } from './location.js';\n\nexport { printLocation, printSourceLocation } from './printLocation.js';\n\n// @see https://github.com/typescript-eslint/typescript-eslint/issues/10313\n// eslint-disable-next-line @typescript-eslint/consistent-type-exports\nexport { Kind } from './kinds.js';\n\nexport { TokenKind } from './tokenKind.js';\n\nexport { Lexer } from './lexer.js';\n\nexport { parse, parseValue, parseConstValue, parseType } from './parser.js';\nexport type { ParseOptions } from './parser.js';\n\nexport { print } from './printer.js';\n\nexport {\n visit,\n visitInParallel,\n getEnterLeaveForKind,\n BREAK,\n} from './visitor.js';\nexport type { ASTVisitor, ASTVisitFn, ASTVisitorKeyMap } from './visitor.js';\n\nexport { Location, Token, OperationTypeNode } from './ast.js';\nexport type {\n ASTNode,\n ASTKindToNode,\n // Each kind of AST node\n NameNode,\n DocumentNode,\n DefinitionNode,\n ExecutableDefinitionNode,\n OperationDefinitionNode,\n VariableDefinitionNode,\n VariableNode,\n SelectionSetNode,\n SelectionNode,\n FieldNode,\n ArgumentNode,\n FragmentArgumentNode /* for experimental fragment arguments */,\n ConstArgumentNode,\n FragmentSpreadNode,\n InlineFragmentNode,\n FragmentDefinitionNode,\n ValueNode,\n ConstValueNode,\n IntValueNode,\n FloatValueNode,\n StringValueNode,\n BooleanValueNode,\n NullValueNode,\n EnumValueNode,\n ListValueNode,\n ConstListValueNode,\n ObjectValueNode,\n ConstObjectValueNode,\n ObjectFieldNode,\n ConstObjectFieldNode,\n DirectiveNode,\n ConstDirectiveNode,\n TypeNode,\n NamedTypeNode,\n ListTypeNode,\n NonNullTypeNode,\n TypeSystemDefinitionNode,\n SchemaDefinitionNode,\n OperationTypeDefinitionNode,\n TypeDefinitionNode,\n ScalarTypeDefinitionNode,\n ObjectTypeDefinitionNode,\n FieldDefinitionNode,\n InputValueDefinitionNode,\n InterfaceTypeDefinitionNode,\n UnionTypeDefinitionNode,\n EnumTypeDefinitionNode,\n EnumValueDefinitionNode,\n InputObjectTypeDefinitionNode,\n DirectiveDefinitionNode,\n TypeSystemExtensionNode,\n SchemaExtensionNode,\n TypeExtensionNode,\n ScalarTypeExtensionNode,\n ObjectTypeExtensionNode,\n InterfaceTypeExtensionNode,\n UnionTypeExtensionNode,\n EnumTypeExtensionNode,\n InputObjectTypeExtensionNode,\n} from './ast.js';\n\nexport {\n isDefinitionNode,\n isExecutableDefinitionNode,\n isSelectionNode,\n isValueNode,\n isConstValueNode,\n isTypeNode,\n isTypeSystemDefinitionNode,\n isTypeDefinitionNode,\n isTypeSystemExtensionNode,\n isTypeExtensionNode,\n} from './predicates.js';\n\nexport { DirectiveLocation } from './directiveLocation.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/language/index.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAA5B,mGAAA,MAAM,OAAA;AAEf,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAGpB,uDAAwE;AAA/D,iHAAA,aAAa,OAAA;AAAE,uHAAA,mBAAmB,OAAA;AAE3C,2EAA2E;AAC3E,mFAAmF;AACnF,6DAA6D;AAC7D,oBAAoB;AACpB,uCAAkC;AAAzB,gGAAA,IAAI,OAAA;AAEb,+CAA2C;AAAlC,yGAAA,SAAS,OAAA;AAElB,uCAAmC;AAA1B,iGAAA,KAAK,OAAA;AAEd,yCAMqB;AALnB,kGAAA,KAAK,OAAA;AACL,uGAAA,UAAU,OAAA;AACV,4GAAA,eAAe,OAAA;AACf,sGAAA,SAAS,OAAA;AACT,kHAAA,qBAAqB,OAAA;AAIvB,2CAAqC;AAA5B,mGAAA,KAAK,OAAA;AAEd,2CAKsB;AAJpB,mGAAA,KAAK,OAAA;AACL,6GAAA,eAAe,OAAA;AACf,kHAAA,oBAAoB,OAAA;AACpB,mGAAA,KAAK,OAAA;AAIP,mCAA8D;AAArD,kGAAA,QAAQ,OAAA;AAAE,+FAAA,KAAK,OAAA;AAAE,2GAAA,iBAAiB,OAAA;AAyE3C,iDAayB;AAZvB,iHAAA,gBAAgB,OAAA;AAChB,2HAAA,0BAA0B,OAAA;AAC1B,gHAAA,eAAe,OAAA;AACf,4GAAA,WAAW,OAAA;AACX,iHAAA,gBAAgB,OAAA;AAChB,2GAAA,UAAU,OAAA;AACV,2HAAA,0BAA0B,OAAA;AAC1B,qHAAA,oBAAoB,OAAA;AACpB,0HAAA,yBAAyB,OAAA;AACzB,oHAAA,mBAAmB,OAAA;AACnB,uHAAA,sBAAsB,OAAA;AACtB,sIAAA,qCAAqC,OAAA;AAGvC,+DAA2D;AAAlD,yHAAA,iBAAiB,OAAA","sourcesContent":["export { Source } from './source.js';\n\nexport { getLocation } from './location.js';\nexport type { SourceLocation } from './location.js';\n\nexport { printLocation, printSourceLocation } from './printLocation.js';\n\n// @see https://github.com/typescript-eslint/typescript-eslint/issues/10313\n// Deno misclassifies this merged value+type re-export and requires `export type`.\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore TS1205\nexport { Kind } from './kinds.js';\n\nexport { TokenKind } from './tokenKind.js';\n\nexport { Lexer } from './lexer.js';\n\nexport {\n parse,\n parseValue,\n parseConstValue,\n parseType,\n parseSchemaCoordinate,\n} from './parser.js';\nexport type { ParseOptions } from './parser.js';\n\nexport { print } from './printer.js';\n\nexport {\n visit,\n visitInParallel,\n getEnterLeaveForKind,\n BREAK,\n} from './visitor.js';\nexport type { ASTVisitor, ASTVisitFn, ASTVisitorKeyMap } from './visitor.js';\n\nexport { Location, Token, OperationTypeNode } from './ast.js';\nexport type {\n ASTNode,\n ASTKindToNode,\n // Each kind of AST node\n NameNode,\n DocumentNode,\n DefinitionNode,\n ExecutableDefinitionNode,\n OperationDefinitionNode,\n SubscriptionOperationDefinitionNode,\n VariableDefinitionNode,\n VariableNode,\n SelectionSetNode,\n SelectionNode,\n FieldNode,\n ArgumentNode,\n FragmentArgumentNode /* for experimental fragment arguments */,\n ConstArgumentNode,\n FragmentSpreadNode,\n InlineFragmentNode,\n FragmentDefinitionNode,\n ValueNode,\n ConstValueNode,\n IntValueNode,\n FloatValueNode,\n StringValueNode,\n BooleanValueNode,\n NullValueNode,\n EnumValueNode,\n ListValueNode,\n ConstListValueNode,\n ObjectValueNode,\n ConstObjectValueNode,\n ObjectFieldNode,\n ConstObjectFieldNode,\n DirectiveNode,\n ConstDirectiveNode,\n TypeNode,\n NamedTypeNode,\n ListTypeNode,\n NonNullTypeNode,\n TypeSystemDefinitionNode,\n SchemaDefinitionNode,\n OperationTypeDefinitionNode,\n TypeDefinitionNode,\n ScalarTypeDefinitionNode,\n ObjectTypeDefinitionNode,\n FieldDefinitionNode,\n InputValueDefinitionNode,\n InterfaceTypeDefinitionNode,\n UnionTypeDefinitionNode,\n EnumTypeDefinitionNode,\n EnumValueDefinitionNode,\n InputObjectTypeDefinitionNode,\n DirectiveDefinitionNode,\n TypeSystemExtensionNode,\n SchemaExtensionNode,\n TypeExtensionNode,\n ScalarTypeExtensionNode,\n ObjectTypeExtensionNode,\n InterfaceTypeExtensionNode,\n UnionTypeExtensionNode,\n EnumTypeExtensionNode,\n InputObjectTypeExtensionNode,\n SchemaCoordinateNode,\n TypeCoordinateNode,\n MemberCoordinateNode,\n ArgumentCoordinateNode,\n DirectiveCoordinateNode,\n DirectiveArgumentCoordinateNode,\n} from './ast.js';\n\nexport {\n isDefinitionNode,\n isExecutableDefinitionNode,\n isSelectionNode,\n isValueNode,\n isConstValueNode,\n isTypeNode,\n isTypeSystemDefinitionNode,\n isTypeDefinitionNode,\n isTypeSystemExtensionNode,\n isTypeExtensionNode,\n isSchemaCoordinateNode,\n isSubscriptionOperationDefinitionNode,\n} from './predicates.js';\n\nexport { DirectiveLocation } from './directiveLocation.js';\n"]}
@@ -2,14 +2,16 @@ export { Source } from "./source.mjs";
2
2
  export { getLocation } from "./location.mjs";
3
3
  export { printLocation, printSourceLocation } from "./printLocation.mjs";
4
4
  // @see https://github.com/typescript-eslint/typescript-eslint/issues/10313
5
- // eslint-disable-next-line @typescript-eslint/consistent-type-exports
5
+ // Deno misclassifies this merged value+type re-export and requires `export type`.
6
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7
+ // @ts-ignore TS1205
6
8
  export { Kind } from "./kinds.mjs";
7
9
  export { TokenKind } from "./tokenKind.mjs";
8
10
  export { Lexer } from "./lexer.mjs";
9
- export { parse, parseValue, parseConstValue, parseType } from "./parser.mjs";
11
+ export { parse, parseValue, parseConstValue, parseType, parseSchemaCoordinate, } from "./parser.mjs";
10
12
  export { print } from "./printer.mjs";
11
13
  export { visit, visitInParallel, getEnterLeaveForKind, BREAK, } from "./visitor.mjs";
12
14
  export { Location, Token, OperationTypeNode } from "./ast.mjs";
13
- export { isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isConstValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode, } from "./predicates.mjs";
15
+ export { isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isConstValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode, isSchemaCoordinateNode, isSubscriptionOperationDefinitionNode, } from "./predicates.mjs";
14
16
  export { DirectiveLocation } from "./directiveLocation.mjs";
15
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/language/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAoB;AAErC,OAAO,EAAE,WAAW,EAAE,uBAAsB;AAG5C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,4BAA2B;AAExE,2EAA2E;AAC3E,sEAAsE;AACtE,OAAO,EAAE,IAAI,EAAE,oBAAmB;AAElC,OAAO,EAAE,SAAS,EAAE,wBAAuB;AAE3C,OAAO,EAAE,KAAK,EAAE,oBAAmB;AAEnC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,qBAAoB;AAG5E,OAAO,EAAE,KAAK,EAAE,sBAAqB;AAErC,OAAO,EACL,KAAK,EACL,eAAe,EACf,oBAAoB,EACpB,KAAK,GACN,sBAAqB;AAGtB,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,iBAAiB,EAAE,kBAAiB;AAkE9D,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,GACpB,yBAAwB;AAEzB,OAAO,EAAE,iBAAiB,EAAE,gCAA+B","sourcesContent":["export { Source } from './source.js';\n\nexport { getLocation } from './location.js';\nexport type { SourceLocation } from './location.js';\n\nexport { printLocation, printSourceLocation } from './printLocation.js';\n\n// @see https://github.com/typescript-eslint/typescript-eslint/issues/10313\n// eslint-disable-next-line @typescript-eslint/consistent-type-exports\nexport { Kind } from './kinds.js';\n\nexport { TokenKind } from './tokenKind.js';\n\nexport { Lexer } from './lexer.js';\n\nexport { parse, parseValue, parseConstValue, parseType } from './parser.js';\nexport type { ParseOptions } from './parser.js';\n\nexport { print } from './printer.js';\n\nexport {\n visit,\n visitInParallel,\n getEnterLeaveForKind,\n BREAK,\n} from './visitor.js';\nexport type { ASTVisitor, ASTVisitFn, ASTVisitorKeyMap } from './visitor.js';\n\nexport { Location, Token, OperationTypeNode } from './ast.js';\nexport type {\n ASTNode,\n ASTKindToNode,\n // Each kind of AST node\n NameNode,\n DocumentNode,\n DefinitionNode,\n ExecutableDefinitionNode,\n OperationDefinitionNode,\n VariableDefinitionNode,\n VariableNode,\n SelectionSetNode,\n SelectionNode,\n FieldNode,\n ArgumentNode,\n FragmentArgumentNode /* for experimental fragment arguments */,\n ConstArgumentNode,\n FragmentSpreadNode,\n InlineFragmentNode,\n FragmentDefinitionNode,\n ValueNode,\n ConstValueNode,\n IntValueNode,\n FloatValueNode,\n StringValueNode,\n BooleanValueNode,\n NullValueNode,\n EnumValueNode,\n ListValueNode,\n ConstListValueNode,\n ObjectValueNode,\n ConstObjectValueNode,\n ObjectFieldNode,\n ConstObjectFieldNode,\n DirectiveNode,\n ConstDirectiveNode,\n TypeNode,\n NamedTypeNode,\n ListTypeNode,\n NonNullTypeNode,\n TypeSystemDefinitionNode,\n SchemaDefinitionNode,\n OperationTypeDefinitionNode,\n TypeDefinitionNode,\n ScalarTypeDefinitionNode,\n ObjectTypeDefinitionNode,\n FieldDefinitionNode,\n InputValueDefinitionNode,\n InterfaceTypeDefinitionNode,\n UnionTypeDefinitionNode,\n EnumTypeDefinitionNode,\n EnumValueDefinitionNode,\n InputObjectTypeDefinitionNode,\n DirectiveDefinitionNode,\n TypeSystemExtensionNode,\n SchemaExtensionNode,\n TypeExtensionNode,\n ScalarTypeExtensionNode,\n ObjectTypeExtensionNode,\n InterfaceTypeExtensionNode,\n UnionTypeExtensionNode,\n EnumTypeExtensionNode,\n InputObjectTypeExtensionNode,\n} from './ast.js';\n\nexport {\n isDefinitionNode,\n isExecutableDefinitionNode,\n isSelectionNode,\n isValueNode,\n isConstValueNode,\n isTypeNode,\n isTypeSystemDefinitionNode,\n isTypeDefinitionNode,\n isTypeSystemExtensionNode,\n isTypeExtensionNode,\n} from './predicates.js';\n\nexport { DirectiveLocation } from './directiveLocation.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/language/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAoB;AAErC,OAAO,EAAE,WAAW,EAAE,uBAAsB;AAG5C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,4BAA2B;AAExE,2EAA2E;AAC3E,mFAAmF;AACnF,6DAA6D;AAC7D,oBAAoB;AACpB,OAAO,EAAE,IAAI,EAAE,oBAAmB;AAElC,OAAO,EAAE,SAAS,EAAE,wBAAuB;AAE3C,OAAO,EAAE,KAAK,EAAE,oBAAmB;AAEnC,OAAO,EACL,KAAK,EACL,UAAU,EACV,eAAe,EACf,SAAS,EACT,qBAAqB,GACtB,qBAAoB;AAGrB,OAAO,EAAE,KAAK,EAAE,sBAAqB;AAErC,OAAO,EACL,KAAK,EACL,eAAe,EACf,oBAAoB,EACpB,KAAK,GACN,sBAAqB;AAGtB,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,iBAAiB,EAAE,kBAAiB;AAyE9D,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,qCAAqC,GACtC,yBAAwB;AAEzB,OAAO,EAAE,iBAAiB,EAAE,gCAA+B","sourcesContent":["export { Source } from './source.js';\n\nexport { getLocation } from './location.js';\nexport type { SourceLocation } from './location.js';\n\nexport { printLocation, printSourceLocation } from './printLocation.js';\n\n// @see https://github.com/typescript-eslint/typescript-eslint/issues/10313\n// Deno misclassifies this merged value+type re-export and requires `export type`.\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore TS1205\nexport { Kind } from './kinds.js';\n\nexport { TokenKind } from './tokenKind.js';\n\nexport { Lexer } from './lexer.js';\n\nexport {\n parse,\n parseValue,\n parseConstValue,\n parseType,\n parseSchemaCoordinate,\n} from './parser.js';\nexport type { ParseOptions } from './parser.js';\n\nexport { print } from './printer.js';\n\nexport {\n visit,\n visitInParallel,\n getEnterLeaveForKind,\n BREAK,\n} from './visitor.js';\nexport type { ASTVisitor, ASTVisitFn, ASTVisitorKeyMap } from './visitor.js';\n\nexport { Location, Token, OperationTypeNode } from './ast.js';\nexport type {\n ASTNode,\n ASTKindToNode,\n // Each kind of AST node\n NameNode,\n DocumentNode,\n DefinitionNode,\n ExecutableDefinitionNode,\n OperationDefinitionNode,\n SubscriptionOperationDefinitionNode,\n VariableDefinitionNode,\n VariableNode,\n SelectionSetNode,\n SelectionNode,\n FieldNode,\n ArgumentNode,\n FragmentArgumentNode /* for experimental fragment arguments */,\n ConstArgumentNode,\n FragmentSpreadNode,\n InlineFragmentNode,\n FragmentDefinitionNode,\n ValueNode,\n ConstValueNode,\n IntValueNode,\n FloatValueNode,\n StringValueNode,\n BooleanValueNode,\n NullValueNode,\n EnumValueNode,\n ListValueNode,\n ConstListValueNode,\n ObjectValueNode,\n ConstObjectValueNode,\n ObjectFieldNode,\n ConstObjectFieldNode,\n DirectiveNode,\n ConstDirectiveNode,\n TypeNode,\n NamedTypeNode,\n ListTypeNode,\n NonNullTypeNode,\n TypeSystemDefinitionNode,\n SchemaDefinitionNode,\n OperationTypeDefinitionNode,\n TypeDefinitionNode,\n ScalarTypeDefinitionNode,\n ObjectTypeDefinitionNode,\n FieldDefinitionNode,\n InputValueDefinitionNode,\n InterfaceTypeDefinitionNode,\n UnionTypeDefinitionNode,\n EnumTypeDefinitionNode,\n EnumValueDefinitionNode,\n InputObjectTypeDefinitionNode,\n DirectiveDefinitionNode,\n TypeSystemExtensionNode,\n SchemaExtensionNode,\n TypeExtensionNode,\n ScalarTypeExtensionNode,\n ObjectTypeExtensionNode,\n InterfaceTypeExtensionNode,\n UnionTypeExtensionNode,\n EnumTypeExtensionNode,\n InputObjectTypeExtensionNode,\n SchemaCoordinateNode,\n TypeCoordinateNode,\n MemberCoordinateNode,\n ArgumentCoordinateNode,\n DirectiveCoordinateNode,\n DirectiveArgumentCoordinateNode,\n} from './ast.js';\n\nexport {\n isDefinitionNode,\n isExecutableDefinitionNode,\n isSelectionNode,\n isValueNode,\n isConstValueNode,\n isTypeNode,\n isTypeSystemDefinitionNode,\n isTypeDefinitionNode,\n isTypeSystemExtensionNode,\n isTypeExtensionNode,\n isSchemaCoordinateNode,\n isSubscriptionOperationDefinitionNode,\n} from './predicates.js';\n\nexport { DirectiveLocation } from './directiveLocation.js';\n"]}
@@ -0,0 +1,3 @@
1
+ import type * as Kind_ from './kinds_.js';
2
+ export * as Kind from './kinds_.js';
3
+ export type Kind = (typeof Kind_)[keyof typeof Kind_];
package/language/kinds.js CHANGED
@@ -1,5 +1,38 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.Kind = void 0;
4
- exports.Kind = require("./kinds_.js");
37
+ exports.Kind = __importStar(require("./kinds_.js"));
5
38
  //# sourceMappingURL=kinds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../src/language/kinds.ts"],"names":[],"mappings":";;;AAGA,sCAAoC","sourcesContent":["/* eslint-disable import/no-namespace */\nimport type * as Kind_ from './kinds_.js';\n\nexport * as Kind from './kinds_.js';\n\nexport type Kind = (typeof Kind_)[keyof typeof Kind_];\n"]}
1
+ {"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../src/language/kinds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAAoC","sourcesContent":["/* eslint-disable import/no-namespace */\nimport type * as Kind_ from './kinds_.js';\n\nexport * as Kind from './kinds_.js';\n\nexport type Kind = (typeof Kind_)[keyof typeof Kind_];\n"]}
@@ -0,0 +1,109 @@
1
+ /** Name */
2
+ export declare const NAME = "Name";
3
+ export type NAME = typeof NAME;
4
+ /** Document */
5
+ export declare const DOCUMENT = "Document";
6
+ export type DOCUMENT = typeof DOCUMENT;
7
+ export declare const OPERATION_DEFINITION = "OperationDefinition";
8
+ export type OPERATION_DEFINITION = typeof OPERATION_DEFINITION;
9
+ export declare const VARIABLE_DEFINITION = "VariableDefinition";
10
+ export type VARIABLE_DEFINITION = typeof VARIABLE_DEFINITION;
11
+ export declare const SELECTION_SET = "SelectionSet";
12
+ export type SELECTION_SET = typeof SELECTION_SET;
13
+ export declare const FIELD = "Field";
14
+ export type FIELD = typeof FIELD;
15
+ export declare const ARGUMENT = "Argument";
16
+ export type ARGUMENT = typeof ARGUMENT;
17
+ export declare const FRAGMENT_ARGUMENT = "FragmentArgument";
18
+ export type FRAGMENT_ARGUMENT = typeof FRAGMENT_ARGUMENT;
19
+ /** Fragments */
20
+ export declare const FRAGMENT_SPREAD = "FragmentSpread";
21
+ export type FRAGMENT_SPREAD = typeof FRAGMENT_SPREAD;
22
+ export declare const INLINE_FRAGMENT = "InlineFragment";
23
+ export type INLINE_FRAGMENT = typeof INLINE_FRAGMENT;
24
+ export declare const FRAGMENT_DEFINITION = "FragmentDefinition";
25
+ export type FRAGMENT_DEFINITION = typeof FRAGMENT_DEFINITION;
26
+ /** Values */
27
+ export declare const VARIABLE = "Variable";
28
+ export type VARIABLE = typeof VARIABLE;
29
+ export declare const INT = "IntValue";
30
+ export type INT = typeof INT;
31
+ export declare const FLOAT = "FloatValue";
32
+ export type FLOAT = typeof FLOAT;
33
+ export declare const STRING = "StringValue";
34
+ export type STRING = typeof STRING;
35
+ export declare const BOOLEAN = "BooleanValue";
36
+ export type BOOLEAN = typeof BOOLEAN;
37
+ export declare const NULL = "NullValue";
38
+ export type NULL = typeof NULL;
39
+ export declare const ENUM = "EnumValue";
40
+ export type ENUM = typeof ENUM;
41
+ export declare const LIST = "ListValue";
42
+ export type LIST = typeof LIST;
43
+ export declare const OBJECT = "ObjectValue";
44
+ export type OBJECT = typeof OBJECT;
45
+ export declare const OBJECT_FIELD = "ObjectField";
46
+ export type OBJECT_FIELD = typeof OBJECT_FIELD;
47
+ /** Directives */
48
+ export declare const DIRECTIVE = "Directive";
49
+ export type DIRECTIVE = typeof DIRECTIVE;
50
+ /** Types */
51
+ export declare const NAMED_TYPE = "NamedType";
52
+ export type NAMED_TYPE = typeof NAMED_TYPE;
53
+ export declare const LIST_TYPE = "ListType";
54
+ export type LIST_TYPE = typeof LIST_TYPE;
55
+ export declare const NON_NULL_TYPE = "NonNullType";
56
+ export type NON_NULL_TYPE = typeof NON_NULL_TYPE;
57
+ /** Type System Definitions */
58
+ export declare const SCHEMA_DEFINITION = "SchemaDefinition";
59
+ export type SCHEMA_DEFINITION = typeof SCHEMA_DEFINITION;
60
+ export declare const OPERATION_TYPE_DEFINITION = "OperationTypeDefinition";
61
+ export type OPERATION_TYPE_DEFINITION = typeof OPERATION_TYPE_DEFINITION;
62
+ /** Type Definitions */
63
+ export declare const SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition";
64
+ export type SCALAR_TYPE_DEFINITION = typeof SCALAR_TYPE_DEFINITION;
65
+ export declare const OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition";
66
+ export type OBJECT_TYPE_DEFINITION = typeof OBJECT_TYPE_DEFINITION;
67
+ export declare const FIELD_DEFINITION = "FieldDefinition";
68
+ export type FIELD_DEFINITION = typeof FIELD_DEFINITION;
69
+ export declare const INPUT_VALUE_DEFINITION = "InputValueDefinition";
70
+ export type INPUT_VALUE_DEFINITION = typeof INPUT_VALUE_DEFINITION;
71
+ export declare const INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition";
72
+ export type INTERFACE_TYPE_DEFINITION = typeof INTERFACE_TYPE_DEFINITION;
73
+ export declare const UNION_TYPE_DEFINITION = "UnionTypeDefinition";
74
+ export type UNION_TYPE_DEFINITION = typeof UNION_TYPE_DEFINITION;
75
+ export declare const ENUM_TYPE_DEFINITION = "EnumTypeDefinition";
76
+ export declare const ENUM_VALUE_DEFINITION = "EnumValueDefinition";
77
+ export type ENUM_VALUE_DEFINITION = typeof ENUM_VALUE_DEFINITION;
78
+ export declare const INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition";
79
+ export type INPUT_OBJECT_TYPE_DEFINITION = typeof INPUT_OBJECT_TYPE_DEFINITION;
80
+ /** Directive Definitions */
81
+ export declare const DIRECTIVE_DEFINITION = "DirectiveDefinition";
82
+ export type DIRECTIVE_DEFINITION = typeof DIRECTIVE_DEFINITION;
83
+ /** Type System Extensions */
84
+ export declare const SCHEMA_EXTENSION = "SchemaExtension";
85
+ export type SCHEMA_EXTENSION = typeof SCHEMA_EXTENSION;
86
+ /** Type Extensions */
87
+ export declare const SCALAR_TYPE_EXTENSION = "ScalarTypeExtension";
88
+ export type SCALAR_TYPE_EXTENSION = typeof SCALAR_TYPE_EXTENSION;
89
+ export declare const OBJECT_TYPE_EXTENSION = "ObjectTypeExtension";
90
+ export type OBJECT_TYPE_EXTENSION = typeof OBJECT_TYPE_EXTENSION;
91
+ export declare const INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension";
92
+ export type INTERFACE_TYPE_EXTENSION = typeof INTERFACE_TYPE_EXTENSION;
93
+ export declare const UNION_TYPE_EXTENSION = "UnionTypeExtension";
94
+ export type UNION_TYPE_EXTENSION = typeof UNION_TYPE_EXTENSION;
95
+ export declare const ENUM_TYPE_EXTENSION = "EnumTypeExtension";
96
+ export type ENUM_TYPE_EXTENSION = typeof ENUM_TYPE_EXTENSION;
97
+ export declare const INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
98
+ export type INPUT_OBJECT_TYPE_EXTENSION = typeof INPUT_OBJECT_TYPE_EXTENSION;
99
+ /** Schema Coordinates */
100
+ export declare const TYPE_COORDINATE = "TypeCoordinate";
101
+ export type TYPE_COORDINATE = typeof TYPE_COORDINATE;
102
+ export declare const MEMBER_COORDINATE = "MemberCoordinate";
103
+ export type MEMBER_COORDINATE = typeof MEMBER_COORDINATE;
104
+ export declare const ARGUMENT_COORDINATE = "ArgumentCoordinate";
105
+ export type ARGUMENT_COORDINATE = typeof ARGUMENT_COORDINATE;
106
+ export declare const DIRECTIVE_COORDINATE = "DirectiveCoordinate";
107
+ export type DIRECTIVE_COORDINATE = typeof DIRECTIVE_COORDINATE;
108
+ export declare const DIRECTIVE_ARGUMENT_COORDINATE = "DirectiveArgumentCoordinate";
109
+ export type DIRECTIVE_ARGUMENT_COORDINATE = typeof DIRECTIVE_ARGUMENT_COORDINATE;
@@ -96,3 +96,14 @@ export declare const ENUM_TYPE_EXTENSION = "EnumTypeExtension";
96
96
  export type ENUM_TYPE_EXTENSION = typeof ENUM_TYPE_EXTENSION;
97
97
  export declare const INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
98
98
  export type INPUT_OBJECT_TYPE_EXTENSION = typeof INPUT_OBJECT_TYPE_EXTENSION;
99
+ /** Schema Coordinates */
100
+ export declare const TYPE_COORDINATE = "TypeCoordinate";
101
+ export type TYPE_COORDINATE = typeof TYPE_COORDINATE;
102
+ export declare const MEMBER_COORDINATE = "MemberCoordinate";
103
+ export type MEMBER_COORDINATE = typeof MEMBER_COORDINATE;
104
+ export declare const ARGUMENT_COORDINATE = "ArgumentCoordinate";
105
+ export type ARGUMENT_COORDINATE = typeof ARGUMENT_COORDINATE;
106
+ export declare const DIRECTIVE_COORDINATE = "DirectiveCoordinate";
107
+ export type DIRECTIVE_COORDINATE = typeof DIRECTIVE_COORDINATE;
108
+ export declare const DIRECTIVE_ARGUMENT_COORDINATE = "DirectiveArgumentCoordinate";
109
+ export type DIRECTIVE_ARGUMENT_COORDINATE = typeof DIRECTIVE_ARGUMENT_COORDINATE;