@nestjs/apollo 13.4.0 → 13.4.1

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 (730) hide show
  1. package/dist/drivers/apollo-base.driver.js +1 -1
  2. package/dist/drivers/apollo-gateway.driver.d.ts +1 -0
  3. package/dist/drivers/apollo-gateway.driver.d.ts.map +1 -1
  4. package/dist/drivers/apollo-gateway.driver.js +38 -2
  5. package/dist/interfaces/apollo-driver-config.interface.d.ts +14 -0
  6. package/dist/interfaces/apollo-driver-config.interface.d.ts.map +1 -1
  7. package/dist/interfaces/apollo-gateway-driver-config.interface.d.ts +13 -0
  8. package/dist/interfaces/apollo-gateway-driver-config.interface.d.ts.map +1 -1
  9. package/dist/tests/lib/constants/apollo.constants.d.ts +2 -0
  10. package/dist/tests/lib/constants/apollo.constants.d.ts.map +1 -0
  11. package/dist/tests/lib/constants/apollo.constants.js +4 -0
  12. package/dist/tests/lib/constants/index.d.ts +2 -0
  13. package/dist/tests/lib/constants/index.d.ts.map +1 -0
  14. package/dist/tests/lib/constants/index.js +4 -0
  15. package/dist/tests/lib/decorators/index.d.ts +2 -0
  16. package/dist/tests/lib/decorators/index.d.ts.map +1 -0
  17. package/dist/tests/lib/decorators/index.js +4 -0
  18. package/dist/tests/lib/decorators/plugin.decorator.d.ts +7 -0
  19. package/dist/tests/lib/decorators/plugin.decorator.d.ts.map +1 -0
  20. package/dist/tests/lib/decorators/plugin.decorator.js +15 -0
  21. package/dist/tests/lib/drivers/apollo-base.driver.d.ts +23 -0
  22. package/dist/tests/lib/drivers/apollo-base.driver.d.ts.map +1 -0
  23. package/dist/tests/lib/drivers/apollo-base.driver.js +262 -0
  24. package/dist/tests/lib/drivers/apollo-federation.driver.d.ts +17 -0
  25. package/dist/tests/lib/drivers/apollo-federation.driver.d.ts.map +1 -0
  26. package/dist/tests/lib/drivers/apollo-federation.driver.js +46 -0
  27. package/dist/tests/lib/drivers/apollo-gateway.driver.d.ts +15 -0
  28. package/dist/tests/lib/drivers/apollo-gateway.driver.d.ts.map +1 -0
  29. package/dist/tests/lib/drivers/apollo-gateway.driver.js +80 -0
  30. package/dist/tests/lib/drivers/apollo.driver.d.ts +15 -0
  31. package/dist/tests/lib/drivers/apollo.driver.d.ts.map +1 -0
  32. package/dist/tests/lib/drivers/apollo.driver.js +57 -0
  33. package/dist/tests/lib/drivers/index.d.ts +4 -0
  34. package/dist/tests/lib/drivers/index.d.ts.map +1 -0
  35. package/dist/tests/lib/drivers/index.js +6 -0
  36. package/dist/tests/lib/errors/authentication.error.d.ts +14 -0
  37. package/dist/tests/lib/errors/authentication.error.d.ts.map +1 -0
  38. package/dist/tests/lib/errors/authentication.error.js +25 -0
  39. package/dist/tests/lib/errors/forbidden.error.d.ts +14 -0
  40. package/dist/tests/lib/errors/forbidden.error.d.ts.map +1 -0
  41. package/dist/tests/lib/errors/forbidden.error.js +25 -0
  42. package/dist/tests/lib/errors/index.d.ts +5 -0
  43. package/dist/tests/lib/errors/index.d.ts.map +1 -0
  44. package/dist/tests/lib/errors/index.js +7 -0
  45. package/dist/tests/lib/errors/user-input.error.d.ts +14 -0
  46. package/dist/tests/lib/errors/user-input.error.d.ts.map +1 -0
  47. package/dist/tests/lib/errors/user-input.error.js +26 -0
  48. package/dist/tests/lib/errors/validation.error.d.ts +14 -0
  49. package/dist/tests/lib/errors/validation.error.d.ts.map +1 -0
  50. package/dist/tests/lib/errors/validation.error.js +26 -0
  51. package/dist/tests/lib/graphiql/graphiql-html.factory.d.ts +5 -0
  52. package/dist/tests/lib/graphiql/graphiql-html.factory.d.ts.map +1 -0
  53. package/dist/tests/lib/graphiql/graphiql-html.factory.js +69 -0
  54. package/dist/tests/lib/graphiql/graphiql-playground.plugin.d.ts +13 -0
  55. package/dist/tests/lib/graphiql/graphiql-playground.plugin.d.ts.map +1 -0
  56. package/dist/tests/lib/graphiql/graphiql-playground.plugin.js +19 -0
  57. package/dist/tests/lib/graphiql/interfaces/graphiql-options.interface.d.ts +33 -0
  58. package/dist/tests/lib/graphiql/interfaces/graphiql-options.interface.d.ts.map +1 -0
  59. package/dist/tests/lib/graphiql/interfaces/graphiql-options.interface.js +2 -0
  60. package/dist/tests/lib/index.d.ts +7 -0
  61. package/dist/tests/lib/index.d.ts.map +1 -0
  62. package/dist/tests/lib/index.js +9 -0
  63. package/dist/tests/lib/interfaces/apollo-driver-config.interface.d.ts +44 -0
  64. package/dist/tests/lib/interfaces/apollo-driver-config.interface.d.ts.map +1 -0
  65. package/dist/tests/lib/interfaces/apollo-driver-config.interface.js +2 -0
  66. package/dist/tests/lib/interfaces/apollo-federation-driver-config.interface.d.ts +5 -0
  67. package/dist/tests/lib/interfaces/apollo-federation-driver-config.interface.d.ts.map +1 -0
  68. package/dist/tests/lib/interfaces/apollo-federation-driver-config.interface.js +2 -0
  69. package/dist/tests/lib/interfaces/apollo-gateway-driver-config.interface.d.ts +37 -0
  70. package/dist/tests/lib/interfaces/apollo-gateway-driver-config.interface.d.ts.map +1 -0
  71. package/dist/tests/lib/interfaces/apollo-gateway-driver-config.interface.js +2 -0
  72. package/dist/tests/lib/interfaces/index.d.ts +4 -0
  73. package/dist/tests/lib/interfaces/index.d.ts.map +1 -0
  74. package/dist/tests/lib/interfaces/index.js +6 -0
  75. package/dist/tests/lib/services/index.d.ts +2 -0
  76. package/dist/tests/lib/services/index.d.ts.map +1 -0
  77. package/dist/tests/lib/services/index.js +4 -0
  78. package/dist/tests/lib/services/plugins-explorer.service.d.ts +10 -0
  79. package/dist/tests/lib/services/plugins-explorer.service.d.ts.map +1 -0
  80. package/dist/tests/lib/services/plugins-explorer.service.js +24 -0
  81. package/dist/tests/lib/utils/async-iterator.util.d.ts +9 -0
  82. package/dist/tests/lib/utils/async-iterator.util.d.ts.map +1 -0
  83. package/dist/tests/lib/utils/async-iterator.util.js +60 -0
  84. package/dist/tests/lib/utils/get-apollo-server.d.ts +11 -0
  85. package/dist/tests/lib/utils/get-apollo-server.d.ts.map +1 -0
  86. package/dist/tests/lib/utils/get-apollo-server.js +20 -0
  87. package/dist/tests/lib/utils/index.d.ts +2 -0
  88. package/dist/tests/lib/utils/index.d.ts.map +1 -0
  89. package/dist/tests/lib/utils/index.js +4 -0
  90. package/dist/tests/tests/code-first/app.module.d.ts +3 -0
  91. package/dist/tests/tests/code-first/app.module.d.ts.map +1 -0
  92. package/dist/tests/tests/code-first/app.module.js +26 -0
  93. package/dist/tests/tests/code-first/cats/cats.module.d.ts +23 -0
  94. package/dist/tests/tests/code-first/cats/cats.module.d.ts.map +1 -0
  95. package/dist/tests/tests/code-first/cats/cats.module.js +50 -0
  96. package/dist/tests/tests/code-first/cats/cats.resolver.d.ts +4 -0
  97. package/dist/tests/tests/code-first/cats/cats.resolver.d.ts.map +1 -0
  98. package/dist/tests/tests/code-first/cats/cats.resolver.js +20 -0
  99. package/dist/tests/tests/code-first/common/filters/unauthorized.filter.d.ts +6 -0
  100. package/dist/tests/tests/code-first/common/filters/unauthorized.filter.d.ts.map +1 -0
  101. package/dist/tests/tests/code-first/common/filters/unauthorized.filter.js +15 -0
  102. package/dist/tests/tests/code-first/common/guards/auth.guard.d.ts +5 -0
  103. package/dist/tests/tests/code-first/common/guards/auth.guard.d.ts.map +1 -0
  104. package/dist/tests/tests/code-first/common/guards/auth.guard.js +19 -0
  105. package/dist/tests/tests/code-first/common/scalars/date.scalar.d.ts +8 -0
  106. package/dist/tests/tests/code-first/common/scalars/date.scalar.d.ts.map +1 -0
  107. package/dist/tests/tests/code-first/common/scalars/date.scalar.js +27 -0
  108. package/dist/tests/tests/code-first/directions/directions.module.d.ts +3 -0
  109. package/dist/tests/tests/code-first/directions/directions.module.d.ts.map +1 -0
  110. package/dist/tests/tests/code-first/directions/directions.module.js +14 -0
  111. package/dist/tests/tests/code-first/directions/directions.resolver.d.ts +5 -0
  112. package/dist/tests/tests/code-first/directions/directions.resolver.d.ts.map +1 -0
  113. package/dist/tests/tests/code-first/directions/directions.resolver.js +22 -0
  114. package/dist/tests/tests/code-first/enums/direction.enum.d.ts +8 -0
  115. package/dist/tests/tests/code-first/enums/direction.enum.d.ts.map +1 -0
  116. package/dist/tests/tests/code-first/enums/direction.enum.js +24 -0
  117. package/dist/tests/tests/code-first/enums/sample-orphaned.enum.d.ts +7 -0
  118. package/dist/tests/tests/code-first/enums/sample-orphaned.enum.d.ts.map +1 -0
  119. package/dist/tests/tests/code-first/enums/sample-orphaned.enum.js +15 -0
  120. package/dist/tests/tests/code-first/main.d.ts +2 -0
  121. package/dist/tests/tests/code-first/main.d.ts.map +1 -0
  122. package/dist/tests/tests/code-first/main.js +11 -0
  123. package/dist/tests/tests/code-first/other/abstract.resolver.d.ts +6 -0
  124. package/dist/tests/tests/code-first/other/abstract.resolver.d.ts.map +1 -0
  125. package/dist/tests/tests/code-first/other/abstract.resolver.js +23 -0
  126. package/dist/tests/tests/code-first/other/sample-orphaned.type.d.ts +8 -0
  127. package/dist/tests/tests/code-first/other/sample-orphaned.type.d.ts.map +1 -0
  128. package/dist/tests/tests/code-first/other/sample-orphaned.type.js +35 -0
  129. package/dist/tests/tests/code-first/other/sample-scalar.d.ts +8 -0
  130. package/dist/tests/tests/code-first/other/sample-scalar.d.ts.map +1 -0
  131. package/dist/tests/tests/code-first/other/sample-scalar.js +33 -0
  132. package/dist/tests/tests/code-first/recipes/dto/filter-recipes-count.args.d.ts +5 -0
  133. package/dist/tests/tests/code-first/recipes/dto/filter-recipes-count.args.d.ts.map +1 -0
  134. package/dist/tests/tests/code-first/recipes/dto/filter-recipes-count.args.js +19 -0
  135. package/dist/tests/tests/code-first/recipes/dto/new-recipe.input.d.ts +7 -0
  136. package/dist/tests/tests/code-first/recipes/dto/new-recipe.input.d.ts.map +1 -0
  137. package/dist/tests/tests/code-first/recipes/dto/new-recipe.input.js +32 -0
  138. package/dist/tests/tests/code-first/recipes/dto/recipes.args.d.ts +5 -0
  139. package/dist/tests/tests/code-first/recipes/dto/recipes.args.d.ts.map +1 -0
  140. package/dist/tests/tests/code-first/recipes/dto/recipes.args.js +30 -0
  141. package/dist/tests/tests/code-first/recipes/ingredients.resolver.d.ts +7 -0
  142. package/dist/tests/tests/code-first/recipes/ingredients.resolver.d.ts.map +1 -0
  143. package/dist/tests/tests/code-first/recipes/ingredients.resolver.js +42 -0
  144. package/dist/tests/tests/code-first/recipes/irecipes.resolver.d.ts +4 -0
  145. package/dist/tests/tests/code-first/recipes/irecipes.resolver.d.ts.map +1 -0
  146. package/dist/tests/tests/code-first/recipes/irecipes.resolver.js +22 -0
  147. package/dist/tests/tests/code-first/recipes/models/category.d.ts +7 -0
  148. package/dist/tests/tests/code-first/recipes/models/category.d.ts.map +1 -0
  149. package/dist/tests/tests/code-first/recipes/models/category.js +27 -0
  150. package/dist/tests/tests/code-first/recipes/models/ingredient.d.ts +12 -0
  151. package/dist/tests/tests/code-first/recipes/models/ingredient.d.ts.map +1 -0
  152. package/dist/tests/tests/code-first/recipes/models/ingredient.js +49 -0
  153. package/dist/tests/tests/code-first/recipes/models/recipe.d.ts +29 -0
  154. package/dist/tests/tests/code-first/recipes/models/recipe.d.ts.map +1 -0
  155. package/dist/tests/tests/code-first/recipes/models/recipe.js +80 -0
  156. package/dist/tests/tests/code-first/recipes/recipes.module.d.ts +3 -0
  157. package/dist/tests/tests/code-first/recipes/recipes.module.d.ts.map +1 -0
  158. package/dist/tests/tests/code-first/recipes/recipes.module.js +30 -0
  159. package/dist/tests/tests/code-first/recipes/recipes.resolver.d.ts +23 -0
  160. package/dist/tests/tests/code-first/recipes/recipes.resolver.d.ts.map +1 -0
  161. package/dist/tests/tests/code-first/recipes/recipes.resolver.js +141 -0
  162. package/dist/tests/tests/code-first/recipes/recipes.service.d.ts +15 -0
  163. package/dist/tests/tests/code-first/recipes/recipes.service.d.ts.map +1 -0
  164. package/dist/tests/tests/code-first/recipes/recipes.service.js +44 -0
  165. package/dist/tests/tests/code-first/recipes/unions/search-result.union.d.ts +4 -0
  166. package/dist/tests/tests/code-first/recipes/unions/search-result.union.d.ts.map +1 -0
  167. package/dist/tests/tests/code-first/recipes/unions/search-result.union.js +20 -0
  168. package/dist/tests/tests/code-first-duplicate-resolvers/app.module.d.ts +3 -0
  169. package/dist/tests/tests/code-first-duplicate-resolvers/app.module.d.ts.map +1 -0
  170. package/dist/tests/tests/code-first-duplicate-resolvers/app.module.js +28 -0
  171. package/dist/tests/tests/code-first-duplicate-resolvers/module-a/module-a.module.d.ts +3 -0
  172. package/dist/tests/tests/code-first-duplicate-resolvers/module-a/module-a.module.d.ts.map +1 -0
  173. package/dist/tests/tests/code-first-duplicate-resolvers/module-a/module-a.module.js +16 -0
  174. package/dist/tests/tests/code-first-duplicate-resolvers/module-a/user.resolver.d.ts +4 -0
  175. package/dist/tests/tests/code-first-duplicate-resolvers/module-a/user.resolver.d.ts.map +1 -0
  176. package/dist/tests/tests/code-first-duplicate-resolvers/module-a/user.resolver.js +21 -0
  177. package/dist/tests/tests/code-first-duplicate-resolvers/module-b/module-b.module.d.ts +3 -0
  178. package/dist/tests/tests/code-first-duplicate-resolvers/module-b/module-b.module.d.ts.map +1 -0
  179. package/dist/tests/tests/code-first-duplicate-resolvers/module-b/module-b.module.js +16 -0
  180. package/dist/tests/tests/code-first-duplicate-resolvers/module-b/user.resolver.d.ts +4 -0
  181. package/dist/tests/tests/code-first-duplicate-resolvers/module-b/user.resolver.d.ts.map +1 -0
  182. package/dist/tests/tests/code-first-duplicate-resolvers/module-b/user.resolver.js +21 -0
  183. package/dist/tests/tests/code-first-duplicate-resolvers/query.resolver.d.ts +4 -0
  184. package/dist/tests/tests/code-first-duplicate-resolvers/query.resolver.d.ts.map +1 -0
  185. package/dist/tests/tests/code-first-duplicate-resolvers/query.resolver.js +20 -0
  186. package/dist/tests/tests/code-first-federation/app.module.d.ts +3 -0
  187. package/dist/tests/tests/code-first-federation/app.module.d.ts.map +1 -0
  188. package/dist/tests/tests/code-first-federation/app.module.js +36 -0
  189. package/dist/tests/tests/code-first-federation/caching.module.d.ts +3 -0
  190. package/dist/tests/tests/code-first-federation/caching.module.d.ts.map +1 -0
  191. package/dist/tests/tests/code-first-federation/caching.module.js +59 -0
  192. package/dist/tests/tests/code-first-federation/human/character.entity.d.ts +5 -0
  193. package/dist/tests/tests/code-first-federation/human/character.entity.d.ts.map +1 -0
  194. package/dist/tests/tests/code-first-federation/human/character.entity.js +19 -0
  195. package/dist/tests/tests/code-first-federation/human/human.entity.d.ts +6 -0
  196. package/dist/tests/tests/code-first-federation/human/human.entity.d.ts.map +1 -0
  197. package/dist/tests/tests/code-first-federation/human/human.entity.js +14 -0
  198. package/dist/tests/tests/code-first-federation/human/human.module.d.ts +3 -0
  199. package/dist/tests/tests/code-first-federation/human/human.module.d.ts.map +1 -0
  200. package/dist/tests/tests/code-first-federation/human/human.module.js +14 -0
  201. package/dist/tests/tests/code-first-federation/human/human.resolver.d.ts +6 -0
  202. package/dist/tests/tests/code-first-federation/human/human.resolver.d.ts.map +1 -0
  203. package/dist/tests/tests/code-first-federation/human/human.resolver.js +34 -0
  204. package/dist/tests/tests/code-first-federation/main.d.ts +2 -0
  205. package/dist/tests/tests/code-first-federation/main.d.ts.map +1 -0
  206. package/dist/tests/tests/code-first-federation/main.js +11 -0
  207. package/dist/tests/tests/code-first-federation/post/post.entity.d.ts +7 -0
  208. package/dist/tests/tests/code-first-federation/post/post.entity.d.ts.map +1 -0
  209. package/dist/tests/tests/code-first-federation/post/post.entity.js +28 -0
  210. package/dist/tests/tests/code-first-federation/post/post.module.d.ts +3 -0
  211. package/dist/tests/tests/code-first-federation/post/post.module.d.ts.map +1 -0
  212. package/dist/tests/tests/code-first-federation/post/post.module.js +16 -0
  213. package/dist/tests/tests/code-first-federation/post/post.resolver.d.ts +12 -0
  214. package/dist/tests/tests/code-first-federation/post/post.resolver.d.ts.map +1 -0
  215. package/dist/tests/tests/code-first-federation/post/post.resolver.js +61 -0
  216. package/dist/tests/tests/code-first-federation/post/post.service.d.ts +7 -0
  217. package/dist/tests/tests/code-first-federation/post/post.service.d.ts.map +1 -0
  218. package/dist/tests/tests/code-first-federation/post/post.service.js +37 -0
  219. package/dist/tests/tests/code-first-federation/recipe/irecipe.resolver.d.ts +8 -0
  220. package/dist/tests/tests/code-first-federation/recipe/irecipe.resolver.d.ts.map +1 -0
  221. package/dist/tests/tests/code-first-federation/recipe/irecipe.resolver.js +21 -0
  222. package/dist/tests/tests/code-first-federation/recipe/recipe.d.ts +11 -0
  223. package/dist/tests/tests/code-first-federation/recipe/recipe.d.ts.map +1 -0
  224. package/dist/tests/tests/code-first-federation/recipe/recipe.js +44 -0
  225. package/dist/tests/tests/code-first-federation/recipe/recipe.module.d.ts +3 -0
  226. package/dist/tests/tests/code-first-federation/recipe/recipe.module.d.ts.map +1 -0
  227. package/dist/tests/tests/code-first-federation/recipe/recipe.module.js +14 -0
  228. package/dist/tests/tests/code-first-federation/unions/search-result.union.d.ts +4 -0
  229. package/dist/tests/tests/code-first-federation/unions/search-result.union.d.ts.map +1 -0
  230. package/dist/tests/tests/code-first-federation/unions/search-result.union.js +20 -0
  231. package/dist/tests/tests/code-first-federation/user/user.entity.d.ts +7 -0
  232. package/dist/tests/tests/code-first-federation/user/user.entity.d.ts.map +1 -0
  233. package/dist/tests/tests/code-first-federation/user/user.entity.js +27 -0
  234. package/dist/tests/tests/code-first-federation/user/user.module.d.ts +3 -0
  235. package/dist/tests/tests/code-first-federation/user/user.module.d.ts.map +1 -0
  236. package/dist/tests/tests/code-first-federation/user/user.module.js +16 -0
  237. package/dist/tests/tests/code-first-federation/user/user.resolver.d.ts +8 -0
  238. package/dist/tests/tests/code-first-federation/user/user.resolver.d.ts.map +1 -0
  239. package/dist/tests/tests/code-first-federation/user/user.resolver.js +27 -0
  240. package/dist/tests/tests/code-first-register-in/products/product.model.d.ts +5 -0
  241. package/dist/tests/tests/code-first-register-in/products/product.model.d.ts.map +1 -0
  242. package/dist/tests/tests/code-first-register-in/products/product.model.js +20 -0
  243. package/dist/tests/tests/code-first-register-in/products/products.module.d.ts +3 -0
  244. package/dist/tests/tests/code-first-register-in/products/products.module.d.ts.map +1 -0
  245. package/dist/tests/tests/code-first-register-in/products/products.module.js +14 -0
  246. package/dist/tests/tests/code-first-register-in/products/products.resolver.d.ts +5 -0
  247. package/dist/tests/tests/code-first-register-in/products/products.resolver.d.ts.map +1 -0
  248. package/dist/tests/tests/code-first-register-in/products/products.resolver.js +21 -0
  249. package/dist/tests/tests/code-first-register-in/shared/app-info.model.d.ts +4 -0
  250. package/dist/tests/tests/code-first-register-in/shared/app-info.model.d.ts.map +1 -0
  251. package/dist/tests/tests/code-first-register-in/shared/app-info.model.js +15 -0
  252. package/dist/tests/tests/code-first-register-in/users/create-user.input.d.ts +4 -0
  253. package/dist/tests/tests/code-first-register-in/users/create-user.input.d.ts.map +1 -0
  254. package/dist/tests/tests/code-first-register-in/users/create-user.input.js +16 -0
  255. package/dist/tests/tests/code-first-register-in/users/user.model.d.ts +7 -0
  256. package/dist/tests/tests/code-first-register-in/users/user.model.d.ts.map +1 -0
  257. package/dist/tests/tests/code-first-register-in/users/user.model.js +25 -0
  258. package/dist/tests/tests/code-first-register-in/users/users.module.d.ts +3 -0
  259. package/dist/tests/tests/code-first-register-in/users/users.module.d.ts.map +1 -0
  260. package/dist/tests/tests/code-first-register-in/users/users.module.js +14 -0
  261. package/dist/tests/tests/code-first-register-in/users/users.resolver.d.ts +8 -0
  262. package/dist/tests/tests/code-first-register-in/users/users.resolver.d.ts.map +1 -0
  263. package/dist/tests/tests/code-first-register-in/users/users.resolver.js +43 -0
  264. package/dist/tests/tests/duplicate-resolvers/app.module.d.ts +3 -0
  265. package/dist/tests/tests/duplicate-resolvers/app.module.d.ts.map +1 -0
  266. package/dist/tests/tests/duplicate-resolvers/app.module.js +27 -0
  267. package/dist/tests/tests/duplicate-resolvers/module-a/module-a.module.d.ts +3 -0
  268. package/dist/tests/tests/duplicate-resolvers/module-a/module-a.module.d.ts.map +1 -0
  269. package/dist/tests/tests/duplicate-resolvers/module-a/module-a.module.js +16 -0
  270. package/dist/tests/tests/duplicate-resolvers/module-a/user.resolver.d.ts +4 -0
  271. package/dist/tests/tests/duplicate-resolvers/module-a/user.resolver.d.ts.map +1 -0
  272. package/dist/tests/tests/duplicate-resolvers/module-a/user.resolver.js +21 -0
  273. package/dist/tests/tests/duplicate-resolvers/module-b/module-b.module.d.ts +3 -0
  274. package/dist/tests/tests/duplicate-resolvers/module-b/module-b.module.d.ts.map +1 -0
  275. package/dist/tests/tests/duplicate-resolvers/module-b/module-b.module.js +16 -0
  276. package/dist/tests/tests/duplicate-resolvers/module-b/user.resolver.d.ts +4 -0
  277. package/dist/tests/tests/duplicate-resolvers/module-b/user.resolver.d.ts.map +1 -0
  278. package/dist/tests/tests/duplicate-resolvers/module-b/user.resolver.js +21 -0
  279. package/dist/tests/tests/e2e/code-first-federation-caching.spec.d.ts +2 -0
  280. package/dist/tests/tests/e2e/code-first-federation-caching.spec.d.ts.map +1 -0
  281. package/dist/tests/tests/e2e/code-first-federation-caching.spec.js +96 -0
  282. package/dist/tests/tests/e2e/code-first-federation.spec.d.ts +2 -0
  283. package/dist/tests/tests/e2e/code-first-federation.spec.d.ts.map +1 -0
  284. package/dist/tests/tests/e2e/code-first-federation.spec.js +116 -0
  285. package/dist/tests/tests/e2e/code-first-inheritance.spec.d.ts +2 -0
  286. package/dist/tests/tests/e2e/code-first-inheritance.spec.d.ts.map +1 -0
  287. package/dist/tests/tests/e2e/code-first-inheritance.spec.js +93 -0
  288. package/dist/tests/tests/e2e/code-first-register-in.spec.d.ts +2 -0
  289. package/dist/tests/tests/e2e/code-first-register-in.spec.d.ts.map +1 -0
  290. package/dist/tests/tests/e2e/code-first-register-in.spec.js +203 -0
  291. package/dist/tests/tests/e2e/code-first-schema.spec.d.ts +2 -0
  292. package/dist/tests/tests/e2e/code-first-schema.spec.d.ts.map +1 -0
  293. package/dist/tests/tests/e2e/code-first-schema.spec.js +783 -0
  294. package/dist/tests/tests/e2e/code-first.spec.d.ts +2 -0
  295. package/dist/tests/tests/e2e/code-first.spec.d.ts.map +1 -0
  296. package/dist/tests/tests/e2e/code-first.spec.js +157 -0
  297. package/dist/tests/tests/e2e/custom-context.spec.d.ts +2 -0
  298. package/dist/tests/tests/e2e/custom-context.spec.d.ts.map +1 -0
  299. package/dist/tests/tests/e2e/custom-context.spec.js +48 -0
  300. package/dist/tests/tests/e2e/duplicate-resolvers.spec.d.ts +2 -0
  301. package/dist/tests/tests/e2e/duplicate-resolvers.spec.d.ts.map +1 -0
  302. package/dist/tests/tests/e2e/duplicate-resolvers.spec.js +65 -0
  303. package/dist/tests/tests/e2e/enum-union-directives.spec.d.ts +2 -0
  304. package/dist/tests/tests/e2e/enum-union-directives.spec.d.ts.map +1 -0
  305. package/dist/tests/tests/e2e/enum-union-directives.spec.js +122 -0
  306. package/dist/tests/tests/e2e/federation-timestamp-scalar.spec.d.ts +2 -0
  307. package/dist/tests/tests/e2e/federation-timestamp-scalar.spec.d.ts.map +1 -0
  308. package/dist/tests/tests/e2e/federation-timestamp-scalar.spec.js +88 -0
  309. package/dist/tests/tests/e2e/generated-definitions.spec.d.ts +2 -0
  310. package/dist/tests/tests/e2e/generated-definitions.spec.d.ts.map +1 -0
  311. package/dist/tests/tests/e2e/generated-definitions.spec.js +211 -0
  312. package/dist/tests/tests/e2e/global-prefix-fastify.spec.d.ts +2 -0
  313. package/dist/tests/tests/e2e/global-prefix-fastify.spec.d.ts.map +1 -0
  314. package/dist/tests/tests/e2e/global-prefix-fastify.spec.js +131 -0
  315. package/dist/tests/tests/e2e/global-prefix.spec.d.ts +2 -0
  316. package/dist/tests/tests/e2e/global-prefix.spec.d.ts.map +1 -0
  317. package/dist/tests/tests/e2e/global-prefix.spec.js +219 -0
  318. package/dist/tests/tests/e2e/graphiql-playground.spec.d.ts +2 -0
  319. package/dist/tests/tests/e2e/graphiql-playground.spec.d.ts.map +1 -0
  320. package/dist/tests/tests/e2e/graphiql-playground.spec.js +186 -0
  321. package/dist/tests/tests/e2e/graphql-async-class.spec.d.ts +2 -0
  322. package/dist/tests/tests/e2e/graphql-async-class.spec.d.ts.map +1 -0
  323. package/dist/tests/tests/e2e/graphql-async-class.spec.js +36 -0
  324. package/dist/tests/tests/e2e/graphql-async-existing.spec.d.ts +2 -0
  325. package/dist/tests/tests/e2e/graphql-async-existing.spec.d.ts.map +1 -0
  326. package/dist/tests/tests/e2e/graphql-async-existing.spec.js +36 -0
  327. package/dist/tests/tests/e2e/graphql-async.spec.d.ts +2 -0
  328. package/dist/tests/tests/e2e/graphql-async.spec.d.ts.map +1 -0
  329. package/dist/tests/tests/e2e/graphql-async.spec.js +34 -0
  330. package/dist/tests/tests/e2e/graphql-fastify.spec.d.ts +2 -0
  331. package/dist/tests/tests/e2e/graphql-fastify.spec.d.ts.map +1 -0
  332. package/dist/tests/tests/e2e/graphql-fastify.spec.js +48 -0
  333. package/dist/tests/tests/e2e/graphql-federation-async-class.spec.d.ts +2 -0
  334. package/dist/tests/tests/e2e/graphql-federation-async-class.spec.d.ts.map +1 -0
  335. package/dist/tests/tests/e2e/graphql-federation-async-class.spec.js +42 -0
  336. package/dist/tests/tests/e2e/graphql-federation-async-existing.spec.d.ts +2 -0
  337. package/dist/tests/tests/e2e/graphql-federation-async-existing.spec.d.ts.map +1 -0
  338. package/dist/tests/tests/e2e/graphql-federation-async-existing.spec.js +42 -0
  339. package/dist/tests/tests/e2e/graphql-federation-async.spec.d.ts +2 -0
  340. package/dist/tests/tests/e2e/graphql-federation-async.spec.d.ts.map +1 -0
  341. package/dist/tests/tests/e2e/graphql-federation-async.spec.js +42 -0
  342. package/dist/tests/tests/e2e/graphql-federation-fastify.spec.d.ts +2 -0
  343. package/dist/tests/tests/e2e/graphql-federation-fastify.spec.d.ts.map +1 -0
  344. package/dist/tests/tests/e2e/graphql-federation-fastify.spec.js +48 -0
  345. package/dist/tests/tests/e2e/graphql-federation-schema-host.spec.d.ts +2 -0
  346. package/dist/tests/tests/e2e/graphql-federation-schema-host.spec.d.ts.map +1 -0
  347. package/dist/tests/tests/e2e/graphql-federation-schema-host.spec.js +23 -0
  348. package/dist/tests/tests/e2e/graphql-federation.spec.d.ts +2 -0
  349. package/dist/tests/tests/e2e/graphql-federation.spec.d.ts.map +1 -0
  350. package/dist/tests/tests/e2e/graphql-federation.spec.js +202 -0
  351. package/dist/tests/tests/e2e/graphql-gateway-async-class.spec.d.ts +2 -0
  352. package/dist/tests/tests/e2e/graphql-gateway-async-class.spec.d.ts.map +1 -0
  353. package/dist/tests/tests/e2e/graphql-gateway-async-class.spec.js +103 -0
  354. package/dist/tests/tests/e2e/graphql-gateway-async-existing.spec.d.ts +2 -0
  355. package/dist/tests/tests/e2e/graphql-gateway-async-existing.spec.d.ts.map +1 -0
  356. package/dist/tests/tests/e2e/graphql-gateway-async-existing.spec.js +103 -0
  357. package/dist/tests/tests/e2e/graphql-gateway-async.spec.d.ts +2 -0
  358. package/dist/tests/tests/e2e/graphql-gateway-async.spec.d.ts.map +1 -0
  359. package/dist/tests/tests/e2e/graphql-gateway-async.spec.js +83 -0
  360. package/dist/tests/tests/e2e/graphql-gateway-fastify.spec.d.ts +2 -0
  361. package/dist/tests/tests/e2e/graphql-gateway-fastify.spec.d.ts.map +1 -0
  362. package/dist/tests/tests/e2e/graphql-gateway-fastify.spec.js +119 -0
  363. package/dist/tests/tests/e2e/graphql-gateway-transform-schema.spec.d.ts +2 -0
  364. package/dist/tests/tests/e2e/graphql-gateway-transform-schema.spec.d.ts.map +1 -0
  365. package/dist/tests/tests/e2e/graphql-gateway-transform-schema.spec.js +108 -0
  366. package/dist/tests/tests/e2e/graphql-gateway.spec.d.ts +2 -0
  367. package/dist/tests/tests/e2e/graphql-gateway.spec.d.ts.map +1 -0
  368. package/dist/tests/tests/e2e/graphql-gateway.spec.js +121 -0
  369. package/dist/tests/tests/e2e/graphql-request-scoped.spec.d.ts +2 -0
  370. package/dist/tests/tests/e2e/graphql-request-scoped.spec.d.ts.map +1 -0
  371. package/dist/tests/tests/e2e/graphql-request-scoped.spec.js +56 -0
  372. package/dist/tests/tests/e2e/graphql-sort-auto-schema.spec.d.ts +2 -0
  373. package/dist/tests/tests/e2e/graphql-sort-auto-schema.spec.d.ts.map +1 -0
  374. package/dist/tests/tests/e2e/graphql-sort-auto-schema.spec.js +38 -0
  375. package/dist/tests/tests/e2e/graphql-sort-schema.spec.d.ts +2 -0
  376. package/dist/tests/tests/e2e/graphql-sort-schema.spec.d.ts.map +1 -0
  377. package/dist/tests/tests/e2e/graphql-sort-schema.spec.js +50 -0
  378. package/dist/tests/tests/e2e/graphql-transform-auto-schema-file.spec.d.ts +2 -0
  379. package/dist/tests/tests/e2e/graphql-transform-auto-schema-file.spec.d.ts.map +1 -0
  380. package/dist/tests/tests/e2e/graphql-transform-auto-schema-file.spec.js +29 -0
  381. package/dist/tests/tests/e2e/graphql.spec.d.ts +2 -0
  382. package/dist/tests/tests/e2e/graphql.spec.d.ts.map +1 -0
  383. package/dist/tests/tests/e2e/graphql.spec.js +52 -0
  384. package/dist/tests/tests/e2e/guards-filters.spec.d.ts +2 -0
  385. package/dist/tests/tests/e2e/guards-filters.spec.d.ts.map +1 -0
  386. package/dist/tests/tests/e2e/guards-filters.spec.js +45 -0
  387. package/dist/tests/tests/e2e/issue-2940-http-error-status.spec.d.ts +2 -0
  388. package/dist/tests/tests/e2e/issue-2940-http-error-status.spec.d.ts.map +1 -0
  389. package/dist/tests/tests/e2e/issue-2940-http-error-status.spec.js +127 -0
  390. package/dist/tests/tests/e2e/pipes.spec.d.ts +2 -0
  391. package/dist/tests/tests/e2e/pipes.spec.d.ts.map +1 -0
  392. package/dist/tests/tests/e2e/pipes.spec.js +50 -0
  393. package/dist/tests/tests/e2e/request-scoped.spec.d.ts +2 -0
  394. package/dist/tests/tests/e2e/request-scoped.spec.d.ts.map +1 -0
  395. package/dist/tests/tests/e2e/request-scoped.spec.js +86 -0
  396. package/dist/tests/tests/e2e/resolver-registration-methods.spec.d.ts +2 -0
  397. package/dist/tests/tests/e2e/resolver-registration-methods.spec.d.ts.map +1 -0
  398. package/dist/tests/tests/e2e/resolver-registration-methods.spec.js +88 -0
  399. package/dist/tests/tests/e2e/serialized-graph.spec.d.ts +2 -0
  400. package/dist/tests/tests/e2e/serialized-graph.spec.d.ts.map +1 -0
  401. package/dist/tests/tests/e2e/serialized-graph.spec.js +23 -0
  402. package/dist/tests/tests/generated-definitions/array-property.fixture.d.ts +12 -0
  403. package/dist/tests/tests/generated-definitions/array-property.fixture.d.ts.map +1 -0
  404. package/dist/tests/tests/generated-definitions/array-property.fixture.js +7 -0
  405. package/dist/tests/tests/generated-definitions/array-property.test-definitions.d.ts +12 -0
  406. package/dist/tests/tests/generated-definitions/array-property.test-definitions.d.ts.map +1 -0
  407. package/dist/tests/tests/generated-definitions/array-property.test-definitions.js +7 -0
  408. package/dist/tests/tests/generated-definitions/custom-header.fixture.d.ts +2 -0
  409. package/dist/tests/tests/generated-definitions/custom-header.fixture.d.ts.map +1 -0
  410. package/dist/tests/tests/generated-definitions/custom-header.fixture.js +7 -0
  411. package/dist/tests/tests/generated-definitions/custom-header.test-definitions.d.ts +2 -0
  412. package/dist/tests/tests/generated-definitions/custom-header.test-definitions.d.ts.map +1 -0
  413. package/dist/tests/tests/generated-definitions/custom-header.test-definitions.js +7 -0
  414. package/dist/tests/tests/generated-definitions/custom-scalar-default-type.fixture.d.ts +2 -0
  415. package/dist/tests/tests/generated-definitions/custom-scalar-default-type.fixture.d.ts.map +1 -0
  416. package/dist/tests/tests/generated-definitions/custom-scalar-default-type.fixture.js +7 -0
  417. package/dist/tests/tests/generated-definitions/custom-scalar-default-type.test-definitions.d.ts +2 -0
  418. package/dist/tests/tests/generated-definitions/custom-scalar-default-type.test-definitions.d.ts.map +1 -0
  419. package/dist/tests/tests/generated-definitions/custom-scalar-default-type.test-definitions.js +7 -0
  420. package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.fixture.d.ts +4 -0
  421. package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.fixture.d.ts.map +1 -0
  422. package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.fixture.js +7 -0
  423. package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.test-definitions.d.ts +4 -0
  424. package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.test-definitions.d.ts.map +1 -0
  425. package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.test-definitions.js +7 -0
  426. package/dist/tests/tests/generated-definitions/custom-scalar.fixture.d.ts +2 -0
  427. package/dist/tests/tests/generated-definitions/custom-scalar.fixture.d.ts.map +1 -0
  428. package/dist/tests/tests/generated-definitions/custom-scalar.fixture.js +7 -0
  429. package/dist/tests/tests/generated-definitions/custom-scalar.test-definitions.d.ts +2 -0
  430. package/dist/tests/tests/generated-definitions/custom-scalar.test-definitions.d.ts.map +1 -0
  431. package/dist/tests/tests/generated-definitions/custom-scalar.test-definitions.js +7 -0
  432. package/dist/tests/tests/generated-definitions/enum-as-type.fixture.d.ts +2 -0
  433. package/dist/tests/tests/generated-definitions/enum-as-type.fixture.d.ts.map +1 -0
  434. package/dist/tests/tests/generated-definitions/enum-as-type.fixture.js +7 -0
  435. package/dist/tests/tests/generated-definitions/enum-as-type.test-definitions.d.ts +2 -0
  436. package/dist/tests/tests/generated-definitions/enum-as-type.test-definitions.d.ts.map +1 -0
  437. package/dist/tests/tests/generated-definitions/enum-as-type.test-definitions.js +7 -0
  438. package/dist/tests/tests/generated-definitions/enum.fixture.d.ts +6 -0
  439. package/dist/tests/tests/generated-definitions/enum.fixture.d.ts.map +1 -0
  440. package/dist/tests/tests/generated-definitions/enum.fixture.js +16 -0
  441. package/dist/tests/tests/generated-definitions/enum.test-definitions.d.ts +6 -0
  442. package/dist/tests/tests/generated-definitions/enum.test-definitions.d.ts.map +1 -0
  443. package/dist/tests/tests/generated-definitions/enum.test-definitions.js +16 -0
  444. package/dist/tests/tests/generated-definitions/federation-partial-query.fixture.d.ts +6 -0
  445. package/dist/tests/tests/generated-definitions/federation-partial-query.fixture.d.ts.map +1 -0
  446. package/dist/tests/tests/generated-definitions/federation-partial-query.fixture.js +7 -0
  447. package/dist/tests/tests/generated-definitions/federation-partial-query.test-definitions.d.ts +6 -0
  448. package/dist/tests/tests/generated-definitions/federation-partial-query.test-definitions.d.ts.map +1 -0
  449. package/dist/tests/tests/generated-definitions/federation-partial-query.test-definitions.js +7 -0
  450. package/dist/tests/tests/generated-definitions/federation-typedef.fixture.d.ts +23 -0
  451. package/dist/tests/tests/generated-definitions/federation-typedef.fixture.d.ts.map +1 -0
  452. package/dist/tests/tests/generated-definitions/federation-typedef.fixture.js +28 -0
  453. package/dist/tests/tests/generated-definitions/federation-typedef.test-definitions.d.ts +23 -0
  454. package/dist/tests/tests/generated-definitions/federation-typedef.test-definitions.d.ts.map +1 -0
  455. package/dist/tests/tests/generated-definitions/federation-typedef.test-definitions.js +28 -0
  456. package/dist/tests/tests/generated-definitions/federation.fixture.d.ts +19 -0
  457. package/dist/tests/tests/generated-definitions/federation.fixture.d.ts.map +1 -0
  458. package/dist/tests/tests/generated-definitions/federation.fixture.js +23 -0
  459. package/dist/tests/tests/generated-definitions/federation.test-definitions.d.ts +19 -0
  460. package/dist/tests/tests/generated-definitions/federation.test-definitions.d.ts.map +1 -0
  461. package/dist/tests/tests/generated-definitions/federation.test-definitions.js +23 -0
  462. package/dist/tests/tests/generated-definitions/interface-property.fixture.d.ts +10 -0
  463. package/dist/tests/tests/generated-definitions/interface-property.fixture.d.ts.map +1 -0
  464. package/dist/tests/tests/generated-definitions/interface-property.fixture.js +7 -0
  465. package/dist/tests/tests/generated-definitions/interface-property.test-definitions.d.ts +10 -0
  466. package/dist/tests/tests/generated-definitions/interface-property.test-definitions.d.ts.map +1 -0
  467. package/dist/tests/tests/generated-definitions/interface-property.test-definitions.js +7 -0
  468. package/dist/tests/tests/generated-definitions/mutation.fixture.d.ts +13 -0
  469. package/dist/tests/tests/generated-definitions/mutation.fixture.d.ts.map +1 -0
  470. package/dist/tests/tests/generated-definitions/mutation.fixture.js +7 -0
  471. package/dist/tests/tests/generated-definitions/mutation.test-definitions.d.ts +13 -0
  472. package/dist/tests/tests/generated-definitions/mutation.test-definitions.d.ts.map +1 -0
  473. package/dist/tests/tests/generated-definitions/mutation.test-definitions.js +7 -0
  474. package/dist/tests/tests/generated-definitions/query-skip-args.fixture.d.ts +9 -0
  475. package/dist/tests/tests/generated-definitions/query-skip-args.fixture.d.ts.map +1 -0
  476. package/dist/tests/tests/generated-definitions/query-skip-args.fixture.js +7 -0
  477. package/dist/tests/tests/generated-definitions/query-skip-args.test-definitions.d.ts +9 -0
  478. package/dist/tests/tests/generated-definitions/query-skip-args.test-definitions.d.ts.map +1 -0
  479. package/dist/tests/tests/generated-definitions/query-skip-args.test-definitions.js +7 -0
  480. package/dist/tests/tests/generated-definitions/query.fixture.d.ts +9 -0
  481. package/dist/tests/tests/generated-definitions/query.fixture.d.ts.map +1 -0
  482. package/dist/tests/tests/generated-definitions/query.fixture.js +7 -0
  483. package/dist/tests/tests/generated-definitions/query.test-definitions.d.ts +9 -0
  484. package/dist/tests/tests/generated-definitions/query.test-definitions.d.ts.map +1 -0
  485. package/dist/tests/tests/generated-definitions/query.test-definitions.js +7 -0
  486. package/dist/tests/tests/generated-definitions/simple-type.fixture.d.ts +10 -0
  487. package/dist/tests/tests/generated-definitions/simple-type.fixture.d.ts.map +1 -0
  488. package/dist/tests/tests/generated-definitions/simple-type.fixture.js +7 -0
  489. package/dist/tests/tests/generated-definitions/simple-type.test-definitions.d.ts +10 -0
  490. package/dist/tests/tests/generated-definitions/simple-type.test-definitions.d.ts.map +1 -0
  491. package/dist/tests/tests/generated-definitions/simple-type.test-definitions.js +7 -0
  492. package/dist/tests/tests/generated-definitions/type-name.fixture.d.ts +33 -0
  493. package/dist/tests/tests/generated-definitions/type-name.fixture.d.ts.map +1 -0
  494. package/dist/tests/tests/generated-definitions/type-name.fixture.js +16 -0
  495. package/dist/tests/tests/generated-definitions/type-name.test-definitions.d.ts +33 -0
  496. package/dist/tests/tests/generated-definitions/type-name.test-definitions.d.ts.map +1 -0
  497. package/dist/tests/tests/generated-definitions/type-name.test-definitions.js +16 -0
  498. package/dist/tests/tests/generated-definitions/typename.fixture.d.ts +11 -0
  499. package/dist/tests/tests/generated-definitions/typename.fixture.d.ts.map +1 -0
  500. package/dist/tests/tests/generated-definitions/typename.fixture.js +7 -0
  501. package/dist/tests/tests/generated-definitions/typename.test-definitions.d.ts +11 -0
  502. package/dist/tests/tests/generated-definitions/typename.test-definitions.d.ts.map +1 -0
  503. package/dist/tests/tests/generated-definitions/typename.test-definitions.js +7 -0
  504. package/dist/tests/tests/graphql/app.module.d.ts +3 -0
  505. package/dist/tests/tests/graphql/app.module.d.ts.map +1 -0
  506. package/dist/tests/tests/graphql/app.module.js +23 -0
  507. package/dist/tests/tests/graphql/async-options-class.module.d.ts +3 -0
  508. package/dist/tests/tests/graphql/async-options-class.module.d.ts.map +1 -0
  509. package/dist/tests/tests/graphql/async-options-class.module.js +30 -0
  510. package/dist/tests/tests/graphql/async-options-existing.module.d.ts +3 -0
  511. package/dist/tests/tests/graphql/async-options-existing.module.d.ts.map +1 -0
  512. package/dist/tests/tests/graphql/async-options-existing.module.js +25 -0
  513. package/dist/tests/tests/graphql/async-options.module.d.ts +3 -0
  514. package/dist/tests/tests/graphql/async-options.module.d.ts.map +1 -0
  515. package/dist/tests/tests/graphql/async-options.module.js +25 -0
  516. package/dist/tests/tests/graphql/cats/cats-request-scoped.service.d.ts +10 -0
  517. package/dist/tests/tests/graphql/cats/cats-request-scoped.service.d.ts.map +1 -0
  518. package/dist/tests/tests/graphql/cats/cats-request-scoped.service.js +28 -0
  519. package/dist/tests/tests/graphql/cats/cats.guard.d.ts +5 -0
  520. package/dist/tests/tests/graphql/cats/cats.guard.d.ts.map +1 -0
  521. package/dist/tests/tests/graphql/cats/cats.guard.js +16 -0
  522. package/dist/tests/tests/graphql/cats/cats.module.d.ts +5 -0
  523. package/dist/tests/tests/graphql/cats/cats.module.d.ts.map +1 -0
  524. package/dist/tests/tests/graphql/cats/cats.module.js +29 -0
  525. package/dist/tests/tests/graphql/cats/cats.resolvers.d.ts +13 -0
  526. package/dist/tests/tests/graphql/cats/cats.resolvers.d.ts.map +1 -0
  527. package/dist/tests/tests/graphql/cats/cats.resolvers.js +79 -0
  528. package/dist/tests/tests/graphql/cats/cats.service.d.ts +10 -0
  529. package/dist/tests/tests/graphql/cats/cats.service.d.ts.map +1 -0
  530. package/dist/tests/tests/graphql/cats/cats.service.js +28 -0
  531. package/dist/tests/tests/graphql/cats/interfaces/cat.interface.d.ts +6 -0
  532. package/dist/tests/tests/graphql/cats/interfaces/cat.interface.d.ts.map +1 -0
  533. package/dist/tests/tests/graphql/cats/interfaces/cat.interface.js +2 -0
  534. package/dist/tests/tests/graphql/common/scalars/date.scalar.d.ts +7 -0
  535. package/dist/tests/tests/graphql/common/scalars/date.scalar.d.ts.map +1 -0
  536. package/dist/tests/tests/graphql/common/scalars/date.scalar.js +27 -0
  537. package/dist/tests/tests/graphql/config.module.d.ts +3 -0
  538. package/dist/tests/tests/graphql/config.module.d.ts.map +1 -0
  539. package/dist/tests/tests/graphql/config.module.js +15 -0
  540. package/dist/tests/tests/graphql/config.service.d.ts +5 -0
  541. package/dist/tests/tests/graphql/config.service.d.ts.map +1 -0
  542. package/dist/tests/tests/graphql/config.service.js +17 -0
  543. package/dist/tests/tests/graphql/custom-context/custom-context.module.d.ts +3 -0
  544. package/dist/tests/tests/graphql/custom-context/custom-context.module.d.ts.map +1 -0
  545. package/dist/tests/tests/graphql/custom-context/custom-context.module.js +26 -0
  546. package/dist/tests/tests/graphql/custom-context/custom-context.resolver.d.ts +4 -0
  547. package/dist/tests/tests/graphql/custom-context/custom-context.resolver.d.ts.map +1 -0
  548. package/dist/tests/tests/graphql/custom-context/custom-context.resolver.js +21 -0
  549. package/dist/tests/tests/graphql/global-prefix-async-options-class.module.d.ts +3 -0
  550. package/dist/tests/tests/graphql/global-prefix-async-options-class.module.d.ts.map +1 -0
  551. package/dist/tests/tests/graphql/global-prefix-async-options-class.module.js +31 -0
  552. package/dist/tests/tests/graphql/global-prefix-async-options.module.d.ts +3 -0
  553. package/dist/tests/tests/graphql/global-prefix-async-options.module.d.ts.map +1 -0
  554. package/dist/tests/tests/graphql/global-prefix-async-options.module.js +26 -0
  555. package/dist/tests/tests/graphql/global-prefix.module.d.ts +3 -0
  556. package/dist/tests/tests/graphql/global-prefix.module.d.ts.map +1 -0
  557. package/dist/tests/tests/graphql/global-prefix.module.js +24 -0
  558. package/dist/tests/tests/graphql/graphiql-playground.module.d.ts +12 -0
  559. package/dist/tests/tests/graphql/graphiql-playground.module.d.ts.map +1 -0
  560. package/dist/tests/tests/graphql/graphiql-playground.module.js +44 -0
  561. package/dist/tests/tests/graphql/hello/dto/test.dto.d.ts +5 -0
  562. package/dist/tests/tests/graphql/hello/dto/test.dto.d.ts.map +1 -0
  563. package/dist/tests/tests/graphql/hello/dto/test.dto.js +17 -0
  564. package/dist/tests/tests/graphql/hello/guards/request-scoped.guard.d.ts +10 -0
  565. package/dist/tests/tests/graphql/hello/guards/request-scoped.guard.d.ts.map +1 -0
  566. package/dist/tests/tests/graphql/hello/guards/request-scoped.guard.js +24 -0
  567. package/dist/tests/tests/graphql/hello/hello.module.d.ts +7 -0
  568. package/dist/tests/tests/graphql/hello/hello.module.d.ts.map +1 -0
  569. package/dist/tests/tests/graphql/hello/hello.module.js +46 -0
  570. package/dist/tests/tests/graphql/hello/hello.resolver.d.ts +10 -0
  571. package/dist/tests/tests/graphql/hello/hello.resolver.d.ts.map +1 -0
  572. package/dist/tests/tests/graphql/hello/hello.resolver.js +36 -0
  573. package/dist/tests/tests/graphql/hello/hello.service.d.ts +6 -0
  574. package/dist/tests/tests/graphql/hello/hello.service.d.ts.map +1 -0
  575. package/dist/tests/tests/graphql/hello/hello.service.js +19 -0
  576. package/dist/tests/tests/graphql/hello/interceptors/logging.interceptor.d.ts +10 -0
  577. package/dist/tests/tests/graphql/hello/interceptors/logging.interceptor.d.ts.map +1 -0
  578. package/dist/tests/tests/graphql/hello/interceptors/logging.interceptor.js +24 -0
  579. package/dist/tests/tests/graphql/hello/users/user-by-id.pipe.d.ts +13 -0
  580. package/dist/tests/tests/graphql/hello/users/user-by-id.pipe.d.ts.map +1 -0
  581. package/dist/tests/tests/graphql/hello/users/user-by-id.pipe.js +26 -0
  582. package/dist/tests/tests/graphql/hello/users/users.service.d.ts +11 -0
  583. package/dist/tests/tests/graphql/hello/users/users.service.d.ts.map +1 -0
  584. package/dist/tests/tests/graphql/hello/users/users.service.js +27 -0
  585. package/dist/tests/tests/graphql/main.d.ts +2 -0
  586. package/dist/tests/tests/graphql/main.d.ts.map +1 -0
  587. package/dist/tests/tests/graphql/main.js +9 -0
  588. package/dist/tests/tests/graphql/sort-auto-schema.module.d.ts +3 -0
  589. package/dist/tests/tests/graphql/sort-auto-schema.module.d.ts.map +1 -0
  590. package/dist/tests/tests/graphql/sort-auto-schema.module.js +28 -0
  591. package/dist/tests/tests/graphql/sort-schema.module.d.ts +3 -0
  592. package/dist/tests/tests/graphql/sort-schema.module.d.ts.map +1 -0
  593. package/dist/tests/tests/graphql/sort-schema.module.js +24 -0
  594. package/dist/tests/tests/graphql/transform-auto-schema-file.module.d.ts +3 -0
  595. package/dist/tests/tests/graphql/transform-auto-schema-file.module.d.ts.map +1 -0
  596. package/dist/tests/tests/graphql/transform-auto-schema-file.module.js +27 -0
  597. package/dist/tests/tests/graphql-federation/gateway/config/config.module.d.ts +3 -0
  598. package/dist/tests/tests/graphql-federation/gateway/config/config.module.d.ts.map +1 -0
  599. package/dist/tests/tests/graphql-federation/gateway/config/config.module.js +15 -0
  600. package/dist/tests/tests/graphql-federation/gateway/config/config.service.d.ts +5 -0
  601. package/dist/tests/tests/graphql-federation/gateway/config/config.service.d.ts.map +1 -0
  602. package/dist/tests/tests/graphql-federation/gateway/config/config.service.js +19 -0
  603. package/dist/tests/tests/graphql-federation/gateway/gateway-async-class.module.d.ts +3 -0
  604. package/dist/tests/tests/graphql-federation/gateway/gateway-async-class.module.d.ts.map +1 -0
  605. package/dist/tests/tests/graphql-federation/gateway/gateway-async-class.module.js +24 -0
  606. package/dist/tests/tests/graphql-federation/gateway/gateway-async-existing.module.d.ts +3 -0
  607. package/dist/tests/tests/graphql-federation/gateway/gateway-async-existing.module.d.ts.map +1 -0
  608. package/dist/tests/tests/graphql-federation/gateway/gateway-async-existing.module.js +24 -0
  609. package/dist/tests/tests/graphql-federation/gateway/gateway-async.module.d.ts +3 -0
  610. package/dist/tests/tests/graphql-federation/gateway/gateway-async.module.d.ts.map +1 -0
  611. package/dist/tests/tests/graphql-federation/gateway/gateway-async.module.js +26 -0
  612. package/dist/tests/tests/graphql-federation/gateway/gateway.module.d.ts +3 -0
  613. package/dist/tests/tests/graphql-federation/gateway/gateway.module.d.ts.map +1 -0
  614. package/dist/tests/tests/graphql-federation/gateway/gateway.module.js +24 -0
  615. package/dist/tests/tests/graphql-federation/gateway/supergraph-sdl.d.ts +3 -0
  616. package/dist/tests/tests/graphql-federation/gateway/supergraph-sdl.d.ts.map +1 -0
  617. package/dist/tests/tests/graphql-federation/gateway/supergraph-sdl.js +95 -0
  618. package/dist/tests/tests/graphql-federation/posts-service/federation-posts.module.d.ts +3 -0
  619. package/dist/tests/tests/graphql-federation/posts-service/federation-posts.module.d.ts.map +1 -0
  620. package/dist/tests/tests/graphql-federation/posts-service/federation-posts.module.js +27 -0
  621. package/dist/tests/tests/graphql-federation/posts-service/posts/date.scalar.d.ts +9 -0
  622. package/dist/tests/tests/graphql-federation/posts-service/posts/date.scalar.d.ts.map +1 -0
  623. package/dist/tests/tests/graphql-federation/posts-service/posts/date.scalar.js +31 -0
  624. package/dist/tests/tests/graphql-federation/posts-service/posts/post-type.enum.d.ts +5 -0
  625. package/dist/tests/tests/graphql-federation/posts-service/posts/post-type.enum.d.ts.map +1 -0
  626. package/dist/tests/tests/graphql-federation/posts-service/posts/post-type.enum.js +8 -0
  627. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.interfaces.d.ts +10 -0
  628. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.interfaces.d.ts.map +1 -0
  629. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.interfaces.js +2 -0
  630. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.module.d.ts +3 -0
  631. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.module.d.ts.map +1 -0
  632. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.module.js +17 -0
  633. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.resolvers.d.ts +14 -0
  634. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.resolvers.d.ts.map +1 -0
  635. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.resolvers.js +53 -0
  636. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.service.d.ts +11 -0
  637. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.service.d.ts.map +1 -0
  638. package/dist/tests/tests/graphql-federation/posts-service/posts/posts.service.js +41 -0
  639. package/dist/tests/tests/graphql-federation/posts-service/posts/upper.directive.d.ts +2 -0
  640. package/dist/tests/tests/graphql-federation/posts-service/posts/upper.directive.d.ts.map +1 -0
  641. package/dist/tests/tests/graphql-federation/posts-service/posts/upper.directive.js +25 -0
  642. package/dist/tests/tests/graphql-federation/posts-service/posts/users.resolvers.d.ts +7 -0
  643. package/dist/tests/tests/graphql-federation/posts-service/posts/users.resolvers.d.ts.map +1 -0
  644. package/dist/tests/tests/graphql-federation/posts-service/posts/users.resolvers.js +25 -0
  645. package/dist/tests/tests/graphql-federation/users-service/config/config.module.d.ts +3 -0
  646. package/dist/tests/tests/graphql-federation/users-service/config/config.module.d.ts.map +1 -0
  647. package/dist/tests/tests/graphql-federation/users-service/config/config.module.js +15 -0
  648. package/dist/tests/tests/graphql-federation/users-service/config/config.service.d.ts +5 -0
  649. package/dist/tests/tests/graphql-federation/users-service/config/config.service.d.ts.map +1 -0
  650. package/dist/tests/tests/graphql-federation/users-service/config/config.service.js +19 -0
  651. package/dist/tests/tests/graphql-federation/users-service/federation-users.async-class.module.d.ts +3 -0
  652. package/dist/tests/tests/graphql-federation/users-service/federation-users.async-class.module.d.ts.map +1 -0
  653. package/dist/tests/tests/graphql-federation/users-service/federation-users.async-class.module.js +26 -0
  654. package/dist/tests/tests/graphql-federation/users-service/federation-users.async-existing.module.d.ts +3 -0
  655. package/dist/tests/tests/graphql-federation/users-service/federation-users.async-existing.module.d.ts.map +1 -0
  656. package/dist/tests/tests/graphql-federation/users-service/federation-users.async-existing.module.js +26 -0
  657. package/dist/tests/tests/graphql-federation/users-service/federation-users.async.module.d.ts +3 -0
  658. package/dist/tests/tests/graphql-federation/users-service/federation-users.async.module.d.ts.map +1 -0
  659. package/dist/tests/tests/graphql-federation/users-service/federation-users.async.module.js +28 -0
  660. package/dist/tests/tests/graphql-federation/users-service/federation-users.module.d.ts +3 -0
  661. package/dist/tests/tests/graphql-federation/users-service/federation-users.module.d.ts.map +1 -0
  662. package/dist/tests/tests/graphql-federation/users-service/federation-users.module.js +25 -0
  663. package/dist/tests/tests/graphql-federation/users-service/users/users.interfaces.d.ts +5 -0
  664. package/dist/tests/tests/graphql-federation/users-service/users/users.interfaces.d.ts.map +1 -0
  665. package/dist/tests/tests/graphql-federation/users-service/users/users.interfaces.js +2 -0
  666. package/dist/tests/tests/graphql-federation/users-service/users/users.module.d.ts +3 -0
  667. package/dist/tests/tests/graphql-federation/users-service/users/users.module.d.ts.map +1 -0
  668. package/dist/tests/tests/graphql-federation/users-service/users/users.module.js +15 -0
  669. package/dist/tests/tests/graphql-federation/users-service/users/users.resolvers.d.ts +11 -0
  670. package/dist/tests/tests/graphql-federation/users-service/users/users.resolvers.d.ts.map +1 -0
  671. package/dist/tests/tests/graphql-federation/users-service/users/users.resolvers.js +35 -0
  672. package/dist/tests/tests/graphql-federation/users-service/users/users.service.d.ts +6 -0
  673. package/dist/tests/tests/graphql-federation/users-service/users/users.service.d.ts.map +1 -0
  674. package/dist/tests/tests/graphql-federation/users-service/users/users.service.js +22 -0
  675. package/dist/tests/tests/subscriptions/app/app.module.d.ts +11 -0
  676. package/dist/tests/tests/subscriptions/app/app.module.d.ts.map +1 -0
  677. package/dist/tests/tests/subscriptions/app/app.module.js +30 -0
  678. package/dist/tests/tests/subscriptions/app/auth.guard.d.ts +5 -0
  679. package/dist/tests/tests/subscriptions/app/auth.guard.d.ts.map +1 -0
  680. package/dist/tests/tests/subscriptions/app/auth.guard.js +16 -0
  681. package/dist/tests/tests/subscriptions/app/notification.d.ts +6 -0
  682. package/dist/tests/tests/subscriptions/app/notification.d.ts.map +1 -0
  683. package/dist/tests/tests/subscriptions/app/notification.js +29 -0
  684. package/dist/tests/tests/subscriptions/app/notification.module.d.ts +3 -0
  685. package/dist/tests/tests/subscriptions/app/notification.module.d.ts.map +1 -0
  686. package/dist/tests/tests/subscriptions/app/notification.module.js +14 -0
  687. package/dist/tests/tests/subscriptions/app/notification.resolver.d.ts +10 -0
  688. package/dist/tests/tests/subscriptions/app/notification.resolver.d.ts.map +1 -0
  689. package/dist/tests/tests/subscriptions/app/notification.resolver.js +50 -0
  690. package/dist/tests/tests/subscriptions/async-iterator.spec.d.ts +2 -0
  691. package/dist/tests/tests/subscriptions/async-iterator.spec.d.ts.map +1 -0
  692. package/dist/tests/tests/subscriptions/async-iterator.spec.js +48 -0
  693. package/dist/tests/tests/subscriptions/federation-app/federation-app.module.d.ts +9 -0
  694. package/dist/tests/tests/subscriptions/federation-app/federation-app.module.d.ts.map +1 -0
  695. package/dist/tests/tests/subscriptions/federation-app/federation-app.module.js +29 -0
  696. package/dist/tests/tests/subscriptions/federation-app/notification.d.ts +6 -0
  697. package/dist/tests/tests/subscriptions/federation-app/notification.d.ts.map +1 -0
  698. package/dist/tests/tests/subscriptions/federation-app/notification.js +23 -0
  699. package/dist/tests/tests/subscriptions/federation-app/notification.module.d.ts +3 -0
  700. package/dist/tests/tests/subscriptions/federation-app/notification.module.d.ts.map +1 -0
  701. package/dist/tests/tests/subscriptions/federation-app/notification.module.js +14 -0
  702. package/dist/tests/tests/subscriptions/federation-app/notification.resolver.d.ts +8 -0
  703. package/dist/tests/tests/subscriptions/federation-app/notification.resolver.d.ts.map +1 -0
  704. package/dist/tests/tests/subscriptions/federation-app/notification.resolver.js +39 -0
  705. package/dist/tests/tests/subscriptions/federation-graphql-ws.spec.d.ts +2 -0
  706. package/dist/tests/tests/subscriptions/federation-graphql-ws.spec.d.ts.map +1 -0
  707. package/dist/tests/tests/subscriptions/federation-graphql-ws.spec.js +114 -0
  708. package/dist/tests/tests/subscriptions/graphql-ws.spec.d.ts +2 -0
  709. package/dist/tests/tests/subscriptions/graphql-ws.spec.d.ts.map +1 -0
  710. package/dist/tests/tests/subscriptions/graphql-ws.spec.js +238 -0
  711. package/dist/tests/tests/subscriptions/utils/graphql-ws.link.d.ts +9 -0
  712. package/dist/tests/tests/subscriptions/utils/graphql-ws.link.d.ts.map +1 -0
  713. package/dist/tests/tests/subscriptions/utils/graphql-ws.link.js +22 -0
  714. package/dist/tests/tests/subscriptions/utils/malformed-token.exception.d.ts +4 -0
  715. package/dist/tests/tests/subscriptions/utils/malformed-token.exception.d.ts.map +1 -0
  716. package/dist/tests/tests/subscriptions/utils/malformed-token.exception.js +9 -0
  717. package/dist/tests/tests/utils/assertion-utils.d.ts +4 -0
  718. package/dist/tests/tests/utils/assertion-utils.d.ts.map +1 -0
  719. package/dist/tests/tests/utils/assertion-utils.js +11 -0
  720. package/dist/tests/tests/utils/introspection-schema.utils.d.ts +8 -0
  721. package/dist/tests/tests/utils/introspection-schema.utils.d.ts.map +1 -0
  722. package/dist/tests/tests/utils/introspection-schema.utils.js +29 -0
  723. package/dist/tests/tests/utils/printed-schema-with-cache-control.snapshot.d.ts +2 -0
  724. package/dist/tests/tests/utils/printed-schema-with-cache-control.snapshot.d.ts.map +1 -0
  725. package/dist/tests/tests/utils/printed-schema-with-cache-control.snapshot.js +47 -0
  726. package/dist/tests/tests/utils/printed-schema.snapshot.d.ts +3 -0
  727. package/dist/tests/tests/utils/printed-schema.snapshot.d.ts.map +1 -0
  728. package/dist/tests/tests/utils/printed-schema.snapshot.js +217 -0
  729. package/dist/tests/tsconfig.spec.tsbuildinfo +1 -0
  730. package/package.json +2 -2
