@baseplate-dev/plugin-auth 1.0.4 → 1.0.6

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 (218) hide show
  1. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +2 -2
  2. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts +5 -1
  3. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
  4. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts +1 -1
  5. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -1
  6. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js +1 -0
  7. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -1
  8. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts +10 -2
  9. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
  10. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js +2 -0
  11. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
  12. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +1 -1
  13. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -1
  14. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +3 -4
  15. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
  16. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +1 -1
  17. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
  18. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +1 -2
  19. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +0 -1
  20. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -1
  21. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js +2 -7
  22. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -1
  23. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts +10 -3
  24. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -1
  25. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts +1 -0
  26. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -1
  27. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js +1 -0
  28. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -1
  29. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts +5 -5
  30. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -1
  31. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js +9 -8
  32. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -1
  33. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts +20 -5
  34. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -1
  35. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js +22 -9
  36. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -1
  37. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +1 -1
  38. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +1 -1
  39. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +1 -1
  40. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +1 -2
  41. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +5 -0
  42. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +1 -1
  43. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -1
  44. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +1 -1
  45. package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts +4 -0
  46. package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  47. package/dist/auth/core/generators/auth-module/auth-module.generator.js +10 -1
  48. package/dist/auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  49. package/dist/auth/core/generators/auth-module/generated/index.d.ts +14 -5
  50. package/dist/auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  51. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts +4 -4
  52. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
  53. package/dist/auth/core/generators/auth-module/generated/template-renderers.js +2 -0
  54. package/dist/auth/core/generators/auth-module/generated/template-renderers.js.map +1 -1
  55. package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts +23 -10
  56. package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  57. package/dist/auth/core/generators/auth-module/generated/typed-templates.js +8 -0
  58. package/dist/auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
  59. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -1
  60. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -1
  61. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +1 -2
  62. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +1 -1
  63. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  64. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +1 -2
  65. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +1 -1
  66. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js +4 -4
  67. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -1
  68. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.ts +8 -9
  69. package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts +0 -1
  70. package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  71. package/dist/auth/core/generators/auth-routes/generated/index.d.ts +3 -6
  72. package/dist/auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  73. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts +1 -2
  74. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  75. package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts +6 -10
  76. package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  77. package/dist/auth/core/generators/react-session/generated/index.d.ts +9 -2
  78. package/dist/auth/core/generators/react-session/generated/index.d.ts.map +1 -1
  79. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts +1 -1
  80. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
  81. package/dist/auth/core/generators/react-session/generated/template-renderers.js +1 -0
  82. package/dist/auth/core/generators/react-session/generated/template-renderers.js.map +1 -1
  83. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts +18 -4
  84. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
  85. package/dist/auth/core/generators/react-session/generated/typed-templates.js +6 -0
  86. package/dist/auth/core/generators/react-session/generated/typed-templates.js.map +1 -1
  87. package/dist/auth/core/generators/react-session/react-session.generator.d.ts +9 -0
  88. package/dist/auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
  89. package/dist/auth/core/generators/react-session/react-session.generator.js +16 -1
  90. package/dist/auth/core/generators/react-session/react-session.generator.js.map +1 -1
  91. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts.map +1 -1
  92. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js +1 -1
  93. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js.map +1 -1
  94. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.tsx +1 -2
  95. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -1
  96. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js +2 -2
  97. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -1
  98. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +4 -6
  99. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts +1 -1
  100. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts.map +1 -1
  101. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js.map +1 -1
  102. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts +2 -5
  103. package/dist/auth/core/node.d.ts.map +1 -1
  104. package/dist/auth/core/node.js +9 -17
  105. package/dist/auth/core/node.js.map +1 -1
  106. package/dist/auth/core/schema/models.js +1 -1
  107. package/dist/auth/core/schema/models.js.map +1 -1
  108. package/dist/auth0/core/node.d.ts.map +1 -1
  109. package/dist/auth0/core/node.js +13 -21
  110. package/dist/auth0/core/node.js.map +1 -1
  111. package/dist/auth0/core/schema/migrations.d.ts.map +1 -1
  112. package/dist/auth0/core/schema/migrations.js +6 -4
  113. package/dist/auth0/core/schema/migrations.js.map +1 -1
  114. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +2 -2
  115. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +2 -2
  116. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
  117. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +2 -2
  118. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +11 -6
  119. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  120. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +5 -17
  121. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  122. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +6 -2
  123. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
  124. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +1 -1
  125. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -1
  126. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +1 -0
  127. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -1
  128. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +12 -4
  129. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
  130. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +2 -0
  131. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
  132. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +1 -2
  133. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-required-user-id.ts +1 -1
  134. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts +0 -1
  135. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +1 -1
  136. package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts +1 -3
  137. package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts.map +1 -1
  138. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts +1 -2
  139. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +1 -1
  140. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +2 -4
  141. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +1 -1
  142. package/dist/auth0/generators/react/react-auth0/generated/index.d.ts +1 -3
  143. package/dist/auth0/generators/react/react-auth0/generated/index.d.ts.map +1 -1
  144. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts +1 -2
  145. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +1 -1
  146. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts +1 -2
  147. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +1 -1
  148. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +0 -1
  149. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +1 -1
  150. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +7 -3
  151. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
  152. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -1
  153. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -1
  154. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +1 -0
  155. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -1
  156. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +14 -6
  157. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
  158. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +2 -0
  159. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
  160. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +1 -1
  161. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +1 -1
  162. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +1 -1
  163. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +1 -2
  164. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js +1 -1
  165. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -1
  166. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +1 -1
  167. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +1 -1
  168. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +1 -1
  169. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +1 -1
  170. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +1 -1
  171. package/dist/placeholder-auth/core/node.d.ts.map +1 -1
  172. package/dist/placeholder-auth/core/node.js +6 -14
  173. package/dist/placeholder-auth/core/node.js.map +1 -1
  174. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DcWFsNod.js → __federation_expose_auth0CoreCommon-CSWdt8d_.js} +9 -7
  175. package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js.map +1 -0
  176. package/dist/web/assets/{__federation_expose_auth0CoreWeb-BrPTg7eC.js → __federation_expose_auth0CoreWeb-DjVw47sM.js} +6 -6
  177. package/dist/web/assets/{__federation_expose_auth0CoreWeb-BrPTg7eC.js.map → __federation_expose_auth0CoreWeb-DjVw47sM.js.map} +1 -1
  178. package/dist/web/assets/{__federation_expose_authCoreCommon-20XIFvpM.js → __federation_expose_authCoreCommon-CvHJZFIq.js} +3 -3
  179. package/dist/web/assets/{__federation_expose_authCoreCommon-20XIFvpM.js.map → __federation_expose_authCoreCommon-CvHJZFIq.js.map} +1 -1
  180. package/dist/web/assets/{__federation_expose_authCoreWeb-BB5P8uYV.js → __federation_expose_authCoreWeb-CrFEmZp3.js} +7 -7
  181. package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js.map +1 -0
  182. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-Jwt0q3ST.js → __federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js} +3 -3
  183. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-Jwt0q3ST.js.map → __federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js.map} +1 -1
  184. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-_Y4pVvZX.js → __federation_expose_placeholder-authCoreWeb-CpxfTdxv.js} +6 -6
  185. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-_Y4pVvZX.js.map → __federation_expose_placeholder-authCoreWeb-CpxfTdxv.js.map} +1 -1
  186. package/dist/web/assets/{__federation_fn_import-CpGU4emr.js → __federation_fn_import-CGvRdRVe.js} +2 -2
  187. package/dist/web/assets/{__federation_fn_import-CpGU4emr.js.map → __federation_fn_import-CGvRdRVe.js.map} +1 -1
  188. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-33D53Q49.js → web-D1kBtwsm.js} +5 -5
  189. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-33D53Q49.js.map → web-D1kBtwsm.js.map} +1 -1
  190. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-B8gI4CR0.js → project-builder-lib-B7442OYh.js} +254 -211
  191. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js.map +1 -0
  192. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-ClpdcB7_.js → ui-components-X318M5Ml.js} +100 -86
  193. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js.map +1 -0
  194. package/dist/web/assets/{index-47TZ-Oc4.js → index-ydDQKauE.js} +2 -2
  195. package/dist/web/assets/{index-47TZ-Oc4.js.map → index-ydDQKauE.js.map} +1 -1
  196. package/dist/web/assets/{index.esm-Erws1yaL.js → index.esm-DYWXRkn-.js} +2 -2
  197. package/dist/web/assets/{index.esm-Erws1yaL.js.map → index.esm-DYWXRkn-.js.map} +1 -1
  198. package/dist/web/assets/{model-merger-BteeU9dp.js → model-merger-BVBtbNAj.js} +39 -15
  199. package/dist/web/assets/model-merger-BVBtbNAj.js.map +1 -0
  200. package/dist/web/assets/{plugin-definition-BOUJurAr.js → plugin-definition-Bdhuga1j.js} +3 -3
  201. package/dist/web/assets/{plugin-definition-BOUJurAr.js.map → plugin-definition-Bdhuga1j.js.map} +1 -1
  202. package/dist/web/assets/{plugin-definition-BeI52Xpr.js → plugin-definition-C9d7ykhX.js} +3 -3
  203. package/dist/web/assets/{plugin-definition-BeI52Xpr.js.map → plugin-definition-C9d7ykhX.js.map} +1 -1
  204. package/dist/web/assets/{plugin-definition-CnMRuS0h.js → plugin-definition-QzgXWr1I.js} +3 -3
  205. package/dist/web/assets/{plugin-definition-CnMRuS0h.js.map → plugin-definition-QzgXWr1I.js.map} +1 -1
  206. package/dist/web/assets/{react-CIaEd3xM.js → react-B23vKoD0.js} +2 -2
  207. package/dist/web/assets/{react-CIaEd3xM.js.map → react-B23vKoD0.js.map} +1 -1
  208. package/dist/web/assets/remoteEntry.js +6 -6
  209. package/dist/web/assets/{role-editor-form-Bk9sOqqk.js → role-editor-form-BkcoVwtU.js} +4 -4
  210. package/dist/web/assets/{role-editor-form-Bk9sOqqk.js.map → role-editor-form-BkcoVwtU.js.map} +1 -1
  211. package/dist/web/assets/{styles-mSx3A02F.js → styles-Dfjm_ApH.js} +3 -3
  212. package/dist/web/assets/{styles-mSx3A02F.js.map → styles-Dfjm_ApH.js.map} +1 -1
  213. package/package.json +10 -10
  214. package/dist/web/assets/__federation_expose_auth0CoreCommon-DcWFsNod.js.map +0 -1
  215. package/dist/web/assets/__federation_expose_authCoreWeb-BB5P8uYV.js.map +0 -1
  216. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B8gI4CR0.js.map +0 -1
  217. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-ClpdcB7_.js.map +0 -1
  218. package/dist/web/assets/model-merger-BteeU9dp.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  export declare const authApolloGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{}, {
2
2
  main: import("@baseplate-dev/sync").GeneratorTask<any, {
3
3
  reactApolloConfig: import("@baseplate-dev/sync").ProviderType<Omit<import("@baseplate-dev/utils").FieldMap<{
4
- createApolloClientArguments: import("@baseplate-dev/utils").NamedArrayFieldContainer<import("@baseplate-dev/react-generators").ApolloCreateArgument>;
5
- apolloLinks: import("@baseplate-dev/utils").NamedArrayFieldContainer<import("@baseplate-dev/react-generators").ApolloLink>;
4
+ createApolloClientArguments: import("@baseplate-dev/utils").NamedArrayFieldContainer<import("@baseplate-dev/react-generators/src/index.js").ApolloCreateArgument>;
5
+ apolloLinks: import("@baseplate-dev/utils").NamedArrayFieldContainer<import("@baseplate-dev/react-generators/src/index.js").ApolloLink>;
6
6
  websocketOptions: import("@baseplate-dev/utils").MapContainer<string, string | import("@baseplate-dev/core-generators").TsCodeFragment>;
7
7
  }>, "getValues">>;
8
8
  reactSession: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -69,7 +69,7 @@ export declare const AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
69
69
  };
70
70
  templates: {
71
71
  moduleGroup: {
72
- constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}>;
72
+ constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
73
73
  schemaUserPasswordMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
74
74
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
75
75
  userSessionPayload: {};
@@ -77,6 +77,8 @@ export declare const AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
77
77
  pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
78
78
  builder: {};
79
79
  }>>;
80
+ }, {
81
+ servicesUserPassword: {};
80
82
  }>;