@@ -0,0 +1,37 @@
1
+ import { GatewayConfig } from '@apollo/gateway';
2
+ import { Type } from '@nestjs/common';
3
+ import { GqlModuleAsyncOptions, GqlOptionsFactory, GraphQLDriver } from '@nestjs/graphql';
4
+ import { GraphQLSchema } from 'graphql';
5
+ import { ApolloDriverConfig } from './apollo-driver-config.interface';
6
+ /**
7
+ * @publicApi
8
+ */
9
+ export interface ApolloGatewayDriverConfig<TDriver extends GraphQLDriver = any> {
10
+ /**
11
+ * GraphQL gateway adapter
12
+ */
13
+ driver?: Type<TDriver>;
14
+ /**
15
+ * Gateway configuration
16
+ */
17
+ gateway?: GatewayConfig;
18
+ /**
19
+ * Server configuration
20
+ */
21
+ server?: Omit<ApolloDriverConfig, 'typeDefs' | 'typePaths' | 'include' | 'resolvers' | 'resolverValidationOptions' | 'directiveResolvers' | 'autoSchemaFile' | 'transformSchema' | 'definitions' | 'schema' | 'subscriptions' | 'buildSchemaOptions' | 'fieldResolverEnhancers' | 'driver'>;
22
+ /**
23
+ * Function applied to the supergraph schema produced by the gateway
24
+ * before it is exposed to Apollo Server. Use this hook to register
25
+ * custom directive transformers (e.g. `@public`, Apollo Connectors)
26
+ * on the composed schema.
27
+ *
28
+ * Invoked once during the initial composition. Schema updates
29
+ * emitted by the gateway after startup (e.g. supergraph polling)
30
+ * are forwarded untransformed because the underlying Apollo Server
31
+ * listener is synchronous.
32
+ */
33
+ transformSchema?: (schema: GraphQLSchema) => GraphQLSchema | Promise<GraphQLSchema>;
34
+ }
35
+ export type ApolloGatewayDriverConfigFactory = GqlOptionsFactory<ApolloGatewayDriverConfig>;
36
+ export type ApolloGatewayDriverAsyncConfig = GqlModuleAsyncOptions<ApolloGatewayDriverConfig>;
37
+ //# sourceMappingURL=apollo-gateway-driver-config.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apollo-gateway-driver-config.interface.d.ts","sourceRoot":"","sources":["../../../../lib/interfaces/apollo-gateway-driver-config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,yBAAyB,CACxC,OAAO,SAAS,aAAa,GAAG,GAAG;IAEnC;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CACX,kBAAkB,EAChB,UAAU,GACV,WAAW,GACX,SAAS,GACT,WAAW,GACX,2BAA2B,GAC3B,oBAAoB,GACpB,gBAAgB,GAChB,iBAAiB,GACjB,aAAa,GACb,QAAQ,GACR,eAAe,GACf,oBAAoB,GACpB,wBAAwB,GACxB,QAAQ,CACX,CAAC;IACF;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,CAChB,MAAM,EAAE,aAAa,KAClB,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAC7C;AAED,MAAM,MAAM,gCAAgC,GAC1C,iBAAiB,CAAC,yBAAyB,CAAC,CAAC;AAC/C,MAAM,MAAM,8BAA8B,GACxC,qBAAqB,CAAC,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export * from './apollo-driver-config.interface';
2
+ export * from './apollo-federation-driver-config.interface';
3
+ export * from './apollo-gateway-driver-config.interface';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./apollo-driver-config.interface"), exports);
5
+ tslib_1.__exportStar(require("./apollo-federation-driver-config.interface"), exports);
6
+ tslib_1.__exportStar(require("./apollo-gateway-driver-config.interface"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './plugins-explorer.service';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./plugins-explorer.service"), exports);
@@ -0,0 +1,10 @@
1
+ import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
2
+ import { ModulesContainer } from '@nestjs/core/injector/modules-container';
3
+ import { BaseExplorerService, GqlModuleOptions } from '@nestjs/graphql';
4
+ export declare class PluginsExplorerService extends BaseExplorerService {
5
+ private readonly modulesContainer;
6
+ constructor(modulesContainer: ModulesContainer);
7
+ explore(options: GqlModuleOptions): any[];
8
+ filterPlugins<T = any>(wrapper: InstanceWrapper<T>): T;
9
+ }
10
+ //# sourceMappingURL=plugins-explorer.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins-explorer.service.d.ts","sourceRoot":"","sources":["../../../../lib/services/plugins-explorer.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxE,qBAAa,sBAAuB,SAAQ,mBAAmB;IACjD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAI/D,OAAO,CAAC,OAAO,EAAE,gBAAgB;IAQjC,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;CAQnD"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PluginsExplorerService = void 0;
4
+ const graphql_1 = require("@nestjs/graphql");
5
+ const constants_1 = require("../constants");
6
+ class PluginsExplorerService extends graphql_1.BaseExplorerService {
7
+ constructor(modulesContainer) {
8
+ super();
9
+ this.modulesContainer = modulesContainer;
10
+ }
11
+ explore(options) {
12
+ const modules = this.getModules(this.modulesContainer, options.include || []);
13
+ return this.flatMap(modules, (instance) => this.filterPlugins(instance));
14
+ }
15
+ filterPlugins(wrapper) {
16
+ const { instance } = wrapper;
17
+ if (!instance) {
18
+ return undefined;
19
+ }
20
+ const metadata = Reflect.getMetadata(constants_1.PLUGIN_METADATA, instance.constructor);
21
+ return metadata ? instance : undefined;
22
+ }
23
+ }
24
+ exports.PluginsExplorerService = PluginsExplorerService;
@@ -0,0 +1,9 @@
1
+ import { $$asyncIterator } from 'iterall';
2
+ export type AsyncIterator<T> = {
3
+ next(value?: any): Promise<IteratorResult<T>>;
4
+ return(): any;
5
+ throw(error: any): any;
6
+ [$$asyncIterator]: any;
7
+ };
8
+ export declare const createAsyncIterator: <T = any>(lazyFactory: Promise<AsyncIterator<T>>, filterFn: Function) => Promise<AsyncIterator<T>>;
9
+ //# sourceMappingURL=async-iterator.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-iterator.util.d.ts","sourceRoot":"","sources":["../../../../lib/utils/async-iterator.util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,CAAC;IACd,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;IACvB,CAAC,eAAe,CAAC,EAAE,GAAG,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,CAAC,GAAG,GAAG,EAC/C,aAAa,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EACtC,UAAU,QAAQ,KACjB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CA0D1B,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createAsyncIterator = void 0;
4
+ /* eslint-disable @typescript-eslint/no-floating-promises */
5
+ /* eslint-disable @typescript-eslint/prefer-promise-reject-errors */
6
+ const iterall_1 = require("iterall");
7
+ const createAsyncIterator = async (lazyFactory, filterFn) => {
8
+ const asyncIterator = await lazyFactory;
9
+ const getNextValue = () => {
10
+ return new Promise((resolve, reject) => {
11
+ const inner = () => {
12
+ if (!asyncIterator || typeof asyncIterator.next !== 'function') {
13
+ reject(asyncIterator);
14
+ return;
15
+ }
16
+ asyncIterator
17
+ .next()
18
+ .then((payload) => {
19
+ if (payload.done === true) {
20
+ resolve(payload);
21
+ return;
22
+ }
23
+ Promise.resolve(filterFn(payload.value))
24
+ .catch(() => false)
25
+ .then((result) => {
26
+ if (result === true) {
27
+ resolve(payload);
28
+ return;
29
+ }
30
+ inner();
31
+ return;
32
+ });
33
+ })
34
+ .catch(reject);
35
+ };
36
+ inner();
37
+ });
38
+ };
39
+ return {
40
+ next() {
41
+ return getNextValue();
42
+ },
43
+ return() {
44
+ const isAsyncIterator = asyncIterator && typeof asyncIterator.return === 'function';
45
+ return isAsyncIterator
46
+ ? asyncIterator.return()
47
+ : Promise.resolve({
48
+ done: true,
49
+ value: asyncIterator,
50
+ });
51
+ },
52
+ throw(error) {
53
+ return asyncIterator.throw(error);
54
+ },
55
+ [iterall_1.$$asyncIterator]() {
56
+ return this;
57
+ },
58
+ };
59
+ };
60
+ exports.createAsyncIterator = createAsyncIterator;
@@ -0,0 +1,11 @@
1
+ import { ApolloServer, type BaseContext } from '@apollo/server';
2
+ import { INestApplicationContext } from '@nestjs/common';
3
+ type GetApolloServer = (app: INestApplicationContext) => ApolloServer<BaseContext>;
4
+ /**
5
+ * Returns the underlying ApolloServer instance for a given application.
6
+ * @param app Nest application reference
7
+ * @returns Apollo Server instance used by the host application
8
+ */
9
+ export declare const getApolloServer: GetApolloServer;
10
+ export {};
11
+ //# sourceMappingURL=get-apollo-server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-apollo-server.d.ts","sourceRoot":"","sources":["../../../../lib/utils/get-apollo-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAIzD,KAAK,eAAe,GAAG,CACrB,GAAG,EAAE,uBAAuB,KACzB,YAAY,CAAC,WAAW,CAAC,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,eAW7B,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getApolloServer = void 0;
4
+ const graphql_1 = require("@nestjs/graphql");
5
+ /**
6
+ * Returns the underlying ApolloServer instance for a given application.
7
+ * @param app Nest application reference
8
+ * @returns Apollo Server instance used by the host application
9
+ */
10
+ const getApolloServer = (app) => {
11
+ try {
12
+ const graphqlModule = app.get(graphql_1.GraphQLModule);
13
+ return graphqlModule.graphQlAdapter?.instance;
14
+ }
15
+ catch {
16
+ /* empty */
17
+ }
18
+ throw new Error(`Nest could not find the "GraphQLModule" in your application's container. Please, double-check if it's registered in the given application.`);
19
+ };
20
+ exports.getApolloServer = getApolloServer;
@@ -0,0 +1,2 @@
1
+ export * from './get-apollo-server';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./get-apollo-server"), exports);
@@ -0,0 +1,3 @@
1
+ export declare class ApplicationModule {
2
+ }
3
+ //# sourceMappingURL=app.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.module.d.ts","sourceRoot":"","sources":["../../../../tests/code-first/app.module.ts"],"names":[],"mappings":"AAOA,qBAYa,iBAAiB;CAAG"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ const graphql_1 = require("@nestjs/graphql");
7
+ const drivers_1 = require("../../lib/drivers");
8
+ const directions_module_1 = require("./directions/directions.module");
9
+ const recipes_module_1 = require("./recipes/recipes.module");
10
+ let ApplicationModule = class ApplicationModule {
11
+ };
12
+ exports.ApplicationModule = ApplicationModule;
13
+ exports.ApplicationModule = ApplicationModule = tslib_1.__decorate([
14
+ (0, common_1.Module)({
15
+ imports: [
16
+ recipes_module_1.RecipesModule,
17
+ directions_module_1.DirectionsModule,
18
+ graphql_1.GraphQLModule.forRoot({
19
+ driver: drivers_1.ApolloDriver,
20
+ includeStacktraceInErrorResponses: false,
21
+ installSubscriptionHandlers: true,
22
+ autoSchemaFile: true,
23
+ }),
24
+ ],
25
+ })
26
+ ], ApplicationModule);
@@ -0,0 +1,23 @@
1
+ import { CatsResolver } from './cats.resolver';
2
+ export declare class CatsModule {
3
+ static register(resolverRegistrationMethod: 'useClass' | 'useFactory' | 'useValue'): {
4
+ module: typeof CatsModule;
5
+ providers: {
6
+ provide: typeof CatsResolver;
7
+ useClass: typeof CatsResolver;
8
+ }[];
9
+ } | {
10
+ module: typeof CatsModule;
11
+ providers: {
12
+ provide: typeof CatsResolver;
13
+ useValue: CatsResolver;
14
+ }[];
15
+ } | {
16
+ module: typeof CatsModule;
17
+ providers: {
18
+ provide: typeof CatsResolver;
19
+ useFactory(): CatsResolver;
20
+ }[];
21
+ };
22
+ }
23
+ //# sourceMappingURL=cats.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cats.module.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/cats/cats.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBACa,UAAU;IACrB,MAAM,CAAC,QAAQ,CACb,0BAA0B,EAAE,UAAU,GAAG,YAAY,GAAG,UAAU;;;;;;;;;;;;;;;;;;;CAwCrE"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var CatsModule_1;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CatsModule = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const common_1 = require("@nestjs/common");
7
+ const cats_resolver_1 = require("./cats.resolver");
8
+ let CatsModule = CatsModule_1 = class CatsModule {
9
+ static register(resolverRegistrationMethod) {
10
+ switch (resolverRegistrationMethod) {
11
+ case 'useClass':
12
+ return {
13
+ module: CatsModule_1,
14
+ providers: [
15
+ {
16
+ provide: cats_resolver_1.CatsResolver,
17
+ useClass: cats_resolver_1.CatsResolver,
18
+ },
19
+ ],
20
+ };
21
+ case 'useValue':
22
+ return {
23
+ module: CatsModule_1,
24
+ providers: [
25
+ {
26
+ provide: cats_resolver_1.CatsResolver,
27
+ useValue: new cats_resolver_1.CatsResolver(),
28
+ },
29
+ ],
30
+ };
31
+ case 'useFactory':
32
+ default:
33
+ return {
34
+ module: CatsModule_1,
35
+ providers: [
36
+ {
37
+ provide: cats_resolver_1.CatsResolver,
38
+ useFactory() {
39
+ return new cats_resolver_1.CatsResolver();
40
+ },
41
+ },
42
+ ],
43
+ };
44
+ }
45
+ }
46
+ };
47
+ exports.CatsModule = CatsModule;
48
+ exports.CatsModule = CatsModule = CatsModule_1 = tslib_1.__decorate([
49
+ (0, common_1.Module)({})
50
+ ], CatsModule);
@@ -0,0 +1,4 @@
1
+ export declare class CatsResolver {
2
+ getAnimalName(): string;
3
+ }
4
+ //# sourceMappingURL=cats.resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cats.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/cats/cats.resolver.ts"],"names":[],"mappings":"AAEA,qBACa,YAAY;IAEvB,aAAa,IAAI,MAAM;CAGxB"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CatsResolver = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_1 = require("@nestjs/graphql");
6
+ let CatsResolver = class CatsResolver {
7
+ getAnimalName() {
8
+ return 'cat';
9
+ }
10
+ };
11
+ exports.CatsResolver = CatsResolver;
12
+ tslib_1.__decorate([
13
+ (0, graphql_1.Query)((returns) => String),
14
+ tslib_1.__metadata("design:type", Function),
15
+ tslib_1.__metadata("design:paramtypes", []),
16
+ tslib_1.__metadata("design:returntype", String)
17
+ ], CatsResolver.prototype, "getAnimalName", null);
18
+ exports.CatsResolver = CatsResolver = tslib_1.__decorate([
19
+ (0, graphql_1.Resolver)()
20
+ ], CatsResolver);
@@ -0,0 +1,6 @@
1
+ import { ArgumentsHost } from '@nestjs/common';
2
+ import { GqlExceptionFilter } from '@nestjs/graphql';
3
+ export declare class UnauthorizedFilter implements GqlExceptionFilter {
4
+ catch(exception: any, host: ArgumentsHost): any;
5
+ }
6
+ //# sourceMappingURL=unauthorized.filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unauthorized.filter.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/common/filters/unauthorized.filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgC,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,qBACa,kBAAmB,YAAW,kBAAkB;IAC3D,KAAK,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa;CAI1C"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnauthorizedFilter = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ let UnauthorizedFilter = class UnauthorizedFilter {
7
+ catch(exception, host) {
8
+ exception.message = 'Unauthorized error';
9
+ return exception;
10
+ }
11
+ };
12
+ exports.UnauthorizedFilter = UnauthorizedFilter;
13
+ exports.UnauthorizedFilter = UnauthorizedFilter = tslib_1.__decorate([
14
+ (0, common_1.Catch)(common_1.UnauthorizedException)
15
+ ], UnauthorizedFilter);
@@ -0,0 +1,5 @@
1
+ import { CanActivate, ExecutionContext } from '@nestjs/common';
2
+ export declare class AuthGuard implements CanActivate {
3
+ canActivate(context: ExecutionContext): Promise<boolean>;
4
+ }
5
+ //# sourceMappingURL=auth.guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.guard.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/common/guards/auth.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAGjB,MAAM,gBAAgB,CAAC;AAGxB,qBACa,SAAU,YAAW,WAAW;IACrC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;CAO/D"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthGuard = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ const graphql_1 = require("@nestjs/graphql");
7
+ let AuthGuard = class AuthGuard {
8
+ async canActivate(context) {
9
+ const gqlContext = graphql_1.GqlExecutionContext.create(context);
10
+ if (gqlContext) {
11
+ throw new common_1.UnauthorizedException();
12
+ }
13
+ return true;
14
+ }
15
+ };
16
+ exports.AuthGuard = AuthGuard;
17
+ exports.AuthGuard = AuthGuard = tslib_1.__decorate([
18
+ (0, common_1.Injectable)()
19
+ ], AuthGuard);
@@ -0,0 +1,8 @@
1
+ import { ValueNode } from 'graphql';
2
+ export declare class DateScalar {
3
+ description: string;
4
+ parseValue(value: any): Date;
5
+ serialize(value: any): any;
6
+ parseLiteral(ast: ValueNode): number;
7
+ }
8
+ //# sourceMappingURL=date.scalar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.scalar.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/common/scalars/date.scalar.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,qBACa,UAAU;IACrB,WAAW,SAA6B;IAExC,UAAU,CAAC,KAAK,EAAE,GAAG;IAIrB,SAAS,CAAC,KAAK,EAAE,GAAG;IAIpB,YAAY,CAAC,GAAG,EAAE,SAAS;CAM5B"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DateScalar = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_1 = require("@nestjs/graphql");
6
+ const graphql_2 = require("graphql");
7
+ let DateScalar = class DateScalar {
8
+ constructor() {
9
+ this.description = 'Date custom scalar type';
10
+ }
11
+ parseValue(value) {
12
+ return new Date(value); // value from the client
13
+ }
14
+ serialize(value) {
15
+ return value.getTime(); // value sent to the client
16
+ }
17
+ parseLiteral(ast) {
18
+ if (ast.kind === graphql_2.Kind.INT) {
19
+ return parseInt(ast.value, 10); // ast value is always in string format
20
+ }
21
+ return null;
22
+ }
23
+ };
24
+ exports.DateScalar = DateScalar;
25
+ exports.DateScalar = DateScalar = tslib_1.__decorate([
26
+ (0, graphql_1.Scalar)('Date', (type) => Date)
27
+ ], DateScalar);
@@ -0,0 +1,3 @@
1
+ export declare class DirectionsModule {
2
+ }
3
+ //# sourceMappingURL=directions.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directions.module.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/directions/directions.module.ts"],"names":[],"mappings":"AAGA,qBAGa,gBAAgB;CAAG"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DirectionsModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ const directions_resolver_1 = require("./directions.resolver");
7
+ let DirectionsModule = class DirectionsModule {
8
+ };
9
+ exports.DirectionsModule = DirectionsModule;
10
+ exports.DirectionsModule = DirectionsModule = tslib_1.__decorate([
11
+ (0, common_1.Module)({
12
+ providers: [directions_resolver_1.DirectionsResolver],
13
+ })
14
+ ], DirectionsModule);
@@ -0,0 +1,5 @@
1
+ import { Direction } from '../enums/direction.enum';
2
+ export declare class DirectionsResolver {
3
+ move(direction: Direction): Direction;
4
+ }
5
+ //# sourceMappingURL=directions.resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directions.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/directions/directions.resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBACa,kBAAkB;IAE7B,IAAI,CAEF,SAAS,EAAE,SAAS,GACnB,SAAS;CAGb"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DirectionsResolver = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_1 = require("@nestjs/graphql");
6
+ const direction_enum_1 = require("../enums/direction.enum");
7
+ let DirectionsResolver = class DirectionsResolver {
8
+ move(direction) {
9
+ return direction;
10
+ }
11
+ };
12
+ exports.DirectionsResolver = DirectionsResolver;
13
+ tslib_1.__decorate([
14
+ (0, graphql_1.Query)((returns) => direction_enum_1.Direction),
15
+ tslib_1.__param(0, (0, graphql_1.Args)({ name: 'direction', type: () => direction_enum_1.Direction })),
16
+ tslib_1.__metadata("design:type", Function),
17
+ tslib_1.__metadata("design:paramtypes", [String]),
18
+ tslib_1.__metadata("design:returntype", String)
19
+ ], DirectionsResolver.prototype, "move", null);
20
+ exports.DirectionsResolver = DirectionsResolver = tslib_1.__decorate([
21
+ (0, graphql_1.Resolver)()
22
+ ], DirectionsResolver);
@@ -0,0 +1,8 @@
1
+ export declare enum Direction {
2
+ Up = "UP",
3
+ Down = "DOWN",
4
+ Left = "LEFT",
5
+ Right = "RIGHT",
6
+ Sideways = "SIDEWAYS"
7
+ }
8
+ //# sourceMappingURL=direction.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"direction.enum.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/enums/direction.enum.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS;IACnB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Direction = void 0;
4
+ const graphql_1 = require("@nestjs/graphql");
5
+ var Direction;
6
+ (function (Direction) {
7
+ Direction["Up"] = "UP";
8
+ Direction["Down"] = "DOWN";
9
+ Direction["Left"] = "LEFT";
10
+ Direction["Right"] = "RIGHT";
11
+ Direction["Sideways"] = "SIDEWAYS";
12
+ })(Direction || (exports.Direction = Direction = {}));
13
+ (0, graphql_1.registerEnumType)(Direction, {
14
+ name: 'Direction', // this one is mandatory
15
+ description: 'The basic directions', // this one is optional
16
+ valuesMap: {
17
+ Sideways: {
18
+ deprecationReason: 'Replaced with Left or Right',
19
+ },
20
+ Up: {
21
+ description: 'The primary direction',
22
+ },
23
+ },
24
+ });
@@ -0,0 +1,7 @@
1
+ export declare enum SampleOrphanedEnum {
2
+ Red = "RED",
3
+ Blue = "BLUE",
4
+ Black = "BLACK",
5
+ White = "WHITE"
6
+ }
7
+ //# sourceMappingURL=sample-orphaned.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sample-orphaned.enum.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/enums/sample-orphaned.enum.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB;IAC5B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;CAChB"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SampleOrphanedEnum = void 0;
4
+ const graphql_1 = require("@nestjs/graphql");
5
+ var SampleOrphanedEnum;
6
+ (function (SampleOrphanedEnum) {
7
+ SampleOrphanedEnum["Red"] = "RED";
8
+ SampleOrphanedEnum["Blue"] = "BLUE";
9
+ SampleOrphanedEnum["Black"] = "BLACK";
10
+ SampleOrphanedEnum["White"] = "WHITE";
11
+ })(SampleOrphanedEnum || (exports.SampleOrphanedEnum = SampleOrphanedEnum = {}));
12
+ (0, graphql_1.registerEnumType)(SampleOrphanedEnum, {
13
+ name: 'SampleOrphanedEnum',
14
+ description: 'orphaned enum',
15
+ });
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../tests/code-first/main.ts"],"names":[],"mappings":""}