81
83
  servicesUserPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
82
84
  errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -113,6 +115,8 @@ export declare const AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
113
115
  isTypeOnly: true;
114
116
  };
115
117
  }>>;
118
+ }, {
119
+ constantsPassword: {};
116
120
  }>;
117
121
  };
118
122
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnD,CAAC"}
@@ -3,7 +3,7 @@ import type { BuilderAction } from '@baseplate-dev/sync';
3
3
  import { AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES } from './typed-templates.js';
4
4
  export interface AuthCoreAuthEmailPasswordRenderers {
5
5
  moduleGroup: {
6
- render: (options: Omit<RenderTsTemplateGroupActionInput<typeof AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.moduleGroup>, 'importMapProviders' | 'group' | 'paths'>) => BuilderAction;
6
+ render: (options: Omit<RenderTsTemplateGroupActionInput<typeof AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.moduleGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
7
7
  };
8
8
  }
9
9
  export declare const AUTH_CORE_AUTH_EMAIL_PASSWORD_RENDERERS: {
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAiBzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,WAAW,kCAAkC;IACjD,WAAW,EAAE;QACX,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,uCAAuC,CAAC,WAAW,CAC3D,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,CACzC,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA+DD,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnD,CAAC"}
1
+ {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAiBzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,WAAW,kCAAkC;IACjD,WAAW,EAAE;QACX,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,uCAAuC,CAAC,WAAW,CAC3D,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAgED,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnD,CAAC"}
@@ -39,6 +39,7 @@ const authCoreAuthEmailPasswordRenderersTask = createGeneratorTask({
39
39
  userSessionServiceImports,
40
40
  userSessionTypesImports,
41
41
  },
42
+ generatorPaths: paths,
42
43
  ...options,
43
44
  }),
44
45
  },
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,qBAAqB,EACrB,qBAAqB,EACrB,oCAAoC,EACpC,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wEAAwE,CAAC;AAEnH,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,uCAAuC,EAAE,MAAM,sBAAsB,CAAC;AAe/E,MAAM,kCAAkC,GACtC,kBAAkB,CAChB,yCAAyC,CAC1C,CAAC;AAEJ,MAAM,sCAAsC,GAAG,mBAAmB,CAAC;IACjE,YAAY,EAAE;QACZ,iBAAiB,EAAE,yBAAyB;QAC5C,0BAA0B,EAAE,kCAAkC;QAC9D,4BAA4B,EAAE,oCAAoC;QAClE,KAAK,EAAE,mCAAmC,CAAC,QAAQ;QACnD,aAAa,EAAE,qBAAqB;QACpC,aAAa,EAAE,qBAAqB;QACpC,4BAA4B,EAAE,oCAAoC;QAClE,cAAc,EAAE,sBAAsB;QACtC,yBAAyB,EAAE,iCAAiC;QAC5D,uBAAuB,EAAE,+BAA+B;KACzD;IACD,OAAO,EAAE;QACP,kCAAkC,EAChC,kCAAkC,CAAC,MAAM,EAAE;KAC9C;IACD,GAAG,CAAC,EACF,iBAAiB,EACjB,0BAA0B,EAC1B,4BAA4B,EAC5B,KAAK,EACL,aAAa,EACb,aAAa,EACb,4BAA4B,EAC5B,cAAc,EACd,yBAAyB,EACzB,uBAAuB,GACxB;QACC,OAAO;YACL,SAAS,EAAE;gBACT,kCAAkC,EAAE;oBAClC,WAAW,EAAE;wBACX,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,uCAAuC,CAAC,WAAW;4BAC1D,KAAK;4BACL,kBAAkB,EAAE;gCAClB,iBAAiB;gCACjB,0BAA0B;gCAC1B,4BAA4B;gCAC5B,aAAa;gCACb,aAAa;gCACb,4BAA4B;gCAC5B,yBAAyB;gCACzB,uBAAuB;6BACxB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,QAAQ,EAAE,kCAAkC;IAC5C,IAAI,EAAE,sCAAsC;CAC7C,CAAC"}
1
+ {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,qBAAqB,EACrB,qBAAqB,EACrB,oCAAoC,EACpC,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wEAAwE,CAAC;AAEnH,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,uCAAuC,EAAE,MAAM,sBAAsB,CAAC;AAe/E,MAAM,kCAAkC,GACtC,kBAAkB,CAChB,yCAAyC,CAC1C,CAAC;AAEJ,MAAM,sCAAsC,GAAG,mBAAmB,CAAC;IACjE,YAAY,EAAE;QACZ,iBAAiB,EAAE,yBAAyB;QAC5C,0BAA0B,EAAE,kCAAkC;QAC9D,4BAA4B,EAAE,oCAAoC;QAClE,KAAK,EAAE,mCAAmC,CAAC,QAAQ;QACnD,aAAa,EAAE,qBAAqB;QACpC,aAAa,EAAE,qBAAqB;QACpC,4BAA4B,EAAE,oCAAoC;QAClE,cAAc,EAAE,sBAAsB;QACtC,yBAAyB,EAAE,iCAAiC;QAC5D,uBAAuB,EAAE,+BAA+B;KACzD;IACD,OAAO,EAAE;QACP,kCAAkC,EAChC,kCAAkC,CAAC,MAAM,EAAE;KAC9C;IACD,GAAG,CAAC,EACF,iBAAiB,EACjB,0BAA0B,EAC1B,4BAA4B,EAC5B,KAAK,EACL,aAAa,EACb,aAAa,EACb,4BAA4B,EAC5B,cAAc,EACd,yBAAyB,EACzB,uBAAuB,GACxB;QACC,OAAO;YACL,SAAS,EAAE;gBACT,kCAAkC,EAAE;oBAClC,WAAW,EAAE;wBACX,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,uCAAuC,CAAC,WAAW;4BAC1D,KAAK;4BACL,kBAAkB,EAAE;gCAClB,iBAAiB;gCACjB,0BAA0B;gCAC1B,4BAA4B;gCAC5B,aAAa;gCACb,aAAa;gCACb,4BAA4B;gCAC5B,yBAAyB;gCACzB,uBAAuB;6BACxB;4BACD,cAAc,EAAE,KAAK;4BACrB,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,QAAQ,EAAE,kCAAkC;IAC5C,IAAI,EAAE,sCAAsC;CAC7C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export declare const moduleGroup: {
2
- constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}>;
2
+ constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
3
3
  schemaUserPasswordMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
4
4
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
5
5
  userSessionPayload: {};
@@ -7,6 +7,8 @@ export declare const moduleGroup: {
7
7
  pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
8
8
  builder: {};
9
9
  }>>;
10
+ }, {
11
+ servicesUserPassword: {};
10
12
  }>;
11
13
  servicesUserPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
12
14
  errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -43,11 +45,13 @@ export declare const moduleGroup: {
43
45
  isTypeOnly: true;
44
46
  };
45
47
  }>>;
48
+ }, {
49
+ constantsPassword: {};
46
50
  }>;
47
51
  };
48
52
  export declare const AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
49
53
  moduleGroup: {
50
- constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}>;
54
+ constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
51
55
  schemaUserPasswordMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
52
56
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
53
57
  userSessionPayload: {};
@@ -55,6 +59,8 @@ export declare const AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
55
59
  pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
56
60
  builder: {};
57
61
  }>>;
62
+ }, {
63
+ servicesUserPassword: {};
58
64
  }>;
59
65
  servicesUserPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
60
66
  errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -91,6 +97,8 @@ export declare const AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
91
97
  isTypeOnly: true;
92
98
  };
93
99
  }>>;
100
+ }, {
101
+ constantsPassword: {};
94
102
  }>;
95
103
  };
96
104
  };
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/typed-templates.ts"],"names":[],"mappings":"AAuEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/typed-templates.ts"],"names":[],"mappings":"AAyEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC"}
@@ -21,6 +21,7 @@ const schemaUserPasswordMutations = createTsTemplateFile({
21
21
  pothosImports: pothosImportsProvider,
22
22
  },
23
23
  name: 'schema-user-password-mutations',
24
+ referencedGeneratorTemplates: { servicesUserPassword: {} },
24
25
  source: {
25
26
  path: path.join(import.meta.dirname, '../templates/module/schema/user-password.mutations.ts'),
26
27
  },
@@ -42,6 +43,7 @@ const servicesUserPassword = createTsTemplateFile({
42
43
  authenticateUserWithEmailAndPassword: {},
43
44
  createUserWithEmailAndPassword: {},
44
45
  },
46
+ referencedGeneratorTemplates: { constantsPassword: {} },
45
47
  source: {
46
48
  path: path.join(import.meta.dirname, '../templates/module/services/user-password.service.ts'),
47
49
  },
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,qBAAqB,EACrB,qBAAqB,EACrB,oCAAoC,EACpC,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,wEAAwE,CAAC;AAEnH,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,QAAQ;IACf,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,oBAAoB;IAC1B,cAAc,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE;IAC3C,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,qDAAqD,CACtD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,oBAAoB,CAAC;IACvD,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,QAAQ;IACf,kBAAkB,EAAE;QAClB,iBAAiB,EAAE,yBAAyB;QAC5C,aAAa,EAAE,qBAAqB;KACrC;IACD,IAAI,EAAE,gCAAgC;IACtC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,uDAAuD,CACxD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;IAChD,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,QAAQ;IACf,kBAAkB,EAAE;QAClB,0BAA0B,EAAE,kCAAkC;QAC9D,4BAA4B,EAAE,oCAAoC;QAClE,aAAa,EAAE,qBAAqB;QACpC,4BAA4B,EAAE,oCAAoC;QAClE,yBAAyB,EAAE,iCAAiC;QAC5D,uBAAuB,EAAE,+BAA+B;KACzD;IACD,IAAI,EAAE,wBAAwB;IAC9B,cAAc,EAAE;QACd,oCAAoC,EAAE,EAAE;QACxC,8BAA8B,EAAE,EAAE;KACnC;IACD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,uDAAuD,CACxD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,iBAAiB;IACjB,2BAA2B;IAC3B,oBAAoB;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,uCAAuC,GAAG,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-email-password/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,qBAAqB,EACrB,qBAAqB,EACrB,oCAAoC,EACpC,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,wEAAwE,CAAC;AAEnH,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,QAAQ;IACf,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,oBAAoB;IAC1B,cA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CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,iBAAiB;IACjB,2BAA2B;IAC3B,oBAAoB;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,uCAAuC,GAAG,EAAE,WAAW,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  // @ts-nocheck
2
+ import { authenticateUserWithEmailAndPassword, createUserWithEmailAndPassword, } from '$servicesUserPassword';
2
3
  import { userSessionPayload } from '%authModuleImports';
3
4
  import { builder } from '%pothosImports';
4
- import { authenticateUserWithEmailAndPassword, createUserWithEmailAndPassword, } from '../services/user-password.service.js';
5
5
  builder.mutationField('registerWithEmailPassword', (t) => t.fieldWithInputPayload({
6
6
  authorize: ['public'],
7
7
  payload: {
@@ -1 +1 @@
1
- {"version":3,"file":"user-password.mutations.js","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EACL,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,sCAAsC,CAAC;AAE9C,OAAO,CAAC,aAAa,CAAC,2BAA2B,EAAE,CAAC,CAAC,EAAE,EAAE,CACvD,CAAC,CAAC,qBAAqB,CAAC;IACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE;QACP,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;KACvD;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QACxD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;KAC5D;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,CAC1C,8BAA8B,CAAC;QAC7B,KAAK;QACL,OAAO;KACR,CAAC;CACL,CAAC,CACH,CAAC;AAEF,OAAO,CAAC,aAAa,CAAC,wBAAwB,EAAE,CAAC,CAAC,EAAE,EAAE,CACpD,CAAC,CAAC,qBAAqB,CAAC;IACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE;QACP,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;KACvD;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QACxD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;KAC5D;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,CAC1C,oCAAoC,CAAC;QACnC,KAAK;QACL,OAAO;KACR,CAAC;CACL,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"user-password.mutations.js","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EACL,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,CAAC,aAAa,CAAC,2BAA2B,EAAE,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AAoC,CAAC;QACnC,KAAK;QACL,OAAO;KACR,CAAC;CACL,CAAC,CACH,CAAC"}
@@ -1,12 +1,11 @@
1
1
  // @ts-nocheck
2
2
 
3
- import { userSessionPayload } from '%authModuleImports';
4
- import { builder } from '%pothosImports';
5
-
6
3
  import {
7
4
  authenticateUserWithEmailAndPassword,
8
5
  createUserWithEmailAndPassword,
9
- } from '../services/user-password.service.js';
6
+ } from '$servicesUserPassword';
7
+ import { userSessionPayload } from '%authModuleImports';
8
+ import { builder } from '%pothosImports';
10
9
 
11
10
  builder.mutationField('registerWithEmailPassword', (t) =>
12
11
  t.fieldWithInputPayload({
@@ -1 +1 @@
1
- {"version":3,"file":"user-password.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AA6BnE,wBAAsB,8BAA8B,CAAC,EACnD,KAAK,EACL,OAAO,GACR,EAAE;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,OAAO,EAAE,qBAAqB,CAAC;CAChC,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,kBAAkB,CAAA;CAAE,CAAC,CAmC3C;AAED,wBAAsB,oCAAoC,CAAC,EACzD,KAAK,EACL,OAAO,GACR,EAAE;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,OAAO,EAAE,qBAAqB,CAAC;CAChC,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,kBAAkB,CAAA;CAAE,CAAC,CAkC3C"}
1
+ {"version":3,"file":"user-password.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AA4BnE,wBAAsB,8BAA8B,CAAC,EACnD,KAAK,EACL,OAAO,GACR,EAAE;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,OAAO,EAAE,qBAAqB,CAAC;CAChC,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,kBAAkB,CAAA;CAAE,CAAC,CAmC3C;AAED,wBAAsB,oCAAoC,CAAC,EACzD,KAAK,EACL,OAAO,GACR,EAAE;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,OAAO,EAAE,qBAAqB,CAAC;CAChC,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,kBAAkB,CAAA;CAAE,CAAC,CAkC3C"}
@@ -1,10 +1,10 @@
1
1
  // @ts-nocheck
2
+ import { PASSWORD_MIN_LENGTH } from '$constantsPassword';
2
3
  import { BadRequestError, handleZodRequestValidationError, } from '%errorHandlerServiceImports';
3
4
  import { createPasswordHash, verifyPasswordHash, } from '%passwordHasherServiceImports';
4
5
  import { prisma } from '%prismaImports';
5
6
  import { userSessionService } from '%userSessionServiceImports';
6
7
  import z from 'zod';
7
- import { PASSWORD_MIN_LENGTH } from '../constants/password.constants.js';
8
8
  const PROVIDER_ID = 'email-password';
9
9
  const MAX_VALUE_LENGTH = 255;
10
10
  const emailPasswordSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"user-password.service.js","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts"],"names":[],"mappings":"AAAA,cAAc;AAKd,OAAO,EACL,eAAe,EACf,+BAA+B,GAChC,MAA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M,EAClB,OAAO,CACR,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"user-password.service.js","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts"],"names":[],"mappings":"AAAA,cAAc;AAKd,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EACL,eAAe,EACf,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAErC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,KAAK,EAAE;SACP,GAAG,CAAC,gBAAgB,CAAC;SACrB,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,EACnD,KAAK,EACL,OAAO,GAOR;IACC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,mBAAmB;SAClD,UAAU,CAAC,KAAK,CAAC;SACjB,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAC1C,+CAA+C;IAC/C,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;QACvD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WAAW,CAAC,QAAQ,IAAI,EAAE,EAC1B,QAAQ,CACT,CAAC;IACF,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,kBAAkB,CAAC,aAAa,CACpD,WAAW,CAAC,MAAM,EAClB,OAAO,CACR,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC"}
@@ -3,6 +3,7 @@
3
3
  import type { RequestServiceContext } from '%requestServiceContextImports';
4
4
  import type { UserSessionPayload } from '%userSessionTypesImports';
5
5
 
6
+ import { PASSWORD_MIN_LENGTH } from '$constantsPassword';
6
7
  import {
7
8
  BadRequestError,
8
9
  handleZodRequestValidationError,
@@ -15,8 +16,6 @@ import { prisma } from '%prismaImports';
15
16
  import { userSessionService } from '%userSessionServiceImports';
16
17
  import z from 'zod';
17
18
 
18
- import { PASSWORD_MIN_LENGTH } from '../constants/password.constants.js';
19
-
20
19
  const PROVIDER_ID = 'email-password';
21
20
 
22
21
  const MAX_VALUE_LENGTH = 255;
@@ -55,7 +55,6 @@ export declare const authHooksGenerator: import("@baseplate-dev/sync").Generator
55
55
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
56
56
  }, undefined>;
57
57
  main: import("@baseplate-dev/sync").GeneratorTask<any, {
58
- paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").AuthCoreAuthHooksPaths>;
59
58
  renderers: import("@baseplate-dev/sync").ProviderType<import("./generated/template-renderers.js").AuthCoreAuthHooksRenderers>;
60
59
  }, any>;
61
60
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"auth-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth/core/generators/auth-hooks/auth-hooks.generator.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B7B,CAAC"}
1
+ {"version":3,"file":"auth-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth/core/generators/auth-hooks/auth-hooks.generator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsB7B,CAAC"}
@@ -1,4 +1,3 @@
1
- import { renderTextTemplateFileAction } from '@baseplate-dev/core-generators';
2
1
  import { createGenerator, createGeneratorTask } from '@baseplate-dev/sync';
3
2
  import { z } from 'zod';
4
3
  import { AUTH_CORE_AUTH_HOOKS_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
@@ -18,17 +17,13 @@ export const authHooksGenerator = createGenerator({
18
17
  renderers: GENERATED_TEMPLATES.renderers.task,
19
18
  main: createGeneratorTask({
20
19
  dependencies: {
21
- paths: GENERATED_TEMPLATES.paths.provider,
22
20
  renderers: GENERATED_TEMPLATES.renderers.provider,
23
21
  },
24
- run({ paths, renderers }) {
22
+ run({ renderers }) {
25
23
  return {
26
24
  build: async (builder) => {
27
25
  await builder.apply(renderers.hooksGroup.render({}));
28
- await builder.apply(renderTextTemplateFileAction({
29
- template: GENERATED_TEMPLATES.templates.useCurrentUserGql,
30
- destination: paths.useCurrentUserGql,
31
- }));
26
+ await builder.apply(renderers.hooksGqlGroup.render({}));
32
27
  },
33
28
  };
34
29
  },
@@ -1 +1 @@
1
- {"version":3,"file":"auth-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth/core/generators/auth-hooks/auth-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE7F,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAChD,IAAI,EAAE,sBAAsB;IAC5B,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI;QACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,QAAQ;gBACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtB,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;wBACrD,MAAM,OAAO,CAAC,KAAK,CACjB,4BAA4B,CAAC;4BAC3B,QAAQ,EAAE,mBAAmB,CAAC,SAAS,CAAC,iBAAiB;4BACzD,WAAW,EAAE,KAAK,CAAC,iBAAiB;yBACrC,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"auth-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth/core/generators/auth-hooks/auth-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE7F,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAChD,IAAI,EAAE,sBAAsB;IAC5B,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI;QACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;wBACrD,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;oBAC1D,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -58,11 +58,17 @@ export declare const AUTH_CORE_AUTH_HOOKS_GENERATED: {
58
58
  }, undefined>;
59
59
  };
60
60
  templates: {
61
+ hooksGqlGroup: {
62
+ useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
63
+ useLogOutGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
64
+ };
61
65
  hooksGroup: {
62
66
  useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
63
67
  generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
64
68
  '*': {};
65
69
  }>>;
70
+ }, {
71
+ useSession: {};
66
72
  }>;
67
73
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
68
74
  generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -91,8 +97,10 @@ export declare const AUTH_CORE_AUTH_HOOKS_GENERATED: {
91
97
  };
92
98
  useUserSessionClient: {};
93
99
  }>>;
100
+ }, Record<never, Record<never, never>>>;
101
+ useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, {
102
+ useSession: {};
94
103
  }>;
95
- useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}>;
96
104
  useSession: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
97
105
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
98
106
  createUserSessionClient: {};
@@ -112,9 +120,8 @@ export declare const AUTH_CORE_AUTH_HOOKS_GENERATED: {
112
120
  };
113
121
  useUserSessionClient: {};
114
122
  }>>;
115
- }>;
123
+ }, Record<never, Record<never, never>>>;
116
124
  };
117
- useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
118
125
  };
119
126
  };
120
127
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK1C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK1C,CAAC"}
@@ -2,6 +2,7 @@ export interface AuthCoreAuthHooksPaths {
2
2
  useCurrentUser: string;
3
3
  useCurrentUserGql: string;
4
4
  useLogOut: string;
5
+ useLogOutGql: string;
5
6
  useRequiredUserId: string;
6
7
  useSession: string;
7
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AA0BD,eAAO,MAAM,0BAA0B;;;;;;;CAGtC,CAAC"}
1
+ {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AA2BD,eAAO,MAAM,0BAA0B;;;;;;;CAGtC,CAAC"}
@@ -12,6 +12,7 @@ const authCoreAuthHooksPathsTask = createGeneratorTask({
12
12
  useCurrentUser: `${srcRoot}/hooks/use-current-user.ts`,
13
13
  useCurrentUserGql: `${srcRoot}/hooks/use-current-user.gql`,
14
14
  useLogOut: `${srcRoot}/hooks/use-log-out.ts`,
15
+ useLogOutGql: `${srcRoot}/hooks/use-log-out.gql`,
15
16
  useRequiredUserId: `${srcRoot}/hooks/use-user-id-or-throw.ts`,
16
17
  useSession: `${srcRoot}/hooks/use-session.ts`,
17
18
  },
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAU9E,MAAM,sBAAsB,GAAG,kBAAkB,CAC/C,4BAA4B,CAC7B,CAAC;AAEF,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;IACrD,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE,EAAE,sBAAsB,EAAE,sBAAsB,CAAC,MAAM,EAAE,EAAE;IACpE,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,sBAAsB,EAAE;oBACtB,cAAc,EAAE,GAAG,OAAO,4BAA4B;oBACtD,iBAAiB,EAAE,GAAG,OAAO,6BAA6B;oBAC1D,SAAS,EAAE,GAAG,OAAO,uBAAuB;oBAC5C,iBAAiB,EAAE,GAAG,OAAO,gCAAgC;oBAC7D,UAAU,EAAE,GAAG,OAAO,uBAAuB;iBAC9C;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,QAAQ,EAAE,sBAAsB;IAChC,IAAI,EAAE,0BAA0B;CACjC,CAAC"}
1
+ {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAW9E,MAAM,sBAAsB,GAAG,kBAAkB,CAC/C,4BAA4B,CAC7B,CAAC;AAEF,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;IACrD,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE,EAAE,sBAAsB,EAAE,sBAAsB,CAAC,MAAM,EAAE,EAAE;IACpE,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,sBAAsB,EAAE;oBACtB,cAAc,EAAE,GAAG,OAAO,4BAA4B;oBACtD,iBAAiB,EAAE,GAAG,OAAO,6BAA6B;oBAC1D,SAAS,EAAE,GAAG,OAAO,uBAAuB;oBAC5C,YAAY,EAAE,GAAG,OAAO,wBAAwB;oBAChD,iBAAiB,EAAE,GAAG,OAAO,gCAAgC;oBAC7D,UAAU,EAAE,GAAG,OAAO,uBAAuB;iBAC9C;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,QAAQ,EAAE,sBAAsB;IAChC,IAAI,EAAE,0BAA0B;CACjC,CAAC"}
@@ -1,12 +1,12 @@
1
- import type { RenderTextTemplateFileActionInput, RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
1
+ import type { RenderTextTemplateGroupActionInput, RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
2
2
  import type { BuilderAction } from '@baseplate-dev/sync';
3
3
  import { AUTH_CORE_AUTH_HOOKS_TEMPLATES } from './typed-templates.js';
4
4
  export interface AuthCoreAuthHooksRenderers {
5
- hooksGroup: {
6
- render: (options: Omit<RenderTsTemplateGroupActionInput<typeof AUTH_CORE_AUTH_HOOKS_TEMPLATES.hooksGroup>, 'importMapProviders' | 'group' | 'paths'>) => BuilderAction;
5
+ hooksGqlGroup: {
6
+ render: (options: Omit<RenderTextTemplateGroupActionInput<typeof AUTH_CORE_AUTH_HOOKS_TEMPLATES.hooksGqlGroup>, 'group' | 'paths'>) => BuilderAction;
7
7
  };
8
- useCurrentUserGql: {
9
- render: (options: Omit<RenderTextTemplateFileActionInput<typeof AUTH_CORE_AUTH_HOOKS_TEMPLATES.useCurrentUserGql>, 'destination' | 'template'>) => BuilderAction;
8
+ hooksGroup: {
9
+ render: (options: Omit<RenderTsTemplateGroupActionInput<typeof AUTH_CORE_AUTH_HOOKS_TEMPLATES.hooksGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
10
10
  };
11
11
  }
12
12
  export declare const AUTH_CORE_AUTH_HOOKS_RENDERERS: {
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,gCAAgC,EACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAezD,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,8BAA8B,CAAC,UAAU,CACjD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,CACzC,KACE,aAAa,CAAC;KACpB,CAAC;IACF,iBAAiB,EAAE;QACjB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,iCAAiC,CAC/B,OAAO,8BAA8B,CAAC,iBAAiB,CACxD,EACD,aAAa,GAAG,UAAU,CAC3B,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAqDD,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1C,CAAC"}
1
+ {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kCAAkC,EAClC,gCAAgC,EACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAezD,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE;QACb,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,kCAAkC,CAChC,OAAO,8BAA8B,CAAC,aAAa,CACpD,EACD,OAAO,GAAG,OAAO,CAClB,KACE,aAAa,CAAC;KACpB,CAAC;IACF,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,8BAA8B,CAAC,UAAU,CACjD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAsDD,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { renderTextTemplateFileAction, typescriptFileProvider, } from '@baseplate-dev/core-generators';
1
+ import { renderTextTemplateGroupAction, typescriptFileProvider, } from '@baseplate-dev/core-generators';
2
2
  import { generatedGraphqlImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
3
3
  import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
4
4
  import { reactSessionImportsProvider } from '#src/auth/core/generators/react-session/generated/ts-import-providers.js';
@@ -18,6 +18,13 @@ const authCoreAuthHooksRenderersTask = createGeneratorTask({
18
18
  return {
19
19
  providers: {
20
20
  authCoreAuthHooksRenderers: {
21
+ hooksGqlGroup: {
22
+ render: (options) => renderTextTemplateGroupAction({
23
+ group: AUTH_CORE_AUTH_HOOKS_TEMPLATES.hooksGqlGroup,
24
+ paths,
25
+ ...options,
26
+ }),
27
+ },
21
28
  hooksGroup: {
22
29
  render: (options) => typescriptFile.renderTemplateGroup({
23
30
  group: AUTH_CORE_AUTH_HOOKS_TEMPLATES.hooksGroup,
@@ -27,13 +34,7 @@ const authCoreAuthHooksRenderersTask = createGeneratorTask({
27
34
  reactErrorImports,
28
35
  reactSessionImports,
29
36
  },
30
- ...options,
31
- }),
32
- },
33
- useCurrentUserGql: {
34
- render: (options) => renderTextTemplateFileAction({
35
- template: AUTH_CORE_AUTH_HOOKS_TEMPLATES.useCurrentUserGql,
36
- destination: paths.useCurrentUserGql,
37
+ generatorPaths: paths,
37
38
  ...options,
38
39
  }),
39
40
  },
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,0EAA0E,CAAC;AAEvH,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAyBtE,MAAM,0BAA0B,GAC9B,kBAAkB,CAChB,gCAAgC,CACjC,CAAC;AAEJ,MAAM,8BAA8B,GAAG,mBAAmB,CAAC;IACzD,YAAY,EAAE;QACZ,uBAAuB,EAAE,+BAA+B;QACxD,KAAK,EAAE,0BAA0B,CAAC,QAAQ;QAC1C,iBAAiB,EAAE,yBAAyB;QAC5C,mBAAmB,EAAE,2BAA2B;QAChD,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE,EAAE,0BAA0B,EAAE,0BAA0B,CAAC,MAAM,EAAE,EAAE;IAC5E,GAAG,CAAC,EACF,uBAAuB,EACvB,KAAK,EACL,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,GACf;QACC,OAAO;YACL,SAAS,EAAE;gBACT,0BAA0B,EAAE;oBAC1B,UAAU,EAAE;wBACV,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,8BAA8B,CAAC,UAAU;4BAChD,KAAK;4BACL,kBAAkB,EAAE;gCAClB,uBAAuB;gCACvB,iBAAiB;gCACjB,mBAAmB;6BACpB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,iBAAiB,EAAE;wBACjB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,4BAA4B,CAAC;4BAC3B,QAAQ,EAAE,8BAA8B,CAAC,iBAAiB;4BAC1D,WAAW,EAAE,KAAK,CAAC,iBAAiB;4BACpC,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,QAAQ,EAAE,0BAA0B;IACpC,IAAI,EAAE,8BAA8B;CACrC,CAAC"}
1
+ {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,6B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4BACD,cAAc,EAAE,KAAK;4BACrB,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,QAAQ,EAAE,0BAA0B;IACpC,IAAI,EAAE,8BAA8B;CACrC,CAAC"}
@@ -1,8 +1,14 @@
1
+ export declare const hooksGqlGroup: {
2
+ useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
3
+ useLogOutGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
4
+ };
1
5
  export declare const hooksGroup: {
2
6
  useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
3
7
  generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
4
8
  '*': {};
5
9
  }>>;
10
+ }, {
11
+ useSession: {};
6
12
  }>;
7
13
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
8
14
  generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -31,8 +37,10 @@ export declare const hooksGroup: {
31
37
  };
32
38
  useUserSessionClient: {};
33
39
  }>>;
40
+ }, Record<never, Record<never, never>>>;
41
+ useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, {
42
+ useSession: {};
34
43
  }>;
35
- useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}>;
36
44
  useSession: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
37
45
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
38
46
  createUserSessionClient: {};
@@ -52,14 +60,20 @@ export declare const hooksGroup: {
52
60
  };
53
61
  useUserSessionClient: {};
54
62
  }>>;
55
- }>;
63
+ }, Record<never, Record<never, never>>>;
56
64
  };
57
65
  export declare const AUTH_CORE_AUTH_HOOKS_TEMPLATES: {
66
+ hooksGqlGroup: {
67
+ useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
68
+ useLogOutGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
69
+ };
58
70
  hooksGroup: {
59
71
  useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
60
72
  generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
61
73
  '*': {};
62
74
  }>>;
75
+ }, {
76
+ useSession: {};
63
77
  }>;
64
78
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
65
79
  generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -88,8 +102,10 @@ export declare const AUTH_CORE_AUTH_HOOKS_TEMPLATES: {
88
102
  };
89
103
  useUserSessionClient: {};
90
104
  }>>;
105
+ }, Record<never, Record<never, never>>>;
106
+ useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, {
107
+ useSession: {};
91
108
  }>;
92
- useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}>;
93
109
  useSession: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
94
110
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
95
111
  createUserSessionClient: {};
@@ -109,8 +125,7 @@ export declare const AUTH_CORE_AUTH_HOOKS_TEMPLATES: {
109
125
  };
110
126
  useUserSessionClient: {};
111
127
  }>>;
112
- }>;
128
+ }, Record<never, Record<never, never>>>;
113
129
  };
114
- useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
115
130
  };
116
131
  //# sourceMappingURL=typed-templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AA8EA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAC;AAcF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/core/generators/auth-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,aAAa;;;CAAsC,CAAC;AAsEjE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgC,CAAC"}
@@ -2,6 +2,25 @@ import { createTextTemplateFile, createTsTemplateFile, } from '@baseplate-dev/co
2
2
  import { generatedGraphqlImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
3
3
  import path from 'node:path';
4
4
  import { reactSessionImportsProvider } from '#src/auth/core/generators/react-session/generated/ts-import-providers.js';
5
+ const useCurrentUserGql = createTextTemplateFile({
6
+ fileOptions: { kind: 'singleton' },
7
+ group: 'hooks-gql',
8
+ name: 'use-current-user-gql',
9
+ source: {
10
+ path: path.join(import.meta.dirname, '../templates/src/hooks/use-current-user.gql'),
11
+ },
12
+ variables: {},
13
+ });
14
+ const useLogOutGql = createTextTemplateFile({
15
+ fileOptions: { kind: 'singleton' },
16
+ group: 'hooks-gql',
17
+ name: 'use-log-out-gql',
18
+ source: {
19
+ path: path.join(import.meta.dirname, '../templates/src/hooks/use-log-out.gql'),
20
+ },
21
+ variables: {},
22
+ });
23
+ export const hooksGqlGroup = { useCurrentUserGql, useLogOutGql };
5
24
  const useCurrentUser = createTsTemplateFile({
6
25
  fileOptions: { kind: 'singleton' },
7
26
  group: 'hooks',
@@ -10,6 +29,7 @@ const useCurrentUser = createTsTemplateFile({
10
29
  },
11
30
  name: 'use-current-user',
12
31
  projectExports: { useCurrentUser: {} },
32
+ referencedGeneratorTemplates: { useSession: {} },
13
33
  source: {
14
34
  path: path.join(import.meta.dirname, '../templates/src/hooks/use-current-user.ts'),
15
35
  },
@@ -36,6 +56,7 @@ const useRequiredUserId = createTsTemplateFile({
36
56
  importMapProviders: {},
37
57
  name: 'use-required-user-id',
38
58
  projectExports: { useRequiredUserId: {} },
59
+ referencedGeneratorTemplates: { useSession: {} },
39
60
  source: {
40
61
  path: path.join(import.meta.dirname, '../templates/src/hooks/use-user-id-or-throw.ts'),
41
62
  },
@@ -58,13 +79,5 @@ export const hooksGroup = {
58
79
  useRequiredUserId,
59
80
  useSession,
60
81
  };
61
- const useCurrentUserGql = createTextTemplateFile({
62
- fileOptions: { kind: 'singleton' },
63
- name: 'use-current-user-gql',
64
- source: {
65
- path: path.join(import.meta.dirname, '../templates/src/hooks/use-current-user.gql'),
66
- },
67
- variables: {},
68
- });
69
- export const AUTH_CORE_AUTH_HOOKS_TEMPLATES = { hooksGroup, useCurrentUserGql };
82
+ export const AUTH_CORE_AUTH_HOOKS_TEMPLATES = { hooksGqlGroup, hooksGroup };
70
83
  //# sourceMappingURL=typed-templates.js.map